n8n-nodes-base 1.95.0 → 1.96.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.
Files changed (132) hide show
  1. package/dist/credentials/PerplexityApi.credentials.js +1 -1
  2. package/dist/credentials/PerplexityApi.credentials.js.map +1 -1
  3. package/dist/nodes/Adalo/__schema__/v1.0.0/collection/getAll.json +21 -0
  4. package/dist/nodes/Airtable/test/v2/node/helpers.js +12 -2
  5. package/dist/nodes/Airtable/test/v2/node/helpers.js.map +1 -1
  6. package/dist/nodes/Airtop/__schema__/v1.0.0/extraction/query.json +7 -1
  7. package/dist/nodes/Airtop/__schema__/v1.0.0/session/create.json +9 -0
  8. package/dist/nodes/Airtop/__schema__/v1.0.0/window/create.json +40 -0
  9. package/dist/nodes/Airtop/test/node/helpers.js +12 -2
  10. package/dist/nodes/Airtop/test/node/helpers.js.map +1 -1
  11. package/dist/nodes/Asana/__schema__/v1.0.0/subtask/getAll.json +4 -1
  12. package/dist/nodes/Aws/S3/__schema__/v2.0.0/file/getAll.json +7 -1
  13. package/dist/nodes/Aws/S3/__schema__/v2.0.0/folder/getAll.json +7 -1
  14. package/dist/nodes/BambooHr/__schema__/v1.0.0/employee/getAll.json +1 -4
  15. package/dist/nodes/ClickUp/__schema__/v1.0.0/list/customFields.json +23 -1
  16. package/dist/nodes/Code/Pyodide.js +24 -0
  17. package/dist/nodes/Code/Pyodide.js.map +1 -1
  18. package/dist/nodes/CompareDatasets/GenericFunctions.js +5 -5
  19. package/dist/nodes/CompareDatasets/GenericFunctions.js.map +1 -1
  20. package/dist/nodes/Discord/__schema__/v2.0.0/message/sendAndWait.json +14 -0
  21. package/dist/nodes/Discord/v2/helpers/utils.js +2 -2
  22. package/dist/nodes/Discord/v2/helpers/utils.js.map +1 -1
  23. package/dist/nodes/Dropbox/__schema__/v1.0.0/file/download.json +31 -1
  24. package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/enrich.json +15 -1
  25. package/dist/nodes/Dropcontact/__schema__/v1.0.0/contact/fetchRequest.json +50 -0
  26. package/dist/nodes/EmailReadImap/v2/utils.js +16 -3
  27. package/dist/nodes/EmailReadImap/v2/utils.js.map +1 -1
  28. package/dist/nodes/EmailSend/__schema__/v2.1.0/email/send.json +1 -7
  29. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js +1 -1
  30. package/dist/nodes/Evaluation/EvaluationTrigger/EvaluationTrigger.node.ee.js.map +1 -1
  31. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js +2 -2
  32. package/dist/nodes/ExecuteWorkflow/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.js.map +1 -1
  33. package/dist/nodes/Freshservice/GenericFunctions.js +12 -2
  34. package/dist/nodes/Freshservice/GenericFunctions.js.map +1 -1
  35. package/dist/nodes/Google/Ads/__schema__/v1.0.0/campaign/getAll.json +13 -1
  36. package/dist/nodes/Google/Analytics/__schema__/v2.0.0/report/get.json +1 -4
  37. package/dist/nodes/Google/Calendar/__schema__/v1.3.0/event/getAll.json +1 -4
  38. package/dist/nodes/Google/Chat/__schema__/v1.0.0/message/create.json +30 -1
  39. package/dist/nodes/Google/Drive/__schema__/v3.0.0/file/upload.json +4 -1
  40. package/dist/nodes/Google/Drive/test/v2/node/helpers.js +12 -2
  41. package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -1
  42. package/dist/nodes/Google/Firebase/CloudFirestore/__schema__/v1.1.0/document/query.json +1 -7
  43. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/addLabels.json +13 -1
  44. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/get.json +1 -7
  45. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/message/markAsRead.json +13 -1
  46. package/dist/nodes/Google/Gmail/__schema__/v2.1.0/thread/addLabels.json +16 -1
  47. package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js +10 -4
  48. package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js.map +1 -1
  49. package/dist/nodes/HaloPSA/__schema__/v1.0.0/ticket/getAll.json +1 -268
  50. package/dist/nodes/HttpRequest/shared/optimizeResponse.js +5 -3
  51. package/dist/nodes/HttpRequest/shared/optimizeResponse.js.map +1 -1
  52. package/dist/nodes/Hubspot/__schema__/v2.1.0/company/getAll.json +1 -4
  53. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/getAll.json +64 -1
  54. package/dist/nodes/Hubspot/__schema__/v2.1.0/deal/search.json +1 -4
  55. package/dist/nodes/Hubspot/__schema__/v2.1.0/ticket/get.json +1 -61
  56. package/dist/nodes/JinaAI/__schema__/v1.0.0/reader/read.json +26 -0
  57. package/dist/nodes/Jira/__schema__/v1.0.0/issue/get.json +604 -7
  58. package/dist/nodes/Jira/__schema__/v1.0.0/issue/getAll.json +1 -110
  59. package/dist/nodes/Lemlist/__schema__/v2.0.0/lead/create.json +1 -4
  60. package/dist/nodes/Lemlist/__schema__/v2.0.0/lead/get.json +30 -0
  61. package/dist/nodes/Line/__schema__/v1.0.0/notification/send.json +4 -7
  62. package/dist/nodes/Linear/__schema__/v1.0.0/issue/getAll.json +12 -1
  63. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +23 -3
  64. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  65. package/dist/nodes/Microsoft/Entra/__schema__/v1.0.0/user/getAll.json +1 -7
  66. package/dist/nodes/Microsoft/Entra/descriptions/GroupDescription.js +12 -2
  67. package/dist/nodes/Microsoft/Entra/descriptions/GroupDescription.js.map +1 -1
  68. package/dist/nodes/Microsoft/Entra/descriptions/UserDescription.js +13 -3
  69. package/dist/nodes/Microsoft/Entra/descriptions/UserDescription.js.map +1 -1
  70. package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/file/download.json +23 -10
  71. package/dist/nodes/Microsoft/OneDrive/__schema__/v1.0.0/folder/create.json +1 -15
  72. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/event/getAll.json +1 -4
  73. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/folderMessage/getAll.json +124 -1
  74. package/dist/nodes/Microsoft/Outlook/__schema__/v2.0.0/message/getAll.json +1 -56
  75. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +12 -2
  76. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
  77. package/dist/nodes/Microsoft/Storage/__schema__/v1.0.0/blob/create.json +39 -0
  78. package/dist/nodes/Microsoft/Storage/__schema__/v1.0.0/blob/get.json +44 -0
  79. package/dist/nodes/Microsoft/ToDo/__schema__/v1.0.0/task/getAll.json +5 -21
  80. package/dist/nodes/N8n/WorkflowDescription.js +40 -0
  81. package/dist/nodes/N8n/WorkflowDescription.js.map +1 -1
  82. package/dist/nodes/Nasa/__schema__/v1.0.0/donkiSolarFlare/get.json +1 -4
  83. package/dist/nodes/Notion/__schema__/v2.2.0/database/get.json +2 -149
  84. package/dist/nodes/Odoo/__schema__/v1.0.0/contact/get.json +1 -4
  85. package/dist/nodes/Odoo/__schema__/v1.0.0/contact/getAll.json +1 -10
  86. package/dist/nodes/Odoo/__schema__/v1.0.0/opportunity/getAll.json +1 -40
  87. package/dist/nodes/OpenAi/__schema__/v1.1.0/chat/complete.json +29 -1
  88. package/dist/nodes/Perplexity/perplexity.dark.svg +35 -0
  89. package/dist/nodes/Pipedrive/__schema__/v1.0.0/person/search.json +7 -1
  90. package/dist/nodes/QuickBase/__schema__/v1.0.0/record/getAll.json +9 -0
  91. package/dist/nodes/QuickBooks/__schema__/v1.0.0/transaction/getReport.json +4 -1
  92. package/dist/nodes/RssFeedRead/RssFeedRead.node.js +9 -3
  93. package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
  94. package/dist/nodes/S3/__schema__/v1.0.0/file/download.json +21 -0
  95. package/dist/nodes/Salesforce/__schema__/v1.0.0/customObject/getAll.json +1 -4
  96. package/dist/nodes/Salesforce/__schema__/v1.0.0/lead/getAll.json +1 -4
  97. package/dist/nodes/Salesforce/__schema__/v1.0.0/opportunity/getAll.json +1 -4
  98. package/dist/nodes/Salesforce/__schema__/v1.0.0/search/query.json +1 -4
  99. package/dist/nodes/Shopify/__schema__/v1.0.0/order/getAll.json +250 -3
  100. package/dist/nodes/Slack/__schema__/v2.3.0/channel/history.json +1 -50
  101. package/dist/nodes/Slack/__schema__/v2.3.0/channel/member.json +168 -2
  102. package/dist/nodes/Slack/__schema__/v2.3.0/message/post.json +1 -4
  103. package/dist/nodes/Sms77/__schema__/v1.0.0/sms/send.json +1 -10
  104. package/dist/nodes/Strapi/__schema__/v1.0.0/entry/getAll.json +10 -1
  105. package/dist/nodes/Telegram/__schema__/v1.2.0/chat/member.json +1 -4
  106. package/dist/nodes/Telegram/__schema__/v1.2.0/message/editMessageText.json +4 -1
  107. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendAndWait.json +14 -0
  108. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendMessage.json +4 -21
  109. package/dist/nodes/Telegram/__schema__/v1.2.0/message/sendPhoto.json +1 -7
  110. package/dist/nodes/Telegram/tests/Helpers.js +12 -2
  111. package/dist/nodes/Telegram/tests/Helpers.js.map +1 -1
  112. package/dist/nodes/Transform/RemoveDuplicates/utils.js +8 -6
  113. package/dist/nodes/Transform/RemoveDuplicates/utils.js.map +1 -1
  114. package/dist/nodes/Trello/__schema__/v1.0.0/list/getAll.json +1 -4
  115. package/dist/nodes/Trello/__schema__/v1.0.0/list/getCards.json +1 -4
  116. package/dist/nodes/Twitter/__schema__/v2.0.0/tweet/search.json +7 -1
  117. package/dist/nodes/Wordpress/__schema__/v1.0.0/post/get.json +1 -7
  118. package/dist/nodes/Zoho/__schema__/v1.0.0/contact/getAll.json +1 -4
  119. package/dist/nodes/Zoho/__schema__/v1.0.0/lead/getAll.json +99 -1
  120. package/dist/test/nodes/Helpers.js +12 -2
  121. package/dist/test/nodes/Helpers.js.map +1 -1
  122. package/dist/types/credentials.json +1 -1
  123. package/dist/types/nodes.json +13 -13
  124. package/dist/utils/binary.js +12 -9
  125. package/dist/utils/binary.js.map +1 -1
  126. package/dist/utils/sendAndWait/utils.js +20 -5
  127. package/dist/utils/sendAndWait/utils.js.map +1 -1
  128. package/dist/utils/utilities.js +31 -16
  129. package/dist/utils/utilities.js.map +1 -1
  130. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js +2 -2
  131. package/dist/utils/workflowInputsResourceMapping/GenericFunctions.js.map +1 -1
  132. package/package.json +7 -7
