@qontext/n8n-nodes-qontext 0.1.5 → 1.0.1

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 (100) hide show
  1. package/README.md +269 -67
  2. package/dist/credentials/QontextApi.credentials.js +6 -3
  3. package/dist/credentials/QontextApi.credentials.js.map +1 -1
  4. package/dist/nodes/Qontext/Qontext.node.d.ts +8 -0
  5. package/dist/nodes/Qontext/Qontext.node.js +31 -9
  6. package/dist/nodes/Qontext/Qontext.node.js.map +1 -1
  7. package/dist/nodes/Qontext/Qontext.node.json +3 -3
  8. package/dist/nodes/Qontext/actions/common/api.d.ts +3 -0
  9. package/dist/nodes/Qontext/actions/common/api.js +7 -0
  10. package/dist/nodes/Qontext/actions/common/api.js.map +1 -0
  11. package/dist/nodes/Qontext/actions/common/legacy.d.ts +2 -0
  12. package/dist/nodes/Qontext/actions/common/legacy.js +34 -0
  13. package/dist/nodes/Qontext/actions/common/legacy.js.map +1 -0
  14. package/dist/nodes/Qontext/actions/common/locator.d.ts +14 -0
  15. package/dist/nodes/Qontext/actions/common/locator.js +90 -0
  16. package/dist/nodes/Qontext/actions/common/locator.js.map +1 -0
  17. package/dist/nodes/Qontext/actions/common/pagination.d.ts +3 -0
  18. package/dist/nodes/Qontext/actions/common/pagination.js +104 -0
  19. package/dist/nodes/Qontext/actions/common/pagination.js.map +1 -0
  20. package/dist/nodes/Qontext/actions/common/resolvePath.d.ts +3 -0
  21. package/dist/nodes/Qontext/actions/common/resolvePath.js +37 -0
  22. package/dist/nodes/Qontext/actions/common/resolvePath.js.map +1 -0
  23. package/dist/nodes/Qontext/actions/file/createFile.operation.d.ts +2 -0
  24. package/dist/nodes/Qontext/actions/file/createFile.operation.js +118 -0
  25. package/dist/nodes/Qontext/actions/file/createFile.operation.js.map +1 -0
  26. package/dist/nodes/Qontext/actions/file/deleteFile.operation.d.ts +2 -0
  27. package/dist/nodes/Qontext/actions/file/deleteFile.operation.js +13 -0
  28. package/dist/nodes/Qontext/actions/file/deleteFile.operation.js.map +1 -0
  29. package/dist/nodes/Qontext/actions/file/file.resource.d.ts +2 -0
  30. package/dist/nodes/Qontext/actions/file/file.resource.js +117 -0
  31. package/dist/nodes/Qontext/actions/file/file.resource.js.map +1 -0
  32. package/dist/nodes/Qontext/actions/file/getFile.operation.d.ts +2 -0
  33. package/dist/nodes/Qontext/actions/file/getFile.operation.js +13 -0
  34. package/dist/nodes/Qontext/actions/file/getFile.operation.js.map +1 -0
  35. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.d.ts +2 -0
  36. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js +105 -0
  37. package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js.map +1 -0
  38. package/dist/nodes/Qontext/actions/file/updateFile.operation.d.ts +2 -0
  39. package/dist/nodes/Qontext/actions/file/updateFile.operation.js +97 -0
  40. package/dist/nodes/Qontext/actions/file/updateFile.operation.js.map +1 -0
  41. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.d.ts +2 -0
  42. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js +72 -0
  43. package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js.map +1 -0
  44. package/dist/nodes/Qontext/actions/folder/createFolder.operation.d.ts +2 -0
  45. package/dist/nodes/Qontext/actions/folder/createFolder.operation.js +88 -0
  46. package/dist/nodes/Qontext/actions/folder/createFolder.operation.js.map +1 -0
  47. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.d.ts +2 -0
  48. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js +33 -0
  49. package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js.map +1 -0
  50. package/dist/nodes/Qontext/actions/folder/folder.resource.d.ts +2 -0
  51. package/dist/nodes/Qontext/actions/folder/folder.resource.js +103 -0
  52. package/dist/nodes/Qontext/actions/folder/folder.resource.js.map +1 -0
  53. package/dist/nodes/Qontext/actions/folder/getFolder.operation.d.ts +2 -0
  54. package/dist/nodes/Qontext/actions/folder/getFolder.operation.js +13 -0
  55. package/dist/nodes/Qontext/actions/folder/getFolder.operation.js.map +1 -0
  56. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.d.ts +2 -0
  57. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js +105 -0
  58. package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js.map +1 -0
  59. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.d.ts +2 -0
  60. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js +71 -0
  61. package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js.map +1 -0
  62. package/dist/nodes/Qontext/actions/search/search.resource.d.ts +2 -0
  63. package/dist/nodes/Qontext/actions/search/search.resource.js +63 -0
  64. package/dist/nodes/Qontext/actions/search/search.resource.js.map +1 -0
  65. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.d.ts +2 -0
  66. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js +75 -0
  67. package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js.map +1 -0
  68. package/dist/nodes/Qontext/actions/search/searchRegex.operation.d.ts +2 -0
  69. package/dist/nodes/Qontext/actions/search/searchRegex.operation.js +75 -0
  70. package/dist/nodes/Qontext/actions/search/searchRegex.operation.js.map +1 -0
  71. package/dist/nodes/Qontext/methods/listSearch.d.ts +4 -0
  72. package/dist/nodes/Qontext/methods/listSearch.js +48 -0
  73. package/dist/nodes/Qontext/methods/listSearch.js.map +1 -0
  74. package/dist/package.json +16 -7
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +16 -7
  77. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.dark.svg +0 -13
  78. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.svg +0 -13
  79. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.dark.svg +0 -3
  80. package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.svg +0 -3
  81. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.dark.svg +0 -13
  82. package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.svg +0 -13
  83. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.d.ts +0 -2
  84. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js +0 -217
  85. package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js.map +0 -1
  86. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.d.ts +0 -2
  87. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js +0 -37
  88. package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js.map +0 -1
  89. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.d.ts +0 -2
  90. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js +0 -61
  91. package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js.map +0 -1
  92. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.d.ts +0 -2
  93. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js +0 -80
  94. package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js.map +0 -1
  95. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.d.ts +0 -2
  96. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js +0 -41
  97. package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js.map +0 -1
  98. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.d.ts +0 -2
  99. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js +0 -83
  100. package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rootAware = exports.ROOT_VALUE = void 0;
