n8n-nodes-base 2.23.0 → 2.24.0
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/credentials/LinearOAuth2Api.credentials.js +1 -1
- package/dist/credentials/LinearOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js +33 -2
- package/dist/credentials/MicrosoftOneDriveOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js +33 -3
- package/dist/credentials/MicrosoftOutlookOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js +34 -1
- package/dist/credentials/MicrosoftSharePointOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/common/aws/utils.d.ts +6 -0
- package/dist/credentials/common/aws/utils.d.ts.map +1 -1
- package/dist/credentials/common/aws/utils.js +14 -0
- package/dist/credentials/common/aws/utils.js.map +1 -1
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v1.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v1.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/crypto/v2.ts +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v2.ts +4 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v21.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/emailSend/v21.ts +4 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/index.ts +3 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v2.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v2.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v21.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v21.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v22.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v22.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v23.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v23.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v24.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v24.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v25.schema.js +1 -1
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v25.ts +5 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v26.schema.js +29 -0
- package/dist/node-definitions/nodes/n8n-nodes-base/formTrigger/v26.ts +249 -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/microsoftOutlook/v2/resource_event/operation_create.ts +2 -2
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.d.ts +1 -2
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.js +0 -14
- package/dist/nodes/Aws/DynamoDB/GenericFunctions.js.map +1 -1
- package/dist/nodes/Aws/DynamoDB/utils.d.ts +1 -2
- package/dist/nodes/Aws/DynamoDB/utils.d.ts.map +1 -1
- package/dist/nodes/Aws/DynamoDB/utils.js +0 -14
- package/dist/nodes/Aws/DynamoDB/utils.js.map +1 -1
- package/dist/nodes/Aws/Textract/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/Textract/GenericFunctions.js +2 -0
- package/dist/nodes/Aws/Textract/GenericFunctions.js.map +1 -1
- package/dist/nodes/Aws/Transcribe/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Aws/Transcribe/GenericFunctions.js +2 -0
- package/dist/nodes/Aws/Transcribe/GenericFunctions.js.map +1 -1
- package/dist/nodes/Bubble/Bubble.node.js +2 -2
- package/dist/nodes/Bubble/Bubble.node.js.map +1 -1
- package/dist/nodes/Compression/Compression.node.d.ts.map +1 -1
- package/dist/nodes/Compression/Compression.node.js +9 -6
- package/dist/nodes/Compression/Compression.node.js.map +1 -1
- package/dist/nodes/Compression/decompress/BoundedGunzip.d.ts +6 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.js +83 -0
- package/dist/nodes/Compression/decompress/BoundedGunzip.js.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts +6 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.js +118 -0
- package/dist/nodes/Compression/decompress/BoundedUnzip.js.map +1 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.d.ts +5 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.js +12 -0
- package/dist/nodes/Compression/decompress/DecompressedSizeExceededError.js.map +1 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.d.ts +7 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.js +18 -0
- package/dist/nodes/Compression/decompress/FeedInChunks.js.map +1 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.d.ts +16 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.js +34 -0
- package/dist/nodes/Compression/decompress/GunzipOutputAccumulator.js.map +1 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts +19 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js +60 -0
- package/dist/nodes/Compression/decompress/ZipEntryDecompressor.js.map +1 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts +20 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.d.ts.map +1 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js +63 -0
- package/dist/nodes/Compression/decompress/ZipOutputAccumulator.js.map +1 -0
- package/dist/nodes/Crypto/v1/CryptoV1.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v1/CryptoV1.node.js +8 -0
- package/dist/nodes/Crypto/v1/CryptoV1.node.js.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.d.ts.map +1 -1
- package/dist/nodes/Crypto/v2/CryptoV2.node.js +8 -0
- package/dist/nodes/Crypto/v2/CryptoV2.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailReadImap/v2/utils.js +13 -10
- package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
- package/dist/nodes/EmailSend/v2/send.operation.d.ts.map +1 -1
- package/dist/nodes/EmailSend/v2/send.operation.js +30 -11
- package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
- package/dist/nodes/EmailSend/v2/utils.d.ts +1 -0
- package/dist/nodes/EmailSend/v2/utils.d.ts.map +1 -1
- package/dist/nodes/EmailSend/v2/utils.js.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.js +5 -11
- package/dist/nodes/Facebook/FacebookTrigger.node.js.map +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js.map +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.d.ts.map +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js +1 -1
- package/dist/nodes/Filter/V2/FilterV2.node.js.map +1 -1
- package/dist/nodes/Form/Form.node.d.ts.map +1 -1
- package/dist/nodes/Form/Form.node.js +15 -3
- package/dist/nodes/Form/Form.node.js.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.js +2 -1
- package/dist/nodes/Form/FormTrigger.node.js.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts +2 -2
- package/dist/nodes/Form/utils/formCompletionUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js +8 -1
- package/dist/nodes/Form/utils/formCompletionUtils.js.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.d.ts +2 -2
- package/dist/nodes/Form/utils/formNodeUtils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/formNodeUtils.js +7 -1
- package/dist/nodes/Form/utils/formNodeUtils.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts +31 -2
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +196 -16
- package/dist/nodes/Form/utils/utils.js.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts.map +1 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js +41 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.d.ts.map +1 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.js +13 -1
- package/dist/nodes/HighLevel/v1/description/ContactDescription.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 -1
- package/dist/nodes/If/V2/IfV2.node.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js +5 -5
- package/dist/nodes/Microsoft/Sql/GenericFunctions.js.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.d.ts.map +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +4 -4
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js +1 -1
- package/dist/nodes/Microsoft/Teams/MicrosoftTeamsTrigger.node.js.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts +2 -1
- package/dist/nodes/MongoDb/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/MongoDb/GenericFunctions.js +26 -2
- package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.d.ts.map +1 -1
- package/dist/nodes/MongoDb/MongoDb.node.js +40 -59
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/activity/create.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.js +3 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/getAll.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/activity/update.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/deal/create.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.js +3 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/getAll.operation.js.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.d.ts.map +1 -1
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.js +6 -0
- package/dist/nodes/Pipedrive/v2/actions/deal/update.operation.js.map +1 -1
- package/dist/nodes/Postgres/v1/genericFunctions.js +2 -2
- package/dist/nodes/Postgres/v1/genericFunctions.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 +136 -10
- package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.js +4 -2
- package/dist/nodes/Salesforce/GenericFunctions.js.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.d.ts.map +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js +1 -1
- package/dist/nodes/Salesforce/SalesforceTrigger.node.js.map +1 -1
- package/dist/nodes/Stripe/StripeTriggerHelpers.d.ts.map +1 -1
- package/dist/nodes/Stripe/StripeTriggerHelpers.js +55 -47
- package/dist/nodes/Stripe/StripeTriggerHelpers.js.map +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js +1 -1
- package/dist/nodes/Switch/V3/SwitchV3.node.js.map +1 -1
- package/dist/nodes/Webhook/utils.d.ts.map +1 -1
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js +1 -1
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js.map +1 -1
- package/dist/nodes/Zulip/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Zulip/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Zulip/GenericFunctions.js +22 -0
- package/dist/nodes/Zulip/GenericFunctions.js.map +1 -1
- package/dist/nodes/Zulip/Zulip.node.js +1 -1
- package/dist/nodes/Zulip/Zulip.node.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +4 -4
- package/dist/types/nodes.json +8 -8
- package/package.json +14 -13
|
@@ -19,7 +19,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
19
19
|
formDescription: stringOrExpression.optional(),
|
|
20
20
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
21
21
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), expressionSchema]).optional(),
|
|
22
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
22
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Return combined config schema
|
|
@@ -212,6 +212,11 @@ export interface FormTriggerV24Params {
|
|
|
212
212
|
* @default false
|
|
213
213
|
*/
|
|
214
214
|
ignoreBots?: boolean | Expression<boolean>;
|
|
215
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
216
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
215
220
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
216
221
|
* @default false
|
|
217
222
|
*/
|
|
@@ -19,7 +19,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
|
|
|
19
19
|
formDescription: stringOrExpression.optional(),
|
|
20
20
|
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
21
21
|
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), expressionSchema]).optional(),
|
|
22
|
-
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
22
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Return combined config schema
|
|
@@ -212,6 +212,11 @@ export interface FormTriggerV25Params {
|
|
|
212
212
|
* @default false
|
|
213
213
|
*/
|
|
214
214
|
ignoreBots?: boolean | Expression<boolean>;
|
|
215
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
216
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
215
220
|
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
216
221
|
* @default false
|
|
217
222
|
*/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* n8n Form Trigger Node - Version 2.6 - Zod Validation Schemas
|
|
3
|
+
*
|
|
4
|
+
* These schemas validate node configuration at runtime.
|
|
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 }) {
|
|
14
|
+
|
|
15
|
+
// Parameters schema
|
|
16
|
+
const parametersSchema = z.object({
|
|
17
|
+
authentication: z.union([z.literal('basicAuth'), z.literal('n8nUserAuth'), z.literal('none'), expressionSchema]).optional(),
|
|
18
|
+
formTitle: stringOrExpression,
|
|
19
|
+
formDescription: stringOrExpression.optional(),
|
|
20
|
+
formFields: z.object({ values: z.array(z.object({ fieldName: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldLabel: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), fieldType: z.union([z.literal('checkbox'), z.literal('html'), z.literal('date'), z.literal('dropdown'), z.literal('email'), z.literal('file'), z.literal('hiddenField'), z.literal('number'), z.literal('password'), z.literal('radio'), z.literal('text'), z.literal('textarea'), expressionSchema]).optional(), elementName: stringOrExpression.optional(), fieldName: stringOrExpression.optional(), placeholder: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), defaultValue: stringOrExpression.optional(), fieldValue: stringOrExpression.optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), fieldOptions: z.object({ values: z.array(z.object({ option: stringOrExpression.optional() })).optional() }).optional(), multiselect: booleanOrExpression.optional(), limitSelection: z.union([z.literal('exact'), z.literal('range'), z.literal('unlimited'), expressionSchema]).optional(), numberOfSelections: numberOrExpression.optional(), minSelections: numberOrExpression.optional(), maxSelections: numberOrExpression.optional(), html: z.string().optional(), multipleFiles: booleanOrExpression.optional(), acceptFileTypes: stringOrExpression.optional(), requiredField: booleanOrExpression.optional() })).optional() }).optional(),
|
|
21
|
+
responseMode: z.union([z.literal('onReceived'), z.literal('lastNode'), expressionSchema]).optional(),
|
|
22
|
+
options: z.object({ appendAttribution: booleanOrExpression.optional(), ipWhitelist: stringOrExpression.optional(), buttonLabel: stringOrExpression.optional(), path: stringOrExpression.optional(), respondWithOptions: z.object({ values: z.object({ respondWith: z.union([z.literal('text'), z.literal('redirect'), expressionSchema]).optional(), formSubmittedText: stringOrExpression.optional(), redirectUrl: stringOrExpression.optional() }).optional() }).optional(), ignoreBots: booleanOrExpression.optional(), includeUserInOutput: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), useWorkflowTimezone: booleanOrExpression.optional(), customCss: stringOrExpression.optional() }).optional(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
// Return combined config schema
|
|
26
|
+
return z.object({
|
|
27
|
+
parameters: parametersSchema.nullable().optional(),
|
|
28
|
+
});
|
|
29
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* n8n Form Trigger Node - Version 2.6
|
|
3
|
+
* Generate webforms in n8n and pass their responses to the workflow
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface FormTriggerV26Params {
|
|
8
|
+
/**
|
|
9
|
+
* Authentication
|
|
10
|
+
* @builderHint Default to 'none'. n8n exposes inbound trigger URLs publicly by design. Only select an authentication method when the user explicitly asks to authenticate inbound traffic.
|
|
11
|
+
* @default none
|
|
12
|
+
*/
|
|
13
|
+
authentication?: 'basicAuth' | 'n8nUserAuth' | 'none' | Expression<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Shown at the top of the form
|
|
16
|
+
*/
|
|
17
|
+
formTitle: string | Expression<string>;
|
|
18
|
+
/**
|
|
19
|
+
* Shown underneath the Form Title. Can be used to prompt the user on how to complete the form. Accepts HTML. Does not accept <code><script></code>, <code><style></code> or <code><input></code> tags.
|
|
20
|
+
*/
|
|
21
|
+
formDescription?: string | Expression<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Form Elements
|
|
24
|
+
* @default {}
|
|
25
|
+
*/
|
|
26
|
+
formFields?: {
|
|
27
|
+
/** Values
|
|
28
|
+
*/
|
|
29
|
+
values?: Array<{
|
|
30
|
+
/** The name of the field, used in input attributes and referenced by the workflow
|
|
31
|
+
* @displayOptions.hide { fieldType: ["html"] }
|
|
32
|
+
*/
|
|
33
|
+
fieldName?: string | Expression<string>;
|
|
34
|
+
/** Label that appears above the input field
|
|
35
|
+
* @displayOptions.hide { fieldType: ["hiddenField", "html"] }
|
|
36
|
+
*/
|
|
37
|
+
fieldLabel?: string | Expression<string>;
|
|
38
|
+
/** Label that appears above the input field
|
|
39
|
+
* @displayOptions.hide { fieldType: ["hiddenField", "html"] }
|
|
40
|
+
*/
|
|
41
|
+
fieldLabel?: string | Expression<string>;
|
|
42
|
+
/** The name of the field, used in input attributes and referenced by the workflow
|
|
43
|
+
* @displayOptions.show { fieldType: ["hiddenField"] }
|
|
44
|
+
*/
|
|
45
|
+
fieldName?: string | Expression<string>;
|
|
46
|
+
/** The type of field to add to the form
|
|
47
|
+
* @default text
|
|
48
|
+
*/
|
|
49
|
+
fieldType?: 'checkbox' | 'html' | 'date' | 'dropdown' | 'email' | 'file' | 'hiddenField' | 'number' | 'password' | 'radio' | 'text' | 'textarea' | Expression<string>;
|
|
50
|
+
/** Optional field. It can be used to include the html in the output.
|
|
51
|
+
* @displayOptions.show { fieldType: ["html"] }
|
|
52
|
+
*/
|
|
53
|
+
elementName?: string | Expression<string>;
|
|
54
|
+
/** The name of the field, used in input attributes and referenced by the workflow
|
|
55
|
+
* @displayOptions.hide { fieldType: ["html"] }
|
|
56
|
+
*/
|
|
57
|
+
fieldName?: string | Expression<string>;
|
|
58
|
+
/** Sample text to display inside the field
|
|
59
|
+
* @displayOptions.hide { fieldType: ["dropdown", "date", "file", "html", "hiddenField", "radio", "checkbox"] }
|
|
60
|
+
*/
|
|
61
|
+
placeholder?: string | Expression<string>;
|
|
62
|
+
/** Default value that will be pre-filled in the form field
|
|
63
|
+
* @displayOptions.show { fieldType: ["text", "number", "email", "textarea"] }
|
|
64
|
+
*/
|
|
65
|
+
defaultValue?: string | Expression<string>;
|
|
66
|
+
/** Default date value that will be pre-filled in the form field (format: YYYY-MM-DD)
|
|
67
|
+
* @displayOptions.show { fieldType: ["date"] }
|
|
68
|
+
*/
|
|
69
|
+
defaultValue?: string | Expression<string>;
|
|
70
|
+
/** Default value that will be pre-selected. Must match one of the option labels.
|
|
71
|
+
* @displayOptions.show { fieldType: ["dropdown", "radio"] }
|
|
72
|
+
*/
|
|
73
|
+
defaultValue?: string | Expression<string>;
|
|
74
|
+
/** Default value(s) that will be pre-selected. Must match one or multiple of the option labels. Separate multiple pre-selected options with a comma.
|
|
75
|
+
* @displayOptions.show { fieldType: ["checkbox"] }
|
|
76
|
+
*/
|
|
77
|
+
defaultValue?: string | Expression<string>;
|
|
78
|
+
/** Input value can be set here or will be passed as a query parameter via Field Name if no value is set
|
|
79
|
+
* @displayOptions.show { fieldType: ["hiddenField"] }
|
|
80
|
+
*/
|
|
81
|
+
fieldValue?: string | Expression<string>;
|
|
82
|
+
/** List of options that can be selected from the dropdown
|
|
83
|
+
* @displayOptions.show { fieldType: ["dropdown"] }
|
|
84
|
+
* @default {"values":[{"option":""}]}
|
|
85
|
+
*/
|
|
86
|
+
fieldOptions?: {
|
|
87
|
+
/** Values
|
|
88
|
+
*/
|
|
89
|
+
values?: Array<{
|
|
90
|
+
/** Option
|
|
91
|
+
*/
|
|
92
|
+
option?: string | Expression<string>;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
/** Checkboxes
|
|
96
|
+
* @displayOptions.show { fieldType: ["checkbox"] }
|
|
97
|
+
* @default {"values":[{"option":""}]}
|
|
98
|
+
*/
|
|
99
|
+
fieldOptions?: {
|
|
100
|
+
/** Values
|
|
101
|
+
*/
|
|
102
|
+
values?: Array<{
|
|
103
|
+
/** Checkbox Label
|
|
104
|
+
*/
|
|
105
|
+
option?: string | Expression<string>;
|
|
106
|
+
}>;
|
|
107
|
+
};
|
|
108
|
+
/** Radio Buttons
|
|
109
|
+
* @displayOptions.show { fieldType: ["radio"] }
|
|
110
|
+
* @default {"values":[{"option":""}]}
|
|
111
|
+
*/
|
|
112
|
+
fieldOptions?: {
|
|
113
|
+
/** Values
|
|
114
|
+
*/
|
|
115
|
+
values?: Array<{
|
|
116
|
+
/** Radio Button Label
|
|
117
|
+
*/
|
|
118
|
+
option?: string | Expression<string>;
|
|
119
|
+
}>;
|
|
120
|
+
};
|
|
121
|
+
/** Whether to allow the user to select multiple options from the dropdown list
|
|
122
|
+
* @displayOptions.show { fieldType: ["dropdown"] }
|
|
123
|
+
* @default false
|
|
124
|
+
*/
|
|
125
|
+
multiselect?: boolean | Expression<boolean>;
|
|
126
|
+
/** Limit Selection
|
|
127
|
+
* @displayOptions.show { fieldType: ["checkbox"] }
|
|
128
|
+
* @default unlimited
|
|
129
|
+
*/
|
|
130
|
+
limitSelection?: 'exact' | 'range' | 'unlimited' | Expression<string>;
|
|
131
|
+
/** Number of Selections
|
|
132
|
+
* @displayOptions.show { fieldType: ["checkbox"], limitSelection: ["exact"] }
|
|
133
|
+
* @default 1
|
|
134
|
+
*/
|
|
135
|
+
numberOfSelections?: number | Expression<number>;
|
|
136
|
+
/** Minimum Selections
|
|
137
|
+
* @displayOptions.show { fieldType: ["checkbox"], limitSelection: ["range"] }
|
|
138
|
+
* @default 0
|
|
139
|
+
*/
|
|
140
|
+
minSelections?: number | Expression<number>;
|
|
141
|
+
/** Maximum Selections
|
|
142
|
+
* @displayOptions.show { fieldType: ["checkbox"], limitSelection: ["range"] }
|
|
143
|
+
* @default 1
|
|
144
|
+
*/
|
|
145
|
+
maxSelections?: number | Expression<number>;
|
|
146
|
+
/** HTML elements to display on the form page
|
|
147
|
+
* @hint Does not accept <code><script></code>, <code><style></code> or <code><input></code> tags
|
|
148
|
+
* @displayOptions.show { fieldType: ["html"] }
|
|
149
|
+
*/
|
|
150
|
+
html?: string;
|
|
151
|
+
/** Whether to allow the user to select multiple files from the file input or just one
|
|
152
|
+
* @displayOptions.show { fieldType: ["file"] }
|
|
153
|
+
* @default true
|
|
154
|
+
*/
|
|
155
|
+
multipleFiles?: boolean | Expression<boolean>;
|
|
156
|
+
/** Comma-separated list of allowed file extensions
|
|
157
|
+
* @hint Leave empty to allow all file types
|
|
158
|
+
* @displayOptions.show { fieldType: ["file"] }
|
|
159
|
+
*/
|
|
160
|
+
acceptFileTypes?: string | Expression<string>;
|
|
161
|
+
/** Whether to require the user to enter a value for this field before submitting the form
|
|
162
|
+
* @displayOptions.hide { fieldType: ["html", "hiddenField"] }
|
|
163
|
+
* @default false
|
|
164
|
+
*/
|
|
165
|
+
requiredField?: boolean | Expression<boolean>;
|
|
166
|
+
}>;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* When to respond to the form submission
|
|
170
|
+
* @default onReceived
|
|
171
|
+
*/
|
|
172
|
+
responseMode?: 'onReceived' | 'lastNode' | Expression<string>;
|
|
173
|
+
options?: {
|
|
174
|
+
/** Whether to include the link “Form automated with n8n” at the bottom of the form
|
|
175
|
+
* @default true
|
|
176
|
+
*/
|
|
177
|
+
appendAttribution?: boolean | Expression<boolean>;
|
|
178
|
+
/** Comma-separated list of allowed IP addresses or CIDR ranges. Leave empty to allow all IPs.
|
|
179
|
+
*/
|
|
180
|
+
ipWhitelist?: string | Expression<string>;
|
|
181
|
+
/** The label of the submit button in the form
|
|
182
|
+
* @default Submit
|
|
183
|
+
*/
|
|
184
|
+
buttonLabel?: string | Expression<string>;
|
|
185
|
+
/** The final segment of the form's URL, both for test and production
|
|
186
|
+
*/
|
|
187
|
+
path?: string | Expression<string>;
|
|
188
|
+
/** Form Response
|
|
189
|
+
* @displayOptions.hide { /responseMode: ["responseNode"] }
|
|
190
|
+
* @default {"values":{"respondWith":"text"}}
|
|
191
|
+
*/
|
|
192
|
+
respondWithOptions?: {
|
|
193
|
+
/** Values
|
|
194
|
+
*/
|
|
195
|
+
values?: {
|
|
196
|
+
/** Respond With
|
|
197
|
+
* @default text
|
|
198
|
+
*/
|
|
199
|
+
respondWith?: 'text' | 'redirect' | Expression<string>;
|
|
200
|
+
/** The text displayed to users after they fill the form. Leave it empty if don't want to show any additional text.
|
|
201
|
+
* @displayOptions.show { respondWith: ["text"] }
|
|
202
|
+
* @default Your response has been recorded
|
|
203
|
+
*/
|
|
204
|
+
formSubmittedText?: string | Expression<string>;
|
|
205
|
+
/** The URL to redirect users to after they fill the form. Must be a valid URL.
|
|
206
|
+
* @displayOptions.show { respondWith: ["redirect"] }
|
|
207
|
+
*/
|
|
208
|
+
redirectUrl?: string | Expression<string>;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/** Whether to ignore requests from bots like link previewers and web crawlers
|
|
212
|
+
* @default false
|
|
213
|
+
*/
|
|
214
|
+
ignoreBots?: boolean | Expression<boolean>;
|
|
215
|
+
/** Whether to include the logged-in user's ID, email and name in the trigger output
|
|
216
|
+
* @displayOptions.show { /authentication: ["n8nUserAuth"] }
|
|
217
|
+
* @default true
|
|
218
|
+
*/
|
|
219
|
+
includeUserInOutput?: boolean | Expression<boolean>;
|
|
220
|
+
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
221
|
+
* @default false
|
|
222
|
+
*/
|
|
223
|
+
useWorkflowTimezone?: boolean | Expression<boolean>;
|
|
224
|
+
/** Whether to use the workflow timezone in 'submittedAt' field or UTC
|
|
225
|
+
* @default true
|
|
226
|
+
*/
|
|
227
|
+
useWorkflowTimezone?: boolean | Expression<boolean>;
|
|
228
|
+
/** Override default styling of the public form interface with CSS
|
|
229
|
+
*/
|
|
230
|
+
customCss?: string | Expression<string>;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface FormTriggerV26Credentials {
|
|
235
|
+
httpBasicAuth: CredentialReference;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
interface FormTriggerV26NodeBase {
|
|
239
|
+
type: 'n8n-nodes-base.formTrigger';
|
|
240
|
+
version: 2.6;
|
|
241
|
+
credentials?: FormTriggerV26Credentials;
|
|
242
|
+
isTrigger: true;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type FormTriggerV26ParamsNode = FormTriggerV26NodeBase & {
|
|
246
|
+
config: NodeConfig<FormTriggerV26Params>;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type FormTriggerV26Node = FormTriggerV26ParamsNode;
|
|
@@ -34,13 +34,13 @@ export type GoogleAnalyticsV2ReportGetParams = {
|
|
|
34
34
|
/**
|
|
35
35
|
* Start
|
|
36
36
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
37
|
-
* @default 2026-05-
|
|
37
|
+
* @default 2026-05-25T00:00:00.000+00:00
|
|
38
38
|
*/
|
|
39
39
|
startDate?: string | Expression<string>;
|
|
40
40
|
/**
|
|
41
41
|
* End
|
|
42
42
|
* @displayOptions.show { dateRange: ["custom"], propertyType: ["ga4"] }
|
|
43
|
-
* @default 2026-
|
|
43
|
+
* @default 2026-06-01T00:00:00.000+00:00
|
|
44
44
|
*/
|
|
45
45
|
endDate?: string | Expression<string>;
|
|
46
46
|
/**
|
|
@@ -24,12 +24,12 @@ export type MicrosoftOutlookV2EventCreateParams = {
|
|
|
24
24
|
subject: string | Expression<string>;
|
|
25
25
|
/**
|
|
26
26
|
* Start
|
|
27
|
-
* @default 2026-
|
|
27
|
+
* @default 2026-06-02T09:56:22.429+00:00
|
|
28
28
|
*/
|
|
29
29
|
startDateTime?: string | Expression<string>;
|
|
30
30
|
/**
|
|
31
31
|
* End
|
|
32
|
-
* @default 2026-
|
|
32
|
+
* @default 2026-06-02T10:26:22.429+00:00
|
|
33
33
|
*/
|
|
34
34
|
endDateTime?: string | Expression<string>;
|
|
35
35
|
/**
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow';
|
|
2
2
|
import type { IRequestBody } from './types';
|
|
3
3
|
export declare function awsApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: IHttpRequestMethods, path: string, body?: object | IRequestBody, headers?: object): Promise<any>;
|
|
4
4
|
export declare function awsApiRequestAllItems(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: IHttpRequestMethods, path: string, body?: IRequestBody, headers?: object): Promise<any>;
|
|
5
|
-
export declare function copyInputItem(item: INodeExecutionData, properties: string[]): IDataObject;
|
|
6
5
|
//# sourceMappingURL=GenericFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/GenericFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/GenericFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EAEnB,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,wBAAsB,aAAa,CAClC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,EACpF,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,GAAG,YAAY,EAC5B,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAiDd;AAED,wBAAsB,qBAAqB,CAC1C,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,EACpF,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAed"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.awsApiRequest = awsApiRequest;
|
|
4
4
|
exports.awsApiRequestAllItems = awsApiRequestAllItems;
|
|
5
|
-
exports.copyInputItem = copyInputItem;
|
|
6
5
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
6
|
const GenericFunctions_1 = require("../GenericFunctions");
|
|
8
7
|
async function awsApiRequest(service, method, path, body, headers) {
|
|
@@ -56,17 +55,4 @@ async function awsApiRequestAllItems(service, method, path, body, headers) {
|
|
|
56
55
|
} while (responseData.LastEvaluatedKey !== undefined);
|
|
57
56
|
return returnData;
|
|
58
57
|
}
|
|
59
|
-
function copyInputItem(item, properties) {
|
|
60
|
-
// Prepare the data to insert and copy it to be returned
|
|
61
|
-
const newItem = {};
|
|
62
|
-
for (const property of properties) {
|
|
63
|
-
if (item.json[property] === undefined) {
|
|
64
|
-
newItem[property] = null;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
newItem[property] = (0, n8n_workflow_1.deepCopy)(item.json[property]);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return newItem;
|
|
71
|
-
}
|
|
72
58
|
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/GenericFunctions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","s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n-workflow';
|
|
2
2
|
import type { AdjustedPutItem, IAttributeNameUi, IAttributeValue, IAttributeValueUi, PutItemUi } from './types';
|
|
3
3
|
export declare function adjustExpressionAttributeValues(eavUi: IAttributeValueUi[]): IAttributeValue;
|
|
4
4
|
export declare function adjustExpressionAttributeName(eanUi: IAttributeNameUi[]): {
|
|
@@ -7,7 +7,6 @@ export declare function adjustExpressionAttributeName(eanUi: IAttributeNameUi[])
|
|
|
7
7
|
export declare function adjustPutItem(putItemUi: PutItemUi, autoParseNumbers?: boolean): AdjustedPutItem;
|
|
8
8
|
export declare function simplify(item: IAttributeValue): IDataObject;
|
|
9
9
|
export declare function validateJSON(input: any): object;
|
|
10
|
-
export declare function copyInputItem(item: INodeExecutionData, properties: string[]): IDataObject;
|
|
11
10
|
export declare function mapToAttributeValues(item: IDataObject): void;
|
|
12
11
|
export declare function decodeItem(item: IAttributeValue): IDataObject;
|
|
13
12
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,KAAK,EACX,eAAe,EAGf,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EAEjB,SAAS,EACT,MAAM,SAAS,CAAC;AAOjB,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,iBAAiB,EAAE,mBAQzE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,gBAAgB,EAAE;;EAQtE;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,gBAAgB,UAAO,mBAoB1E;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,CAW3D;AAwBD,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAM/C;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAO5D;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,CAS7D"}
|
|
@@ -5,7 +5,6 @@ exports.adjustExpressionAttributeName = adjustExpressionAttributeName;
|
|
|
5
5
|
exports.adjustPutItem = adjustPutItem;
|
|
6
6
|
exports.simplify = simplify;
|
|
7
7
|
exports.validateJSON = validateJSON;
|
|
8
|
-
exports.copyInputItem = copyInputItem;
|
|
9
8
|
exports.mapToAttributeValues = mapToAttributeValues;
|
|
10
9
|
exports.decodeItem = decodeItem;
|
|
11
10
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
@@ -80,19 +79,6 @@ function validateJSON(input) {
|
|
|
80
79
|
throw new n8n_workflow_1.ApplicationError('Items must be a valid JSON', { level: 'warning' });
|
|
81
80
|
}
|
|
82
81
|
}
|
|
83
|
-
function copyInputItem(item, properties) {
|
|
84
|
-
// Prepare the data to insert and copy it to be returned
|
|
85
|
-
const newItem = {};
|
|
86
|
-
for (const property of properties) {
|
|
87
|
-
if (item.json[property] === undefined) {
|
|
88
|
-
newItem[property] = null;
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
newItem[property] = (0, n8n_workflow_1.deepCopy)(item.json[property]);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return newItem;
|
|
95
|
-
}
|
|
96
82
|
function mapToAttributeValues(item) {
|
|
97
83
|
for (const key of Object.keys(item)) {
|
|
98
84
|
if (!key.startsWith(':')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../nodes/Aws/DynamoDB/utils.ts"],"names":[],"mappings":";;AAmBA,0EAQC;AAED,sEAQC;AAED,sCAoBC;AAED,4BAWC;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,SAAgB,UAAU,CAAC,IAAqB;IAC/C,MAAM,KAAK,GAAgB,EAAE,CAAC;IAC9B,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1C,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,GAAqB,KAAK,CAAC;QACnD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAqB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,GAAG,eAAe,CAAC,IAA2B,EAAE,OAA4B,CAAC,CAAC;IAC/F,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/Textract/GenericFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,8BAA8B,EAC9B,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EAGjB,mBAAmB,EAEnB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/Textract/GenericFunctions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,8BAA8B,EAC9B,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EAGjB,mBAAmB,EAEnB,MAAM,cAAc,CAAC;AAuBtB,wBAAsB,aAAa,CAClC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,EACpF,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CA+Bd;AAED,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,EAChE,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAOd;AAED,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,EACpF,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAsBd;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,gBAAgB;;EAQ9C;AAED,MAAM,WAAW,gBAAgB;IAChC,gBAAgB,EAAE;QACjB;YACC,aAAa,EAAE;gBACd;oBACC,cAAc,EAAE;wBAAE,IAAI,EAAE,MAAM,CAAA;qBAAE,CAAC;oBACjC,cAAc,EAAE;wBAAE,IAAI,EAAE,MAAM,CAAA;qBAAE,CAAC;oBACjC,IAAI,EAAE;wBAAE,IAAI,EAAE,MAAM,CAAA;qBAAE,CAAC;iBACvB;aACD,CAAC;SACF;KACD,CAAC;CACF;AAED,wBAAsB,mBAAmB,CACxC,IAAI,EAAE,wBAAwB,EAC9B,oBAAoB,EAAE,8BAA8B,EACpD,OAAO,EAAE,MAAM,GACb,OAAO,CAAC,GAAG,CAAC,CAiDd"}
|
|
@@ -10,7 +10,9 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
10
10
|
const url_1 = require("url");
|
|
11
11
|
const xml2js_1 = require("xml2js");
|
|
12
12
|
const GenericFunctions_1 = require("../GenericFunctions");
|
|
13
|
+
const utils_1 = require("../../../credentials/common/aws/utils");
|
|
13
14
|
function getEndpointForService(service, credentials) {
|
|
15
|
+
(0, utils_1.assertSupportedAwsRegion)(credentials.region);
|
|
14
16
|
let endpoint;
|
|
15
17
|
if (service === 'lambda' && credentials.lambdaEndpoint) {
|
|
16
18
|
endpoint = credentials.lambdaEndpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Aws/Textract/GenericFunctions.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Aws/Textract/GenericFunctions.ts"],"names":[],"mappings":";;AAoCA,sCAsCC;AAED,8CAcC;AAED,8CA6BC;AAED,4BAQC;AAgBD,kDAqDC;AAvMD,+BAA4B;AAa5B,+CAA6D;AAC7D,6BAA0B;AAC1B,mCAAqC;AACrC,0DAAwD;AACxD,iEAAiF;AAEjF,SAAS,qBAAqB,CAC7B,OAAe,EACf,WAA2C;IAE3C,IAAA,gCAAwB,EAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,IAAI,QAAQ,CAAC;IACb,IAAI,OAAO,KAAK,QAAQ,IAAI,WAAW,CAAC,cAAc,EAAE,CAAC;QACxD,QAAQ,GAAG,WAAW,CAAC,cAAc,CAAC;IACvC,CAAC;SAAM,IAAI,OAAO,KAAK,KAAK,IAAI,WAAW,CAAC,WAAW,EAAE,CAAC;QACzD,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC;IACpC,CAAC;SAAM,CAAC;QACP,QAAQ,GAAG,WAAW,OAAO,IAAI,WAAW,CAAC,MAAM,gBAAgB,CAAC;IACrE,CAAC;IACD,OAAQ,QAAmB,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;AACrE,CAAC;AAEM,KAAK,UAAU,aAAa,CAElC,OAAe,EACf,MAA2B,EAC3B,IAAY,EACZ,IAAa,EACb,OAAgB;IAEhB,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,oCAAiB,EA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YACpB,iBAAiB,EAAE,CAAC,8BAAe,CAAC;YACpC,kBAAkB,EAAE,CAAC,8BAAe,CAAC;SACrC,EACD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACb,IAAI,GAAG,EAAE,CAAC;gBACT,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;YACpB,CAAC;YACD,OAAO,CAAC,IAAI,CAAC,CAAC;QACf,CAAC,CACD,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/Transcribe/GenericFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEX,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EAErB,iBAAiB,EAEjB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../../nodes/Aws/Transcribe/GenericFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEX,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EAErB,iBAAiB,EAEjB,MAAM,cAAc,CAAC;AAsBtB,wBAAsB,aAAa,CAClC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,iBAAiB,EACpF,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CA8Bd;AAED,wBAAsB,iBAAiB,CACtC,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,EAChE,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CAOd;AAED,wBAAsB,yBAAyB,CAC9C,IAAI,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,EAChE,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,GAAE,WAAgB,EACvB,QAAQ,GAAE,WAAgB,EAC1B,OAAO,GAAE,WAAgB,EACzB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,GAAG,CAAC,CA6Bd"}
|
|
@@ -10,7 +10,9 @@ const aws4_1 = require("aws4");
|
|
|
10
10
|
const get_1 = __importDefault(require("lodash/get"));
|
|
11
11
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
12
12
|
const url_1 = require("url");
|
|
13
|
+
const utils_1 = require("../../../credentials/common/aws/utils");
|
|
13
14
|
function getEndpointForService(service, credentials) {
|
|
15
|
+
(0, utils_1.assertSupportedAwsRegion)(credentials.region);
|
|
14
16
|
let endpoint;
|
|
15
17
|
if (service === 'lambda' && credentials.lambdaEndpoint) {
|
|
16
18
|
endpoint = credentials.lambdaEndpoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Aws/Transcribe/GenericFunctions.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../../nodes/Aws/Transcribe/GenericFunctions.ts"],"names":[],"mappings":";;;;;AAmCA,sCAqCC;AAED,8CAcC;AAED,8DAwCC;AAjID,+BAA4B;AAC5B,qDAA6B;AAY7B,+CAA4C;AAC5C,6BAA0B;AAE1B,iEAAiF;AAEjF,SAAS,qBAAqB,CAC7B,OAAe,EACf,WAA2C;IAE3C,IAAA,gCAAwB,EAAC,WAAW,CAAC,MAAM,CAAC,CAAC;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EAAE,KAAK,CAAC,CAAC;QAEtF,IAAI,IAAA,aAAG,EAAC,YAAY,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC;YAClF,KAAK,CAAC,SAAS,GAAG,IAAA,aAAG,EAAC,YAAY,EAAE;gBACnC,iBAAiB,CAAC,CAAC,CAAC;gBACpB,iBAAiB,CAAC,CAAC,CAAC;gBACpB,WAAW;aACX,CAAC,CAAC;QACJ,CAAC;QACD,IAAI,IAAA,aAAG,EAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;YACrC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAA,aAAG,EAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC;gBACpD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,IAAA,aAAG,EAAC,YAAY,EAAE,YAAY,CAAkB,CAAC,CAAC;YACrF,CAAC;iBAAM,CAAC;gBACP,UAAU,CAAC,IAAI,CAAC,IAAA,aAAG,EAAC,YAAY,EAAE,YAAY,CAAgB,CAAC,CAAC;YACjE,CAAC;QACF,CAAC;IACF,CAAC,QACA,IAAA,aAAG,EAAC,YAAY,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,KAAK,SAAS,EACzF;IAEF,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
|
@@ -63,7 +63,7 @@ class Bubble {
|
|
|
63
63
|
const typeNameInput = this.getNodeParameter('typeName', i);
|
|
64
64
|
const typeName = typeNameInput.replace(/\s/g, '').toLowerCase();
|
|
65
65
|
const { property } = this.getNodeParameter('properties', i);
|
|
66
|
-
const body =
|
|
66
|
+
const body = Object.create(null);
|
|
67
67
|
property.forEach((data) => (body[data.key] = data.value));
|
|
68
68
|
responseData = await GenericFunctions_1.bubbleApiRequest.call(this, 'POST', `/obj/${typeName}`, body, {});
|
|
69
69
|
}
|
|
@@ -137,7 +137,7 @@ class Bubble {
|
|
|
137
137
|
const objectId = this.getNodeParameter('objectId', i);
|
|
138
138
|
const endpoint = `/obj/${typeName}/${objectId}`;
|
|
139
139
|
const { property } = this.getNodeParameter('properties', i);
|
|
140
|
-
const body =
|
|
140
|
+
const body = Object.create(null);
|
|
141
141
|
property.forEach((data) => (body[data.key] = data.value));
|
|
142
142
|
responseData = await GenericFunctions_1.bubbleApiRequest.call(this, 'PATCH', endpoint, body, {});
|
|
143
143
|
responseData = { success: true };
|