n8n-nodes-base 0.233.0 → 0.234.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/{SendInBlueApi.credentials.d.ts → BrevoApi.credentials.d.ts} +1 -1
  3. package/dist/credentials/{SendInBlueApi.credentials.js → BrevoApi.credentials.js} +7 -7
  4. package/dist/credentials/BrevoApi.credentials.js.map +1 -0
  5. package/dist/credentials/CrowdDevApi.credentials.d.ts +9 -0
  6. package/dist/credentials/CrowdDevApi.credentials.js +62 -0
  7. package/dist/credentials/CrowdDevApi.credentials.js.map +1 -0
  8. package/dist/credentials/HttpCustomAuth.credentials.d.ts +9 -0
  9. package/dist/credentials/HttpCustomAuth.credentials.js +25 -0
  10. package/dist/credentials/HttpCustomAuth.credentials.js.map +1 -0
  11. package/dist/credentials/TwitterOAuth1Api.credentials.js +6 -0
  12. package/dist/credentials/TwitterOAuth1Api.credentials.js.map +1 -1
  13. package/dist/credentials/TwitterOAuth2Api.credentials.d.ts +8 -0
  14. package/dist/credentials/TwitterOAuth2Api.credentials.js +73 -0
  15. package/dist/credentials/TwitterOAuth2Api.credentials.js.map +1 -0
  16. package/dist/known/credentials.json +289 -12
  17. package/dist/known/nodes.json +16 -8
  18. package/dist/nodes/{SendInBlue → Brevo}/AttributeDescription.js +1 -1
  19. package/dist/nodes/Brevo/AttributeDescription.js.map +1 -0
  20. package/dist/nodes/{SendInBlue/SendInBlue.node.d.ts → Brevo/Brevo.node.d.ts} +1 -1
  21. package/dist/nodes/{SendInBlue/SendInBlue.node.js → Brevo/Brevo.node.js} +9 -9
  22. package/dist/nodes/Brevo/Brevo.node.js.map +1 -0
  23. package/dist/nodes/{SendInBlue/SendInBlue.node.json → Brevo/Brevo.node.json} +5 -4
  24. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.d.ts → Brevo/BrevoTrigger.node.d.ts} +1 -1
  25. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.js → Brevo/BrevoTrigger.node.js} +11 -11
  26. package/dist/nodes/Brevo/BrevoTrigger.node.js.map +1 -0
  27. package/dist/nodes/{SendInBlue/SendInBlueTrigger.node.json → Brevo/BrevoTrigger.node.json} +5 -4
  28. package/dist/nodes/Brevo/ContactDescription.js.map +1 -0
  29. package/dist/nodes/{SendInBlue → Brevo}/EmailDescription.js +10 -10
  30. package/dist/nodes/Brevo/EmailDescription.js.map +1 -0
  31. package/dist/nodes/{SendInBlue → Brevo}/GenericFunctions.d.ts +2 -2
  32. package/dist/nodes/{SendInBlue → Brevo}/GenericFunctions.js +14 -14
  33. package/dist/nodes/Brevo/GenericFunctions.js.map +1 -0
  34. package/dist/nodes/Brevo/SenderDescrition.js.map +1 -0
  35. package/dist/nodes/Brevo/brevo.svg +4 -0
  36. package/dist/nodes/CrowdDev/CrowdDev.node.d.ts +4 -0
  37. package/dist/nodes/CrowdDev/CrowdDev.node.js +36 -0
  38. package/dist/nodes/CrowdDev/CrowdDev.node.js.map +1 -0
  39. package/dist/nodes/CrowdDev/CrowdDev.node.json +18 -0
  40. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.d.ts +12 -0
  41. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js +145 -0
  42. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.js.map +1 -0
  43. package/dist/nodes/CrowdDev/CrowdDevTrigger.node.json +18 -0
  44. package/dist/nodes/CrowdDev/GenericFunctions.d.ts +7 -0
  45. package/dist/nodes/CrowdDev/GenericFunctions.js +157 -0
  46. package/dist/nodes/CrowdDev/GenericFunctions.js.map +1 -0
  47. package/dist/nodes/CrowdDev/crowdDev.svg +15 -0
  48. package/dist/nodes/CrowdDev/descriptions/activityFields.d.ts +4 -0
  49. package/dist/nodes/CrowdDev/descriptions/activityFields.js +180 -0
  50. package/dist/nodes/CrowdDev/descriptions/activityFields.js.map +1 -0
  51. package/dist/nodes/CrowdDev/descriptions/automationFields.d.ts +4 -0
  52. package/dist/nodes/CrowdDev/descriptions/automationFields.js +126 -0
  53. package/dist/nodes/CrowdDev/descriptions/automationFields.js.map +1 -0
  54. package/dist/nodes/CrowdDev/descriptions/index.d.ts +2 -0
  55. package/dist/nodes/CrowdDev/descriptions/index.js +26 -0
  56. package/dist/nodes/CrowdDev/descriptions/index.js.map +1 -0
  57. package/dist/nodes/CrowdDev/descriptions/memberFields.d.ts +4 -0
  58. package/dist/nodes/CrowdDev/descriptions/memberFields.js +291 -0
  59. package/dist/nodes/CrowdDev/descriptions/memberFields.js.map +1 -0
  60. package/dist/nodes/CrowdDev/descriptions/noteFields.d.ts +4 -0
  61. package/dist/nodes/CrowdDev/descriptions/noteFields.js +90 -0
  62. package/dist/nodes/CrowdDev/descriptions/noteFields.js.map +1 -0
  63. package/dist/nodes/CrowdDev/descriptions/organizationFields.d.ts +4 -0
  64. package/dist/nodes/CrowdDev/descriptions/organizationFields.js +146 -0
  65. package/dist/nodes/CrowdDev/descriptions/organizationFields.js.map +1 -0
  66. package/dist/nodes/CrowdDev/descriptions/resources.d.ts +2 -0
  67. package/dist/nodes/CrowdDev/descriptions/resources.js +38 -0
  68. package/dist/nodes/CrowdDev/descriptions/resources.js.map +1 -0
  69. package/dist/nodes/CrowdDev/descriptions/shared.d.ts +2 -0
  70. package/dist/nodes/CrowdDev/descriptions/shared.js +29 -0
  71. package/dist/nodes/CrowdDev/descriptions/shared.js.map +1 -0
  72. package/dist/nodes/CrowdDev/descriptions/taskFields.d.ts +4 -0
  73. package/dist/nodes/CrowdDev/descriptions/taskFields.js +159 -0
  74. package/dist/nodes/CrowdDev/descriptions/taskFields.js.map +1 -0
  75. package/dist/nodes/CrowdDev/descriptions/utils.d.ts +5 -0
  76. package/dist/nodes/CrowdDev/descriptions/utils.js +55 -0
  77. package/dist/nodes/CrowdDev/descriptions/utils.js.map +1 -0
  78. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +5 -4
  79. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  80. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +7 -6
  81. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -1
  82. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +11 -10
  83. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -1
  84. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +3 -2
  85. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  86. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +3 -2
  87. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
  88. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/delete.operation.js +3 -2
  89. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/delete.operation.js.map +1 -1
  90. package/dist/nodes/Google/constants.d.ts +2 -0
  91. package/dist/nodes/Google/constants.js +6 -0
  92. package/dist/nodes/Google/constants.js.map +1 -0
  93. package/dist/nodes/GraphQL/GraphQL.node.js +32 -0
  94. package/dist/nodes/GraphQL/GraphQL.node.js.map +1 -1
  95. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +1 -0
  96. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
  97. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +1 -0
  98. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
  99. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +24 -1
  100. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  101. package/dist/nodes/ItemLists/ItemLists.node.js +3 -1
  102. package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
  103. package/dist/nodes/ItemLists/V3/ItemListsV3.node.d.ts +6 -0
  104. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js +18 -0
  105. package/dist/nodes/ItemLists/V3/ItemListsV3.node.js.map +1 -0
  106. package/dist/nodes/ItemLists/V3/actions/common.descriptions.d.ts +2 -0
  107. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js +11 -0
  108. package/dist/nodes/ItemLists/V3/actions/common.descriptions.js.map +1 -0
  109. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.d.ts +23 -0
  110. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js +303 -0
  111. package/dist/nodes/ItemLists/V3/actions/itemList/concatenateItems.operation.js.map +1 -0
  112. package/dist/nodes/ItemLists/V3/actions/itemList/index.d.ts +9 -0
  113. package/dist/nodes/ItemLists/V3/actions/itemList/index.js +97 -0
  114. package/dist/nodes/ItemLists/V3/actions/itemList/index.js.map +1 -0
  115. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.d.ts +23 -0
  116. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js +57 -0
  117. package/dist/nodes/ItemLists/V3/actions/itemList/limit.operation.js.map +1 -0
  118. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.d.ts +23 -0
  119. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js +204 -0
  120. package/dist/nodes/ItemLists/V3/actions/itemList/removeDuplicates.operation.js.map +1 -0
  121. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.d.ts +23 -0
  122. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +262 -0
  123. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -0
  124. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.d.ts +23 -0
  125. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js +183 -0
  126. package/dist/nodes/ItemLists/V3/actions/itemList/splitOutItems.operation.js.map +1 -0
  127. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.d.ts +23 -0
  128. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js +491 -0
  129. package/dist/nodes/ItemLists/V3/actions/itemList/summarize.operation.js.map +1 -0
  130. package/dist/nodes/ItemLists/V3/actions/node.type.d.ts +6 -0
  131. package/dist/nodes/ItemLists/V3/actions/node.type.js +3 -0
  132. package/dist/nodes/ItemLists/V3/actions/node.type.js.map +1 -0
  133. package/dist/nodes/ItemLists/V3/actions/router.d.ts +2 -0
  134. package/dist/nodes/ItemLists/V3/actions/router.js +53 -0
  135. package/dist/nodes/ItemLists/V3/actions/router.js.map +1 -0
  136. package/dist/nodes/ItemLists/V3/actions/versionDescription.d.ts +2 -0
  137. package/dist/nodes/ItemLists/V3/actions/versionDescription.js +58 -0
  138. package/dist/nodes/ItemLists/V3/actions/versionDescription.js.map +1 -0
  139. package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +5 -0
  140. package/dist/nodes/ItemLists/V3/helpers/utils.js +57 -0
  141. package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -0
  142. package/dist/nodes/ItemLists/test/node/workflow.update_3.json +606 -0
  143. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js +7 -0
  144. package/dist/nodes/Microsoft/ToDo/MicrosoftToDo.node.js.map +1 -1
  145. package/dist/nodes/Microsoft/ToDo/TaskDescription.js +7 -0
  146. package/dist/nodes/Microsoft/ToDo/TaskDescription.js.map +1 -1
  147. package/dist/nodes/MySql/v2/actions/common.descriptions.js +4 -4
  148. package/dist/nodes/MySql/v2/actions/common.descriptions.js.map +1 -1
  149. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js +1 -9
  150. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
  151. package/dist/nodes/MySql/v2/actions/database/insert.operation.js +1 -1
  152. package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
  153. package/dist/nodes/MySql/v2/actions/database/update.operation.js +2 -2
  154. package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
  155. package/dist/nodes/MySql/v2/actions/database/upsert.operation.js +2 -2
  156. package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
  157. package/dist/nodes/Notion/DatabasePageDescription.js +41 -0
  158. package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
  159. package/dist/nodes/Notion/v2/NotionV2.node.js +9 -0
  160. package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
  161. package/dist/nodes/Postgres/v2/actions/common.descriptions.js +4 -4
  162. package/dist/nodes/Postgres/v2/actions/common.descriptions.js.map +1 -1
  163. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +1 -9
  164. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
  165. package/dist/nodes/Postgres/v2/actions/database/insert.operation.js +1 -1
  166. package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
  167. package/dist/nodes/Postgres/v2/actions/database/update.operation.js +2 -2
  168. package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
  169. package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js +2 -2
  170. package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
  171. package/dist/nodes/Postgres/v2/helpers/utils.d.ts +1 -1
  172. package/dist/nodes/Postgres/v2/helpers/utils.js +3 -3
  173. package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
  174. package/dist/nodes/Postgres/v2/methods/resourceMapping.js +1 -1
  175. package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
  176. package/dist/nodes/Salesforce/ContactDescription.js +3 -3
  177. package/dist/nodes/Salesforce/ContactDescription.js.map +1 -1
  178. package/dist/nodes/Strapi/GenericFunctions.js +2 -2
  179. package/dist/nodes/Strapi/GenericFunctions.js.map +1 -1
  180. package/dist/nodes/Strava/ActivityDescription.js +7 -0
  181. package/dist/nodes/Strava/ActivityDescription.js.map +1 -1
  182. package/dist/nodes/Strava/Strava.node.js +0 -6
  183. package/dist/nodes/Strava/Strava.node.js.map +1 -1
  184. package/dist/nodes/Twitter/Twitter.node.d.ts +3 -9
  185. package/dist/nodes/Twitter/Twitter.node.js +12 -224
  186. package/dist/nodes/Twitter/Twitter.node.js.map +1 -1
  187. package/dist/nodes/Twitter/Twitter.node.json +2 -1
  188. package/dist/nodes/Twitter/V1/DirectMessageDescription.js.map +1 -0
  189. package/dist/nodes/Twitter/V1/GenericFunctions.js.map +1 -0
  190. package/dist/nodes/Twitter/V1/TweetDescription.js.map +1 -0
  191. package/dist/nodes/Twitter/V1/TweetInterface.js.map +1 -0
  192. package/dist/nodes/Twitter/V1/TwitterV1.node.d.ts +11 -0
  193. package/dist/nodes/Twitter/V1/TwitterV1.node.js +235 -0
  194. package/dist/nodes/Twitter/V1/TwitterV1.node.js.map +1 -0
  195. package/dist/nodes/Twitter/V2/DirectMessageDescription.d.ts +3 -0
  196. package/dist/nodes/Twitter/V2/DirectMessageDescription.js +100 -0
  197. package/dist/nodes/Twitter/V2/DirectMessageDescription.js.map +1 -0
  198. package/dist/nodes/Twitter/V2/GenericFunctions.d.ts +5 -0
  199. package/dist/nodes/Twitter/V2/GenericFunctions.js +88 -0
  200. package/dist/nodes/Twitter/V2/GenericFunctions.js.map +1 -0
  201. package/dist/nodes/Twitter/V2/ListDescription.d.ts +3 -0
  202. package/dist/nodes/Twitter/V2/ListDescription.js +92 -0
  203. package/dist/nodes/Twitter/V2/ListDescription.js.map +1 -0
  204. package/dist/nodes/Twitter/V2/TweetDescription.d.ts +3 -0
  205. package/dist/nodes/Twitter/V2/TweetDescription.js +452 -0
  206. package/dist/nodes/Twitter/V2/TweetDescription.js.map +1 -0
  207. package/dist/nodes/Twitter/V2/TweetInterface.d.ts +23 -0
  208. package/dist/nodes/Twitter/V2/TweetInterface.js +3 -0
  209. package/dist/nodes/Twitter/V2/TweetInterface.js.map +1 -0
  210. package/dist/nodes/Twitter/V2/TwitterV2.node.d.ts +11 -0
  211. package/dist/nodes/Twitter/V2/TwitterV2.node.js +245 -0
  212. package/dist/nodes/Twitter/V2/TwitterV2.node.js.map +1 -0
  213. package/dist/nodes/Twitter/V2/UserDescription.d.ts +3 -0
  214. package/dist/nodes/Twitter/V2/UserDescription.js +76 -0
  215. package/dist/nodes/Twitter/V2/UserDescription.js.map +1 -0
  216. package/dist/nodes/Twitter/test/Workflow_Twitter_UnitTest.json +284 -0
  217. package/dist/nodes/Wait/Wait.node.d.ts +7 -4
  218. package/dist/nodes/Wait/Wait.node.js +77 -499
  219. package/dist/nodes/Wait/Wait.node.js.map +1 -1
  220. package/dist/nodes/Webhook/Webhook.node.d.ts +8 -3
  221. package/dist/nodes/Webhook/Webhook.node.js +148 -460
  222. package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
  223. package/dist/nodes/Webhook/description.d.ts +10 -0
  224. package/dist/nodes/Webhook/description.js +325 -0
  225. package/dist/nodes/Webhook/description.js.map +1 -0
  226. package/dist/nodes/Webhook/error.d.ts +4 -0
  227. package/dist/nodes/Webhook/error.js +20 -0
  228. package/dist/nodes/Webhook/error.js.map +1 -0
  229. package/dist/nodes/Xml/Xml.node.js +1 -1
  230. package/dist/nodes/Xml/Xml.node.js.map +1 -1
  231. package/dist/nodes/Xml/test/node/workflow.xml-valid-data.json +134 -0
  232. package/dist/package.json +9 -4
  233. package/dist/types/credentials.json +5 -2
  234. package/dist/types/nodes.json +31 -27
  235. package/package.json +11 -6
  236. package/dist/credentials/SendInBlueApi.credentials.js.map +0 -1
  237. package/dist/nodes/SendInBlue/AttributeDescription.js.map +0 -1
  238. package/dist/nodes/SendInBlue/ContactDescription.js.map +0 -1
  239. package/dist/nodes/SendInBlue/EmailDescription.js.map +0 -1
  240. package/dist/nodes/SendInBlue/GenericFunctions.js.map +0 -1
  241. package/dist/nodes/SendInBlue/SendInBlue.node.js.map +0 -1
  242. package/dist/nodes/SendInBlue/SendInBlueTrigger.node.js.map +0 -1
  243. package/dist/nodes/SendInBlue/SenderDescrition.js.map +0 -1
  244. package/dist/nodes/SendInBlue/sendinblue.svg +0 -20
  245. package/dist/nodes/Twitter/DirectMessageDescription.js.map +0 -1
  246. package/dist/nodes/Twitter/GenericFunctions.js.map +0 -1
  247. package/dist/nodes/Twitter/TweetDescription.js.map +0 -1
  248. package/dist/nodes/Twitter/TweetInterface.js.map +0 -1
  249. /package/dist/nodes/{SendInBlue → Brevo}/AttributeDescription.d.ts +0 -0
  250. /package/dist/nodes/{SendInBlue → Brevo}/ContactDescription.d.ts +0 -0
  251. /package/dist/nodes/{SendInBlue → Brevo}/ContactDescription.js +0 -0
  252. /package/dist/nodes/{SendInBlue → Brevo}/EmailDescription.d.ts +0 -0
  253. /package/dist/nodes/{SendInBlue → Brevo}/SenderDescrition.d.ts +0 -0
  254. /package/dist/nodes/{SendInBlue → Brevo}/SenderDescrition.js +0 -0
  255. /package/dist/nodes/Twitter/{DirectMessageDescription.d.ts → V1/DirectMessageDescription.d.ts} +0 -0
  256. /package/dist/nodes/Twitter/{DirectMessageDescription.js → V1/DirectMessageDescription.js} +0 -0
  257. /package/dist/nodes/Twitter/{GenericFunctions.d.ts → V1/GenericFunctions.d.ts} +0 -0
  258. /package/dist/nodes/Twitter/{GenericFunctions.js → V1/GenericFunctions.js} +0 -0
  259. /package/dist/nodes/Twitter/{TweetDescription.d.ts → V1/TweetDescription.d.ts} +0 -0
  260. /package/dist/nodes/Twitter/{TweetDescription.js → V1/TweetDescription.js} +0 -0
  261. /package/dist/nodes/Twitter/{TweetInterface.d.ts → V1/TweetInterface.d.ts} +0 -0
  262. /package/dist/nodes/Twitter/{TweetInterface.js → V1/TweetInterface.js} +0 -0
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.prepareFieldsArray = exports.shuffleArray = exports.flattenKeys = exports.compareItems = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const isEqual_1 = __importDefault(require("lodash/isEqual"));
9
+ const isObject_1 = __importDefault(require("lodash/isObject"));
10
+ const merge_1 = __importDefault(require("lodash/merge"));
11
+ const reduce_1 = __importDefault(require("lodash/reduce"));
12
+ const compareItems = (obj, obj2, keys, disableDotNotation, _node) => {
13
+ let result = true;
14
+ for (const key of keys) {
15
+ if (!disableDotNotation) {
16
+ if (!(0, isEqual_1.default)((0, get_1.default)(obj.json, key), (0, get_1.default)(obj2.json, key))) {
17
+ result = false;
18
+ break;
19
+ }
20
+ }
21
+ else {
22
+ if (!(0, isEqual_1.default)(obj.json[key], obj2.json[key])) {
23
+ result = false;
24
+ break;
25
+ }
26
+ }
27
+ }
28
+ return result;
29
+ };
30
+ exports.compareItems = compareItems;
31
+ const flattenKeys = (obj, path = []) => {
32
+ return !(0, isObject_1.default)(obj)
33
+ ? { [path.join('.')]: obj }
34
+ : (0, reduce_1.default)(obj, (cum, next, key) => (0, merge_1.default)(cum, (0, exports.flattenKeys)(next, [...path, key])), {});
35
+ };
36
+ exports.flattenKeys = flattenKeys;
37
+ const shuffleArray = (array) => {
38
+ for (let i = array.length - 1; i > 0; i--) {
39
+ const j = Math.floor(Math.random() * (i + 1));
40
+ [array[i], array[j]] = [array[j], array[i]];
41
+ }
42
+ };
43
+ exports.shuffleArray = shuffleArray;
44
+ const prepareFieldsArray = (fields, fieldName = 'Fields') => {
45
+ if (typeof fields === 'string') {
46
+ return fields
47
+ .split(',')
48
+ .map((entry) => entry.trim())
49
+ .filter((entry) => entry !== '');
50
+ }
51
+ if (Array.isArray(fields)) {
52
+ return fields;
53
+ }
54
+ throw new Error(`The \'${fieldName}\' parameter must be a string of fields separated by commas or an array of strings.`);
55
+ };
56
+ exports.prepareFieldsArray = prepareFieldsArray;
57
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../nodes/ItemLists/V3/helpers/utils.ts"],"names":[],"mappings":";;;;;;AAEA,qDAA6B;AAC7B,6DAAqC;AACrC,+DAAuC;AACvC,yDAAiC;AACjC,2DAAmC;AAE5B,MAAM,YAAY,GAAG,CAC3B,GAAuB,EACvB,IAAwB,EACxB,IAAc,EACd,kBAA2B,EAC3B,KAAY,EACX,EAAE;IACH,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACvB,IAAI,CAAC,kBAAkB,EAAE;YACxB,IAAI,CAAC,IAAA,iBAAO,EAAC,IAAA,aAAG,EAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,IAAA,aAAG,EAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE;gBACtD,MAAM,GAAG,KAAK,CAAC;gBACf,MAAM;aACN;SACD;aAAM;YACN,IAAI,CAAC,IAAA,iBAAO,EAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;gBAC5C,MAAM,GAAG,KAAK,CAAC;gBACf,MAAM;aACN;SACD;KACD;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC;AAtBW,QAAA,YAAY,gBAsBvB;AAEK,MAAM,WAAW,GAAG,CAAC,GAAgB,EAAE,OAAiB,EAAE,EAAe,EAAE;IACjF,OAAO,CAAC,IAAA,kBAAQ,EAAC,GAAG,CAAC;QACpB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE;QAC3B,CAAC,CAAC,IAAA,gBAAM,EAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,IAAA,eAAK,EAAC,GAAG,EAAE,IAAA,mBAAW,EAAC,IAAmB,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACtG,CAAC,CAAC;AAJW,QAAA,WAAW,eAItB;AAEK,MAAM,YAAY,GAAG,CAAC,KAAY,EAAE,EAAE;IAC5C,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC5C;AACF,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB;AAEK,MAAM,kBAAkB,GAAG,CAAC,MAAyB,EAAE,SAAS,GAAG,QAAQ,EAAE,EAAE;IACrF,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC/B,OAAO,MAAM;aACX,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;aAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;KAClC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAC1B,OAAO,MAAM,CAAC;KACd;IACD,MAAM,IAAI,KAAK,CACd,SAAS,SAAS,qFAAqF,CACvG,CAAC;AACH,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B"}
@@ -0,0 +1,606 @@
1
+ {
2
+ "name": "itemList refactor",
3
+ "nodes": [
4
+ {
5
+ "parameters": {},
6
+ "id": "e7ecaa9c-e35d-4095-a85b-85b83f807c2a",
7
+ "name": "When clicking \"Execute Workflow\"",
8
+ "type": "n8n-nodes-base.manualTrigger",
9
+ "typeVersion": 1,
10
+ "position": [420, 400]
11
+ },
12
+ {
13
+ "parameters": {
14
+ "operation": "getAllPeople",
15
+ "returnAll": true
16
+ },
17
+ "id": "7d925077-afaa-46d5-ba2f-0c19d93afecc",
18
+ "name": "Customer Datastore (n8n training)",
19
+ "type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
20
+ "typeVersion": 1,
21
+ "position": [640, 400]
22
+ },
23
+ {
24
+ "parameters": {
25
+ "operation": "concatenateItems",
26
+ "fieldsToAggregate": {
27
+ "fieldToAggregate": [
28
+ {
29
+ "fieldToAggregate": "email"
30
+ },
31
+ {
32
+ "fieldToAggregate": "notes"
33
+ }
34
+ ]
35
+ },
36
+ "options": {}
37
+ },
38
+ "id": "f80182d8-54f6-4a26-82b3-27d67e4ca39b",
39
+ "name": "Item Lists1",
40
+ "type": "n8n-nodes-base.itemLists",
41
+ "typeVersion": 3,
42
+ "position": [1120, -120]
43
+ },
44
+ {
45
+ "parameters": {
46
+ "operation": "concatenateItems",
47
+ "aggregate": "aggregateAllItemData",
48
+ "destinationFieldName": "data2"
49
+ },
50
+ "id": "23eefe2c-6394-4b53-a791-852dcd671ea0",
51
+ "name": "Item Lists",
52
+ "type": "n8n-nodes-base.itemLists",
53
+ "typeVersion": 3,
54
+ "position": [1120, 40]
55
+ },
56
+ {
57
+ "parameters": {
58
+ "operation": "limit",
59
+ "maxItems": 2
60
+ },
61
+ "id": "676dc72f-9766-43c0-aab7-2f8a93ed46e5",
62
+ "name": "Item Lists2",
63
+ "type": "n8n-nodes-base.itemLists",
64
+ "typeVersion": 3,
65
+ "position": [1120, 200]
66
+ },
67
+ {
68
+ "parameters": {
69
+ "operation": "limit",
70
+ "keep": "lastItems"
71
+ },
72
+ "id": "9615299b-5acc-4459-a7d3-2cb23c3224ab",
73
+ "name": "Item Lists3",
74
+ "type": "n8n-nodes-base.itemLists",
75
+ "typeVersion": 3,
76
+ "position": [1120, 360]
77
+ },
78
+ {
79
+ "parameters": {
80
+ "operation": "sort",
81
+ "sortFieldsUi": {
82
+ "sortField": [
83
+ {
84
+ "fieldName": "country"
85
+ }
86
+ ]
87
+ },
88
+ "options": {}
89
+ },
90
+ "id": "fd2f190a-b161-48ff-93e1-0f30efce051a",
91
+ "name": "Item Lists4",
92
+ "type": "n8n-nodes-base.itemLists",
93
+ "typeVersion": 3,
94
+ "position": [1120, 540]
95
+ },
96
+ {
97
+ "parameters": {
98
+ "operation": "limit",
99
+ "maxItems": 4
100
+ },
101
+ "id": "14759521-76ad-46d8-8add-1d7361788fe1",
102
+ "name": "Item Lists5",
103
+ "type": "n8n-nodes-base.itemLists",
104
+ "typeVersion": 3,
105
+ "position": [1360, 540]
106
+ },
107
+ {
108
+ "parameters": {
109
+ "operation": "removeDuplicates",
110
+ "compare": "selectedFields",
111
+ "fieldsToCompare": "country",
112
+ "options": {}
113
+ },
114
+ "id": "c0eba4d0-f975-4987-8bb2-853e8a98665e",
115
+ "name": "Item Lists6",
116
+ "type": "n8n-nodes-base.itemLists",
117
+ "typeVersion": 3,
118
+ "position": [1560, 540]
119
+ },
120
+ {
121
+ "parameters": {
122
+ "operation": "concatenateItems",
123
+ "aggregate": "aggregateAllItemData",
124
+ "include": "specifiedFields",
125
+ "fieldsToInclude": "country, notes, name, created"
126
+ },
127
+ "id": "b5962f40-a891-4b02-8fec-c2d76f85375f",
128
+ "name": "Item Lists7",
129
+ "type": "n8n-nodes-base.itemLists",
130
+ "typeVersion": 3,
131
+ "position": [1120, 740]
132
+ },
133
+ {
134
+ "parameters": {
135
+ "fieldToSplitOut": "data",
136
+ "include": "allOtherFields",
137
+ "options": {
138
+ "destinationFieldName": "newData"
139
+ }
140
+ },
141
+ "id": "15c6fc86-7e38-4d76-836a-8f8426ca05e3",
142
+ "name": "Item Lists8",
143
+ "type": "n8n-nodes-base.itemLists",
144
+ "typeVersion": 3,
145
+ "position": [1380, 740]
146
+ },
147
+ {
148
+ "parameters": {
149
+ "operation": "summarize",
150
+ "fieldsToSummarize": {
151
+ "values": [
152
+ {
153
+ "aggregation": "append",
154
+ "field": "newData.notes"
155
+ },
156
+ {
157
+ "aggregation": "max",
158
+ "field": "newData.created"
159
+ },
160
+ {
161
+ "aggregation": "min",
162
+ "field": "newData.created"
163
+ }
164
+ ]
165
+ },
166
+ "options": {}
167
+ },
168
+ "id": "8c51ae57-487e-472a-b268-6e8ad347edbb",
169
+ "name": "Item Lists9",
170
+ "type": "n8n-nodes-base.itemLists",
171
+ "typeVersion": 3,
172
+ "position": [1560, 940]
173
+ },
174
+ {
175
+ "parameters": {},
176
+ "id": "e859b082-284c-4bb3-96b6-39a86152d8f6",
177
+ "name": "No Operation, do nothing",
178
+ "type": "n8n-nodes-base.noOp",
179
+ "typeVersion": 1,
180
+ "position": [1760, -120]
181
+ },
182
+ {
183
+ "parameters": {},
184
+ "id": "9da56c21-739d-4f2f-adf7-953cf0550d97",
185
+ "name": "No Operation, do nothing1",
186
+ "type": "n8n-nodes-base.noOp",
187
+ "typeVersion": 1,
188
+ "position": [1760, 40]
189
+ },
190
+ {
191
+ "parameters": {},
192
+ "id": "f85ac031-24de-4701-bb3d-76c684924002",
193
+ "name": "No Operation, do nothing2",
194
+ "type": "n8n-nodes-base.noOp",
195
+ "typeVersion": 1,
196
+ "position": [1760, 200]
197
+ },
198
+ {
199
+ "parameters": {},
200
+ "id": "e7faff14-55d6-4d78-983d-027fd56bcd5a",
201
+ "name": "No Operation, do nothing3",
202
+ "type": "n8n-nodes-base.noOp",
203
+ "typeVersion": 1,
204
+ "position": [1760, 360]
205
+ },
206
+ {
207
+ "parameters": {},
208
+ "id": "dc8b7bbc-b1a8-4ba8-b214-d73341cb9f85",
209
+ "name": "No Operation, do nothing4",
210
+ "type": "n8n-nodes-base.noOp",
211
+ "typeVersion": 1,
212
+ "position": [1760, 740]
213
+ },
214
+ {
215
+ "parameters": {},
216
+ "id": "09bdeca1-6a9e-4668-b9d1-14ed6139e047",
217
+ "name": "No Operation, do nothing5",
218
+ "type": "n8n-nodes-base.noOp",
219
+ "typeVersion": 1,
220
+ "position": [1760, 540]
221
+ },
222
+ {
223
+ "parameters": {},
224
+ "id": "7d508889-d94e-4818-abc8-b669a0fe64ea",
225
+ "name": "No Operation, do nothing6",
226
+ "type": "n8n-nodes-base.noOp",
227
+ "typeVersion": 1,
228
+ "position": [1760, 940]
229
+ }
230
+ ],
231
+ "pinData": {
232
+ "No Operation, do nothing": [
233
+ {
234
+ "json": {
235
+ "email": [
236
+ "gatsby@west-egg.com",
237
+ "jab@macondo.co",
238
+ "info@in-and-out-of-weeks.org",
239
+ "captain@heartofgold.com",
240
+ "edmund@narnia.gov"
241
+ ],
242
+ "notes": [
243
+ "Keeps asking about a green light??",
244
+ "Lots of people named after him. Very confusing",
245
+ "Keeps rolling his terrible eyes",
246
+ "Felt like I was talking to more than one person",
247
+ "Passionate sailor"
248
+ ]
249
+ }
250
+ }
251
+ ],
252
+ "No Operation, do nothing1": [
253
+ {
254
+ "json": {
255
+ "data2": [
256
+ {
257
+ "id": "23423532",
258
+ "name": "Jay Gatsby",
259
+ "email": "gatsby@west-egg.com",
260
+ "notes": "Keeps asking about a green light??",
261
+ "country": "US",
262
+ "created": "1925-04-10"
263
+ },
264
+ {
265
+ "id": "23423533",
266
+ "name": "José Arcadio Buendía",
267
+ "email": "jab@macondo.co",
268
+ "notes": "Lots of people named after him. Very confusing",
269
+ "country": "CO",
270
+ "created": "1967-05-05"
271
+ },
272
+ {
273
+ "id": "23423534",
274
+ "name": "Max Sendak",
275
+ "email": "info@in-and-out-of-weeks.org",
276
+ "notes": "Keeps rolling his terrible eyes",
277
+ "country": "US",
278
+ "created": "1963-04-09"
279
+ },
280
+ {
281
+ "id": "23423535",
282
+ "name": "Zaphod Beeblebrox",
283
+ "email": "captain@heartofgold.com",
284
+ "notes": "Felt like I was talking to more than one person",
285
+ "country": null,
286
+ "created": "1979-10-12"
287
+ },
288
+ {
289
+ "id": "23423536",
290
+ "name": "Edmund Pevensie",
291
+ "email": "edmund@narnia.gov",
292
+ "notes": "Passionate sailor",
293
+ "country": "UK",
294
+ "created": "1950-10-16"
295
+ }
296
+ ]
297
+ }
298
+ }
299
+ ],
300
+ "No Operation, do nothing2": [
301
+ {
302
+ "json": {
303
+ "id": "23423532",
304
+ "name": "Jay Gatsby",
305
+ "email": "gatsby@west-egg.com",
306
+ "notes": "Keeps asking about a green light??",
307
+ "country": "US",
308
+ "created": "1925-04-10"
309
+ }
310
+ },
311
+ {
312
+ "json": {
313
+ "id": "23423533",
314
+ "name": "José Arcadio Buendía",
315
+ "email": "jab@macondo.co",
316
+ "notes": "Lots of people named after him. Very confusing",
317
+ "country": "CO",
318
+ "created": "1967-05-05"
319
+ }
320
+ }
321
+ ],
322
+ "No Operation, do nothing3": [
323
+ {
324
+ "json": {
325
+ "id": "23423536",
326
+ "name": "Edmund Pevensie",
327
+ "email": "edmund@narnia.gov",
328
+ "notes": "Passionate sailor",
329
+ "country": "UK",
330
+ "created": "1950-10-16"
331
+ }
332
+ }
333
+ ],
334
+ "No Operation, do nothing5": [
335
+ {
336
+ "json": {
337
+ "id": "23423533",
338
+ "name": "José Arcadio Buendía",
339
+ "email": "jab@macondo.co",
340
+ "notes": "Lots of people named after him. Very confusing",
341
+ "country": "CO",
342
+ "created": "1967-05-05"
343
+ }
344
+ },
345
+ {
346
+ "json": {
347
+ "id": "23423536",
348
+ "name": "Edmund Pevensie",
349
+ "email": "edmund@narnia.gov",
350
+ "notes": "Passionate sailor",
351
+ "country": "UK",
352
+ "created": "1950-10-16"
353
+ }
354
+ },
355
+ {
356
+ "json": {
357
+ "id": "23423532",
358
+ "name": "Jay Gatsby",
359
+ "email": "gatsby@west-egg.com",
360
+ "notes": "Keeps asking about a green light??",
361
+ "country": "US",
362
+ "created": "1925-04-10"
363
+ }
364
+ }
365
+ ],
366
+ "No Operation, do nothing4": [
367
+ {
368
+ "json": {
369
+ "newData": {
370
+ "name": "Jay Gatsby",
371
+ "notes": "Keeps asking about a green light??",
372
+ "country": "US",
373
+ "created": "1925-04-10"
374
+ }
375
+ }
376
+ },
377
+ {
378
+ "json": {
379
+ "newData": {
380
+ "name": "José Arcadio Buendía",
381
+ "notes": "Lots of people named after him. Very confusing",
382
+ "country": "CO",
383
+ "created": "1967-05-05"
384
+ }
385
+ }
386
+ },
387
+ {
388
+ "json": {
389
+ "newData": {
390
+ "name": "Max Sendak",
391
+ "notes": "Keeps rolling his terrible eyes",
392
+ "country": "US",
393
+ "created": "1963-04-09"
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "json": {
399
+ "newData": {
400
+ "name": "Zaphod Beeblebrox",
401
+ "notes": "Felt like I was talking to more than one person",
402
+ "country": null,
403
+ "created": "1979-10-12"
404
+ }
405
+ }
406
+ },
407
+ {
408
+ "json": {
409
+ "newData": {
410
+ "name": "Edmund Pevensie",
411
+ "notes": "Passionate sailor",
412
+ "country": "UK",
413
+ "created": "1950-10-16"
414
+ }
415
+ }
416
+ }
417
+ ],
418
+ "No Operation, do nothing6": [
419
+ {
420
+ "json": {
421
+ "appended_newData_notes": [
422
+ "Keeps asking about a green light??",
423
+ "Lots of people named after him. Very confusing",
424
+ "Keeps rolling his terrible eyes",
425
+ "Felt like I was talking to more than one person",
426
+ "Passionate sailor"
427
+ ],
428
+ "max_newData_created": "1979-10-12",
429
+ "min_newData_created": "1925-04-10"
430
+ }
431
+ }
432
+ ]
433
+ },
434
+ "connections": {
435
+ "When clicking \"Execute Workflow\"": {
436
+ "main": [
437
+ [
438
+ {
439
+ "node": "Customer Datastore (n8n training)",
440
+ "type": "main",
441
+ "index": 0
442
+ }
443
+ ]
444
+ ]
445
+ },
446
+ "Customer Datastore (n8n training)": {
447
+ "main": [
448
+ [
449
+ {
450
+ "node": "Item Lists1",
451
+ "type": "main",
452
+ "index": 0
453
+ },
454
+ {
455
+ "node": "Item Lists",
456
+ "type": "main",
457
+ "index": 0
458
+ },
459
+ {
460
+ "node": "Item Lists2",
461
+ "type": "main",
462
+ "index": 0
463
+ },
464
+ {
465
+ "node": "Item Lists3",
466
+ "type": "main",
467
+ "index": 0
468
+ },
469
+ {
470
+ "node": "Item Lists4",
471
+ "type": "main",
472
+ "index": 0
473
+ },
474
+ {
475
+ "node": "Item Lists7",
476
+ "type": "main",
477
+ "index": 0
478
+ }
479
+ ]
480
+ ]
481
+ },
482
+ "Item Lists1": {
483
+ "main": [
484
+ [
485
+ {
486
+ "node": "No Operation, do nothing",
487
+ "type": "main",
488
+ "index": 0
489
+ }
490
+ ]
491
+ ]
492
+ },
493
+ "Item Lists4": {
494
+ "main": [
495
+ [
496
+ {
497
+ "node": "Item Lists5",
498
+ "type": "main",
499
+ "index": 0
500
+ }
501
+ ]
502
+ ]
503
+ },
504
+ "Item Lists5": {
505
+ "main": [
506
+ [
507
+ {
508
+ "node": "Item Lists6",
509
+ "type": "main",
510
+ "index": 0
511
+ }
512
+ ]
513
+ ]
514
+ },
515
+ "Item Lists7": {
516
+ "main": [
517
+ [
518
+ {
519
+ "node": "Item Lists8",
520
+ "type": "main",
521
+ "index": 0
522
+ }
523
+ ]
524
+ ]
525
+ },
526
+ "Item Lists8": {
527
+ "main": [
528
+ [
529
+ {
530
+ "node": "Item Lists9",
531
+ "type": "main",
532
+ "index": 0
533
+ },
534
+ {
535
+ "node": "No Operation, do nothing4",
536
+ "type": "main",
537
+ "index": 0
538
+ }
539
+ ]
540
+ ]
541
+ },
542
+ "Item Lists": {
543
+ "main": [
544
+ [
545
+ {
546
+ "node": "No Operation, do nothing1",
547
+ "type": "main",
548
+ "index": 0
549
+ }
550
+ ]
551
+ ]
552
+ },
553
+ "Item Lists2": {
554
+ "main": [
555
+ [
556
+ {
557
+ "node": "No Operation, do nothing2",
558
+ "type": "main",
559
+ "index": 0
560
+ }
561
+ ]
562
+ ]
563
+ },
564
+ "Item Lists3": {
565
+ "main": [
566
+ [
567
+ {
568
+ "node": "No Operation, do nothing3",
569
+ "type": "main",
570
+ "index": 0
571
+ }
572
+ ]
573
+ ]
574
+ },
575
+ "Item Lists6": {
576
+ "main": [
577
+ [
578
+ {
579
+ "node": "No Operation, do nothing5",
580
+ "type": "main",
581
+ "index": 0
582
+ }
583
+ ]
584
+ ]
585
+ },
586
+ "Item Lists9": {
587
+ "main": [
588
+ [
589
+ {
590
+ "node": "No Operation, do nothing6",
591
+ "type": "main",
592
+ "index": 0
593
+ }
594
+ ]
595
+ ]
596
+ }
597
+ },
598
+ "active": false,
599
+ "settings": {},
600
+ "versionId": "ce3e0124-aa56-497c-a2e1-24158837c7f9",
601
+ "id": "m7QDuxo599dkZ0Ex",
602
+ "meta": {
603
+ "instanceId": "e34acda144ba98351e38adb4db781751ca8cd64a8248aef8b65608fc9a49008c"
604
+ },
605
+ "tags": []
606
+ }
@@ -157,6 +157,13 @@ class MicrosoftToDo {
157
157
  timeZone: timezone,
158
158
  };
159
159
  }
160
+ if (body.reminderDateTime) {
161
+ body.reminderDateTime = {
162
+ dateTime: moment_timezone_1.default.tz(body.reminderDateTime, timezone).format(),
163
+ timeZone: timezone,
164
+ };
165
+ body.isReminderOn = true;
166
+ }
160
167
  responseData = await GenericFunctions_1.microsoftApiRequest.call(this, 'POST', `/todo/lists/${taskListId}/tasks`, body, qs);
161
168
  }
162
169
  else if (operation === 'delete') {