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
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_folder/operation_list.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=list
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Return the contents of a given folder */
|
|
13
|
+
export type NextCloudV11FolderListParams = {
|
|
14
|
+
resource: 'folder';
|
|
15
|
+
operation: 'list';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* The path of which to list the content. The path should start with "/".
|
|
19
|
+
*/
|
|
20
|
+
path?: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11FolderListOutput = {
|
|
24
|
+
contentLength?: string;
|
|
25
|
+
contentType?: string;
|
|
26
|
+
eTag?: string;
|
|
27
|
+
lastModified?: string;
|
|
28
|
+
path?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type NextCloudV11FolderListNode = {
|
|
33
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
34
|
+
version: 1.1;
|
|
35
|
+
config: NodeConfig<NextCloudV11FolderListParams> & { credentials?: Credentials };
|
|
36
|
+
output?: Items<NextCloudV11FolderListOutput>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, 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('folder'),
|
|
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_folder/operation_move.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=move
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Move a file */
|
|
13
|
+
export type NextCloudV11FolderMoveParams = {
|
|
14
|
+
resource: 'folder';
|
|
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 NextCloudV11FolderMoveNode = {
|
|
28
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
29
|
+
version: 1.1;
|
|
30
|
+
config: NodeConfig<NextCloudV11FolderMoveParams> & { credentials?: Credentials };
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=folder, 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('folder'),
|
|
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_folder/operation_share.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=folder, operation=share
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Share a file */
|
|
13
|
+
export type NextCloudV11FolderShareParams = {
|
|
14
|
+
resource: 'folder';
|
|
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 NextCloudV11FolderShareNode = {
|
|
63
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
64
|
+
version: 1.1;
|
|
65
|
+
config: NodeConfig<NextCloudV11FolderShareParams> & { credentials?: Credentials };
|
|
66
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/index.schema.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud - User 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 getCreateSchema = require('./operation_create.schema');
|
|
12
|
+
const getDeleteSchema = require('./operation_delete.schema');
|
|
13
|
+
const getGetSchema = require('./operation_get.schema');
|
|
14
|
+
const getGetAllSchema = require('./operation_get_all.schema');
|
|
15
|
+
const getUpdateSchema = require('./operation_update.schema');
|
|
16
|
+
|
|
17
|
+
module.exports = function getSchema(helpers) {
|
|
18
|
+
const { parameters, z } = helpers;
|
|
19
|
+
// Apply operation default if not set
|
|
20
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'create' } : parameters;
|
|
21
|
+
return z.union([
|
|
22
|
+
getCreateSchema({ ...helpers, parameters: effectiveParams }),
|
|
23
|
+
getDeleteSchema({ ...helpers, parameters: effectiveParams }),
|
|
24
|
+
getGetSchema({ ...helpers, parameters: effectiveParams }),
|
|
25
|
+
getGetAllSchema({ ...helpers, parameters: effectiveParams }),
|
|
26
|
+
getUpdateSchema({ ...helpers, parameters: effectiveParams }),
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud - User Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { NextCloudV11UserCreateNode } from './operation_create';
|
|
7
|
+
import type { NextCloudV11UserDeleteNode } from './operation_delete';
|
|
8
|
+
import type { NextCloudV11UserGetNode } from './operation_get';
|
|
9
|
+
import type { NextCloudV11UserGetAllNode } from './operation_get_all';
|
|
10
|
+
import type { NextCloudV11UserUpdateNode } from './operation_update';
|
|
11
|
+
|
|
12
|
+
export * from './operation_create';
|
|
13
|
+
export * from './operation_delete';
|
|
14
|
+
export * from './operation_get';
|
|
15
|
+
export * from './operation_get_all';
|
|
16
|
+
export * from './operation_update';
|
|
17
|
+
|
|
18
|
+
export type NextCloudV11UserNode =
|
|
19
|
+
| NextCloudV11UserCreateNode
|
|
20
|
+
| NextCloudV11UserDeleteNode
|
|
21
|
+
| NextCloudV11UserGetNode
|
|
22
|
+
| NextCloudV11UserGetAllNode
|
|
23
|
+
| NextCloudV11UserUpdateNode
|
|
24
|
+
;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=user, 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('user'),
|
|
18
|
+
operation: z.literal('create').default('create'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
userId: stringOrExpression,
|
|
21
|
+
email: stringOrExpression,
|
|
22
|
+
additionalFields: z.object({ displayName: stringOrExpression.optional() }).optional(),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_create.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=user, operation=create
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Create a folder */
|
|
13
|
+
export type NextCloudV11UserCreateParams = {
|
|
14
|
+
resource: 'user';
|
|
15
|
+
operation: 'create';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Username the user will have
|
|
19
|
+
*/
|
|
20
|
+
userId: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* The email of the user to invite
|
|
23
|
+
*/
|
|
24
|
+
email: string | Expression<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Additional Fields
|
|
27
|
+
* @default {}
|
|
28
|
+
*/
|
|
29
|
+
additionalFields?: {
|
|
30
|
+
/** The display name of the user to invite
|
|
31
|
+
*/
|
|
32
|
+
displayName?: string | Expression<string>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type NextCloudV11UserCreateNode = {
|
|
37
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
38
|
+
version: 1.1;
|
|
39
|
+
config: NodeConfig<NextCloudV11UserCreateParams> & { credentials?: Credentials };
|
|
40
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=user, 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('user'),
|
|
18
|
+
operation: z.literal('delete'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
userId: stringOrExpression,
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_delete.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=user, operation=delete
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Delete a file */
|
|
13
|
+
export type NextCloudV11UserDeleteParams = {
|
|
14
|
+
resource: 'user';
|
|
15
|
+
operation: 'delete';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Username the user will have
|
|
19
|
+
*/
|
|
20
|
+
userId: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11UserDeleteNode = {
|
|
24
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
25
|
+
version: 1.1;
|
|
26
|
+
config: NodeConfig<NextCloudV11UserDeleteParams> & { credentials?: Credentials };
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=user, operation=get
|
|
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('user'),
|
|
18
|
+
operation: z.literal('get'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
userId: stringOrExpression,
|
|
21
|
+
}).optional(),
|
|
22
|
+
});
|
|
23
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=user, operation=get
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Retrieve information about a single user */
|
|
13
|
+
export type NextCloudV11UserGetParams = {
|
|
14
|
+
resource: 'user';
|
|
15
|
+
operation: 'get';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Username the user will have
|
|
19
|
+
*/
|
|
20
|
+
userId: string | Expression<string>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type NextCloudV11UserGetNode = {
|
|
24
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
25
|
+
version: 1.1;
|
|
26
|
+
config: NodeConfig<NextCloudV11UserGetParams> & { credentials?: Credentials };
|
|
27
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=user, operation=getAll
|
|
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('user'),
|
|
18
|
+
operation: z.literal('getAll'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
returnAll: booleanOrExpression.optional(),
|
|
21
|
+
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"returnAll":[false]}}, defaults: {"returnAll":false} }),
|
|
22
|
+
options: z.object({ search: stringOrExpression.optional(), offset: numberOrExpression.optional() }).optional(),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_get_all.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=user, operation=getAll
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Retrieve a list of users */
|
|
13
|
+
export type NextCloudV11UserGetAllParams = {
|
|
14
|
+
resource: 'user';
|
|
15
|
+
operation: 'getAll';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to return all results or only up to a given limit
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
returnAll?: boolean | Expression<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Max number of results to return
|
|
24
|
+
* @displayOptions.show { returnAll: [false] }
|
|
25
|
+
* @default 50
|
|
26
|
+
*/
|
|
27
|
+
limit?: number | Expression<number>;
|
|
28
|
+
/**
|
|
29
|
+
* Options
|
|
30
|
+
* @default {}
|
|
31
|
+
*/
|
|
32
|
+
options?: {
|
|
33
|
+
/** Optional search string
|
|
34
|
+
*/
|
|
35
|
+
search?: string | Expression<string>;
|
|
36
|
+
/** Optional offset value
|
|
37
|
+
*/
|
|
38
|
+
offset?: number | Expression<number>;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type NextCloudV11UserGetAllNode = {
|
|
43
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
44
|
+
version: 1.1;
|
|
45
|
+
config: NodeConfig<NextCloudV11UserGetAllParams> & { credentials?: Credentials };
|
|
46
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=user, operation=update
|
|
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('user'),
|
|
18
|
+
operation: z.literal('update'),
|
|
19
|
+
authentication: z.union([z.literal('accessToken'), z.literal('oAuth2'), expressionSchema]).optional(),
|
|
20
|
+
userId: stringOrExpression,
|
|
21
|
+
updateFields: z.object({ field: z.object({ key: z.union([z.literal('address'), z.literal('displayname'), z.literal('email'), z.literal('password'), z.literal('twitter'), z.literal('website'), expressionSchema]).optional(), value: stringOrExpression.optional() }).optional() }).optional(),
|
|
22
|
+
}).optional(),
|
|
23
|
+
});
|
|
24
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-base/nextCloud/v11/resource_user/operation_update.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nextcloud Node - Version 1.1
|
|
3
|
+
* Discriminator: resource=user, operation=update
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
nextCloudApi: CredentialReference;
|
|
9
|
+
nextCloudOAuth2Api: CredentialReference;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Edit attributes related to a user */
|
|
13
|
+
export type NextCloudV11UserUpdateParams = {
|
|
14
|
+
resource: 'user';
|
|
15
|
+
operation: 'update';
|
|
16
|
+
authentication?: 'accessToken' | 'oAuth2' | Expression<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Username the user will have
|
|
19
|
+
*/
|
|
20
|
+
userId: string | Expression<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Update Fields
|
|
23
|
+
* @default {}
|
|
24
|
+
*/
|
|
25
|
+
updateFields?: {
|
|
26
|
+
/** Fields
|
|
27
|
+
*/
|
|
28
|
+
field?: {
|
|
29
|
+
/** Key of the updated attribute
|
|
30
|
+
* @default email
|
|
31
|
+
*/
|
|
32
|
+
key?: 'address' | 'displayname' | 'email' | 'password' | 'twitter' | 'website' | Expression<string>;
|
|
33
|
+
/** Value of the updated attribute
|
|
34
|
+
*/
|
|
35
|
+
value?: string | Expression<string>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type NextCloudV11UserUpdateNode = {
|
|
41
|
+
type: 'n8n-nodes-base.nextCloud';
|
|
42
|
+
version: 1.1;
|
|
43
|
+
config: NodeConfig<NextCloudV11UserUpdateParams> & { credentials?: Credentials };
|
|
44
|
+
};
|
|
@@ -26,6 +26,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
26
26
|
columns: resolveOneOfSchemas({ parameters, variants: [{ schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }] }),
|
|
27
27
|
returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
28
28
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"],"returnAll":[false]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","returnAll":false,"table":{"mode":"list","value":""}} }),
|
|
29
|
+
startAfter: resolveSchema({ parameters, schema: z.object({ values: z.object({ column: stringOrExpression.optional(), value: stringOrExpression.optional() }).optional() }), required: false, displayOptions: {"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"returnAll":false,"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
29
30
|
sort: resolveSchema({ parameters, schema: z.object({ values: z.array(z.object({ column: stringOrExpression.optional(), direction: z.union([z.literal('ASC'), z.literal('DESC'), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
30
31
|
});
|
|
31
32
|
|
|
@@ -220,6 +220,26 @@ export interface OracleDatabaseV1Params {
|
|
|
220
220
|
* @default 50
|
|
221
221
|
*/
|
|
222
222
|
limit?: number | Expression<number>;
|
|
223
|
+
/**
|
|
224
|
+
* Get the table one page at a time. Each page has the rows after the last value of the page before. Limit sets the page size. To get the biggest values first, sort this column DESC.
|
|
225
|
+
* @displayOptions.show { returnAll: [false], resource: ["database"], operation: ["select"] }
|
|
226
|
+
* @displayOptions.hide { table: [""] }
|
|
227
|
+
* @default {}
|
|
228
|
+
*/
|
|
229
|
+
startAfter?: {
|
|
230
|
+
/** Values
|
|
231
|
+
*/
|
|
232
|
+
values?: {
|
|
233
|
+
/** A unique column that is never null, for example the primary key. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.
|
|
234
|
+
* @loadOptionsMethod getColumns
|
|
235
|
+
*/
|
|
236
|
+
column?: string | Expression<string>;
|
|
237
|
+
/** The value of the column in the last row of the page before. Leave empty to get the first page.
|
|
238
|
+
* @hint The node runs once for each input item. In a loop, give it only the last row of the page before, for example with a Limit node that keeps the last item, and use {{ $json.ID }}. Oracle returns a column name in upper case unless the column was created with a quoted name.
|
|
239
|
+
*/
|
|
240
|
+
value?: string | Expression<string>;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
223
243
|
/**
|
|
224
244
|
* Sort
|
|
225
245
|
* @displayOptions.show { resource: ["database"], operation: ["select"] }
|
|
@@ -26,6 +26,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
26
26
|
columns: resolveOneOfSchemas({ parameters, variants: [{ schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }] }),
|
|
27
27
|
returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
28
28
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"],"returnAll":[false]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","returnAll":false,"table":{"mode":"list","value":""}} }),
|
|
29
|
+
startAfter: resolveSchema({ parameters, schema: z.object({ values: z.object({ column: stringOrExpression.optional(), value: stringOrExpression.optional() }).optional() }), required: false, displayOptions: {"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"returnAll":false,"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
29
30
|
sort: resolveSchema({ parameters, schema: z.object({ values: z.array(z.object({ column: stringOrExpression.optional(), direction: z.union([z.literal('ASC'), z.literal('DESC'), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
30
31
|
});
|
|
31
32
|
|
|
@@ -220,6 +220,26 @@ export interface OracleDatabaseV11Params {
|
|
|
220
220
|
* @default 50
|
|
221
221
|
*/
|
|
222
222
|
limit?: number | Expression<number>;
|
|
223
|
+
/**
|
|
224
|
+
* Get the table one page at a time. Each page has the rows after the last value of the page before. Limit sets the page size. To get the biggest values first, sort this column DESC.
|
|
225
|
+
* @displayOptions.show { returnAll: [false], resource: ["database"], operation: ["select"] }
|
|
226
|
+
* @displayOptions.hide { table: [""] }
|
|
227
|
+
* @default {}
|
|
228
|
+
*/
|
|
229
|
+
startAfter?: {
|
|
230
|
+
/** Values
|
|
231
|
+
*/
|
|
232
|
+
values?: {
|
|
233
|
+
/** A unique column that is never null, for example the primary key. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/" target="_blank">expression</a>.
|
|
234
|
+
* @loadOptionsMethod getColumns
|
|
235
|
+
*/
|
|
236
|
+
column?: string | Expression<string>;
|
|
237
|
+
/** The value of the column in the last row of the page before. Leave empty to get the first page.
|
|
238
|
+
* @hint The node runs once for each input item. In a loop, give it only the last row of the page before, for example with a Limit node that keeps the last item, and use {{ $json.ID }}. Oracle returns a column name in upper case unless the column was created with a quoted name.
|
|
239
|
+
*/
|
|
240
|
+
value?: string | Expression<string>;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
223
243
|
/**
|
|
224
244
|
* Sort
|
|
225
245
|
* @displayOptions.show { resource: ["database"], operation: ["select"] }
|
|
@@ -26,6 +26,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
26
26
|
columns: resolveOneOfSchemas({ parameters, variants: [{ schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }, { schema: resourceMapperValueSchema, required: false, displayOptions: {"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }] }),
|
|
27
27
|
returnAll: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
28
28
|
limit: resolveSchema({ parameters, schema: numberOrExpression, required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"],"returnAll":[false]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","returnAll":false,"table":{"mode":"list","value":""}} }),
|
|
29
|
+
startAfter: resolveSchema({ parameters, schema: z.object({ values: z.object({ column: stringOrExpression.optional(), value: stringOrExpression.optional() }).optional() }), required: false, displayOptions: {"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"returnAll":false,"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
29
30
|
sort: resolveSchema({ parameters, schema: z.object({ values: z.array(z.object({ column: stringOrExpression.optional(), direction: z.union([z.literal('ASC'), z.literal('DESC'), expressionSchema]).optional() })).optional() }), required: false, displayOptions: {"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}, defaults: {"resource":"database","operation":"insert","table":{"mode":"list","value":""}} }),
|
|
30
31
|
});
|
|
31
32
|
|