@@ -3,10 +3,7 @@
3
3
  "properties": {
4
4
  "date": {
5
5
  "type": "string"
6
- },
7
- "sessions": {
8
- "type": "string"
9
6
  }
10
7
  },
11
- "version": 2
8
+ "version": 3
12
9
  }
@@ -47,9 +47,6 @@
47
47
  "organizer": {
48
48
  "type": "object",
49
49
  "properties": {
50
- "displayName": {
51
- "type": "string"
52
- },
53
50
  "email": {
54
51
  "type": "string"
55
52
  },
@@ -90,5 +87,5 @@
90
87
  "type": "string"
91
88
  }
92
89
  },
93
- "version": 3
90
+ "version": 4
94
91
  }
@@ -16,6 +16,9 @@
16
16
  "sender": {
17
17
  "type": "object",
18
18
  "properties": {
19
+ "displayName": {
20
+ "type": "string"
21
+ },
19
22
  "name": {
20
23
  "type": "string"
21
24
  },
@@ -27,8 +30,34 @@
27
30
  "space": {
28
31
  "type": "object",
29
32
  "properties": {
33
+ "lastActiveTime": {
34
+ "type": "string"
35
+ },
36
+ "membershipCount": {
37
+ "type": "object",
38
+ "properties": {
39
+ "joinedDirectHumanUserCount": {
40
+ "type": "integer"
41
+ }
42
+ }
43
+ },
30
44
  "name": {
31
45
  "type": "string"
46
+ },
47
+ "spaceHistoryState": {
48
+ "type": "string"
49
+ },
50
+ "spaceThreadingState": {
51
+ "type": "string"
52
+ },
53
+ "spaceType": {
54
+ "type": "string"
55
+ },
56
+ "spaceUri": {
57
+ "type": "string"
58
+ },
59
+ "type": {
60
+ "type": "string"
32
61
  }
33
62
  }
34
63
  },
@@ -44,5 +73,5 @@
44
73
  }
45
74
  }
46
75
  },
47
- "version": 1
76
+ "version": 2
48
77
  }
@@ -290,6 +290,9 @@
290
290
  "starred": {
291
291
  "type": "boolean"
292
292
  },
293
+ "thumbnailLink": {
294
+ "type": "string"
295
+ },
293
296
  "thumbnailVersion": {
294
297
  "type": "string"
295
298
  },
@@ -315,5 +318,5 @@
315
318
  "type": "boolean"
316
319
  }
317
320
  },
318
- "version": 1
321
+ "version": 2
319
322
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
  var helpers_exports = {};
