@tom-schorn/n8n-nodes-paperless 0.1.3
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/LICENSE.md +23 -0
- package/README.md +122 -0
- package/dist/credentials/PaperlessApi.credentials.d.ts +8 -0
- package/dist/credentials/PaperlessApi.credentials.js +38 -0
- package/dist/credentials/PaperlessApi.credentials.js.map +1 -0
- package/dist/nodes/Paperless/Paperless.node.d.ts +4 -0
- package/dist/nodes/Paperless/Paperless.node.js +24 -0
- package/dist/nodes/Paperless/Paperless.node.js.map +1 -0
- package/dist/nodes/Paperless/Paperless.node.json +14 -0
- package/dist/nodes/Paperless/v2/PaperlessV2.node.d.ts +10 -0
- package/dist/nodes/Paperless/v2/PaperlessV2.node.js +56 -0
- package/dist/nodes/Paperless/v2/PaperlessV2.node.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/asn/asn.resource.d.ts +4 -0
- package/dist/nodes/Paperless/v2/actions/asn/asn.resource.js +60 -0
- package/dist/nodes/Paperless/v2/actions/asn/asn.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/asn/next.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/asn/next.operation.js +14 -0
- package/dist/nodes/Paperless/v2/actions/asn/next.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/correspondent.resource.d.ts +8 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/correspondent.resource.js +91 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/correspondent.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/create.operation.js +67 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/get.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/list.operation.js +21 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/remove.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/update.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/update.operation.js +107 -0
- package/dist/nodes/Paperless/v2/actions/correspondent/update.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/create.operation.js +116 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/custom_field.resource.d.ts +8 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/custom_field.resource.js +91 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/custom_field.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/get.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/list.operation.js +21 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/remove.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/update.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/update.operation.js +128 -0
- package/dist/nodes/Paperless/v2/actions/custom_field/update.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/create.operation.js +209 -0
- package/dist/nodes/Paperless/v2/actions/document/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/document.resource.d.ts +13 -0
- package/dist/nodes/Paperless/v2/actions/document/document.resource.js +131 -0
- package/dist/nodes/Paperless/v2/actions/document/document.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get.operation.js +77 -0
- package/dist/nodes/Paperless/v2/actions/document/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get_history.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get_history.operation.js +86 -0
- package/dist/nodes/Paperless/v2/actions/document/get_history.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata.operation.js +79 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata_suggestions.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata_suggestions.operation.js +119 -0
- package/dist/nodes/Paperless/v2/actions/document/get_metadata_suggestions.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get_preview.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get_preview.operation.js +84 -0
- package/dist/nodes/Paperless/v2/actions/document/get_preview.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/get_sharelink.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/get_sharelink.operation.js +79 -0
- package/dist/nodes/Paperless/v2/actions/document/get_sharelink.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/list.operation.js +21 -0
- package/dist/nodes/Paperless/v2/actions/document/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/remove.operation.js +77 -0
- package/dist/nodes/Paperless/v2/actions/document/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document/update.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document/update.operation.js +368 -0
- package/dist/nodes/Paperless/v2/actions/document/update.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_note/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_note/create.operation.js +98 -0
- package/dist/nodes/Paperless/v2/actions/document_note/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_note/document_note.resource.d.ts +6 -0
- package/dist/nodes/Paperless/v2/actions/document_note/document_note.resource.js +75 -0
- package/dist/nodes/Paperless/v2/actions/document_note/document_note.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_note/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_note/list.operation.js +86 -0
- package/dist/nodes/Paperless/v2/actions/document_note/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_note/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_note/remove.operation.js +123 -0
- package/dist/nodes/Paperless/v2/actions/document_note/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_type/create.operation.js +67 -0
- package/dist/nodes/Paperless/v2/actions/document_type/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/document_type.resource.d.ts +8 -0
- package/dist/nodes/Paperless/v2/actions/document_type/document_type.resource.js +91 -0
- package/dist/nodes/Paperless/v2/actions/document_type/document_type.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_type/get.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/document_type/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_type/list.operation.js +21 -0
- package/dist/nodes/Paperless/v2/actions/document_type/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_type/remove.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/document_type/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/document_type/update.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/document_type/update.operation.js +111 -0
- package/dist/nodes/Paperless/v2/actions/document_type/update.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/node.type.d.ts +12 -0
- package/dist/nodes/Paperless/v2/actions/node.type.js +3 -0
- package/dist/nodes/Paperless/v2/actions/node.type.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/router.d.ts +2 -0
- package/dist/nodes/Paperless/v2/actions/router.js +92 -0
- package/dist/nodes/Paperless/v2/actions/router.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/create.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/tag/create.operation.js +67 -0
- package/dist/nodes/Paperless/v2/actions/tag/create.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/tag/get.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/tag/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/list.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/tag/list.operation.js +21 -0
- package/dist/nodes/Paperless/v2/actions/tag/list.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/remove.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/tag/remove.operation.js +56 -0
- package/dist/nodes/Paperless/v2/actions/tag/remove.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/tag.resource.d.ts +8 -0
- package/dist/nodes/Paperless/v2/actions/tag/tag.resource.js +91 -0
- package/dist/nodes/Paperless/v2/actions/tag/tag.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/tag/update.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/tag/update.operation.js +107 -0
- package/dist/nodes/Paperless/v2/actions/tag/update.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/task/get.operation.d.ts +3 -0
- package/dist/nodes/Paperless/v2/actions/task/get.operation.js +38 -0
- package/dist/nodes/Paperless/v2/actions/task/get.operation.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/task/task.resource.d.ts +4 -0
- package/dist/nodes/Paperless/v2/actions/task/task.resource.js +59 -0
- package/dist/nodes/Paperless/v2/actions/task/task.resource.js.map +1 -0
- package/dist/nodes/Paperless/v2/actions/version.d.ts +2 -0
- package/dist/nodes/Paperless/v2/actions/version.js +117 -0
- package/dist/nodes/Paperless/v2/actions/version.js.map +1 -0
- package/dist/nodes/Paperless/v2/methods/index.d.ts +1 -0
- package/dist/nodes/Paperless/v2/methods/index.js +38 -0
- package/dist/nodes/Paperless/v2/methods/index.js.map +1 -0
- package/dist/nodes/Paperless/v2/methods/listSearch.d.ts +8 -0
- package/dist/nodes/Paperless/v2/methods/listSearch.js +71 -0
- package/dist/nodes/Paperless/v2/methods/listSearch.js.map +1 -0
- package/dist/nodes/Paperless/v2/paperless-ngx.svg +1 -0
- package/dist/nodes/Paperless/v2/transport/index.d.ts +3 -0
- package/dist/nodes/Paperless/v2/transport/index.js +50 -0
- package/dist/nodes/Paperless/v2/transport/index.js.map +1 -0
- package/dist/package.json +74 -0
- package/index.js +0 -0
- package/package.json +74 -0
|
@@ -0,0 +1,59 @@
|
|
|
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.description = exports.get = void 0;
|
|
37
|
+
const get = __importStar(require("./get.operation"));
|
|
38
|
+
exports.get = get;
|
|
39
|
+
exports.description = [
|
|
40
|
+
{
|
|
41
|
+
displayName: 'Operation',
|
|
42
|
+
name: 'operation',
|
|
43
|
+
default: 'get',
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: { resource: ['task'] },
|
|
46
|
+
},
|
|
47
|
+
noDataExpression: true,
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
name: 'Get a Task',
|
|
51
|
+
value: 'get',
|
|
52
|
+
action: 'Get a task',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
type: 'options',
|
|
56
|
+
},
|
|
57
|
+
...get.description,
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=task.resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.resource.js","sourceRoot":"","sources":["../../../../../../nodes/Paperless/v2/actions/task/task.resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qDAAuC;AAE9B,kBAAG;AAEC,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE;SAC5B;QACD,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;aACpB;SACD;QACD,IAAI,EAAE,SAAS;KACf;IACD,GAAG,GAAG,CAAC,WAAW;CAClB,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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.description = void 0;
|
|
37
|
+
const asn = __importStar(require("./asn/asn.resource"));
|
|
38
|
+
const correspondent = __importStar(require("./correspondent/correspondent.resource"));
|
|
39
|
+
const custom_field = __importStar(require("./custom_field/custom_field.resource"));
|
|
40
|
+
const document = __importStar(require("./document/document.resource"));
|
|
41
|
+
const document_note = __importStar(require("./document_note/document_note.resource"));
|
|
42
|
+
const document_type = __importStar(require("./document_type/document_type.resource"));
|
|
43
|
+
const tag = __importStar(require("./tag/tag.resource"));
|
|
44
|
+
const task = __importStar(require("./task/task.resource"));
|
|
45
|
+
exports.description = {
|
|
46
|
+
displayName: 'Paperless-ngx',
|
|
47
|
+
name: 'paperless',
|
|
48
|
+
icon: 'file:paperless-ngx.svg',
|
|
49
|
+
group: ['input'],
|
|
50
|
+
version: 2,
|
|
51
|
+
subtitle: '={{ $parameter.operation + ": " + $parameter.resource }}',
|
|
52
|
+
description: 'Consume documents and metadata from Paperless-ngx API',
|
|
53
|
+
defaults: { name: 'Paperless-ngx' },
|
|
54
|
+
credentials: [{ name: 'paperlessApi', required: true }],
|
|
55
|
+
inputs: ["main"],
|
|
56
|
+
outputs: ["main"],
|
|
57
|
+
properties: [
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Resource',
|
|
60
|
+
name: 'resource',
|
|
61
|
+
default: 'document',
|
|
62
|
+
noDataExpression: true,
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
name: 'ASN',
|
|
66
|
+
value: 'asn',
|
|
67
|
+
description: 'Archive Serial Number',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Correspondent',
|
|
71
|
+
value: 'correspondent',
|
|
72
|
+
description: 'Person or organization behind documents',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Custom Field',
|
|
76
|
+
value: 'custom_field',
|
|
77
|
+
description: 'User-defined additional informative fields',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Document',
|
|
81
|
+
value: 'document',
|
|
82
|
+
description: 'Scanned document or file saved in Paperless',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Document Note',
|
|
86
|
+
value: 'document_note',
|
|
87
|
+
description: 'Additional information about a document',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Document Type',
|
|
91
|
+
value: 'document_type',
|
|
92
|
+
description: 'Kind of a document',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Tag',
|
|
96
|
+
value: 'tag',
|
|
97
|
+
description: 'Label for documents',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Task',
|
|
101
|
+
value: 'task',
|
|
102
|
+
description: 'Work to be done on a document',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
type: 'options',
|
|
106
|
+
},
|
|
107
|
+
...asn.description,
|
|
108
|
+
...correspondent.description,
|
|
109
|
+
...custom_field.description,
|
|
110
|
+
...document.description,
|
|
111
|
+
...document_note.description,
|
|
112
|
+
...document_type.description,
|
|
113
|
+
...tag.description,
|
|
114
|
+
...task.description,
|
|
115
|
+
],
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../../nodes/Paperless/v2/actions/version.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wDAA0C;AAC1C,sFAAwE;AACxE,mFAAqE;AACrE,uEAAyD;AACzD,sFAAwE;AACxE,sFAAwE;AACxE,wDAA0C;AAC1C,2DAA6C;AAEhC,QAAA,WAAW,GAAyB;IAChD,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,wBAAwB;IAC9B,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,0DAA0D;IACpE,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE;IAEnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,MAAM,EAAE,QAAyB;IAEjC,OAAO,EAAE,QAAyB;IAElC,UAAU,EAAE;QACX;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,UAAU;YACnB,gBAAgB,EAAE,IAAI;YACtB,OAAO,EAAE;gBACR;oBACC,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,uBAAuB;iBACpC;gBACD;oBACC,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,yCAAyC;iBACtD;gBACD;oBACC,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,cAAc;oBACrB,WAAW,EAAE,4CAA4C;iBACzD;gBACD;oBACC,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,UAAU;oBACjB,WAAW,EAAE,6CAA6C;iBAC1D;gBACD;oBACC,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,yCAAyC;iBACtD;gBACD;oBACC,IAAI,EAAE,eAAe;oBACrB,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,oBAAoB;iBACjC;gBACD;oBACC,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,KAAK;oBACZ,WAAW,EAAE,qBAAqB;iBAClC;gBACD;oBACC,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,WAAW,EAAE,+BAA+B;iBAC5C;aACD;YACD,IAAI,EAAE,SAAS;SACf;QACD,GAAG,GAAG,CAAC,WAAW;QAClB,GAAG,aAAa,CAAC,WAAW;QAC5B,GAAG,YAAY,CAAC,WAAW;QAC3B,GAAG,QAAQ,CAAC,WAAW;QACvB,GAAG,aAAa,CAAC,WAAW;QAC5B,GAAG,aAAa,CAAC,WAAW;QAC5B,GAAG,GAAG,CAAC,WAAW;QAClB,GAAG,IAAI,CAAC,WAAW;KACnB;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as listSearch from './listSearch';
|
|
@@ -0,0 +1,38 @@
|
|
|
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.listSearch = void 0;
|
|
37
|
+
exports.listSearch = __importStar(require("./listSearch"));
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Paperless/v2/methods/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare function correspondentSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
3
|
+
export declare function customFieldSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
4
|
+
export declare function documentSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
5
|
+
export declare function documentTypeSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
6
|
+
export declare function storagePathSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
7
|
+
export declare function tagSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
8
|
+
export declare function documentNoteSearch(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.correspondentSearch = correspondentSearch;
|
|
4
|
+
exports.customFieldSearch = customFieldSearch;
|
|
5
|
+
exports.documentSearch = documentSearch;
|
|
6
|
+
exports.documentTypeSearch = documentTypeSearch;
|
|
7
|
+
exports.storagePathSearch = storagePathSearch;
|
|
8
|
+
exports.tagSearch = tagSearch;
|
|
9
|
+
exports.documentNoteSearch = documentNoteSearch;
|
|
10
|
+
const transport_1 = require("../transport");
|
|
11
|
+
async function resourceSearch(resource, accessor, filter) {
|
|
12
|
+
if (filter && filter.trim().length >= 3) {
|
|
13
|
+
const endpoint = `/search/`;
|
|
14
|
+
const query = { query: filter };
|
|
15
|
+
const responses = (await transport_1.apiRequestPaginated.call(this, 0, 'GET', endpoint, undefined, query));
|
|
16
|
+
const [result] = responses;
|
|
17
|
+
return {
|
|
18
|
+
results: result
|
|
19
|
+
? result.body[resource].map((item) => ({
|
|
20
|
+
name: String(item[accessor]),
|
|
21
|
+
value: item.id,
|
|
22
|
+
}))
|
|
23
|
+
: [],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const endpoint = `/${resource}/`;
|
|
27
|
+
const responses = (await transport_1.apiRequestPaginated.call(this, 0, 'GET', endpoint));
|
|
28
|
+
const results = responses
|
|
29
|
+
.reduce((acc, response) => acc.concat(response.body.results), [])
|
|
30
|
+
.slice(0, 30);
|
|
31
|
+
return {
|
|
32
|
+
results: results.map((item) => ({
|
|
33
|
+
name: String(item[accessor]),
|
|
34
|
+
value: item.id,
|
|
35
|
+
})),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
async function correspondentSearch(filter) {
|
|
39
|
+
return resourceSearch.call(this, 'correspondents', 'name', filter);
|
|
40
|
+
}
|
|
41
|
+
async function customFieldSearch(filter) {
|
|
42
|
+
return resourceSearch.call(this, 'custom_fields', 'name', filter);
|
|
43
|
+
}
|
|
44
|
+
async function documentSearch(filter) {
|
|
45
|
+
return resourceSearch.call(this, 'documents', 'title', filter);
|
|
46
|
+
}
|
|
47
|
+
async function documentTypeSearch(filter) {
|
|
48
|
+
return resourceSearch.call(this, 'document_types', 'name', filter);
|
|
49
|
+
}
|
|
50
|
+
async function storagePathSearch(filter) {
|
|
51
|
+
return resourceSearch.call(this, 'storage_paths', 'name', filter);
|
|
52
|
+
}
|
|
53
|
+
async function tagSearch(filter) {
|
|
54
|
+
return resourceSearch.call(this, 'tags', 'name', filter);
|
|
55
|
+
}
|
|
56
|
+
async function documentNoteSearch(filter) {
|
|
57
|
+
const documentId = this.getCurrentNodeParameter('id').value;
|
|
58
|
+
const endpoint = `/documents/${documentId}/notes/`;
|
|
59
|
+
const responses = (await transport_1.apiRequestPaginated.call(this, 0, 'GET', endpoint));
|
|
60
|
+
return {
|
|
61
|
+
results: responses
|
|
62
|
+
.reduce((acc, response) => acc.concat(response.body), [])
|
|
63
|
+
.filter((item) => !filter || item.note.includes(filter))
|
|
64
|
+
.slice(0, 30)
|
|
65
|
+
.map((item) => ({
|
|
66
|
+
name: item.note.trim().length > 80 ? `${item.note.trim().slice(0, 80)}...` : item.note.trim(),
|
|
67
|
+
value: item.id,
|
|
68
|
+
})),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=listSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSearch.js","sourceRoot":"","sources":["../../../../../nodes/Paperless/v2/methods/listSearch.ts"],"names":[],"mappings":";;AAyEA,kDAKC;AAED,8CAKC;AAED,wCAKC;AAED,gDAKC;AAED,8CAKC;AAED,8BAKC;AAED,gDAuBC;AArID,4CAAmD;AAEnD,KAAK,UAAU,cAAc,CAE5B,QAMS,EACT,QAA0B,EAC1B,MAAe;IAGf,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACzC,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;QAEhC,MAAM,SAAS,GAAG,CAAC,MAAM,+BAAmB,CAAC,IAAI,CAChD,IAAI,EACJ,CAAC,EACD,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,CACL,CASE,CAAC;QAEJ,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;QAC3B,OAAO;YACN,OAAO,EAAE,MAAM;gBACd,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;oBACrC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,QAA6B,CAAC,CAAC;oBACjD,KAAK,EAAE,IAAI,CAAC,EAAE;iBACd,CAAC,CAAC;gBACJ,CAAC,CAAC,EAAE;SACL,CAAC;IACH,CA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CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="43.38 0.14 425.32 512.02"><path d="M136.8 459.6c-2.3-10.8-6.9-32.5-7.4-32.5-96.5-57.7-85.1-157.6-53.1-214.7 6.9 71.9 134.2 121.6 60 209.6-.6 1.1 3.4 14.8 6.9 27.4 14.8-25.1 37.1-55.4 36-58.2-91.4-222.7 194.1-239.8 253.5-378 26.8 133.6-13.7 340.3-243.3 392.9-1.1.6-41.7 71.9-43.4 72.5 0-1.1-17.1-.6-14.8-6.3 1.1-3.6 3.3-8.1 5.6-12.7m56.6-98.8c-36-85.1 69.7-178.7 122.2-202.1C208.2 254.6 189.9 326 193.4 360.8M134 405.9c29.1-33.7-5.1-91.4-25.7-110.2 34.8 60 32.5 94.8 25.7 110.2" style="fill:#17541f" transform="translate(-15.306 -14.379)scale(1.10017)"/></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IDataObject, IExecuteFunctions, IHttpRequestMethods, ILoadOptionsFunctions, IRequestOptions } from 'n8n-workflow';
|
|
2
|
+
export declare function apiRequest(this: IExecuteFunctions | ILoadOptionsFunctions, itemIndex: number, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, query?: IDataObject, option?: IRequestOptions): Promise<unknown>;
|
|
3
|
+
export declare function apiRequestPaginated(this: IExecuteFunctions | ILoadOptionsFunctions, itemIndex: number, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, query?: IDataObject, option?: IRequestOptions): Promise<unknown[]>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.apiRequest = apiRequest;
|
|
4
|
+
exports.apiRequestPaginated = apiRequestPaginated;
|
|
5
|
+
async function apiRequest(itemIndex, method, endpoint, body = {}, query, option = {}) {
|
|
6
|
+
const queryParams = query || {};
|
|
7
|
+
const credentials = await this.getCredentials('paperlessApi');
|
|
8
|
+
const options = {
|
|
9
|
+
headers: {},
|
|
10
|
+
method,
|
|
11
|
+
body,
|
|
12
|
+
qs: queryParams,
|
|
13
|
+
uri: `${credentials.url}${endpoint}`,
|
|
14
|
+
json: true,
|
|
15
|
+
};
|
|
16
|
+
if (Object.keys(option).length) {
|
|
17
|
+
Object.assign(options, option);
|
|
18
|
+
}
|
|
19
|
+
if (!Object.keys(body).length) {
|
|
20
|
+
options.body = undefined;
|
|
21
|
+
}
|
|
22
|
+
return this.helpers.requestWithAuthentication.call(this, 'paperlessApi', options, undefined, itemIndex);
|
|
23
|
+
}
|
|
24
|
+
async function apiRequestPaginated(itemIndex, method, endpoint, body = {}, query, option = {}) {
|
|
25
|
+
query = query || {};
|
|
26
|
+
const credentials = await this.getCredentials('paperlessApi');
|
|
27
|
+
const options = {
|
|
28
|
+
headers: {},
|
|
29
|
+
method,
|
|
30
|
+
body,
|
|
31
|
+
qs: query,
|
|
32
|
+
uri: `${credentials.url}${endpoint}`,
|
|
33
|
+
json: true,
|
|
34
|
+
};
|
|
35
|
+
if (Object.keys(option).length) {
|
|
36
|
+
Object.assign(options, option);
|
|
37
|
+
}
|
|
38
|
+
if (!Object.keys(body).length) {
|
|
39
|
+
delete options.body;
|
|
40
|
+
}
|
|
41
|
+
const paginationOptions = {
|
|
42
|
+
continue: '={{ ($response?.body?.next ?? null) !== null }}',
|
|
43
|
+
request: {
|
|
44
|
+
url: '={{ $response.body.next }}',
|
|
45
|
+
},
|
|
46
|
+
requestInterval: 100,
|
|
47
|
+
};
|
|
48
|
+
return this.helpers.requestWithAuthenticationPaginated.call(this, options, itemIndex, paginationOptions, 'paperlessApi');
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Paperless/v2/transport/index.ts"],"names":[],"mappings":";;AASA,gCAoCC;AAED,kDA4CC;AAlFM,K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C,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,OAAO,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,MAAM,iBAAiB,GAAsB;QAC5C,QAAQ,EAAE,iDAAiD;QAC3D,OAAO,EAAE;YACR,GAAG,EAAE,4BAA4B;SACjC;QACD,eAAe,EAAE,GAAG;KACpB,CAAC;IAEF,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,CAAC,IAAI,CAC1D,IAAI,EACJ,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,CACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tom-schorn/n8n-nodes-paperless",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "N8N community node manage your documents with Paperless-ngx.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"paperless",
|
|
8
|
+
"paperless-ngx"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/tom-schorn/n8n-nodes-paperless#readme",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Tom Schorn",
|
|
14
|
+
"email": "tom-schorn@users.noreply.github.com"
|
|
15
|
+
},
|
|
16
|
+
"contributors": [
|
|
17
|
+
{
|
|
18
|
+
"name": "Alexandre NICOLAIE",
|
|
19
|
+
"email": "xunleii@users.noreply.github.com"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/tom-schorn/n8n-nodes-paperless.git"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.10",
|
|
28
|
+
"pnpm": ">=9.1"
|
|
29
|
+
},
|
|
30
|
+
"packageManager": "pnpm@9.15.4",
|
|
31
|
+
"main": "index.js",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc && gulp build:icons",
|
|
34
|
+
"dev": "tsc --watch",
|
|
35
|
+
"format": "prettier nodes credentials --write",
|
|
36
|
+
"lint": "eslint nodes credentials package.json",
|
|
37
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
38
|
+
"prepublishOnly": "pnpm build && pnpm lint -c .eslintrc.prepublish.js nodes credentials package.json"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"n8n": {
|
|
47
|
+
"n8nNodesApiVersion": 1,
|
|
48
|
+
"credentials": [
|
|
49
|
+
"dist/credentials/PaperlessApi.credentials.js"
|
|
50
|
+
],
|
|
51
|
+
"nodes": [
|
|
52
|
+
"dist/nodes/Paperless/Paperless.node.js"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "^18.10.0",
|
|
57
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
58
|
+
"eslint": "^8.57.1",
|
|
59
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
|
60
|
+
"gulp": "^5.0.0",
|
|
61
|
+
"n8n-workflow": "^1.70.0",
|
|
62
|
+
"prettier": "^3.4.2",
|
|
63
|
+
"typescript": "^5.7.3"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"n8n-workflow": "*"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"form-data": "^4.0.1"
|
|
70
|
+
},
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/tom-schorn/n8n-nodes-paperless/issues"
|
|
73
|
+
}
|
|
74
|
+
}
|
package/index.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tom-schorn/n8n-nodes-paperless",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "N8N community node manage your documents with Paperless-ngx.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"paperless",
|
|
8
|
+
"paperless-ngx"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/tom-schorn/n8n-nodes-paperless#readme",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Tom Schorn",
|
|
14
|
+
"email": "tom-schorn@users.noreply.github.com"
|
|
15
|
+
},
|
|
16
|
+
"contributors": [
|
|
17
|
+
{
|
|
18
|
+
"name": "Alexandre NICOLAIE",
|
|
19
|
+
"email": "xunleii@users.noreply.github.com"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/tom-schorn/n8n-nodes-paperless.git"
|
|
25
|
+
},
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18.10",
|
|
28
|
+
"pnpm": ">=9.1"
|
|
29
|
+
},
|
|
30
|
+
"packageManager": "pnpm@9.15.4",
|
|
31
|
+
"main": "index.js",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc && gulp build:icons",
|
|
34
|
+
"dev": "tsc --watch",
|
|
35
|
+
"format": "prettier nodes credentials --write",
|
|
36
|
+
"lint": "eslint nodes credentials package.json",
|
|
37
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
38
|
+
"prepublishOnly": "pnpm build && pnpm lint -c .eslintrc.prepublish.js nodes credentials package.json"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist"
|
|
42
|
+
],
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"n8n": {
|
|
47
|
+
"n8nNodesApiVersion": 1,
|
|
48
|
+
"credentials": [
|
|
49
|
+
"dist/credentials/PaperlessApi.credentials.js"
|
|
50
|
+
],
|
|
51
|
+
"nodes": [
|
|
52
|
+
"dist/nodes/Paperless/Paperless.node.js"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "^18.10.0",
|
|
57
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
58
|
+
"eslint": "^8.57.1",
|
|
59
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.3",
|
|
60
|
+
"gulp": "^5.0.0",
|
|
61
|
+
"n8n-workflow": "^1.70.0",
|
|
62
|
+
"prettier": "^3.4.2",
|
|
63
|
+
"typescript": "^5.7.3"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"n8n-workflow": "*"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"form-data": "^4.0.1"
|
|
70
|
+
},
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/tom-schorn/n8n-nodes-paperless/issues"
|
|
73
|
+
}
|
|
74
|
+
}
|