n8n-nodes-base 3.4.0 → 3.4.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.
- package/dist/cjs/build.tsbuildinfo +1 -1
- package/dist/credentials/SchemaRegistryApi.credentials.d.ts.map +1 -1
- package/dist/credentials/SchemaRegistryApi.credentials.js +33 -0
- package/dist/credentials/SchemaRegistryApi.credentials.js.map +1 -1
- package/dist/known/credentials.json +4 -1
- package/dist/known/nodes.json +12 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/index.ts +8 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionResponse/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionResponse/v1.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionResponse/v1.ts +28 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionTrigger/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionTrigger/v1.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/agentDecisionTrigger/v1.ts +20 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/googleAnalytics/v2/resource_report/operation_get.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/messageAnAgent/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/messageAnAgent/v4.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/messageAnAgent/v4.ts +110 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_activate.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_deactivate.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_delete.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_get.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_get_version.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/n8n/v1/resource_workflow/operation_update.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/index.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/index.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_copy.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_copy.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_delete.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_delete.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_download.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_download.ts +43 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_move.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_move.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_share.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_share.ts +66 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_upload.schema.js +26 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_upload.ts +44 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/index.schema.js +30 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/index.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_copy.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_copy.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_create.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_create.ts +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_delete.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_delete.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_list.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_list.ts +37 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_move.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_move.ts +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_share.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_share.ts +66 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/index.schema.js +28 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/index.ts +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_create.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_create.ts +40 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_delete.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_delete.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get.schema.js +23 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get.ts +27 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get_all.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get_all.ts +46 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_update.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_update.ts +44 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v1.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v1.ts +20 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v11.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v11.ts +20 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v12.schema.js +1 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/oracleDatabase/v12.ts +20 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/postgres/v29.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/postgres/v29.ts +0 -5
- package/dist/nodes/AgentChannelApproval/AgentChannelApproval.node.d.ts +6 -0
- package/dist/nodes/AgentChannelApproval/AgentChannelApproval.node.d.ts.map +1 -0
- package/dist/nodes/AgentChannelApproval/AgentChannelApproval.node.js +157 -0
- package/dist/nodes/AgentChannelApproval/AgentChannelApproval.node.js.map +1 -0
- package/dist/nodes/AgentChannelApproval/AgentChannelApproval.node.json +7 -0
- package/dist/nodes/AgentDecision/AgentDecisionResponse.node.d.ts +14 -0
- package/dist/nodes/AgentDecision/AgentDecisionResponse.node.d.ts.map +1 -0
- package/dist/nodes/AgentDecision/AgentDecisionResponse.node.js +58 -0
- package/dist/nodes/AgentDecision/AgentDecisionResponse.node.js.map +1 -0
- package/dist/nodes/AgentDecision/AgentDecisionResponse.node.json +8 -0
- package/dist/nodes/AgentDecision/AgentDecisionTrigger.node.d.ts +7 -0
- package/dist/nodes/AgentDecision/AgentDecisionTrigger.node.d.ts.map +1 -0
- package/dist/nodes/AgentDecision/AgentDecisionTrigger.node.js +73 -0
- package/dist/nodes/AgentDecision/AgentDecisionTrigger.node.js.map +1 -0
- package/dist/nodes/AgentDecision/AgentDecisionTrigger.node.json +8 -0
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +9 -6
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts +2 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.js +67 -24
- package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
- package/dist/nodes/Git/GenericFunctions.d.ts +2 -1
- package/dist/nodes/Git/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Git/GenericFunctions.js +9 -2
- package/dist/nodes/Git/GenericFunctions.js.map +1 -1
- package/dist/nodes/Git/Git.node.d.ts.map +1 -1
- package/dist/nodes/Git/Git.node.js +110 -24
- package/dist/nodes/Git/Git.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +3 -2
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +7 -0
- package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +7 -0
- package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
- package/dist/nodes/If/V1/IfV1.node.d.ts.map +1 -1
- package/dist/nodes/If/V1/IfV1.node.js +1 -0
- package/dist/nodes/If/V1/IfV1.node.js.map +1 -1
- package/dist/nodes/If/V2/IfV2.node.d.ts.map +1 -1
- package/dist/nodes/If/V2/IfV2.node.js +1 -0
- package/dist/nodes/If/V2/IfV2.node.js.map +1 -1
- package/dist/nodes/Kafka/utils.d.ts +24 -7
- package/dist/nodes/Kafka/utils.d.ts.map +1 -1
- package/dist/nodes/Kafka/utils.js +67 -20
- package/dist/nodes/Kafka/utils.js.map +1 -1
- package/dist/nodes/Kafka/v2/transport/config.d.ts.map +1 -1
- package/dist/nodes/Kafka/v2/transport/config.js +1 -10
- package/dist/nodes/Kafka/v2/transport/config.js.map +1 -1
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js +1 -0
- package/dist/nodes/MessageAnAgent/MessageAnAgent.node.js.map +1 -1
- package/dist/nodes/MessageAnAgent/shared.d.ts.map +1 -1
- package/dist/nodes/MessageAnAgent/shared.js +9 -0
- package/dist/nodes/MessageAnAgent/shared.js.map +1 -1
- package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js +1 -1
- package/dist/nodes/MessageAnAgent/v2/MessageAnAgentV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js +3 -2
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +12 -3
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.d.ts +1 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/types.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts +2 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js +34 -0
- package/dist/nodes/Microsoft/Teams/v2/helpers/utils-trigger.js.map +1 -1
- package/dist/nodes/N8n/shared/GenericFunctions.js +1 -1
- package/dist/nodes/N8n/shared/GenericFunctions.js.map +1 -1
- package/dist/nodes/N8n/shared/WorkflowLocator.d.ts.map +1 -1
- package/dist/nodes/N8n/shared/WorkflowLocator.js +0 -1
- package/dist/nodes/N8n/shared/WorkflowLocator.js.map +1 -1
- package/dist/nodes/N8n/v1/N8nV1.node.js +1 -1
- package/dist/nodes/N8n/v1/N8nV1.node.js.map +1 -1
- package/dist/nodes/N8n/v2/N8nV2.node.d.ts +6 -0
- package/dist/nodes/N8n/v2/N8nV2.node.d.ts.map +1 -1
- package/dist/nodes/N8n/v2/N8nV2.node.js +3 -1
- package/dist/nodes/N8n/v2/N8nV2.node.js.map +1 -1
- package/dist/nodes/N8n/v2/generated/properties.generated.d.ts.map +1 -1
- package/dist/nodes/N8n/v2/generated/properties.generated.js +1265 -1
- package/dist/nodes/N8n/v2/generated/properties.generated.js.map +1 -1
- package/dist/nodes/N8n/v2/overrides.d.ts +571 -187
- package/dist/nodes/N8n/v2/overrides.d.ts.map +1 -1
- package/dist/nodes/N8n/v2/overrides.js +192 -189
- package/dist/nodes/N8n/v2/overrides.js.map +1 -1
- package/dist/nodes/NextCloud/GenericFunctions.d.ts +1 -0
- package/dist/nodes/NextCloud/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/NextCloud/GenericFunctions.js +37 -0
- package/dist/nodes/NextCloud/GenericFunctions.js.map +1 -1
- package/dist/nodes/NextCloud/NextCloud.node.d.ts.map +1 -1
- package/dist/nodes/NextCloud/NextCloud.node.js +6 -1
- package/dist/nodes/NextCloud/NextCloud.node.js.map +1 -1
- package/dist/nodes/NextCloud/__schema__/v1.1.0/file/download.json +24 -0
- package/dist/nodes/NextCloud/__schema__/v1.1.0/folder/create.json +9 -0
- package/dist/nodes/NextCloud/__schema__/v1.1.0/folder/list.json +24 -0
- package/dist/nodes/Notion/shared/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Oracle/Sql/actions/common.descriptions.d.ts +1 -0
- package/dist/nodes/Oracle/Sql/actions/common.descriptions.d.ts.map +1 -1
- package/dist/nodes/Oracle/Sql/actions/common.descriptions.js +43 -1
- package/dist/nodes/Oracle/Sql/actions/common.descriptions.js.map +1 -1
- package/dist/nodes/Oracle/Sql/actions/database/select.operation.d.ts.map +1 -1
- package/dist/nodes/Oracle/Sql/actions/database/select.operation.js +36 -5
- package/dist/nodes/Oracle/Sql/actions/database/select.operation.js.map +1 -1
- package/dist/nodes/Oracle/Sql/helpers/interfaces.d.ts +9 -0
- package/dist/nodes/Oracle/Sql/helpers/interfaces.d.ts.map +1 -1
- package/dist/nodes/Oracle/Sql/helpers/utils.d.ts +16 -1
- package/dist/nodes/Oracle/Sql/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Oracle/Sql/helpers/utils.js +133 -1
- package/dist/nodes/Oracle/Sql/helpers/utils.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/common.descriptions.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/actions/common.descriptions.js +4 -1
- package/dist/nodes/Postgres/v2/actions/common.descriptions.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +2 -1
- package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +1 -0
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Postgres/v2/helpers/utils.js +82 -32
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.d.ts.map +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js +1 -0
- package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
- package/dist/nodes/Snowflake/GenericFunctions.d.ts +2 -0
- package/dist/nodes/Snowflake/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Snowflake/GenericFunctions.js +6 -0
- package/dist/nodes/Snowflake/GenericFunctions.js.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.d.ts.map +1 -1
- package/dist/nodes/Snowflake/Snowflake.node.js +155 -98
- package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
- package/dist/nodes/Snowflake/__tests__/snowflake-test-utils.d.ts +26 -0
- package/dist/nodes/Snowflake/__tests__/snowflake-test-utils.d.ts.map +1 -0
- package/dist/nodes/Snowflake/__tests__/snowflake-test-utils.js +36 -0
- package/dist/nodes/Snowflake/__tests__/snowflake-test-utils.js.map +1 -0
- package/dist/nodes/Splunk/v2/transport/index.d.ts +1 -1
- package/dist/nodes/Splunk/v2/transport/index.d.ts.map +1 -1
- package/dist/nodes/Splunk/v2/transport/index.js +10 -12
- package/dist/nodes/Splunk/v2/transport/index.js.map +1 -1
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js +1 -1
- package/dist/nodes/SpreadsheetFile/v1/SpreadsheetFileV1.node.js.map +1 -1
- package/dist/nodes/Transform/Limit/Limit.node.d.ts.map +1 -1
- package/dist/nodes/Transform/Limit/Limit.node.js +1 -0
- package/dist/nodes/Transform/Limit/Limit.node.js.map +1 -1
- package/dist/types/credentials.json +4 -4
- package/dist/types/nodes.json +16 -13
- package/dist/utils/sql-query-parameters.d.ts +3 -1
- package/dist/utils/sql-query-parameters.d.ts.map +1 -1
- package/dist/utils/sql-query-parameters.js +32 -9
- package/dist/utils/sql-query-parameters.js.map +1 -1
- package/package.json +15 -11
- package/dist/nodes/N8n/shared/constants.d.ts +0 -3
- package/dist/nodes/N8n/shared/constants.d.ts.map +0 -1
- package/dist/nodes/N8n/shared/constants.js +0 -8
- package/dist/nodes/N8n/shared/constants.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=copy
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('copy'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
toPath: stringOrExpression,
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_copy.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=copy
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Copy a file */
|
|
13
|
+
export type NextCloudV11FileCopyParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'copy';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path of file or folder to copy. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The destination path of file or folder. The path should start with "/".
|
|
23
|
+
*/
|
|
24
|
+
toPath: string | Expression<string>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type NextCloudV11FileCopyNode = {
|
|
28
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
29
|
+
version: 1.1;
|
|
30
|
+
config: NodeConfig<NextCloudV11FileCopyParams> & { credentials?: Credentials };
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=delete
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('delete'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_delete.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=delete
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Delete a file */
|
|
13
|
+
export type NextCloudV11FileDeleteParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'delete';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path to delete. Can be a single file or a whole folder. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11FileDeleteNode = {
|
|
24
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
25
|
+
version: 1.1;
|
|
26
|
+
config: NodeConfig<NextCloudV11FileDeleteParams> & { credentials?: Credentials };
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=download
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('download'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
binaryPropertyName: stringOrExpression.optional(),
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_download.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=download
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Download a file */
|
|
13
|
+
export type NextCloudV11FileDownloadParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'download';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The file path of the file to download. Has to contain the full path. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Put Output File in Field
|
|
23
|
+
* @hint The name of the output binary field to put the file in
|
|
24
|
+
* @default data
|
|
25
|
+
*/
|
|
26
|
+
binaryPropertyName?: string | Expression<string>;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type NextCloudV11FileDownloadOutput = {
|
|
30
|
+
contentLength?: string;
|
|
31
|
+
contentType?: string;
|
|
32
|
+
eTag?: string;
|
|
33
|
+
lastModified?: string;
|
|
34
|
+
path?: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type NextCloudV11FileDownloadNode = {
|
|
39
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
40
|
+
version: 1.1;
|
|
41
|
+
config: NodeConfig<NextCloudV11FileDownloadParams> & { credentials?: Credentials };
|
|
42
|
+
output?: Items<NextCloudV11FileDownloadOutput>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=move
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('move'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
toPath: stringOrExpression,
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_move.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=move
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Move a file */
|
|
13
|
+
export type NextCloudV11FileMoveParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'move';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path of file or folder to move. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The new path of file or folder. The path should start with "/".
|
|
23
|
+
*/
|
|
24
|
+
toPath: string | Expression<string>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type NextCloudV11FileMoveNode = {
|
|
28
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
29
|
+
version: 1.1;
|
|
30
|
+
config: NodeConfig<NextCloudV11FileMoveParams> & { credentials?: Credentials };
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=share
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('share'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
shareType: z.union([z.literal(7), z.literal(4), z.literal(1), z.literal(200), z.literal(3), z.literal(0), expressionSchema]).optional(),
|
|
22
|
+
circleId: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"shareType":[7]}}, defaults: {"shareType":0} }),
|
|
23
|
+
email: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"shareType":[4]}}, defaults: {"shareType":0} }),
|
|
24
|
+
groupId: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"shareType":[1]}}, defaults: {"shareType":0} }),
|
|
25
|
+
user: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"shareType":[0]}}, defaults: {"shareType":0} }),
|
|
26
|
+
options: z.object({ password: stringOrExpression.optional(), permissions: z.union([z.literal(31), z.literal(4), z.literal(8), z.literal(1), z.literal(2), expressionSchema]).optional() }).optional(),
|
|
27
|
+
}).optional(),
|
|
28
|
+
});
|
|
29
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_share.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=share
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Share a file */
|
|
13
|
+
export type NextCloudV11FileShareParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'share';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The file path of the file to share. Has to contain the full path. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The share permissions to set
|
|
23
|
+
* @default 0
|
|
24
|
+
*/
|
|
25
|
+
shareType?: 7 | 4 | 1 | 200 | 3 | 0 | Expression<number>;
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the circle to share with
|
|
28
|
+
* @displayOptions.show { shareType: [7] }
|
|
29
|
+
*/
|
|
30
|
+
circleId?: string | Expression<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The Email address to share with
|
|
33
|
+
* @displayOptions.show { shareType: [4] }
|
|
34
|
+
*/
|
|
35
|
+
email?: string | Expression<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the group to share with
|
|
38
|
+
* @displayOptions.show { shareType: [1] }
|
|
39
|
+
*/
|
|
40
|
+
groupId?: string | Expression<string>;
|
|
41
|
+
/**
|
|
42
|
+
* The user to share with
|
|
43
|
+
* @displayOptions.show { shareType: [0] }
|
|
44
|
+
*/
|
|
45
|
+
user?: string | Expression<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Options
|
|
48
|
+
* @default {}
|
|
49
|
+
*/
|
|
50
|
+
options?: {
|
|
51
|
+
/** Optional search string
|
|
52
|
+
* @displayOptions.show { /shareType: [3] }
|
|
53
|
+
*/
|
|
54
|
+
password?: string | Expression<string>;
|
|
55
|
+
/** The share permissions to set
|
|
56
|
+
* @default 1
|
|
57
|
+
*/
|
|
58
|
+
permissions?: 31 | 4 | 8 | 1 | 2 | Expression<number>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export type NextCloudV11FileShareNode = {
|
|
63
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
64
|
+
version: 1.1;
|
|
65
|
+
config: NodeConfig<NextCloudV11FileShareParams> & { credentials?: Credentials };
|
|
66
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=file, operation=upload
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('file').default('file'),
|
|
18
|
+
operation: z.literal('upload').default('upload'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
binaryDataUpload: booleanOrExpression.optional(),
|
|
22
|
+
fileContent: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"binaryDataUpload":[false]}}, defaults: {"binaryDataUpload":false} }),
|
|
23
|
+
binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"binaryDataUpload":[true]}}, defaults: {"binaryDataUpload":false} }),
|
|
24
|
+
}).optional(),
|
|
25
|
+
});
|
|
26
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_file/operation_upload.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=file, operation=upload
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Upload a file */
|
|
13
|
+
export type NextCloudV11FileUploadParams = {
|
|
14
|
+
resource: 'file';
|
|
15
|
+
operation: 'upload';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The absolute file path of the file to upload. Has to contain the full path. The parent folder has to exist. Existing files get overwritten.
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Binary File
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
binaryDataUpload?: boolean | Expression<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* The text content of the file to upload
|
|
28
|
+
* @displayOptions.show { binaryDataUpload: [false] }
|
|
29
|
+
*/
|
|
30
|
+
fileContent?: string | Expression<string>;
|
|
31
|
+
/**
|
|
32
|
+
* Input Binary Field
|
|
33
|
+
* @hint The name of the input binary field containing the file to be uploaded
|
|
34
|
+
* @displayOptions.show { binaryDataUpload: [true] }
|
|
35
|
+
* @default data
|
|
36
|
+
*/
|
|
37
|
+
binaryPropertyName?: string | Expression<string>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type NextCloudV11FileUploadNode = {
|
|
41
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
42
|
+
version: 1.1;
|
|
43
|
+
config: NodeConfig<NextCloudV11FileUploadParams> & { credentials?: Credentials };
|
|
44
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/index.schema.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud - Folder Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getCopySchema = require('./operation_copy.schema');
|
|
12
|
+
const getCreateSchema = require('./operation_create.schema');
|
|
13
|
+
const getDeleteSchema = require('./operation_delete.schema');
|
|
14
|
+
const getListSchema = require('./operation_list.schema');
|
|
15
|
+
const getMoveSchema = require('./operation_move.schema');
|
|
16
|
+
const getShareSchema = require('./operation_share.schema');
|
|
17
|
+
|
|
18
|
+
module.exports = function getSchema(helpers) {
|
|
19
|
+
const { parameters, z } = helpers;
|
|
20
|
+
// Apply operation default if not set
|
|
21
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'create' } : parameters;
|
|
22
|
+
return z.union([
|
|
23
|
+
getCopySchema({ ...helpers, parameters: effectiveParams }),
|
|
24
|
+
getCreateSchema({ ...helpers, parameters: effectiveParams }),
|
|
25
|
+
getDeleteSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
|
+
getListSchema({ ...helpers, parameters: effectiveParams }),
|
|
27
|
+
getMoveSchema({ ...helpers, parameters: effectiveParams }),
|
|
28
|
+
getShareSchema({ ...helpers, parameters: effectiveParams }),
|
|
29
|
+
]);
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud - Folder Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { NextCloudV11FolderCopyNode } from './operation_copy';
|
|
7
|
+
import type { NextCloudV11FolderCreateNode } from './operation_create';
|
|
8
|
+
import type { NextCloudV11FolderDeleteNode } from './operation_delete';
|
|
9
|
+
import type { NextCloudV11FolderListNode } from './operation_list';
|
|
10
|
+
import type { NextCloudV11FolderMoveNode } from './operation_move';
|
|
11
|
+
import type { NextCloudV11FolderShareNode } from './operation_share';
|
|
12
|
+
|
|
13
|
+
export * from './operation_copy';
|
|
14
|
+
export * from './operation_create';
|
|
15
|
+
export * from './operation_delete';
|
|
16
|
+
export * from './operation_list';
|
|
17
|
+
export * from './operation_move';
|
|
18
|
+
export * from './operation_share';
|
|
19
|
+
|
|
20
|
+
export type NextCloudV11FolderNode =
|
|
21
|
+
| NextCloudV11FolderCopyNode
|
|
22
|
+
| NextCloudV11FolderCreateNode
|
|
23
|
+
| NextCloudV11FolderDeleteNode
|
|
24
|
+
| NextCloudV11FolderListNode
|
|
25
|
+
| NextCloudV11FolderMoveNode
|
|
26
|
+
| NextCloudV11FolderShareNode
|
|
27
|
+
;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, operation=copy
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('folder'),
|
|
18
|
+
operation: z.literal('copy'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
toPath: stringOrExpression,
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_copy.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=copy
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Copy a file */
|
|
13
|
+
export type NextCloudV11FolderCopyParams = {
|
|
14
|
+
resource: 'folder';
|
|
15
|
+
operation: 'copy';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path of file or folder to copy. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The destination path of file or folder. The path should start with "/".
|
|
23
|
+
*/
|
|
24
|
+
toPath: string | Expression<string>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type NextCloudV11FolderCopyNode = {
|
|
28
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
29
|
+
version: 1.1;
|
|
30
|
+
config: NodeConfig<NextCloudV11FolderCopyParams> & { credentials?: Credentials };
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, operation=create
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('folder'),
|
|
18
|
+
operation: z.literal('create').default('create'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_create.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=create
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Create a folder */
|
|
13
|
+
export type NextCloudV11FolderCreateParams = {
|
|
14
|
+
resource: 'folder';
|
|
15
|
+
operation: 'create';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The folder to create. The parent folder has to exist. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11FolderCreateOutput = {
|
|
24
|
+
error?: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type NextCloudV11FolderCreateNode = {
|
|
28
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
29
|
+
version: 1.1;
|
|
30
|
+
config: NodeConfig<NextCloudV11FolderCreateParams> & { credentials?: Credentials };
|
|
31
|
+
output?: Items<NextCloudV11FolderCreateOutput>;
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, operation=delete
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('folder'),
|
|
18
|
+
operation: z.literal('delete'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression,
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_delete.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=delete
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Delete a file */
|
|
13
|
+
export type NextCloudV11FolderDeleteParams = {
|
|
14
|
+
resource: 'folder';
|
|
15
|
+
operation: 'delete';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path to delete. Can be a single file or a whole folder. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11FolderDeleteNode = {
|
|
24
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
25
|
+
version: 1.1;
|
|
26
|
+
config: NodeConfig<NextCloudV11FolderDeleteParams> & { credentials?: Credentials };
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, operation=list
|
|
4
|
+
*
|
|
5
|
+
* Use .parse() for strict validation or .safeParse() for error handling.
|
|
6
|
+
*
|
|
7
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
8
|
+
* by the schema-validator, not imported from external files.
|
|
9
|
+
*
|
|
10
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
|
|
14
|
+
|
|
15
|
+
return z.object({
|
|
16
|
+
parameters: z.object({
|
|
17
|
+
resource: z.literal('folder'),
|
|
18
|
+
operation: z.literal('list'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
path: stringOrExpression.optional(),
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|