20
30
  __export(helpers_exports, {
@@ -23,7 +33,7 @@ __export(helpers_exports, {
23
33
  driveNode: () => driveNode
24
34
  });
25
35
  module.exports = __toCommonJS(helpers_exports);
26
- var import_lodash = require("lodash");
36
+ var import_get = __toESM(require("lodash/get"));
27
37
  var import_n8n_core = require("n8n-core");
28
38
  var import_stream = require("stream");
29
39
  const driveNode = {
@@ -38,7 +48,7 @@ const createMockExecuteFunction = (nodeParameters, node, continueOnFail = false)
38
48
  const fakeExecuteFunction = {
39
49
  getNodeParameter(parameterName, _itemIndex, fallbackValue, options) {
40
50
  const parameter = options?.extractValue ? `${parameterName}.value` : parameterName;
41
- return (0, import_lodash.get)(nodeParameters, parameter, fallbackValue);
51
+ return (0, import_get.default)(nodeParameters, parameter, fallbackValue);
42
52
  },
43
53
  getNode() {
44
54
  return node;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../nodes/Google/Drive/test/v2/node/helpers.ts"],"sourcesContent":["import { get } from 'lodash';\nimport { constructExecutionMetaData } from 'n8n-core';\nimport type { IDataObject, IExecuteFunctions, IGetNodeParameterOptions, INode } from 'n8n-workflow';\nimport { Readable } from 'stream';\n\nexport const driveNode: INode = {\n\tid: '11',\n\tname: 'Google Drive node',\n\ttypeVersion: 3,\n\ttype: 'n8n-nodes-base.googleDrive',\n\tposition: [42, 42],\n\tparameters: {},\n};\n\nexport const createMockExecuteFunction = (\n\tnodeParameters: IDataObject,\n\tnode: INode,\n\tcontinueOnFail = false,\n) => {\n\tconst fakeExecuteFunction = {\n\t\tgetNodeParameter(\n\t\t\tparameterName: string,\n\t\t\t_itemIndex: number,\n\t\t\tfallbackValue?: IDataObject | undefined,\n\t\t\toptions?: IGetNodeParameterOptions | undefined,\n\t\t) {\n\t\t\tconst parameter = options?.extractValue ? `${parameterName}.value` : parameterName;\n\t\t\treturn get(nodeParameters, parameter, fallbackValue);\n\t\t},\n\t\tgetNode() {\n\t\t\treturn node;\n\t\t},\n\t\thelpers: {\n\t\t\tconstructExecutionMetaData,\n\t\t\treturnJsonArray: () => [],\n\t\t\tprepareBinaryData: () => {},\n\t\t\thttpRequest: () => {},\n\t\t},\n\t\tcontinueOnFail: () => continueOnFail,\n\t} as unknown as IExecuteFunctions;\n\treturn fakeExecuteFunction;\n};\n\nexport function createTestStream(byteSize: number) {\n\tlet bytesSent = 0;\n\tconst CHUNK_SIZE = 64 * 1024; // 64kB chunks (default NodeJS highWaterMark)\n\n\treturn new Readable({\n\t\tread() {\n\t\t\tconst remainingBytes = byteSize - bytesSent;\n\n\t\t\tif (remainingBytes <= 0) {\n\t\t\t\tthis.push(null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst chunkSize = Math.min(CHUNK_SIZE, remainingBytes);\n\t\t\tconst chunk = Buffer.alloc(chunkSize, 'A'); // Test data just a string of \"A\"\n\n\t\t\tbytesSent += chunkSize;\n\t\t\tthis.push(chunk);\n\t\t},\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAoB;AACpB,sBAA2C;AAE3C,oBAAyB;AAElB,MAAM,YAAmB;AAAA,EAC/B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,IAAI,EAAE;AAAA,EACjB,YAAY,CAAC;AACd;AAEO,MAAM,4BAA4B,CACxC,gBACA,MACA,iBAAiB,UACb;AACJ,QAAM,sBAAsB;AAAA,IAC3B,iBACC,eACA,YACA,eACA,SACC;AACD,YAAM,YAAY,SAAS,eAAe,GAAG,aAAa,WAAW;AACrE,iBAAO,mBAAI,gBAAgB,WAAW,aAAa;AAAA,IACpD;AAAA,IACA,UAAU;AACT,aAAO;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACR;AAAA,MACA,iBAAiB,MAAM,CAAC;AAAA,MACxB,mBAAmB,MAAM;AAAA,MAAC;AAAA,MAC1B,aAAa,MAAM;AAAA,MAAC;AAAA,IACrB;AAAA,IACA,gBAAgB,MAAM;AAAA,EACvB;AACA,SAAO;AACR;AAEO,SAAS,iBAAiB,UAAkB;AAClD,MAAI,YAAY;AAChB,QAAM,aAAa,KAAK;AAExB,SAAO,IAAI,uBAAS;AAAA,IACnB,OAAO;AACN,YAAM,iBAAiB,WAAW;AAElC,UAAI,kBAAkB,GAAG;AACxB,aAAK,KAAK,IAAI;AACd;AAAA,MACD;AAEA,YAAM,YAAY,KAAK,IAAI,YAAY,cAAc;AACrD,YAAM,QAAQ,OAAO,MAAM,WAAW,GAAG;AAEzC,mBAAa;AACb,WAAK,KAAK,KAAK;AAAA,IAChB;AAAA,EACD,CAAC;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../../../../../nodes/Google/Drive/test/v2/node/helpers.ts"],"sourcesContent":["import get from 'lodash/get';\nimport { constructExecutionMetaData } from 'n8n-core';\nimport type { IDataObject, IExecuteFunctions, IGetNodeParameterOptions, INode } from 'n8n-workflow';\nimport { Readable } from 'stream';\n\nexport const driveNode: INode = {\n\tid: '11',\n\tname: 'Google Drive node',\n\ttypeVersion: 3,\n\ttype: 'n8n-nodes-base.googleDrive',\n\tposition: [42, 42],\n\tparameters: {},\n};\n\nexport const createMockExecuteFunction = (\n\tnodeParameters: IDataObject,\n\tnode: INode,\n\tcontinueOnFail = false,\n) => {\n\tconst fakeExecuteFunction = {\n\t\tgetNodeParameter(\n\t\t\tparameterName: string,\n\t\t\t_itemIndex: number,\n\t\t\tfallbackValue?: IDataObject | undefined,\n\t\t\toptions?: IGetNodeParameterOptions | undefined,\n\t\t) {\n\t\t\tconst parameter = options?.extractValue ? `${parameterName}.value` : parameterName;\n\t\t\treturn get(nodeParameters, parameter, fallbackValue);\n\t\t},\n\t\tgetNode() {\n\t\t\treturn node;\n\t\t},\n\t\thelpers: {\n\t\t\tconstructExecutionMetaData,\n\t\t\treturnJsonArray: () => [],\n\t\t\tprepareBinaryData: () => {},\n\t\t\thttpRequest: () => {},\n\t\t},\n\t\tcontinueOnFail: () => continueOnFail,\n\t} as unknown as IExecuteFunctions;\n\treturn fakeExecuteFunction;\n};\n\nexport function createTestStream(byteSize: number) {\n\tlet bytesSent = 0;\n\tconst CHUNK_SIZE = 64 * 1024; // 64kB chunks (default NodeJS highWaterMark)\n\n\treturn new Readable({\n\t\tread() {\n\t\t\tconst remainingBytes = byteSize - bytesSent;\n\n\t\t\tif (remainingBytes <= 0) {\n\t\t\t\tthis.push(null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst chunkSize = Math.min(CHUNK_SIZE, remainingBytes);\n\t\t\tconst chunk = Buffer.alloc(chunkSize, 'A'); // Test data just a string of \"A\"\n\n\t\t\tbytesSent += chunkSize;\n\t\t\tthis.push(chunk);\n\t\t},\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAgB;AAChB,sBAA2C;AAE3C,oBAAyB;AAElB,MAAM,YAAmB;AAAA,EAC/B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,aAAa;AAAA,EACb,MAAM;AAAA,EACN,UAAU,CAAC,IAAI,EAAE;AAAA,EACjB,YAAY,CAAC;AACd;AAEO,MAAM,4BAA4B,CACxC,gBACA,MACA,iBAAiB,UACb;AACJ,QAAM,sBAAsB;AAAA,IAC3B,iBACC,eACA,YACA,eACA,SACC;AACD,YAAM,YAAY,SAAS,eAAe,GAAG,aAAa,WAAW;AACrE,iBAAO,WAAAA,SAAI,gBAAgB,WAAW,aAAa;AAAA,IACpD;AAAA,IACA,UAAU;AACT,aAAO;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACR;AAAA,MACA,iBAAiB,MAAM,CAAC;AAAA,MACxB,mBAAmB,MAAM;AAAA,MAAC;AAAA,MAC1B,aAAa,MAAM;AAAA,MAAC;AAAA,IACrB;AAAA,IACA,gBAAgB,MAAM;AAAA,EACvB;AACA,SAAO;AACR;AAEO,SAAS,iBAAiB,UAAkB;AAClD,MAAI,YAAY;AAChB,QAAM,aAAa,KAAK;AAExB,SAAO,IAAI,uBAAS;AAAA,IACnB,OAAO;AACN,YAAM,iBAAiB,WAAW;AAElC,UAAI,kBAAkB,GAAG;AACxB,aAAK,KAAK,IAAI;AACd;AAAA,MACD;AAEA,YAAM,YAAY,KAAK,IAAI,YAAY,cAAc;AACrD,YAAM,QAAQ,OAAO,MAAM,WAAW,GAAG;AAEzC,mBAAa;AACb,WAAK,KAAK,KAAK;AAAA,IAChB;AAAA,EACD,CAAC;AACF;","names":["get"]}
@@ -12,13 +12,7 @@
12
12
  },
13
13
  "_updateTime": {
14
14
  "type": "string"
15
- },
16
- "chat_id": {
17
- "type": "string"
18
- },
19
- "lastInteraction": {
20
- "type": "string"
21
15
  }
22
16
  },
23
- "version": 2
17
+ "version": 3
24
18
  }
@@ -1,18 +1,30 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
+ "historyId": {
5
+ "type": "string"
6
+ },
4
7
  "id": {
5
8
  "type": "string"
6
9
  },
10
+ "internalDate": {
11
+ "type": "string"
12
+ },
7
13
  "labelIds": {
8
14
  "type": "array",
9
15
  "items": {
10
16
  "type": "string"
11
17
  }
12
18
  },
19
+ "sizeEstimate": {
20
+ "type": "integer"
21
+ },
22
+ "snippet": {
23
+ "type": "string"
24
+ },
13
25
  "threadId": {
14
26
  "type": "string"
15
27
  }
16
28
  },
17
- "version": 2
29
+ "version": 3
18
30
  }
@@ -80,12 +80,6 @@
80
80
  "to": {
81
81
  "type": "string"
82
82
  },
83
- "x-gm-message-state": {
84
- "type": "string"
85
- },
86
- "x-google-dkim-signature": {
87
- "type": "string"
88
- },
89
83
  "x-google-smtp-source": {
90
84
  "type": "string"
91
85
  },
@@ -147,5 +141,5 @@
147
141
  }
