n8n-nodes-base 0.232.0 → 0.233.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 (244) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js +6 -0
  3. package/dist/credentials/GoogleDriveOAuth2Api.credentials.js.map +1 -1
  4. package/dist/known/credentials.json +4 -2
  5. package/dist/nodes/CompareDatasets/GenericFunctions.js.map +1 -1
  6. package/dist/nodes/CrateDb/CrateDb.node.js +5 -2
  7. package/dist/nodes/CrateDb/CrateDb.node.js.map +1 -1
  8. package/dist/nodes/EditImage/EditImage.node.js +1 -0
  9. package/dist/nodes/EditImage/EditImage.node.js.map +1 -1
  10. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +8 -0
  11. package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
  12. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +8 -0
  13. package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
  14. package/dist/nodes/EmailSend/v2/send.operation.js.map +1 -1
  15. package/dist/nodes/Google/Analytics/v1/GoogleAnalyticsV1.node.js.map +1 -1
  16. package/dist/nodes/Google/BigQuery/v1/GoogleBigQueryV1.node.js.map +1 -1
  17. package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js +6 -1
  18. package/dist/nodes/Google/BigQuery/v2/actions/database/executeQuery.operation.js.map +1 -1
  19. package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
  20. package/dist/nodes/Google/Drive/GoogleDrive.node.d.ts +3 -12
  21. package/dist/nodes/Google/Drive/GoogleDrive.node.js +10 -2301
  22. package/dist/nodes/Google/Drive/GoogleDrive.node.js.map +1 -1
  23. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.d.ts +1 -1
  24. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js +6 -6
  25. package/dist/nodes/Google/Drive/GoogleDriveTrigger.node.js.map +1 -1
  26. package/dist/nodes/Google/Drive/test/v2/node/helpers.d.ts +3 -0
  27. package/dist/nodes/Google/Drive/test/v2/node/helpers.js +34 -0
  28. package/dist/nodes/Google/Drive/test/v2/node/helpers.js.map +1 -0
  29. package/dist/nodes/Google/Drive/{GenericFunctions.js → v1/GenericFunctions.js} +1 -1
  30. package/dist/nodes/Google/Drive/v1/GenericFunctions.js.map +1 -0
  31. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.d.ts +14 -0
  32. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js +2324 -0
  33. package/dist/nodes/Google/Drive/v1/GoogleDriveV1.node.js.map +1 -0
  34. package/dist/nodes/Google/Drive/v1/SearchFunctions.js.map +1 -0
  35. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.d.ts +10 -0
  36. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js +20 -0
  37. package/dist/nodes/Google/Drive/v2/GoogleDriveV2.node.js.map +1 -0
  38. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.d.ts +19 -0
  39. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js +598 -0
  40. package/dist/nodes/Google/Drive/v2/actions/common.descriptions.js.map +1 -0
  41. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.d.ts +8 -0
  42. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js +88 -0
  43. package/dist/nodes/Google/Drive/v2/actions/drive/Drive.resource.js.map +1 -0
  44. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.d.ts +23 -0
  45. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js +235 -0
  46. package/dist/nodes/Google/Drive/v2/actions/drive/create.operation.js.map +1 -0
  47. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.d.ts +23 -0
  48. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js +31 -0
  49. package/dist/nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.js.map +1 -0
  50. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.d.ts +23 -0
  51. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js +50 -0
  52. package/dist/nodes/Google/Drive/v2/actions/drive/get.operation.js.map +1 -0
  53. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.d.ts +23 -0
  54. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js +81 -0
  55. package/dist/nodes/Google/Drive/v2/actions/drive/list.operation.js.map +1 -0
  56. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.d.ts +23 -0
  57. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js +100 -0
  58. package/dist/nodes/Google/Drive/v2/actions/drive/update.operation.js.map +1 -0
  59. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.d.ts +11 -0
  60. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js +115 -0
  61. package/dist/nodes/Google/Drive/v2/actions/file/File.resource.js.map +1 -0
  62. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.d.ts +23 -0
  63. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js +104 -0
  64. package/dist/nodes/Google/Drive/v2/actions/file/copy.operation.js.map +1 -0
  65. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.d.ts +23 -0
  66. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js +134 -0
  67. package/dist/nodes/Google/Drive/v2/actions/file/createFromText.operation.js.map +1 -0
  68. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.d.ts +23 -0
  69. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js +57 -0
  70. package/dist/nodes/Google/Drive/v2/actions/file/deleteFile.operation.js.map +1 -0
  71. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.d.ts +23 -0
  72. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js +218 -0
  73. package/dist/nodes/Google/Drive/v2/actions/file/download.operation.js.map +1 -0
  74. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.d.ts +23 -0
  75. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js +60 -0
  76. package/dist/nodes/Google/Drive/v2/actions/file/move.operation.js.map +1 -0
  77. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.d.ts +23 -0
  78. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js +43 -0
  79. package/dist/nodes/Google/Drive/v2/actions/file/share.operation.js.map +1 -0
  80. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.d.ts +23 -0
  81. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js +221 -0
  82. package/dist/nodes/Google/Drive/v2/actions/file/update.operation.js.map +1 -0
  83. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.d.ts +23 -0
  84. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js +135 -0
  85. package/dist/nodes/Google/Drive/v2/actions/file/upload.operation.js.map +1 -0
  86. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.d.ts +4 -0
  87. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js +52 -0
  88. package/dist/nodes/Google/Drive/v2/actions/fileFolder/FileFolder.resource.js.map +1 -0
  89. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.d.ts +23 -0
  90. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js +335 -0
  91. package/dist/nodes/Google/Drive/v2/actions/fileFolder/search.operation.js.map +1 -0
  92. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.d.ts +6 -0
  93. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js +70 -0
  94. package/dist/nodes/Google/Drive/v2/actions/folder/Folder.resource.js.map +1 -0
  95. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.d.ts +23 -0
  96. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js +92 -0
  97. package/dist/nodes/Google/Drive/v2/actions/folder/create.operation.js.map +1 -0
  98. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.d.ts +23 -0
  99. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js +59 -0
  100. package/dist/nodes/Google/Drive/v2/actions/folder/deleteFolder.operation.js.map +1 -0
  101. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.d.ts +23 -0
  102. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js +43 -0
  103. package/dist/nodes/Google/Drive/v2/actions/folder/share.operation.js.map +1 -0
  104. package/dist/nodes/Google/Drive/v2/actions/node.type.d.ts +9 -0
  105. package/dist/nodes/Google/Drive/v2/actions/node.type.js +3 -0
  106. package/dist/nodes/Google/Drive/v2/actions/node.type.js.map +1 -0
  107. package/dist/nodes/Google/Drive/v2/actions/router.d.ts +2 -0
  108. package/dist/nodes/Google/Drive/v2/actions/router.js +76 -0
  109. package/dist/nodes/Google/Drive/v2/actions/router.js.map +1 -0
  110. package/dist/nodes/Google/Drive/v2/actions/versionDescription.d.ts +2 -0
  111. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js +112 -0
  112. package/dist/nodes/Google/Drive/v2/actions/versionDescription.js.map +1 -0
  113. package/dist/nodes/Google/Drive/v2/helpers/interfaces.d.ts +34 -0
  114. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js +26 -0
  115. package/dist/nodes/Google/Drive/v2/helpers/interfaces.js.map +1 -0
  116. package/dist/nodes/Google/Drive/v2/helpers/utils.d.ts +15 -0
  117. package/dist/nodes/Google/Drive/v2/helpers/utils.js +104 -0
  118. package/dist/nodes/Google/Drive/v2/helpers/utils.js.map +1 -0
  119. package/dist/nodes/Google/Drive/v2/methods/index.d.ts +1 -0
  120. package/dist/nodes/Google/Drive/v2/methods/index.js +28 -0
  121. package/dist/nodes/Google/Drive/v2/methods/index.js.map +1 -0
  122. package/dist/nodes/Google/Drive/v2/methods/listSearch.d.ts +6 -0
  123. package/dist/nodes/Google/Drive/v2/methods/listSearch.js +144 -0
  124. package/dist/nodes/Google/Drive/v2/methods/listSearch.js.map +1 -0
  125. package/dist/nodes/Google/Drive/v2/transport/index.d.ts +4 -0
  126. package/dist/nodes/Google/Drive/v2/transport/index.js +68 -0
  127. package/dist/nodes/Google/Drive/v2/transport/index.js.map +1 -0
  128. package/dist/nodes/Google/Gmail/v1/GmailV1.node.js.map +1 -1
  129. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js +2 -2
  130. package/dist/nodes/Google/Sheet/GoogleSheetsTrigger.node.js.map +1 -1
  131. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js +2 -2
  132. package/dist/nodes/Google/Sheet/v2/actions/sheet/Sheet.resource.js.map +1 -1
  133. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/delete.operation.js +2 -2
  134. package/dist/nodes/Google/Sheet/v2/actions/spreadsheet/delete.operation.js.map +1 -1
  135. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js +4 -2
  136. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js.map +1 -1
  137. package/dist/nodes/Html/Html.node.js +2 -1
  138. package/dist/nodes/Html/Html.node.js.map +1 -1
  139. package/dist/nodes/Html/utils.d.ts +0 -1
  140. package/dist/nodes/Html/utils.js +1 -15
  141. package/dist/nodes/Html/utils.js.map +1 -1
  142. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js +6 -0
  143. package/dist/nodes/HttpRequest/V1/HttpRequestV1.node.js.map +1 -1
  144. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js +6 -0
  145. package/dist/nodes/HttpRequest/V2/HttpRequestV2.node.js.map +1 -1
  146. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +6 -0
  147. package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
  148. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +8 -0
  149. package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
  150. package/dist/nodes/MQTT/MqttTrigger.node.js +9 -0
  151. package/dist/nodes/MQTT/MqttTrigger.node.js.map +1 -1
  152. package/dist/nodes/Matrix/GenericFunctions.js +8 -2
  153. package/dist/nodes/Matrix/GenericFunctions.js.map +1 -1
  154. package/dist/nodes/Matrix/MediaDescription.js +23 -1
  155. package/dist/nodes/Matrix/MediaDescription.js.map +1 -1
  156. package/dist/nodes/Merge/test/node/workflow.combine.mergeByFields.json +4 -4
  157. package/dist/nodes/Merge/v1/MergeV1.node.js.map +1 -1
  158. package/dist/nodes/Merge/v2/GenericFunctions.js +12 -16
  159. package/dist/nodes/Merge/v2/GenericFunctions.js.map +1 -1
  160. package/dist/nodes/Merge/v2/MergeV2.node.js +13 -4
  161. package/dist/nodes/Merge/v2/MergeV2.node.js.map +1 -1
  162. package/dist/nodes/Microsoft/Excel/v2/actions/table/addTable.operation.js.map +1 -1
  163. package/dist/nodes/Microsoft/Excel/v2/actions/table/append.operation.js.map +1 -1
  164. package/dist/nodes/Microsoft/Excel/v2/actions/table/convertToRange.operation.js.map +1 -1
  165. package/dist/nodes/Microsoft/Excel/v2/actions/table/deleteTable.operation.js.map +1 -1
  166. package/dist/nodes/Microsoft/Excel/v2/actions/table/getColumns.operation.js.map +1 -1
  167. package/dist/nodes/Microsoft/Excel/v2/actions/table/getRows.operation.js.map +1 -1
  168. package/dist/nodes/Microsoft/Excel/v2/actions/table/lookup.operation.js.map +1 -1
  169. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/addWorksheet.operation.js.map +1 -1
  170. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/deleteWorkbook.operation.js.map +1 -1
  171. package/dist/nodes/Microsoft/Excel/v2/actions/workbook/getAll.operation.js.map +1 -1
  172. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/append.operation.js.map +1 -1
  173. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/clear.operation.js.map +1 -1
  174. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/deleteWorksheet.operation.js.map +1 -1
  175. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/getAll.operation.js.map +1 -1
  176. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/readRows.operation.js.map +1 -1
  177. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/update.operation.js.map +1 -1
  178. package/dist/nodes/Microsoft/Excel/v2/actions/worksheet/upsert.operation.js.map +1 -1
  179. package/dist/nodes/Microsoft/Excel/v2/helpers/utils.js.map +1 -1
  180. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js +6 -2
  181. package/dist/nodes/Microsoft/Sql/MicrosoftSql.node.js.map +1 -1
  182. package/dist/nodes/MySql/v1/MySqlV1.node.js +2 -1
  183. package/dist/nodes/MySql/v1/MySqlV1.node.js.map +1 -1
  184. package/dist/nodes/MySql/v2/actions/database/deleteTable.operation.js.map +1 -1
  185. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js +6 -2
  186. package/dist/nodes/MySql/v2/actions/database/executeQuery.operation.js.map +1 -1
  187. package/dist/nodes/MySql/v2/actions/database/insert.operation.js.map +1 -1
  188. package/dist/nodes/MySql/v2/actions/database/select.operation.js.map +1 -1
  189. package/dist/nodes/MySql/v2/actions/database/update.operation.js.map +1 -1
  190. package/dist/nodes/MySql/v2/actions/database/upsert.operation.js.map +1 -1
  191. package/dist/nodes/Notion/DatabaseDescription.js +3 -3
  192. package/dist/nodes/Notion/DatabaseDescription.js.map +1 -1
  193. package/dist/nodes/Notion/DatabasePageDescription.js +9 -9
  194. package/dist/nodes/Notion/DatabasePageDescription.js.map +1 -1
  195. package/dist/nodes/Notion/GenericFunctions.d.ts +4 -4
  196. package/dist/nodes/Notion/GenericFunctions.js +5 -5
  197. package/dist/nodes/Notion/GenericFunctions.js.map +1 -1
  198. package/dist/nodes/Notion/PageDescription.js +6 -6
  199. package/dist/nodes/Notion/PageDescription.js.map +1 -1
  200. package/dist/nodes/Notion/v1/VersionDescription.js +0 -6
  201. package/dist/nodes/Notion/v1/VersionDescription.js.map +1 -1
  202. package/dist/nodes/Notion/v2/NotionV2.node.js +0 -4
  203. package/dist/nodes/Notion/v2/NotionV2.node.js.map +1 -1
  204. package/dist/nodes/Notion/v2/VersionDescription.js +0 -6
  205. package/dist/nodes/Notion/v2/VersionDescription.js.map +1 -1
  206. package/dist/nodes/Postgres/PostgresTrigger.node.js +15 -6
  207. package/dist/nodes/Postgres/PostgresTrigger.node.js.map +1 -1
  208. package/dist/nodes/Postgres/v1/PostgresV1.node.js +2 -1
  209. package/dist/nodes/Postgres/v1/PostgresV1.node.js.map +1 -1
  210. package/dist/nodes/Postgres/v1/genericFunctions.d.ts +4 -1
  211. package/dist/nodes/Postgres/v1/genericFunctions.js +11 -3
  212. package/dist/nodes/Postgres/v1/genericFunctions.js.map +1 -1
  213. package/dist/nodes/Postgres/v2/actions/database/deleteTable.operation.js.map +1 -1
  214. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js +7 -3
  215. package/dist/nodes/Postgres/v2/actions/database/executeQuery.operation.js.map +1 -1
  216. package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
  217. package/dist/nodes/Postgres/v2/actions/database/select.operation.js.map +1 -1
  218. package/dist/nodes/Postgres/v2/actions/database/update.operation.js.map +1 -1
  219. package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js.map +1 -1
  220. package/dist/nodes/QuestDb/QuestDb.node.js +6 -2
  221. package/dist/nodes/QuestDb/QuestDb.node.js.map +1 -1
  222. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +9 -0
  223. package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
  224. package/dist/nodes/Sendy/Sendy.node.js +7 -3
  225. package/dist/nodes/Sendy/Sendy.node.js.map +1 -1
  226. package/dist/nodes/Slack/V1/SlackV1.node.js.map +1 -1
  227. package/dist/nodes/Snowflake/Snowflake.node.js +6 -1
  228. package/dist/nodes/Snowflake/Snowflake.node.js.map +1 -1
  229. package/dist/nodes/SseTrigger/SseTrigger.node.js +8 -0
  230. package/dist/nodes/SseTrigger/SseTrigger.node.js.map +1 -1
  231. package/dist/nodes/TimescaleDb/TimescaleDb.node.js +5 -2
  232. package/dist/nodes/TimescaleDb/TimescaleDb.node.js.map +1 -1
  233. package/dist/package.json +2 -2
  234. package/dist/types/credentials.json +1 -1
  235. package/dist/types/nodes.json +36 -34
  236. package/dist/utils/utilities.d.ts +1 -0
  237. package/dist/utils/utilities.js +15 -1
  238. package/dist/utils/utilities.js.map +1 -1
  239. package/package.json +4 -4
  240. package/dist/nodes/Google/Drive/GenericFunctions.js.map +0 -1
  241. package/dist/nodes/Google/Drive/SearchFunctions.js.map +0 -1
  242. /package/dist/nodes/Google/Drive/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +0 -0
  243. /package/dist/nodes/Google/Drive/{SearchFunctions.d.ts → v1/SearchFunctions.d.ts} +0 -0
  244. /package/dist/nodes/Google/Drive/{SearchFunctions.js → v1/SearchFunctions.js} +0 -0
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.description = exports.update = exports.list = exports.get = exports.deleteDrive = exports.create = void 0;
27
+ const create = __importStar(require("./create.operation"));
28
+ exports.create = create;
29
+ const deleteDrive = __importStar(require("./deleteDrive.operation"));
30
+ exports.deleteDrive = deleteDrive;
31
+ const get = __importStar(require("./get.operation"));
32
+ exports.get = get;
33
+ const list = __importStar(require("./list.operation"));
34
+ exports.list = list;
35
+ const update = __importStar(require("./update.operation"));
36
+ exports.update = update;
37
+ exports.description = [
38
+ {
39
+ displayName: 'Operation',
40
+ name: 'operation',
41
+ type: 'options',
42
+ noDataExpression: true,
43
+ options: [
44
+ {
45
+ name: 'Create',
46
+ value: 'create',
47
+ description: 'Create a shared drive',
48
+ action: 'Create shared drive',
49
+ },
50
+ {
51
+ name: 'Delete',
52
+ value: 'deleteDrive',
53
+ description: 'Permanently delete a shared drive',
54
+ action: 'Delete shared drive',
55
+ },
56
+ {
57
+ name: 'Get',
58
+ value: 'get',
59
+ description: 'Get a shared drive',
60
+ action: 'Get shared drive',
61
+ },
62
+ {
63
+ name: 'Get Many',
64
+ value: 'list',
65
+ description: 'Get the list of shared drives',
66
+ action: 'Get many shared drives',
67
+ },
68
+ {
69
+ name: 'Update',
70
+ value: 'update',
71
+ description: 'Update a shared drive',
72
+ action: 'Update shared drive',
73
+ },
74
+ ],
75
+ default: 'create',
76
+ displayOptions: {
77
+ show: {
78
+ resource: ['drive'],
79
+ },
80
+ },
81
+ },
82
+ ...create.description,
83
+ ...deleteDrive.description,
84
+ ...get.description,
85
+ ...list.description,
86
+ ...update.description,
87
+ ];
88
+ //# sourceMappingURL=Drive.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drive.resource.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/Drive.resource.ts"],"names":[],"mappings":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n-core';
2
+ import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
+ export declare const description: {
4
+ displayOptions: import("n8n-workflow").IDisplayOptions;
5
+ displayName: string;
6
+ name: string;
7
+ type: import("n8n-workflow").NodePropertyTypes;
8
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
+ default: import("n8n-workflow").NodeParameterValueType;
10
+ description?: string | undefined;
11
+ hint?: string | undefined;
12
+ options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
+ placeholder?: string | undefined;
14
+ isNodeSetting?: boolean | undefined;
15
+ noDataExpression?: boolean | undefined;
16
+ required?: boolean | undefined;
17
+ routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
+ credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
+ modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
+ requiresDataPath?: "single" | "multiple" | undefined;
22
+ }[];
23
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ const utilities_1 = require("../../../../../../utils/utilities");
5
+ const transport_1 = require("../../transport");
6
+ const uuid_1 = require("uuid");
7
+ const properties = [
8
+ {
9
+ displayName: 'Name',
10
+ name: 'name',
11
+ type: 'string',
12
+ default: '',
13
+ placeholder: 'e.g. New Shared Drive',
14
+ description: 'The name of the shared drive to create',
15
+ },
16
+ {
17
+ displayName: 'Options',
18
+ name: 'options',
19
+ type: 'collection',
20
+ placeholder: 'Add Option',
21
+ default: {},
22
+ options: [
23
+ {
24
+ displayName: 'Capabilities',
25
+ name: 'capabilities',
26
+ type: 'collection',
27
+ placeholder: 'Add Field',
28
+ default: {},
29
+ options: [
30
+ {
31
+ displayName: 'Can Add Children',
32
+ name: 'canAddChildren',
33
+ type: 'boolean',
34
+ default: false,
35
+ description: 'Whether the current user can add children to folders in this shared drive',
36
+ },
37
+ {
38
+ displayName: 'Can Change Copy Requires Writer Permission Restriction',
39
+ name: 'canChangeCopyRequiresWriterPermissionRestriction',
40
+ type: 'boolean',
41
+ default: false,
42
+ description: 'Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive',
43
+ },
44
+ {
45
+ displayName: 'Can Change Domain Users Only Restriction',
46
+ name: 'canChangeDomainUsersOnlyRestriction',
47
+ type: 'boolean',
48
+ default: false,
49
+ description: 'Whether the current user can change the domainUsersOnly restriction of this shared drive',
50
+ },
51
+ {
52
+ displayName: 'Can Change Drive Background',
53
+ name: 'canChangeDriveBackground',
54
+ type: 'boolean',
55
+ default: false,
56
+ description: 'Whether the current user can change the background of this shared drive',
57
+ },
58
+ {
59
+ displayName: 'Can Change Drive Members Only Restriction',
60
+ name: 'canChangeDriveMembersOnlyRestriction',
61
+ type: 'boolean',
62
+ default: false,
63
+ description: 'Whether the current user can change the driveMembersOnly restriction of this shared drive',
64
+ },
65
+ {
66
+ displayName: 'Can Comment',
67
+ name: 'canComment',
68
+ type: 'boolean',
69
+ default: false,
70
+ description: 'Whether the current user can comment on files in this shared drive',
71
+ },
72
+ {
73
+ displayName: 'Can Copy',
74
+ name: 'canCopy',
75
+ type: 'boolean',
76
+ default: false,
77
+ description: 'Whether the current user can copy files in this shared drive',
78
+ },
79
+ {
80
+ displayName: 'Can Delete Children',
81
+ name: 'canDeleteChildren',
82
+ type: 'boolean',
83
+ default: false,
84
+ description: 'Whether the current user can delete children from folders in this shared drive',
85
+ },
86
+ {
87
+ displayName: 'Can Delete Drive',
88
+ name: 'canDeleteDrive',
89
+ type: 'boolean',
90
+ default: false,
91
+ description: 'Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.',
92
+ },
93
+ {
94
+ displayName: 'Can Download',
95
+ name: 'canDownload',
96
+ type: 'boolean',
97
+ default: false,
98
+ description: 'Whether the current user can download files in this shared drive',
99
+ },
100
+ {
101
+ displayName: 'Can Edit',
102
+ name: 'canEdit',
103
+ type: 'boolean',
104
+ default: false,
105
+ description: 'Whether the current user can edit files in this shared drive',
106
+ },
107
+ {
108
+ displayName: 'Can List Children',
109
+ name: 'canListChildren',
110
+ type: 'boolean',
111
+ default: false,
112
+ description: 'Whether the current user can list the children of folders in this shared drive',
113
+ },
114
+ {
115
+ displayName: 'Can Manage Members',
116
+ name: 'canManageMembers',
117
+ type: 'boolean',
118
+ default: false,
119
+ description: 'Whether the current user can add members to this shared drive or remove them or change their role',
120
+ },
121
+ {
122
+ displayName: 'Can Read Revisions',
123
+ name: 'canReadRevisions',
124
+ type: 'boolean',
125
+ default: false,
126
+ description: 'Whether the current user can read the revisions resource of files in this shared drive',
127
+ },
128
+ {
129
+ displayName: 'Can Rename',
130
+ name: 'canRename',
131
+ type: 'boolean',
132
+ default: false,
133
+ description: 'Whether the current user can rename files or folders in this shared drive',
134
+ },
135
+ {
136
+ displayName: 'Can Rename Drive',
137
+ name: 'canRenameDrive',
138
+ type: 'boolean',
139
+ default: false,
140
+ description: 'Whether the current user can rename this shared drive',
141
+ },
142
+ {
143
+ displayName: 'Can Share',
144
+ name: 'canShare',
145
+ type: 'boolean',
146
+ default: false,
147
+ description: 'Whether the current user can rename this shared drive',
148
+ },
149
+ {
150
+ displayName: 'Can Trash Children',
151
+ name: 'canTrashChildren',
152
+ type: 'boolean',
153
+ default: false,
154
+ description: 'Whether the current user can trash children from folders in this shared drive',
155
+ },
156
+ ],
157
+ },
158
+ {
159
+ displayName: 'Color RGB',
160
+ name: 'colorRgb',
161
+ type: 'color',
162
+ default: '',
163
+ description: 'The color of this shared drive as an RGB hex string',
164
+ },
165
+ {
166
+ displayName: 'Hidden',
167
+ name: 'hidden',
168
+ type: 'boolean',
169
+ default: false,
170
+ description: 'Whether the shared drive is hidden from default view',
171
+ },
172
+ {
173
+ displayName: 'Restrictions',
174
+ name: 'restrictions',
175
+ type: 'collection',
176
+ placeholder: 'Add Field',
177
+ default: {},
178
+ options: [
179
+ {
180
+ displayName: 'Admin Managed Restrictions',
181
+ name: 'adminManagedRestrictions',
182
+ type: 'boolean',
183
+ default: false,
184
+ description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
185
+ },
186
+ {
187
+ displayName: 'Copy Requires Writer Permission',
188
+ name: 'copyRequiresWriterPermission',
189
+ type: 'boolean',
190
+ default: false,
191
+ description: 'Whether the options to copy, print, or download files inside this shared drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this shared drive.',
192
+ },
193
+ {
194
+ displayName: 'Domain Users Only',
195
+ name: 'domainUsersOnly',
196
+ type: 'boolean',
197
+ default: false,
198
+ description: 'Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs. This restriction may be overridden by other sharing policies controlled outside of this shared drive.',
199
+ },
200
+ {
201
+ displayName: 'Drive Members Only',
202
+ name: 'driveMembersOnly',
203
+ type: 'boolean',
204
+ default: false,
205
+ description: 'Whether access to items inside this shared drive is restricted to its members',
206
+ },
207
+ ],
208
+ },
209
+ ],
210
+ },
211
+ ];
212
+ const displayOptions = {
213
+ show: {
214
+ resource: ['drive'],
215
+ operation: ['create'],
216
+ },
217
+ };
218
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
219
+ async function execute(i) {
220
+ const returnData = [];
221
+ const options = this.getNodeParameter('options', i);
222
+ const name = this.getNodeParameter('name', i);
223
+ const body = {
224
+ name,
225
+ };
226
+ Object.assign(body, options);
227
+ const response = await transport_1.googleApiRequest.call(this, 'POST', '/drive/v3/drives', body, {
228
+ requestId: (0, uuid_1.v4)(),
229
+ });
230
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
231
+ returnData.push(...executionData);
232
+ return returnData;
233
+ }
234
+ exports.execute = execute;
235
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/create.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AAEnD,+BAAkC;AAElC,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;QACpC,WAAW,EAAE,wCAAwC;KACrD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,EAAE;gBACX,OAAO,EAAE;oBACR;wBACC,WAAW,EAAE,kBAAkB;wBAC/B,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACV,2EAA2E;qBAC5E;oBACD;wBACC,WAAW,EAAE,wDAAwD;wBACrE,IAAI,EAAE,kDAAkD;wBACxD,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACV,uGAAuG;qBACxG;oBACD;wBACC,WAAW,EAAE,0CAA0C;wBACvD,IAAI,EAAE,qCAAqC;wBAC3C,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;wBACd,WAAW,EACV,0FAA0F;qBAC3F;oBACD;wBACC,WAAW,EAAE,6BAA6B;wBAC1C,IAAI,EAAE,0BAA0B;wBAChC,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,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AkB,EAAE,IAAI,EAAE;QACpF,SAAS,EAAE,IAAA,SAAI,GAAE;KACjB,CAAC,CAAC;IAEH,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAyB,CAAC,EACvD,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAxBD,0BAwBC"}
@@ -0,0 +1,23 @@
1
+ import type { IExecuteFunctions } from 'n8n-core';
2
+ import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
+ export declare const description: {
4
+ displayOptions: import("n8n-workflow").IDisplayOptions;
5
+ displayName: string;
6
+ name: string;
7
+ type: import("n8n-workflow").NodePropertyTypes;
8
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
+ default: import("n8n-workflow").NodeParameterValueType;
10
+ description?: string | undefined;
11
+ hint?: string | undefined;
12
+ options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
+ placeholder?: string | undefined;
14
+ isNodeSetting?: boolean | undefined;
15
+ noDataExpression?: boolean | undefined;
16
+ required?: boolean | undefined;
17
+ routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
+ credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
+ modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
+ requiresDataPath?: "single" | "multiple" | undefined;
22
+ }[];
23
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ const utilities_1 = require("../../../../../../utils/utilities");
5
+ const transport_1 = require("../../transport");
6
+ const common_descriptions_1 = require("../common.descriptions");
7
+ const properties = [
8
+ {
9
+ ...common_descriptions_1.sharedDriveRLC,
10
+ description: 'The shared drive to delete',
11
+ },
12
+ ];
13
+ const displayOptions = {
14
+ show: {
15
+ resource: ['drive'],
16
+ operation: ['deleteDrive'],
17
+ },
18
+ };
19
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
20
+ async function execute(i) {
21
+ const returnData = [];
22
+ const driveId = this.getNodeParameter('driveId', i, undefined, {
23
+ extractValue: true,
24
+ });
25
+ await transport_1.googleApiRequest.call(this, 'DELETE', `/drive/v3/drives/${driveId}`);
26
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ success: true }), { itemData: { item: i } });
27
+ returnData.push(...executionData);
28
+ return returnData;
29
+ }
30
+ exports.execute = execute;
31
+ //# sourceMappingURL=deleteDrive.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteDrive.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/deleteDrive.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAwD;AAExD,MAAM,UAAU,GAAsB;IACrC;QACC,GAAG,oCAAc;QACjB,WAAW,EAAE,4BAA4B;KACzC;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,SAAS,EAAE,CAAC,aAAa,CAAC;KAC1B;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,UAAU,GAAyB,EAAE,CAAC;IAE5C,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE;QAC9D,YAAY,EAAE,IAAI;KAClB,CAAW,CAAC;IAEb,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,OAAO,EAAE,CAAC,CAAC;IAE3E,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAC/C,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAjBD,0BAiBC"}
@@ -0,0 +1,23 @@
1
+ import type { IExecuteFunctions } from 'n8n-core';
2
+ import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
+ export declare const description: {
4
+ displayOptions: import("n8n-workflow").IDisplayOptions;
5
+ displayName: string;
6
+ name: string;
7
+ type: import("n8n-workflow").NodePropertyTypes;
8
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
+ default: import("n8n-workflow").NodeParameterValueType;
10
+ description?: string | undefined;
11
+ hint?: string | undefined;
12
+ options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
+ placeholder?: string | undefined;
14
+ isNodeSetting?: boolean | undefined;
15
+ noDataExpression?: boolean | undefined;
16
+ required?: boolean | undefined;
17
+ routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
+ credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
+ modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
+ requiresDataPath?: "single" | "multiple" | undefined;
22
+ }[];
23
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ const utilities_1 = require("../../../../../../utils/utilities");
5
+ const transport_1 = require("../../transport");
6
+ const common_descriptions_1 = require("../common.descriptions");
7
+ const properties = [
8
+ {
9
+ ...common_descriptions_1.sharedDriveRLC,
10
+ description: 'The shared drive to get',
11
+ },
12
+ {
13
+ displayName: 'Options',
14
+ name: 'options',
15
+ type: 'collection',
16
+ placeholder: 'Add Option',
17
+ default: {},
18
+ options: [
19
+ {
20
+ displayName: 'Use Domain Admin Access',
21
+ name: 'useDomainAdminAccess',
22
+ type: 'boolean',
23
+ default: false,
24
+ description: 'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs',
25
+ },
26
+ ],
27
+ },
28
+ ];
29
+ const displayOptions = {
30
+ show: {
31
+ resource: ['drive'],
32
+ operation: ['get'],
33
+ },
34
+ };
35
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
36
+ async function execute(i) {
37
+ const returnData = [];
38
+ const options = this.getNodeParameter('options', i);
39
+ const driveId = this.getNodeParameter('driveId', i, undefined, {
40
+ extractValue: true,
41
+ });
42
+ const qs = {};
43
+ Object.assign(qs, options);
44
+ const response = await transport_1.googleApiRequest.call(this, 'GET', `/drive/v3/drives/${driveId}`, {}, qs);
45
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
46
+ returnData.push(...executionData);
47
+ return returnData;
48
+ }
49
+ exports.execute = execute;
50
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/get.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AACzE,+CAAmD;AACnD,gEAAwD;AAExD,MAAM,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AQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAtBD,0BAsBC"}
@@ -0,0 +1,23 @@
1
+ import type { IExecuteFunctions } from 'n8n-core';
2
+ import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
+ export declare const description: {
4
+ displayOptions: import("n8n-workflow").IDisplayOptions;
5
+ displayName: string;
6
+ name: string;
7
+ type: import("n8n-workflow").NodePropertyTypes;
8
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
+ default: import("n8n-workflow").NodeParameterValueType;
10
+ description?: string | undefined;
11
+ hint?: string | undefined;
12
+ options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
+ placeholder?: string | undefined;
14
+ isNodeSetting?: boolean | undefined;
15
+ noDataExpression?: boolean | undefined;
16
+ required?: boolean | undefined;
17
+ routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
+ credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
+ modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
+ requiresDataPath?: "single" | "multiple" | undefined;
22
+ }[];
23
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.execute = exports.description = void 0;
4
+ const utilities_1 = require("../../../../../../utils/utilities");
5
+ const transport_1 = require("../../transport");
6
+ const properties = [
7
+ {
8
+ displayName: 'Return All',
9
+ name: 'returnAll',
10
+ type: 'boolean',
11
+ default: false,
12
+ description: 'Whether to return all results or only up to a given limit',
13
+ },
14
+ {
15
+ displayName: 'Limit',
16
+ name: 'limit',
17
+ type: 'number',
18
+ displayOptions: {
19
+ show: {
20
+ returnAll: [false],
21
+ },
22
+ },
23
+ typeOptions: {
24
+ minValue: 1,
25
+ maxValue: 200,
26
+ },
27
+ default: 100,
28
+ description: 'Max number of results to return',
29
+ },
30
+ {
31
+ displayName: 'Options',
32
+ name: 'options',
33
+ type: 'collection',
34
+ placeholder: 'Add Option',
35
+ default: {},
36
+ options: [
37
+ {
38
+ displayName: 'Query',
39
+ name: 'q',
40
+ type: 'string',
41
+ default: '',
42
+ description: 'Query string for searching shared drives. See the <a href="https://developers.google.com/drive/api/v3/search-shareddrives">"Search for shared drives"</a> guide for supported syntax.',
43
+ },
44
+ {
45
+ displayName: 'Use Domain Admin Access',
46
+ name: 'useDomainAdminAccess',
47
+ type: 'boolean',
48
+ default: false,
49
+ description: 'Whether to issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs',
50
+ },
51
+ ],
52
+ },
53
+ ];
54
+ const displayOptions = {
55
+ show: {
56
+ resource: ['drive'],
57
+ operation: ['list'],
58
+ },
59
+ };
60
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
61
+ async function execute(i) {
62
+ const returnData = [];
63
+ const options = this.getNodeParameter('options', i);
64
+ const returnAll = this.getNodeParameter('returnAll', i);
65
+ const qs = {};
66
+ let response = [];
67
+ Object.assign(qs, options);
68
+ if (returnAll) {
69
+ response = await transport_1.googleApiRequestAllItems.call(this, 'GET', 'drives', '/drive/v3/drives', {}, qs);
70
+ }
71
+ else {
72
+ qs.pageSize = this.getNodeParameter('limit', i);
73
+ const data = await transport_1.googleApiRequest.call(this, 'GET', '/drive/v3/drives', {}, qs);
74
+ response = data.drives;
75
+ }
76
+ const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), { itemData: { item: i } });
77
+ returnData.push(...executionData);
78
+ return returnData;
79
+ }
80
+ exports.execute = execute;
81
+ //# sourceMappingURL=list.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.operation.js","sourceRoot":"","sources":["../../../../../../../nodes/Google/Drive/v2/actions/drive/list.operation.ts"],"names":[],"mappings":";;;AAGA,iEAAyE;AAEzE,+CAA6E;AAE7E,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;KACxE;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,GAAG;QACZ,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,GAAG;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,uLAAuL;aACxL;YACD;gBACC,WAAW,EAAE,yBAAyB;gBACtC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,gMAAgM;aACjM;SACD;KACD;CACD,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,SAAS,EAAE,CAAC,MAAM,CAAC;KACnB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAA0B,CAAS;IAC/D,MAAM,UAAU,GAAyB,EAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IAEpD,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAExD,MAAM,EAAE,GAAgB,EAAE,CAAC;IAE3B,IAAI,QAAQ,GAAkB,EAAE,CAAC;IAEjC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAE3B,IAAI,SAAS,EAAE;QACd,QAAQ,GAAG,MAAM,oCAAwB,CAAC,IAAI,CAC7C,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,EAAE,EACF,EAAE,CACF,CAAC;KACF;SAAM;QACN,EAAE,CAAC,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAChD,MAAM,IAAI,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QAClF,QAAQ,GAAG,IAAI,CAAC,MAAuB,CAAC;KACxC;IAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EACtC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;IAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;IAElC,OAAO,UAAU,CAAC;AACnB,CAAC;AAnCD,0BAmCC"}
@@ -0,0 +1,23 @@
1
+ import type { IExecuteFunctions } from 'n8n-core';
2
+ import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
3
+ export declare const description: {
4
+ displayOptions: import("n8n-workflow").IDisplayOptions;
5
+ displayName: string;
6
+ name: string;
7
+ type: import("n8n-workflow").NodePropertyTypes;
8
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions | undefined;
9
+ default: import("n8n-workflow").NodeParameterValueType;
10
+ description?: string | undefined;
11
+ hint?: string | undefined;
12
+ options?: (INodeProperties | import("n8n-workflow").INodePropertyOptions | import("n8n-workflow").INodePropertyCollection)[] | undefined;
13
+ placeholder?: string | undefined;
14
+ isNodeSetting?: boolean | undefined;
15
+ noDataExpression?: boolean | undefined;
16
+ required?: boolean | undefined;
17
+ routing?: import("n8n-workflow").INodePropertyRouting | undefined;
18
+ credentialTypes?: ("extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth")[] | undefined;
19
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractorRegex | undefined;
20
+ modes?: import("n8n-workflow").INodePropertyMode[] | undefined;
21
+ requiresDataPath?: "single" | "multiple" | undefined;
22
+ }[];
23
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;