n8n-nodes-base 1.105.2 → 1.107.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/nodes/Affinity/__schema__/v1.0.0/organization/get.json +1 -4
- package/dist/nodes/Affinity/__schema__/v1.0.0/person/getAll.json +24 -0
- package/dist/nodes/Airtable/test/v2/node/helpers.d.ts.map +1 -1
- package/dist/nodes/Airtable/test/v2/node/helpers.js +8 -8
- package/dist/nodes/Airtable/test/v2/node/helpers.js.map +1 -1
- package/dist/nodes/Airtable/v2/actions/record/create.operation.d.ts.map +1 -1
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js +6 -5
- package/dist/nodes/Airtable/v2/actions/record/create.operation.js.map +1 -1
- package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/getPaginated.json +7 -1
- package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/scrape.json +7 -1
- package/dist/nodes/Airtop/__schema__/v1.0.0/interaction/click.json +42 -0
- package/dist/nodes/Airtop/__schema__/v1.0.0/session/create.json +60 -1
- package/dist/nodes/Airtop/__schema__/v1.0.0/session/terminate.json +9 -0
- package/dist/nodes/Airtop/__schema__/v1.0.0/window/create.json +1 -4
- package/dist/nodes/Aws/DynamoDB/__schema__/v1.0.0/item/getAll.json +9 -0
- package/dist/nodes/BambooHr/__schema__/v1.0.0/companyReport/get.json +1 -7
- package/dist/nodes/BambooHr/__schema__/v1.0.0/employee/getAll.json +10 -1
- package/dist/nodes/Bitly/__schema__/v1.0.0/link/create.json +7 -1
- package/dist/nodes/Box/__schema__/v1.0.0/file/download.json +7 -1
- package/dist/nodes/ClickUp/__schema__/v1.0.0/folder/create.json +74 -1
- package/dist/nodes/ClickUp/__schema__/v1.0.0/list/customFields.json +26 -1
- package/dist/nodes/Coda/__schema__/v1.1.0/table/getAllRows.json +4 -1
- package/dist/nodes/Code/Code.node.d.ts.map +1 -1
- package/dist/nodes/Code/Code.node.js +46 -26
- package/dist/nodes/Code/Code.node.js.map +1 -1
- package/dist/nodes/Code/JsTaskRunnerSandbox.d.ts +0 -1
- package/dist/nodes/Code/JsTaskRunnerSandbox.d.ts.map +1 -1
- package/dist/nodes/Code/JsTaskRunnerSandbox.js +3 -15
- package/dist/nodes/Code/JsTaskRunnerSandbox.js.map +1 -1
- package/dist/nodes/Code/PythonTaskRunnerSandbox.d.ts +17 -0
- package/dist/nodes/Code/PythonTaskRunnerSandbox.d.ts.map +1 -0
- package/dist/nodes/Code/PythonTaskRunnerSandbox.js +39 -0
- package/dist/nodes/Code/PythonTaskRunnerSandbox.js.map +1 -0
- package/dist/nodes/Code/descriptions/PythonCodeDescription.d.ts.map +1 -1
- package/dist/nodes/Code/descriptions/PythonCodeDescription.js +15 -3
- package/dist/nodes/Code/descriptions/PythonCodeDescription.js.map +1 -1
- package/dist/nodes/Code/native-python-without-runner.error.d.ts +5 -0
- package/dist/nodes/Code/native-python-without-runner.error.d.ts.map +1 -0
- package/dist/nodes/Code/native-python-without-runner.error.js +11 -0
- package/dist/nodes/Code/native-python-without-runner.error.js.map +1 -0
- package/dist/nodes/Code/throw-execution-error.d.ts +2 -0
- package/dist/nodes/Code/throw-execution-error.d.ts.map +1 -0
- package/dist/nodes/Code/throw-execution-error.js +17 -0
- package/dist/nodes/Code/throw-execution-error.js.map +1 -0
- package/dist/nodes/CoinGecko/__schema__/v1.0.0/coin/candlestick.json +9 -0
- package/dist/nodes/Contentful/__schema__/v1.0.0/contentType/get.json +27 -0
- package/dist/nodes/Dropbox/__schema__/v1.0.0/file/download.json +1 -19
- package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/enrich.json +1 -19
- package/dist/nodes/Elastic/Elasticsearch/__schema__/v1.0.0/document/getAll.json +4 -1
- package/dist/nodes/EmailSend/__schema__/v2.1.0/email/send.json +1 -7
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js +1 -1
- package/dist/nodes/Files/ExtractFromFile/actions/moveTo.operation.js.map +1 -1
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.d.ts.map +1 -1
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.js +18 -16
- package/dist/nodes/Files/ReadWriteFile/helpers/utils.js.map +1 -1
- package/dist/nodes/Form/Form.node.d.ts.map +1 -1
- package/dist/nodes/Form/Form.node.js +3 -1
- 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/common.descriptions.d.ts.map +1 -1
- package/dist/nodes/Form/common.descriptions.js +171 -14
- package/dist/nodes/Form/common.descriptions.js.map +1 -1
- package/dist/nodes/Form/interfaces.d.ts +21 -11
- package/dist/nodes/Form/interfaces.d.ts.map +1 -1
- package/dist/nodes/Form/interfaces.js.map +1 -1
- package/dist/nodes/Form/utils/utils.d.ts +4 -0
- package/dist/nodes/Form/utils/utils.d.ts.map +1 -1
- package/dist/nodes/Form/utils/utils.js +16 -2
- 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 +3 -1
- package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -1
- package/dist/nodes/FreshworksCrm/__schema__/v1.0.0/search/query.json +35 -0
- package/dist/nodes/Github/__schema__/v1.1.0/file/get.json +1 -42
- package/dist/nodes/Gitlab/__schema__/v1.0.0/file/get.json +4 -1
- package/dist/nodes/Google/Analytics/__schema__/v2.0.0/report/get.json +71 -2
- package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/create.json +4 -1
- package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +1 -4
- package/dist/nodes/Google/Chat/__schema__/v1.0.0/message/create.json +30 -1
- package/dist/nodes/Google/Chat/__schema__/v1.0.0/message/get.json +1 -63
- package/dist/nodes/Google/CloudStorage/__schema__/v1.0.0/object/getAll.json +7 -1
- package/dist/nodes/Google/Contacts/__schema__/v1.0.0/contact/getAll.json +21 -1
- package/dist/nodes/Google/Drive/__schema__/v3.0.0/file/upload.json +34 -1
- package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/create.json +1 -4
- package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/getAll.json +1 -4
- package/dist/nodes/Google/GSuiteAdmin/__schema__/v1.0.0/user/get.json +1 -65
- package/dist/nodes/Google/GSuiteAdmin/__schema__/v1.0.0/user/getAll.json +1 -22
- package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/getAll.json +27 -123
- package/dist/nodes/Google/Task/__schema__/v1.0.0/task/getAll.json +4 -4
- package/dist/nodes/Grist/GenericFunctions.d.ts +1 -0
- package/dist/nodes/Grist/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Grist/GenericFunctions.js +5 -1
- package/dist/nodes/Grist/GenericFunctions.js.map +1 -1
- package/dist/nodes/HighLevel/__schema__/v2.0.0/calendar/bookAppointment.json +36 -0
- package/dist/nodes/HomeAssistant/__schema__/v1.0.0/state/get.json +1 -7
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.d.ts.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +190 -179
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +4 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +1 -257
- package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +10 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +67 -1
- package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/getAll.json +61 -1
- package/dist/nodes/Jenkins/__schema__/v1.0.0/job/trigger.json +9 -0
- package/dist/nodes/Jenkins/__schema__/v1.0.0/job/triggerParams.json +9 -0
- package/dist/nodes/JinaAI/__schema__/v1.0.0/reader/read.json +9 -1
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +121 -1
- package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +310 -1
- package/dist/nodes/Lemlist/__schema__/v2.0.0/campaign/getStats.json +39 -0
- package/dist/nodes/Lemlist/__schema__/v2.0.0/enrich/get.json +3 -18
- package/dist/nodes/Lemlist/__schema__/v2.0.0/lead/get.json +1 -4
- package/dist/nodes/Mailchimp/__schema__/v1.0.0/member/create.json +15 -1
- package/dist/nodes/Mailchimp/__schema__/v1.0.0/member/get.json +7 -4
- package/dist/nodes/Marketstack/__schema__/v1.0.0/endOfDayData/getAll.json +1 -4
- package/dist/nodes/Matrix/__schema__/v1.0.0/message/getAll.json +4 -1
- package/dist/nodes/Metabase/__schema__/v1.0.0/databases/getAll.json +21 -0
- package/dist/nodes/Metabase/__schema__/v1.0.0/databases/getFields.json +9 -13
- package/dist/nodes/Metabase/__schema__/v1.0.0/questions/get.json +85 -12
- package/dist/nodes/Microsoft/AzureCosmosDb/__schema__/v1.0.0/item/getAll.json +12 -0
- package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/group/getAll.json +27 -0
- package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/create.json +13 -18
- package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/getAll.json +1 -4
- package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/file/download.json +10 -23
- package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/folder/create.json +15 -7
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/get.json +39 -4
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +1 -4
- package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/messageAttachment/get.json +1 -25
- package/dist/nodes/Microsoft/SharePoint/__schema__/v1.0.0/item/get.json +71 -0
- package/dist/nodes/Microsoft/SharePoint/__schema__/v1.0.0/item/getAll.json +1 -70
- package/dist/nodes/Microsoft/SharePoint/__schema__/v1.0.0/list/get.json +27 -0
- package/dist/nodes/Microsoft/SharePoint/__schema__/v1.0.0/list/getAll.json +27 -0
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +1 -1
- package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
- package/dist/nodes/Microsoft/ToDo/__schema__/v1.0.0/task/getAll.json +18 -1
- package/dist/nodes/N8nTrainingCustomerDatastore/__schema__/v1.0.0/execution/get.json +1 -4
- package/dist/nodes/N8nTrainingCustomerDatastore/__schema__/v1.0.0/execution/getAll.json +1 -4
- package/dist/nodes/N8nTrainingCustomerDatastore/__schema__/v1.0.0/workflow/create.json +10 -1
- package/dist/nodes/Nasa/__schema__/v1.0.0/donkiSolarFlare/get.json +1 -7
- package/dist/nodes/NextCloud/__schema__/v1.0.0/file/download.json +2 -32
- package/dist/nodes/Odoo/__schema__/v1.0.0/contact/get.json +1 -4
- package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +4 -1
- package/dist/nodes/Okta/__schema__/v1.0.0/user/getAll.json +1 -37
- package/dist/nodes/Perplexity/__schema__/v1.0.0/chat/complete.json +12 -1
- package/dist/nodes/Phantombuster/__schema__/v1.0.0/agent/getOutput.json +1 -10
- package/dist/nodes/Reddit/__schema__/v1.0.0/post/getAll.json +78 -4
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.d.ts.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +1 -15
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/utils/binary.d.ts +1 -1
- package/dist/nodes/RespondToWebhook/utils/binary.d.ts.map +1 -1
- package/dist/nodes/RespondToWebhook/utils/binary.js +2 -17
- package/dist/nodes/RespondToWebhook/utils/binary.js.map +1 -1
- package/dist/nodes/S3/__schema__/v1.0.0/file/download.json +10 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/case/getAll.json +4 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/create.json +15 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +4 -1
- package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/upsert.json +4 -4
- package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +5 -2
- package/dist/nodes/Salesforce/__schema__/v1.0.0/task/getAll.json +10 -4
- package/dist/nodes/Salesforce/__schema__/v1.0.0/user/getAll.json +1 -4
- package/dist/nodes/SeaTable/__schema__/v2.0.0/row/create.json +24 -0
- package/dist/nodes/Shopify/__schema__/v1.0.0/order/getAll.json +4 -45
- package/dist/nodes/Shopify/__schema__/v1.0.0/product/get.json +1 -4
- package/dist/nodes/Slack/V2/MessageDescription.js +1 -1
- package/dist/nodes/Slack/V2/MessageDescription.js.map +1 -1
- package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +3 -3
- package/dist/nodes/Slack/__schema__/v2.3.0/channel/join.json +2 -174
- package/dist/nodes/Slack/__schema__/v2.3.0/channel/replies.json +44 -4
- package/dist/nodes/Stripe/__schema__/v1.0.0/balance/get.json +34 -1
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/get.json +1 -4
- package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +4 -4
- package/dist/nodes/Telegram/__schema__/v1.2.0/message/editMessageText.json +4 -1
- package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendMessage.json +1 -12
- package/dist/nodes/Todoist/GenericFunctions.d.ts +1 -1
- package/dist/nodes/Todoist/GenericFunctions.d.ts.map +1 -1
- package/dist/nodes/Todoist/GenericFunctions.js +2 -2
- package/dist/nodes/Todoist/GenericFunctions.js.map +1 -1
- package/dist/nodes/Todoist/v2/OperationHandler.d.ts +134 -15
- package/dist/nodes/Todoist/v2/OperationHandler.d.ts.map +1 -1
- package/dist/nodes/Todoist/v2/OperationHandler.js +555 -52
- package/dist/nodes/Todoist/v2/OperationHandler.js.map +1 -1
- package/dist/nodes/Todoist/v2/Service.d.ts +36 -3
- package/dist/nodes/Todoist/v2/Service.d.ts.map +1 -1
- package/dist/nodes/Todoist/v2/Service.js +105 -2
- package/dist/nodes/Todoist/v2/Service.js.map +1 -1
- package/dist/nodes/Todoist/v2/TodoistV2.node.d.ts.map +1 -1
- package/dist/nodes/Todoist/v2/TodoistV2.node.js +1240 -31
- package/dist/nodes/Todoist/v2/TodoistV2.node.js.map +1 -1
- package/dist/nodes/Trello/__schema__/v1.0.0/attachment/get.json +4 -1
- package/dist/nodes/Trello/__schema__/v1.0.0/label/getAll.json +18 -0
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +1 -4
- package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +11 -2
- package/dist/nodes/Twilio/__schema__/v1.0.0/sms/send.json +7 -1
- package/dist/nodes/Wait/Wait.node.d.ts.map +1 -1
- package/dist/nodes/Wait/Wait.node.js +9 -1
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Wait/validation.d.ts +4 -0
- package/dist/nodes/Wait/validation.d.ts.map +1 -0
- package/dist/nodes/Wait/validation.js +11 -0
- package/dist/nodes/Wait/validation.js.map +1 -0
- package/dist/nodes/Wise/__schema__/v1.0.0/exchangeRate/get.json +4 -1
- package/dist/nodes/Wordpress/__schema__/v1.0.0/post/getAll.json +15 -1
- package/dist/nodes/Xero/__schema__/v1.0.0/contact/getAll.json +1 -4
- package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +15 -14
- package/dist/nodes/Zoho/__schema__/v1.0.0/lead/getAll.json +10 -32
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +1 -1
- package/dist/types/nodes.json +18 -18
- package/package.json +7 -7
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"emails": {
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "string"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"first_name": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "integer"
|
|
15
|
+
},
|
|
16
|
+
"last_name": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"type": {
|
|
20
|
+
"type": "integer"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"version": 1
|
|
24
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Airtable/test/v2/node/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAA4B,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpG,eAAO,MAAM,IAAI,EAAE,KASlB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,gBAAgB,WAAW,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Airtable/test/v2/node/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAA4B,KAAK,EAAE,MAAM,cAAc,CAAC;AAEpG,eAAO,MAAM,IAAI,EAAE,KASlB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,gBAAgB,WAAW,sBAuBpE,CAAC"}
|
|
@@ -18,18 +18,18 @@ exports.node = {
|
|
|
18
18
|
};
|
|
19
19
|
const createMockExecuteFunction = (nodeParameters) => {
|
|
20
20
|
const fakeExecuteFunction = {
|
|
21
|
-
getInputData() {
|
|
21
|
+
getInputData: jest.fn(() => {
|
|
22
22
|
return [{ json: {} }];
|
|
23
|
-
},
|
|
24
|
-
getNodeParameter(parameterName, _itemIndex, fallbackValue, options) {
|
|
23
|
+
}),
|
|
24
|
+
getNodeParameter: jest.fn((parameterName, _itemIndex, fallbackValue, options) => {
|
|
25
25
|
const parameter = options?.extractValue ? `${parameterName}.value` : parameterName;
|
|
26
26
|
return (0, get_1.default)(nodeParameters, parameter, fallbackValue);
|
|
27
|
-
},
|
|
28
|
-
getNode() {
|
|
27
|
+
}),
|
|
28
|
+
getNode: jest.fn(() => {
|
|
29
29
|
return exports.node;
|
|
30
|
-
},
|
|
31
|
-
helpers: { constructExecutionMetaData: n8n_core_1.constructExecutionMetaData },
|
|
32
|
-
continueOnFail: () => false,
|
|
30
|
+
}),
|
|
31
|
+
helpers: { constructExecutionMetaData: jest.fn(n8n_core_1.constructExecutionMetaData) },
|
|
32
|
+
continueOnFail: jest.fn(() => false),
|
|
33
33
|
};
|
|
34
34
|
return fakeExecuteFunction;
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../nodes/Airtable/test/v2/node/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAC7B,uCAAsD;AAGzC,QAAA,IAAI,GAAU;IAC1B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,yBAAyB;IAC/B,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE;QACX,SAAS,EAAE,QAAQ;KACnB;CACD,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,cAA2B,EAAE,EAAE;IACxE,MAAM,mBAAmB,GAAG;QAC3B,YAAY;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../nodes/Airtable/test/v2/node/helpers.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAC7B,uCAAsD;AAGzC,QAAA,IAAI,GAAU;IAC1B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,CAAC;IACd,IAAI,EAAE,yBAAyB;IAC/B,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE;QACX,SAAS,EAAE,QAAQ;KACnB;CACD,CAAC;AAEK,MAAM,yBAAyB,GAAG,CAAC,cAA2B,EAAE,EAAE;IACxE,MAAM,mBAAmB,GAAG;QAC3B,YAAY,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE;YAC1B,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACvB,CAAC,CAAC;QACF,gBAAgB,EAAE,IAAI,CAAC,EAAE,CACxB,CACC,aAAqB,EACrB,UAAkB,EAClB,aAA2B,EAC3B,OAAkC,EACjC,EAAE;YACH,MAAM,SAAS,GAAG,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,aAAa,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC;YACnF,OAAO,IAAA,aAAG,EAAC,cAAc,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC;QACtD,CAAC,CACD;QACD,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE;YACrB,OAAO,YAAI,CAAC;QACb,CAAC,CAAC;QACF,OAAO,EAAE,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,CAAC,qCAA0B,CAAC,EAAE;QAC5E,cAAc,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;KACJ,CAAC;IAClC,OAAO,mBAAmB,CAAC;AAC5B,CAAC,CAAC;AAvBW,QAAA,yBAAyB,6BAuBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Airtable/v2/actions/record/create.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAEjB,MAAM,cAAc,CAAC;AA0CtB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAE5E,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,kBAAkB,EAAE,EAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"create.operation.d.ts","sourceRoot":"","sources":["../../../../../../nodes/Airtable/v2/actions/record/create.operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAEjB,MAAM,cAAc,CAAC;AA0CtB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;GAAmD,CAAC;AAE5E,wBAAsB,OAAO,CAC5B,IAAI,EAAE,iBAAiB,EACvB,KAAK,EAAE,kBAAkB,EAAE,EAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA6C/B"}
|
|
@@ -47,19 +47,20 @@ async function execute(items, base, table) {
|
|
|
47
47
|
for (let i = 0; i < items.length; i++) {
|
|
48
48
|
try {
|
|
49
49
|
const options = this.getNodeParameter('options', i, {});
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
};
|
|
50
|
+
const typecast = Boolean(options.typecast);
|
|
51
|
+
const body = { typecast };
|
|
53
52
|
if (dataMode === 'autoMapInputData') {
|
|
54
53
|
body.fields = (0, utils_1.removeIgnored)(items[i].json, options.ignoreFields);
|
|
55
54
|
}
|
|
56
55
|
if (dataMode === 'defineBelow') {
|
|
57
|
-
const fields = this.getNodeParameter('columns.value', i, []
|
|
56
|
+
const fields = this.getNodeParameter('columns.value', i, [], {
|
|
57
|
+
skipValidation: typecast,
|
|
58
|
+
});
|
|
58
59
|
body.fields = fields;
|
|
59
60
|
}
|
|
60
61
|
const responseData = await transport_1.apiRequest.call(this, 'POST', endpoint, body);
|
|
61
62
|
const executionData = this.helpers.constructExecutionMetaData((0, utilities_1.wrapData)(responseData), { itemData: { item: i } });
|
|
62
|
-
returnData.push(
|
|
63
|
+
returnData.push.apply(returnData, executionData);
|
|
63
64
|
}
|
|
64
65
|
catch (error) {
|
|
65
66
|
error = (0, utils_1.processAirtableError)(error, undefined, i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Airtable/v2/actions/record/create.operation.ts"],"names":[],"mappings":";;;AAkDA,
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Airtable/v2/actions/record/create.operation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"data": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"modelResponse": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"meta": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"requestId": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"status": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"usage": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"credits": {
|
|
25
|
+
"type": "integer"
|
|
26
|
+
},
|
|
27
|
+
"id": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"sessionId": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"windowId": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"version": 1
|
|
42
|
+
}
|
|
@@ -1,9 +1,68 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
+
"data": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"cdpUrl": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"cdpWsUrl": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"chromedriverUrl": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"configuration": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"timeoutMinutes": {
|
|
20
|
+
"type": "integer"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dateCreated": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"id": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"lastActivity": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"status": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"errors": {
|
|
39
|
+
"type": "null"
|
|
40
|
+
},
|
|
41
|
+
"meta": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"requestId": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
4
49
|
"sessionId": {
|
|
5
50
|
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"warnings": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"code": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"message": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
6
65
|
}
|
|
7
66
|
},
|
|
8
|
-
"version":
|
|
67
|
+
"version": 2
|
|
9
68
|
}
|
|
@@ -6,17 +6,11 @@
|
|
|
6
6
|
"items": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
-
"firstName": {
|
|
10
|
-
"type": "string"
|
|
11
|
-
},
|
|
12
9
|
"hireDate": {
|
|
13
10
|
"type": "string"
|
|
14
11
|
},
|
|
15
12
|
"id": {
|
|
16
13
|
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"lastName": {
|
|
19
|
-
"type": "string"
|
|
20
14
|
}
|
|
21
15
|
}
|
|
22
16
|
}
|
|
@@ -39,5 +33,5 @@
|
|
|
39
33
|
"type": "string"
|
|
40
34
|
}
|
|
41
35
|
},
|
|
42
|
-
"version":
|
|
36
|
+
"version": 2
|
|
43
37
|
}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
"canUploadPhoto": {
|
|
5
5
|
"type": "integer"
|
|
6
6
|
},
|
|
7
|
+
"department": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
7
10
|
"displayName": {
|
|
8
11
|
"type": "string"
|
|
9
12
|
},
|
|
@@ -13,6 +16,9 @@
|
|
|
13
16
|
"id": {
|
|
14
17
|
"type": "string"
|
|
15
18
|
},
|
|
19
|
+
"jobTitle": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
16
22
|
"lastName": {
|
|
17
23
|
"type": "string"
|
|
18
24
|
},
|
|
@@ -22,9 +28,12 @@
|
|
|
22
28
|
"photoUrl": {
|
|
23
29
|
"type": "string"
|
|
24
30
|
},
|
|
31
|
+
"pronouns": {
|
|
32
|
+
"type": "null"
|
|
33
|
+
},
|
|
25
34
|
"supervisor": {
|
|
26
35
|
"type": "string"
|
|
27
36
|
}
|
|
28
37
|
},
|
|
29
|
-
"version":
|
|
38
|
+
"version": 4
|
|
30
39
|
}
|
|
@@ -13,6 +13,79 @@
|
|
|
13
13
|
"id": {
|
|
14
14
|
"type": "string"
|
|
15
15
|
},
|
|
16
|
+
"lists": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"archived": {
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
24
|
+
"assignee": {
|
|
25
|
+
"type": "null"
|
|
26
|
+
},
|
|
27
|
+
"content": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"due_date": {
|
|
31
|
+
"type": "null"
|
|
32
|
+
},
|
|
33
|
+
"id": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"name": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"orderindex": {
|
|
40
|
+
"type": "integer"
|
|
41
|
+
},
|
|
42
|
+
"override_statuses": {
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
"permission_level": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
"priority": {
|
|
49
|
+
"type": "null"
|
|
50
|
+
},
|
|
51
|
+
"start_date": {
|
|
52
|
+
"type": "null"
|
|
53
|
+
},
|
|
54
|
+
"status": {
|
|
55
|
+
"type": "null"
|
|
56
|
+
},
|
|
57
|
+
"statuses": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"color": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"id": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"orderindex": {
|
|
69
|
+
"type": "integer"
|
|
70
|
+
},
|
|
71
|
+
"status": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"status_group": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"type": {
|
|
78
|
+
"type": "string"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"task_count": {
|
|
84
|
+
"type": "integer"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
16
89
|
"name": {
|
|
17
90
|
"type": "string"
|
|
18
91
|
},
|
|
@@ -43,5 +116,5 @@
|
|
|
43
116
|
"type": "string"
|
|
44
117
|
}
|
|
45
118
|
},
|
|
46
|
-
"version":
|
|
119
|
+
"version": 3
|
|
47
120
|
}
|
|
@@ -15,7 +15,32 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": {
|
|
17
17
|
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"type_config": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"options": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"name": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"orderindex": {
|
|
34
|
+
"type": "integer"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"sorting": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
18
43
|
}
|
|
19
44
|
},
|
|
20
|
-
"version":
|
|
45
|
+
"version": 4
|
|
21
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.node.d.ts","sourceRoot":"","sources":["../../../nodes/Code/Code.node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Code.node.d.ts","sourceRoot":"","sources":["../../../nodes/Code/Code.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAMN,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,oBAAoB,EACzB,MAAM,cAAc,CAAC;AA0DtB,qBAAa,IAAK,YAAW,SAAS;IACrC,WAAW,EAAE,oBAAoB,CAkD/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB;CA6HrC"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Code = void 0;
|
|
7
|
+
/* eslint-disable n8n-nodes-base/node-execute-block-wrong-error-thrown */
|
|
7
8
|
const config_1 = require("@n8n/config");
|
|
8
9
|
const di_1 = require("@n8n/di");
|
|
9
10
|
const set_1 = __importDefault(require("lodash/set"));
|
|
@@ -12,15 +13,48 @@ const JavascriptCodeDescription_1 = require("./descriptions/JavascriptCodeDescri
|
|
|
12
13
|
const PythonCodeDescription_1 = require("./descriptions/PythonCodeDescription");
|
|
13
14
|
const JavaScriptSandbox_1 = require("./JavaScriptSandbox");
|
|
14
15
|
const JsTaskRunnerSandbox_1 = require("./JsTaskRunnerSandbox");
|
|
16
|
+
const native_python_without_runner_error_1 = require("./native-python-without-runner.error");
|
|
15
17
|
const PythonSandbox_1 = require("./PythonSandbox");
|
|
18
|
+
const PythonTaskRunnerSandbox_1 = require("./PythonTaskRunnerSandbox");
|
|
16
19
|
const Sandbox_1 = require("./Sandbox");
|
|
17
20
|
const utils_1 = require("./utils");
|
|
18
|
-
const { CODE_ENABLE_STDOUT } = process.env;
|
|
21
|
+
const { CODE_ENABLE_STDOUT, N8N_NATIVE_PYTHON_RUNNER } = process.env;
|
|
19
22
|
class PythonDisabledError extends n8n_workflow_1.UserError {
|
|
20
23
|
constructor() {
|
|
21
24
|
super('This instance disallows Python execution because it has the environment variable `N8N_PYTHON_ENABLED` set to `false`. To restore Python execution, remove this environment variable or set it to `true` and restart the instance.');
|
|
22
25
|
}
|
|
23
26
|
}
|
|
27
|
+
const getV2LanguageProperty = () => {
|
|
28
|
+
const options = [
|
|
29
|
+
{
|
|
30
|
+
name: 'JavaScript',
|
|
31
|
+
value: 'javaScript',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Python (Beta)',
|
|
35
|
+
value: 'python',
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
if (N8N_NATIVE_PYTHON_RUNNER === 'true') {
|
|
39
|
+
options.push({
|
|
40
|
+
name: 'Python (Native) (Beta)',
|
|
41
|
+
value: 'pythonNative',
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
displayName: 'Language',
|
|
46
|
+
name: 'language',
|
|
47
|
+
type: 'options',
|
|
48
|
+
noDataExpression: true,
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
'@version': [2],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
options,
|
|
55
|
+
default: 'javaScript',
|
|
56
|
+
};
|
|
57
|
+
};
|
|
24
58
|
class Code {
|
|
25
59
|
description = {
|
|
26
60
|
displayName: 'Code',
|
|
@@ -56,28 +90,7 @@ class Code {
|
|
|
56
90
|
],
|
|
57
91
|
default: 'runOnceForAllItems',
|
|
58
92
|
},
|
|
59
|
-
|
|
60
|
-
displayName: 'Language',
|
|
61
|
-
name: 'language',
|
|
62
|
-
type: 'options',
|
|
63
|
-
noDataExpression: true,
|
|
64
|
-
displayOptions: {
|
|
65
|
-
show: {
|
|
66
|
-
'@version': [2],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
options: [
|
|
70
|
-
{
|
|
71
|
-
name: 'JavaScript',
|
|
72
|
-
value: 'javaScript',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
name: 'Python (Beta)',
|
|
76
|
-
value: 'python',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
default: 'javaScript',
|
|
80
|
-
},
|
|
93
|
+
getV2LanguageProperty(),
|
|
81
94
|
{
|
|
82
95
|
displayName: 'Language',
|
|
83
96
|
name: 'language',
|
|
@@ -99,14 +112,14 @@ class Code {
|
|
|
99
112
|
? this.getNodeParameter('language', 0)
|
|
100
113
|
: 'javaScript';
|
|
101
114
|
if (language === 'python' && !di_1.Container.get(config_1.NodesConfig).pythonEnabled) {
|
|
102
|
-
// eslint-disable-next-line n8n-nodes-base/node-execute-block-wrong-error-thrown
|
|
103
115
|
throw new PythonDisabledError();
|
|
104
116
|
}
|
|
105
117
|
const runnersConfig = di_1.Container.get(config_1.TaskRunnersConfig);
|
|
118
|
+
const isRunnerEnabled = runnersConfig.enabled;
|
|
106
119
|
const nodeMode = this.getNodeParameter('mode', 0);
|
|
107
120
|
const workflowMode = this.getMode();
|
|
108
|
-
const codeParameterName = language === 'python' ? 'pythonCode' : 'jsCode';
|
|
109
|
-
if (
|
|
121
|
+
const codeParameterName = language === 'python' || language === 'pythonNative' ? 'pythonCode' : 'jsCode';
|
|
122
|
+
if (language === 'javaScript' && isRunnerEnabled) {
|
|
110
123
|
const code = this.getNodeParameter(codeParameterName, 0);
|
|
111
124
|
const sandbox = new JsTaskRunnerSandbox_1.JsTaskRunnerSandbox(code, nodeMode, workflowMode, this);
|
|
112
125
|
const numInputItems = this.getInputData().length;
|
|
@@ -114,6 +127,13 @@ class Code {
|
|
|
114
127
|
? [await sandbox.runCodeAllItems()]
|
|
115
128
|
: [await sandbox.runCodeForEachItem(numInputItems)];
|
|
116
129
|
}
|
|
130
|
+
if (language === 'pythonNative' && !isRunnerEnabled)
|
|
131
|
+
throw new native_python_without_runner_error_1.NativePythonWithoutRunnerError();
|
|
132
|
+
if (language === 'pythonNative') {
|
|
133
|
+
const code = this.getNodeParameter(codeParameterName, 0);
|
|
134
|
+
const sandbox = new PythonTaskRunnerSandbox_1.PythonTaskRunnerSandbox(code, nodeMode, workflowMode, this);
|
|
135
|
+
return [await sandbox.runUsingIncomingItems()];
|
|
136
|
+
}
|
|
117
137
|
const getSandbox = (index = 0) => {
|
|
118
138
|
const code = this.getNodeParameter(codeParameterName, index);
|
|
119
139
|
const context = Sandbox_1.getSandboxContext.call(this, index);
|