148
142
  }
149
143
  },
150
- "version": 3
144
+ "version": 4
151
145
  }
@@ -1,18 +1,30 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
+ "historyId": {
5
+ "type": "string"
6
+ },
4
7
  "id": {
5
8
  "type": "string"
6
9
  },
10
+ "internalDate": {
11
+ "type": "string"
12
+ },
7
13
  "labelIds": {
8
14
  "type": "array",
9
15
  "items": {
10
16
  "type": "string"
11
17
  }
12
18
  },
19
+ "sizeEstimate": {
20
+ "type": "integer"
21
+ },
22
+ "snippet": {
23
+ "type": "string"
24
+ },
13
25
  "threadId": {
14
26
  "type": "string"
15
27
  }
16
28
  },
17
- "version": 1
29
+ "version": 2
18
30
  }
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "type": "object",
3
3
  "properties": {
4
+ "historyId": {
5
+ "type": "string"
6
+ },
4
7
  "id": {
5
8
  "type": "string"
6
9
  },
@@ -9,15 +12,27 @@
9
12
  "items": {
10
13
  "type": "object",
11
14
  "properties": {
15
+ "historyId": {
16
+ "type": "string"
17
+ },
12
18
  "id": {
13
19
  "type": "string"
14
20
  },
21
+ "internalDate": {
22
+ "type": "string"
23
+ },
15
24
  "labelIds": {
16
25
  "type": "array",
17
26
  "items": {
18
27
  "type": "string"
19
28
  }
20
29
  },
30
+ "sizeEstimate": {
31
+ "type": "integer"
32
+ },
33
+ "snippet": {
34
+ "type": "string"
35
+ },
21
36
  "threadId": {
22
37
  "type": "string"
23
38
  }
@@ -25,5 +40,5 @@
25
40
  }
26
41
  }
27
42
  },
28
- "version": 1
43
+ "version": 2
29
44
  }
@@ -334,10 +334,16 @@ async function execute(sheet, sheetName) {
334
334
  );
335
335
  }
