n8n-nodes-base 1.49.0 → 1.50.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 (256) hide show
  1. package/LICENSE_EE.md +27 -0
  2. package/dist/build.tsbuildinfo +1 -1
  3. package/dist/credentials/MySql.credentials.js +2 -115
  4. package/dist/credentials/MySql.credentials.js.map +1 -1
  5. package/dist/credentials/OrbitApi.credentials.js +6 -0
  6. package/dist/credentials/OrbitApi.credentials.js.map +1 -1
  7. package/dist/credentials/Postgres.credentials.js +2 -115
  8. package/dist/credentials/Postgres.credentials.js.map +1 -1
  9. package/dist/credentials/SplunkApi.credentials.d.ts +3 -1
  10. package/dist/credentials/SplunkApi.credentials.js +15 -0
  11. package/dist/credentials/SplunkApi.credentials.js.map +1 -1
  12. package/dist/known/credentials.json +2 -1
  13. package/dist/nodes/Copper/descriptions/CompanyDescription.js +2 -2
  14. package/dist/nodes/Copper/descriptions/CompanyDescription.js.map +1 -1
  15. package/dist/nodes/Google/Firebase/CloudFirestore/DocumentDescription.js +12 -0
  16. package/dist/nodes/Google/Firebase/CloudFirestore/DocumentDescription.js.map +1 -1
  17. package/dist/nodes/Google/Firebase/CloudFirestore/GenericFunctions.js +10 -1
  18. package/dist/nodes/Google/Firebase/CloudFirestore/GenericFunctions.js.map +1 -1
  19. package/dist/nodes/Google/Firebase/CloudFirestore/GoogleFirebaseCloudFirestore.node.js +32 -1
  20. package/dist/nodes/Google/Firebase/CloudFirestore/GoogleFirebaseCloudFirestore.node.js.map +1 -1
  21. package/dist/nodes/Google/GenericFunctions.d.ts +1 -0
  22. package/dist/nodes/Google/GenericFunctions.js +4 -0
  23. package/dist/nodes/Google/GenericFunctions.js.map +1 -1
  24. package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.d.ts +1 -1
  25. package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +30 -15
  26. package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
  27. package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js +53 -19
  28. package/dist/nodes/Google/Sheet/v2/actions/sheet/appendOrUpdate.operation.js.map +1 -1
  29. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js +11 -3
  30. package/dist/nodes/Google/Sheet/v2/actions/sheet/read.operation.js.map +1 -1
  31. package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js +34 -19
  32. package/dist/nodes/Google/Sheet/v2/actions/sheet/update.operation.js.map +1 -1
  33. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js +8 -0
  34. package/dist/nodes/Google/Sheet/v2/actions/versionDescription.js.map +1 -1
  35. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.d.ts +36 -4
  36. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +5 -5
  37. package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
  38. package/dist/nodes/Google/YouTube/YouTube.node.js +2 -2
  39. package/dist/nodes/Google/YouTube/YouTube.node.js.map +1 -1
  40. package/dist/nodes/HelpScout/HelpScout.node.js +2 -2
  41. package/dist/nodes/HelpScout/HelpScout.node.js.map +1 -1
  42. package/dist/nodes/Html/Html.node.js +1 -1
  43. package/dist/nodes/Html/Html.node.js.map +1 -1
  44. package/dist/nodes/InvoiceNinja/ClientDescription.js.map +1 -1
  45. package/dist/nodes/InvoiceNinja/InvoiceDescription.js +6 -0
  46. package/dist/nodes/InvoiceNinja/InvoiceDescription.js.map +1 -1
  47. package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js +53 -25
  48. package/dist/nodes/InvoiceNinja/InvoiceNinja.node.js.map +1 -1
  49. package/dist/nodes/InvoiceNinja/PaymentInterface.d.ts +6 -0
  50. package/dist/nodes/InvoiceNinja/QuoteDescription.js +1 -1
  51. package/dist/nodes/InvoiceNinja/QuoteDescription.js.map +1 -1
  52. package/dist/nodes/InvoiceNinja/invoiceInterface.d.ts +2 -2
  53. package/dist/nodes/MySql/v2/actions/router.js +2 -13
  54. package/dist/nodes/MySql/v2/actions/router.js.map +1 -1
  55. package/dist/nodes/MySql/v2/helpers/interfaces.d.ts +22 -1
  56. package/dist/nodes/MySql/v2/methods/credentialTest.js +1 -9
  57. package/dist/nodes/MySql/v2/methods/credentialTest.js.map +1 -1
  58. package/dist/nodes/MySql/v2/methods/listSearch.js +2 -13
  59. package/dist/nodes/MySql/v2/methods/listSearch.js.map +1 -1
  60. package/dist/nodes/MySql/v2/methods/loadOptions.js +2 -13
  61. package/dist/nodes/MySql/v2/methods/loadOptions.js.map +1 -1
  62. package/dist/nodes/MySql/v2/transport/index.d.ts +3 -4
  63. package/dist/nodes/MySql/v2/transport/index.js +39 -69
  64. package/dist/nodes/MySql/v2/transport/index.js.map +1 -1
  65. package/dist/nodes/Orbit/ActivityDescription.js +3 -3
  66. package/dist/nodes/Orbit/ActivityDescription.js.map +1 -1
  67. package/dist/nodes/Orbit/MemberDescription.js +6 -6
  68. package/dist/nodes/Orbit/MemberDescription.js.map +1 -1
  69. package/dist/nodes/Orbit/NoteDescription.js +3 -3
  70. package/dist/nodes/Orbit/NoteDescription.js.map +1 -1
  71. package/dist/nodes/Orbit/Orbit.node.js +14 -346
  72. package/dist/nodes/Orbit/Orbit.node.js.map +1 -1
  73. package/dist/nodes/Orbit/PostDescription.js +3 -3
  74. package/dist/nodes/Orbit/PostDescription.js.map +1 -1
  75. package/dist/nodes/Postgres/PostgresTrigger.functions.d.ts +3 -7
  76. package/dist/nodes/Postgres/PostgresTrigger.functions.js +3 -33
  77. package/dist/nodes/Postgres/PostgresTrigger.functions.js.map +1 -1
  78. package/dist/nodes/Postgres/v2/actions/router.js +1 -7
  79. package/dist/nodes/Postgres/v2/actions/router.js.map +1 -1
  80. package/dist/nodes/Postgres/v2/helpers/interfaces.d.ts +6 -13
  81. package/dist/nodes/Postgres/v2/methods/credentialTest.js +1 -7
  82. package/dist/nodes/Postgres/v2/methods/credentialTest.js.map +1 -1
  83. package/dist/nodes/Postgres/v2/methods/listSearch.js +2 -14
  84. package/dist/nodes/Postgres/v2/methods/listSearch.js.map +1 -1
  85. package/dist/nodes/Postgres/v2/methods/loadOptions.js +1 -7
  86. package/dist/nodes/Postgres/v2/methods/loadOptions.js.map +1 -1
  87. package/dist/nodes/Postgres/v2/methods/resourceMapping.js +1 -7
  88. package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
  89. package/dist/nodes/Postgres/v2/transport/index.d.ts +3 -12
  90. package/dist/nodes/Postgres/v2/transport/index.js +62 -84
  91. package/dist/nodes/Postgres/v2/transport/index.js.map +1 -1
  92. package/dist/nodes/Splunk/Splunk.node.d.ts +3 -15
  93. package/dist/nodes/Splunk/Splunk.node.js +9 -276
  94. package/dist/nodes/Splunk/Splunk.node.js.map +1 -1
  95. package/dist/nodes/Splunk/splunk.svg +381 -134
  96. package/dist/nodes/Splunk/{GenericFunctions.d.ts → v1/GenericFunctions.d.ts} +2 -2
  97. package/dist/nodes/Splunk/{GenericFunctions.js → v1/GenericFunctions.js} +8 -8
  98. package/dist/nodes/Splunk/v1/GenericFunctions.js.map +1 -0
  99. package/dist/nodes/Splunk/v1/SplunkV1.node.d.ts +14 -0
  100. package/dist/nodes/Splunk/v1/SplunkV1.node.js +266 -0
  101. package/dist/nodes/Splunk/v1/SplunkV1.node.js.map +1 -0
  102. package/dist/nodes/Splunk/v1/descriptions/FiredAlertDescription.js.map +1 -0
  103. package/dist/nodes/Splunk/v1/descriptions/SearchConfigurationDescription.js.map +1 -0
  104. package/dist/nodes/Splunk/v1/descriptions/SearchJobDescription.js.map +1 -0
  105. package/dist/nodes/Splunk/v1/descriptions/SearchResultDescription.js.map +1 -0
  106. package/dist/nodes/Splunk/v1/descriptions/UserDescription.js.map +1 -0
  107. package/dist/nodes/Splunk/v1/descriptions/index.js.map +1 -0
  108. package/dist/nodes/Splunk/{types.d.ts → v1/types.d.ts} +6 -0
  109. package/dist/nodes/Splunk/v1/types.js +10 -0
  110. package/dist/nodes/Splunk/v1/types.js.map +1 -0
  111. package/dist/nodes/Splunk/v2/SplunkV2.node.d.ts +11 -0
  112. package/dist/nodes/Splunk/v2/SplunkV2.node.js +20 -0
  113. package/dist/nodes/Splunk/v2/SplunkV2.node.js.map +1 -0
  114. package/dist/nodes/Splunk/v2/actions/alert/getMetrics.operation.d.ts +25 -0
  115. package/dist/nodes/Splunk/v2/actions/alert/getMetrics.operation.js +20 -0
  116. package/dist/nodes/Splunk/v2/actions/alert/getMetrics.operation.js.map +1 -0
  117. package/dist/nodes/Splunk/v2/actions/alert/getReport.operation.d.ts +25 -0
  118. package/dist/nodes/Splunk/v2/actions/alert/getReport.operation.js +20 -0
  119. package/dist/nodes/Splunk/v2/actions/alert/getReport.operation.js.map +1 -0
  120. package/dist/nodes/Splunk/v2/actions/alert/index.d.ts +5 -0
  121. package/dist/nodes/Splunk/v2/actions/alert/index.js +61 -0
  122. package/dist/nodes/Splunk/v2/actions/alert/index.js.map +1 -0
  123. package/dist/nodes/Splunk/v2/actions/node.type.d.ts +9 -0
  124. package/dist/nodes/Splunk/{types.js → v2/actions/node.type.js} +1 -1
  125. package/dist/nodes/Splunk/v2/actions/node.type.js.map +1 -0
  126. package/dist/nodes/Splunk/v2/actions/report/create.operation.d.ts +25 -0
  127. package/dist/nodes/Splunk/v2/actions/report/create.operation.js +46 -0
  128. package/dist/nodes/Splunk/v2/actions/report/create.operation.js.map +1 -0
  129. package/dist/nodes/Splunk/v2/actions/report/deleteReport.operation.d.ts +25 -0
  130. package/dist/nodes/Splunk/v2/actions/report/deleteReport.operation.js +22 -0
  131. package/dist/nodes/Splunk/v2/actions/report/deleteReport.operation.js.map +1 -0
  132. package/dist/nodes/Splunk/v2/actions/report/get.operation.d.ts +25 -0
  133. package/dist/nodes/Splunk/v2/actions/report/get.operation.js +22 -0
  134. package/dist/nodes/Splunk/v2/actions/report/get.operation.js.map +1 -0
  135. package/dist/nodes/Splunk/v2/actions/report/getAll.operation.d.ts +25 -0
  136. package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js +70 -0
  137. package/dist/nodes/Splunk/v2/actions/report/getAll.operation.js.map +1 -0
  138. package/dist/nodes/Splunk/v2/actions/report/index.d.ts +7 -0
  139. package/dist/nodes/Splunk/v2/actions/report/index.js +79 -0
  140. package/dist/nodes/Splunk/v2/actions/report/index.js.map +1 -0
  141. package/dist/nodes/Splunk/v2/actions/router.d.ts +2 -0
  142. package/dist/nodes/Splunk/v2/actions/router.js +88 -0
  143. package/dist/nodes/Splunk/v2/actions/router.js.map +1 -0
  144. package/dist/nodes/Splunk/v2/actions/search/create.operation.d.ts +25 -0
  145. package/dist/nodes/Splunk/v2/actions/search/create.operation.js +231 -0
  146. package/dist/nodes/Splunk/v2/actions/search/create.operation.js.map +1 -0
  147. package/dist/nodes/Splunk/v2/actions/search/deleteJob.operation.d.ts +25 -0
  148. package/dist/nodes/Splunk/v2/actions/search/deleteJob.operation.js +22 -0
  149. package/dist/nodes/Splunk/v2/actions/search/deleteJob.operation.js.map +1 -0
  150. package/dist/nodes/Splunk/v2/actions/search/get.operation.d.ts +25 -0
  151. package/dist/nodes/Splunk/v2/actions/search/get.operation.js +22 -0
  152. package/dist/nodes/Splunk/v2/actions/search/get.operation.js.map +1 -0
  153. package/dist/nodes/Splunk/v2/actions/search/getAll.operation.d.ts +25 -0
  154. package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js +114 -0
  155. package/dist/nodes/Splunk/v2/actions/search/getAll.operation.js.map +1 -0
  156. package/dist/nodes/Splunk/v2/actions/search/getResult.operation.d.ts +25 -0
  157. package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js +112 -0
  158. package/dist/nodes/Splunk/v2/actions/search/getResult.operation.js.map +1 -0
  159. package/dist/nodes/Splunk/v2/actions/search/index.d.ts +8 -0
  160. package/dist/nodes/Splunk/v2/actions/search/index.js +88 -0
  161. package/dist/nodes/Splunk/v2/actions/search/index.js.map +1 -0
  162. package/dist/nodes/Splunk/v2/actions/user/create.operation.d.ts +25 -0
  163. package/dist/nodes/Splunk/v2/actions/user/create.operation.js +81 -0
  164. package/dist/nodes/Splunk/v2/actions/user/create.operation.js.map +1 -0
  165. package/dist/nodes/Splunk/v2/actions/user/deleteUser.operation.d.ts +25 -0
  166. package/dist/nodes/Splunk/v2/actions/user/deleteUser.operation.js +22 -0
  167. package/dist/nodes/Splunk/v2/actions/user/deleteUser.operation.js.map +1 -0
  168. package/dist/nodes/Splunk/v2/actions/user/get.operation.d.ts +25 -0
  169. package/dist/nodes/Splunk/v2/actions/user/get.operation.js +22 -0
  170. package/dist/nodes/Splunk/v2/actions/user/get.operation.js.map +1 -0
  171. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.d.ts +25 -0
  172. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js +46 -0
  173. package/dist/nodes/Splunk/v2/actions/user/getAll.operation.js.map +1 -0
  174. package/dist/nodes/Splunk/v2/actions/user/index.d.ts +8 -0
  175. package/dist/nodes/Splunk/v2/actions/user/index.js +88 -0
  176. package/dist/nodes/Splunk/v2/actions/user/index.js.map +1 -0
  177. package/dist/nodes/Splunk/v2/actions/user/update.operation.d.ts +25 -0
  178. package/dist/nodes/Splunk/v2/actions/user/update.operation.js +71 -0
  179. package/dist/nodes/Splunk/v2/actions/user/update.operation.js.map +1 -0
  180. package/dist/nodes/Splunk/v2/actions/versionDescription.d.ts +2 -0
  181. package/dist/nodes/Splunk/v2/actions/versionDescription.js +82 -0
  182. package/dist/nodes/Splunk/v2/actions/versionDescription.js.map +1 -0
  183. package/dist/nodes/Splunk/v2/helpers/descriptions/index.d.ts +1 -0
  184. package/dist/nodes/Splunk/v2/helpers/descriptions/index.js +18 -0
  185. package/dist/nodes/Splunk/v2/helpers/descriptions/index.js.map +1 -0
  186. package/dist/nodes/Splunk/v2/helpers/descriptions/rlc.description.d.ts +4 -0
  187. package/dist/nodes/Splunk/v2/helpers/descriptions/rlc.description.js +79 -0
  188. package/dist/nodes/Splunk/v2/helpers/descriptions/rlc.description.js.map +1 -0
  189. package/dist/nodes/Splunk/v2/helpers/interfaces.d.ts +23 -0
  190. package/dist/nodes/Splunk/v2/helpers/interfaces.js +3 -0
  191. package/dist/nodes/Splunk/v2/helpers/interfaces.js.map +1 -0
  192. package/dist/nodes/Splunk/v2/helpers/utils.d.ts +10 -0
  193. package/dist/nodes/Splunk/v2/helpers/utils.js +91 -0
  194. package/dist/nodes/Splunk/v2/helpers/utils.js.map +1 -0
  195. package/dist/nodes/Splunk/v2/methods/index.d.ts +2 -0
  196. package/dist/nodes/Splunk/v2/methods/index.js +29 -0
  197. package/dist/nodes/Splunk/v2/methods/index.js.map +1 -0
  198. package/dist/nodes/Splunk/v2/methods/listSearch.d.ts +4 -0
  199. package/dist/nodes/Splunk/v2/methods/listSearch.js +58 -0
  200. package/dist/nodes/Splunk/v2/methods/listSearch.js.map +1 -0
  201. package/dist/nodes/Splunk/v2/methods/loadOptions.d.ts +2 -0
  202. package/dist/nodes/Splunk/v2/methods/loadOptions.js +13 -0
  203. package/dist/nodes/Splunk/v2/methods/loadOptions.js.map +1 -0
  204. package/dist/nodes/Splunk/v2/transport/index.d.ts +3 -0
  205. package/dist/nodes/Splunk/v2/transport/index.js +116 -0
  206. package/dist/nodes/Splunk/v2/transport/index.js.map +1 -0
  207. package/dist/nodes/Spotify/Spotify.node.js +3 -3
  208. package/dist/nodes/Spotify/Spotify.node.js.map +1 -1
  209. package/dist/nodes/Telegram/Telegram.node.js +40 -0
  210. package/dist/nodes/Telegram/Telegram.node.js.map +1 -1
  211. package/dist/types/credentials.json +4 -4
  212. package/dist/types/nodes.json +11 -10
  213. package/dist/utils/ISOCountryCodes.d.ts +9 -0
  214. package/dist/{nodes/InvoiceNinja → utils}/ISOCountryCodes.js +2 -2
  215. package/dist/utils/ISOCountryCodes.js.map +1 -0
  216. package/dist/utils/constants.d.ts +2 -0
  217. package/dist/utils/constants.js +6 -0
  218. package/dist/utils/constants.js.map +1 -0
  219. package/dist/utils/sshTunnel.properties.d.ts +2 -0
  220. package/dist/utils/sshTunnel.properties.js +110 -0
  221. package/dist/utils/sshTunnel.properties.js.map +1 -0
  222. package/package.json +18 -20
  223. package/dist/nodes/Copper/utils/isoCountryCodes.d.ts +0 -4
  224. package/dist/nodes/Copper/utils/isoCountryCodes.js +0 -1002
  225. package/dist/nodes/Copper/utils/isoCountryCodes.js.map +0 -1
  226. package/dist/nodes/Google/YouTube/CountryCodes.d.ts +0 -29
  227. package/dist/nodes/Google/YouTube/CountryCodes.js +0 -1583
  228. package/dist/nodes/Google/YouTube/CountryCodes.js.map +0 -1
  229. package/dist/nodes/HelpScout/CountriesCodes.d.ts +0 -29
  230. package/dist/nodes/HelpScout/CountriesCodes.js +0 -1583
  231. package/dist/nodes/HelpScout/CountriesCodes.js.map +0 -1
  232. package/dist/nodes/InvoiceNinja/ISOCountryCodes.d.ts +0 -2
  233. package/dist/nodes/InvoiceNinja/ISOCountryCodes.js.map +0 -1
  234. package/dist/nodes/Splunk/GenericFunctions.js.map +0 -1
  235. package/dist/nodes/Splunk/descriptions/FiredAlertDescription.js.map +0 -1
  236. package/dist/nodes/Splunk/descriptions/SearchConfigurationDescription.js.map +0 -1
  237. package/dist/nodes/Splunk/descriptions/SearchJobDescription.js.map +0 -1
  238. package/dist/nodes/Splunk/descriptions/SearchResultDescription.js.map +0 -1
  239. package/dist/nodes/Splunk/descriptions/UserDescription.js.map +0 -1
  240. package/dist/nodes/Splunk/descriptions/index.js.map +0 -1
  241. package/dist/nodes/Splunk/types.js.map +0 -1
  242. package/dist/nodes/Spotify/IsoCountryCodes.d.ts +0 -4
  243. package/dist/nodes/Spotify/IsoCountryCodes.js +0 -1002
  244. package/dist/nodes/Spotify/IsoCountryCodes.js.map +0 -1
  245. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/FiredAlertDescription.d.ts +0 -0
  246. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/FiredAlertDescription.js +0 -0
  247. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchConfigurationDescription.d.ts +0 -0
  248. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchConfigurationDescription.js +0 -0
  249. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchJobDescription.d.ts +0 -0
  250. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchJobDescription.js +0 -0
  251. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchResultDescription.d.ts +0 -0
  252. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/SearchResultDescription.js +0 -0
  253. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/UserDescription.d.ts +0 -0
  254. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/UserDescription.js +0 -0
  255. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/index.d.ts +0 -0
  256. /package/dist/nodes/Splunk/{descriptions → v1/descriptions}/index.js +0 -0
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const utils_1 = require("../../helpers/utils");
7
+ const transport_1 = require("../../transport");
8
+ const properties = [
9
+ {
10
+ displayName: 'Query',
11
+ name: 'search',
12
+ description: 'Search language string to execute, in Splunk\'s <a href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/WhatsInThisManual">Search Processing Language</a>',
13
+ placeholder: 'e.g. search index=_internal | stats count by source',
14
+ type: 'string',
15
+ required: true,
16
+ default: '',
17
+ typeOptions: {
18
+ rows: 2,
19
+ },
20
+ },
21
+ {
22
+ displayName: 'Additional Fields',
23
+ name: 'additionalFields',
24
+ type: 'collection',
25
+ placeholder: 'Add Field',
26
+ default: {},
27
+ options: [
28
+ {
29
+ displayName: 'Ad Hoc Search Level',
30
+ name: 'adhoc_search_level',
31
+ type: 'options',
32
+ default: 'verbose',
33
+ options: [
34
+ {
35
+ name: 'Fast',
36
+ value: 'fast',
37
+ },
38
+ {
39
+ name: 'Smart',
40
+ value: 'smart',
41
+ },
42
+ {
43
+ name: 'Verbose',
44
+ value: 'verbose',
45
+ },
46
+ ],
47
+ },
48
+ {
49
+ displayName: 'Auto-Cancel After (Seconds)',
50
+ name: 'auto_cancel',
51
+ type: 'number',
52
+ default: 0,
53
+ description: 'Seconds after which the search job automatically cancels',
54
+ },
55
+ {
56
+ displayName: 'Auto-Finalize After (Num Events)',
57
+ name: 'auto_finalize_ec',
58
+ type: 'number',
59
+ default: 0,
60
+ description: 'Auto-finalize the search after at least this many events are processed',
61
+ },
62
+ {
63
+ displayName: 'Auto Pause After (Seconds)',
64
+ name: 'auto_pause',
65
+ type: 'number',
66
+ default: 0,
67
+ description: 'Seconds of inactivity after which the search job automatically pauses',
68
+ },
69
+ {
70
+ displayName: 'Earliest Index',
71
+ name: 'index_earliest',
72
+ type: 'dateTime',
73
+ default: '',
74
+ description: 'The earliest index time for the search (inclusive)',
75
+ },
76
+ {
77
+ displayName: 'Earliest Time',
78
+ name: 'earliest_time',
79
+ type: 'dateTime',
80
+ default: '',
81
+ description: 'The earliest cut-off for the search (inclusive)',
82
+ },
83
+ {
84
+ displayName: 'Exec Mode',
85
+ name: 'exec_mode',
86
+ type: 'options',
87
+ default: 'blocking',
88
+ options: [
89
+ {
90
+ name: 'Blocking',
91
+ value: 'blocking',
92
+ },
93
+ {
94
+ name: 'Normal',
95
+ value: 'normal',
96
+ },
97
+ {
98
+ name: 'One Shot',
99
+ value: 'oneshot',
100
+ },
101
+ ],
102
+ },
103
+ {
104
+ displayName: 'Indexed Real Time Offset',
105
+ name: 'indexedRealtimeOffset',
106
+ type: 'number',
107
+ default: 0,
108
+ description: 'Seconds of disk sync delay for indexed real-time search',
109
+ },
110
+ {
111
+ displayName: 'Latest Index',
112
+ name: 'index_latest',
113
+ type: 'dateTime',
114
+ default: '',
115
+ description: 'The latest index time for the search (inclusive)',
116
+ },
117
+ {
118
+ displayName: 'Latest Time',
119
+ name: 'latest_time',
120
+ type: 'dateTime',
121
+ default: '',
122
+ description: 'The latest cut-off for the search (inclusive)',
123
+ },
124
+ {
125
+ displayName: 'Max Time',
126
+ name: 'max_time',
127
+ type: 'number',
128
+ default: 0,
129
+ description: 'Number of seconds to run this search before finalizing. Enter <code>0</code> to never finalize.',
130
+ },
131
+ {
132
+ displayName: 'Namespace',
133
+ name: 'namespace',
134
+ type: 'string',
135
+ default: '',
136
+ description: 'Application namespace in which to restrict searches',
137
+ },
138
+ {
139
+ displayName: 'Reduce Frequency',
140
+ name: 'reduce_freq',
141
+ type: 'number',
142
+ default: 0,
143
+ description: 'How frequently to run the MapReduce reduce phase on accumulated map values',
144
+ },
145
+ {
146
+ displayName: 'Remote Server List',
147
+ name: 'remote_server_list',
148
+ type: 'string',
149
+ default: '',
150
+ description: 'Comma-separated list of (possibly wildcarded) servers from which raw events should be pulled. This same server list is to be used in subsearches.',
151
+ },
152
+ {
153
+ displayName: 'Reuse Limit (Seconds)',
154
+ name: 'reuse_max_seconds_ago',
155
+ type: 'number',
156
+ default: 0,
157
+ description: 'Number of seconds ago to check when an identical search is started and return the job’s search ID instead of starting a new job',
158
+ },
159
+ {
160
+ displayName: 'Required Field',
161
+ name: 'rf',
162
+ type: 'string',
163
+ default: '',
164
+ description: 'Name of a required field to add to the search. Even if not referenced or used directly by the search, a required field is still included in events and summary endpoints.',
165
+ },
166
+ {
167
+ displayName: 'Search Mode',
168
+ name: 'search_mode',
169
+ type: 'options',
170
+ default: 'normal',
171
+ options: [
172
+ {
173
+ name: 'Normal',
174
+ value: 'normal',
175
+ },
176
+ {
177
+ name: 'Real Time',
178
+ value: 'realtime',
179
+ },
180
+ ],
181
+ },
182
+ {
183
+ displayName: 'Status Buckets',
184
+ name: 'status_buckets',
185
+ type: 'number',
186
+ default: 0,
187
+ description: 'The most status buckets to generate. Set <code>0</code> generate no timeline information.',
188
+ },
189
+ {
190
+ displayName: 'Timeout',
191
+ name: 'timeout',
192
+ type: 'number',
193
+ default: 86400,
194
+ description: 'Number of seconds to keep this search after processing has stopped',
195
+ },
196
+ {
197
+ displayName: 'Workload Pool',
198
+ name: 'workload_pool',
199
+ type: 'string',
200
+ default: '',
201
+ description: 'New workload pool where the existing running search should be placed',
202
+ },
203
+ ],
204
+ },
205
+ ];
206
+ const displayOptions = {
207
+ show: {
208
+ resource: ['search'],
209
+ operation: ['create'],
210
+ },
211
+ };
212
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
213
+ async function execute(i) {
214
+ const body = {
215
+ search: this.getNodeParameter('search', i),
216
+ };
217
+ const { earliest_time, latest_time, index_earliest, index_latest, ...rest } = this.getNodeParameter('additionalFields', i);
218
+ (0, utils_1.populate)({
219
+ ...(earliest_time && { earliest_time: (0, utils_1.toUnixEpoch)(earliest_time) }),
220
+ ...(latest_time && { latest_time: (0, utils_1.toUnixEpoch)(latest_time) }),
221
+ ...(index_earliest && { index_earliest: (0, utils_1.toUnixEpoch)(index_earliest) }),
222
+ ...(index_latest && { index_latest: (0, utils_1.toUnixEpoch)(index_latest) }),
223
+ ...rest,
224
+ }, body);
225
+ const endpoint = '/services/search/jobs';
226
+ const responseData = await transport_1.splunkApiRequest.call(this, 'POST', endpoint, body);
227
+ const getEndpoint = `/services/search/jobs/${responseData.response.sid}`;
228
+ const returnData = await transport_1.splunkApiJsonRequest.call(this, 'GET', getEndpoint);
229
+ return returnData;
230
+ }
231
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Splunk/v2/actions/search/create.operation.ts"],"names":[],"mappings":";;;AA2NA,0BAmCC;AA7PD,8DAAsE;AACtE,+CAA4D;AAC5D,+CAAyE;AAEzE,MAAM,UAAU,GAAsB;IACrC;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,QAAQ;QACd,WAAW,EACV,gLAAgL;QACjL,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,QAAQ;QACd,Q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
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const transport_1 = require("../../transport");
7
+ const descriptions_1 = require("../../helpers/descriptions");
8
+ const properties = [descriptions_1.searchJobRLC];
9
+ const displayOptions = {
10
+ show: {
11
+ resource: ['search'],
12
+ operation: ['deleteJob'],
13
+ },
14
+ };
15
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
16
+ async function execute(i) {
17
+ const searchJobId = this.getNodeParameter('searchJobId', i, '', { extractValue: true });
18
+ const endpoint = `/services/search/jobs/${searchJobId}`;
19
+ await transport_1.splunkApiRequest.call(this, 'DELETE', endpoint);
20
+ return { success: true };
21
+ }
22
+ //# sourceMappingURL=deleteJob.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteJob.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Splunk/v2/actions/search/deleteJob.operation.ts"],"names":[],"mappings":";;;AAgBA,0BAYC;AA3BD,8DAAsE;AACtE,+CAAmD;AACnD,6DAA0D;AAE1D,MAAM,UAAU,GAAsB,CAAC,2BAAY,CAAC,CAAC;AAErD,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,SAAS,EAAE,CAAC,WAAW,CAAC;KACxB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAE5B,CAAS;IAIT,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAW,CAAC;IAClG,MAAM,QAAQ,GAAG,yBAAyB,WAAW,EAAE,CAAC;IAExD,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEtD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const transport_1 = require("../../transport");
7
+ const descriptions_1 = require("../../helpers/descriptions");
8
+ const properties = [descriptions_1.searchJobRLC];
9
+ const displayOptions = {
10
+ show: {
11
+ resource: ['search'],
12
+ operation: ['get'],
13
+ },
14
+ };
15
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
16
+ async function execute(i) {
17
+ const searchJobId = this.getNodeParameter('searchJobId', i, '', { extractValue: true });
18
+ const endpoint = `/services/search/jobs/${searchJobId}`;
19
+ const returnData = await transport_1.splunkApiJsonRequest.call(this, 'GET', endpoint);
20
+ return returnData;
21
+ }
22
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Splunk/v2/actions/search/get.operation.ts"],"names":[],"mappings":";;;AAgBA,0BAYC;AA3BD,8DAAsE;AACtE,+CAAuD;AACvD,6DAA0D;AAE1D,MAAM,UAAU,GAAsB,CAAC,2BAAY,CAAC,CAAC;AAErD,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,SAAS,EAAE,CAAC,KAAK,CAAC;KAClB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,gCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAE5B,CAAS;IAIT,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAW,CAAC;IAClG,MAAM,QAAQ,GAAG,yBAAyB,WAAW,EAAE,CAAC;IAExD,MAAM,UAAU,GAAG,MAAM,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAE1E,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const utils_1 = require("../../helpers/utils");
7
+ const transport_1 = require("../../transport");
8
+ const properties = [
9
+ {
10
+ displayName: 'Return All',
11
+ name: 'returnAll',
12
+ type: 'boolean',
13
+ default: false,
14
+ description: 'Whether to return all results or only up to a given limit',
15
+ },
16
+ {
17
+ displayName: 'Limit',
18
+ name: 'limit',
19
+ type: 'number',
20
+ default: 50,
21
+ description: 'Max number of results to return',
22
+ typeOptions: {
23
+ minValue: 1,
24
+ },
25
+ displayOptions: {
26
+ show: {
27
+ returnAll: [false],
28
+ },
29
+ },
30
+ },
31
+ {
32
+ displayName: 'Sort',
33
+ name: 'sort',
34
+ type: 'fixedCollection',
35
+ default: {},
36
+ options: [
37
+ {
38
+ displayName: 'Values',
39
+ name: 'values',
40
+ values: [
41
+ {
42
+ displayName: 'Sort Direction',
43
+ name: 'sort_dir',
44
+ type: 'options',
45
+ options: [
46
+ {
47
+ name: 'Ascending',
48
+ value: 'asc',
49
+ },
50
+ {
51
+ name: 'Descending',
52
+ value: 'desc',
53
+ },
54
+ ],
55
+ default: 'asc',
56
+ },
57
+ {
58
+ displayName: 'Sort Key',
59
+ name: 'sort_key',
60
+ description: 'Key name to use for sorting',
61
+ type: 'string',
62
+ placeholder: 'e.g. diskUsage',
63
+ default: '',
64
+ },
65
+ {
66
+ displayName: 'Sort Mode',
67
+ name: 'sort_mode',
68
+ type: 'options',
69
+ options: [
70
+ {
71
+ name: 'Automatic',
72
+ value: 'auto',
73
+ description: 'If all field values are numeric, collate numerically. Otherwise, collate alphabetically.',
74
+ },
75
+ {
76
+ name: 'Alphabetic',
77
+ value: 'alpha',
78
+ description: 'Collate alphabetically, case-insensitive',
79
+ },
80
+ {
81
+ name: 'Alphabetic and Case-Sensitive',
82
+ value: 'alpha_case',
83
+ description: 'Collate alphabetically, case-sensitive',
84
+ },
85
+ {
86
+ name: 'Numeric',
87
+ value: 'num',
88
+ description: 'Collate numerically',
89
+ },
90
+ ],
91
+ default: 'auto',
92
+ },
93
+ ],
94
+ },
95
+ ],
96
+ },
97
+ ];
98
+ const displayOptions = {
99
+ show: {
100
+ resource: ['search'],
101
+ operation: ['getAll'],
102
+ },
103
+ };
104
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
105
+ async function execute(i) {
106
+ const qs = {};
107
+ const sort = this.getNodeParameter('sort.values', i, {});
108
+ (0, utils_1.populate)(sort, qs);
109
+ utils_1.setReturnAllOrLimit.call(this, qs);
110
+ const endpoint = '/services/search/jobs';
111
+ const returnData = await transport_1.splunkApiJsonRequest.call(this, 'GET', endpoint, {}, qs);
112
+ return returnData;
113
+ }
114
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Splunk/v2/actions/search/getAll.operation.ts"],"names":[],"mappings":";;;AA0GA,0BAgBC;AAzHD,8DAAsE;AACtE,+CAAoE;AACpE,+CAAuD;AAEvD,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,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE;QACX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AE,UAAU,CAAC,CAAC;AAErE,KAAK,UAAU,OAAO,CAE5B,CAAS;IAIT,MAAM,EAAE,GAAG,EAAiB,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAExE,IAAA,gBAAQ,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACnB,2BAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,uBAAuB,CAAC;IACzC,MAAM,UAAU,GAAG,MAAM,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAElF,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { INodeProperties, IExecuteFunctions, IDataObject } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
12
+ placeholder?: string;
13
+ isNodeSetting?: boolean;
14
+ noDataExpression?: boolean;
15
+ required?: boolean;
16
+ routing?: import("n8n-workflow").INodePropertyRouting;
17
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
18
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
19
+ modes?: import("n8n-workflow").INodePropertyMode[];
20
+ requiresDataPath?: "single" | "multiple";
21
+ doNotInherit?: boolean;
22
+ validateType?: import("n8n-workflow").FieldType;
23
+ ignoreValidationDuringExecution?: boolean;
24
+ }[];
25
+ export declare function execute(this: IExecuteFunctions, i: number): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ exports.execute = execute;
5
+ const utilities_1 = require("../../../../../utils/utilities");
6
+ const transport_1 = require("../../transport");
7
+ const utils_1 = require("../../helpers/utils");
8
+ const descriptions_1 = require("../../helpers/descriptions");
9
+ const properties = [
10
+ descriptions_1.searchJobRLC,
11
+ {
12
+ displayName: 'Return All',
13
+ name: 'returnAll',
14
+ type: 'boolean',
15
+ default: false,
16
+ description: 'Whether to return all results or only up to a given limit',
17
+ },
18
+ {
19
+ displayName: 'Limit',
20
+ name: 'limit',
21
+ type: 'number',
22
+ default: 50,
23
+ description: 'Max number of results to return',
24
+ typeOptions: {
25
+ minValue: 1,
26
+ },
27
+ displayOptions: {
28
+ show: {
29
+ returnAll: [false],
30
+ },
31
+ },
32
+ },
33
+ {
34
+ displayName: 'Filters',
35
+ name: 'filters',
36
+ type: 'collection',
37
+ placeholder: 'Add Filter',
38
+ default: {},
39
+ options: [
40
+ {
41
+ displayName: 'Key-Value Match',
42
+ name: 'keyValueMatch',
43
+ description: 'Key-value pair to match against. Example: if "Key" is set to <code>user</code> and "Field" is set to <code>john</code>, only the results where <code>user</code> is <code>john</code> will be returned.',
44
+ type: 'fixedCollection',
45
+ default: {},
46
+ placeholder: 'Add Key-Value Pair',
47
+ options: [
48
+ {
49
+ displayName: 'Key-Value Pair',
50
+ name: 'keyValuePair',
51
+ values: [
52
+ {
53
+ displayName: 'Key',
54
+ name: 'key',
55
+ description: 'Key to match against',
56
+ type: 'string',
57
+ default: '',
58
+ },
59
+ {
60
+ displayName: 'Value',
61
+ name: 'value',
62
+ description: 'Value to match against',
63
+ type: 'string',
64
+ default: '',
65
+ },
66
+ ],
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ },
72
+ {
73
+ displayName: 'Options',
74
+ name: 'options',
75
+ type: 'collection',
76
+ placeholder: 'Add Option',
77
+ default: {},
78
+ options: [
79
+ {
80
+ displayName: 'Add Summary to Metadata',
81
+ name: 'add_summary_to_metadata',
82
+ description: 'Whether to include field summary statistics in the response',
83
+ type: 'boolean',
84
+ default: false,
85
+ },
86
+ ],
87
+ },
88
+ ];
89
+ const displayOptions = {
90
+ show: {
91
+ resource: ['search'],
92
+ operation: ['getResult'],
93
+ },
94
+ };
95
+ exports.description = (0, utilities_1.updateDisplayOptions)(displayOptions, properties);
96
+ async function execute(i) {
97
+ var _a;
98
+ const searchJobId = this.getNodeParameter('searchJobId', i, '', { extractValue: true });
99
+ const qs = {};
100
+ const filters = this.getNodeParameter('filters', i);
101
+ const options = this.getNodeParameter('options', i);
102
+ const keyValuePair = (_a = filters === null || filters === void 0 ? void 0 : filters.keyValueMatch) === null || _a === void 0 ? void 0 : _a.keyValuePair;
103
+ if ((keyValuePair === null || keyValuePair === void 0 ? void 0 : keyValuePair.key) && (keyValuePair === null || keyValuePair === void 0 ? void 0 : keyValuePair.value)) {
104
+ qs.search = `search ${keyValuePair.key}=${keyValuePair.value}`;
105
+ }
106
+ (0, utils_1.populate)(options, qs);
107
+ utils_1.setReturnAllOrLimit.call(this, qs);
108
+ const endpoint = `/services/search/jobs/${searchJobId}/results`;
109
+ const returnData = await transport_1.splunkApiJsonRequest.call(this, 'GET', endpoint, {}, qs);
110
+ return returnData;
111
+ }
112
+ //# sourceMappingURL=getResult.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getResult.operation.js","sourceRoot":"","sources":["../../../../../../nodes/Splunk/v2/actions/search/getResult.operation.ts"],"names":[],"mappings":";;;AAiGA,0BA2BC;AA3HD,8DAAsE;AACtE,+CAAuD;AACvD,+CAAoE;AACpE,6DAA0D;AAE1D,MAAM,UAAU,GAAsB;IACrC,2BAAY;IACZ;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAA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QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAElF,OAAO,UAAU,CAAC;AACnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ import * as create from './create.operation';
3
+ import * as deleteJob from './deleteJob.operation';
4
+ import * as get from './get.operation';
5
+ import * as getAll from './getAll.operation';
6
+ import * as getResult from './getResult.operation';
7
+ export { create, deleteJob, get, getAll, getResult };
8
+ export declare const description: INodeProperties[];