4
+ exports.fileLocator = fileLocator;
5
+ exports.folderLocator = folderLocator;
6
+ const resolvePath_1 = require("./resolvePath");
7
+ const FILE_ID_REGEX = '^doc_[a-z0-9]{14}$';
8
+ const FOLDER_ID_REGEX = '^dir_[a-z0-9]{14}$';
9
+ const FILE_PATH_REGEX = '^/.*\\.md$';
10
+ const FOLDER_PATH_REGEX = '^/(?!.*\\.md$).*$';
11
+ exports.ROOT_VALUE = '__root__';
12
+ const rootAware = (property) => ({
13
+ send: {
14
+ type: 'body',
15
+ property,
16
+ value: `={{ !$value || $value === "${exports.ROOT_VALUE}" ? null : $value }}`,
17
+ },
18
+ });
19
+ exports.rootAware = rootAware;
20
+ function idMode(regex, placeholder, errorMessage) {
21
+ return {
22
+ displayName: 'By ID',
23
+ name: 'id',
24
+ type: 'string',
25
+ default: '',
26
+ placeholder,
27
+ validation: [{ type: 'regex', properties: { regex, errorMessage } }],
28
+ };
29
+ }
30
+ function listMode(searchListMethod, placeholder) {
31
+ return {
32
+ displayName: 'From List',
33
+ name: 'list',
34
+ type: 'list',
35
+ default: '',
36
+ placeholder,
37
+ typeOptions: {
38
+ searchListMethod,
39
+ searchable: true,
40
+ },
41
+ };
42
+ }
43
+ function pathMode(regex, placeholder, errorMessage) {
44
+ return {
45
+ displayName: 'By Path',
46
+ name: 'path',
47
+ type: 'string',
48
+ default: '',
49
+ placeholder,
50
+ validation: [{ type: 'regex', properties: { regex, errorMessage } }],
51
+ };
52
+ }
53
+ function fileLocator(name, displayName, options) {
54
+ const modes = [
55
+ idMode(FILE_ID_REGEX, 'e.g. doc_9f2k1x8b3m7q0v', 'Not a file ID. Expected doc_ followed by 14 characters.'),
56
+ listMode('searchFiles', 'Select a file…'),
57
+ ];
58
+ if (options.byPath) {
59
+ modes.push(pathMode(FILE_PATH_REGEX, 'e.g. /support/policies/refunds.md', 'Not a file path. Expected an absolute path ending in .md.'));
60
+ }
61
+ return locator(name, displayName, modes, options, (0, resolvePath_1.resolveFilePath)(name));
62
+ }
63
+ function folderLocator(name, displayName, options) {
64
+ const modes = [
65
+ idMode(FOLDER_ID_REGEX, 'e.g. dir_9f2k1x8b3m7q0v', 'Not a folder ID. Expected dir_ followed by 14 characters.'),
66
+ listMode(options.includeRoot ? 'searchFoldersWithRoot' : 'searchFolders', 'Select a folder…'),
67
+ ];
68
+ if (options.byPath) {
69
+ modes.push(pathMode(FOLDER_PATH_REGEX, 'e.g. /support/policies', 'Not a folder path. Expected an absolute path not ending in .md.'));
70
+ }
71
+ return locator(name, displayName, modes, options, (0, resolvePath_1.resolveFolderPath)(name));
72
+ }
73
+ function locator(name, displayName, modes, options, resolve) {
74
+ var _a, _b;
75
+ const send = { ...(_a = options.routing) === null || _a === void 0 ? void 0 : _a.send };
76
+ if (options.byPath)
77
+ send.preSend = [...((_b = send.preSend) !== null && _b !== void 0 ? _b : []), resolve];
78
+ return {
79
+ displayName,
80
+ name,
81
+ type: 'resourceLocator',
82
+ default: { mode: options.includeRoot ? 'list' : 'id', value: '' },
83
+ description: options.description,
84
+ required: options.required,
85
+ displayOptions: options.displayOptions,
86
+ modes,
87
+ ...(Object.keys(send).length ? { routing: { ...options.routing, send } } : {}),
88
+ };
89
+ }
90
+ //# sourceMappingURL=locator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locator.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/common/locator.ts"],"names":[],"mappings":";;;AA4GA,kCAiBC;AAED,sCAiBC;AA1ID,+CAAmE;AAenE,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAI7C,MAAM,eAAe,GAAG,YAAY,CAAC;AACrC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AAKjC,QAAA,UAAU,GAAG,UAAU,CAAC;AAI9B,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAwB,EAAE,CAAC,CAAC;IACrE,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ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E,EAAE,EAAE;QACjE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,KAAK;QACL,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9E,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties, INodePropertyRouting } from 'n8n-workflow';
2
+ export declare function listProperties(resource: string, operation: string, cursorFilters: string[]): INodeProperties[];
3
+ export declare const listRouting: Pick<INodePropertyRouting, 'operations'>;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listRouting = void 0;
4
+ exports.listProperties = listProperties;
5
+ function listProperties(resource, operation, cursorFilters) {
6
+ const show = { resource: [resource], operation: [operation] };
7
+ return [
8
+ {
9
+ displayName: 'Return All',
10
+ name: 'returnAll',
11
+ type: 'boolean',
12
+ default: false,
13
+ description: 'Whether to return all results or only up to a given limit',
14
+ displayOptions: { show },
15
+ routing: {
16
+ send: {
17
+ paginate: '={{$value}}',
18
+ },
19
+ },
20
+ },
21
+ {
22
+ displayName: 'Limit',
23
+ name: 'limit',
24
+ type: 'number',
25
+ default: 50,
26
+ description: 'Max number of results to return',
27
+ typeOptions: {
28
+ minValue: 1,
29
+ maxValue: 1000,
30
+ },
31
+ displayOptions: { show: { ...show, returnAll: [false] } },
32
+ routing: {
33
+ send: {
34
+ type: 'query',
35
+ property: 'limit',
36
+ value: '={{$value}}',
37
+ },
38
+ output: {
39
+ maxResults: '={{$value}}',
40
+ },
41
+ },
42
+ },
43
+ {
44
+ displayName: 'Cursor',
45
+ name: 'cursor',
46
+ type: 'string',
47
+ default: '',
48
+ placeholder: 'e.g. c_9f2k1x8b3m7q0v',
49
+ description: 'A nextCursor from an earlier page. Opaque: echo it back, never construct one. Changing a filter invalidates it, so start again from the first page.',
50
+ displayOptions: {
51
+ show: { ...show, returnAll: [false], filterBy: cursorFilters },
52
+ },
53
+ routing: {
54
+ send: {
55
+ type: 'query',
56
+ property: 'cursor',
57
+ value: '={{ $value || undefined }}',
58
+ },
59
+ },
60
+ },
61
+ {
62
+ displayName: 'Simplify',
63
+ name: 'simplify',
64
+ type: 'boolean',
65
+ default: true,
66
+ description: 'Whether to return a simplified version of the response instead of the raw data',
67
+ displayOptions: { show },
68
+ routing: {
69
+ output: {
70
+ postReceive: [
71
+ {
72
+ type: 'rootProperty',
73
+ enabled: '={{$value}}',
74
+ properties: {
75
+ property: 'data',
76
+ },
77
+ },
78
+ ],
79
+ },
80
+ },
81
+ },
82
+ ];
83
+ }
84
+ exports.listRouting = {
85
+ operations: {
86
+ pagination: {
87
+ type: 'generic',
88
+ properties: {
89
+ continue: '={{ $response.body?.hasMore === true && !!$response.body?.nextCursor }}',
90
+ request: {
91
+ qs: {
92
+ limit: '={{ $request.qs.limit }}',
93
+ path: '={{ $request.qs.path }}',
94
+ path_prefix: '={{ $request.qs.path_prefix }}',
95
+ folder_id: '={{ $request.qs.folder_id }}',
96
+ parent_id: '={{ $request.qs.parent_id }}',
97
+ cursor: '={{ $response.body ? $response.body.nextCursor : undefined }}',
98
+ },
99
+ },
100
+ },
101
+ },
102
+ },
103
+ };
104
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/common/pagination.ts"],"names":[],"mappings":";;;AAcA,wCAyFC;AAzFD,SAAgB,cAAc,CAC7B,QAAgB,EAChB,SAAiB,EACjB,aAAuB;IAEvB,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,C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O,EAAE,IAAI;YACb,WAAW,EAAE,gFAAgF;YAC7F,cAAc,EAAE,EAAE,IAAI,EAAE;YACxB,OAAO,EAAE;gBACR,MAAM,EAAE;oBACP,WAAW,EAAE;wBACZ;4BACC,IAAI,EAAE,cAAc;4BAEpB,OAAO,EAAE,aAAa;4BACtB,UAAU,EAAE;gCACX,QAAQ,EAAE,MAAM;6BAChB;yBACD;qBACD;iBACD;aACD;SACD;KACD,CAAC;AACH,CAAC;AAWY,QAAA,WAAW,GAA6C;IACpE,UAAU,EAAE;QACX,UAAU,EAAE;YACX,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBAIX,QAAQ,EACP,yEAAyE;gBAC1E,OAAO,EAAE;oBACR,EAAE,EAAE;wBACH,KAAK,EAAE,0BAA0B;wBACjC,IAAI,EAAE,yBAAyB;wBAC/B,WAAW,EAAE,gCAAgC;wBAC7C,SAAS,EAAE,8BAA8B;wBACzC,SAAS,EAAE,8BAA8B;wBACzC,MAAM,EAAE,+DAA+D;qBACvE;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type IExecuteSingleFunctions, type IHttpRequestOptions } from 'n8n-workflow';
2
+ export declare const resolveFilePath: (name: string) => (this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>;
3
+ export declare const resolveFolderPath: (name: string) => (this: IExecuteSingleFunctions, requestOptions: IHttpRequestOptions) => Promise<IHttpRequestOptions>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveFolderPath = exports.resolveFilePath = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const api_1 = require("./api");
6
+ function resolver(name, collection, kind) {
7
+ return async function resolve(requestOptions) {
8
+ var _a, _b, _c;
9
+ const parameter = this.getNodeParameter(name, undefined, { extractValue: false });
10
+ if ((parameter === null || parameter === void 0 ? void 0 : parameter.mode) !== 'path')
11
+ return requestOptions;
12
+ const path = (_a = parameter.value) !== null && _a !== void 0 ? _a : '';
13
+ const body = (await this.helpers.httpRequestWithAuthentication.call(this, 'qontextApi', {
14
+ method: 'GET',
15
+ baseURL: (await this.getCredentials('qontextApi')).baseUrl,
16
+ url: collection,
17
+ qs: { path },
18
+ }));
19
+ const match = (_b = body.data) === null || _b === void 0 ? void 0 : _b[0];
20
+ if (!match) {
21
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No ${kind} at "${path}"`, {
22
+ description: `Nothing in this workspace is at that path, or the API key may not read it. Check the path, or address the ${kind} by ID.`,
23
+ });
24
+ }
25
+ const rest = ((_c = requestOptions.url) === null || _c === void 0 ? void 0 : _c.startsWith(`${collection}/`))
26
+ ? requestOptions.url.slice(`${collection}/`.length)
27
+ : '';
28
+ const boundary = rest.indexOf('/');
29
+ const tail = boundary === -1 ? '' : rest.slice(boundary);
30
+ return { ...requestOptions, url: `${collection}/${match.id}${tail}` };
31
+ };
32
+ }
33
+ const resolveFilePath = (name) => resolver(name, api_1.FILES_URL, 'file');
34
+ exports.resolveFilePath = resolveFilePath;
35
+ const resolveFolderPath = (name) => resolver(name, api_1.FOLDERS_URL, 'folder');
36
+ exports.resolveFolderPath = resolveFolderPath;
37
+ //# sourceMappingURL=resolvePath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePath.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/common/resolvePath.ts"],"names":[],"mappings":";;;AAAA,+CAIsB;AACtB,+BAA+C;AAa/C,SAAS,QAAQ,CAAC,IAAY,EAAE,UAAkB,EAAE,IAAuB;IAC1E,OAAO,KAAK,UAAU,OAAO,CAE5B,cAAmC;;QAGnC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAGxE,CAAC;QAET,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,MAAK,MAAM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AACH,CAAC;AAEM,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAS,EAAE,MAAM,CAAC,CAAC;AAAtE,QAAA,eAAe,mBAAuD;AAC5E,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,iBAAW,EAAE,QAAQ,CAAC,CAAC;AAA5E,QAAA,iBAAiB,qBAA2D"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createFileOperation: INodeProperties[];
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createFileOperation = void 0;
4
+ const locator_1 = require("../common/locator");
5
+ exports.createFileOperation = [
6
+ {
7
+ displayName: 'Create By',
8
+ name: 'createBy',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ default: 'path',
12
+ description: 'How to say where the new file goes',
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['file'],
16
+ operation: ['create'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Parent Folder',
22
+ value: 'parentFolder',
23
+ description: 'Name an existing folder by ID and give the file a name',
24
+ },
25
+ {
26
+ name: 'Path',
27
+ value: 'path',
28
+ description: 'Give the full absolute path of the new file',
29
+ },
30
+ ],
31
+ },
32
+ {
33
+ displayName: 'Path',
34
+ name: 'path',
35
+ type: 'string',
36
+ default: '',
37
+ placeholder: 'e.g. /support/policies/refunds.md',
38
+ description: 'Where to create the file. Absolute, and ends in .md. A path already holding a file is a conflict, never an overwrite.',
39
+ required: true,
40
+ displayOptions: {
41
+ show: {
42
+ resource: ['file'],
43
+ operation: ['create'],
44
+ createBy: ['path'],
45
+ },
46
+ },
47
+ routing: {
48
+ send: {
49
+ type: 'body',
50
+ property: 'path',
51
+ value: '={{$value}}',
52
+ },
53
+ },
54
+ },
55
+ (0, locator_1.folderLocator)('parentId', 'Parent Folder ID', {
56
+ description: 'Parent folder. Send with File Name instead of Path.',
57
+ required: true,
58
+ displayOptions: {
59
+ show: { resource: ['file'], operation: ['create'], createBy: ['parentFolder'] },
60
+ },
61
+ routing: {
62
+ send: {
63
+ type: 'body',
64
+ property: 'parentId',
65
+ value: '={{$value}}',
66
+ },
67
+ },
68
+ }),
69
+ {
70
+ displayName: 'File Name',
71
+ name: 'fileName',
72
+ type: 'string',
73
+ default: '',
74
+ placeholder: 'e.g. refunds.md',
75
+ description: 'File name, ending in .md. Send with Parent Folder ID instead of Path.',
76
+ required: true,
77
+ displayOptions: {
78
+ show: {
79
+ resource: ['file'],
80
+ operation: ['create'],
81
+ createBy: ['parentFolder'],
82
+ },
83
+ },
84
+ routing: {
85
+ send: {
86
+ type: 'body',
87
+ property: 'fileName',
88
+ value: '={{$value}}',
89
+ },
90
+ },
91
+ },
92
+ {
93
+ displayName: 'Content',
94
+ name: 'content',
95
+ type: 'string',
96
+ default: '',
97
+ description: 'Markdown or plain text',
98
+ hint: 'A very long document is rejected with content_too_large, which reports the current limit',
99
+ required: true,
100
+ typeOptions: {
101
+ rows: 6,
102
+ },
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['file'],
106
+ operation: ['create'],
107
+ },
108
+ },
109
+ routing: {
110
+ send: {
111
+ type: 'body',
112
+ property: 'content',
113
+ value: '={{$value}}',
114
+ },
115
+ },
116
+ },
117
+ ];
118
+ //# sourceMappingURL=createFile.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFile.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/file/createFile.operation.ts"],"names":[],"mappings":";;;AAIA,+CAAkD;AAMrC,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,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ACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,uEAAuE;QACpF,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,cAAc,CAAC;aAC1B;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wBAAwB;QAErC,IAAI,EAAE,0FAA0F;QAChG,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,SAAS;gBACnB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteFileOperation: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteFileOperation = void 0;
4
+ const locator_1 = require("../common/locator");
5
+ exports.deleteFileOperation = [
6
+ (0, locator_1.fileLocator)('fileId', 'File ID', {
7
+ description: 'The file to delete',
8
+ required: true,
9
+ byPath: true,
10
+ displayOptions: { show: { resource: ['file'], operation: ['delete'] } },
11
+ }),
12
+ ];
13
+ //# sourceMappingURL=deleteFile.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteFile.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/file/deleteFile.operation.ts"],"names":[],"mappings":";;;AAIA,+CAAgD;AAEnC,QAAA,mBAAmB,GAAsB;IACrD,IAAA,qBAAW,EAAC,QAAQ,EAAE,SAAS,EAAE;QAChC,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KACvE,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const fileOperations: INodeProperties[];
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fileOperations = void 0;
4
+ const api_1 = require("../common/api");
5
+ const pagination_1 = require("../common/pagination");
6
+ const createFile_operation_1 = require("./createFile.operation");
7
+ const deleteFile_operation_1 = require("./deleteFile.operation");
8
+ const getFile_operation_1 = require("./getFile.operation");
9
+ const getManyFiles_operation_1 = require("./getManyFiles.operation");
10
+ const updateFile_operation_1 = require("./updateFile.operation");
11
+ const updateFileContent_operation_1 = require("./updateFileContent.operation");
12
+ exports.fileOperations = [
13
+ {
14
+ displayName: 'Operation',
15
+ name: 'operation',
16
+ type: 'options',
17
+ noDataExpression: true,
18
+ displayOptions: {
19
+ show: {
20
+ resource: ['file'],
21
+ },
22
+ },
23
+ options: [
24
+ {
25
+ name: 'Create',
26
+ value: 'create',
27
+ action: 'Create a file',
28
+ description: 'Create a file at the path given. Not an upsert: a path already holding a file is a conflict, never an overwrite.',
29
+ routing: {
30
+ request: {
31
+ method: 'POST',
32
+ url: api_1.FILES_URL,
33
+ },
34
+ },
35
+ },
36
+ {
37
+ name: 'Delete',
38
+ value: 'delete',
39
+ action: 'Delete a file',
40
+ description: 'Delete a file. Its change history goes with it, so this is not reversible. A protected file, or one with changes awaiting review, is refused.',
41
+ routing: {
42
+ request: {
43
+ method: 'DELETE',
44
+ url: `=${api_1.FILES_URL}/{{ encodeURIComponent($parameter["fileId"]) }}`,
45
+ },
46
+ output: {
47
+ postReceive: [
48
+ {
49
+ type: 'set',
50
+ properties: {
51
+ value: '={{ { "success": true } }}',
52
+ },
53
+ },
54
+ ],
55
+ },
56
+ },
57
+ },
58
+ {
59
+ name: 'Get',
60
+ value: 'get',
61
+ action: 'Get a file',
62
+ description: 'Get a file by its ID, with its full content. A file in another workspace answers as not found, so existence does not leak.',
63
+ routing: {
64
+ request: {
65
+ method: 'GET',
66
+ url: `=${api_1.FILES_URL}/{{ encodeURIComponent($parameter["fileId"]) }}`,
67
+ },
68
+ },
69
+ },
70
+ {
71
+ name: 'Get Many',
72
+ value: 'getAll',
73
+ action: 'Get many files',
74
+ description: 'List files. Cursor paginated, never offset: a short page does not mean the end, so page until there are no more.',
75
+ routing: {
76
+ request: {
77
+ method: 'GET',
78
+ url: api_1.FILES_URL,
79
+ },
80
+ ...pagination_1.listRouting,
81
+ },
82
+ },
83
+ {
84
+ name: 'Update',
85
+ value: 'update',
86
+ action: 'Update a file',
87
+ description: 'Rename a file, move it to another folder, or change whether writes to it go to review. Exactly one of the three per request.',
88
+ routing: {
89
+ request: {
90
+ method: 'PATCH',
91
+ url: `=${api_1.FILES_URL}/{{ encodeURIComponent($parameter["fileId"]) }}`,
92
+ },
93
+ },
94
+ },
95
+ {
96
+ name: 'Update Content',
97
+ value: 'updateContent',
98
+ action: 'Update file content',
99
+ description: 'Replace the entire file content, based on the Base Change ID of the file. If the file changed first the edit is merged when possible, so use the returned content for the next edit.',
100
+ routing: {
101
+ request: {
102
+ method: 'PUT',
103
+ url: `=${api_1.FILES_URL}/{{ encodeURIComponent($parameter["fileId"]) }}/content`,
104
+ },
105
+ },
106
+ },
107
+ ],
108
+ default: 'getAll',
109
+ },
110
+ ...createFile_operation_1.createFileOperation,
111
+ ...deleteFile_operation_1.deleteFileOperation,
112
+ ...getFile_operation_1.getFileOperation,
113
+ ...getManyFiles_operation_1.getManyFilesOperation,
114
+ ...updateFile_operation_1.updateFileOperation,
115
+ ...updateFileContent_operation_1.updateFileContentOperation,
116
+ ];
117
+ //# sourceMappingURL=file.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.resource.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/file/file.resource.ts"],"names":[],"mappings":";;;AACA,uCAA0C;AAC1C,qDAAmD;AACnD,iEAA6D;AAC7D,iEAA6D;AAC7D,2DAAuD;AACvD,qEAAiE;AACjE,iEAA6D;AAC7D,+EAA2E;AAE9D,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EAAE,kHAAkH;gBAC/H,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,eAAS;qBACd;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EACV,+IAA+I;gBAChJ,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,IAAI,eAAS,iDAAiD;qBACnE;oBACD,MAAM,EAAE;wBAEP,WAAW,EAAE;4BACZ;gCACC,IAAI,EAAE,KAAK;gCACX,UAAU,EAAE;oCACX,KAAK,EAAE,4BAA4B;iCACnC;6BACD;yBACD;qBACD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EACV,4HAA4H;gBAC7H,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,IAAI,eAAS,iDAAiD;qBACnE;iBACD;aACD;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,gBAAgB;gBACxB,WAAW,EACV,kHAAkH;gBACnH,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,eAAS;qBACd;oBACD,GAAG,wBAAW;iBACd;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,eAAe;gBACvB,WAAW,EACV,8HAA8H;gBAC/H,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,OAAO;wBACf,GAAG,EAAE,IAAI,eAAS,iDAAiD;qBACnE;iBACD;aACD;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,qBAAqB;gBAC7B,WAAW,EAAE,sLAAsL;gBACnM,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,IAAI,eAAS,yDAAyD;qBAC3E;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,0CAAmB;IACtB,GAAG,0CAAmB;IACtB,GAAG,oCAAgB;IACnB,GAAG,8CAAqB;IACxB,GAAG,0CAAmB;IACtB,GAAG,wDAA0B;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getFileOperation: INodeProperties[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFileOperation = void 0;
4
+ const locator_1 = require("../common/locator");
5
+ exports.getFileOperation = [
6
+ (0, locator_1.fileLocator)('fileId', 'File ID', {
7
+ description: 'The file to read. Its ID is stable: it survives a rename or a move. The response carries the file content and the lastChangeId it belongs to, which is what Update Content takes as its Base Change ID.',
8
+ required: true,
9
+ byPath: true,
10
+ displayOptions: { show: { resource: ['file'], operation: ['get'] } },
11
+ }),
12
+ ];
13
+ //# sourceMappingURL=getFile.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFile.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/file/getFile.operation.ts"],"names":[],"mappings":";;;AAIA,+CAAgD;AAEnC,QAAA,gBAAgB,GAAsB;IAClD,IAAA,qBAAW,EAAC,QAAQ,EAAE,SAAS,EAAE;QAChC,WAAW,EACV,yMAAyM;QAC1M,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE;KACpE,CAAC;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getManyFilesOperation: INodeProperties[];