336
336
  Object.keys(mappingValues).forEach((key) => {
337
- if (key === "row_number" && (mappingValues[key] === null || mappingValues[key] === void 0)) {
338
- throw new import_n8n_workflow.UserError(
339
- "Column to match on (row_number) is not defined. Since the field is used to determine the row to update, it needs to have a value set."
340
- );
337
+ if (key === "row_number" && mappingValues[key] === void 0 && nodeVersion >= 4.6) {
338
+ throw new import_n8n_workflow.UserError("row_number is null or undefined", {
339
+ description: "Since it's being used to determine the row to update, it cannot be null or undefined"
340
+ });
341
+ }
342
+ if (mappingValues[key] === void 0) {
343
+ this.addExecutionHints({
344
+ message: "Warning: The value of column to match is null or undefined",
345
+ location: "outputPane"
346
+ });
341
347
  }
342
348
  if (mappingValues[key] === void 0 || mappingValues[key] === null) {
343
349
  mappingValues[key] = "";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/update.operation.ts"],"sourcesContent":["import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';\nimport { NodeOperationError, UserError } from 'n8n-workflow';\n\nimport { cellFormat, handlingExtraData, locationDefine } from './commonDescription';\nimport type { GoogleSheet } from '../../helpers/GoogleSheet';\nimport {\n\tROW_NUMBER,\n\ttype ISheetUpdateData,\n\ttype SheetProperties,\n\ttype ValueInputOption,\n\ttype ValueRenderOption,\n} from '../../helpers/GoogleSheets.types';\nimport { cellFormatDefault, untilSheetSelected } from '../../helpers/GoogleSheets.utils';\n\nexport const description: SheetProperties = [\n\t{\n\t\tdisplayName: 'Data Mode',\n\t\tname: 'dataMode',\n\t\ttype: 'options',\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Auto-Map Input Data to Columns',\n\t\t\t\tvalue: 'autoMapInputData',\n\t\t\t\tdescription: 'Use when node input properties match destination column names',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Map Each Column Below',\n\t\t\t\tvalue: 'defineBelow',\n\t\t\t\tdescription: 'Set the value for each destination column',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Nothing',\n\t\t\t\tvalue: 'nothing',\n\t\t\t\tdescription: 'Do not send anything',\n\t\t\t},\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\tdefault: 'defineBelow',\n\t\tdescription: 'Whether to insert the input data this node receives in the new row',\n\t},\n\t{\n\t\t// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased, n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options\n\t\tdisplayName: 'Column to match on',\n\t\tname: 'columnToMatchOn',\n\t\ttype: 'options',\n\t\tdescription:\n\t\t\t'Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>',\n\t\ttypeOptions: {\n\t\t\tloadOptionsDependsOn: ['sheetName.value'],\n\t\t\tloadOptionsMethod: 'getSheetHeaderRowAndSkipEmpty',\n\t\t},\n\t\tdefault: '',\n\t\thint: \"Used to find the correct row to update. Doesn't get changed.\",\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Value of Column to Match On',\n\t\tname: 'valueToMatchOn',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\tdataMode: ['defineBelow'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Values to Send',\n\t\tname: 'fieldsUi',\n\t\tplaceholder: 'Add Field',\n\t\ttype: 'fixedCollection',\n\t\ttypeOptions: {\n\t\t\tmultipleValues: true,\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\tdataMode: ['defineBelow'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Field',\n\t\t\t\tname: 'values',\n\t\t\t\tvalues: [\n\t\t\t\t\t{\n\t\t\t\t\t\t// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options\n\t\t\t\t\t\tdisplayName: 'Column',\n\t\t\t\t\t\tname: 'column',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tloadOptionsDependsOn: ['sheetName.value', 'columnToMatchOn'],\n\t\t\t\t\t\t\tloadOptionsMethod: 'getSheetHeaderRowAndAddColumn',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Column Name',\n\t\t\t\t\t\tname: 'columnName',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\tcolumn: ['newColumn'],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Value',\n\t\t\t\t\t\tname: 'fieldValue',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tdisplayName: 'Columns',\n\t\tname: 'columns',\n\t\ttype: 'resourceMapper',\n\t\tnoDataExpression: true,\n\t\tdefault: {\n\t\t\tmappingMode: 'defineBelow',\n\t\t\tvalue: null,\n\t\t},\n\t\trequired: true,\n\t\ttypeOptions: {\n\t\t\tloadOptionsDependsOn: ['sheetName.value'],\n\t\t\tresourceMapper: {\n\t\t\t\tresourceMapperMethod: 'getMappingColumns',\n\t\t\t\tmode: 'update',\n\t\t\t\tfieldWords: {\n\t\t\t\t\tsingular: 'column',\n\t\t\t\t\tplural: 'columns',\n\t\t\t\t},\n\t\t\t\taddAllFields: true,\n\t\t\t\tmultiKeyMatch: false,\n\t\t\t},\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [{ _cnd: { gte: 4 } }],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Options',\n\t\tname: 'options',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add option',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\tcellFormat,\n\t\t\tlocationDefine,\n\t\t\thandlingExtraData,\n\t\t\t{\n\t\t\t\t...handlingExtraData,\n\t\t\t\tdisplayOptions: { show: { '/columns.mappingMode': ['autoMapInputData'] } },\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport async function execute(\n\tthis: IExecuteFunctions,\n\tsheet: GoogleSheet,\n\tsheetName: string,\n): Promise<INodeExecutionData[]> {\n\tconst items = this.getInputData();\n\tconst nodeVersion = this.getNode().typeVersion;\n\n\tconst range = `${sheetName}!A:Z`;\n\n\tconst valueInputMode = this.getNodeParameter(\n\t\t'options.cellFormat',\n\t\t0,\n\t\tcellFormatDefault(nodeVersion),\n\t) as ValueInputOption;\n\n\tconst options = this.getNodeParameter('options', 0, {});\n\n\tconst valueRenderMode = (options.valueRenderMode || 'UNFORMATTED_VALUE') as ValueRenderOption;\n\n\tconst locationDefineOptions = (options.locationDefine as IDataObject)?.values as IDataObject;\n\n\tlet keyRowIndex = 0;\n\tlet dataStartRowIndex = 1;\n\n\tif (locationDefineOptions) {\n\t\tif (locationDefineOptions.headerRow) {\n\t\t\tkeyRowIndex = parseInt(locationDefineOptions.headerRow as string, 10) - 1;\n\t\t}\n\t\tif (locationDefineOptions.firstDataRow) {\n\t\t\tdataStartRowIndex = parseInt(locationDefineOptions.firstDataRow as string, 10) - 1;\n\t\t}\n\t}\n\n\tlet columnNames: string[] = [];\n\n\tconst sheetData = await sheet.getData(sheetName, 'FORMATTED_VALUE');\n\n\tif (sheetData?.[keyRowIndex] === undefined) {\n\t\tthrow new NodeOperationError(\n\t\t\tthis.getNode(),\n\t\t\t`Could not retrieve the column names from row ${keyRowIndex + 1}`,\n\t\t);\n\t}\n\n\tcolumnNames = sheetData[keyRowIndex];\n\n\tconst newColumns = new Set<string>();\n\n\tconst columnsToMatchOn: string[] =\n\t\tnodeVersion < 4\n\t\t\t? [this.getNodeParameter('columnToMatchOn', 0) as string]\n\t\t\t: (this.getNodeParameter('columns.matchingColumns', 0) as string[]);\n\n\tconst dataMode =\n\t\tnodeVersion < 4\n\t\t\t? (this.getNodeParameter('dataMode', 0) as string)\n\t\t\t: (this.getNodeParameter('columns.mappingMode', 0) as string);\n\n\t// TODO: Add support for multiple columns to match on in the next overhaul\n\tconst keyIndex = columnNames.indexOf(columnsToMatchOn[0]);\n\n\t//not used when updating row\n\tconst columnValuesList = await sheet.getColumnValues({\n\t\trange,\n\t\tkeyIndex,\n\t\tdataStartRowIndex,\n\t\tvalueRenderMode,\n\t\tsheetData,\n\t});\n\n\tconst updateData: ISheetUpdateData[] = [];\n\n\tconst mappedValues: IDataObject[] = [];\n\n\tconst errorOnUnexpectedColumn = (key: string, i: number) => {\n\t\tif (!columnNames.includes(key)) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Unexpected fields in node input', {\n\t\t\t\titemIndex: i,\n\t\t\t\tdescription: `The input field '${key}' doesn't match any column in the Sheet. You can ignore this by changing the 'Handling extra data' field, which you can find under 'Options'.`,\n\t\t\t});\n\t\t}\n\t};\n\n\tconst addNewColumn = (key: string) => {\n\t\tif (!columnNames.includes(key) && key !== ROW_NUMBER) {\n\t\t\tnewColumns.add(key);\n\t\t}\n\t};\n\n\tfor (let i = 0; i < items.length; i++) {\n\t\tif (dataMode === 'nothing') continue;\n\n\t\tconst inputData: IDataObject[] = [];\n\n\t\tif (dataMode === 'autoMapInputData') {\n\t\t\tconst handlingExtraDataOption = (options.handlingExtraData as string) || 'insertInNewColumn';\n\t\t\tif (handlingExtraDataOption === 'ignoreIt') {\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t\tif (handlingExtraDataOption === 'error') {\n\t\t\t\tObject.keys(items[i].json).forEach((key) => errorOnUnexpectedColumn(key, i));\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t\tif (handlingExtraDataOption === 'insertInNewColumn') {\n\t\t\t\tObject.keys(items[i].json).forEach(addNewColumn);\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t} else {\n\t\t\tconst valueToMatchOn =\n\t\t\t\tnodeVersion < 4\n\t\t\t\t\t? (this.getNodeParameter('valueToMatchOn', i, '') as string)\n\t\t\t\t\t: (this.getNodeParameter(`columns.value[\"${columnsToMatchOn[0]}\"]`, i, '') as string);\n\n\t\t\tif (valueToMatchOn === '') {\n\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\"The 'Column to Match On' parameter is required\",\n\t\t\t\t\t{\n\t\t\t\t\t\titemIndex: i,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (nodeVersion < 4) {\n\t\t\t\tconst valuesToSend = this.getNodeParameter('fieldsUi.values', i, []) as IDataObject[];\n\t\t\t\tif (!valuesToSend?.length) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"At least one value has to be added under 'Values to Send'\",\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-loop-func\n\t\t\t\tconst fields = valuesToSend.reduce((acc, entry) => {\n\t\t\t\t\tif (entry.column === 'newColumn') {\n\t\t\t\t\t\tconst columnName = entry.columnName as string;\n\n\t\t\t\t\t\tif (!columnNames.includes(columnName)) {\n\t\t\t\t\t\t\tnewColumns.add(columnName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tacc[columnName] = entry.fieldValue as string;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tacc[entry.column as string] = entry.fieldValue as string;\n\t\t\t\t\t}\n\t\t\t\t\treturn acc;\n\t\t\t\t}, {} as IDataObject);\n\n\t\t\t\tfields[columnsToMatchOn[0]] = valueToMatchOn;\n\n\t\t\t\tinputData.push(fields);\n\t\t\t} else {\n\t\t\t\tconst mappingValues = this.getNodeParameter('columns.value', i) as IDataObject;\n\t\t\t\tif (Object.keys(mappingValues).length === 0) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"At least one value has to be added under 'Values to Send'\",\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t// Setting empty values to empty string so that they are not ignored by the API\n\t\t\t\tObject.keys(mappingValues).forEach((key) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tkey === 'row_number' &&\n\t\t\t\t\t\t(mappingValues[key] === null || mappingValues[key] === undefined)\n\t\t\t\t\t) {\n\t\t\t\t\t\tthrow new UserError(\n\t\t\t\t\t\t\t'Column to match on (row_number) is not defined. Since the field is used to determine the row to update, it needs to have a value set.',\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (mappingValues[key] === undefined || mappingValues[key] === null) {\n\t\t\t\t\t\tmappingValues[key] = '';\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tinputData.push(mappingValues);\n\t\t\t\tmappedValues.push(mappingValues);\n\t\t\t}\n\t\t}\n\n\t\tif (newColumns.size) {\n\t\t\tconst newColumnNames = columnNames.concat([...newColumns]);\n\t\t\tawait sheet.updateRows(\n\t\t\t\tsheetName,\n\t\t\t\t[newColumnNames],\n\t\t\t\t(options.cellFormat as ValueInputOption) || cellFormatDefault(nodeVersion),\n\t\t\t\tkeyRowIndex + 1,\n\t\t\t);\n\t\t\tcolumnNames = newColumnNames;\n\t\t\tnewColumns.clear();\n\t\t}\n\n\t\tlet preparedData;\n\t\tconst columnNamesList = [columnNames.concat([...newColumns])];\n\n\t\tif (columnsToMatchOn[0] === 'row_number') {\n\t\t\tpreparedData = sheet.prepareDataForUpdatingByRowNumber(inputData, range, columnNamesList);\n\t\t} else {\n\t\t\tconst indexKey = columnsToMatchOn[0];\n\n\t\t\tpreparedData = await sheet.prepareDataForUpdateOrUpsert({\n\t\t\t\tinputData,\n\t\t\t\tindexKey,\n\t\t\t\trange,\n\t\t\t\tkeyRowIndex,\n\t\t\t\tdataStartRowIndex,\n\t\t\t\tvalueRenderMode,\n\t\t\t\tcolumnNamesList,\n\t\t\t\tcolumnValuesList,\n\t\t\t});\n\t\t}\n\n\t\tupdateData.push(...preparedData.updateData);\n\t}\n\n\tif (updateData.length) {\n\t\tawait sheet.batchUpdate(updateData, valueInputMode);\n\t}\n\n\tif (nodeVersion < 4 || dataMode === 'autoMapInputData') {\n\t\treturn items.map((item, index) => {\n\t\t\titem.pairedItem = { item: index };\n\t\t\treturn item;\n\t\t});\n\t} else {\n\t\tif (!updateData.length) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst returnData: INodeExecutionData[] = [];\n\t\tfor (const [index, entry] of mappedValues.entries()) {\n\t\t\treturnData.push({\n\t\t\t\tjson: entry,\n\t\t\t\tpairedItem: { item: index },\n\t\t\t});\n\t\t}\n\t\treturn returnData;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAA8C;AAE9C,+BAA8D;AAE9D,0BAMO;AACP,IAAAA,uBAAsD;AAE/C,MAAM,cAA+B;AAAA,EAC3C;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACR;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,MACA;AAA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MAAI,WAAW,QAAQ;AACtB,UAAM,MAAM,YAAY,YAAY,cAAc;AAAA,EACnD;AAEA,MAAI,cAAc,KAAK,aAAa,oBAAoB;AACvD,WAAO,MAAM,IAAI,CAAC,MAAM,UAAU;AACjC,WAAK,aAAa,EAAE,MAAM,MAAM;AAChC,aAAO;AAAA,IACR,CAAC;AAAA,EACF,OAAO;AACN,QAAI,CAAC,WAAW,QAAQ;AACvB,aAAO,CAAC;AAAA,IACT;AAEA,UAAM,aAAmC,CAAC;AAC1C,eAAW,CAAC,OAAO,KAAK,KAAK,aAAa,QAAQ,GAAG;AACpD,iBAAW,KAAK;AAAA,QACf,MAAM;AAAA,QACN,YAAY,EAAE,MAAM,MAAM;AAAA,MAC3B,CAAC;AAAA,IACF;AACA,WAAO;AAAA,EACR;AACD;","names":["import_GoogleSheets"]}
1
+ {"version":3,"sources":["../../../../../../../nodes/Google/Sheet/v2/actions/sheet/update.operation.ts"],"sourcesContent":["import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';\nimport { NodeOperationError, UserError } from 'n8n-workflow';\n\nimport { cellFormat, handlingExtraData, locationDefine } from './commonDescription';\nimport type { GoogleSheet } from '../../helpers/GoogleSheet';\nimport {\n\tROW_NUMBER,\n\ttype ISheetUpdateData,\n\ttype SheetProperties,\n\ttype ValueInputOption,\n\ttype ValueRenderOption,\n} from '../../helpers/GoogleSheets.types';\nimport { cellFormatDefault, untilSheetSelected } from '../../helpers/GoogleSheets.utils';\n\nexport const description: SheetProperties = [\n\t{\n\t\tdisplayName: 'Data Mode',\n\t\tname: 'dataMode',\n\t\ttype: 'options',\n\t\toptions: [\n\t\t\t{\n\t\t\t\tname: 'Auto-Map Input Data to Columns',\n\t\t\t\tvalue: 'autoMapInputData',\n\t\t\t\tdescription: 'Use when node input properties match destination column names',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Map Each Column Below',\n\t\t\t\tvalue: 'defineBelow',\n\t\t\t\tdescription: 'Set the value for each destination column',\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Nothing',\n\t\t\t\tvalue: 'nothing',\n\t\t\t\tdescription: 'Do not send anything',\n\t\t\t},\n\t\t],\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\tdefault: 'defineBelow',\n\t\tdescription: 'Whether to insert the input data this node receives in the new row',\n\t},\n\t{\n\t\t// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased, n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options\n\t\tdisplayName: 'Column to match on',\n\t\tname: 'columnToMatchOn',\n\t\ttype: 'options',\n\t\tdescription:\n\t\t\t'Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>',\n\t\ttypeOptions: {\n\t\t\tloadOptionsDependsOn: ['sheetName.value'],\n\t\t\tloadOptionsMethod: 'getSheetHeaderRowAndSkipEmpty',\n\t\t},\n\t\tdefault: '',\n\t\thint: \"Used to find the correct row to update. Doesn't get changed.\",\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Value of Column to Match On',\n\t\tname: 'valueToMatchOn',\n\t\ttype: 'string',\n\t\tdefault: '',\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\tdataMode: ['defineBelow'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Values to Send',\n\t\tname: 'fieldsUi',\n\t\tplaceholder: 'Add Field',\n\t\ttype: 'fixedCollection',\n\t\ttypeOptions: {\n\t\t\tmultipleValues: true,\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\tdataMode: ['defineBelow'],\n\t\t\t\t'@version': [3],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\tdefault: {},\n\t\toptions: [\n\t\t\t{\n\t\t\t\tdisplayName: 'Field',\n\t\t\t\tname: 'values',\n\t\t\t\tvalues: [\n\t\t\t\t\t{\n\t\t\t\t\t\t// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options\n\t\t\t\t\t\tdisplayName: 'Column',\n\t\t\t\t\t\tname: 'column',\n\t\t\t\t\t\ttype: 'options',\n\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t'Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>',\n\t\t\t\t\t\ttypeOptions: {\n\t\t\t\t\t\t\tloadOptionsDependsOn: ['sheetName.value', 'columnToMatchOn'],\n\t\t\t\t\t\t\tloadOptionsMethod: 'getSheetHeaderRowAndAddColumn',\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Column Name',\n\t\t\t\t\t\tname: 'columnName',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t\tdisplayOptions: {\n\t\t\t\t\t\t\tshow: {\n\t\t\t\t\t\t\t\tcolumn: ['newColumn'],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdisplayName: 'Value',\n\t\t\t\t\t\tname: 'fieldValue',\n\t\t\t\t\t\ttype: 'string',\n\t\t\t\t\t\tdefault: '',\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n\t{\n\t\tdisplayName: 'Columns',\n\t\tname: 'columns',\n\t\ttype: 'resourceMapper',\n\t\tnoDataExpression: true,\n\t\tdefault: {\n\t\t\tmappingMode: 'defineBelow',\n\t\t\tvalue: null,\n\t\t},\n\t\trequired: true,\n\t\ttypeOptions: {\n\t\t\tloadOptionsDependsOn: ['sheetName.value'],\n\t\t\tresourceMapper: {\n\t\t\t\tresourceMapperMethod: 'getMappingColumns',\n\t\t\t\tmode: 'update',\n\t\t\t\tfieldWords: {\n\t\t\t\t\tsingular: 'column',\n\t\t\t\t\tplural: 'columns',\n\t\t\t\t},\n\t\t\t\taddAllFields: true,\n\t\t\t\tmultiKeyMatch: false,\n\t\t\t},\n\t\t},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t\t'@version': [{ _cnd: { gte: 4 } }],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t},\n\t{\n\t\tdisplayName: 'Options',\n\t\tname: 'options',\n\t\ttype: 'collection',\n\t\tplaceholder: 'Add option',\n\t\tdefault: {},\n\t\tdisplayOptions: {\n\t\t\tshow: {\n\t\t\t\tresource: ['sheet'],\n\t\t\t\toperation: ['update'],\n\t\t\t},\n\t\t\thide: {\n\t\t\t\t...untilSheetSelected,\n\t\t\t},\n\t\t},\n\t\toptions: [\n\t\t\tcellFormat,\n\t\t\tlocationDefine,\n\t\t\thandlingExtraData,\n\t\t\t{\n\t\t\t\t...handlingExtraData,\n\t\t\t\tdisplayOptions: { show: { '/columns.mappingMode': ['autoMapInputData'] } },\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport async function execute(\n\tthis: IExecuteFunctions,\n\tsheet: GoogleSheet,\n\tsheetName: string,\n): Promise<INodeExecutionData[]> {\n\tconst items = this.getInputData();\n\tconst nodeVersion = this.getNode().typeVersion;\n\n\tconst range = `${sheetName}!A:Z`;\n\n\tconst valueInputMode = this.getNodeParameter(\n\t\t'options.cellFormat',\n\t\t0,\n\t\tcellFormatDefault(nodeVersion),\n\t) as ValueInputOption;\n\n\tconst options = this.getNodeParameter('options', 0, {});\n\n\tconst valueRenderMode = (options.valueRenderMode || 'UNFORMATTED_VALUE') as ValueRenderOption;\n\n\tconst locationDefineOptions = (options.locationDefine as IDataObject)?.values as IDataObject;\n\n\tlet keyRowIndex = 0;\n\tlet dataStartRowIndex = 1;\n\n\tif (locationDefineOptions) {\n\t\tif (locationDefineOptions.headerRow) {\n\t\t\tkeyRowIndex = parseInt(locationDefineOptions.headerRow as string, 10) - 1;\n\t\t}\n\t\tif (locationDefineOptions.firstDataRow) {\n\t\t\tdataStartRowIndex = parseInt(locationDefineOptions.firstDataRow as string, 10) - 1;\n\t\t}\n\t}\n\n\tlet columnNames: string[] = [];\n\n\tconst sheetData = await sheet.getData(sheetName, 'FORMATTED_VALUE');\n\n\tif (sheetData?.[keyRowIndex] === undefined) {\n\t\tthrow new NodeOperationError(\n\t\t\tthis.getNode(),\n\t\t\t`Could not retrieve the column names from row ${keyRowIndex + 1}`,\n\t\t);\n\t}\n\n\tcolumnNames = sheetData[keyRowIndex];\n\n\tconst newColumns = new Set<string>();\n\n\tconst columnsToMatchOn: string[] =\n\t\tnodeVersion < 4\n\t\t\t? [this.getNodeParameter('columnToMatchOn', 0) as string]\n\t\t\t: (this.getNodeParameter('columns.matchingColumns', 0) as string[]);\n\n\tconst dataMode =\n\t\tnodeVersion < 4\n\t\t\t? (this.getNodeParameter('dataMode', 0) as string)\n\t\t\t: (this.getNodeParameter('columns.mappingMode', 0) as string);\n\n\t// TODO: Add support for multiple columns to match on in the next overhaul\n\tconst keyIndex = columnNames.indexOf(columnsToMatchOn[0]);\n\n\t//not used when updating row\n\tconst columnValuesList = await sheet.getColumnValues({\n\t\trange,\n\t\tkeyIndex,\n\t\tdataStartRowIndex,\n\t\tvalueRenderMode,\n\t\tsheetData,\n\t});\n\n\tconst updateData: ISheetUpdateData[] = [];\n\n\tconst mappedValues: IDataObject[] = [];\n\n\tconst errorOnUnexpectedColumn = (key: string, i: number) => {\n\t\tif (!columnNames.includes(key)) {\n\t\t\tthrow new NodeOperationError(this.getNode(), 'Unexpected fields in node input', {\n\t\t\t\titemIndex: i,\n\t\t\t\tdescription: `The input field '${key}' doesn't match any column in the Sheet. You can ignore this by changing the 'Handling extra data' field, which you can find under 'Options'.`,\n\t\t\t});\n\t\t}\n\t};\n\n\tconst addNewColumn = (key: string) => {\n\t\tif (!columnNames.includes(key) && key !== ROW_NUMBER) {\n\t\t\tnewColumns.add(key);\n\t\t}\n\t};\n\n\tfor (let i = 0; i < items.length; i++) {\n\t\tif (dataMode === 'nothing') continue;\n\n\t\tconst inputData: IDataObject[] = [];\n\n\t\tif (dataMode === 'autoMapInputData') {\n\t\t\tconst handlingExtraDataOption = (options.handlingExtraData as string) || 'insertInNewColumn';\n\t\t\tif (handlingExtraDataOption === 'ignoreIt') {\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t\tif (handlingExtraDataOption === 'error') {\n\t\t\t\tObject.keys(items[i].json).forEach((key) => errorOnUnexpectedColumn(key, i));\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t\tif (handlingExtraDataOption === 'insertInNewColumn') {\n\t\t\t\tObject.keys(items[i].json).forEach(addNewColumn);\n\t\t\t\tinputData.push(items[i].json);\n\t\t\t}\n\t\t} else {\n\t\t\tconst valueToMatchOn =\n\t\t\t\tnodeVersion < 4\n\t\t\t\t\t? (this.getNodeParameter('valueToMatchOn', i, '') as string)\n\t\t\t\t\t: (this.getNodeParameter(`columns.value[\"${columnsToMatchOn[0]}\"]`, i, '') as string);\n\n\t\t\tif (valueToMatchOn === '') {\n\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\"The 'Column to Match On' parameter is required\",\n\t\t\t\t\t{\n\t\t\t\t\t\titemIndex: i,\n\t\t\t\t\t},\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (nodeVersion < 4) {\n\t\t\t\tconst valuesToSend = this.getNodeParameter('fieldsUi.values', i, []) as IDataObject[];\n\t\t\t\tif (!valuesToSend?.length) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"At least one value has to be added under 'Values to Send'\",\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-loop-func\n\t\t\t\tconst fields = valuesToSend.reduce((acc, entry) => {\n\t\t\t\t\tif (entry.column === 'newColumn') {\n\t\t\t\t\t\tconst columnName = entry.columnName as string;\n\n\t\t\t\t\t\tif (!columnNames.includes(columnName)) {\n\t\t\t\t\t\t\tnewColumns.add(columnName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tacc[columnName] = entry.fieldValue as string;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tacc[entry.column as string] = entry.fieldValue as string;\n\t\t\t\t\t}\n\t\t\t\t\treturn acc;\n\t\t\t\t}, {} as IDataObject);\n\n\t\t\t\tfields[columnsToMatchOn[0]] = valueToMatchOn;\n\n\t\t\t\tinputData.push(fields);\n\t\t\t} else {\n\t\t\t\tconst mappingValues = this.getNodeParameter('columns.value', i) as IDataObject;\n\t\t\t\tif (Object.keys(mappingValues).length === 0) {\n\t\t\t\t\tthrow new NodeOperationError(\n\t\t\t\t\t\tthis.getNode(),\n\t\t\t\t\t\t\"At least one value has to be added under 'Values to Send'\",\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t// Setting empty values to empty string so that they are not ignored by the API\n\t\t\t\tObject.keys(mappingValues).forEach((key) => {\n\t\t\t\t\t// null and undefined values are mapped to undefined\n\t\t\t\t\tif (key === 'row_number' && mappingValues[key] === undefined && nodeVersion >= 4.6) {\n\t\t\t\t\t\tthrow new UserError('row_number is null or undefined', {\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\t\"Since it's being used to determine the row to update, it cannot be null or undefined\",\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\t// null and undefined values are mapped to undefined\n\t\t\t\t\tif (mappingValues[key] === undefined) {\n\t\t\t\t\t\tthis.addExecutionHints({\n\t\t\t\t\t\t\tmessage: 'Warning: The value of column to match is null or undefined',\n\t\t\t\t\t\t\tlocation: 'outputPane',\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tif (mappingValues[key] === undefined || mappingValues[key] === null) {\n\t\t\t\t\t\tmappingValues[key] = '';\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tinputData.push(mappingValues);\n\t\t\t\tmappedValues.push(mappingValues);\n\t\t\t}\n\t\t}\n\n\t\tif (newColumns.size) {\n\t\t\tconst newColumnNames = columnNames.concat([...newColumns]);\n\t\t\tawait sheet.updateRows(\n\t\t\t\tsheetName,\n\t\t\t\t[newColumnNames],\n\t\t\t\t(options.cellFormat as ValueInputOption) || cellFormatDefault(nodeVersion),\n\t\t\t\tkeyRowIndex + 1,\n\t\t\t);\n\t\t\tcolumnNames = newColumnNames;\n\t\t\tnewColumns.clear();\n\t\t}\n\n\t\tlet preparedData;\n\t\tconst columnNamesList = [columnNames.concat([...newColumns])];\n\n\t\tif (columnsToMatchOn[0] === 'row_number') {\n\t\t\tpreparedData = sheet.prepareDataForUpdatingByRowNumber(inputData, range, columnNamesList);\n\t\t} else {\n\t\t\tconst indexKey = columnsToMatchOn[0];\n\n\t\t\tpreparedData = await sheet.prepareDataForUpdateOrUpsert({\n\t\t\t\tinputData,\n\t\t\t\tindexKey,\n\t\t\t\trange,\n\t\t\t\tkeyRowIndex,\n\t\t\t\tdataStartRowIndex,\n\t\t\t\tvalueRenderMode,\n\t\t\t\tcolumnNamesList,\n\t\t\t\tcolumnValuesList,\n\t\t\t});\n\t\t}\n\n\t\tupdateData.push(...preparedData.updateData);\n\t}\n\n\tif (updateData.length) {\n\t\tawait sheet.batchUpdate(updateData, valueInputMode);\n\t}\n\n\tif (nodeVersion < 4 || dataMode === 'autoMapInputData') {\n\t\treturn items.map((item, index) => {\n\t\t\titem.pairedItem = { item: index };\n\t\t\treturn item;\n\t\t});\n\t} else {\n\t\tif (!updateData.length) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst returnData: INodeExecutionData[] = [];\n\t\tfor (const [index, entry] of mappedValues.entries()) {\n\t\t\treturnData.push({\n\t\t\t\tjson: entry,\n\t\t\t\tpairedItem: { item: index },\n\t\t\t});\n\t\t}\n\t\treturn returnData;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAA8C;AAE9C,+BAA8D;AAE9D,0BAMO;AACP,IAAAA,uBAAsD;AAE/C,MAAM,cAA+B;AAAA,EAC3C;AAAA,IACC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACR;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,MACA;AAAA,QACC,MAAM;AAAA,QACN,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,IACD;AAAA,IACA,gBAAgB;AAAA,MACf,MAAM;AAAA,QACL,UAAU,CAAC,OAAO;AAAA,QAClB,WAAW,CAAC,QAAQ;AAAA,QACpB,YAAY,CAAC,CAAC;AAAA,MACf;AAAA,MACA,MAAM;AAAA,QACL,GAAG;AAAA,MACJ;AAAA,IACD;AAAA,IACA,SAAS;AAAA,IACT,aAAa;AAAA,EACd;AAAA,EACA;AAAA;AAAA,IAEC,aAAa;AAAA,IACb,MAAM;AAAA,IACN,MAAM;AAAA,IACN,aACC;AAAA,IACD,aAAa;AAAA,MACZ,sBAAsB,CAAC,i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