{"_id":"@splunk/search-job","_rev":"25-cf26af1b68ff39b60cd9c167965c7837","name":"@splunk/search-job","dist-tags":{"latest":"3.1.0"},"versions":{"1.1.1":{"name":"@splunk/search-job","version":"1.1.1","author":{"name":"Splunk Inc."},"license":"Apache-2.0","_id":"@splunk/search-job@1.1.1","maintainers":[{"name":"splunker","email":"devinfo@splunk.com"}],"dist":{"shasum":"d675fbf9c127af0fe90045227e0b6a67371d3a66","tarball":"https://registry.npmjs.org/@splunk/search-job/-/search-job-1.1.1.tgz","fileCount":6,"integrity":"sha512-9IRLl1uy8FEU59HDHSScl3rdlZohGjHt+Lv+zgX3Cy93hON+yDtNIUl42x7PPGhdLrGJa4LA02MNSZFOOuc74w==","signatures":[{"sig":"MEUCIEmOVOQUSos9ajJv8QPL/vBNw1uDlgg34tQ8wlXBQ262AiEA21NZn95PJl1USfQIhDkNeT+s9DGiE5gbK60NK4hpcF4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60529,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpNnDCRA9TVsSAnZWagAAf24P/RGJNudJV6n61efUde+C\nehV+Q4Oi8DM2G5QDsnWyFMnVPs3CMORcTldFJHJ58gpf+KHlxud5YrEre09X\n4zkHykyjh/Whzd9ug1ktwiG0IZ4Th9sUG5+kiOD4u2oejL4elK/ZL0N1fu/5\n1aS6UeI/zx8yElOkETTtwwFdWk7fn0z7ThJJ409JOWfBVXYqVGxdVbcUAlzu\nXB4K/hFe/d8ftQ7P+qxOuDVK1TDbgx1r+dmU5Z4wLkxOKPJQTTTr9w11kLbW\nkoQN3NLOvJbfIgXUmPtWJMH5rM3x5Hss3/uJM2nsfzcuyaWvj0lRpCPqKTRB\nt+Fza+bVCsSr9dR7jipt+bq9KDeXDnHXAG/JJOjB4z7QWDjTcakraAAq1h+S\nQeAZYgLibTsDh5X9JwYVGMAUgBAldlbWXm3Znw+3mJSQ/gO9XYwY4iV13fgK\nREHRao4gc5NvPZktxHw01IyC4wch1tQV88QBPFZY2EuPzW+hWgiB7J0Jj9Jf\n8Lrzk+XAY5I2kC2R1CB57mBeA0MXpalEP4kOgqN08/eXqBsWmfkgXeVrFO6L\nUAx0dnEJ+Ny2UR9eovfctrkhiEgcadgsQlo7DH5LFqbKeidLjQeudvXik/lv\nTDePqafprFlwMHfE2a4sf81W4nT7zeKRzRq2zkjGMiNGAVV0F3gPKneAkmus\ng53v\r\n=8ib/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./SearchJob.js","engines":{"node":">=6"},"scripts":{"lint":"eslint src","test":"jest","build":"babel src -d . --ignore \"**/tests\"","start":"babel src -d . --ignore \"**/tests\" --watch","lint:ci":"yarn run lint -- -f junit -o test-reports/lint-results.xml","test:ci":"JEST_JUNIT_OUTPUT=./test-reports/unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=json","test:watch":"jest --watch"},"_npmUser":{"name":"splunker","email":"devinfo@splunk.com"},"_npmVersion":"6.9.0","description":"Create and access Splunk Enterprise search jobs","directories":{},"_nodeVersion":"10.16.0","dependencies":{"rxjs":"^5.4.2","lodash":"^4.17.14","@splunk/splunk-utils":"^1.2.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","jest":"^24.8.0","sinon":"^3.0.0","eslint":"^5.11.1","core-js":"^2.4.1","webpack":"^4.16.2","@babel/cli":"^7.2.0","jest-junit":"^6.4.0","@babel/core":"^7.2.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.4","whatwg-fetch":"^2.0.3","webpack-merge":"^4.1.3","eslint-plugin-react":"^7.12.1","@splunk/babel-preset":"^2.0.1","eslint-config-airbnb":"^17.1.0","eslint-plugin-import":"^2.14.0","@splunk/eslint-config":"^2.0.1","eslint-config-prettier":"^3.3.0","eslint-plugin-jsx-a11y":"^6.1.2","@splunk/webpack-configs":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/search-job_1.1.1_1571084738782_0.6406023310587965","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@splunk/search-job","version":"2.0.0","author":{"name":"Splunk Inc."},"license":"Apache-2.0","_id":"@splunk/search-job@2.0.0","maintainers":[{"name":"splunker","email":"devinfo@splunk.com"},{"name":"splunk_sui_publish","email":"webplatform@splunk.com"}],"dist":{"shasum":"fe5e4deb2f3306f7b3900cd764a36cc1b937489a","tarball":"https://registry.npmjs.org/@splunk/search-job/-/search-job-2.0.0.tgz","fileCount":6,"integrity":"sha512-VqzU1nmxhSD8Y2Tq+pX/4miE9HqYIC38CEkRJAAZhzm9t6UdAspQ6VmQvjjQAXE3KMRI4/0HEjFmdA7WRcqUEg==","signatures":[{"sig":"MEQCIFR3mgeimeGfZfsdoiPnylL8bWCNwJi4lW5L3wuykKMEAiBj8AsLdVYhDbnSOnab29F9SWq9blOj55k0AmQGIxTnUw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61057,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHccTCRA9TVsSAnZWagAAiBsQAIyI6sSvG4+ch8eeOzm6\nTxrq2YjXel4jg/eIfxCwhP23cDAsigcF4WXZZb3hc05JU2jxy4HuX38oJpM8\nnym+DLgYSzW4qCEOCP/l7365kxj8flP3nKjhkWpQI/xvIY/K/50GMBlf/bib\nzZz5WEmyPz09C7Ke4C87meFN/E0uwdDBmh+YHaJwoYlre0UNPpkhpR8z/ZUS\nZyskrYm7Vy8uYvvzMWye2kKRAl603c4twypk62Dw127pWqTuXq/xVCrBA8Ck\nHLyOSV827rx1EZMANOnOx6ckkdBgWwSzjHeq6jyAL+ZABQd7SLZYfHAe91QZ\nAp0Rsau6ziAYIdy3uv9vXaPXBqbzpdrslww8UH6osv6BYQ2Nyk3wV19E6v5H\n/PZ7+d1jGXgJ3n2QCDkkJUoeGvuvo6pEEF6olKSdXY43Z4MOYqvl9wF6/ctL\nKosZ/on9HPGCeYMyX6egbTWKAnAPyNDC71FB/xD4RhSpMnn8pLgKbLTItlqY\neZ7t63SjhZJGlYlnnerMwCFVmDkUaiI8tY7tzuJx35pFVCUgGclDDAGFaC2u\nKAVwdbg8MNkp/ryO4AoU0IHAYuYuKIfhFG1Na8qfshA8y//Zjtjtg2MO86Fw\nIx7Z5Sqey+wDOc4/i2qdPv5sUu+j2Xlwp8AzGY58rpTIUOxulIYek5U/mVQu\nLRoD\r\n=SloP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./SearchJob.js","engines":{"node":">=6"},"scripts":{"lint":"eslint src","test":"jest","build":"babel src -d . --ignore \"**/tests\"","start":"babel src -d . --ignore \"**/tests\" --watch","lint:ci":"yarn run lint -- -f junit -o test-reports/lint-results.xml","test:ci":"JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=json","test:watch":"jest --watch"},"_npmUser":{"name":"splunk_sui_publish","email":"webplatform@splunk.com"},"_npmVersion":"6.14.4","description":"Create and access Splunk Enterprise search jobs","directories":{},"_nodeVersion":"10.21.0","dependencies":{"rxjs":"^5.4.2","lodash":"^4.17.14","@splunk/splunk-utils":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","jest":"^25.1.0","sinon":"^3.0.0","eslint":"^7.14.0","core-js":"^3.6.4","webpack":"^4.16.2","@babel/cli":"^7.2.0","jest-junit":"^10.0.0","@babel/core":"^7.2.0","babel-eslint":"^10.1.0","babel-loader":"^8.0.4","whatwg-fetch":"^2.0.3","webpack-merge":"^4.1.3","eslint-plugin-react":"^7.21.5","@splunk/babel-preset":"^3.0.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.22.1","@splunk/eslint-config":"^4.0.0","eslint-config-prettier":"^6.15.0","eslint-plugin-jsx-a11y":"^6.4.1","@splunk/webpack-configs":"^5.0.0","eslint-plugin-react-hooks":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/search-job_2.0.0_1612564242797_0.6276180500085964","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@splunk/search-job","version":"2.0.1","author":{"name":"Splunk Inc."},"license":"Apache-2.0","_id":"@splunk/search-job@2.0.1","maintainers":[{"name":"splunker","email":"devinfo@splunk.com"},{"name":"splunk_sui_publish","email":"webplatform@splunk.com"}],"dist":{"shasum":"ff41e203f05e852ea802715f16ff3bc3789e3028","tarball":"https://registry.npmjs.org/@splunk/search-job/-/search-job-2.0.1.tgz","fileCount":6,"integrity":"sha512-PQApmcw8dvBX7R5LTfuyjhSdZ9qXKRZ8zGTn+tk0oyGLOT8vgoP0dzk6sgibjiw0tu993aRi2GO+/Ycm5Oa2Rg==","signatures":[{"sig":"MEYCIQCehbAGmIhgmKdBj4jIvZrge3wNKh+rz56hWqmSiGZeFgIhAJh/xGDfQBmR/MMesVuJJWmAvuL/RKqle7n1rl6J9O0b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjj9TrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowSw//XlCh2rX8/MZK6ynsaPlek0prYEI7yUztzvqjOHVHGUwkz59k\r\nCt8Ez5UWxKgrfB3U4fe7BgfsSMPv8sReizMl11jIVu7VfGE+jW1rw4zP8v57\r\nuhGyHHZ0gNEiXkcgN64MzZA3Zn3us+YIL8iOjk6RSLFeNGcK228LymYu5N/G\r\nI9VWTaSO7SIg/6vq4O+nMu5+rRnPuJESFI2rkMvOUxG6r5IQ7Wjmlwe2WXLs\r\n69X2sviqoD4J47SZJdnQhAXFmWBRi1sXRPjDeRNASp6BMDelUbp/BfOr7QFs\r\n8DsMWQqGLS9G9jUF8L+u4a4IbwSF5eFyHWIQk/hyyX1OmbphvWG35IgJXTfm\r\nAhV3Pv9O2K3Wn99SYSzrc6Knd9o+bONQ35G/fK2GCG1gG7Vd8pJ/zWvM3+yu\r\nqPkHrZfap2rwJs4GmLhQLbawFbOUr0KpjOVlWH4SGLT1MYTj2hwZw8O6b/M3\r\nuMNJyPO1TnFNL6rso4koac1+WreblTjgnFBbrBwaGuHfujVLfC7stIpQRfYi\r\nFjKPBhAR3Q+JowQ3m9BIW00NjIc/LfbX0u+umQSoj4ywQilaLR7r0g4w9W+D\r\n0zKSS1jgA8ioxbTglxRlc73j/PIcPBi9u80c+7ESjxkYWwpUfZkGFm0k3tAG\r\nU7bWXSkC7NFAENfuHrq1VaNN6TNdGUZ4NOc=\r\n=6jp2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./SearchJob.js","engines":{"node":">=6"},"scripts":{"docs":"NODE_ENV=production webpack --config docs.gen.webpack.config.js","lint":"eslint src","test":"jest","build":"babel src -d . --ignore \"**/docs\" --ignore \"**/tests\"","start":"yarn run build --watch","lint:ci":"yarn run lint -- -f junit -o test-reports/lint-results.xml","test:ci":"JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura","docs:start":"webpack serve --config docs.gen.webpack.config.js","test:watch":"jest --watch","docs:publish":"cicd-publish-docs docs --force","docs:publish:external":"cicd-publish-docs docs-external --force --suffix=public"},"_npmUser":{"name":"splunk_sui_publish","email":"webplatform@splunk.com"},"_npmVersion":"6.14.17","description":"Create and access Splunk Enterprise search jobs","directories":{},"_nodeVersion":"14.19.3","dependencies":{"rxjs":"^5.4.2","lodash":"^4.17.14","@splunk/splunk-utils":"^2.2.4"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","jest":"^25.1.0","sinon":"^3.0.0","eslint":"^7.14.0","core-js":"^3.6.4","webpack":"^4.16.2","@babel/cli":"^7.2.0","jest-junit":"^10.0.0","@babel/core":"^7.2.0","webpack-cli":"^4.9.2","babel-eslint":"^10.1.0","babel-loader":"^8.0.4","whatwg-fetch":"^2.0.3","webpack-merge":"^4.1.3","@splunk/cicd-tools":"^0.5.0","webpack-dev-server":"^4.7.4","eslint-plugin-react":"^7.21.5","@splunk/babel-preset":"^3.0.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.22.1","@splunk/eslint-config":"^4.0.0","eslint-config-prettier":"^6.15.0","eslint-plugin-jsx-a11y":"^6.4.1","@splunk/webpack-configs":"^6.0.0","eslint-plugin-react-hooks":"^4.2.0","babel-plugin-transform-imports":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/search-job_2.0.1_1670370538946_0.42070893767225015","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@splunk/search-job","version":"3.0.0","author":{"name":"Splunk Inc."},"license":"Apache-2.0","_id":"@splunk/search-job@3.0.0","maintainers":[{"name":"splunker","email":"devinfo@splunk.com"},{"name":"splunk_sui_publish","email":"webplatform@splunk.com"}],"dist":{"shasum":"18b7cd6d41662c35eff6d89740497330ca70ef2f","tarball":"https://registry.npmjs.org/@splunk/search-job/-/search-job-3.0.0.tgz","fileCount":6,"integrity":"sha512-lyhz/MLtzfKWW4riiqSiOI7Ef9MQuI8rmi2CMCc8uEf5OS0demEQop3kSzLx+QYCaLhjlwknjMuL9NitgTty0g==","signatures":[{"sig":"MEUCIE7vwyp5XRcOaZtvfSQQMlNxqYTdDyQggcU10r/7LfHNAiEAzVyTOltZGr/YyhWGAJP0Pg8cUw7YqKdi/17kp9zE0B0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62742},"main":"./SearchJob.js","engines":{"node":">=14"},"gitHead":"c644063f3f39c33af2d1b9d8d728c61f58e62538","scripts":{"docs":"NODE_ENV=production webpack --config docs.gen.webpack.config.js","lint":"eslint src","test":"jest","build":"babel src -d . --ignore \"**/docs\" --ignore \"**/tests\"","start":"yarn run build --watch","lint:ci":"yarn run lint -- -f junit -o test-reports/lint-results.xml","test:ci":"JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura","docs:start":"webpack serve --config docs.gen.webpack.config.js","test:watch":"jest --watch","docs:publish":"eval $(splunk-docs-package docs) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH","docs:publish:external":"eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH"},"_npmUser":{"name":"splunk_sui_publish","email":"webplatform@splunk.com"},"_npmVersion":"9.8.1","description":"Create and access Splunk Enterprise search jobs","directories":{},"_nodeVersion":"18.18.2","dependencies":{"rxjs":"^5.4.2","lodash":"^4.17.14","@splunk/splunk-utils":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","jest":"^26.6.3","sinon":"^3.0.0","eslint":"^7.14.0","core-js":"^3.6.4","webpack":"^5.88.2","@babel/cli":"^7.2.0","jest-junit":"^10.0.0","@babel/core":"^7.2.0","webpack-cli":"^5.1.4","babel-eslint":"^10.1.0","babel-loader":"^8.3.0","whatwg-fetch":"^2.0.3","webpack-merge":"^5.9.0","webpack-dev-server":"^4.15.1","eslint-plugin-react":"^7.21.5","@splunk/babel-preset":"^4.0.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.22.1","@splunk/eslint-config":"^4.0.0","eslint-config-prettier":"^6.15.0","eslint-plugin-jsx-a11y":"^6.4.1","@splunk/webpack-configs":"^7.0.2","eslint-plugin-react-hooks":"^4.2.0","babel-plugin-transform-imports":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/search-job_3.0.0_1705437771814_0.21704207055417024","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@splunk/search-job","version":"3.1.0","author":{"name":"Splunk Inc."},"license":"Apache-2.0","_id":"@splunk/search-job@3.1.0","maintainers":[{"name":"splunker","email":"devinfo@splunk.com"},{"name":"splunk_sui_publish","email":"webplatform@splunk.com"}],"dist":{"shasum":"7e4962b55a1919fd82b78f2f2bf9c2d5c5065ece","tarball":"https://registry.npmjs.org/@splunk/search-job/-/search-job-3.1.0.tgz","fileCount":6,"integrity":"sha512-L2AXkZGimqdBN9A1sENWGVAD8/yzB5RNpg8ZgfBW4JCJlMKdNrAXyu69xtsvjrRuYp/gTd//65x/6AljUr4HDA==","signatures":[{"sig":"MEYCIQDMnNhaPn+Cy+ZAjvPCHJWmCFmlmGzbdXP0lZ3lXi4+fwIhAMCrT32GnOAunzwV/OUcHMsGREU8x14y2xPAvgufbVHt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62824},"main":"./SearchJob.js","engines":{"node":">=14"},"gitHead":"2b2a2f1d5780f865acf03ab6eb6580c2679d4e8b","scripts":{"docs":"NODE_ENV=production webpack --config docs.gen.webpack.config.js","lint":"eslint src","test":"jest","build":"babel src -d . --ignore \"**/docs\" --ignore \"**/tests\"","start":"yarn run build --watch","lint:ci":"yarn run lint -- -f junit -o test-reports/lint-results.xml","test:ci":"JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura","docs:start":"webpack serve --config docs.gen.webpack.config.js","test:watch":"jest --watch","docs:publish":"eval $(splunk-docs-package docs) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH","docs:publish:external":"eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH"},"_npmUser":{"name":"splunk_sui_publish","email":"webplatform@splunk.com"},"_npmVersion":"9.8.1","description":"Create and access Splunk Enterprise search jobs","directories":{},"_nodeVersion":"18.18.2","dependencies":{"rxjs":"^5.4.2","lodash":"^4.17.14","@splunk/splunk-utils":"^3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^3.5.0","jest":"^26.6.3","sinon":"^3.0.0","eslint":"^7.14.0","core-js":"^3.6.4","webpack":"^5.88.2","@babel/cli":"^7.2.0","jest-junit":"^10.0.0","@babel/core":"^7.2.0","webpack-cli":"^5.1.4","babel-eslint":"^10.1.0","babel-loader":"^8.3.0","whatwg-fetch":"^2.0.3","webpack-merge":"^5.9.0","webpack-dev-server":"^4.15.1","eslint-plugin-react":"^7.21.5","@splunk/babel-preset":"^4.0.0","eslint-config-airbnb":"^18.2.1","eslint-plugin-import":"^2.22.1","@splunk/eslint-config":"^4.0.0","eslint-config-prettier":"^6.15.0","eslint-plugin-jsx-a11y":"^6.4.1","@splunk/webpack-configs":"^7.0.2","eslint-plugin-react-hooks":"^4.2.0","babel-plugin-transform-imports":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/search-job_3.1.0_1716942559867_0.5986318045797088","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-04-23T23:54:07.851Z","modified":"2025-01-15T22:50:00.654Z","1.0.1":"2018-04-23T23:54:07.916Z","1.1.0":"2018-09-14T00:42:33.776Z","1.1.1":"2019-10-14T20:25:38.902Z","2.0.0":"2021-02-05T22:30:42.921Z","2.0.1":"2022-12-06T23:48:59.128Z","3.0.0":"2024-01-16T20:42:52.026Z","3.1.0":"2024-05-29T00:29:20.114Z"},"author":{"name":"Splunk Inc."},"license":"Apache-2.0","description":"Create and access Splunk Enterprise search jobs","maintainers":[{"email":"devinfo@splunk.com","name":"splunker"},{"email":"vtsvetkov@splunk.com","name":"vtsvetkov-splunk"},{"email":"webplatform@splunk.com","name":"splunk_sui_publish"}],"readme":"# @splunk/search-job\n\nA class that simplifies creating and accessing Splunk search jobs.\n\n## Install\n\nInstall the package:\n```\nnpm install @splunk/search-job\n```\n\n## Usage\n```js\nimport SearchJob from '@splunk/search-job';\n```\n\nThe API of the SearchJob class is based on [Observables](http://reactivex.io/rxjs/manual/overview.html#introduction). Each method returns an Observable that can be subscribed to and will emit data over the lifecycle of the search job. A few examples are provided here.\n\n### Create a Simple SearchJob\n```js\nconst mySearchJob = SearchJob.create({\n    search: 'index=_internal | head 10',\n    earliest_time: '-60m@m',\n    latest_time: 'now',\n});\n```\n\n### Create a SearchJob in a Specific Context\n```js\nconst mySearchJob = SearchJob.create({\n    search: 'index=_internal | head 10',\n    earliest_time: '-60m@m',\n    latest_time: 'now',\n}, {\n    app: 'awesome_app',\n    owner: 'admin',\n});\n```\n\n### Create a SearchJob from a Saved Search\n```js\nconst mySearchJob = SearchJob.fromSavedSearch({\n    name: 'My Saved Search',\n    app: 'search',\n    owner: 'admin',\n});\n```\n\n### Get Search Progress\n```js\nconst progressSubscription = mySearchJob.getProgress().subscribe(searchState => {\n    // Do something with the searchState.\n});\n\n// Later, if the search is no longer needed, and is not complete,\n// unsubscribe to release resources.\nprogressSubscription.unsubscribe();\n```\n\n### Get Search Results\nSearch results will only emit when the search is complete. See `getResultsPreview` to get a preview of results before the search is complete.\n```js\nconst resultsSubscription = mySearchJob.getResults().subscribe(results => {\n    // Do something with the results.\n});\n\n// Later, if the results are no longer needed, and the search is not complete,\n// unsubscribe to release resources.\nresultsSubscription.unsubscribe();\n```\n\n### Errors and Completion\nAll Observables support three callbacks: `next`, `error`, and `complete`.\n```js\nconst progressSubscription = mySearchJob.getProgress().subscribe({\n    next: searchState => {\n        // Do something with the search state.\n    },\n    error: err => {\n        // The search failed. Do something with the err.\n    },\n    complete: () => {\n        // The search has completed successfully.\n    },\n});\n```\n","readmeFilename":"README.md"}