{"_id":"soql-parser-js","_rev":"95-65c9e6d28c106f05bd37828d211b87e8","name":"soql-parser-js","description":"Salesforce.com SOQL parser and composer","dist-tags":{"rc":"2.0.0-rc.6","beta":"4.2.3-1","latest":"5.0.2"},"versions":{"0.1.0":{"name":"soql-parser-js","version":"0.1.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"95f01ce773ae0792d7ad1f008c21f96ccfd4637a","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.0.tgz","fileCount":31,"integrity":"sha512-scNFxzuBHJc3biJAosjiI0872pAqHfvFnY0mZbJ7Q4sdsbOoa6SLqTO5O6HywrERb65C0oZmmtZ2jFfj/qdbjA==","signatures":[{"sig":"MEUCIQCSMxnfA+YAW8WEQ93O2fTwLlBG+mo0pcGAoeCFIaa1ZwIgcREYDwccJAK8pslgfWGEkwtfKwp8HXwUt26mFD5tGLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":673597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwVPPCRA9TVsSAnZWagAAAA0P/Awg9xFxgLx3pyOj6vHF\nbhQRyT2qmrSp1lq5FVQj3wKd5UKkR8f1ICFDGfmCdn94TxU7IdDblWTAfXeA\n4xlpPS6RAspKbbWnbtTpIEb9bsbdrdb4g6hgf1VEyHH7MBpGbGdGKCKLTE9R\ntTLwns9Emd83xx0JygOBza/EE7vBYORLzdXfICb8EqnGXL6kXkixKpjaamSC\npKhfCos8MVvqwoEyqeCrKAFm8ttEoeAy4JNSphin0LyJLC46GWz7yHKS1qJU\n+fkWq35/ok073NYpIjVcGATIUWSFdoPY9FgrnjTVRR25vEuXYv01X0XfboYv\ne08Q1SC0XotWkO9hdLV2sTVWndOC56kAp7laxz48Eap6CrF1qhBnZN7BpA3d\nwY6Keh4tieHKKPTWvMjyZN2Umu7F4NM4F+awfPX97cjyBCP1IwvLscIb6/Ho\nCwQ0BvBHPOCvWWs/acJ0OuxyjhtACrmUDQR6jq8JquoDaRRIvYmP/OM+C+1+\n/dODyPCTF5IMdhgrifUaRF2R2z4hP21eGur7xIuqPDRvBNO6Z8HDY6x1skfm\nM2Nw64NFDaVVZh179/lvAGw6hAbyLih5w+4L1cx7TwT/MBZreARxs7pZ9Cm1\ntuZVJfBAsBOorR7bDZ/ifNn0392+Y+KEbmPlYoFtTN1C8piZKn8fqh7+Es65\naPPT\r\n=bFW1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"443717494ed015e42e4dd9e6d6b49488c269aa7c","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.0_1539396558295_0.6098663388034693","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.1":{"name":"soql-parser-js","version":"0.1.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"2ceeca61436cbfc878a04dfbe399a5b3bcf7ce71","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.1.tgz","fileCount":29,"integrity":"sha512-2S+qdlneDyJKLizRt/mKQOYaqFUTlfqhssK7DdiqW2A5C2XKIf++OAAvD8+ery2XXKtyZRrvQa37WNQAqOKCJQ==","signatures":[{"sig":"MEUCIQDgG2vV2xVjqcmJ8HCZeEG27gKhGb/9eNOPDzRFt3k5AAIgRS6qce0ve1DNzc1GdCNv8VYnkxOqmpU7/P84Eb6aCHI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":669299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwXElCRA9TVsSAnZWagAA57gP/0zMM5gk43AYLFr3XjZ1\nrit3bDj9+JLSeRtmcgt+FTV+dyLLl0dev7X/LinEXorBuO5JwoGwQU3IJhTd\nITW5SZBSZT/VSUaC2sx5wD1ek7OPSCs6ApRPbeq6ZLChTVz3n7MrVOFlcpIR\n/RFTNZktqekHl06cBhJ64DtAoH3MBWEbu1NWns8TGD249QY+3NOPh8cI0PDW\nedf7SNpAxjmXJdpIp7GeILrxtsQzK0vGxfH8+vLRxVzGUjpIebs9l4B+4v/e\n/95qDg0nRJHxJ0yEEC2zLDalVZ4vXvwgU32F8OAlMhUALVByQYpw6YrJKB7J\ndMxpppFe3vnBmJa7IIYK1Zf/eqNjQkY14NaTxAJ/ing8/A/zyB0aB1jUzMbF\n2q1WpfGzJM8IrYAsmVFKy1+u588Kgghi7FyC5jCA+Ll9qc4npZqQNxmmekXe\n0Dii6O3Liv93QFLUvRRK8f5YdJu+AjPJdcqGSKhxvDGnK9M4mCga+2Spna/Z\nwcbbc2oEfrfncYJ4v60j7t4duKNThLofF4IQ23YP6Jh3TF4UBLez0Jt44TWn\ns1a2bwBC6GpfxikgbxMfEvpPU4bHMz4wBDrxRyGB4jZ7GLtZTqJd/QAjC2ss\n37teE4aQMdcctpg7taH3BMVTA5HLnOq4nHr7YsOG2vK7atNehwFlnhMY+v3z\nWQxl\r\n=tOhy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"a8d5b6b5d7f16abaefbc1d1ce436c7e9fd1d75b1","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.1_1539404069099_0.9194292474845638","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.2":{"name":"soql-parser-js","version":"0.1.2","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"09d90f1b0cc7ce01c9b06a9f5262f6b3d81505f6","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.2.tgz","fileCount":24,"integrity":"sha512-oA7oOwB2w1+mdVGtFGNQn3i4OKjJfvTvx9twFlZIUxawNi+7KiTck0XKZznqzbrYKhhW6ZdxHI6fY6kbboT4tg==","signatures":[{"sig":"MEUCIQCKdlrfjyrbalQQ65eALYkrjxHk2j+sdpRVv5gJxeTSEgIgeSoZbjvylcAKoKF3c12IcCDlrjMt49fu+2HG1lo+uD8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":650300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwXJTCRA9TVsSAnZWagAAbBoQAKGhynDyFUM5Ix2Ntfw2\nv3QWecw6SLgr3MiQGxlADyF/1/xrtHBjazPwY8r9qacMZhn3oPbVPTlMcw8U\nb/vGUwg5PMtIzfR5+3NVL+qWF3jIsc6zdk+is8lKh+FXb/dkYJ2Xv+DIBdt/\nq+7UezpLGR9GLvb6HXIbtHJHa0gB5sCBKUlaRlKxMwTofClOp3lhFI/nA4JQ\nsLxR9Ln/35uALODDwPkTnbHS9Cr02Y8vofCEpjSRONvzLwNpyV6bAdbSjvVv\nj/qgu7rnyu8MNkSjeN8SmEUlBRzbsP6HQjjRhyznmkjvTdNp7H+Wf66NAl9v\nHnNE1ZuY2MxrGRTHFMOwF1g/5y9zkHfZyG0xU2k/9Xb7Bd056DXAyFh05SXN\nu+ofRmItqyyFUii3ybvk24mif8dh45VGW3YTDCDCiFolO3cYKuttdvABKTJe\nfMM+jlAd0favkoTRTi3QgYePn82Ad+TIJ/AhPhqbdqY95drqoe1KLDu5uTEK\nssjSzshnkvItNmxaKwfKBpOH/tkEBCdPSdoS/0c5gG/Z0v4KNzr0J+47riuq\nKzilqOffTQCNTtMyTxIiMB9AFusbaNI9bd6eNTSSIKucvK0He+ji1kom3azJ\nOdQ1Oq7HGtITFiuHrMKQhawt6a/UUIHVIdlfeGtJarCIqlbL71A+2XUgfKv0\nT6WO\r\n=7FV/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"274df0ba0e1e840bf83878f6f6a6347055749f40","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.2_1539404370380_0.9181738417318257","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.3":{"name":"soql-parser-js","version":"0.1.3","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"cf922f1a8c21c36b8bffe022b09c587b321c3ef2","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.3.tgz","fileCount":24,"integrity":"sha512-TSNVY0tOwDf5EjS3RE+vsKYR7TmGcwsAWg+s3lNWnj1l2qeeNDI8vqxUNehlO29kb1Y39tIMmjhYq2uOERO5sw==","signatures":[{"sig":"MEUCIQCju5QRzyojrcr8gFDjX0bOta6qfJ4B9xU+HHSfOxspeQIgUkhkrwr5a5FsssVmotm2eUi+IrJeVw1k3UA/rWM/Dvg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":651110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwYCeCRA9TVsSAnZWagAACpoP/i0rn7dzJPfuLHBFkzTV\nlAYW+O3TSGy/KxmZpnzJ22WS40naFgF+XbgtJKK5dORXRkGrztZbRlNGM1Tr\nzYZ44xMwfqv4O3ndwy3XaNHYvoSM1r+/Qymky5SVtSPjsVq91w3Q6E9APnvM\nEfJW9c9NFwxjSFNUZ7WOAjPErB+q8ro0+z39JW7XaoJkCxR9bNelwtDWloKu\nVHknUvMMHPswuly/MuUOzHehSDZFHj4P3XLB6RQV1wqYwhMqZY25OYEoHmqV\nx8tX9SCi1MJJYlHVcWVr47euq2564NVDgmiZCC4zKrWtCyLEVVfZeelYeRMC\nFazgbgdALQRNvBuUv7eDHe94JUe1siDb3eyD05Grn/6yeMTWJHuRt59IN4sD\nJCsLwqDjbQCsQeP2UiMtBZ+b0hTY7jOqevFGBAWlwqrrJTC6XEt1sPu3sa5F\nMaj5zKOvkUxkYmdqeaoPBX31Sd1+CS0GPxwcTytXygRU+dc6fFv0lvjVERQk\nqCkdg5E8Z6xyQ8cvQkPriho22xurU3LzifpBYQcUSjKd0s8gSMy/qkaGVT8L\nCsihss+xN1F2qedpt8uwf2Ozxzv4fnqWB7ii+NQc4OTNA7xVaf569V6sbIsB\n5bxUMk9ef+sYUHcSk6w7Ly+3khaN2vdDiMsTBoQqik2esDbhL3tEeFW6UVOW\nh7tU\r\n=65yC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"467e8588e89b7ce2b4f7b103b0afa1ffee1f9402","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","publish":"npm run build && npm publish","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.3_1539408029621_0.8126923303820472","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.4":{"name":"soql-parser-js","version":"0.1.4","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.4","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"18f4c33ddd834c26e10ea827ac034b499b861075","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.4.tgz","fileCount":24,"integrity":"sha512-2LSTH1eC8n9a5bafgCwsK5IPjK2Rk6i4tpaYMnP2ypCTCt6xPuZALuikh/AuZSMoE9qS3pDp9P4zG6XcNihQ3w==","signatures":[{"sig":"MEUCIQCoact27At5ND5w3/VLA4tHaMpPmbrDeq79G5qYvDLCjAIgbcLaDVODznl9PPrsL5q8wdK5nUT47YHSyb1LmKhR5rA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":651725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwYyzCRA9TVsSAnZWagAANqYP/0IHNhwoqP8ip/9/YJrW\n/pJADzlzmDwSqrDKhsDyA3LzM2VvgwKps81gTGi25iXlXlq9LOlFWzJy2Qq1\nA37x12Zg/IFqzV7BbRTkQOWhebzRpT1O3xf9E/SkrEVjVlLPVxedAfO87f+7\n9hMsDcyz58uI1YK4dCAs1MBlyLN+7+Upx1co0Pofls1ralluHW5+dyqpRybJ\ncji3ICZMAJWZnRmWejKtTY/rhTHq363mqWWsx5dR4++EFCyZEBhOG2yWv75T\ntAafb6ui63sZWNCTp3FGHab5mfeLFjRXvL/wG0RR58nYQp92hH+djH+ns0dX\nTy9qv8C056P+6vwhre2nqEuCe0CUJb4DaZhglgah8idKU6h2Hci0uFZGd4ai\nttdEjmb1l6DZxuzfBoghCnyWB7wZibIttGrvwcaNYKh6To58Pyt9tKZAZ0Kz\nTkWlJ6Vz69qVNgc0OEDO0XzSjwuswIkEcY32G1uYeRqp8WGUxl/4f00e+YPJ\nKI/RwZ11aYzWsLvYkUvnOoa96fnIuROTGIrn+wOG2Sc+l29wHOH9zUtZOsYu\nc+4vnwl7b/wTftqJg8Oolt8iF/pTdUmrHlyPmIORbnFhTlV9Pgm29tYZ1Omr\nr6IBX/ziqzvYkHZT/9DBY48HHNHEjZ6Sl5T3grPMguaPFvio5UAWJs5hyrE8\nQaO5\r\n=+sB5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"00d7de95ca220a856a92a11b24d87bba2f4ff22b","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","publish":"npm run build && npm publish","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.4_1539411122780_0.10100263513409824","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.5":{"name":"soql-parser-js","version":"0.1.5","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.5","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"255e69fd65067371a3f8bbc392e807a73ebf52fa","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.5.tgz","fileCount":24,"integrity":"sha512-kf5OyeRXrfYYTEEXSJSKf/fpRvD9vBl+vUX7Fr5ubIc+Z0LXpOtkzbLnfpqvHoLYv/DXSK2TmAVRaFeUfhIrRg==","signatures":[{"sig":"MEQCIHpEEykaII2DGUaShhxKmKUuqPPc3HeGTGkYWp1czPO1AiBYOOVXNqIKPCRpsUwKqDhZloA0r7SAYhOn/eerNrdAOA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":651725,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwYzJCRA9TVsSAnZWagAAGcIQAI1g6qFbatQh0DBmTthk\nGbD6cYCBM0SJOqiOJrksE2/2n14eaMRS9V0i5gHrYC9HBfXYjkfn7sC9TO+3\nfebRlb4nYTimHFNef2fkyJnCulGWj/S0Yn5hB6c0pH0sMBDjayk+qxNAMkpV\nAHWwcnpwAe8f1LCv/WLKMcCKrP7RsKNeDe+T2skpIABbbf0aZArAh9JFr42K\n70OchF7w2tgEx5uQ3bjRjSb2Q1m56sp5I/a02Nk3gHnXwA97iU+f1iDxuxse\nXHHVtbr0TzoyLBd9JxO7ToAhpn4p0V3kptDRfiCpgdTN9ry6NwpiY1/CkosS\nGWS6DvOEZUeVGKJZ25qYXCy+cYm/kiCqG6tne2IU6SJwJaxM/sGOWItWh7iv\nGO+wn+w34ukGk4v1ADuS06ez7YGgExYtoEUMrqg+dTjGhTJelpUbbTPqlRKA\nqyGDCfSxc3YKz1WV01iKhbquAuO4M/F0pZ/qKcyOnTdsjb1+rOgZn2LIFKUS\nkjhvE31FCZL1nuYViE9Am+LIiWo4I3xwviO3wROylnUl3tauhswIBQK5yytb\nq8fd+Zwh2WuqZ6EM0I/YbBWX1XVfbOUw67Y4o9Yx9ihrxSuSkNlDOyCEOott\nrVK4Bnyt/B/9yO+fpIBAv/tX59gLNWmeLHn8Z9hOs78q3C76GOfup6H3Wdut\n4ur1\r\n=glmc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"00d7de95ca220a856a92a11b24d87bba2f4ff22b","scripts":{"tsc":"tsc","test":"mocha -r ts-node/register test/**/*.spec.ts","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"npm run tsc","clean":"rm -rf ./dist/*","publish":"npm run build && npm publish","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"lodash":"^4.17.10","antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","ts-node":"^7.0.1","typescript":"2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.5_1539411144957_0.5029314401771277","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.6":{"name":"soql-parser-js","version":"0.1.6","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.6","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"umd":"dist/index.umd.js","dist":{"shasum":"a21fe35c7ffa9427e3c8ac9c254de011dc5b2e96","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.6.tgz","fileCount":19,"integrity":"sha512-jdxF/mPy5Q/Cbv+1GjYUITPTJ6ivzmMV+jYRtuqapbREarB4xLTYxmQdZ5lRsTlzEF9ntsSkiYB2krw3kJnqLw==","signatures":[{"sig":"MEUCIQDetQYdmuMLrzOxNq+MCmu9wwGR7FgXwhPLZCyZD4xn9AIgNtcyeT2V6VpD8wSNbKM1a5W3s+87pzYaUnesvZ43iQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwjBwCRA9TVsSAnZWagAAoAAP/iK6I8XSW33XXFhODbLG\n3s9adfqxBsVO8WuIgo1r1vGhHfjdkZ+A1vy6MNvs2xYLYWsh5ZsIxEXwfhZF\nLan808l8/oxFwwcO+sFImSOkR1YQfBmNW00+ZEcAZRy2hMlsJg4QP8XvetH8\nj0grl75HSoyX1hKIGX3sWOH0gIjNba3x2+FZpw1SA19Jo7G4j+ewBPoHQHAa\ngGKImig0OC32GWR7S6C+Ra//hBgVqthaBYtPd46078yFOstOMljFz0sPCjcK\n+dY+d8crZCClZ8/7YXGPh7o7SHyK1hc9BgUbWFFGvcAvrBfBtoNiXmESA3k6\n8VnKevp4kWR4IBhIQ9nAjUosGJWnxW5EmFsEB4FrguKMYfhycy+PGhSriEjQ\neIPAvyyLMf/TDvcjdzHFvO1esEHIqs3uLQSyxVHxC84efRnk6xQHMYG9brjk\n7Y4PhiFE3IRuI5GQZEhoPqDmXvoh75m/cgB3+aXknFGFqr4FS6bAiRZfcI8Q\nyEH9KKlBGa4cf+mHW8w9hhB9pOIElHjj7k+NF4Fv9jQonWTsIX03d6vGCHlo\ns4OtB9C3sh+G7KOGbVKsEAGGeMFbVmI88/g7PlRQPuYyMpCc5a9RZ5Fp/Dkc\n9rUQYouqKogkRB9s/YPejq3hLEKJR8cEfs7J+hhzGYJmO/GqWiPLsz/vQFwc\n1Oe4\r\n=VF0x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","readme":"# SOQL Parser JS\n\n## Description\nSOQL Parser JS will parse a SOQL query string into an object that is easy to work with and has the query broken down into usable parts.\n\n## TODO\n- [ ] Assess all property/function/variable names and make any adjustments as needed\n- [x] Analyze more SOQL parsing examples to ensure that output is appropriate\n- [ ] Include information on how to contribute\n- [x] Keep examples up-to-date as the package is finalized\n- [x] Figure out proper build/packaging for npm\n  - [x] ~~Consider Webpack for build~~\n- [x] Figure out how/if we can create a bundle that is browser compatible and include examples\n  - [ ] Provide instructions for using with node, in the browser, using TS and JS\n  - [ ] Figure out other builds (UMD - minified)\n- [x] Create typescript typings for the bundled JS\n- [x] Provide a GitHub pages example application\n## Future Idea List\n- [ ] Provide a CLI interface\n- [ ] Provide ability to turn parsed SOQL back to SOQL\n\n## Examples\nFor an example of the parser, check out the [example application](https://paustint.github.io/soql-parser-js/).\n\n### Typescript / ES6\n```typescript\nimport { parseQuery } from './SoqlParser';\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n\n```\n\n### Node\n```javascript\nvar soqlParserJs = require(\"soql-parser-js\");\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst soqlQuery = soqlParserJs.parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\nThis yields an object with the following structure:\n\n```json\n{\n  \"fields\": [\n    {\n      \"text\": \"UserId\"\n    },\n    {\n      \"fn\": {\n        \"text\": \"COUNT(Id)\",\n        \"name\": \"COUNT\",\n        \"parameter\": \"Id\"\n      }\n    }\n  ],\n  \"subqueries\": [],\n  \"sObject\": \"LoginHistory\",\n  \"whereClause\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n### Data Model of Parsed Data\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\n\nexport interface Query {\n  fields: Field[];\n  subqueries: Query[];\n  sObject: string;\n  sObjectAlias?: string;\n  whereClause?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  having?: HavingClause;\n  orderBy?: OrderByClause | OrderByClause[];\n}\n\nexport interface SelectStatement {\n  fields: Field[];\n}\n\nexport interface Field {\n  text?: string;\n  alias?: string;\n  relationshipFields?: string[];\n  fn?: FunctionExp;\n  subqueryObjName?: string;\n}\n\nexport interface WhereClause {\n  left: Condition | WhereClause;\n  right?: Condition | WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: boolean;\n  closeParen?: boolean;\n  logicalPrefix?: 'NOT';\n  field: string;\n  operator: Operator;\n  value: string | string[];\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: 'ASC' | 'DESC';\n  nulls?: 'FIRST' | 'LAST';\n}\n\nexport interface GroupByClause {\n  field: string | string[];\n  type?: 'CUBE' | 'ROLLUP';\n}\n\nexport interface HavingClause {\n  left: HavingCondition | HavingClause;\n  right?: HavingCondition | HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n}\n\nexport interface FunctionExp {\n  text?: string;\n  name?: string;\n  alias?: string;\n  parameter?: string | string[];\n}\n```\n\n## Contributing\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n\n## Special Thanks\n* This library is based on the ANTLR4 grammar file [produced by Mulesoft](https://github.com/mulesoft/salesforce-soql-parser/blob/antlr4/SOQL.g4).\n* The following repository also was a help to get things started: https://github.com/petermetz/antlr-4-ts-test\n","gitHead":"4b038eecc76c5e8473f5ecf70c33446480e3264c","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","publish:dry":"npm run build && npm publish --dry-run","publish:beta":"npm run build && npm publish --tag beta","publish:latest":"npm run build && npm publish"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","source-map":"^0.7.3","typescript":"^2.4.1","@types/chai":"^4.1.4","@types/node":"8.0.14","@types/acorn":"^4.0.3","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","@types/lodash":"^4.14.116","@types/chokidar":"^1.7.5","rollup-plugin-uglify":"^6.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-typescript2":"^0.17.1","rollup-plugin-babel-minify":"^6.1.1","rollup-plugin-node-resolve":"^3.4.0"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.6_1539453039276_0.36041218138647846","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.1.7":{"name":"soql-parser-js","version":"0.1.7","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.1.7","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"umd":"dist/index.umd.js","dist":{"shasum":"3240b9c2b01dfeec3c3cf96653c8a48100af1584","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.1.7.tgz","fileCount":20,"integrity":"sha512-BcVKujEz12R+e0mVUphIP2w1dMNB9BQweoH/5WsUE+yBwoJkZOsQTI3ouNWHGB3McAo05dNYxmsgW4BpmedFUw==","signatures":[{"sig":"MEQCID0+d3MwfQ0L6tOyoPnAQZbYBKcN/eLpAeJxq6LNwsPoAiBs/1Tz2BYucM3m87uCVaFMMb4EDbz8RJeGzhoX+D8REg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":832620,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwjcrCRA9TVsSAnZWagAAdbwQAIBE15wTQPGWF7OI8y7D\n41jUOVkgIbC8Tdys/+47oauGSEzTBgflxkkfIee0mffyinJoTjxutGXOTH8l\nT/9LhWfO129Hu/x0Wo5duZkgL73QHsh3JYcMlR0fG7ZY0e2aQp/+SL+MDIh6\nqExnWDwtpkegJKD2dJlmHPbN5yWlVLyBrPCh14UTncO7rfIhn7pv/xZBCwPd\ny1Hata2psCpGCJU0nMAUczQdH6PZTThDUenyJRe2kSmAM83glH3rxV4fmC2A\nS4OZu0p3q6+TRpqLgnWPAGePG0Y1id/mfMisKFU3/JUFVyKU6184ZGJKbEWC\nK0FNdZ6RjwV5kRa/+su2c92K9EXK+DVroCpMvbccdcH49xMUSOPwve0tanPZ\nog3Uz0m/o02OiLLMUmPzf66exXV3jMJIumqLHhu6LOcC58pslYl3GkxuJmgo\nImsXIpoQdQnbm97GCnP5fC3ngYDb8gXhBhDJKDxTQZZ7Wk5g+VgYLttKViYz\njTGvrwW9v0MM/B+XCNyOyIVNR+8yQZ8lO/2NWAJ3z+3/5kPlG/Igd/rHYCxL\nDbZR2vx8XMZzmd4JC6N3UupGPBH5AucObE19QW/I77o4yp9SITA3buh4pjn/\nga1raJyNOyF7bHxyX/myMlxrRWg3CMI2Q6c3bPbtXuG0AfHf43BhwDjb4cI8\n65Tb\r\n=LBeI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"3defef949288f642a40ef97eefcd17a5df76fe72","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","rollup-plugin-typescript2":"^0.17.1","rollup-plugin-babel-minify":"^6.1.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.1.7_1539454762887_0.8882032580313675","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.2.0":{"name":"soql-parser-js","version":"0.2.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.2.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"umd":"dist/index.umd.js","dist":{"shasum":"5245181e57b101a78e6286459fb9247b0651b1ed","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.2.0.tgz","fileCount":23,"integrity":"sha512-b6ubvuz0afuIUCUC9T9BhTlSh25ZxcMSonIuVDYZugSFzInZ84NgyP8/oAiJLyDL1zigRFPVKZUlOZ7vGZ95RA==","signatures":[{"sig":"MEQCIDd15IHUpl/sCBE/piVtEWWuoKozWultzIR1VfWGRtWLAiAkEyCNL8dHWek2AzOcKns/7JUDW9ganEi1LVCAyRk08w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2658906,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwpXGCRA9TVsSAnZWagAAewUP/0fBRc/qbNaiz5wEVcf1\n+jKE1vkz+y6MH2Wxnn9i0ofptjpF/na1R55cL3rZC4LetkK7pHi7JntXvT7a\nG0uxBXUjvAEy7OuD3qXY+dK1CRlotCbWEnOiXth85bfXjH++D0IDJVf5XNxq\nFRqLkb5rMQMLC9+XFAxpBNtX+lHNufHH4dKt/MF4uINq3/iXAkTCGqtaHQkr\nvlf95NcknvjLzsb/k9/ciLTdwGyCFtdMnF6OZv2wlRSPnuZ9bMDyaCy0WUIS\nFjSp6ZuOvNCjBEXcQUrr/kZcM0DBz4voL4MmKItZpchtxiOjsl8hU2YwrCUh\nf6fuL5MIyg9JgIwcW+x1kbksFICoTqHYxWsumXfZkbCV4A06Ur74oZDwaPfV\n2z+nvBpUudMBYxRapXBabI+4HRzw9BSxO5haCMOexk38qFYigWffRC3vBH7Z\niqyLTLBbYVmgN0VrjkEZ0PuxOIyeG3Tj4igRpALX1PKG8iMA14HsS21N1GEC\n4FvVGFy5ga+5AkEOCgrb0RudEfJBuODtZzoqn4sxUxiYE9LS8ibDnY2PtEq3\nnnYiENCBsQ0GtR3zqbY9Jl7vXbDadc/Eqz/3yryWVK6e8i0weOkOzW1UqRF4\nN/Bgbu6EG3tJE5P6v8XRznDAA5TeAdCX9LCDscBMNaXXFnMDTSTk3cqkwwgl\njAMR\r\n=2KIn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"d833ec76b0142e319a9793a6be94e1db4c6c43d7","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","dotenv":"^6.1.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","rollup-plugin-typescript2":"^0.17.1","rollup-plugin-babel-minify":"^6.1.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.2.0_1539478982008_0.7561084383173065","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.0":{"name":"soql-parser-js","version":"0.3.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"805a75e2609dd0f321ab8d21633e5d73a7f1ec05","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.0.tgz","fileCount":27,"integrity":"sha512-HlXH61H+j2BtM7NVflfmHhJgkmlPIXK7y1Z66xH44cIB5jVD9+3b85wales643p/jOEz2rUUtLiWroo2iQZEew==","signatures":[{"sig":"MEUCIQC0J7lG76FRip6PEDYBEkbcj5ZdykniqNNt/NNzviLw9AIgPgXr/6BaWZ3tREJS3XWkLAddG4vXVNuGBEhOHj1gyXs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3943839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbw5ZSCRA9TVsSAnZWagAAoY0P/AqLCo9a3PH7HwI/kPLM\nfrP6TrhBVz7oA614BJA57LT2erVeEI5qnImhh+R+Klm41GVObZXwwKvq8Ii9\nM85hNX3sUcQpz678xvgmJj1pit1zHjFSOilaTOAocT1zKb3+MUPJ/S17HviI\nxL15mA/QyFffp8uIeqtgfJgN1x2sNlq6uJfzsgP09uwptEZRNcdSqhoFbWgd\nNrZZVbJ4XihSNKrNFlD7zZ5s1HNTSzYp2VH74U7QKnRiFMMDdsEBdFlmiJTs\nxbLfXEHuujKcsgh9zXsAw2l3qgHm1ftjXtXMhvwuE7ALkL/HQIy+MoTFlyLk\nWpOsZXZGiOHnImx5eL7qdWooPMfbNKsHqsDZCUXYOzMcHuqwjyTSqv5uHfsP\nChIqnBZS/kofqW+vW7FS840UzjLatSu/FHYSMF8RD5Y+bkIFjC75KSnTQ2YH\nmjDiyDguwe2RuFA4Pjj/ZOYIg1pi67Ra0tmLayXthCp/5LvAgImMPeZRzLDx\nzPk+EbLQS9YEl+AQGNAJijbTMmXRMQUUWZfhkFFxSkaNwpbW/jpv7g3b7OoR\niL7rDzK2vr5OuClB9WIdUP+eIRjF4YcnfL3IWnOAToTzjh8bgD5EqBaUoiBo\nrvlevHPSAUvOxQUb+wWaEC04Cm+TY6ehBk60TzTgXdLGVRZUI/bRzUcZnzi3\nNkC6\r\n=jfwL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"b9696fa165cdccc7c74b64ca6e0b7eba6c1aeb1a","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.0_1539544657877_0.6748490355590422","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.1":{"name":"soql-parser-js","version":"0.3.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"6a608ce0f1cb51aadf3ad48e62f6f89fc595e124","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.1.tgz","fileCount":27,"integrity":"sha512-0HvSSwpsh9weHnflYDkq3rBBOaCsk42Ptu8W7vzuLjLjhhQ6HRTmp7Addc5LLn+wc0YBcEXSjnAtlxrYyB/A6Q==","signatures":[{"sig":"MEQCIDHhJKvVeVN6aWlYY/uMxGp4vJwnvAxI010yZkvHemCcAiAulCGCB+mn/oWOiOgOURWeC1EQJBBnxtc3JJrn/E7tgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3962851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbw7egCRA9TVsSAnZWagAAEugP/jSZzCOOmQRNWWnIZm/I\n1AQWPMIqOTZ0XDw9kRNhQon2aoMx2AxxHQ6olPBVzddCMVip0asryYvcpv0u\nua71w2cW28Ed5dpF3hGQXjdx33bkncms7JPJcYz+iIVB6Pd60CWyeVbz6lbO\ncY+HRdMmUFKyxxO3ShiIwMwXQs9dRx7hVkgMYx1qDyM5F1BH212VsC/XekVq\n9bmMoSdifwUUuoZm8L/KMiLWO16bUD0qIvmm7tHjqPgfW/GocXRLGbDbpHIN\n8o7SYwKhRp7S/OHclNQ75PxmNfT85zM8+lk4Lsx6Q80ioEHon3eNY4ivYAqJ\nEjm2blW3gCrcdSo+AIf1vpckvVaciKKUGTrnQhqYB4dHk30ed8GzMzHvtYP2\nezGobck0NtLkvGxvrdK0dYdbyPJJlS/Ub16Et/7ZB4Php1Fu0SrijppZwwoA\n+yNivZ5LrLJPHXzk4GF7lDjtzcnYfwdf4O3vM2ikiFvTLKDDx/ywQgAQHldj\nVSD55Ae9M2QlmN2+9pmhF8hIeWKSl15K/KTg/Q1+QLNpavlB9sdgAm9J3lzz\nMn6WcfR85Kyx9CWzHVkBYUyF5StHpaXEeHh81ybAgXInzqH6XEi13nHpqCii\nNYvKCtL3Hxx8u55Sh6iS0gya7Di82bSLY6OO+3L5moCaxNzU9xO+YxRhE9NM\nU/xQ\r\n=9krd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"453707d6edb1c4d11c58603ebec107e3c7066279","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.1_1539553183923_0.9232477221790438","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.2":{"name":"soql-parser-js","version":"0.3.2","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"4ffa2a33c7e5290b8956298e0596b55c10323429","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.2.tgz","fileCount":27,"integrity":"sha512-xEQ/wZs6XAOBYzETHQhf3W2GRsr9kaiDAI+FjtKXx8XZBrTVTjlKFb8vQN4kKbPhcjjGGNd7thslxjN3aLjZTg==","signatures":[{"sig":"MEUCIQD5VdXAJk5Y8nZMcKZqcvu3Y6Z4xriiUyhgNu5DEjJUYQIgb3q1LVNlX7PL9h4gsjKa7SuHVrnrTOEwYa0jEmUhyxI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3975408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbw/e2CRA9TVsSAnZWagAAmNgP/2rAl1LhwZHX9fQgLff+\nQi/Td7mk3kPdMsUO10Kshv8coLlV10inGgEx1cGWisjfhA+YOkj2xwwvLtIk\nTt8uJ9r8hzQ2pw8TKlUezTVn5aY96RXdPYV2s56S7S+XKKBQlQd8yLpvTBd0\n4R1kwpQCMPtgEk/zXMZ29YzJGTPobv8tMLCs7mz2NJzM3vVO4fPrJgGDY/ra\nN+MS4p+T/Woz5xClXY+OMCQgwTvh3m1VddZKZ9CVq+ks6Gc9aNpQhO9n7IoR\nYihl6GW/00stp3RJjtiC4srqk71slHnXJ+kOigjs2JsirCqUJV0eGxJmwDHT\nhh3O38ACsGOshy0JTIAOjyzgGbYfm6UAtjL66+aHKEgbQ9ssIaYUSesZzsg4\nRxoq7HQ154Q1e1xC5uI1P3HaNeSUUHx1TIqR0ca/z4zJdWi9sBZSqrkgnApE\nCbtRSpaLM9VFv2ZgqYw897A4BoYHTpD1ktTqo/CJ0MzlSjWzRUV4se0GskUR\nQ7cbeFE12EVKuqWXRFlbACk+YQE0nRUE1Egs+ZFcN6a+/kjXsJnfbiiPwe6t\nDXkSgK2aazgFpzO8I16u5tHqk4vx1E3bhXT6BPQI4oVnbLWGsGopj1eTij2v\npFt9bwn811P0pnRLRbWU0BdNi6QlOuCuy2LIvb8BnbImaeBQtOF1DdYeOZiA\nKmOn\r\n=QWKs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"8384500108ecd7cdd4f3c4d95a9813a14624c499","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.2_1539569589250_0.9282357628004285","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.3-beta.0":{"name":"soql-parser-js","version":"0.3.3-beta.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.3-beta.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"1d2d8e9aafd457a093b2bf2dc71e5a97aeda84d8","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.3-beta.0.tgz","fileCount":36,"integrity":"sha512-/eRGH6HQ/vPZ4lBU4YwwEFURHhlAQrLRq0WznpF1EEY4oWb4kUthK06Tr86iXcJkIfbRUdwCgvISeL7Iv4jR0g==","signatures":[{"sig":"MEUCIQCDYdWZeujH1rRw9/tXb84X4pahJa7jOVjde0kSNz9ONQIgC3fK2tCMJHQAsit/t+AEr9j58XT5AGouTLI+XCvFYLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4009951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJby4fXCRA9TVsSAnZWagAAUvwQAJRW44ehBSXqodsLlVw4\n/H+7+6jfLPl8zeBwbOm6QUCMLqlrWRNjFINWCR+n+txT349DnF9wc8NeU1ub\ns2urVDg/UPcvegIfIBqxqNaxgD6XF7F4DVJK1XdiLpVvKa51JCifBv22Q5bY\nuuy9xtrUyR3bT0/whaKUXMqJZJoU5C6YModDig/48HbPXXKyDsJm15IYpin6\n69Ngf1cZbzmNYQ6silP2FvVQhIq9netI+0qJ1/gE26bt0JyO2WTC7tz9aEIf\nopet20l6iJyzQDnIfLHx2szTTI88lTthimVoql5txYzboKWUBCi7kYKj7QbC\nacvpCBi6qvhoOv/k0nhiV1ltZCf2oA4qDM3tXBH0T7bdEeEGAVQeYvZbxvDg\nTivH0xSwAhZJ+Bjm4KKjwNdPl0HNqXBO5O3UeB1BEqR+YnpeaYjSMD44azCy\nDwN2NWoSfoj4aY9fMvlGnicdcZ49O2bujLybo26DADnN4xjS1r1TfFb9ucV9\nEvHiL1KlOew1ewP5Tw9slinr78d8Ox5j5++LUNkSV5uKmy6fffRo8NcPuz/I\nfN0c06WyfBOTHDP0yWXKN90PoWXitRRM+Cz4X1CSPZ/hGY+Rzs9mMuNC4fAo\nfV+LeoJ5T3+dpdq04BLJrSAJoOzS+0+v6tN4mYn9RdpHVzXY2v7Fntn8ObX9\ncCCl\r\n=YFRq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\nSOQL Parser JS will parse a SOQL query string into an object that is easy to work with and has the query broken down into usable parts.\n\nThis works in the browser as long as npm is used to install the package with dependencies and the browser supports ES6 or a transpiler is used.\n\n*Warning*: antlr4 is a very large library and is required for the parser to function, so be aware of this prior to including in your browser bundles.\n\n## Examples\nFor an example of the parser, check out the [example application](https://paustint.github.io/soql-parser-js/).\n\n## Usage\n\n### Available functions\n1. `parseQuery(soqlQueryString, options)`\n2. `composeQuery(SoqlQuery, options)`\n\n### Parse\nThe parser takes a SOQL query and returns structured data.\n#### Typescript / ES6\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n\n```\n\n#### Node\n```javascript\nvar soqlParserJs = require('soql-parser-js');\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst soqlQuery = soqlParserJs.parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\nThis yields an object with the following structure:\n\n```json\n{\n  \"fields\": [\n    {\n      \"text\": \"UserId\"\n    },\n    {\n      \"fn\": {\n        \"text\": \"COUNT(Id)\",\n        \"name\": \"COUNT\",\n        \"parameter\": \"Id\"\n      }\n    }\n  ],\n  \"subqueries\": [],\n  \"sObject\": \"LoginHistory\",\n  \"whereClause\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n### compose\nComposing a query turns a parsed query back into a SOQL query. For some operators, they may be converted to upper case (e.x. NOT, AND)\n\n#### Typescript / ES6\n```typescript\nimport { composeQuery } from 'soql-parser-js';\n\nconst soqlQuery = {\n  fields: [\n    {\n      text: 'UserId',\n    },\n    {\n      fn: {\n        text: 'COUNT(Id)',\n        name: 'COUNT',\n        parameter: 'Id',\n      },\n    },\n  ],\n  subqueries: [],\n  sObject: 'LoginHistory',\n  whereClause: {\n    left: {\n      field: 'LoginTime',\n      operator: '>',\n      value: '2010-09-20T22:16:30.000Z',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'LoginTime',\n        operator: '<',\n        value: '2010-09-21T22:16:30.000Z',\n      },\n    },\n  },\n  groupBy: {\n    field: 'UserId',\n  },\n};\n\nconst query = composeQuery(soqlQuery);\n\nconsole.log(query);\n\n```\n\nThis yields an object with the following structure:\n\n```sql\nSELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId\n```\n\n### Options\n\n```typescript\nexport interface SoqlQueryConfig {\n  continueIfErrors?: boolean; // default=false\n  logging: boolean; // default=false\n  includeSubqueryAsField: boolean; // default=true\n}\n\nexport interface SoqlComposeConfig {\n  logging: boolean; // default=false\n}\n```\n\n### Data Models\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\n\nexport interface Query {\n  fields: Field[];\n  subqueries: Query[];\n  sObject: string;\n  sObjectAlias?: string;\n  whereClause?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  having?: HavingClause;\n  orderBy?: OrderByClause | OrderByClause[];\n}\n\nexport interface SelectStatement {\n  fields: Field[];\n}\n\nexport interface Field {\n  text?: string;\n  alias?: string;\n  relationshipFields?: string[];\n  fn?: FunctionExp;\n  subqueryObjName?: string;\n}\n\nexport interface WhereClause {\n  left: Condition | WhereClause;\n  right?: Condition | WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: boolean;\n  closeParen?: boolean;\n  logicalPrefix?: 'NOT';\n  field: string;\n  operator: Operator;\n  value: string | string[];\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: 'ASC' | 'DESC';\n  nulls?: 'FIRST' | 'LAST';\n}\n\nexport interface GroupByClause {\n  field: string | string[];\n  type?: 'CUBE' | 'ROLLUP';\n}\n\nexport interface HavingClause {\n  left: HavingCondition | HavingClause;\n  right?: HavingCondition | HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n}\n\nexport interface FunctionExp {\n  text?: string;\n  name?: string;\n  alias?: string;\n  parameter?: string | string[];\n}\n```\n\n## CLI Usage\nThe CLI can be used to parse a query or compose a previously parsed query back to SOQL.\n\n**Examples:**\n```shell\n$ npm install -g soql-parser-js\n$ soql --help\n$ soql --query \"SELECT Id FROM Account\"\n$ soql -query \"SELECT Id FROM Account\"\n$ soql -query \"SELECT Id FROM Account\" -output some-output-file.json\n$ soql -query \"SELECT Id FROM Account\" -json\n$ soql -query some-input-file.txt\n$ soql -compose some-input-file.json\n$ soql -compose some-input-file.json\n$ soql -compose some-input-file.json -output some-output-file.json\n```\n\n**Arguments:**\n```\n    --query,   -q       A SOQL query surrounded in quotes or a file path to a text file containing a SOQL query.\n    --compose, -c       An escaped and quoted parsed SOQL JSON string or a file path to a text file containing a parsed query JSON object.\n    --output,  -o       Filepath.\n    --json,    -j       Provide all output messages as JSON.\n    --debug,   -d       Print additional debug log messages.\n    --help,    -h       Show this help message.\n```\n\n## Contributing\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n\n## Special Thanks\n* This library is based on the ANTLR4 grammar file [produced by Mulesoft](https://github.com/mulesoft/salesforce-soql-parser/blob/antlr4/SOQL.g4).\n* The following repository also was a help to get things started: https://github.com/petermetz/antlr-4-ts-test\n","gitHead":"c9b7bef840a28f7c43e2203f90c72e58c1a40099","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.3-beta.0_1540065238791_0.03356510008097824","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.3":{"name":"soql-parser-js","version":"0.3.3","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"835e9a68870ba970d9565362d71d6a293b61fea3","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.3.tgz","fileCount":36,"integrity":"sha512-yeC3xP/evGx/8np8tNPWBDVTQqikaOw6pBIx7nsqC7enNGCHx8hvaHYl7ajdFdU7bXmqo2YUYPM9/oOIvYH75g==","signatures":[{"sig":"MEUCIHJ/Nf1ZWNLYN3zbOVZTkFQVyz+sBbTDur6I4LAHnX17AiEAp0x1RclF4hd4RVd4vSgaASbhFIEKpV/ZCxKVQyyG/8U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4009944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJby5eOCRA9TVsSAnZWagAA2XcQAI4z15SiWM3/rflvWxS0\nPEmCceIxv/A+yu1YbEL/GKE/sDwAJXXPJWf8QVLhBA3XvZ5z68D/hlrvRcTR\nFYb3z1YmwXRxWBZZuUm9KmXUXfyTt0fkR8qOiQslx6+1c9HtcfmJ1+9tthZ5\nihdwhJPkcMOjdiPdyH493h24dWsqzS36dgOJSJR2KYY+S0WIkF0vQg8yVk09\n6qEOblrTXUeRC85PyIORX+Y70uUuCkYqhzZS3152QjGqMyKDksSGGa7lqXdO\npGFXhe56BNrF/NFLKpUXkW/dB/fZGh/rC7+xGPZBOP/MoyErsPjooobSfpul\nDUwSevlu/d2EskP9R0sY64neB2vRD9KoFqc2tjtQFywSvToRH/8aR/Z9fOGv\nMsTRc0kdnQJugKwfDJ7PHoffigszO9bifPsw/uVCQYYgB66PRXLh94jIGffc\ntOK78tVsFxcGKkUBqeC4vonDbl9MhHHVv+pnL9KEahoFGsWAWf0tdXwKOPSQ\nV3Uu7gXZW3QMq6b54tj1bruhQqSyi6KI+v4u9vn3xm9neYQUZXeDkp2mps1U\nfSpJzobYb3/x8wq4a0PHBOZ2lB/Nn2YiTqRAY9OYaQQBlXCZYjiM4WImhBm6\nUgwIT15x/FMOuwHPy7pHy2GXZ+zjBFqRJKq/FeK7B3HfPYGApivb7WQuLvd1\nz1tu\r\n=kUb0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"2d6fb124515d4c18e1b109e7838fb0ae9d336a27","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.3_1540069260764_0.5846842258764944","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.3.4":{"name":"soql-parser-js","version":"0.3.4","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.3.4","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"02b3c71798e70f8cc40640c32f1d41bba5075f5d","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.3.4.tgz","fileCount":36,"integrity":"sha512-JCryd8haAeMzw14d3IrfJ9sBgJwk/RLtdH1hpCUR3RUjh5CeYGYo8N/Z9V9azORo4HF0qZM20qWxzUufqWuKIg==","signatures":[{"sig":"MEYCIQDb+2OarsLtHZNGjcCpGAYHVKwqMGsc4py20x98261FAAIhAJnoyFUc+17R05TxI1D7I+2D8ampGDl4L3Y8JDvqVYP5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4015473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJby6M1CRA9TVsSAnZWagAA1/UP/0s8zCp/U+eoNBUloD9W\nCoaugBT6VxldI6SWD7bED27dIu4mftKSpjrPSyadM/8HpOgKFvQny4PjcPdG\nd0uQtXqSGxSwzRWcpo8TFtFtlrEy6Ap/GIvBYOXtyGNDfN48Z/qKQBRcrhAo\nR0u5+/WUaeCFzpZyqPZttW480sTnbTNbiT7jD4gWnvuIK83z2eqJfaWMftnv\nwmWAeTgD+yEbIjbDXWjk6SdyNe/ymbkI9KdEY7TDK/aMkfhjkiuDiQsk8dgh\nEFliQV2wqRBg01T9wkpIMQ5vRh6EV7VbMGxiUjziGlryBEwgPduJugkDySw6\nzqNCTkiBvWt3DGJWCjPGKHuYrha3KUZ+ne/g+KRZBJTy8/sVDPCY/ZrT4cVi\nrPMNYicIgNPCFiEaFJ1JHDZIsv4IgM2ZbZkghlUn3rkNm9ZIHMIyQospV/Mw\n6W4aMf2HFcBEYHHXX8aCHAd5LB0IiqNkX9TdA+74/1Xhxz0f6Um3x7P5q3Sf\nEYt46GKbdhcfhs0POOi7GcdgPy1qq27CANgUZCqA9XywBiqBpyn+dtnrIRdQ\n/+GE9CVXZrOYV9GTG0sgi0Zb473+fWSx4Bqvl4x0kw6DHeGPsvDorxPlVMaZ\nuC+Iba1QsqQWzuf04+mNzsqcCg+qz3z8VsYTHrmvOo08rTKxVEkWColqRNQg\nyIJy\r\n=3W70\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"9abf52105e889b2f5505853edc3f693df2150216","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.3.4_1540072244874_0.3223173195942084","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.4.0":{"name":"soql-parser-js","version":"0.4.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.4.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"4696dd9f3b8c5d22422b726fa672f063dfcc9133","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.4.0.tgz","fileCount":37,"integrity":"sha512-QORHmiTNr9n44bXP+7+joMjR+AiXMFLXmtYWnHUzp8/T7H9WNoZHQp7ImwxvHiL8dgF5FGir65O5x5j5xvJgog==","signatures":[{"sig":"MEQCIDn65Aa1TplQUwqqXCRM6OjqggjBIfs+FrrKdwM8wlEwAiADxsufzo5zX3bsDT55Gy0vYWKk6Nj3/dkJs1gQbKLhOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4052000,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJby8S+CRA9TVsSAnZWagAAey4P/269OXXsp7bKvYc8Qgz8\nydo5oqZamp5SYQlAAq7SYAqg1J41RM7lCA9lx2N1FoPAaRnD0eBJPi88bRTB\nQMvahQP4ZvBybhe6hPEw4k1hkkZprMrBGFRKoDaA7iZr88YcLQ0lKr0PKZyQ\nq4ako0dGHbbnHBEgSe4qAPwGhHyVvISf6Ohg3oV4SNIws5Agm6+hMRAPrMQN\nFMWveZ4g5BodpWFHEdCHIYAt0x0FYV7BROvbcOV6hC6CHOjC8wzYUgITR8s0\nvWDWABebnEI9CjWe+YOfR6XaltYOybNOp0bIaTSxA6HJ3wg6PqjhqoCXCj3j\nHPi96F8kg0FdrosH0/iZLMcaxssljEiOQQkQ/xYWdGg/oK6r+/nOHzr7vBH5\nEQcaWU5iUWtQF5GTahrF5nADn3rSFqc2wyjzBvShU4WSJS+tisw0jwtpTBiT\nwH8Fsd3GzJ523lKRRixgTtp9LQSppWnGTjAYc+RBn8V6dK+icq7DFTyZnNmu\nJvPMCpoTG8ZEM5niAlF8x0XxRGmuiTmojGVWp4dqrFK93+wRdVinD/mfijoH\nuOvddkKm67BXH80xip6ObOj8O4pcnHfmn7O8RY+FgPMJjUJsQ8Pkl+3IQLHE\nTPZ2bRP4w4P1i79YOGxUH//kimdPtEkmYDEQwx9xwF4eYwkvK2MnxeovqgYe\nKPGq\r\n=cSgE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"100f309efa5ee118f3c90f3ab1eeeadba2506fb3","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.4.0_1540080829538_0.26202976896425434","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.4.1":{"name":"soql-parser-js","version":"0.4.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.4.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"d7a75f12c4a23dd474cb2273ddbb5d4a9d83e0f6","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.4.1.tgz","fileCount":37,"integrity":"sha512-Xj/KtqXVuVgbHX5ziPn7L54IA+6h4akp5FbcAvK5+oPvJX9WlSVdxrua7wJgo9qhB1F48+/PfHbdb2ECrwmRAA==","signatures":[{"sig":"MEUCIQC4MQnFld2opZyh1/Sq85GfHJgOUSEJrCVnEXi3+76erQIgPQyQH4Kj6UIiXV89UtdmVPn2h+R0eDVPtK3Fx/pQIXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4052126,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJby8kACRA9TVsSAnZWagAAMTAQAJqvObaGMB+P9Zdn0tAh\nF6sokjlw/+ivAVU0MR2m6M6NV+ydbUDzgpTztEdnZ3xEakKbXxsnEapvQQI9\n6lrNpxKLCjCaxE3UoTSq/3kTDCSocii8qMnqlOxqWH+uvAgVb08sE8Y2fQw7\nJztl8Wve7YIvRF2eL56B6yFvAngr5ISMFtGH+VSaQXDWaRwph94mQeqegThx\nF/n1fbnoejEOze64irn22uNArSMsWjtOyp+hFiXqzJANc/6wP9RzAxiOYDfL\nLs6JvLA9p2N11Y0+Q3Ay+GB3Fv0LPgpfC7Pdpv4ejsj1L5G0pKgSexILvBmM\nXp/Qbv4ROgyT6fWbuTUU3ypWScuMEfI7RU2emv9vhQCxIlOgQ91u1bhwpl60\n2Df0T03Y6Zj3Sn6N0MmE2utwOFKWBnJY238+AemfkH3ZK28Spkwm6NACeu9a\nooWA/QrOyyy6kJG5euPnT7YF8s8AWr0pqC7mXiWuUf/h/c/mYLO2ja3u6ah8\nCop+NVT1a+kg2zPHBGma65LcCtlRSWh1ruvNJwNROxM8be2YpImibvsgAifS\n9D2aZEgZL46yV+n0fMT6b4F2om8xHqsBCHbgTUUhZf6Su/hPFj8qwsNY8YbP\nnipbupTBshnCmeRm06uM8zd+5zp9NMrQlgvQ3AwYpUFRHljQzPsndWOgvDqZ\nTweX\r\n=/n8n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"fe654108d95340cf12f8df35517428a8513a4a87","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.4.1_1540081919301_0.5471109873231801","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.5.1":{"name":"soql-parser-js","version":"0.5.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.5.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"fa7c628c871daaeef5d90b824658c0d3d74583e0","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.5.1.tgz","fileCount":37,"integrity":"sha512-FHh9cF13WOw7dNz2yAF9YLhQ7wsr9U0h8OkJk4rc33EbUSVlHiGq/mtYWwmip2GMj+f3qlWIifHiGSxzmZMNrw==","signatures":[{"sig":"MEYCIQC/IDCZcqY9Rk1tJlekSQD6C9CjYa4HcnBXQs9OEN8fRwIhANtVRS5nYOPtyDqOnijciOwYp4uZVPR4wejGG0kyYk3h","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4058107,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbzLavCRA9TVsSAnZWagAAL9gQAIPY8cMGptsp1RkSfUiO\ndgej1wBlgGKq/vv1lnt3hYBLIwhKiolrvrS2jcxK3dO4BwffYG+xFM7zrz0G\n2497XmClpNHZduVx+FnNVkFMhjY4/xMgtLlvqFQQ08G3cs5pMQjmXI6JM/JU\nnjCz/h1y+aq0eMcvUWwb6M3I05Np9LsyAxPr1AtQYEjOC2VFt0cajZH04EFc\n5ZWhDKy/XGgcg28JQB3eFieiB3G68UxLjtVLH7ITfUBIs6uozJ9iU/0giAL/\n/hSWd8KGvA2zL9g15bQumXIFXdKKoKcqjlt4dK/ioDowXS8TjiAbzj1JLtuH\noOX9X8Gcj33lWE9Bm3nVCI28NfNxSkz6F5y6wnstCfLAXXwmdVSlkEqXFqKL\n58vBTG4YYB7s7HMa6jl7AC/HNXgdU7b6+YyBhfDXXTzld5G0ZH0Qd7c+5f4A\nsNaszW1WfPwrbpvODJWvfm0fLDjETD8VYEV1xRbnSNLCYEewi+nEn3hXITKk\nmWNClrZlGkGnQuEoUUQJa1GU4xdbzmCkiQNzDmxK4m+VZ7xmd5esnJTkDE6H\npyrx6ejeO9DicFK07HeGxMnCw2IRqtyH2EcEXW6/zn+JC1r8T40Ln2hSRpYj\n/3Gzfb0F9OqQihu3bY1FonIs3NnyErpCCBAlDasT/ceRvQqQriaSGtUmVdmy\nNgIj\r\n=qP2x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"5f5dcae55588f83ad293bb5224394bdd7be1cfe1","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.5.1_1540142767166_0.9382032761678256","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.5.2":{"name":"soql-parser-js","version":"0.5.2","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.5.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"ed00f5ce4cd38eab29085686b8e71d1eec68a8e5","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.5.2.tgz","fileCount":37,"integrity":"sha512-00OzyOzsnUkPNSXPtq/ki34jh4UzOaoCWH+sT2K+ojVORKyEeSizByTav5vMp7UrUxZrSUW/uOEdB4WmqhLkkA==","signatures":[{"sig":"MEUCICq5IyJ8mCSK30du+WaA3DxWydFWGuE9Or8prHZM92DjAiEAyoIAI90X0YaxWBa47GVOU+O47bVAxW5xDCa+/IyC10o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4062834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbzLvpCRA9TVsSAnZWagAAYNcP/jDMmZx+a1MtkZEW8+Nw\nuA5YaWsLIHQDW1cXPwmWVtApkMy5xT3DNU0VMXnBSnK/pm4wzfLbK94gHdu2\nEveV1Bgrnxc803T0KKJGQ+OyTCXsEhg7Oj7Z1lDXeKefwSq7ENNk0Ru4slmP\ncljvHxMxiiPlJuTy+FGqspOC3Qiik78decbniLpHrqXvxIEle6AZoQwET9dO\nnCF6qkkk1zA/XIli92zx6YMvsKYyeEfJDgjRDfC6m9ZpTO7olOnZGC1p89Yf\nStWluCLdSAJtvwIb2nxocZuqGPRzalxvtL3c8qwhuOTXTNU2siM+OR48euqE\nntogulRJDU4VIEC24rFrlHKzWst8Tf67xKu5Q5Vq4XWBSdapM6OyccaxiqdV\niifQwAoZEvDzBP5cN+78jwAY8fWJN0GP8AncJ+kBxW2ip0G0uaK86FcC2gCp\naQSiBl3hTWY+9S4FRiN1bJXoMZdmaQFUK0VMRlLQXdLGv9B0CIbt6u0VaYqn\nDMOCc0iZZ5JA9qS3dw7WGzOk6K8NyJ7ynhM0XiujgSdyOqSiG5mYz2bjcPZ3\nCxMUxevlsnbBYiOOBmfGNejXtbZPEfCHXA4pRDUJSsu+l3CxhIRI3W7pGre4\nL9132/JTAOIXFw++GfltiHqxk444IeBqhCWy/2HexwvrYfmWJS6lJqotBd4E\nZ1V5\r\n=40w3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"b8362ed69edb2b2562fc3a1b8f68b66fa6e15bf4","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.5.2_1540144104304_0.8235769183582826","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.6.0":{"name":"soql-parser-js","version":"0.6.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.6.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"172562c98fa02a29fc6e660c828c1abb758a1019","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.6.0.tgz","fileCount":37,"integrity":"sha512-wv2lOpXiLl0PUQ1+Yo/xN/xEpUsUKg4f5Y3Wl9M/RqUf9WjHQhwkauQeRtbStMPClCpdBx+3OnXCax2M6kUbjA==","signatures":[{"sig":"MEQCIGJdz/+qzJdKcUNZrmevq7vge4KaKrlX8jq+aed8BetbAiAcqr1mDfHyvpH8tjA7wdh1F879Ejwemd8/O1njbkVAYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4064386,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbzOvcCRA9TVsSAnZWagAAC+oP/R5wimAY90xz2nPxU7il\ncLnLKEkxQHBsUo+0Ye/f+d/0/YnWvG869xSmTvdmf1UOKq0xCyejAKj3oChp\n4VV9vsSO6hyvDv4Rt8Avmof17NkJj3xA05Hdmwgf7wL6wJGx+Zf9DWLLABwh\nxevWjWoH0f7rQACg9recID8u2BgbEEoVjCTmfc3JLei1R0iQjUq48auqS8F3\nf3Y3wcjVu+A7rvilK6aoESLanfq5b+MdUQvi4ZoFj4qQXK1+Go8cEyp+E3zI\nH4g03uZq3+S2QU2dZAHSbABDZ/EhW1tDm33fUcJrPqYNiNuM8BORAvkF00cp\nDQLQ2+MaMYyvI7iCrPvB9mr+GEjIAVHg2CdhlKjUexYAgFbNQEqmVMtzRJMP\n8EQpafMmo1n550ngnryLhVXo/BKHEDTa4We7j2N8FwuBT8aQolJpxzY6dnIr\nQ7OiMQx+0XT4FKBhQAinHLxx6e/WgCJ3PzMyHtbP3JpHNOI/9KLiGb/ropr9\nhZ1oRdLYU9qAAPnyLw8kxJ2t269xacXXhk5tV36u1MxACW7aIIykC3iw3jR2\nueXTG4BxK2kNQgACZEYzrXLQ6v+KMIKysAE/Dfqcmzisu+eXcQ4nkCxYwO0y\nDmcBu7M7ziEtaJiay7pFxhiHHMdGQSw2ndKtMemevw/5h2kTPotygUbN6Yv4\n4tUT\r\n=CHcB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"683bf7f5783041bd6fc1490c997b24926826a529","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.6.0_1540156379092_0.6210326671578821","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.7.0":{"name":"soql-parser-js","version":"0.7.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.7.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"7ab710fd11e6b1e2215bc0c9ee39f3baab311538","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.7.0.tgz","fileCount":37,"integrity":"sha512-LVORqRLmUxwYxzcC89BOs68ExgAOWRF/HQMg2Bw9QOuf+o8UpLafXnSAx3eyxAEWJ6xAjFjwugXSF0OMhB9UHg==","signatures":[{"sig":"MEQCIG9rsGQNpbMxa11HGzJeFLcB019fMEWPSNLBXbtsG5bRAiBWGftoT9DFx64gW4+uUYOZkm2ffaMsHSvAIxKdO6tJ5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4064037,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0csHCRA9TVsSAnZWagAAIPMP/jTa01a6HSr7GHXTlMjQ\niomsO3WKDlET2ol5eQLXh0tLa6VkebJc/xhSqThlJ/awPCX8VaPM9TeCy5ce\nVGcBp96xVYcfqen6rMGRhwSAp2lRk+CpFWIUzqxPTer2vcpcEK8xUC9lkfM3\nx2AO1c6JyWArilXOtdBs2QyPlaivkC7Hg4v7JT8A0dL8ocj/m8D/jysLnbv1\n5Itq4XawIOhpcGLbUOVsZ7Sj4kfC8xDl9lvvi+hF1qfYtubSs7N7YnIWWUz4\n8t9mC2fS1W3n9GBq0zaE8vOuKXRvFWsf7VyYfYxutDjZ60brYJeeCnuZ04pP\nqEmFBxdYngwZ6lAZ8r4mSoa+oqz0qW/WPnwWzvgaEVJfGQro4S1eSKCuVzRv\njhONFnH3kaevJnBfII6vL67Ft27+16680pi/h2/VFbU1TwRo9DLp8OizH1xZ\nQyJiy0WlYuwJ4NamJROagyUFkkFdUFjT3rqyQfBBtkQnAZxKSAZEztulGKZ0\nktl92TAPHWvSXxowuP+YqgyJAUq7ay9vFYi50kaNWY8U91rp3kcj0RRvH8TA\nrYfqDhj/kMN8wISx551W6is7Y8zQLv29hQJB/91K33ApE1QdwikMdh8EnvwO\nYMR4p7465eHeLcbI95SNbhMjkCj8bZjuXxS3vK30cuQce+8HHY8TvaE4ASaq\noF36\r\n=/vbd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"70b52bad5e67ae418ae516f685242e30759be085","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.7.0_1540475654728_0.7900911694848702","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.8.0":{"name":"soql-parser-js","version":"0.8.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.8.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"45eb66872175fa40c1da2386273d68e8c87423c2","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.8.0.tgz","fileCount":37,"integrity":"sha512-rpYyxo4L4//RnZiMtaw7EBqmXJnYbFF2lYYYUWBuYN3j/uCUWoEI0oQlSjaAF95fJxIgfBnEhVwgzrzlV982JA==","signatures":[{"sig":"MEYCIQDshYPXo+wkQiXrhnKPFy2Gj+PGvoPLR65bg59VYJDiNQIhAN70llvq93N0xT0TIcSJALVqN34ETH0LiiChiZ6d+kxg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4086622,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb188gCRA9TVsSAnZWagAAUMAQAJEC+CXYXRUKrgTHOL3b\nq32xvwQvqzmQSHkLXyZHwDsFb9M/3Su7O/r0gxZhTlHbyU815AuWcCqr7VVP\n4uT+Uyu22XUttNafFso6mnTQkVIm/ycxh9hwJt6lbqMymyKu1roaUFcGw47U\nuW0St5HC5fon7AVaZw0jKzZgZ7zoAHNVuonCJS5+qaca6X16hnHcbsd3npKG\nI03nMpr16nRhFxGFe9N9oEh1wErGyW16uamW0tppP4WeQ8BC+1S+WPbIPRB1\nGdRhYaA88OE/AZOIEm/6T8b0GOXS2jIWuUg2/rim0oWLjrl17Pbu+8pM5rvF\n0PFnu17G9Aie4hsAkXRn/QUgBBJxlvfLvEZ4uBZXI3V/2ynLa4HqgrSj4g9z\n9xHDnpDFqQPztUT1mX+9943DoQOjiEDs9N7W1ibUAMsHO72ua4xor5py+zWy\nQFlVQZ+Ul4FYlKQjuYuiMJR37nXkxqJJZv2IM8TQ+UobxOIiZUm3G335DH2A\np3lJr6P8/Sx2br5YYfscXnoqI0mat0v9sU5Dle12YWcLg7AwNKvhOsHN+O+s\noaDLak/dBdLEVaqK/Ekbd0Rtp8idWL6FYUhIDpBx6Dy6PEkfMLYiRxJ7+pTA\nP7UvRKji57OZG2AXgz3/SWvMk+2P80djP3ep5vC2wmI5d7dxmF7vxT01GUGT\n/tH0\r\n=5rss\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"bfab4dd85268ac17f0ae0c0b84390f1e3ed93a81","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.8.0_1540869918580_0.7089308676557202","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.8.1":{"name":"soql-parser-js","version":"0.8.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.8.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"02dbbf2c10a4619031ab4e1dcd426e3f7bbb5dc1","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.8.1.tgz","fileCount":37,"integrity":"sha512-yTnMcUQkJ6/AGq/POzhQcmNuFf3q6fVP0mEF6q1q+RwHkmI4H2U564tFMOuoSbe6CbQe3x4WEscPVeuKIkPDag==","signatures":[{"sig":"MEYCIQDWbwn8QhWqUvBydqxivJ5FbC2o3te2AVG2KmK3/J8weAIhAImL3RyzBF1Gvcuk2TZpeA2wDqY6SxxsHwIQZTTlLbTw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4086838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb19ZDCRA9TVsSAnZWagAAvFAP/1yXbXaE86d2U2m8YDJz\nf9rJLJccFSI+5+VPRejKHJ78m93W/DHjs8XrZNAGbUeSwZf+C2Fq5IUPRMP0\nBwOZKKpP0xApHSpUpGVakXqQLXlIh8TkDWFO++6MfFVrQDivmAk2Yu1O4yQB\nd4QHXyTLiuKLfAVHpPt8Mjywi47Ek+vOAlWEFttwo+UeAFoMn+YKFhxd+JDQ\naMhgKaGi1QhPRnDQklx59DbiBwknepkXaorvroS9cx/bkdVCUF1p/Y92aKAZ\n4DnOOUJTPAN0W9Tw1lO99gmzwCJ7KnBG2L8of8dSKmaHfpGlAGOGiwZE5gOJ\nShX7SaEzqQ8RWHOpae5DvoiddX0gfbgHcSmHIfDMKyc24HXkzhPHWCdQ5Z6R\nPEW5wI9Vk4PlWUNeibFuUm1Pot28Ko6GdRLpCC/mpQJErNAkDAUjge8T4zD2\nVFxTC+7gSnYC5GIL2l2IwVXE2RLDOaW0CaJj5vWZJC30lj7TJIBRyIlMaUId\nz2b1Fm+XddDd2v9EwGHRKP9ZGhYBT/LrwkQcxXRz36P3B/2BvlxIlXQsOj4k\nGZUrrufT1Z9YtWiuPw1SF/p4ny2NC62zsSAjJr0eGSUa3HKdQlKOnf+vuciM\nbSZahVN9ZWMMX+c6iSMF6sFtSgjjppoFEoxXj48ydcnHuzW0rOw+5KBhn9RC\nvD2O\r\n=oWW+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"40da32969b240df249dcf553eb97c64c64f23f7d","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.8.1_1540871746735_0.4028489945732443","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.9.0":{"name":"soql-parser-js","version":"0.9.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.9.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"28d87467beeac8ef723167acb395094401704ad7","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.9.0.tgz","fileCount":37,"integrity":"sha512-FiZ1nBlq8Tzvy2oZc9XEJCpGCBTYLQ6nrvTnYHS5Y4brf/EByS1G3t8pOyn0+jGhileM+FMIC+jRd9RfCaHQ0g==","signatures":[{"sig":"MEUCIDEVqNy4HX38wYPWKLAroqDjbvzonB5eg3BrkqBFGkRVAiEAznfQwR/bDCKoPXtVFoIbW02XDtdY4bxHebTVI99unRo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4086845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb45BPCRA9TVsSAnZWagAAsTwP/2A8Ji4J1p+6NyvSiI/s\nOHjDZkNJSQZdtPSpl/ZRo2JY5+RQb3bJKoQNo+d68Q39LBkr8Mxaa5L/7UrS\ngASf2zOqCL2cBA9Hsv3hw7mxTIj2NCDLJhKXH9xoFsT8X4Wtvv5xMzc7wyUY\nqwYlyKtQevcHm2wB6jhi+LtZ3LnEUokc37xWg21SOAKQH3pjP6QFK+5KgT2N\nUahpsoplH2noQB780jkXFuLwAneu3CYd/5vt9DTy8/4juV4yKKaR/dK1+TMa\nq0BMLPH6clC0Uw7yUN7SG9SVu959sWCDqGqTHkYJFer/wLPHE4ooMOxurdw3\nL0Kg+NDify2Zg0Q1adIukvtm0CsnCaQmRDdfVHX24B1+U5Bsr9B65TY/2lke\n26lb3t8SH6olKjmQFuQlzJF7C/C6PXajecobKjVQ1Drs7Q2+krzXdbf/yJ/8\nB+7JYpuX3e2LTU5xGTAyulmSqPUdtSrJTKt+UK4w0fqjOPSf+TKQIcLP8tRo\n60G9uWhfXUWLDsfb4SJnltL9dyARdkxhbhq45sU27VJshQoqV+5ycB4IvIjl\ncNhyOgPCBTMOVb/kHylU9EJ4uo8g8qvzZKAQT9qLKPCFaDOJH9zdn10mJSUY\npOUMNElloNWa9tuhhAsZuP7E+tMcS6Jb8yPMb6BeesIynMjTu3+jKTFS3lhb\nctU3\r\n=IPZz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"1a1b8263aa93e2e06350223ee3087b62c524c68a","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.9.0_1541640270094_0.9130455486537465","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"0.10.0-beta.1":{"name":"soql-parser-js","version":"0.10.0-beta.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@0.10.0-beta.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"5c644630441f2887e29152650cdc76fd957c45ff","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-0.10.0-beta.1.tgz","fileCount":39,"integrity":"sha512-gO4O0yhGoFut4xYA+pGo6/7ONwtv/FcMLNf9cKG4KK4ClAJeyXu+u0gVKt4Tw+ls3ilxRvkr9Z/6BKKJVXh9xQ==","signatures":[{"sig":"MEYCIQCKHNwQkoXIwCw0TxDRZc8euqlvt2TK39HRGnmVJQB/AQIhAIGH62EQclQKm+wGpdEkgp+p/wZ6y00KHV1/95CIsbOD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4211105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6MkgCRA9TVsSAnZWagAAuR8P/35V6edjXSAKZZinvxXw\n+RoL2OuO0p7tYalZtsX327sCfWSABFy8Hw9RJlAH47HwSrIoSXqMv5lUa946\n4wH8Mnw1RAaP76nbYdb1WqvpaoC6A+WLQ8rFxSiRDSKvoajYw7yGnTMKsZ63\nA36SkrFN++zq2lMF/451r39tbjYhK4r+gmlw6wPt4NA+6ZIGSxBw3rB1HURz\nR2YYyhnSDhxn3+HfWsQ+351K4wCdprJuUoBdvukZOWilNU01KpII4854Q99e\nLoBSf3dwzll96spBXRlIGJJDCYBu6lKauAcaq09oQE9Iyk/tDvxkEOqlDNTD\nNWZZZMsL9GYZwp37RIlhOF70xwjzZ3OtS8a9Fi62QMh7e9wb5wx0+iCMK/aT\nAIAfVUOsiFQR+OCYbvD4HRvy3hcnCKuyZvlmUQjLUw80Rhyh3TabcaA+5BAg\ntx/aCmdrKs7GULfW3ZhDFsRO8S9fytIaZrnxC66qh1Ruct1iMaj6KMe5GV9a\nHyuK+lc9JTnDI/EkSSD0RSIpSxx7qjytbEpNLh9zxDafMpjWqRNEyJtBuzst\n/lc6IMcjZJ1+aVe3goMgM3UzzSugtNrBdKl7QiW04++t0yVRPm0Q1XT5Rr5F\n3TSN+rbiCBh8hvGOnMDsgCqI1M9RZIAjznDh2eEV8gu/hKQbB7t5NHSe/oGz\nx8c7\r\n=bxcX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\nSOQL Parser JS provides the following capabilities:\n1. Parse a SOQL query into a usable data structure.\n2. Turn a parsed query data structure back into well a SOQL query with various format options.\n3. Check if a SOQL query is syntactically valid (**note**: some cases may be structurally sound but not allowed by SFDC).\n\nThis library is written in Typescript and all type definitions are included with the library for your benefit if you choose to use Typescript or use VSCode's automatic type checking.\n\n*Warning*: antlr4 is dependency for this library and is a rather large library (~600 KB) and is required for the parser to function, use in the browser with care.\n\n## Examples\nFor an example of the parser, check out the [example application](https://paustint.github.io/soql-parser-js/).\n\nHave a look through the unit tests for many more examples.\n\n# Usage\n## Parsing\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString, options)` and a `Query` data structure will be returned;\n\n#### Typescript / ES6\n```typescript\nimport { parseQuery } from 'soql-parser-js'; // TS / ES6 imports\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst soqlQuery = parseQuery(soql);\n// const soqlQuery = soqlParserJs.parseQuery(soql); // using require()\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n#### Options\n```typescript\nexport interface SoqlQueryConfig {\n  continueIfErrors?: boolean; // default=false\n  logging: boolean; // default=false\n}\n```\n\n## Composing\nComposing a query will turn a Query object back to a SOQL query. The exact same data structure returned from `parseQuery()` can be used,\nbut there are many use-cases where you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\n**Note:** For some operators, they may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query.  Look at the examples below and the comments in the data model for more information.\n\n\n**The base query object is shaped like this:**\n```typescript\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  having?: HavingClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n```\n\nThe easiest way to build the fields is to call the utility function `getComposedField()`.\n\n### Example\nThis is the query that will be composed\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (SELECT Quantity, ListPrice, PricebookEntry.UnitPrice, PricebookEntry.Name FROM OpportunityLineItems)\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n```typescript\nimport { composeQuery, getComposedField } from 'soql-parser-js';\n\nconst oppLineItemsSubquery = {\n  fields: [\n    getComposedField('Quantity'),\n    getComposedField('ListPrice'),\n    getComposedField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getComposedField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\nconst soqlQuery = {\n  fields: [\n    getComposedField('Id'),\n    getComposedField('Name'),\n    getComposedField({\n      fn: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getComposedField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored in composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n\n```\n\nIn the above examples, we made use of `getComposedField(input: string | ComposeFieldInput)` to help easily compose the fields.  The input expects a string or one of the following shapes of data below.  An error will be thrown if the data passed in is not one of the following shapes:\nand will return a `FieldType` object.\n```typescript\nexport interface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\nexport interface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\nexport interface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\nexport interface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\nexport interface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n```\n\n## Checking if a Query is Valid\nThis will parse the AST tree to confirm the syntax is valid, but will not parse the tree into a data structure.\nThis method is faster than parsing the full query.\n\nOptions:\n```typescript\nexport interface ConfigBase {\n  logging: boolean; // default=false\n}\n```\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst isValid = isQueryValid(soql);\n\nconsole.log('isValid', isValid);\n\n```\n\n#### Node\n```javascript\nvar soqlParserJs = require('soql-parser-js');\n\nconst soql = 'SELECT UserId, COUNT(Id) from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z GROUP BY UserId';\n\nconst isValid = isQueryValid(soql);\n\nconsole.log('isValid', isValid);\n```\n\n## Format Query\nThis function is provided as a convenience and just calls parse and compose under the hood.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, { fieldMaxLineLen: 20, fieldSubqueryParensOnOwnLine: false, whereClauseOperatorsIndented: true });\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n### Options\n\n```typescript\nexport interface SoqlQueryConfig {\n  continueIfErrors?: boolean; // default=false\n  logging: boolean; // default=false\n  includeSubqueryAsField: boolean; // default=true\n}\n\nexport interface SoqlComposeConfig {\n  logging: boolean; // default=false\n  format: boolean; // default=false\n  formatOptions?: FormatOptions;\n}\n\nexport interface FormatOptions {\n  numIndent?: number; // default=1\n  fieldMaxLineLen?: number; // default=60\n  fieldSubqueryParensOnOwnLine?: boolean; // default=true\n  whereClauseOperatorsIndented?: boolean; // default=false\n  logging?: boolean; // default=false\n}\n```\n\n## Utility Functions\nThe following utility functions are available:\n1. `getComposedField(input: string | ComposeFieldInput)`\n  1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n  1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n  1. This provides a list of fields that are stringified and flattened in order to access data from a returned API call from Salesforce.  Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n\n## Data Models\n### Query\nThese are all available for import in your typescript projects\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  fn: string;\n  parameters?: string[] | FieldFunctionExpression[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n  from?: string; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  having?: HavingClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: 'ASC' | 'DESC';\n  nulls?: 'FIRST' | 'LAST';\n}\n\nexport interface GroupByClause {\n  field: string | string[];\n  type?: 'CUBE' | 'ROLLUP';\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n}\n\nexport interface FunctionExp {\n  text?: string; // Should be formatted like this: Count(Id)\n  name?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameter?: string | string[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n  fn?: FunctionExp; // used for nested functions FORMAT(MIN(CloseDate))\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n\n### Utils\n```typescript\nexport interface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\nexport interface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\nexport interface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\nexport interface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\nexport interface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport type ComposeFieldInput =\n  | ComposeField\n  | ComposeFieldFunction\n  | ComposeFieldRelationship\n  | ComposeFieldSubquery\n  | ComposeFieldTypeof;\n```\n\n## CLI Usage\nThe CLI can be used to parse a query or compose a previously parsed query back to SOQL.\n\n**Examples:**\n```shell\n$ npm install -g soql-parser-js\n$ soql --help\n$ soql --query \"SELECT Id FROM Account\"\n$ soql -query \"SELECT Id FROM Account\"\n$ soql -query \"SELECT Id FROM Account\" -output some-output-file.json\n$ soql -query \"SELECT Id FROM Account\" -json\n$ soql -query some-input-file.txt\n$ soql -compose some-input-file.json\n$ soql -compose some-input-file.json\n$ soql -compose some-input-file.json -output some-output-file.json\n```\n\n**Arguments:**\n```\n    --query,   -q       A SOQL query surrounded in quotes or a file path to a text file containing a SOQL query.\n    --compose, -c       An escaped and quoted parsed SOQL JSON string or a file path to a text file containing a parsed query JSON object.\n    --output,  -o       Filepath.\n    --json,    -j       Provide all output messages as JSON.\n    --debug,   -d       Print additional debug log messages.\n    --help,    -h       Show this help message.\n```\n\n## Contributing\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n\n## Special Thanks\n* This library is based on the ANTLR4 grammar file [produced by Mulesoft](https://github.com/mulesoft/salesforce-soql-parser/blob/antlr4/SOQL.g4).\n* The following repository also was a help to get things started: https://github.com/petermetz/antlr-4-ts-test\n","gitHead":"d925dcd0d8f10b6b160d42126d131f43dddd6446","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_0.10.0-beta.1_1541982489321_0.9336089257326166","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.0.0":{"name":"soql-parser-js","version":"1.0.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.0.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"7b29d800171c85b5e6d8435f1dcb162655953f42","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.0.0.tgz","fileCount":39,"integrity":"sha512-x252Ofuf4nbISZk7e4dIYL3LEUyn9AU9qn4JId7ebXlqyqRQxsf+Tvy3wjKYhwSpZPnOKZQW09fsyvsgyG3tHQ==","signatures":[{"sig":"MEUCIQD6bOCbdRNcBAI6Or4p2OV4wnXCWbkSoW+nnugzp46SkgIgOHkFcuClaCwxDmwb0WKnkceHqCUqvgMLVKxzWzHddDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4229160,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8g5MCRA9TVsSAnZWagAAMkEP+gL4V9jfRiJ+03ASZzX4\nUBLMzxZRdXWR+TkqREjioXRRR3MHUXQaFKmduOTQgc6jWiNemnG/CkbPH4Uo\nzXBm8fbc9DwT5+xbyvyYeAoKMMhVIAbB+S/y0wL8pCCKJbJnUsXUqhaQm6Pr\nCnYemrhq9KSqDCWkA57iaJF0Lhe8htI7vyIYDdNzz/FNrUZnP+WQ66n2BleJ\n5iTbcKx+6IyAt+87JJ9/ucIsJjCZKDYDs146+7D1I4m5c3WLfUC8dIuH+1Jp\nhdlODNzeXSJCAfm2Dc/8ImmsiqLm1sZhmlIbTmLk4q9Bb2nUDvggpgP9O3IE\nzMX2PNT/aqmv8C+n4HvJ5fBC+1jpd7i3+fTpOSGbNraWCO85oIxed7+BqPS1\nw9xp2SecL2qsWe8MRffLb2xVGWm8cZf32V2kTtVuWVyDHllKUKBoxlUCMokG\nVaJuQyoOvjI9vmg2wyHVihHGcU1b/4sbkMKUzUh34/Jwumx//l5shDmAe0LW\nIvnpabGPp0B+u5bWNRnOJumcyLzyD3DDlkzm69cnlf1+nx4f8UfZAi8WJpHk\nMjhmkvbsCuBHQNCRwRrwUGUi7uQ4kahhXNJBz4AV3kku2+SPQmFR3C7x4Vnx\n6iwt8KnDDl96wrMOw+0CwrNZCfZFxswmh263AGw7zQ1D67nozReI82uGlAGX\nvUpN\r\n=nkSS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"a27f2fb570febb1613aaf73a1981ab5672502157","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.4.1","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.0.0_1542590027419_0.2708882569334179","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.0.1":{"name":"soql-parser-js","version":"1.0.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.0.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"0b4cd825d77b6456912a6a7e24ca260a7d80af81","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.0.1.tgz","fileCount":39,"integrity":"sha512-ujbhAg8A2Q20+zuDajSiwDl3PutMWwM92xycEjobG4EI/2hG+arFCnJH5rTFu3y0VHuaHb3kyxqdX9iAyMFD/w==","signatures":[{"sig":"MEQCIHJr69GLi72xAntNx0nPgHZx4DpBHPfYG1qxD/iv6GDmAiAivz96r6JoEQ2WQ/Q6/lV5bxC+/X7kt/DNrT73RewefA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4230862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXNevCRA9TVsSAnZWagAAaiIP/iI17ZYjOFPnhLSASxcf\nqa6452PZtFrz2/EMC3S+dSom+PNPDbrqalYZy7XalhIH0d8nITG3Ng2oDsg4\nl1hvCvQ3gINDiTHzVL+JGC+kWvpeAdZ+hj2ovbUg4e6blrvAlLoQUGRaLEMC\npsjBV+zmiEcyLjQO27oPyzx4I1ligo8FFIsH0adR/lbv4751QgSAHuxWkZwK\n6wGgz33p9sPWPx3X0GRrcZ2QUfFDG5xGWQUh2iv4JHarOMlV5j0tT0fU8OnO\nrMafCqi1DqpMJI9cwudT+Xxvvschta9eoeHD7BWn6L9aCvC2vP6XOS3mQP9w\nnC6VYTnBHc1cL/HCmp5ykK5Fy0ma9KtZLc432EN5ddiuNz1Yfhp0biarOu/4\nywbnT+M9cI1sfuzqSGTnOO4PwAMbJcy/gPw3TCY1CS7p8A9yj04pYQlOdqfb\n59kUpB2fyFJ8dLqOGH+gbwPY92fuOp+KHvEBSZdy9igxmhoWjDTvzD932Qdn\nmHGEZ6lFmoitrvCaXWNWAdiqhuQMHyULXkVQtg34sOSspm5AiM5huGEFpnPm\ngHsWjFJbBFj80Ch/lxAlZ+3eVPUwjZclPMvo/M/TgeylBYZZ2Q95oiThfemg\n8bIC4AxsPHg+82arc9p6xe4SLlBbhUcp0IbyXH9tSUwVlCeGfSDskJKukgnQ\nEs6/\r\n=cDbs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"0909f1813a1d7077ea5bb6e0dbde740fcc0defc3","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.5.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.0.1_1549588398399_0.4618222255685607","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.0.2":{"name":"soql-parser-js","version":"1.0.2","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.0.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"75a44c8b2abf45ae548b177a00fbc8d07bbd9256","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.0.2.tgz","fileCount":39,"integrity":"sha512-YDZEC3C3J08P+EhZBJPCgWLbzG6EH+Ef06w7M2+0vgPFr043TiCNSAcRzuNNrD8Zf8RPjkMyCdoolkK1Ra7FgA==","signatures":[{"sig":"MEYCIQCVAHbqEsIVwZBvgv0YTz3gT7bJuK9FQYapIiNSRMWxRgIhAKPpfbnRBRUyPDPgdDEoF/oZfrUws1qk82VWZAhDslj8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4231203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5KtcCRA9TVsSAnZWagAA7LIP/ArCHB0UhcXVbkIOZYEs\nu1DK9ycS8UN+nMtj4YC3dljirvUPZkzs8OvqWhwxfoZ+PZ9Aj9+Gf4nzLbVh\npWGtIRJ7XuugHF3fAqy+sV8vR/Abw9/M0/wCn+L5d5jfKP8pdMRd00mWmMj2\nf+JxTpy9AB0THgJ1OOqEVUCU1D8B89/xlssj2XodYOc1UI1wZMxMULews5e0\nN6r/pUV8UpvsaY0i87EyE+0FbCreRoq2yYsH7rGogAcOCgxXkE0zXZH7Aq2o\no+Ynh1EnGGFxGEbmN4hapT8KdoyCPpkBG5Gvq0W9zChZQyr00zQBoo6+P45w\ngBiDFjm2jL3gO5HPheF4UtnHdN0eMyiBxfYGq4i9gi+ymAZ/dvh3KzqqjNKF\nvXRTgKNsgAuoRsezUKhfRpiBFwRifKrD2twcQT6Iaw8RUPm8egd8JGuiW/7q\nky+II3W5y7y83HWAoB/GNlcTc7hO4dsNAYFQ6PNm2QHZOilK9pUr3phFQ+Lv\nKL2ZALjpffoCu6u20HNuIUFVMhswnfK6oJ9pKJVI5ec585C7dhsAodVOSCFH\nJ5lXt82F4M4LxA9p8tqntWw6Wj94I1FF3G7tdtkog1QTWAjf01N9YcmHfFBY\nTOnvqW1dTo7M6vbKvsFU3De+KPzSMbo2A6/6diRo/8EsOmyuUkOSAtzazfSm\nu584\r\n=FQmw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"47e8b7f18a3e1bb45e44d6d460af73ad51175ce5","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"antlr4ts -visitor SOQL.g4 -o src/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf src/generated/*","prebuild":"npm run clean","build:old":"npm run tsc","prebuild2":"npm run antlr; npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.5.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"10.9.0","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^7.6.1","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.17.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.0.2_1558489947617_0.09852320540618309","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.1.0":{"name":"soql-parser-js","version":"1.1.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.1.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"7ba6c1a264b4a370df696e0b898a394eb20c665d","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.1.0.tgz","fileCount":42,"integrity":"sha512-RNiaXKBrvPMPFo1pexr9U6iePbtL3gdmvYePuKKdvHJwppaenCGxGcyo/eVh9whcdIMmmDt977ebyRBcOnK8Ag==","signatures":[{"sig":"MEYCIQCers+SnLJeqlNg+z06uK2D2BucJwgZ9Wa7xpCODQ82oQIhAK/zz+pR/BVuVk/3MwSJK40r8vJk/iXvPn+48ehyPfwY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4283383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/xajCRA9TVsSAnZWagAAfbkP/i8fkPA71of3sBCOZ0oN\nEwt5C7/PhcpY2aJyTmtf2bGh+9Xk/x8I3MHmLj2L5WqcsklDHV011m1acsIm\nfVu9ZtKGe6JVBaLwvSURwDSnxhDZQKa/Uqsghk0J2XjulEqUmS2idIXOMJy8\n+LZcwcNTL38tzE8IWVVP4YivlzuslAThd+a4kJ9NyHPltjT8Rpa6gKX4lQTo\nfH+d0WDqUnT98RtS/6vMsSyc3kkf2xZYchEP2fQJYAL/xqf7IPSUsKu6352c\n9Bj2cJxmD947UHj/wMbsXrdclNA4vFFZdUIy3BYpBPmeJM17XeC+p8amQCiT\nx83iQvJdqKeQusK/iHRIiDZ87Ktrr4r6o5gDUO+DBcrrO5KaTdOpEhkFLd76\nqrHrdV+ri/8PByTx8zBRhBWIDPYZbuEPrQ+nZuSLQ4AjKLkG/wLvgdRyBHfx\njNQPgyDYA+UG84N6ry+tCsDrsxAqxHHVEKWKXdhCrFNPtBvKA0az3LMogDwe\nBTkTZoYGZjD8ZMfSYwYDnlMIAnDbSy/TjEcFAbyBGsmRuHV50+zUHSpI0p42\npjqaax4wXGZ9Nr34MeQCYd9P5zrMxstpOq30z6nwQ26XYHC5C6M1y11siWD6\noPMsLkg9/Q93IfKuhVQdXJrFf0MiHw7W9y3N0p3+6fAC0glTb1g3Le5BKSFa\n/Ol+\r\n=8lzf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"9be492f1b17626bec4874d6a69980d78b2b89e72","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"npm run preantlr && ./node_modules/.bin/antlr4ts -visitor SOQL.g4 -o lib/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf lib/generated/*","prebuild":"npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"12.3.1","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^12.3.0","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.21.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.1.0_1560221346113_0.7326473350905911","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.1.1":{"name":"soql-parser-js","version":"1.1.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.1.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"21b2085c7d33afe94261f4ba1327e044c4963daa","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.1.1.tgz","fileCount":27,"integrity":"sha512-TCC9uhqibrUstmnJgx0JoqfwCmHmINvRmZG9yjxWAPTegC5YQjdcZ+c4aCyJ4HJrNx4PaZQP0CsG0zBOwOJTSw==","signatures":[{"sig":"MEUCIQCyxV0p/a6oligHRWD10OxrO/wCRu9VH3U0ZSs+KhlA7AIgftuH7VZz6Ht9Q3dIsBKJGQbLpRj2yQ9lWzGAzWklJSI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4205923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/xoVCRA9TVsSAnZWagAAP1oQAI+E3FJQiUZS2ba6i4R7\nXSVSdTvx1Qer6ewdAOWgcTvBsSdxk3Va7TuoMH+i9SpXXkXXLPiB4cDkdmKt\nDzobaxmbZnMcNWLPz4av1FOcYVYqLLBZMX+Qvb63lLAaGwyHb6zHRIy9Ji7G\nn9j36P4ye/WZ4ZY/D1XOp2SnpC6GJzNaR6Rg2MMqswJHLRE9JzzMEukCWLvK\n7hJiLQ1uGPSYyWrF1Sw3isv8DS1XRMjvuq/Gs5ZMZw4y4Do73ClnzYBtQvUF\nJSQ3BfkD/3Xx5065MHIYNdKlWEbOmwL/7Ek3P+4kH3hJkL1pk8naGSywppbc\nkTMESICdqvbHnHAskyqB1RfHFBLNC3Makn1Iqnf2+VhL+nmFgPCHS+yZUe5G\nGRxpt8UJwIfCVInymQ42/JAEM2UDybTyaHduspIWmLm+bN4Z6Q2IW8hCZDHK\noFKrVmYhuiRYoj7U+vQGOYB/LW+vakoDlXqlzGVYcjrfOKi9wBlc3SaDbSoE\nJ6A2JSRAq7N3jvJ/UqCAPYJOiDdKG4TW7r0Q7oKp5VkOh04fSaw8tmjuClPX\noIf0ZDDqMZbAe/ZEzfOndikZyf25OfpE3RCjb0B3tlVsUXwY/rJEgbCG1wCR\nQo7Exb9Dpjz0xMRunZCiOuNgMBOmTvP+1lEg/HvHfH0yDGxFZkMbWcEnF5+R\njFqV\r\n=ar+5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"e4a2eda760354694c865134ef97976daf413ad72","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"npm run preantlr && ./node_modules/.bin/antlr4ts -visitor SOQL.g4 -o lib/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf lib/generated/*","prebuild":"npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"12.3.1","dependencies":{"antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^12.3.0","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.21.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.1.1_1560222229108_0.4632277519104109","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.2.0":{"name":"soql-parser-js","version":"1.2.0","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.2.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"05219508b7be1fcbc5528e56c64acce2e2eeaf67","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.2.0.tgz","fileCount":27,"integrity":"sha512-Rf9K/B2SAhXgkVRbdSkFvWDailJ5FP5JV261G7a6jKQCQEf0Mj7ptPsZOiUIXKTqztbYujGBKqFYyPdkIQv04w==","signatures":[{"sig":"MEQCIAflN5pPPVswi/QkoI7oFVCCTQ+m+piSsKreqnWlxpKoAiAFdLOOwUEtijWiDeuuZOXuROdbMujlLgctewSwWHSSHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4210403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdKmT3CRA9TVsSAnZWagAAO/QP/1k5ZnXF3oL9gXiDh9Tk\nOfx5WRY4nuzr2JAOUXOOjqDUYP72hEeNAbQJxnn9gxfEpszb9oMsUPjTY6pt\nqrg65snD4edXqP0hgoGtPz9XNqAJ0dHn2zwWaARJ1VZBdix5njw3a9rE8X2q\nhfQnqWDVunpgK8KZTm8UXqQjV4R0hVUtVXiW1uthSud8Pz5ZPxVeC+cGQTIn\nP/FGAkOkW0n+zLk+l2POW5PQwZW20dSD86WPAsT2IcMx/jZEYHGDStQgCNUT\n4rjru/VuVhOYXs69+00A6SvAgNENa91w5yHyw2TdJ5+HKMWoreT71clLkO9a\n2fetuxe3gJ/MFs7deogBQc94c5HuA1GXpwA3r6ZfEUDIvA2fQGgrzzk13H2C\n0FglxIKYU2jYIxMRGZUa9bHSEJGdalFE0SzK/iiZmfeqnCDChqGrU8pXOC9m\n6XcGHr5Kd6c7X7dL685tZfAlGcT39RuqI0HRWf0qfvhETKBS0I+DMbam3xC4\nK0ho2k5J44aCJ0o1K5wNTxYdIS3zbQo+R4TjppMj8CH2+lVjEpJJwYBAO0DT\nuy7wS/+yOT3oImU/KoI/JX0YeXtY4+oiYdNxri3VRUs+5x5Kbm61YFn00q90\npFiRfijtJf7WNkk7LpXTevtACCvcybRhNg9lHXflx30QUTjlxBNnsKcX0GGN\nHfZt\r\n=P3NX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"411aa448926c36c2eb137193dd31227ee230d870","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"npm run preantlr && ./node_modules/.bin/antlr4ts -visitor SOQL.g4 -o lib/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf lib/generated/*","prebuild":"npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"12.3.1","dependencies":{"lodash":"^4.17.14","antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0","@types/lodash":"^4.14.136"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^12.3.0","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.21.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.2.0_1563059446161_0.6970074772096115","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"1.2.1":{"name":"soql-parser-js","version":"1.2.1","keywords":["soql","Salesforce"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@1.2.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql":"dist/cli.js"},"dist":{"shasum":"e5cf4128225803aeefc3b31b278ef940e09d65e5","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-1.2.1.tgz","fileCount":27,"integrity":"sha512-jYio/rX1Guk+saSRKaRjBLtQrsi7XxZpDquwpfOhEXqAMp0dQN/zTIsyjG0n1m6z0YrxR0OLkmjXQzFPqsakFQ==","signatures":[{"sig":"MEQCIEScoN4t6CpVjMJtnTbRt7zbcrGqMP2hYWHkkpgaD/90AiB5llDZGuPImMk7NZFzEfxnjmoCmNsS4wt/HMyHbBq2Dg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4212780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMmkGCRA9TVsSAnZWagAAf9kP/0LrKdZHPIENchSpkkML\nlCbBKlXhlrwR4zSkGyO3QGvw6y2QAJxELD6Pf3YmlHd5USDI1AnWzWZ9V4TN\nguWeqBXlk1ohTk/crreO/jFouXn6rwkjQ/hXJgkPG3o0jpts3mrs57+MYgVE\nNZUGkqe64Ue13pJfWG7pLt4gAcQZ0qwNeTeP0I3VsZ5rsI3vdVwVidwvNZjg\nmTAkVJO1dpzckv2vY/lKLU2uCTLaR5oYaFrV26UQQhMkdVbchEqH2WqXdoxJ\nhHJXmNjhDjR81dQuCf135OVzcs1NvPZu2IiPDlDcwAw7jVbGGS8k9vWZcefw\nO10gcmB7egsDhhgswjijhYO835X+2GtGbCRjDdxYEnJT5PnyuvEAP+kN/Y8u\nqRHBap0l7zt9ZBFuO8kuqx+WPCqZ8WrTx85MgFP8R2QyeL+TU2EK/fYvYIYB\n+QyvsRkY/1L4zwntfdhn3RLw/KiyLRYD8hqt5/sMg2AyHpCV/44qB4G4W8xI\nFcim6hnz+xHDXoTUQ/HTXJ3JAS1+lw9SUxFN3zWFImkmqNH98TVgsoc0wN6/\n3f9Aeme+hdJG0Ko04R2d7IOCUYQYYiZkZ8VKNDtlYi5o6MZQWEcUnl9vYVEB\nB53vMRyjdQZ9w6Pbt5ri4G1k+4/JaWq+L9KWZ45QBrckbYrcA2Ffks+AmehP\neFDp\r\n=Lfek\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.es.js","gitHead":"5b20ca255da60582b423d434cea22972138abf4d","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.test.json\" mocha -r ts-node/register test/**/*.spec.ts -P test/tsconfig.test.json","antlr":"npm run preantlr && ./node_modules/.bin/antlr4ts -visitor SOQL.g4 -o lib/generated/","build":"rollup -c","clean":"rm -rf ./dist/*","debug":"TS_NODE_PROJECT=\"tsconfig.json\" ts-node ./debug/test.ts -P tsconfig.json","release":"release-it","preantlr":"rm -rf lib/generated/*","prebuild":"npm run clean","update-docs":"cd docs && npm run update","update-docs:no-git":"cd docs && npm run deploy"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser.","directories":{},"_nodeVersion":"12.3.1","dependencies":{"lodash":"^4.17.14","antlr4ts":"0.4.1-alpha.0","minimist":"^1.2.0","@types/lodash":"^4.14.136"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","mocha":"^5.2.0","rollup":"^0.66.6","ts-node":"^7.0.1","lodash.get":"^4.4.2","release-it":"^12.3.3","typescript":"^2.4.1","@types/chai":"^4.1.6","@types/node":"^8.0.14","@types/mocha":"^5.2.5","antlr4ts-cli":"0.4.0-alpha.4","magic-string":"^0.25.1","@types/minimist":"^1.2.0","rollup-plugin-cli":"^0.1.5","rollup-plugin-typescript2":"^0.21.1"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_1.2.1_1563584773530_0.19186236587239258","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.1":{"name":"soql-parser-js","version":"2.0.0-rc.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"deeca1e01ec39126edcb88152dfd0c44f98709e1","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.1.tgz","fileCount":15,"integrity":"sha512-eUOOa4N33xkJQXPJZxmginYyJq2PSKPimTdESDIXg87lO6xqKxkOjV/VZAV/Q5X0drxxGs2l2BWcr94fIE/wNQ==","signatures":[{"sig":"MEYCIQD/gKuRbP7q0lvbOxDqFcJycN3MXZEw1MRICGvjZfVhPAIhAL51eWqQWRqJWvGkjj2BI+M9JxShpWIWc6v8c+0Mfhtt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":667270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkUCRCRA9TVsSAnZWagAAd4cP/2ILmJDugX1AGu77y3KG\nt640RKDdn4mx/oru+QkRmjC8EaP/sYVlX0PWrSFkyoZuO2JnhgI5GzeRzB0n\nhxaNRDD64PfNXmWAgVnW3WeLafxXVKCbRTAXO/muLsQ0BdsPpJ1kUOINdgQz\nPwZScpua3nyJ4bn+cWJb3ljn4AHBdwa4rxcHxGjOgVeXzdYn/GYIMMWobWCt\n8wX3xX2d9gQMsH8ZEdL5hYY10jkXXuvdE45qhe3Za7TrN5trezVz5PVgwcup\n0l+1rzv+IElR1ZjFGqreJk8taWnzz2entrpqd4z7HnVofWoZCh3lSgI6Nt0V\nF/AUNLR+JrDhdGtSRNER3hYazDCk6V4+I4pLvBP6CrvXc3SGJgHE50uWAHBn\nevASNZvmYGok0Jigwa4bCW4DJphefDQBnuTuTLaPSuwqkHwqF5lKGietNiQN\nIumaLPRJlzFa/xsa/Gw6wAAEOTQU5UQKAPkgHkOA6DnE9CtX5rZ45gzV7WF0\nIbuvLIul9rfFNaLZRjBM89nBL4LTQWvECjxcHX9L/6iHTsYD4HZ6FFhHFL81\n4NI1N/Wbk7FrywRNwtueiOJ1Fg/SfR93u+TPaA5JZQtp852MifVR2iJQYTOv\n4mkl7KCR5+t4Fj+5wLJmAc0/U4HgGm2NHUYudTGAAtgp4wisFIUfjB8SJdWU\niDTc\r\n=2xpd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query                                |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query                                |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType = 'STRING' | 'INTEGER' | 'DECIMAL' | 'BOOLEAN' | 'NULL' | 'DATETIME' | 'DATE' | 'DATE_LITERAL' | 'DATE_N_LITERAL';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters?: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n  literalType?: String;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // Should be formatted like this: Count(Id)\n  functionName?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n### Compose Class\n\nYou only need to interact with the compose class if you want to compose part of a SOQL query\n\n```typescript\n// Instance Properties\nlogging: boolean; // default to false\nformat: boolean; // default to false\nquery: string;\nformatter: Formatter;\n\n// Instance Methods:\nconstructor(private soql: Query, config?: Partial<SoqlComposeConfig>)\nstart(): void\n// Pass in part of the parsed query to get the string representation for a given segment of a query\nparseQuery(query: Query | Subquery): string\nparseFields(fields: FieldType[]): string[]\nparseTypeOfField(typeOfField: FieldTypeOf): string\nparseFn(fn: FunctionExp): string\nparseWhereClause(where: WhereClause): string\nparseGroupByClause(groupBy: GroupByClause): string\nparseHavingClause(having: HavingClause): string\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string\n```\n\n### Utils\n\n```typescript\ntype ComposeFieldInput = ComposeField | ComposeFieldFunction | ComposeFieldRelationship | ComposeFieldSubquery | ComposeFieldTypeof;\n\ninterface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\ninterface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\ninterface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nfunction isSubquery(query: Query | Subquery): query is Subquery;\nfunction getComposedField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getFlattenedFields(query: SoqlModels.Query, isAggregateResult?: boolean): string[];\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"cf108555f819f2c3b5cd6868a4f7d4ac1968a092","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.1_1569800336665_0.29754513371513336","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.2":{"name":"soql-parser-js","version":"2.0.0-rc.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"ab65040d484776d3c7ddaf94dfaf5cca4e4115bb","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.2.tgz","fileCount":37,"integrity":"sha512-3G4aBuMV9Ojd/tBFOptWDgkJY8Llp9zXBP3K96mWEGUgt6np3+7Lekyq6hTBcXe3iY3/HQiK+xqcbFL6zxbb3g==","signatures":[{"sig":"MEQCIEs2ZKctCwOhIPgjYhBag932jjp2dRy+4oVUKgMsuxsXAiB/Ow53ZRCFtz02WX6uI4YdiaevTIthFqntcT3rXZaNGA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1022894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkUOXCRA9TVsSAnZWagAALP4P/isC+M4AftT3ei6kjkWk\nA1UgjK9UMdAldDHpGDHW5kpHj4TdPjALCjkKIRK10sm8lHrTc6gP68hGxR8/\ncJETqp0JvindvWWmNffA/+owhKa/uLMVLw+ey0AS8VALNgRF/2NItC931LK5\nGtkRtOdIZH/AIwt0h5aFxSi8PPs3HEGOXUsILpztE1XzE15xeIIOCBsfXm+B\nDTRdQuQugPd3+7V5g1vu+zDAuU7t4RHBH7aDrGbCcTbMHzuIiDykQnkwzttU\ne/sLlDaJLox2WtQDZLSPL9rwHk0aO8tp9yoPWTiYkoOPeVUCB7zFynMNRaH+\n5ZwBGYzQmkX0zkNwwvsnoO/9ouDnGegzL7wOQvPcyIXrALyTnhEymrgxSIQ0\nqyJfbWbvlHVnVNTOctItvCMQaihjBDqm1BinvfCisfBogHlp9IVjJ15sXHsP\n8Dd1K6Kj8p35pyASNB8/AoO+lF1j5gWQDkZdICxUYAy2bVBFYFbhqKemv1hR\nAslaNDsE5/OISuVXQgCoaGL2mxwdPhXlQGzbzPRF5T0uMhvA55qg1CFUB6Ah\nLfAkJFwLQI9CFhYUFI/pUgxhc+9Y9Wiqrg6KRu6YwzQyl07HVm4Ytz0Ywh5q\nKvJXXIOUsD2mst6UmdcMa/umKUBmpy3xUir1PBa1AUdZkAY9qjReThncWwqn\nsSPk\r\n=PGF/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query                                |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query                                |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType = 'STRING' | 'INTEGER' | 'DECIMAL' | 'BOOLEAN' | 'NULL' | 'DATETIME' | 'DATE' | 'DATE_LITERAL' | 'DATE_N_LITERAL';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters?: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n  literalType?: String;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // Should be formatted like this: Count(Id)\n  functionName?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n### Compose Class\n\nYou only need to interact with the compose class if you want to compose part of a SOQL query\n\n```typescript\n// Instance Properties\nlogging: boolean; // default to false\nformat: boolean; // default to false\nquery: string;\nformatter: Formatter;\n\n// Instance Methods:\nconstructor(private soql: Query, config?: Partial<SoqlComposeConfig>)\nstart(): void\n// Pass in part of the parsed query to get the string representation for a given segment of a query\nparseQuery(query: Query | Subquery): string\nparseFields(fields: FieldType[]): string[]\nparseTypeOfField(typeOfField: FieldTypeOf): string\nparseFn(fn: FunctionExp): string\nparseWhereClause(where: WhereClause): string\nparseGroupByClause(groupBy: GroupByClause): string\nparseHavingClause(having: HavingClause): string\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string\n```\n\n### Utils\n\n```typescript\ntype ComposeFieldInput = ComposeField | ComposeFieldFunction | ComposeFieldRelationship | ComposeFieldSubquery | ComposeFieldTypeof;\n\ninterface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\ninterface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\ninterface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nfunction isSubquery(query: Query | Subquery): query is Subquery;\nfunction getComposedField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getFlattenedFields(query: SoqlModels.Query, isAggregateResult?: boolean): string[];\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"e79da934533493a1772a16e0c6674de108a5f1e7","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.2_1569801110922_0.3074065729438744","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.3":{"name":"soql-parser-js","version":"2.0.0-rc.3","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"ce2514615dab697ac2d2282700a789c3b210bb7b","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.3.tgz","fileCount":47,"integrity":"sha512-fGtTiFlIfXRwDdWufxrzr1S2u1VuI7rgWhlCzaP2ZgKqFqfGXBL33LnMMj1t7cSt/0yieMpNvHye8hdaRD63QA==","signatures":[{"sig":"MEUCIQC6OoSb6i8zpyKiQOWHrPwnhMCy//4DIUGXYxs7M3ejWQIgSpQZz1ddMoMptk83aVliUkn+TLts3CqcrVMZPxvii60=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1123074,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkW48CRA9TVsSAnZWagAAOIQP/A3MFYFY6ivqK3rx+cG5\naASwQZUXkMFKzi3Fj5zMK42Z6oCHdzLlOuSlX5h+oS59/6PsXtYxyGog1Exc\nM8WYuCCHRLaiXd4tdz3oPVa/hJDijdGxG6Gc1WL6pUeIIcY1gfNzIRueCdXO\n55xutefL12m20JlicYtwhzgkseiSDQ+UaGX0cgerWo0EmW2kPDpywplKmLmb\nBW/jsUeA+SWrQDf6KGT09+9uejzrfUXmwttyaJYgDeZPaAgAV+higonqicnF\nl+mdi6up5rxTetamdl5hg5UnUpUONDTdi9iRCCStWerVAnTO+PyrijSbx7mT\ncDuPAtAL9tY2sdrpHWUjsCZXqhNYJxho44WhPKDQ658cfZe3iurutjSGtUUi\nGq81fLSEffFVQiSqQsTFCoC3nwL8lUfKcESu2/+NuDknBPsak1osYXsTKQE5\n36qJF3heemdHsKnky0vVuG5kUJUeF8xA/0nA3KacPe23tS7s9Tj0NPFS5niO\nBv+y2Mjhi0gNFEjY8RfDbcZD1NGTw1zlONBIZdOmbu9A8NiFzo5z2xCVv3cQ\nfXdPyYVwZJ+OOArz4oN36kMdYMdJBdfrUanMHLJLpkT0uMU7zhCa+Qy6rATj\nbsOjoAUZjQNYZ4OVz/EHaDrI2wi3V1DuVq9SP2we/lHDBzh+5PEUjCoYdF7q\npscE\r\n=IeoV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query                                |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query                                |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters?: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n  literalType?: String;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // Should be formatted like this: Count(Id)\n  functionName?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n### Compose Class\n\nYou only need to interact with the compose class if you want to compose part of a SOQL query\n\n```typescript\n// Instance Properties\nlogging: boolean; // default to false\nformat: boolean; // default to false\nquery: string;\nformatter: Formatter;\n\n// Instance Methods:\nconstructor(private soql: Query, config?: Partial<SoqlComposeConfig>)\nstart(): void\n// Pass in part of the parsed query to get the string representation for a given segment of a query\nparseQuery(query: Query | Subquery): string\nparseFields(fields: FieldType[]): string[]\nparseTypeOfField(typeOfField: FieldTypeOf): string\nparseFn(fn: FunctionExp): string\nparseWhereClause(where: WhereClause): string\nparseGroupByClause(groupBy: GroupByClause): string\nparseHavingClause(having: HavingClause): string\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string\n```\n\n### Utils\n\n```typescript\ntype ComposeFieldInput = ComposeField | ComposeFieldFunction | ComposeFieldRelationship | ComposeFieldSubquery | ComposeFieldTypeof;\n\ninterface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\ninterface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\ninterface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nfunction isSubquery(query: Query | Subquery): query is Subquery;\nfunction getComposedField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getFlattenedFields(query: SoqlModels.Query, isAggregateResult?: boolean): string[];\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"24f12c2a632705d5bc20ab59e3eba88e37560757","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.3_1569812027676_0.05483508808614279","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.4":{"name":"soql-parser-js","version":"2.0.0-rc.4","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.4","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"fa327ddaf3778782fecdce37bb2da84238945a7d","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.4.tgz","fileCount":47,"integrity":"sha512-ZgPo1k96PVXjZrAGNtaIvtNv0OZPMVk0lLQLY43+BIeSOmBuugOt4rdR8gePdJvXuueLRNhjBCCTbMBtlqPlgw==","signatures":[{"sig":"MEQCHx8oaigI29vYS4fnakldimg0zbMabqkXH76GSwibPggCIQCveXfnAtZ+tEXAifRQDf/Ts4AAecOJaee6fIrhKrVMZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1138264,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlB3cCRA9TVsSAnZWagAAU3MP/1y3mJ87YhvFhcVFQUyg\n8vtvrVq6tlTBScq2M2Ek64WdJtgUPhi7KP7EvluTIZgaOuJOU83n/8MlJsHF\n9pIluyA5pqs9iZy1yWT/YBVxWgxuTp7qQuiivN9PZkNx87zMSdenBLD5oh4Y\nhn+ySLkxuFUZARwfPmEyvF2Q1LvB5oJ/Kfte15MLwWkLmJ5RKTOVZIOVAjSY\ngq0Ek1TFdoKm4VlYxCQQhIm82JsNpDdfJiN+c5Qb2MiJPp+7xeaU8hwiD/Q1\nWhwDOIMw+Fes0cKS0kI/gcKtgLpUtiwnjwH6p5jPc6efPBgXwGfxSQmHyjXp\nHIORr62iF7E8GT8kP4jg2d7XJe1PHmQijPzj4KtGmrztHjUYjtdj1LDyx6Gg\nYxcnprvxa3egsPkQongE0uYL9KSKY6Pu6kbAny+vWMllwdVxw6bPurcZzLnk\nXx1G921oacmLO+fwKR8MJTj6AVVSS53aOo7UOZiX6xhJeyZOt657AF4cWMVs\nmHVkyA5PCMv4oP0X6mJlnmU7l6ZOE/B6A7hE7G+wzsTxk3JVcyfWP9emB7tv\nGHpluuM9Y7Fnktm3t+wZ6qxoa1f9PF85ve2kioB74krSNfEwUmmU+PLQq23g\nSEOlVgTnjD3u2Ya09djAnPHgqT4ia7SYWZM+jmuPmWuSBbbOY2R6CygmQJuO\nheqv\r\n=o1Gq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property         | Type          | Description                                                                                                                                                                                                              | required | default |\n| ---------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format           | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions    | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose      | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| useRawValueForFn | boolean       | When composing WHERE/GROUP BY functions, prefer the `rawValue` property instead of using `functionName` and `parameters` to compose the query.                                                                           | FALSE    | TRUE    |\n| logging          | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters?: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n  literalType?: String;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // Should be formatted like this: Count(Id)\n  functionName?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n### Compose Class\n\nYou only need to interact with the compose class if you want to compose part of a SOQL query\n\n```typescript\n// Instance Properties\nlogging: boolean; // default to false\nformat: boolean; // default to false\nquery: string;\nformatter: Formatter;\n\n// Instance Methods:\nconstructor(private soql: Query, config?: Partial<SoqlComposeConfig>)\nstart(): void\n// Pass in part of the parsed query to get the string representation for a given segment of a query\nparseQuery(query: Query | Subquery): string\nparseFields(fields: FieldType[]): string[]\nparseTypeOfField(typeOfField: FieldTypeOf): string\nparseFn(fn: FunctionExp): string\nparseWhereClause(where: WhereClause): string\nparseGroupByClause(groupBy: GroupByClause): string\nparseHavingClause(having: HavingClause): string\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string\n```\n\n### Utils\n\n```typescript\ntype ComposeFieldInput = ComposeField | ComposeFieldFunction | ComposeFieldRelationship | ComposeFieldSubquery | ComposeFieldTypeof;\n\ninterface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\ninterface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\ninterface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nfunction isSubquery(query: Query | Subquery): query is Subquery;\nfunction getComposedField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getFlattenedFields(query: SoqlModels.Query, isAggregateResult?: boolean): string[];\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"0ea4d75e6b2d194fdefac8ea87fe7f36844846d2","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.4_1569988059344_0.7231744322487774","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.5":{"name":"soql-parser-js","version":"2.0.0-rc.5","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.5","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"cf15ed51f6ac6c3e4691212bbf474ca81d7dc0b5","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.5.tgz","fileCount":47,"integrity":"sha512-CKtk8ztr9b8Dc18LGX+LtvZHu9YxywkAvc+mpzKS2N/xgPd+FjsPCvEHPRqS1xoB7WbZNEEuJiO5/ZSXUdsrww==","signatures":[{"sig":"MEYCIQC76513dgKX0enP7eHHyhmuuw3syjWBKl6/JlHjQ1fFlQIhAIlEq/TKabbDRM4iZP3Ryu4GQZwt/nOvcg5cLv9faa8m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1136656,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlsf1CRA9TVsSAnZWagAAJjUP/2ZMrZsaFn6E4EFA5vSa\n7kC3wF7/R5YFiKoxnRs03+4uAF0nZEJPtpy+90TcdqFe4rwfQjfcvX/vKPcR\nGyThVfvWYvK470XO5FgeeP6WPyBlxqiI9tLoo6lXKQ0Dd0RCo1TN8gVntBKM\ns17Nc586p35V3PlJYIuVOAx3B7xl5kPlVlDuOofSLaaD+T+spf2LoxrrYmq0\nsKGioyRJj4Oq4g7ruwYQsBkNXUXKkpOOhBmjJw3KpxYiE0gUXe238tg3LY/j\nrtuwrNXRktk1faZoRztmnXA56DK7nvVXAKb2TFQYoZ4tZULsqF2mcBcbbzNa\nMZL6jkLsw//OTqfICbFIyuISgKc8cwSHbeUD3kW99Oel0se9vHV4YAzKlpRO\nZx0LjlLKenAT25MWCb+Vy2ktloC5P92dPgdG0loUg61moOVXxqXorbNxXh4H\n/9IH65ALelADaRffqfLLEM7WdA9BYwJIMyTr+HXJ1KtIPDqSZGjjgZHRReMd\neBxcL0yr3u00pf10A48JEGz7d+8JgDd3Pu8StxNOSc1LIlHmZ2aomnsSCUMN\nywAOI4G6Icidw/1mPAWOCWMrBf7PsV8Kpq/g7cWW93+xN+d/7FgpWMJkgjKL\nzz35m3j04aKH3QllGp38mM4dBC5eeWftKY/V5kQAkY+HeRaocxJafuKxVtZY\nROEe\r\n=LTNF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property         | Type          | Description                                                                                                                                                                                                              | required | default |\n| ---------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format           | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions    | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose      | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| useRawValueForFn | boolean       | When composing WHERE/GROUP BY functions, prefer the `rawValue` property instead of using `functionName` and `parameters` to compose the query.                                                                           | FALSE    | TRUE    |\n| logging          | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters?: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  valueQuery?: Query;\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: HavingCondition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface HavingCondition {\n  openParen?: number;\n  closeParen?: number;\n  field?: string;\n  fn?: FunctionExp;\n  operator: string;\n  value: string | number;\n  literalType?: String;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // Should be formatted like this: Count(Id)\n  functionName?: string; // not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n### Compose Class\n\nYou only need to interact with the compose class if you want to compose part of a SOQL query\n\n```typescript\n// Instance Properties\nlogging: boolean; // default to false\nformat: boolean; // default to false\nquery: string;\nformatter: Formatter;\n\n// Instance Methods:\nconstructor(private soql: Query, config?: Partial<SoqlComposeConfig>)\nstart(): void\n// Pass in part of the parsed query to get the string representation for a given segment of a query\nparseQuery(query: Query | Subquery): string\nparseFields(fields: FieldType[]): string[]\nparseTypeOfField(typeOfField: FieldTypeOf): string\nparseFn(fn: FunctionExp): string\nparseWhereClause(where: WhereClause): string\nparseGroupByClause(groupBy: GroupByClause): string\nparseHavingClause(having: HavingClause): string\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string\n```\n\n### Utils\n\n```typescript\ntype ComposeFieldInput = ComposeField | ComposeFieldFunction | ComposeFieldRelationship | ComposeFieldSubquery | ComposeFieldTypeof;\n\ninterface ComposeField {\n  field: string;\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldFunction {\n  fn: string;\n  parameters?: string | string[] | FieldFunctionExpression | FieldFunctionExpression[];\n  alias?: string;\n}\n\ninterface ComposeFieldRelationship {\n  field: string;\n  relationships: string[];\n  objectPrefix?: string;\n}\n\ninterface ComposeFieldSubquery {\n  subquery?: Subquery;\n}\n\ninterface ComposeFieldTypeof {\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nfunction isSubquery(query: Query | Subquery): query is Subquery;\nfunction getComposedField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getField(input: string | ComposeFieldInput): SoqlModels.FieldType;\nfunction getFlattenedFields(query: SoqlModels.Query, isAggregateResult?: boolean): string[];\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"0f68228412fcc914b7a58fbaef95baab0b11c0f6","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.5_1570162676899_0.1789460474544673","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0-rc.6":{"name":"soql-parser-js","version":"2.0.0-rc.6","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0-rc.6","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"431b6d31c80952bff2073bf17f0e3d3ab6942db0","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0-rc.6.tgz","fileCount":47,"integrity":"sha512-uoXmPJ7iw2NruRz1W3aXK1Tdyk46T4w1x7LHWWufzFpsYXUoZLySVeXYuPYPCrsxo+2/v4eszsfFmvnoyGnzGw==","signatures":[{"sig":"MEUCIQD/3YE0kJO0AjxwaA5gfQGg28ZX4VeYYC29puK+uxWTJwIgDkibU3RqhnFdQBwRLNGVJooij0Y0Vrao03Y720ugzKU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1164382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmLRXCRA9TVsSAnZWagAA6RIP+wfNvaQ6VfHZHxEIzfTJ\n+bWCRMLpM++6Hg6jS2dljaI8xBHEl5WaCNi4jF4DLB/KQZDLau39cHwlYGNv\nYn1LrxwVFUBqDZA+dZ8dmuBKcVyyeTnUci3TP21pKdBvqNT/fDq9Xi/ll6xq\nHuSdlEctT7vrsEsBpT3yH03OsConnBkCe105AfnQseJzjuqs0e/wod19iSy8\nUJnewSFP6cYQVM2/xauSFKllIvUFhggdnStzYKvQzeFwJ/HgsHDEaip1Yp8g\nUmbMPbETHeTXap0kIH5Uw9OtA2zc2uJPBxWeU/ojk/lt8IglP8Y9rPLBJNUs\nL0HkHJFi8lJbM7WWtTTEnL8qXDjRqawpkg9wQacioPxD8bM6To4ZCZVFFLx3\ngOVqRNAY8UrFXkMXD+hcTKg9tBApoVh1HwLEE1RUXyRxY5ruZwOLU7SjlMlG\n7Qc3wDkgs/5hxj583W1ZTjCFzuGO/3xX782lgILd+91+k8C1EUme6W2pmWEF\neDjraMveC3EHXBO8A1HVHQodOu/uOh0EZ35Q22ryyuQg3aLfn1XJJhZ5o+mv\nFPN7b8Ud2Zk9srYUaG/taHj1T0X4THnA2pYOIsNRMsBFz275YZQ+jJ3aliFT\nxeNAW0CbK1K3lPkBFSdkfegDYnw3nUFkfb3JqQKomPrPxNDtTREOynYZf2TA\noWH+\r\n=6ibH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"# SOQL Parser JS\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Compose a `Query` data structure back into a SOQL query.\n3. Validate a query to check if the syntax is valid. (Note: even if a query is valid, it might still be invalid based on your org configuration)\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used. The move to Chevrotain provided a 35% performance improvement and resulted in a 36% decrease in bundle size. :tada:\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement         | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property         | Type          | Description                                                                                                                                                                                                              | required | default |\n| ---------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format           | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions    | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose      | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| useRawValueForFn | boolean       | When composing WHERE/GROUP BY functions, prefer the `rawValue` property instead of using `functionName` and `parameters` to compose the query.                                                                           | FALSE    | TRUE    |\n| logging          | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                     | Type    | Description                                                                                                                          | required | default |\n| ---------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| numIndent                    | number  | The number of tab characters to indent.                                                                                              | FALSE    | 1       |\n| fieldMaxLineLength           | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line. | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                               | FALSE    | TRUE    |\n| whereClauseOperatorsIndented | boolean | If true, indents the where clause operators                                                                                          | FALSE    | FALSE   |\n| logging                      | boolean | Print out logging statements to the console about the format operation.                                                              | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to upper case (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## Utility Functions\n\nThe following utility functions are available:\n\n1. `getField(input: string | ComposeFieldInput)`\n   1. Convenience method to construct fields in the correct data format. See example usage in the Compose example.\n2. `isSubquery(query: Query | Subquery)`\n   1. Returns true if the data passed in is a subquery\n3. `getFlattenedFields(query: Query)`\n   1. Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings.\n   2. Refer to `tests/publicUtils.spec.ts` for usage examples.\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type LogicalPrefix = 'NOT';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType = Field | FieldFunctionExpression | FieldRelationship | FieldSubquery | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // only included if objectPrefix is defined\n  alias?: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  objectPrefix?: string; // required if object is aliased\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n  alias?: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport interface WhereClause {\n  left: Condition & ValueQuery;\n  right?: WhereClause;\n  operator?: LogicalOperator;\n}\n\nexport interface ValueQuery {\n  valueQuery?: Query;\n}\n\nexport interface Condition {\n  openParen?: number;\n  closeParen?: number;\n  logicalPrefix?: LogicalPrefix;\n  field?: string;\n  fn?: FunctionExp;\n  operator: Operator;\n  value?: string | string[];\n  literalType?: LiteralType | LiteralType[]; // If populated with STRING on compose, the value(s) will be wrapped in \"'\" if they are not already. - All other values ignored\n  dateLiteralVariable?: number; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface OrderByClause {\n  field?: string;\n  fn?: FunctionExp;\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface GroupByClause {\n  field?: string | string[];\n  fn?: FunctionExp;\n  having?: HavingClause;\n}\n\nexport interface HavingClause {\n  left: Condition;\n  right?: HavingClause;\n  operator?: LogicalOperator;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // only used for compose fields if useRawValueForFn=true. Should be formatted like this: Count(Id)\n  functionName?: string; // only used for compose fields if useRawValueForFn=false, not used for compose, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // only used for compose fields if useRawValueForFn=false, not used for compose, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"e747002323f51c332a618fdba5b7a1e461d82052","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0-rc.6_1570288726788_0.9436075285560392","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.0.0":{"name":"soql-parser-js","version":"2.0.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.0.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"827b260a38f34bccb32606566c906fb75557a2a3","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.0.0.tgz","fileCount":47,"integrity":"sha512-1Nwks5yD1CMkqF1NYGW3XHt/2w23lTIaREIVGcP11PjSU900Bz5C4fDiKo5en2OwMTLfsKz4BaAOwDX0X4abHg==","signatures":[{"sig":"MEQCID46IqiAS04AmAEPT4L5S1HkvHiDGVTiews/Yp+gHAnYAiA1GgVilPTKwlDMslMbvYNUFkpCOrSymhGodF27mognlw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1171359,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmm6fCRA9TVsSAnZWagAA5ZoP/0FibG4Xo84IRpxGE7M7\nMSW87DBwfqBvfCXfNVEi8r8tGLevDcqG5CnpR1CBG9BpkJmPW+dAwC7+CLeL\n+fma+DWTuCbKHhG7vftaljUwYYDzb9oUpuLhtqkrjYbUp3CLiQh9BWGVIPI3\ne2eGUjiieEDOD8wuaB6tyWFz55U7GlSF0d6Noa6pd15exueyXcdGY+J6bZ6G\nqoZr3AcQWywttTtWBi0pHYg1bp7uIwrhVuQA2xHa3Iveq3i7r3wZ+vqloiGJ\nnPAtwan4k7zcJMMEQoxxX1/ZfMgTX+AuCGHLa6eHyReBVmO2ivTaAo4BKwes\n1F/K9/zcp1Z495fJ5N1Gvv3HTtou0oAVgUSprbl1mDlU2no1Q6nI7DvoyT4U\njdEd/302VCOeMWWIWd5uxQ0U90bgXZZgJXsrpwwyLFUZDwJJy7SeaWUgb0Dx\nLu1cY83OJddC7kaQ//HZR6A5os43OGMnFB0pdeedY6m6BFuC2F65EqeE9lTc\nQ6ft9xCmNXmxZGeR1DEycvOqKgLX39J0ninkRw8ZElouOCyelGdnt9vVsB7c\nz8K1N6CazjCrzSBIkkkrft6i/ywontjZ4Iqi9xqpys75Wt2N6xlR4kUTVTm5\nWrIH+sXvXzCaRhCs8ykYUG7VGGio1MC2UozlOlDTDTb00pTdG8GNYoLZThS0\nu5wv\r\n=+Myp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"20e5371fed03c81aa2b4ed49b20a91e127e8de18","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.0.0_1570401950760_0.9988177568246208","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.1.0":{"name":"soql-parser-js","version":"2.1.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.1.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"219c109943f7ed98a9db2da3507bb2dd2bf96ea6","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.1.0.tgz","fileCount":47,"integrity":"sha512-QoTANxK5+MWW9wuUCmfe86Y8/M8bY2zdZdwaU1T3/it/lDs+W3i2KOntRR5chFmSkvdJ0cHwj4u3+SSYqdYesA==","signatures":[{"sig":"MEUCIQDjSJevhVHTbnxD48iNf5mcfdHBXpVRrOBgVawYLdmJ6gIgZH9RNca+bh5QoocLHwcmY494QbVx+IQf2rSrALUmAp4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1173534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdt7ZyCRA9TVsSAnZWagAA5e0P/RVvCxUn75knMSccARZJ\nwDaxt/QLRoY3wR3CmqdCRJip8xYlWmfH21UdDW3zyjrvLVZwdRrPSoRB3Fvf\noMNk0KK5LA68Jhcc7Ecl6c9t8y5nYmFLPnAki7a6XYOQBgVl4fQgZ/kIh7rp\nX9SVIJyJ07t5C+vCvF3JobVSRyU96mSbBOlADIVp+0i7/SWQD4x7KkS3lK/c\nD3SalkiFpzYdds2FpsXul4HPXyaEuLHnIOA2OvyMh7hDeQ/NfZ8RhVj8ZxUG\nlJuO0S6CNMpNYLz1Afeoq0sfOwyNZrK5mOHk8K9Q01x/7Eiex6uQArjb8O6F\nft379hkrugPd5xDCwRaz9dF/mJMG7FKYn/g0wPZDdOUqG4nGmTpl8HzbPUL0\n+cEy5f+Okluw3j7rodssj8XaSksQCy+rfyJAv+UF4RVFJEhLIn/nX6tNflbh\noXq4XGZ8OLDV3Yq5EQI5H4PmtqFXoR1A/AS1MslnQF94daWd83s3WSKi7zGI\nDO6oyf+4gRougyXhf/ph4RKA9KvPzU0u/2QM3lrqCtEkLvVjIxkJjl8gmkHJ\nfrEDB4IJfll9hkPaTd+AVPkMmy+jt+sHjD2j4JPqgl3RhVs4wr/YbwEJkk6H\nxxoK1EIaNj6ws1ov/XYSJ1DmJqb+jG72B0H5V0AlpzZ/g9qBXOXqMYG3KxPQ\nN1TA\r\n=3NUQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"9c435c4a370b3571ca8e7a60f8224ee41573784c","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.1.0_1572320881380_0.006295846377194714","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.2.0":{"name":"soql-parser-js","version":"2.2.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.2.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"11241a7df6d3cb11738193172199c52f865edca0","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.2.0.tgz","fileCount":47,"integrity":"sha512-jenJi7/wfMrC1q0i1UgaK4nXtFjepOtDPdQlSjOuDaX5xOGVVSOTriQb24JnhbB1X0lR8jwHfpVvt1MaO5CgLQ==","signatures":[{"sig":"MEQCIE2Ts2zWbZE3zoMbpnSKStvXSC9XwbA4DKbcAEuPh8U1AiBz1lTYg+zDK0PQhlLafKHjfxTwFgCbImGAcQVDB3Pq/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1191815,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdw5AgCRA9TVsSAnZWagAAzEUP/RNysMAaRs1hOFnNrcWD\nwHqkIedt7yZRYzL2AD+DykR9gg0rSXvNSRcuztzwqwrenAx9Z37cprlkl2ET\n5gLlfWmGtcavpr1v+Ve9c5NnRNgeMVTO0HHx+ji2VDd+p08ds7lFDkk/5Y//\n06/43mfFhASGkT5zRSrj6SVFFFQ+UuBsMFzHB38znmq+4eH6GiQakX1Cp6Oh\nG1cn7ANbGObNj/JNagveBiJu1z2wK3+aB5w1ZpsPiPG929bZv5GoVfmFaMj1\nGAWTm8fj/WV9SMZpk5GZoA8ZF1/e14WNReyJGwnX1GkekdLzTElrlbYRl9Bl\nlWB2E2ORfahUAkrNYE/o6X1+e+6qxnYse9Cc9SRXm7qqWrXaZU2Jhhd+CEO8\n0hR7ID8Vt+jQGt82XFc2oviAxV1aRFSjIP1nY/XLoFRxhK/e0wedGCMRMUEO\n4Rrv1QcIgnah9JxQK+TjILxbiMjZEkfZFuhbzqF+1m7/jaXEJsPEeW83Fe8H\npaPVhYk+aG2K+VlVFcSvFUcU6BgU0nYdV8MWI5XvPcAvbJbpQL4LUuUgIPTE\nwDwqpN/EcXfMV5BzSsRVd3KMPVKDOy13OSfYA5dqAU08Xr3v9ldLI8P1zO9B\neXyvO29km/UyPlYeOKubgweScEn2Qu7OzTqiNlYhT/WstXXTG1boVWPRCWOT\n/lit\r\n=NzUo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"58be3a061c93df903bb61d6e422c983a234a684c","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.2.0_1573097503584_0.37882094575932945","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.2.1":{"name":"soql-parser-js","version":"2.2.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.2.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"cd7ea66a34bc0c2407ff5f511fa1412b8b4fabef","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.2.1.tgz","fileCount":47,"integrity":"sha512-I5blJQubFglHJxn6rthGPX+n2Hj8RROTT6t+oW677RFeaBRENDAQkcO5H36X3xMJK1Zp7fzSTscnvKqgSPDxCw==","signatures":[{"sig":"MEUCIQCb1KSiB2dhvvamItmhUgGlHK0cN69PxeaeSejxVlJc7gIgXat9k5yrpea/2ZAHy5Q7SJ1KsD5DHT/ZjzXAsAtMhWM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1194809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0dfPCRA9TVsSAnZWagAAUJkP/1MkMmqj+EaDxzBWMEig\nRzynlRV1hLlDGzP55D6AMbzahB1YrRtg848xMUdhFUl4QAPNFKX3+/ZdEgpY\nRV5snagcCh7ggVlBEivC0Arbd9xQyJPc0QYOusr5iZbEbQVYquODOKH6+ta8\nqUu893YDfoXT/eyYLQZgYLVbtk1BOH5MLTrXljHOWdrubMLQYSE8p+yeoKUm\nu/FNt4UMoPs6M1IEqTf+3+8Pb9PlbpnTCRrNLVS/LJHMWS+Fr0x4F1oFNdxg\npi7gqWfm6jp9wTEt5xZYzZ6dmRXtoYrCQftjYYGlp794BRWiwVrsNA88evib\nsMD7QvN4eOMn+s0BmY8qeo7dorfGytuGiT2TsLoRYLQTCrF0qSschNTx9ILO\n80ySWfchO5Dl+XBt8NMAlTM7FdotbM9Ql37AcP+kgl8wQXKcATjPysbg3Nre\n0EFdtfoJN4nCn3bsHDRrEzDYC+U3QzKXjoVzdbuAYFnD4djMUCFiJLZyA9IX\na79YOkagkVmgj94Q336xcxCY+iqzvtlXPYQBwZbApGt+RHB8irTW1sn3Fzgi\nsVRZM8xxoOKA6TefC+zg42JeGSnNE2G/EL4ZXIChYcuKxa9Iz3hN/O5xlVmU\nimjpq1ziPLWHqV5WcOsroCMFE9sQZ4KXHWlU5SlCGX4EDfTbb7CrjFLsxpcu\n3Hb8\r\n=wO/r\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"a114cd9d9abb17864691e2a5210b3db4673deadf","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.2.1_1574033358741_0.5509883479083648","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.2.2":{"name":"soql-parser-js","version":"2.2.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.2.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"aa1ea9b89c762382eb3af6050f627d62e767edd5","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.2.2.tgz","fileCount":47,"integrity":"sha512-4x01ojxEW31lxnYqt2bhqimK96A113reavw8vcOLqniT5GsMoXvj6a/djZHsMq8phoCm+6TFZBerXmSWWGY21Q==","signatures":[{"sig":"MEUCIQCB9QoEl/iQzLA40mQG0U7aUdRWPT/IjDLaCRFcbQDc6wIgW+5hNPd4Wvmfavm73r0TTR1ACyLLjS+eRj9/PD15Ok0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1195248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5aRbCRA9TVsSAnZWagAAGWUP/jov9Yw+ezuX7g2LtNfN\njxQmWoFLOzzCn8+JuK2w6H5n2qUAICUGZS5w6jp8/xhjo2Hxb//XS22nDBXt\nDsJXY9QkjBJaU5Ioh6FwhnRYCw0rMITjRsL88eNJfXFrozdjybq+Tcs+gJpH\n0Yio/wQ5BGYdEZloIUq3MApKHZCLwUx+xDLe/aIAJhTDX1JkRNjzvismsIij\nSZVH9xy50qpGotiD+A/+wHc87XYZIsFBFvuTllpKNWqyvZ8pfa7Xk3m4kj5W\nqstyZQHuff1ruJIRETqCendewB0jTRklQAmVRPisyCKHjrIiAlohfm9mp8WC\nDXPa53lRYf7RxAjPq3ocDKFMyrvzIel30i3JbnaNUe3etiJ4yCqcKrwkpSel\nyUFCz0DmK7Tjz9rdE8iwN1qoPKO8ZSwNG3215jgKTBnZJPbgYmVXowzIAiHG\nlptraWRvbX4g9krqIw69O5jaAE+ayYyTS57/rbPXbixskL0aERGZ4klcP2rU\noDPkPKrN6P1EDc/fgCYFPpjcHY8lJPzaN867naSlEWlpvSQ5xgQ3+03sVDw1\nn9Hun7rT1EPDS+DH25SXF9AheI2rz5nDVo6BanYwHDzCs8H+8bwJcN9+9Du6\nTjMLF/fqLCMtyB0iIivppBXvEVHaVJRCJWfNcVgQVOgJ26iiLNL5opK31189\nqUz9\r\n=X3tE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"11ed44fc289a7836478c1f9b281dd2fec0c03047","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.2.2_1575330907217_0.48971759606374143","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.2.3":{"name":"soql-parser-js","version":"2.2.3","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.2.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"d80adfb36c8851e48e0f8123613ac70868e67154","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.2.3.tgz","fileCount":47,"integrity":"sha512-3l7NmQCT5NDzRgm5P4eFty5OLrVOHbbHXv/sSrlsLN3yvs1QiHxQS0mzI6zReO4w2Vl5F5YhdFA4q/XX+Z7Ngg==","signatures":[{"sig":"MEUCIAbdigw43US8JH5h+By5vxHqCCx5aFizzM4L7Fte9BDrAiEA8c0buLvHjMI/lpaJSsa3ye+OFvR8phcNHWTXWXXaQi4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1195517,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeEQ4HCRA9TVsSAnZWagAAV90P/3ndD5/RvkVimxTEiqs7\nOzlX/xsUh6LnyQRfjpGjUW9EAYfFoduTBNe3aBSOJUFkp61JcMyaT6zzRH1q\n/UZiA4CmQFyDZMAtyqOMIxN5vrw2WED9cQ+GyISRWdfrknvLmqx9YhRqZKcE\nypg9rPpcu6rVAraR/NHtA3dde44j6WPTd0g9IhEWpu1oYKbVpm9an8i1oudw\nKewNQ3sH3zPgNtMpuT5V7dkfDG5vrBWtdXWBi/qYY1QWRzpa/DGDgMsuQt9U\n2BNUDo4MGpKIomAooV4abPAaZAqi9ATnvDprRguFdQnZHb4zNDto+BgbKINJ\nI3DCq5RtsmC1aqRhAolWG4ciORnf5YcI8FTASjNxElBHZLkxRRYNMuvpGc2J\nNNkzMmtWZitG7zq+N/sphPg++z1p9qK8fuPdJdj7ppBO2yPBhY4/EQv+yZAK\nNV677hr9Ijqec/P9KWxGJGvpT/zi+yjLa1yrAEyN7OMuN7hqd19xcVLCvDf5\nAOUyMD4dGZxGe0JGf5Ed62QMuOySg2/aC62h3LlLDvicWIZp2WPKgFln+dp5\nd8BP2HrGasheNIzcVj+Ko7hmnG/G2ahHQLCABejL+UHolj2oLi/1YmO1SuWp\nqghB9tDmdAUSCtt17XFPl8Ue466hv1X3wsE2CQZayinZa/fQEWs/9tRDhwb6\nZlX5\r\n=w91v\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"5c56250a32134dfe4bb636488bdff6aa48621740","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.5.0","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.2.3_1578176006744_0.8068667080610701","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.3.0":{"name":"soql-parser-js","version":"2.3.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.3.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"b196b7026d2f66da621135f3e990b4d9aa1cee9b","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.3.0.tgz","fileCount":47,"integrity":"sha512-XOr6YefYYWX5PSJu+d+0p9o1UDRRx/BlbLbdJOeqrXzkgEGBgXdpaUTxm1tF8u+V7q5QLEGSGcwVJmCiks6VRQ==","signatures":[{"sig":"MEUCIQDTZWj9/1st7zIJC6YP8z2f5le7yLb7JYQimr6pL9MqvQIgDbt2OMES2Ia2ZlI8ScKo9TbgxzSXiK8tTC7eem7Y5q0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1197184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHL5QCRA9TVsSAnZWagAAWsYP/2P2Jmw8tOHwtlXOw30b\ncxRJqhv/2Km0XZu9SOX+7Rx1MuKNJpmmMQF2xqh4UDNpul9FFn3LIxxHDblL\n0P7J7imtnZVN4b45V0vziYxVVZeRxBOI7kPJLzmZweW7IDpf5SE2hO7uJCcr\nzVQT5M12mVZFpd4PMGBo68BaO44cgzgocZ11lyYEY9EMy08hfYhWYorKAy+k\nKR3nJ0MSekKoELp3jpDJDNHPgVHWITr5u71dYMSY/EhtyfyrJ7VpPgNOKN9/\nzlrC7753y/b2i/yD/59azfYc80V8f3UNzlCxq7hbnjw/E15WVfWDkm4YRIJm\nKZGeWQVyskI+tuNJpcUJT3F0Yx69rjwnPz+oPf2UtwnMjdwU0igZBQgvUAw7\nO3G/GFddEntF3OmeDWARR0AhHoAAxI0K9bWVcJSMSdELXr43yS2deUONVC8x\n2qfMT+wM4L35543+7whTRU9+fYa2bTzHPGN5gPemprGtQg+pYvDN9ncajNOh\nwpy1E6VD3UwLLGsgKk2mB3ubl8r0DeH6wmjxSC3B5Icb9q7Lg5J/XrAn9zAG\nTk8pxIKh3uqjEg/kc6WyvruX4UdYvsRJgD6hDnNjRPE4zC4S9GYPVYNJ9BTb\nkw+s1vMk6Taaje35dTew0eZsxqMeal02/G3xETRJurIoU2M5rvd691pItYow\nG9e1\r\n=7wm7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"e34a30724fbdfd62c0790cbe4ad15ad694a005c0","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.5.0","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.3.0_1578942031820_0.8645481641607589","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.4.0":{"name":"soql-parser-js","version":"2.4.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.4.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"0a3a2f0d8260a3a0d97a7af69c196f32333d7850","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.4.0.tgz","fileCount":47,"integrity":"sha512-6zshn5lUdg6fV2odfsehb9XTto7cpSN6DoDSxq+YHsk5hcBxM7n+kF5nl5YyGaz7Uc3fM9WaJi7mvfHRzR7v9Q==","signatures":[{"sig":"MEUCIQC9WiOP8Dba0ZKcw8cW8SH5bLOWwdz5cCYOK28Bp+OibQIgCLETMoSGttnYmdgsAAxYbzEjJq2YzXBE1HnSyo2/2YU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1201527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVf1XCRA9TVsSAnZWagAACi4P/3X3QZnyRbZYjXg3zbnS\nxM267FdMGHzFqLx8zIj4JHz5G3cQ8WaI/stMuNB9tCREnRywMGn20F9rqbUg\n5FJ/edckO4nVqFKwcMSIwRlXWM2mBim3DgFMs4XWbTkKc2Z/SCYi8leSUqqU\nK1FH/ownaQ/utWdXDJ5GnAEPNuq1/090dEuQwz3ygLmBJNDCNKkjl6WI08TZ\nW+vvl6tzoL6J1vccix8IvbfJAxqnmr9PXkY9vvnAcENIshrUnIVvvAibllFZ\neKY/VYEl/cKSHNZ8paW/DuzuKww0C3g3L4vcTAJfda+hTjTXjRBvhQAGOPiN\nW3EWHeRFYiDeJ2iL/aTXiNsuNgzUFNGlECmfPpFp5+zjRUFeldn7cG1mc1xZ\nbV/2YX8rJlyVjo5e4JRygeLoaqYEmF69Byxzr3CkEplm2PDAdqAN2xTOX1q/\ncYVyFKD3tbXCs4FfKmvmAHJJ4CZ276rHazqT3KqsSdJ775wT8w8kyYZ4xxMs\nxyp1TEndu5jKvcozavir4RWBlrf1BJgcjzhAg6OWUU/n0RVKnYO7r0HiQltB\nYmkLczZ1vlwLim5/Yp1lf6kNl8iuMwIDIqzlNY5V2pMQXWogbx31C/kMetjh\n18AiiGJWGAuwpV9VVdcSA1IvYhobKQaYd2gshW22dZ9AM2OBGQlowoKveECR\nZ+zU\r\n=fMQp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"64db0347de52b3b158150ed75f391448df9873e0","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^5.2.0","ts-node":"^7.0.1","webpack":"^4.40.2","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^5.2.7","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.4.0_1582693719276_0.06657377871101677","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.4.1":{"name":"soql-parser-js","version":"2.4.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.4.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"0dee2a88d8f7b28dc5b1f5314b8ca5f278a6312e","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.4.1.tgz","fileCount":47,"integrity":"sha512-bB+7uaH6gGOTs3dArWyKuoQWD1eO28zAzBQ3KjV1gXHbRo8PMUP6tM6zz3Ui9J+5TnccV1l72BiXd5rxYk1pVg==","signatures":[{"sig":"MEUCIQDhtT/m7N/4Yb1GyRd1r8E0MISffP4GI/qaxpfSzKOpjAIgUf4l3HHqJw9Nv37A14VLFc0YSkqq38S+F+4jORxG3jA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1200161,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed7ehCRA9TVsSAnZWagAA/0sQAIBHCR3wAi54tYTMy9lr\nAkleTubuOrVnRHCAByNqx8prT/cbt9XU6IyjRGMX5Y3/RlQsjx00w7LyQdJj\nyu73uHmxNvU+LTL2fWEk/tI+QCYRXUPM4Tgn3kwRpzjzQQb2cWJETQLF9J6D\nzK823dTVaFSl/hDDnYCt7o2yXAZUzWskysRQIWQEFc4oRrBN7NiiqMYOE5UO\nQoya5eDkMmEKNxY4kCHjzn+hXCrt6nveIPBS1VieqEfykRUA5b9qRtiXpjsl\nBcXW/KjmGNRJwWBA+drZ10HK6EkjJmvUSDfotmrFJtNEewqE7s7bK3cwrVTf\nlXJRkxD0gbvk4UbVlCO1q0RsZn9UhOr8k1sMPpKGnxMdYcwT0ysuZ1k8C0tI\nnpYBqVNEFq9n370KAE8evNpbWt1fnHM0iENCpyJu5QOs5mgQ6aunwV4gkV9A\nVrjPbv4fCW5hRQUwDO69Geu2vu7KVjx0OExZ5ihgYg638TMvjBzCX35WGMrl\nm+zOo7gJpEwx6bGuQb1K0koKEh6UyCeFXnS98lxJl9R2fNkBDpMnD9Ve3o9i\nPLRkRB95aCvaJafjKJ8yTFlcOYP/n70mSugNElE0utP3eHG9DYHyUfvGtVbF\n/ZocEao89Nj4RTW7qGjI0/qb9EtUEobBlhpWJXaXti12nw1XiJBIfRBAjGRc\nH9h2\r\n=ffig\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"250d552c9c13ff02416cb38a91524aa58dcd10eb","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.7","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.4.1_1584904096559_0.26616567529045443","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.0":{"name":"soql-parser-js","version":"2.5.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"126f2a3f9df14036b50503b5e7187c6455d1f224","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.0.tgz","fileCount":47,"integrity":"sha512-ck6hS580Yd1OBEv7Bw2tWVCexnnzfUb7zi52nrWsgxIxl/Q1niSkQkisBlFUZ/yCouBNE7InGRpyRCsdphLWdQ==","signatures":[{"sig":"MEYCIQChF1f/nFaYqoDey1FSiK9raeJYmcLk7qP0VmuWLu+qEAIhANlAgxH3NABethwkeS0oLuJKGuQZiDYkWl2q5zCgsmxe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1208616,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeh2uTCRA9TVsSAnZWagAARh8P/RDWOWARd0y5JVCVZcTM\nguno/W+d0AnpWsznnPMiTvP6V5DeNREtlErzPeB2VeoBJT5MXqRji6FlDN0u\nh4Psp8Sj/f2dsnyl1Za9jOvNGq7rB2AfEixzwiIA/5tFkA6wk8d67ZpmhUia\n3/f2XT0JtP/O53cqZWJmY4HCcqcxQpx2s242VFjLyaeEKYnZgQBStaZQC7md\n9yogwZo56wuLOlrsGPm5PJnoJOhz77bc13WomTEzcYwC5fTH075ufIfTjUZm\nswxYtY5i8aQoycIO9vRQmP/OOZfChbre/fXsxBtDG/j+EJ5Hv5dXq7v8AoH0\nJrtxlJVOqy+4paZ16XnnEoc9i+i04kkJBGNgBqUiHa3dvQdMvjalqdsERJ/L\n197QhiQaV1Bj+RAf4+URyWv0x7oRz0rm042B9R/96/WIecQaXPTkAwv+hxk9\nTbU8Dv5ax2VDXS1FXeIkUZZbFR9SABezf02l87AsdiL2OhafHTlVB/a1aIzK\nR3/6lIkn841d7dTx3I848tGVZg5dNowcMSVLu4uaU2G5GnD1uFq7GBFbVBlv\ney8T3t3x7Jow0CiE6huiRIt758+kjSn1BvYhL7g1dt+gjDzMnoiroQiusCHa\nLRuwzM98CRAM8uyqHxTUlRVyPB4QqKlXOEI4CL9GNpRmQZWdvtL1DAbxm1CW\nm3bJ\r\n=v8kW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"8d89c8dc000b33e06bcaf55b1edf34b4ed272379","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.7","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.3.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.0_1585933203120_0.9893754943744801","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.1":{"name":"soql-parser-js","version":"2.5.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"7aed01b83ca50f0642c7175bd808e31bb1874b99","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.1.tgz","fileCount":47,"integrity":"sha512-CX0lYbv1VY7/QWLslL86ZEJmajJPfgBdiTLz/tBPmXPOZnkCFKJC+GcMCneddGwKJZw+KvCOqOINFtkdk390fw==","signatures":[{"sig":"MEUCIHPYOqHWDFGJhL1Hc+LuhFpRBdd2z/jisAbqqBmct0SCAiEAo1TYAMASaFrwa6HyAJ0wO37P3E7QEbKJhMybdQiGhSc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1210682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeobS8CRA9TVsSAnZWagAArl8QAJ2ER/rD3DNXL7wxHgJK\nEXgxkcer6VRXlF3U/6yc2nNmqo7CntzRZ8PXt4qLdI/vWIKGmPlQOCJFYLxG\nbXq3NS1iuD8Qw9F9fusZrMdEV09T1BGVQa5wpjoeQ5xk5nzKF7OIj5pEvpye\nv+kOr3K2NgsIFsGl9Extvud86n+4MC3O3JqKCkcB6aVHImgArj87klQpNr02\nFuXqKjy+BPBvbcdyCokZnTAybvQz8ucQArMl/R+J3IbziORij7FZcnPhwB38\nzsFMLD4FdbJ+Av+Dsurh+gcOzy1TUs0/7HHyU0V5vS7j018yFFeWo3S81dwE\n+Qa8GYqDxWMsuCQmbJASE+CfWR7AZRcWT0Tq8HN4GmV1JnjfF/5+AM/sTQFn\nFQN0zRNx4DIN7AKUxr3eugHQyQOv9PGQ2orz+HlFPvIA/bItXPg0WE+O2n+0\nQwDy/Bu0T40Wt+vuPUamiHnTdXlCWAmXeY4hC3ZxZxSL7Y11XQvMeop8jKAI\nINUDYsC2nDuJyHT03hgj+smavyr2lb/LMQ96yCzd/nuDT0suGDF+jhCaDX9g\ntl5E3VUBJEqD+mKGloGgraSG6jfQAhjBEvqHdjRmwRzlwOVYcfNtEYGffAKl\n6pRMV032Q66OFJkjPcLSTKCf+eVxpD6HC1FhRoNG+DaNh4Sk7me0tS1IfC8P\n3GNh\r\n=G+ex\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"c1086dc154ac3721a82b9006d7434d075dc37da9","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.5.0","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.1_1587655868147_0.2736472017626381","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.2":{"name":"soql-parser-js","version":"2.5.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"7f50084cbadd7d79fa78dc268411beed9234cb57","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.2.tgz","fileCount":47,"integrity":"sha512-1TyRvwyUe5xSfFS0qGWCQWVP579lzRnh9xtEZDlLMJSKqi+LX6a8beW83BYXHuck6GUozTBaynQHrfFy8pyblA==","signatures":[{"sig":"MEQCIDUdOm9kl2wR4yQoQz88o1eiM/u/QzHxsPx7tMtRlJPjAiAshaBJ2ybcwSdIhJ9czmUEAEdPlK3kCCs6l8ZEpbO1aw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1212750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeolyeCRA9TVsSAnZWagAAo3IP/jmBXeRpM7KXyw83Tb6q\ntGcorzI2ctIndetSs9YzIYdKUgvClzVKDHchrcWJKTrT5f5El9ZM5alddexR\nIg2lokZEan6FuzhCH0MVJb5J2r76lK5/JneTvNZGUPhYFK0k4vAO/HlHfPFC\nHGViBevscaxWmQ5sGzAhaZWUdF4+Vi++YpMBTXOqS5Cl9wR4EnRcTqDSbQTe\negOUgX90XRQdvWInXoVLIuEv7jihlLBk3SQkmtEHacj20Tgn36AhDNJSRkwv\n+KRq8wAEa6xgoKFJYYGD4kJmG95Oc1YADMFmqP5tGCIF6h+qJpEJkWQEO9u2\nUI4TJvyErkb+r21bwnR1Blo3ym7/u8lxaKXhZsRF9dpNSv4IiWbI2bpFida2\n/9Gc+rRf+5Vgdh5OG2/qAgf8/ctOJwERpytOIB8s+OtvkNpO5ebiyku/X1s9\nlJtT6sBW7VjUNHUh7IPT3jrIDQ5D9bdSmUwCrC6bG/XqQXT7X0eH5fRq7Go8\nAQd6TnddPCcxjHWOMRXC3RdqwUgYcDIheDBT54YzQpS8lbHwrUFlL0U+Sx2f\nXNVSFkVE48QzyY4sPZXD2WZJAL7AywkRNrn8U7tJa3xvHVro9hGL8zFlByeE\nD7n86lmhpYE+A/MzipslPbQRhjaTNaTrCIhWyzUVWNhBtOcJ9EXlTe7br/zm\nQdVf\r\n=vYih\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"dd298dc7e98eaa8b5ca9acc851015c7182170d31","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.5.0","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.2_1587698846248_0.17991265286315317","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.3":{"name":"soql-parser-js","version":"2.5.3","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"e7adc44a579669b6368400a4a023b9a2315eaf69","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.3.tgz","fileCount":47,"integrity":"sha512-JpL41xGLebTw0oxGcxZ9+oUvV2Mlp8LrK+8OM+ZK07AiYvoaKRpjy+Polxzx+kPBqVwurqbxYZSb3QcSdpSuEA==","signatures":[{"sig":"MEUCIHNRv1Yu8ZBE7y1ttqT/IF99nH/sAQHxIUVp0y/hBtoEAiEAjYtAM6fSUhiHgVf9CTK541AN8nGPpD/b9BTXSfA4AEE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1212805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeovmDCRA9TVsSAnZWagAAcOYP/3mOx1xe0Pu4o8ofc6Uv\n89VLkFSzwqaYKGRYCRPr6mlHNz9C6by+gw/QnVLZlvKPhvgR5HE1d9dXe5W5\nuReduvyAtavIPjQPLiar+bVmkY2AIXKeSoGiXukPVS8Bp9gosYkGQu6WxQg2\nY1rP7kGIi0sGe7MhHVJz/Met7uSeIQhZGCgsUixEtJAoLIgzNAB7NS95t8dR\n40oL+5+lFY+8h0tcSfVBsQZuSys/izEnHnt7qp5jIp8ZzZJQ+Un6fHlurb3M\nKgc6PYXaA2kCpD8OD3guVTQ5lpdbHb57xEebRBxGyCL444tUXOmHB01SUpZW\nG6M5sNEl3cyr4K1jQ96hObOlpskm6l05wft4thAwxrtR0dN0Kwd9UDV2S0c8\nwm/iGzQABA27iM9lQXQKqU56J9LPDkbwe1zTgG0hgFvTI0h2dFFyl0gzcUgX\nHL0YI0NH8x9PSK1/BfyFWUO9P+ZRyk+nnftP31f+QKQSHnNRGn3zGjD6lAtA\ndklFG6Ldgnl7YYe/Vd3Edq6okuE/IMxQGlI47jt/dB8QR7Dze/UvIg/Y/6u6\n0+U8CbsEdRvsMA72Qcr1EMU83m+rwTcF98ghtkSUtAnECbXkRNWfDiM601Wd\nB9kBQlwWFEHqY/v+gKSFwzrYI1kTk+s+bq/tRZuhc4NsGHLl/D3ViGdm7QR5\n0QmO\r\n=kWkk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"68b6ef25203f4afddeec5ae0d0ad47f10c539c7b","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.13.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.5.0","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.3_1587739010814_0.6767112912796343","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.4":{"name":"soql-parser-js","version":"2.5.4","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.4","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"ab5ef20d0e93004ccbb9cd3e85cd36fa7aaca1d8","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.4.tgz","fileCount":47,"integrity":"sha512-Ee83JMffvHJ5wN8uOUX4BbzaS7Ammo5j8M2Ye8THgc0Y8CE9AaFiiM5HDz2UmEK3hkZSdtXNGvg8a9ZrnLCwcA==","signatures":[{"sig":"MEUCIGTTmzC0Fgc6FtKHtmZDzpQnJWAw1i6pN7jZG0wuedM1AiEAvPxbogWgjI8E6ivHk6XQaXEG1EUFnvZ98ve3vQ+4j3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1211866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNBYnCRA9TVsSAnZWagAAd84P/1nFMSwBJzF3Lz5KSTNy\nF+1DAsV/RZci/2IWhkJiGQYQ3MUIVrLrMeev8sKRICM/p1fpKXCsKhyiD9Qr\nG3GZ1XJr3A6KoOCGNZET0a/vmkJk3dV+P86SgNmbDYDmDR7AYNM1hzIHRqDZ\nmrAQyDidoYEXu7RxN83eFdUrrWqAQcGG2uRmPPm60M5NxOc9c3ZseXPBQlMw\nVib+rKCCTrSTCUymeKlP2N3fb8CbxK86USzpPGiQ+cwpDsf4R3KbRt5f6t6V\nH3FD2M/IJVJu5FWZI4A9scYucW0WxeRQAjj1OKUzDBszw5rBR7NfZXI12JyV\nqCLaKf/7tCuAvhOvvp0OC+6rz1eZ38scYb8OLZuWhXr6wN88yEdkB4nVwm7z\nxpOkj82WDkoKk5nnFZbgn+1BrlzFnxH+9fpa8cK7y74qRe0L9I9IADg7Uprl\nZV1A1Xm2H+5iqyT9Ra6n2TlIj9062CKXwarCE5XERIHwqHxxx3jtIVpW9If4\n1hmh1Hd6GNcmsjkupwTKUCbh3Un9s/ajs9gbGH/KTDkT1pw4XDD3tzMrwVfL\nCTBU8aDw9F88Wx/XCf0LJJeQB7pSiWgLcd8mUNTWFm2PcdgZdj5x63M08u17\nPtRxycJtoawT2H3TVPCzAiajrlymyViqq5gB+PvbK4umktconD1bezq9cm0f\nAKFi\r\n=lvD6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"836e9fbf2d0d83bcec7a017b149863a423477611","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.4","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.16.3","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.4_1597249062586_0.5399346802160796","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.5":{"name":"soql-parser-js","version":"2.5.5","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.5","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"87dba42c740b39d472b5d2053ae5e879f1dc4f28","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.5.tgz","fileCount":47,"integrity":"sha512-Avu5CjDTwzI9TNxP2opf6B8QxWzEZ8SLKnaoK7osZKp2/TBvPEdZ4mXP/Q0BP+mAmrShC9T5d5NETz289EBUFw==","signatures":[{"sig":"MEUCIQD2/w2PTob47wqLP+r8h/ZgglEFcEajJ30ufq4lDMMMCgIgHe3kCKjEmjftQm7rknbQqGc5q+NTnlgT5sYr+TGYb2k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1214425,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQyCJCRA9TVsSAnZWagAA/9YP/0kQCzJShPm6/F+R/1Zh\nUySvau9U52PipA7KG+GnlcVjgwdqrQf4DaffgrpnAAVDPBwJ8mitwcYlWGIP\n2fLGfU9tOLtG4L/3DpL4nJLTWdTpwStJ1Qx1yxs0QdHcW080zhMNUFr/cK11\nE2w9u23JwQTOqKvNSXE7CWzD3CiJTHjeTdh/M1PydR4WJqp4iDyCaJngzK+J\nCkPi5FySZFwna2lT6Z+/6Mqn/SJC1Ich5X9FOgSrC0H5Li1XB0V9o9gc8kz/\n5dKkqIYiShR7tUxKH+HgBRA4oVnemWVw0CNEPASrDPDbpcsWFMPMFS0kph7D\neB4U8NGKWakHYtWPAirSJ+fJ/5NtvY9srszGP9a4qKYfkZkPtbSDllnoTAte\n3gViHBo5yIeCBpI1dx/BounGPK3TF5FT/yZlIqc+EFUhLLarZHJkxe5wxc+W\nbGF7C0MIwpvteYtjUEkVzdocYazdiv6svbKAZalS6My4YQaOmUSONXLqmbk9\ndkEAVLx3RABkSZbmbaUlxyyydfAvpsB3mgOH6bPfI281Dp8kUUUvHOLkjamj\nmD4Ta7PB1GEO7AoZqH6WfVdkPB95fGvvO6Srho9UIF+pac44JFr+my9rhfSP\nNbslKwFMLjGZ85gBP3K/sPmJLZDN/1Up97vXxjvI07SgPch314ZRQst06Wi4\n5Y+e\r\n=7T48\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"d2d867ffebfb074584276b8af1fd90855d8d8e44","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.4","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.16.3","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.5_1598234760729_0.4999145139683474","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"3.0.0":{"name":"soql-parser-js","version":"3.0.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@3.0.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"744718aed3017993c32c56321367484a99193fc8","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-3.0.0.tgz","fileCount":47,"integrity":"sha512-RUrVsAIcL95kVMspp5L5GWgM1LNDxN+5/NoPu17ONPOZcR+kevm0yLXRO0pVJ5pg8Lc9crslxjBG+Rok+HalhQ==","signatures":[{"sig":"MEQCIFeE4YEETRr1jDEdjf03Xk7EPLaOuzzQ8IA5FT+DuWV+AiBDU1Wy7B2MfUmVwcncs/h80IYcYb6eDrIWeTSNEN2s0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1247943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfh77ECRA9TVsSAnZWagAAMPMP/RIk5vGguLmK5oP3CHWH\nPHCNLmsSqHOk0MTjVNX4t3vqxYWX/A0bFU6r7JGPwxGI7xFVJn03MYB/iukb\nKK1/ENZXKDwsljGpJgGbLc1ZoKo1qucKWRbFcuSJMtv7ZjOHW2Y8TIiNYjQy\n89+tvsCLTSIqo2mhKYj9juse8hY7W/NIs2XFDrOXlnoQsYPS2aYrzSCrPzK6\nFKG0MRueAuCRvSDvPlfTpyia9FtwlCGPdKYvtlYTFbtUUApVX9f/UU2BVmya\n3aBh3CNZsFtF5Aak9EYF79Tj6E35qXmz+iisML+3ZcDp3tPK0RKaHohO7AXC\nMd/Qa5pHWADtMcA2tEpJrmX79EENnIJenKKPBtbLJr6auaDeRWi5ymaDaAEE\n8vG+1xqaJx36ITMdTSWJykUmvZoNZw6WojHf1uGCeL3mvHrTZPllcmXwrvlM\nK6fbwcBKjTuJV/dHD2hWnCk/6v4FHpTU9h5YFuvXbjElUE9s1AsPZnX5FTGJ\nY651+aZzGIyC0mNWkYuBu2/qhnevOL7zJLDcU5kshF1+Ynt050fDNy+HX6xY\nG2yO0mXt7Ly07VUMeRZHYus3dHbWwRbd8Ap5nHY4KkNcD+sC6mnw4r4Mrfup\nUrACtwshU3i/q2HnSPTRpFjdEG2haAlNkBbuJE5+uSi75Q4MxNrRhvdguCfW\n/znQ\r\n=zeT1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"37b648cdaecb61b66e32313e7b72edb2c67796d1","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.4","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"12.16.3","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.1.0","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.0.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_3.0.0_1602731715598_0.6082138185582893","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"3.0.1":{"name":"soql-parser-js","version":"3.0.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@3.0.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"b67b148a73254bb88cd70bee0d06cf33742c8a68","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-3.0.1.tgz","fileCount":47,"integrity":"sha512-2Ie/SIO7dafKoNpDnCe/zT3ZriP7aW2YliCdEEEP2rUJyatoNDgtYc747DVK64KftYkwJmru9HDrgzKwzaHfBA==","signatures":[{"sig":"MEYCIQCn+l5JQJpsoos44BYTpC1DcbBegEfK0rcTiVcNt5iqyAIhAMv7/spFGgy3ymfPdMCIXGZutemxXOLpAIJj7Hu6RNyV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1248163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf983FCRA9TVsSAnZWagAAvKMP/3B1ghZSSENkMkkTkAkF\nwFsdqvE4vraKLm+/T3WgKblz7VES6yXh0ML9PTKqgFyLonVARIIos2aPUlpe\nhe4xWx3kGIEVz0leksbPlx8fQrXGI6UrURvi+elHCEIedVttVltsS4GPu9w4\ncBl3bAR0Yl16GgBfUmEEAfE5Qdp3qTzZLFffZYD57EB0xk9WFi2Zgypq5wFN\nVEufCWqJKOoEZNgHAZHT4KGWt5buCbFtTSzFpe9LXEHUUbRusVE4FhglVc4B\nK+7DoaU/6pwI2EGT6GDND/d2kXh2isCNrxWp0GfaUbVnyT02DYwkBCyxFsII\nhCt+7gKGxYv8rVafzuk4cOZ8vLk4oN3EscrMbVyrFJHixxPvk1WcUmXpk5at\nIGCUBS/uxYEGS+bZSzSHwSz/u9sR/yQhsjN4/rGXG+l/GUK3oCk1UoobVjl4\nD2AdqyebuRIFUXA++jILJXl7UFQc51cwzIFWsM/YSZ/OoK+GL6p7xzFhxUqy\nwoKCHxLIJIeURqpjchx/vBuAGe9skoOHsDHpXUBG48OI81a2iwZ78zgWjZsQ\nrijzG/rzST1poOzHOnbc+H4LBcZBlHnkkNUroe/b9ZskArfgfWYdWWEMax6j\n7C5vSxAkQS4rTKMx4euVS3YU8CLSyvepAalDJ9EWr4VW8JhdktAVmrE1eduF\n/Hde\r\n=LKoZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"41a6b559bb434c2a41c5850a04b2664de70e32d9","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.10","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"14.15.4","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.1.0","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.0.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_3.0.1_1610075588636_0.10697335867782742","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"2.5.6":{"name":"soql-parser-js","version":"2.5.6","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@2.5.6","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"40f15737f0b305c41264ae6931365176010fde28","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-2.5.6.tgz","fileCount":47,"integrity":"sha512-2FAMkGJ3cQqznmvUPTp/a3vTK9qYEz6UFZA8+qthjm+i56JdUGQdYnRIR9Yy8f/SBhZQMAp3YJBmBBKuWViboQ==","signatures":[{"sig":"MEYCIQCIbIBhPATwXVldN92wmWPrPjfMkLoRCEtep4fw5N4xlgIhALPXFTdHLnh2HU03cAdrbgA4DomRjE0RwF0Dfn3C7RKz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1215864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRCF1CRA9TVsSAnZWagAAkp4P/201RHk3ROTEmxVxwmMu\ndM7oxoKI7sldYyp6YcJK+0mhF61ADEGtbcGLQdByJnUkt3KHJLNPWOFgEcE8\ncYJ6x9LNVsxgaad3C2zb9X7MZ9WyclLl5ffsBZihq5/GVVW3OXuQdVvOn9IM\n1u34CEunHWcAyDXGp1hNzE510dVRoWZ44dXvzMEtUkPw/a04MFLHS1qsvozP\nGE6JJfQ4jhRL8Ue9Hk/AGNfkEd/6BYXdPlDO9EqSyxuSFE8HRN/iDv/gltaC\nArOKnpQgZroHLvLW38bsEi2BK7XK8zf+YKHPmSLeLdCV+9rpt1gF+MZzPuhN\nGlsG9HpBXo7R1UQxxiCkmTOVAQSNkFKNrxD7WVE3Z9lKt6l+WY8SuSKc0kS0\na24gpDl9byQwI171hDWJN7CDT+GyUdQ75Pb2OSYFBKbcXmfPUPjbb0Qhqllm\nAe7e/M8MgyDbB0/pbH864ep7oF4ac0o7vLKELzUwo1TBpsKlzpgrGBPQiYhn\n1tKNWO1OUYGELecqD9qU2j8fkWDEvbSQTinAgwbe8wTYtIoBLwcIs+mQUkDa\nemctakv3ajCo5qvbsJkQAAOD2PJFCF8Zw0Hy5GPTa2cTc46E/N08LIzTAICV\nhxtgkhP05XndKLeus39v1cUVSF8MkBQBwyivAN1uLIkfQnu4Zucy1uHKNmEO\ncxKD\r\n=BbIR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"59b753739d9cfcbf9821906d42e135861436e6cb","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.8","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^12.4.1","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^3.3.9","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_2.5.6_1615077748395_0.004919643813007024","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"3.0.2":{"name":"soql-parser-js","version":"3.0.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@3.0.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"143d2d78ffa3775aaaa6ff2dc59858caa6f7a17f","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-3.0.2.tgz","fileCount":47,"integrity":"sha512-jz2nwAJzl33woEBOp/LFwnq7e5Y48pnPKJo6LxCcEuMm4waW0HtHvlxCx1naxp5PGrDYS4Qb3RNWfi25g97jZw==","signatures":[{"sig":"MEUCIAaf3pin8zZk3WhkIjAsOzPPSETsMvE2UA3J9U7/C43uAiEAqUfJ3W+EyZCS9toBaoxCgRmbxieGBy9JbMs0WyKqtfI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1210800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRCSgCRA9TVsSAnZWagAAWLsP/A04dmQzLzuixjVlg8BJ\nmmbT+0TiWSfp7jI9RBoaPrPmZqvlJWSsFl5AmFAi1L38wFwU05aaEZlIGPEb\nPlk0sF5qGH0I/BbHzrNBgasNLbNc148v2yrRhOWmExnfUlOuV7DhQBg3wMnV\nTdClq3lBqDD9I0aAudV17C43USThvGgBeBdTbx4vfQCO2JvUBLYdJASmLPLz\n55zb822ksEy74sBAwuMSLDtlJkyi1cNvCgt8grLIvW9qAFEYimY4j2adOqhx\niZCmJ4daAbVQF/zqQ2lMxX/YhBlYh09t2a/jTKialmx36rzG/jtlv6jtr6e5\nyMQjJV2jyuhZNLEzQMNcg6HeqC8N56BuM0Zg5lXzrI8Bfj/d6o9/OXZVglJc\nCAoaVNRwfmoTlAk0ky3Ku/jO6nAPZZ70AkDZ/qzSPFexEqU3uH4EHOc6MSaP\nomkSYD0kPc75P/AiNshRPY/SYA6jnYK5YmK56MeAzDJkv8oaXfFebOY3QbHO\nAYR485W0WHLumbKiRxghGoMVdifhWB4djmRAW0yBvfG6Fa6j0jRMwxjdsWae\nwmM3Z+CqRRgt52xHf0679n68N5mCDml9uLBzEGNglPXYfdoUa+071wiDFY2Q\ndcFOaRbLAzi286URrWU0DQSrwxVs02BeY5wTNYRMZXdalj1NGXAuqXSdo6gk\nrinS\r\n=BesL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"8b2c2878599b92b92408b55be3dfca841a3411de","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.8","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chevrotain":"^6.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.42.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.1.0","typescript":"^3.6.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.0.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_3.0.2_1615078560215_0.299157123596844","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"3.1.0":{"name":"soql-parser-js","version":"3.1.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@3.1.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"be18076c75a9a4fc4c03360914b13df6a9c03979","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-3.1.0.tgz","fileCount":47,"integrity":"sha512-wamTNUX9V0Zy3MVFehAIUo3sXVWD+GeuVuDXeWc51tNyAoWl7C044JBlpFHlNNVRZnUIdSChYJHMC0mavVJN4A==","signatures":[{"sig":"MEUCICYHFshT5OhEqjgixcsyuANcdgSq0rEOmcvmSDIcjow+AiEA3A1jVb1mblOnJLhrz/2vbR5xPPNjr/RHQOS1tRDcjWg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1259595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX24OCRA9TVsSAnZWagAACTYQAIXLJFJ+6NbKYZmD6byL\nFTqrcDoPxePItGzxM4/3g0GM+//XTEe5gpO9UHpdgMscGh4lbWM8n2WizikO\nzjRvrlx3GPA5LWM4u5D2egu717pWy73+F4ZM4d475SzxqlCC2S7A5WgMs/OE\n04vKXHl20gf7FWTuIyw4D9aDNqCb1/S8UsqqmhuHLTp+HjSnvqntEHY6F3ZV\n9Q/tcmc0Or9fwSCgw+ojgOflhnF7qwul+KRojqp5oDKINPYGgIGMKJ3sQtbz\ngogG+5r5vff1pAdWGMI3gTGKyM8DNk6CFK2QmdrdhA6NjjYxk882NoXWfXtK\nVPKOCYN/bdDHw2Mw/LnBsWKvsu3AI45jtKt5Spy3QJUAgeX9NFhGrsRrbLCi\n3MZyG5KPuulqosetvEnIV/RZiHsosEwEz9gXhLXqKruH3iWrFWjd1SnD4xG2\n9ZugBReexI9glXnGU4JZ8TBwpzGwTeNeIRqye24LeyWQAlTvohW28cAEYdXP\nYhJwFFZhqpBYuk7N4g0gMhVAafpIxS8nw0NBDFcbRIxpX8PjXX7Emqvj5MK9\nsBfJkGZC7B5xLWWwTbOAnV4QeUd4aAL0Vhm8WAZgVQcrEK9dtMH/Zqa6uEOV\nRI4+MIfTciiWRTq7CY0dBZCtUwXazlVWxRay6RVYvkCjBKFSmNc+l/lsZSJU\n+o+V\r\n=KCwR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"e1e04911fd8413a9889be02d709819973e891660","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.8","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chevrotain":"^8.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_3.1.0_1616866830066_0.06609885375220892","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"3.2.0":{"name":"soql-parser-js","version":"3.2.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@3.2.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"69dd49248452c4befe361c14a3ab0fe3782376fb","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-3.2.0.tgz","fileCount":47,"integrity":"sha512-GQSWwV5+IC9aN3KKS9sew8avZzZvTaRHaRY97I7sbokRn1E4epKHxwMcgRnMG3uokqlPyZ4sEWU5cH/2CH51gw==","signatures":[{"sig":"MEYCIQCyMqwNvnqa8we0aEGx9aUUMv68yWCbAD39ni0vb3+92QIhAK1LCAOUU9v/TNOg8tokYYkLBanIVpUk1mDOWgAypI2q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1287146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgX8wRCRA9TVsSAnZWagAAvGMP/AheLN/39ZOQ5piAwLkO\nB0cTNRKWj+0oowA3Y7FBhUhiRqfaH1BJN+UQPzvfQvET7/fJ5z6fOZjR9hBt\nq+R4i3tF89EyFCtq8yrKURaN1r5ZnYbjBSeJAZ98EHj0kJuY4hGKZeEjEx5O\nO1cLaLVRglVAzkZU7PUS8dPAUATyZYCiibjHVM35CujY4FvZiu8+WcNl/7HM\nwtRLPB+LEioDDswDbJKEqEr6c1/U03ODDvwVmVWKPLt0QmsU+t9qJn3moMBu\nvWJxj1gzAg7RoKZRiabFtddWwWaDVV4mhIfxRTh9qBn4N5nriYO0sDrzApe0\nNb+b15Z1azk1tO3f/Afu5qwjv8EnY54fNUnC5RDzHKxF8TGhi6tbxepJi2bo\n9PvrJkWTs7vAks/zJDXNIeIFh8TESPgOlDMnbxehLNdImur00iWW59G/sbes\nZuB9Y8IMwkITthYavM23X2wG5bFJppseHycZfxWCUx/6oSlZ4aijgreJVkLY\nfNmELnqmvjEnvTG1U9sUIf9LAqD//8Vz8KMRmzW9yOdaej6mpzxXm1k8zMkh\nJhjI+Fvq2JDqUVSUa3k7suQQ7WADRxaRCGZSkXTe3S2xoNMb04VYIC3+lhCg\nrTuzmVpmI4ItKH7rdh3piAAYiUSzq8lD0fQvNzNexgGoHGR88ospKtv3GPdv\n6yh9\r\n=jAoZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"aee14a273b125783d0ded12c13ff322883656e39","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"6.14.8","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"14.15.1","dependencies":{"chevrotain":"^8.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_3.2.0_1616890897141_0.25563024826510494","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.0.0":{"name":"soql-parser-js","version":"4.0.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.0.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"0710e0e3a21d79b029e79940d26dae6bfd5ea63a","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.0.0.tgz","fileCount":47,"integrity":"sha512-KBIbVvGLQSTLMDXCkDKWOwQBtI+GZ5dIRgrYLX5UqWDk2MLWP6DsyMWICSQ3ALMIhu5nSk9pEDvSyfU7Vjk8Tw==","signatures":[{"sig":"MEYCIQCOi/D6ahCb4ZtLoFbA/YFJqtCaWO3DgEqIn3u4rqcp1AIhALXUBeJZdi/ZziYW6hlCShy7YIxEwZmmgauRcVHBeYb6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1284565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdnIuCRA9TVsSAnZWagAA0owP/jo6KlMmPJUWDMUpg76t\nFdRyPm3XMzFZKzX4/prRe7O8VT9Zf0GfkFlvKmeByYJJba11/wufmmazDVOe\npydcdGfM3mBEZOmN6A0H1MpKij+ZtHc5k8MECcX+fOFSG/PHf6r1ZXEHd87p\n1S0N1T7cs+9Pp+QFCnxPnOUVQpap4NETWNgnqZRMCb8Zepbyql373U0Q9mPv\nvjY1WLTLwVyT4YGB79Jw4lnTSaGxoikTpYNIqUj4zX5JyOoxxbN0xC770Rtk\nmS4OP2IGiZ+uCOJ4JAQOH8BKmCD3gYtKDdzYVhYh5jGex/rm1Ln/4TN5Xn0Q\nKfd3Hg9UE7vnJNKZoQSlWIU84B8+Q7BbtqjQpfZMfOtciLRq56UPQ/g/nLfi\nHZScb3KPiFQMN07woqZzZU6pIgapLErPPEk7FFoioED+ErtXzIn0Cd8GJHDm\ndO4Rlbvoh1RQ2iR7E+Rs3Zf9x5YB+5tbA9RbLWeyte885A3gX9R4Rlx9caj5\nqVQQJnIhvIKtVpSZG0XNNq+uI1ZG7YAm30eCelo6d6gx+Zzy/mZHmxljmZRD\nUDEjcHrM6HJerWyPbKosIRRxePmo+4YLze8v5cfC4V6f/pIG8kGJjK6OxOuZ\n3rfZTjtE9mAXXTd7RPY0pY9tV4QhERGh2GYTRd88veQP7AoGVp4ottuGsldU\nLBdD\r\n=Dsp4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"7295d049194a0b0c39c504c9e46fc6b5e6f9eb99","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.0.0_1618375213938_0.4633024186705328","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.1.0":{"name":"soql-parser-js","version":"4.1.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.1.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"0034883189ee57bb2731c62426174b5711c45d93","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.1.0.tgz","fileCount":47,"integrity":"sha512-dyzEJ98Mfq53mzkjvG48Y64xvmn6eEt2/u0Ou48jgDiAnHFfAtHHCTQT/+ZbHP0GKg3KZQ5o29sxWjMX1luwqA==","signatures":[{"sig":"MEUCIQD9OB5IVHaAOZlGX+LnuqT+iEmXZTEiBMnZ9pHg3chAWAIgVIjdPwZ3pwrqB6enZMx95dyZ9cxasMPfF6wjxGcNRXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1284565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvR7eCRA9TVsSAnZWagAAINIP/A/4v4ANQ0tXsWMw6zFx\n8wD5Mn9bZ+Fv5xbXihpDTHPtyqOTGGMkxxuFr5c2m8BscorJTbuEAKZIRP5a\nPqN26Ain8DeuP6TfXsiWH7GxFUfu/LfzAZO91YA9na8tADU20niwx9nq4MwJ\nE3vzotcHcD4jrtOm6Afe/vIAEQnlwGiPvPcw7kJMOlgO4JJtFcRUJUgGu91h\nMQ2bIGUJ11mNf/9gmODuFslV06KdbjxGI+NUieyBQIccdF345mSivg3DyJHg\n1u1veoHNKM7tmAiGoRVB4QOw57tf1pPXLZd7XG+vEQ1RNPRhzpl+YSQOpS5y\nCOr10wxUaGrpwutwPVrRsOtmK/3IYbU4IijoTa9iLzhPw/kKQybO2FRv4EG1\nA1oD5xIGIvhKRVAH7wYqWnGk4n2bRtHJRZG4q0//ge5QafRTUjnavbIo4hPu\no9QMEflk52L2fVs5YBNVRcwi7fQNqzgLpZzORcrI0jlD52clWrFuX4rPIO2v\nlx3ky5OxeKbEPzpKoTQxNNNK/bKcLYt0Q+VwMNpJlBK20/Tv2Dnn6bxrilz6\n9deWAQuWvcLUOh1IZYm7rP+you4oku1aSfWqB0q8CnALkmVMEtGOPGFXvpjh\nTSWhqxCiH+ogkvp/Jqmvd75eT8iFgtFKAPYzffuxUOTN+6cizsDzbwZtCqbN\nYI8M\r\n=AEim\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"d881d417d86e61e690e356454b3b4031dda2a71d","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js.","repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.1.0_1623006942458_0.4376807868175694","host":"s3://npm-registry-packages"}},"4.1.1":{"name":"soql-parser-js","version":"4.1.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.1.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"da7d88723fb746742da2d6e3fd004e559e90f026","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.1.1.tgz","fileCount":47,"integrity":"sha512-ZYVKxg9M/iEIT+ElP5Ywa4/aTvcFTBWQUezes/7fIthcGMgrlK0Hl+GXqnRy+0Z+tpa8DipSXMYadGz4vHJjTQ==","signatures":[{"sig":"MEQCIFkx+q9cxWDvIP3f02s0zIcF6/47xSFy4erYGJ0Bs+I9AiAVhRvSTwcUPyEQoCIemoDAnT+sVdr/X4XuRIyfXQm6sw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1292785,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvR/VCRA9TVsSAnZWagAAuyoQAIZEe+eWBBMFsKDbWq4M\nU647k4VoaL5XJs7rRQFgYssnpyxUv1IzdIwcvX7Whdtz9w/ybs/7xNwmI4F7\nu6ZD+hKtYRfSiB+i3qbeStZhC8GNKLS/3Y8+9990DBIzljZdpFN/itbULpzM\n0HpT6XQl+PNXy3qL+kof8wfZ6pIVxBCYUggRhi+wJuwMYiMdVznDrdvUMmM8\nghZkuq9BXZodiev5jBmWfFuzpb4DPJjnEaGLgHW/1AORWo7eoq5Qhvmn/ry6\nX29caiw6QY/s3iSdTg7+hLHhjvTmIwkvw6KU64m6IJNUG3ls4PyQRW+MfJfp\nWVkQ8LvSvGYzimCqWAWY6djFZi/49TUpezqkguUdZ5//6XV9xFsErT6GUKZf\nTkAHCHwfPm1KDTZbXAihP5WPLgOgV7EchbvBwOb41/fvbfhkD66V/OgRCCkM\nfo1y/6tb58B60RkqC2Hu80DmdA9sXwRHNdtk01lp0lakuOL7j7ENImx6ZGSf\nX9T6iHTNcKNyM0vyRHwPxa7nSZKSP6tF4q1X0xNjVo7K8QAGL/dNwvDlAt/F\nxyBmvi9icIcDRa3wmIypyoOkJVsZVieHR74HlQb15+60bBJqa1/hqPKHdWGO\ngmngx+AAqqxyej/JDQNvyepUPDWh2M5hlJ9WyIOpQnCrvxjfG7rKh+JdaVRI\nieHP\r\n=8dfW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"bb973f7ca1f30bbf97cedcacf93530646856a1f3","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.1.1_1623007189499_0.9365037680299069","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.2.0":{"name":"soql-parser-js","version":"4.2.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.2.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"af9de2e2a0e276f077645d287238a105df0bf624","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.2.0.tgz","fileCount":47,"integrity":"sha512-yD4xR2CR34Qy9W0YL2IpapYlq4ZbQrcIHlECZTaiBoDymLoFlHxjLhg85uSMLAdI4sVJ6zjrLsC/3zg+2Gsbrg==","signatures":[{"sig":"MEUCIDDDTg9K9+duqb4y/yijdV2kKqSESidLRwGCQQv1xntYAiEA8lA5LDorcOAS8Hu+UhHjXLCK7PA4VZbvvNKTZRSOeo8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1319607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgv3cuCRA9TVsSAnZWagAAOPkP/R+FluQJPSlOdVt0E1Ab\n/5j0KlGEOe7UCZoTVDp+9tbGThcHcsMQi6UrzUIDHz1VrKM2VTZViMhddjjX\n1q6aIl5YkV7yVtmoAtCjmlln2TAenDgAA7sE3KwLYacEwHdoRz4j0dZaQLvB\nzHxHLox1SrFhvDhjQTUQx9+ZF7yFgErEOBYeGx52EQTksoOToFggzWVBPA+B\n2dWfZ30wnMmdgAAISScSKIcBMNFALaL/HXf5xgoJfV2mve0X2VNr+5Bvw3kS\njFTeCqvNDAe+/ot9eEgTwq9S7rGTB5ruIb5yT9/NIsFHQnnmwVJ2Ooh34VLk\nUM9E4xvi0voYOULDVuLVrEFPsaHtFGuEtkdlC6KWIBzM/l8Oyb9vbcQFUJ/c\n2g8KSqUIPgnDRdPBhE3158qx224QtqcgArqAyvohOg4x1ZGCMxphjcumv+DM\nr0aScv1iJFH069HBLCc7P4KNK97QrPgFHqH0GAAnb0+7VHWXJFLy5crUkt1x\nSSmh5XSdCwRSMXyMtZSDAYvTjJAUjX5r6u/rP4QjBiOTqzVJvCCwgYpwq6rA\nvJMYYeyD0nB6Ccf02VfgM6BTY3jE178E0uLrmu3BTcCxfvKJRV1V9EplpK1U\nIZU/Z52nGAUStjIt1DKvyk2mYVpP39sBvBwrsfUYbC1a20nvVUA1t63sq+cp\nxeAu\r\n=0kx/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"47399a7eab50e942f17d068a2a9d0d51e97041c6","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.9.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.2.0_1623160622002_0.4403352284863473","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.2.1":{"name":"soql-parser-js","version":"4.2.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.2.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"ad10fce2df87804a16f7ebf5e24f8995609b9562","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.2.1.tgz","fileCount":47,"integrity":"sha512-CpJgbVWTi14N6+h+BNyKHSBgHOvDWxwpXUDvL7QyZqHI+p00hhhBbNzuS9skS4HyHRDpoNaXQJ+k2y+de7m/JQ==","signatures":[{"sig":"MEUCIQDFV4XlQaEUh++kd96llfW0fXyj1PSEgj+OzeTy9N0i+QIgZ8aykSUg4gv6SQNtvepPwW0y4yZIhMRxD5PSYzviO4g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1287409,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzTicCRA9TVsSAnZWagAA1YsQAIUIht7vz/YT4u80SkP1\nJv5wXSZGZyUS8oQOT+d2MwtS0I8N0Fi5SNqf3WBbb7kU7nVjk2Jr3d6cu/I7\nLcpC5ZVVjX9W46+9aH7lih1KkAhodltlxYK9v+zOsvrRZdijkiVZsfSw2ywW\nr/ZD3oPXWbf4gzCeMhZa5zp37F1a8SjT5dLy5aYVgvF0sK2nLJehjQ/Ub9M1\ng6ZQ7WaIpjWB6dp9GA4X8CQQALIIeKLshIFFVTGpdYlKn01OCsBXMN2GzWkk\nV9E0MAb1+7wj4Pk+/CaIePr2FXjZUOxw1+DoiDeE2b4aQ3gmgK2AwZp+6U+P\ntFd37/kWQ68QBh+4v8QvS8zQOEdgFTeHsmTPPOUIrzfhGBaQhCGNu1Ho1SCQ\nPWRSY3NEd8FpTmaY3oEgbAefzz7YUMakFWPGGVq6Dmyy5l86lFyr/6fL8QAi\n7N1qyPnjTOlybaCI80mKzpDzLdsvBFTlwVexsnnIyz/6DXprZE+KbWs8pE7z\nVKGT0QE3Ar47qRyR3vseBlt5T8TsF1FvCIIEDSkq4ixhwuDZEPIhULsTlxvD\nTOl4b6OK/iiWyFsCRcaYiG86qYRftQP2d0rZVu2yr5CrNvv4Is1jI2nV21uA\nEylNEx4ezQyKSRHRtFaLFMPHwi7f5caRsp8RU5VGVYCOM6zNJgDQKlQzTxeD\ngnC4\r\n=X2Kw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"1f58edc8a97ddfdf282d7fd2800e2cf79876d85c","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.7.6","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.2.1_1624062107675_0.12414242581008517","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.2.2":{"name":"soql-parser-js","version":"4.2.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.2.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"dist":{"shasum":"d0bdc0b354c5048b38f431b2b91bf4b67f61f408","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.2.2.tgz","fileCount":47,"integrity":"sha512-fvDSuXbi9Mn2mw8ApbN1C3ZuWJ5jXqzQuoclKW9LRrvaBcXVyv/592EaQ3nt2xMcMG8meLpipMgc0H/SMFOlCA==","signatures":[{"sig":"MEYCIQDqnmUtBi7UyYr8MB2ZtKTjGevCaUAQyspiVY9lsmWA6wIhAI6jO1XQgrU90UaDWer4TlYbQUocBx2IpLAaq2Gcdd2i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1287677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBvThCRA9TVsSAnZWagAAoj8P/0Fao0eYc0QHqbjHDC2e\nkEq736w/Y0CP7+J7N+evljpI3tWgla4ws5X5RE39B2C8llVDIogL8pQ2riD3\nMR89k3UAIZ9jk0kcKQ9B/levBqmGGTYOJnu8otg9ghXjSPKJQ9rhtJnn9lHz\nGdCK9TJUFSI7qFzfccR9JGQf1F+WSfwKkU8yqEC58dOoMs0A5nIOo7M01XIw\nXzKdhPsbnNMIx1g0R+EWH/h9T6kMsGwToxYwG3fV03v7L+w345soXxSrd8uf\nrpSNyIWrOu6fcA0i+YMIbBGpZcUwS2TuBZp0wuBNOhYUxA42NB1HQbP2rIOX\nEwO2SNZ4dzG9AeDom+64cb43WyFEm51rEs0kEV+U0HWZyBowg4cGS1L0nXhL\nBM43SQH+G5mGk8tL8dNBRMvzac1jHHOqZavkXm7AbpQ5ubr+GBclBNOHoOQ6\ntxOSvMdmcDQcG58MtzLl1fiRczXSu136rcDm6SHBpYQcO7LkL29y/AdC7MqY\nJ247jop5WUtAUIZUmZBK6XEw5ATTYwF4WGwL+D75CWlu2zA/W1TlWRr5OuLA\npj0Qg4ZYOniDuKR/clD/Ej5IzqO/nMAQcsmYQVb+bjFxKDGsA5b4nU96H5Yc\np09WuM4pRyx18dtLuwmUxqtBy7shRsfCMoQ10+rZdZeIFfnWgKwFi/wBdZvx\nliSg\r\n=IHgD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"26719c57e12d646f73313652df31b801186991c0","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:esm":"npm-run-all clean:esm compile:esm","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.7.6","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.2.2_1627845856943_0.6048304580014032","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.2.3-0":{"name":"soql-parser-js","version":"4.2.3-0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.2.3-0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/index"},"dist":{"shasum":"1d5ab907ed99d04f4605f9d3d7dd5d9655764dc2","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.2.3-0.tgz","fileCount":59,"integrity":"sha512-+6KZK+JsV7NNh51D212vboT1hyU1j9hrgfVH8jOvHAdbXM4j2baeagJHJl93MBvf4wuG4AV8YKijwCRCtAMYVw==","signatures":[{"sig":"MEUCIEHX3VamUD3eJzykgxvFXXxMiyEdiJgRaBEgTRd2oD0+AiEA19ql5mzxQAwawax8S2Rqx/IDAm6dj5mIOccX8y0TNo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1480939},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"<img src=\"./assets/soql-parser-js-logo.svg\">\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Deterministically compose a `Query` data structure back into a SOQL query string.\n3. Validate a query to check if the syntax is valid.\n   1. _Even if a query is returned as valid, it might still be invalid based on your Salesforce configuration_\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used.\n\nMigrating from version 1 to version 2? [Check out the changelog](CHANGELOG.md#200) for a full list of changes.\n\nMigrating from version 2 to version 3? [Check out the changelog](CHANGELOG.md#300) for a full list of changes.\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Compatibility\n\n**Node**: version 11 or higher, or a polyfill for [Array.flat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat)  \n**Browser**: Tested in all modern browsers, may not work with older browsers.\n\nThe **commander** dependency is only required for the cli, the other two dependencies **chevrotain** and **lodash.get** are bundled with the non-cli code.\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement.        | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n## Utility Functions\n\n**General Utility**\n\nMany of hte utility functions are provided to easily determine the shape of specific data since there are many variations. If you are using Typescript in strict mode, you can use these to narrow types with if statements.\n\n| Function                                | Description                                                                                                                                                                                                             | Arguments                                                                 |\n| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |\n| hasAlias                                | Returns `true` if the field passed in has the `alias` property.                                                                                                                                                         | input: `string | ComposeFieldInput`                                       |\n| getField                                | Convenience method to construct fields in the correct format when using `composeQuery()`. Look in the data models section below for the structure of `ComposeFieldInput`.                                               | input: `string | ComposeFieldInput`                                       |\n| getFlattenedFields                      | Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings. | soql: `Query | Subquery | FieldSubquery`<br> config?: `SoqlComposeConfig` |\n| isSubquery                              | Returns `true` if the data passed in is a subquery.                                                                                                                                                                     | query: `Query | Subquery`                                                 |\n| isFieldSubquery                         | Returns `true` if the data passed in is a FieldSubquery.                                                                                                                                                                | value: `any`                                                              |\n| isWhereClauseWithRightCondition         | Returns `true` if the value passed in is a `WhereClause` with an `operator` and `right` property                                                                                                                        | value: `WhereClause`                                                      |\n| isHavingClauseWithRightCondition        | Returns `true` if the value passed in is a `HavingClause` with an `operator` and `right` property                                                                                                                       | value: `HavingClause`                                                     |\n| isWhereOrHavingClauseWithRightCondition | Returns `true` if the value passed in is a `WhereClause` or `HavingClause` with an `operator` and `right` property                                                                                                      | value: `WhereClause | HavingClause`                                       |\n| isValueCondition                        | Returns `true` if the value passed in has `field`, `operator` and `value` properties                                                                                                                                    | value: `Condition`                                                        |\n| isValueWithDateLiteralCondition         | Returns `true` if the value passed in has `field`, `operator` and `value` properties and has a `literalType` property that is `DATE_LITERAL` of `['DATE_LITERAL',...]`                                                  | value: `Condition`                                                        |\n| isValueWithDateNLiteralCondition        | Returns `true` if the value passed in has `field`, `operator`, `value` and `dateLiteralVariable` properties                                                                                                             | value: `Condition`                                                        |\n| isValueFunctionCondition                | Returns `true` if the value passed in has `fn`, `operator` and `value` properties                                                                                                                                       | value: `Condition`                                                        |\n| isNegationCondition                     | Returns `true` if the value passed in has a `openParen` property and does not have `fn`, `field`, `operator`, `value`, and `closeParen` properties                                                                      | value: `Condition`                                                        |\n| isValueQueryCondition                   | Returns `true` if the value passed in has `field`, `operator` and `valueQuery` properties and does not have a `value` property                                                                                          | value: `Condition | ValueQueryCondition`                                  |\n| isOrderByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `OrderByClause`                                                    |\n| isOrderByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `OrderByClause`                                                    |\n| isGroupByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `GroupByClause`                                                    |\n| isGroupByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `GroupByClause`                                                    |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                                                                                                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. Only simple Apex is supported. Function calls are not supported. (e.x. `accountMap.keyset()` is not supported)                                  | FALSE    | FALSE   |\n| ignoreParseErrors      | boolean | If set to true, then queries with partially invalid syntax will still be parsed, but any clauses with invalid parts will be omitted. The SELECT clause and FROM clause must always be valid, but all other clauses can contain invalid parts. | FALSE    | FALSE   |\n| logErrors              | boolean | If true, parsing and lexing errors will be logged to the console.                                                                                                                                                                             | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                         | Type    | Description                                                                                                                                                                                 | required | default |\n| -------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| numIndent                        | number  | The number of tab characters to indent.                                                                                                                                                     | FALSE    | 1       |\n| fieldMaxLineLength               | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line.                                                        | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine     | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                                                                                      | FALSE    | TRUE    |\n| newLineAfterKeywords             | boolean | Adds a new line and indent after all keywords (such as SELECT, FROM, WHERE, ORDER BY, etc..) Setting this to true will add new lines in other places as well, such as complex WHERE clauses | FALSE    | FALSE   |\n| ~~whereClauseOperatorsIndented~~ | boolean | **Deprecated** If true, indents the where clause operators.                                                                                                                                 | FALSE    | FALSE   |\n| logging                          | boolean | Print out logging statements to the console about the format operation.                                                                                                                     | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to uppercase (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## CLI\n\nIf you install globally, you can use the cli\n\n### Available Commands\n\n- `soql-parser-js --help`\n- `soql-parser-js parse --help`\n- `soql-parser-js compose --help`\n- `soql-parser-js format --help`\n\n### Examples\n\n#### Parse\n\n`soql-parser-js parse \"SELECT Id FROM Account\"`\n\n```bash\n{\"fields\":[{\"type\":\"Field\",\"field\":\"Id\"}],\"sObject\":\"Account\"}\n```\n\n#### Compose\n\n`soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\"`\n\n```bash\nSELECT Id FROM Account\n```\n\n`soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\" --json` or -j\n\n```json\n{ \"query\": \"SELECT Id FROM Account\" }\n```\n\n#### Format\n\n`soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1\"`\n\n```bash\nSELECT Name, COUNT(Id)\nFROM Account\nGROUP BY Name\nHAVING COUNT(Id) > 1\n```\n\n`soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1 -j`\n\n```json\n{ \"query\": \"SELECT Name, COUNT(Id)\\nFROM Account\\nGROUP BY Name\\nHAVING COUNT(Id) > 1\" }\n```\n\n#### Is Valid\n\n`soql-parser-js valid \"SELECT Id FROM Account\"`\n\n```bash\ntrue\n```\n\n`soql-parser-js valid \"SELECT Id invalid FROM Account\"`\n\nℹ️ this returns an exit code of 1\n\n```bash\nfalse\n```\n\n`soql-parser-js valid \"SELECT Id FROM Account -j`\n\n```json\n{ \"isValid\": true }\n```\n\n`soql-parser-js valid \"SELECT Id invalid invalid FROM Account -j`\n\nℹ️ this returns an exit code of 0\n\n```json\n{ \"isValid\": false }\n```\n\n### List of options\n\n`soql-parser-js --help`\n\n```bash\nUsage: soql-parser-js [options] [command]\n\nOptions:\n  -h, --help                 output usage information\n\nCommands:\n  parse [options] <query>\n  compose [options] <query>\n  format [options] <query>\n  valid <query>\n```\n\n`soql-parser-js parse --help`\n\n```bash\nUsage: parse [options] <query>\n\nOptions:\n  -a, --allow-apex     allow apex bind variables\n  -i, --ignore-errors  ignore parse errors, return as much of query as possible\n  -h, --help           output usage information\n```\n\n`soql-parser-js compose --help`\n\n```bash\nUsage: compose [options] <query>\n\nOptions:\n  -f, --format                   format output\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js format --help`\n\n```bash\nUsage: format [options] <query>\n\nOptions:\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js valid --help`\n\n```bash\nUsage: valid [options] <query>\n\nOptions:\n  -j, --json  output as JSON\n  -h, --help  output usage information\n```\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR' | 'NOT';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType =\n  | Field\n  | FieldWithAlias\n  | FieldFunctionExpression\n  | FieldRelationship\n  | FieldRelationshipWithAlias\n  | FieldSubquery\n  | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  alias?: string;\n}\n\nexport interface FieldWithAlias extends Field {\n  objectPrefix: string;\n  rawValue: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationshipWithAlias extends FieldRelationship {\n  objectPrefix: string;\n  alias: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport type WhereClause = WhereClauseWithoutOperator | WhereClauseWithRightCondition;\n\nexport interface WhereClauseWithoutOperator {\n  left: ConditionWithValueQuery;\n}\n\nexport interface WhereClauseWithRightCondition extends WhereClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: WhereClause;\n}\n\nexport type Condition =\n  | ValueCondition\n  | ValueWithDateLiteralCondition\n  | ValueWithDateNLiteralCondition\n  | ValueFunctionCondition\n  | NegationCondition;\n\nexport type ConditionWithValueQuery = Condition | ValueQueryCondition;\n\nexport interface OptionalParentheses {\n  openParen?: number;\n  closeParen?: number;\n}\n\nexport interface ValueCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface ValueWithDateLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: DateLiteral | DateLiteral[];\n  literalType?: 'DATE_LITERAL' | 'DATE_LITERAL'[];\n}\n\nexport interface ValueWithDateNLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: 'DATE_N_LITERAL' | 'DATE_N_LITERAL'[];\n  dateLiteralVariable: number | number[];\n}\n\nexport interface ValueQueryCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  valueQuery: Query;\n}\n\nexport interface ValueFunctionCondition extends OptionalParentheses {\n  fn: FunctionExp;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface NegationCondition {\n  openParen: number;\n}\n\nexport type OrderByClause = OrderByFieldClause | OrderByFnClause;\n\nexport interface OrderByOptionalFieldsClause {\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface OrderByFieldClause extends OrderByOptionalFieldsClause {\n  field: string;\n}\n\nexport interface OrderByFnClause extends OrderByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type GroupByClause = GroupByFieldClause | GroupByFnClause;\n\nexport interface GroupByOptionalFieldsClause {\n  having?: HavingClause;\n}\n\nexport interface GroupByFieldClause extends GroupByOptionalFieldsClause {\n  field: string | string[];\n}\n\nexport interface GroupByFnClause extends GroupByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type HavingClause = HavingClauseWithoutOperator | HavingClauseWithRightCondition;\n\nexport interface HavingClauseWithoutOperator {\n  left: Condition;\n}\n\nexport interface HavingClauseWithRightCondition extends HavingClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: HavingClause;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // only used for compose fields if useRawValueForFn=true. Should be formatted like this: Count(Id)\n  functionName?: string; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"94ce3556359a1242af3cfb904e57868170cd430d","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.7.6","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.2.3-0_1632110513074_0.04057476266980964","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.2.3-1":{"name":"soql-parser-js","version":"4.2.3-1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.2.3-1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"3086b2aaca7a8d25bc9930b74d286c7f156dcd92","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.2.3-1.tgz","fileCount":59,"integrity":"sha512-mkefBAHDwTrz2n2UMSGcxvtZjg/eqVJV0EvaTzvKdOkhyvL8+Y3P2l6ntGBESSQbeB8wv57SEAyx+KbG6XEE8Q==","signatures":[{"sig":"MEQCIDVF1aYVossaMqM7BUcdVXuZLeK/nDVRjCrPoNOBsXTcAiAab/6TXq4OpNnWcR6AjCxVYGWDNeFOsRSEnj2YZpeI5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1480948},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","readme":"<img src=\"./assets/soql-parser-js-logo.svg\">\n\n[![build](https://api.travis-ci.com/paustint/soql-parser-js.png?branch=master)](https://travis-ci.com/paustint/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/paustint/soql-parser-js.svg)](https://david-dm.org/paustint/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Deterministically compose a `Query` data structure back into a SOQL query string.\n3. Validate a query to check if the syntax is valid.\n   1. _Even if a query is returned as valid, it might still be invalid based on your Salesforce configuration_\n\nThis library uses [Chevrotain](https://github.com/SAP/chevrotain) to parse queries. Prior to version 2.0.0, [antlr4](https://github.com/antlr/antlr4) was used.\n\nMigrating from version 1 to version 2? [Check out the changelog](CHANGELOG.md#200) for a full list of changes.\n\nMigrating from version 2 to version 3? [Check out the changelog](CHANGELOG.md#300) for a full list of changes.\n\nWant to try it out? [Check out the demo](https://paustint.github.io/soql-parser-js/).\n\n## Compatibility\n\n**Node**: version 11 or higher, or a polyfill for [Array.flat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat)  \n**Browser**: Tested in all modern browsers, may not work with older browsers.\n\nThe **commander** dependency is only required for the cli, the other two dependencies **chevrotain** and **lodash.get** are bundled with the non-cli code.\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement.        | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n## Utility Functions\n\n**General Utility**\n\nMany of hte utility functions are provided to easily determine the shape of specific data since there are many variations. If you are using Typescript in strict mode, you can use these to narrow types with if statements.\n\n| Function                                | Description                                                                                                                                                                                                             | Arguments                                                                 |\n| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |\n| hasAlias                                | Returns `true` if the field passed in has the `alias` property.                                                                                                                                                         | input: `string | ComposeFieldInput`                                       |\n| getField                                | Convenience method to construct fields in the correct format when using `composeQuery()`. Look in the data models section below for the structure of `ComposeFieldInput`.                                               | input: `string | ComposeFieldInput`                                       |\n| getFlattenedFields                      | Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings. | soql: `Query | Subquery | FieldSubquery`<br> config?: `SoqlComposeConfig` |\n| isSubquery                              | Returns `true` if the data passed in is a subquery.                                                                                                                                                                     | query: `Query | Subquery`                                                 |\n| isFieldSubquery                         | Returns `true` if the data passed in is a FieldSubquery.                                                                                                                                                                | value: `any`                                                              |\n| isWhereClauseWithRightCondition         | Returns `true` if the value passed in is a `WhereClause` with an `operator` and `right` property                                                                                                                        | value: `WhereClause`                                                      |\n| isHavingClauseWithRightCondition        | Returns `true` if the value passed in is a `HavingClause` with an `operator` and `right` property                                                                                                                       | value: `HavingClause`                                                     |\n| isWhereOrHavingClauseWithRightCondition | Returns `true` if the value passed in is a `WhereClause` or `HavingClause` with an `operator` and `right` property                                                                                                      | value: `WhereClause | HavingClause`                                       |\n| isValueCondition                        | Returns `true` if the value passed in has `field`, `operator` and `value` properties                                                                                                                                    | value: `Condition`                                                        |\n| isValueWithDateLiteralCondition         | Returns `true` if the value passed in has `field`, `operator` and `value` properties and has a `literalType` property that is `DATE_LITERAL` of `['DATE_LITERAL',...]`                                                  | value: `Condition`                                                        |\n| isValueWithDateNLiteralCondition        | Returns `true` if the value passed in has `field`, `operator`, `value` and `dateLiteralVariable` properties                                                                                                             | value: `Condition`                                                        |\n| isValueFunctionCondition                | Returns `true` if the value passed in has `fn`, `operator` and `value` properties                                                                                                                                       | value: `Condition`                                                        |\n| isNegationCondition                     | Returns `true` if the value passed in has a `openParen` property and does not have `fn`, `field`, `operator`, `value`, and `closeParen` properties                                                                      | value: `Condition`                                                        |\n| isValueQueryCondition                   | Returns `true` if the value passed in has `field`, `operator` and `valueQuery` properties and does not have a `value` property                                                                                          | value: `Condition | ValueQueryCondition`                                  |\n| isOrderByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `OrderByClause`                                                    |\n| isOrderByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `OrderByClause`                                                    |\n| isGroupByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `GroupByClause`                                                    |\n| isGroupByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `GroupByClause`                                                    |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                                                                                                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. Only simple Apex is supported. Function calls are not supported. (e.x. `accountMap.keyset()` is not supported)                                  | FALSE    | FALSE   |\n| ignoreParseErrors      | boolean | If set to true, then queries with partially invalid syntax will still be parsed, but any clauses with invalid parts will be omitted. The SELECT clause and FROM clause must always be valid, but all other clauses can contain invalid parts. | FALSE    | FALSE   |\n| logErrors              | boolean | If true, parsing and lexing errors will be logged to the console.                                                                                                                                                                             | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                         | Type    | Description                                                                                                                                                                                 | required | default |\n| -------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| numIndent                        | number  | The number of tab characters to indent.                                                                                                                                                     | FALSE    | 1       |\n| fieldMaxLineLength               | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line.                                                        | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine     | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                                                                                      | FALSE    | TRUE    |\n| newLineAfterKeywords             | boolean | Adds a new line and indent after all keywords (such as SELECT, FROM, WHERE, ORDER BY, etc..) Setting this to true will add new lines in other places as well, such as complex WHERE clauses | FALSE    | FALSE   |\n| ~~whereClauseOperatorsIndented~~ | boolean | **Deprecated** If true, indents the where clause operators.                                                                                                                                 | FALSE    | FALSE   |\n| logging                          | boolean | Print out logging statements to the console about the format operation.                                                                                                                     | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n// var soqlParserJs = require('soql-parser-js'); // node's require format - usage: soqlParserJs.parseQuery()\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to uppercase (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the \"WHERE\" clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, getComposedField, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereClause(parsedQuery.where);\n\n  console.log(whereClause);\n  // Name = 'Foo'\n}\n\n```\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://paustint.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## CLI\n\nIf you install globally, you can use the cli\n\n### Available Commands\n\n- `soql-parser-js --help`\n- `soql-parser-js parse --help`\n- `soql-parser-js compose --help`\n- `soql-parser-js format --help`\n\n### Examples\n\n#### Parse\n\n`soql-parser-js parse \"SELECT Id FROM Account\"`\n\n```bash\n{\"fields\":[{\"type\":\"Field\",\"field\":\"Id\"}],\"sObject\":\"Account\"}\n```\n\n#### Compose\n\n`soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\"`\n\n```bash\nSELECT Id FROM Account\n```\n\n`soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\" --json` or -j\n\n```json\n{ \"query\": \"SELECT Id FROM Account\" }\n```\n\n#### Format\n\n`soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1\"`\n\n```bash\nSELECT Name, COUNT(Id)\nFROM Account\nGROUP BY Name\nHAVING COUNT(Id) > 1\n```\n\n`soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1 -j`\n\n```json\n{ \"query\": \"SELECT Name, COUNT(Id)\\nFROM Account\\nGROUP BY Name\\nHAVING COUNT(Id) > 1\" }\n```\n\n#### Is Valid\n\n`soql-parser-js valid \"SELECT Id FROM Account\"`\n\n```bash\ntrue\n```\n\n`soql-parser-js valid \"SELECT Id invalid FROM Account\"`\n\nℹ️ this returns an exit code of 1\n\n```bash\nfalse\n```\n\n`soql-parser-js valid \"SELECT Id FROM Account -j`\n\n```json\n{ \"isValid\": true }\n```\n\n`soql-parser-js valid \"SELECT Id invalid invalid FROM Account -j`\n\nℹ️ this returns an exit code of 0\n\n```json\n{ \"isValid\": false }\n```\n\n### List of options\n\n`soql-parser-js --help`\n\n```bash\nUsage: soql-parser-js [options] [command]\n\nOptions:\n  -h, --help                 output usage information\n\nCommands:\n  parse [options] <query>\n  compose [options] <query>\n  format [options] <query>\n  valid <query>\n```\n\n`soql-parser-js parse --help`\n\n```bash\nUsage: parse [options] <query>\n\nOptions:\n  -a, --allow-apex     allow apex bind variables\n  -i, --ignore-errors  ignore parse errors, return as much of query as possible\n  -h, --help           output usage information\n```\n\n`soql-parser-js compose --help`\n\n```bash\nUsage: compose [options] <query>\n\nOptions:\n  -f, --format                   format output\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js format --help`\n\n```bash\nUsage: format [options] <query>\n\nOptions:\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js valid --help`\n\n```bash\nUsage: valid [options] <query>\n\nOptions:\n  -j, --json  output as JSON\n  -h, --help  output usage information\n```\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR' | 'NOT';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType =\n  | Field\n  | FieldWithAlias\n  | FieldFunctionExpression\n  | FieldRelationship\n  | FieldRelationshipWithAlias\n  | FieldSubquery\n  | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  alias?: string;\n}\n\nexport interface FieldWithAlias extends Field {\n  objectPrefix: string;\n  rawValue: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationshipWithAlias extends FieldRelationship {\n  objectPrefix: string;\n  alias: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport type WhereClause = WhereClauseWithoutOperator | WhereClauseWithRightCondition;\n\nexport interface WhereClauseWithoutOperator {\n  left: ConditionWithValueQuery;\n}\n\nexport interface WhereClauseWithRightCondition extends WhereClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: WhereClause;\n}\n\nexport type Condition =\n  | ValueCondition\n  | ValueWithDateLiteralCondition\n  | ValueWithDateNLiteralCondition\n  | ValueFunctionCondition\n  | NegationCondition;\n\nexport type ConditionWithValueQuery = Condition | ValueQueryCondition;\n\nexport interface OptionalParentheses {\n  openParen?: number;\n  closeParen?: number;\n}\n\nexport interface ValueCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface ValueWithDateLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: DateLiteral | DateLiteral[];\n  literalType?: 'DATE_LITERAL' | 'DATE_LITERAL'[];\n}\n\nexport interface ValueWithDateNLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: 'DATE_N_LITERAL' | 'DATE_N_LITERAL'[];\n  dateLiteralVariable: number | number[];\n}\n\nexport interface ValueQueryCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  valueQuery: Query;\n}\n\nexport interface ValueFunctionCondition extends OptionalParentheses {\n  fn: FunctionExp;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface NegationCondition {\n  openParen: number;\n}\n\nexport type OrderByClause = OrderByFieldClause | OrderByFnClause;\n\nexport interface OrderByOptionalFieldsClause {\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface OrderByFieldClause extends OrderByOptionalFieldsClause {\n  field: string;\n}\n\nexport interface OrderByFnClause extends OrderByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type GroupByClause = GroupByFieldClause | GroupByFnClause;\n\nexport interface GroupByOptionalFieldsClause {\n  having?: HavingClause;\n}\n\nexport interface GroupByFieldClause extends GroupByOptionalFieldsClause {\n  field: string | string[];\n}\n\nexport interface GroupByFnClause extends GroupByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type HavingClause = HavingClauseWithoutOperator | HavingClauseWithRightCondition;\n\nexport interface HavingClauseWithoutOperator {\n  left: Condition;\n}\n\nexport interface HavingClauseWithRightCondition extends HavingClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: HavingClause;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // only used for compose fields if useRawValueForFn=true. Should be formatted like this: Count(Id)\n  functionName?: string; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/paustint/soql-parser-js/blob/master/CONTRIBUTING.md).\n","gitHead":"51fc0cfb295cfc086dc77ed811d8bdf7c359ca70","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.7.6","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.2.3-1_1632110818377_0.34219434721661446","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.3.0":{"name":"soql-parser-js","version":"4.3.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.3.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"77651b09227e90c088822cdf6a2ec1bd707c52f0","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.3.0.tgz","fileCount":59,"integrity":"sha512-O4qGR9TqCHPOBSPToSu/Ixl/OuXGg8u87DP1c6lxwc+gfMAUqtknM8Tkwz5GCJy9r9woorlAI67+ELz1+3rcqQ==","signatures":[{"sig":"MEUCIBB/ji+gDiAAOqTaTYWIZQ3G3eL9Ym9HR3lpA+YUXzzcAiEAyQSOeK+6U3LMqqVo2zIQkm3murqELf4yE+++2uoJgag=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1480942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh27nCCRA9TVsSAnZWagAADP4P/jpHJdejI3CcjBaOKF4V\nFmO0n7pZKQM4iLoF1sBxXzvDAA/RJqxnkGTLpstZGm6W2/gkIuFSsLRglpxX\nnPnok8tBY2EozmxayFzR40DNtls36qBkLv6baJTn89mVJYDPuqYdgLG3VZ9M\nmAlooJe9XcDQSmWbLNbDV8r/PQ1R/3ZwjpnluHvRKybbq3UGvQre2nA9zWAT\n0OyCvkKTmm4AF7Lg8Zj2d4GNj4U3AipQup6nN7r+Ex6uBsRUcDWAgwJXK5XP\nb65+GncfLlDKzvQQ4vBCbEQtqptusFd7nVB4fZXeXjIU7ULa7nsnIyCMnEBB\nPBM4yrxSiZ1hjh/X85WVOFja9AUHHZWql9LE7JCELxNwSDV7qhVhLQZSqyN7\n1+nBPDIigWwxqzr0VqwwBqFzH4/wJh/pM2TrNsah0awyPvIYtGvKjoysgv7F\nFgmKSHGvCNz5fMU2KazRCVPTHrrahCW9Wfo5FJseGswPoS1Csuvv2oCXNbty\nw59XNPToDBUtczyBsDIti+fOF1HebXUvidWdPKv4+/N8ofqNWkyaLFlpq3XF\n+jFFMg4y82A3j3xBaQAeXvWmgSwCpPPuVoMCWyQerWtIqX4byOZO+/SM2+ew\nJpIPWRPbh7mw8Kozj3rAR3n4ZoWWsc5ocqRy00GQUdlwUSiqI5PIysVB2F9H\nqQto\r\n=OmIO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"2c1458390a8596c04b461d2e314d22e073f136cf","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.7.6","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"15.14.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.3.0_1632111392432_0.9909358717185832","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.3.1":{"name":"soql-parser-js","version":"4.3.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.3.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"beda033d4ea3ffe015345a780c35dfbf99d66180","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.3.1.tgz","fileCount":59,"integrity":"sha512-3kkHTPsrpowheso79EB2KjeW0hzriwNy9nL2vmCr99YDBqixfcTJY6/+MgZZzCGaekBQdDCYk3jhLZfZCfHWlA==","signatures":[{"sig":"MEUCIQCyp6xRkrp25PKK4bg661cc6MzYEVdD7TrUqYeu/vtYrwIgE7I85CLTyArX3e3xVsRlmluqdGKXUnrVBxDwTx999HI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1481596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiCDdVCRA9TVsSAnZWagAAwR8P/2OpeHxLGlnDfCIGcdLU\nIg6QvRc5/qnHKwtWoTO78Ykl5DeDRI+y5l/dTsnP7I0wDnx/nUHfnL+ZP2g8\nlHoDc2xmZQ2+NWMiCQ46727XCOPsv/2kVq2W53frtkt3o+aPN5U4WXMwi43q\nolQnopTQ0paBx0i8kqz0O8Mg+ECm10qU5lRXs4BWYSbti0ZKM3RBfdmT66QV\n7SA2Nj8TYRyiXLw0sFWuosuhwwpM2GVUV+ULU+u/sdC7XYyk9MyggALDXWRN\n9YuapQ7gHsk4FGXnT2Ea2vPysYHrC+Xhj6g9f+C74r3Ns0kOo6l3ORyYPaXe\nD4cEeqRwbRxkelKGN4TLKBR0qbaDh9qOtV3q+U14KNMbXVDpSkizwvR/iC46\n3WnxwTuFEArVluvKcalMc1MovAJgeTQjsxwmCYZug1kpCn/2RytWEqJFoNbT\nbathpVkNHhhF0akSjxFCVnMvVJaWZN0fxmb2eF2OkL+P1gFP9NrdjZK3to2V\nWj0f3CyrAH7bBuE+ixTCfvbggng0aNikRjskmPJ3qjupVVzBh7UpMi++v5fj\nrU4MhrGVJ2cVUkTG6AidrrxpOpqiNnsuqG6NFHCz1hH8SoSvcigXvB+Mu1uJ\nFIRu9/0WtJo6UKl/W7lQ2ZAVa5wWC5L7RMJ8pW10EbB1HTaD/YhsLVrH/sZq\nISgO\r\n=C8Se\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"0721dac8b99e36ccfb47410b5ff7f165c97ad956","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.1.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.13.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.3.1_1644705621697_0.5525546573378257","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.4.0":{"name":"soql-parser-js","version":"4.4.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.4.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"2accf412c0d4b203ec99875832622e72d016b9db","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.4.0.tgz","fileCount":59,"integrity":"sha512-QG63VwbUbjXvs5zw01FA23g6En9Bfjig1Z7Yw04erXeO71kUAUte5jdbPMG6NWeGsh4bZS6Dd/Z6OH/md4LZsA==","signatures":[{"sig":"MEYCIQCdjGvoJdI3dMDNZrm9gn1wMW6JuT8kgPTMvdTkfEEVtwIhAIdxadQalrfS3Vb/X9LzWwnUCHV7VVwKKq0J2xHr6DU8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1497550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiK6/MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoobQ/+IoD+NrqmJzraiB7P7VLZ3f/7tQVXMvMaC9C8MJjomMjOX3zV\r\nOsHn2U5/mBgtzteBrJ5zSPOswtkg/xLzi4FR2RS1nSgOr8OjD/xWPPkhDgkO\r\nbYp6JzXSqmYdyVYzhX7FRh/oscV1xHbhdnNmSAmxnJQAsOJ2R+FRDncEgS0z\r\nPaN8bm4lNkXtyJ77brqz/K+bR/67p2CoXTFX+Lw/iRhSnftiYezVW0/texVt\r\nLEK6HYubgyqB5HnIQUWkNlNuonshQE46MU2kg9KZn3ljSM1zlCiuGUF/H7Yc\r\njxIzekyAaQhjbbJ6toVeLcwtDQTPoeUe8I4XgtOa3N9lEKkiVdqlXlAuXWR4\r\nYdNBnvBr//80oCICAvl6gM3UPvoMemzZUAjwfJXjqCKyNyezTy6qZABgKoD6\r\n/P8JyRuphyTdNQ1NtSY+YZcgPfn2KMC9o4JvBU501Sh7luPXPuwrx5nf5jK9\r\n8FvgumBwZwaCFK2fexi0hR7o1CngMpXMOimzyMR1VwFuTniTLvsicPniSE8x\r\nBfPN/thc+hZSdzXDQO/2JaB3rQ10FTlLUdHxfoKHAZu7aJA6qiDSkjHOPhqF\r\n+Z5xlXMmTBRDyDJjg1sVcvQu7rg+6frDrlsQjcsty9nTIO2+NZuUN7c8EshO\r\n+uRsyvuo7pBTrRmiHOonYdBrsai0TUH+d34=\r\n=9IT3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"48dc76d0460a1629c920ce2b4d5165c5327b6ea0","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.13.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.4.0_1647030219769_0.6846647837258621","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.4.1":{"name":"soql-parser-js","version":"4.4.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.4.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"638547238782750f46f1e2fffb9bcf5d3f024ee3","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.4.1.tgz","fileCount":59,"integrity":"sha512-UAhLKnmJDZBp3v4fliw2B+DL4bMxkhfMSqOw0DdU3pBmm3wxgqHmDj8JqdN0O3nFYZMXNYokiao89fqToZdvEQ==","signatures":[{"sig":"MEQCIHY4aCE2ff4y1yKFX9RBl9KBYOhk78659+n6Ij7O12KXAiB9Sf71vihVjgWD5Urc+joT5Up6wHI3hjsWptHTicsfwQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1496814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJipJe8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLhhAAgZikXIBPFHgmWsCjcxd/TJgb02zMcIw35B1qD8n4NWCNc0I/\r\nZEwQawDBFxOX0e1l22BewIe8UhuNUeN3y9atBSgOYz+1hxeGlGb1AL/rEPt2\r\nSt/JWJF49rm9659iNOFBD3tDHcxD9d9dHNVhWslugIjY5hbqT+cJKtLAQcPv\r\nz8yaSGqL9diNX/Kq3c0Y7ABiVLQwg/zAVlsPOxwbfeLl/yf6rIePRrSaCwYh\r\n6ZP/IgnCkf649qsjrHdXHp1LEou5PnwCMDjKC+hcZBTbdeHEWU+Dk1CpuTqA\r\n4lwYdLF4Ge9wIglgZl317PoCp13raskcThWq5EWO1cSYIxs6Mt1Lq0+1U3l5\r\nK4CYrO5heeGb6PMkh5xuxqM7rqMvXNrXOE7NEtYx+dAEO2og7Un4pvBbipBs\r\nh3gcLNwiIB+5FssLAancCzgo42l9YIm9WsufyY3YWHZojRwqCipp83JPG5dQ\r\nLFWerga2HBHYstNy9ulyX0M1mAEtYQmxP+fC/VB+DeK/R/83doPrrrFwsdHo\r\n7KEnLBqC2xXWm771Gzo98xviww8knVxjUYYoiuJZ+ua1nsC2qseFiuv9DZLV\r\nHvjfg+rn32J/QX6RX3jSEzRf9u+oKMSrgoUEDjnua+yr82g2NjH4uxUuKcCh\r\n/Ogz7QTiEwj06FeDN6mIu1+GBI3E7tiz3yI=\r\n=HIZF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"3b78abd15084b8d1fd0e3bfe4244a24f36a62d3e","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.4.1_1654953916001_0.4953649182820423","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.5.0":{"name":"soql-parser-js","version":"4.5.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.5.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"163ac036b24909d84eb622ff7a2de3e7d14abe27","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.5.0.tgz","fileCount":59,"integrity":"sha512-Ik7jwGUESgoFdZ9+Tmxx13snvTebLtbiOY1AyUY4nLkCRcWK0/A8IITtNQoAcU/MoALn7jNVXI1xEQ33EneZ+Q==","signatures":[{"sig":"MEYCIQCinrf/MEQ6zMNwPcxRvt4P/TypmFJ8yFYYp5c70ZCXGAIhAKNV4ZSASZ5u/mt2GsZiPIVcZ4M5PEsQxyXwozWCQGTQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1503170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiskccACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraeA/+Md/5JrVaKqiEkiDwAxPjj7/6rD+yxu7mS+pKHU1rzLURqGPL\r\nJqn6jSEd27vRz1B57HBrzjORNPqcXhAR02GPYHCwM3vhSMYVbhL7g3DH7QA8\r\n7PK2lwSi67mCvFR3q/K2Vm3d3MOONVgeEdNRha7KJ2VU6ZwLcrFMOhfSIy2u\r\n4X7VxzRbRWBpUEEIcFiVsb3uDF8OcK0lT110qHucM+3ZBxir/bp871IcOmmZ\r\nmeafZ3Q/fSL+6hjvp/lNVOIRtVTZfr0JPci+b3q6YVkkR3kafMpfa+mlImDw\r\n+iI288L2NrCC0YonYDxGIjTFRLcK1ec3b0cBMrLqAXsZdRbzlsaYnyM350ai\r\nJnjU1mN3glP3+2wayeUBlR58myauQ79IRSTzfE3dImagH67+uR6GmgHf3ATn\r\nagF1o3T1ckrg2VIZq5aLODJ9v2Fw0abE4RXgOM/ZjozEju3yHoUVkp4ad4lk\r\nGnWyAf7LioAaESYq30XSKH2LBGO7ydmrfUo0h53M6Sozs9FQW4lhC6SqbNQ6\r\nPPGrB3jRjVbYdewWEDJgOWnUfmUYWsZKlfffgN3yUqOvH7dpINNaLyWMB7n/\r\nJ0Sbojo3sP8PyJIH76WcugS0TRHFcwFTWZ3ZjQfaK+Qo8iXXLA8LFKidDRlw\r\n/PE5A9Tf+QMw2jxRMra6DGn+aC3sa3kfKtE=\r\n=6Iat\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"9bb783752bce0ce7f0ad21d0f81fffe987e38911","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.5.0_1655850780068_0.4749796717196886","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.5.1":{"name":"soql-parser-js","version":"4.5.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.5.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"0d0ca8e83fa0e193f149fafc6c05c706d647a365","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.5.1.tgz","fileCount":59,"integrity":"sha512-97Nr7HDzMoIx4IZo/t0fW+SVaDWaeiMm0h/EpE/PsPv5RncEPgQbjn18t3W7lREPMxftscrRLN3KuBCO+Fk5vA==","signatures":[{"sig":"MEQCIH20rtskQjmWjlpn+XbVJrcKkGWjAQNRtJXHTGjwW3mFAiAwN1Z8cMT6YsCrpqYgKi/yVXg1HDnAWG+lMYDpL81qHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1503520,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiskj7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKRBAAjgjjY3XGTvaueFzz2HLb8VEUke/6VWtDon7mOQ+6n8oqX84m\r\nw+utHKQm9LkRpZdc/SFCglEny/J1Tr+AIZT6ekQ9OuNyDY6qQBgMUZDG+F8K\r\nI1fur+ur5d6iXkzn8r3aBK1pRRD/4AIDfyE2jOkRZx3DQxcZ/wvymBC7Fi9L\r\nw9b8wPsZV9jK0eAQ5vykXQ9y29AhrqLc/svSGklXak9u50nJub7HS6rgDV3r\r\n6eyX9oIcHF6eY+aKO0ux8QulDmVpVYztcvZ/cIKz91YCCzLz3ee/62h1f54h\r\nat/IzyavDNdjdanlNYMUw3RFHZiCBUI3Gwo/Ksxf30ccPkrmfUW7s9U3KwBc\r\n7aRQ4B3CGQHvgAp0icTvxO+Ppd8CAWmRMxBYmlonfRVSNwi9d9EmlKC1TlaS\r\nWQo8Xxd2FdRaUrBsXcscHbV+sUXK2Sdn8bjUxbIHDxVutvkLDnS4wxMIkrUe\r\npfoTX9sjc4Ejx9Y/1kfKDcB43mjw+Uvqr/gJyTkcH1KydSaJ+C+Ha1GjyY65\r\nYOkvy8M2NoS2umgQBDBSnq8BMTJyVHXk7mOs6dnhFJ7MBDPfurKSXvbqU64F\r\nWpz4ceoBvpGAIo/p3MFFQ3kRTDD8feZq3MX72/gpaK5auLjFjg3ZIBwV7UEt\r\npxqZA1wCKIAvaCox+R2gWNuqUDDugJITYmM=\r\n=Ey+J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"0866573a05e94f835489160bf775d104cc6afd2f","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^2.4.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^4.46.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^14.5.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.6.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.5.1_1655851259611_0.14792052096575148","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.5.2":{"name":"soql-parser-js","version":"4.5.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.5.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"05a6118a1c06c875a151dcd9468d6eb1bbf4499d","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.5.2.tgz","fileCount":59,"integrity":"sha512-UhisDqznqvhDwLkRIV4MRVEAPTAJXeCZaIeUfcKLuluNknCn79RUQzahkAek929lcyKDlpVcDux2iSP7fRCsTw==","signatures":[{"sig":"MEYCIQDu2tqAjzKR4qVfe4DJhHm/EoDRWvd5KNj5cSXpBBwWvwIhAPb97oUYgQzCtTEhVgy/ViS7Iivgvgx91rBMbOAfxcg5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1501831,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJislQnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+4w//TghgbWa/TzEbjxUD5CH0wYYF5e8v8vL1Xz5cElmW64frUnDw\r\nTjnZJHabPUNKjNnXr8+nccFz/LnVgRARJzV8eaK327YOmh14UMF2AyMoE58W\r\nL0d7yv8bVr250rtgZNB5dfWUg3KD2oBWF3mX/D0gcTjbxok3QySzMopxlRUo\r\njEQ7jeCycTlcvadxiJea7FwoxJEq5TzP0AuGNPDlHafhNioUvCUfa8CHn/yk\r\n40SjVj46d3YUyiNXEcWhuY9n5Kuhwzh5upv9zFWjUD//DSEogL6qjhn0jUWu\r\n25FTZ1Hdl1stOUY7Sx1ER+k5OXnuEzAAQSLyFoObEpn8LgAUuFhMJcuGljfc\r\n/eGRqu1s9OYT/gigEVRHVhZNILD1FQFIUyMk2QBVhoV6PDcHH29K+ghHzi5Z\r\n60mMKk8elcuEeb7iGLVfMDO85Pq08SKzKFwwFtSZFzyT4CGDglQuE+E+6h5q\r\n5hcQ0w0roRrQs9P8BbRGLKWTMNlEeqR+Kh8AAGPTA3IaGC235rgUs3T7oXE8\r\n1fWkHrXTIzsdRYWQ9FoyjP5eP/wru9zejI1OVJ+Q/Vt2y2uB+PcZoR4ikb1n\r\n1H9wd0iv2P5IUCPfMAOpm+vzhKqiy5vWrvx1h9Jur+qu1jFIGx6+ypmi53jg\r\nhtNawHwP30u4+ZiCYf7opf9h4q0SmkxZAPk=\r\n=wvl2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"3e38524b7ad778d2e38de1b1fcba287c85d3e912","scripts":{"tsc":"tsc","test":"TS_NODE_PROJECT=\"test/tsconfig.json\" mocha --timeout 10000 -r ts-node/register test/**/*.spec.ts -P test/tsconfig.json","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.1.2","chalk":"^4.1.2","mocha":"^7.1.1","ts-node":"^7.0.1","webpack":"^5.73.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/chai":"^4.2.3","@types/node":"^12.7.5","npm-run-all":"^4.1.5","webpack-cli":"^4.10.0","@types/mocha":"^7.0.2","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.5.2_1655854118898_0.7150147879792492","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.6.0":{"name":"soql-parser-js","version":"4.6.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.6.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"08459ed769b81d88030bce9b4810c1b7aaed564f","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.6.0.tgz","fileCount":59,"integrity":"sha512-7arjA0GLxSIbXuyXxtoxURLumYgjabniFwQy1CQd0q3i9QIlUwe24ZVceh4TG02GQ9FwsGBwYOriI35M7EvyMA==","signatures":[{"sig":"MEQCICGf6jUdspIi4r8QBGSOSCXQh52Pkzo8z2r0fxGnOUR1AiBx9qNPyv8dnvWCq11+9Ji9okR01K6nL3ENXfBCyfMoZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1514923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixxvFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMgRAAj3/3G/5eO32da3TQNfwUJopSbTpXDV37MaQ/3v3TQhfbrzDu\r\nVusPMhHckKMz8FZ7//KKYIpbPuN9AzpFr4+WGYpOFMn/h6H/ipbn6GkY/Zor\r\n3zz0jrUMyVb8DEQlmE8DuOThd+QYHqzFAH3SxTdAmhxw7KIrj5ZZEj/jbkAl\r\nD25DiSCJZzUoQH5oJaMtnC/KyfvhKMqH6NXivTdlDgKueQjS/6uoeAknaX86\r\nyDgNUyFIMBLRsbCT01y+5jkZmxrjrSCNxubr6E/iaIKINBw9k6wL0Njnkoij\r\nTC/YNGfIWj+ZdqLc9DL4tmrJMwW1ZbmNQLqph0FXqgxJccyTPafkT/z53TUb\r\n0c5tRy7htU0VgrtHHY+xQVDPTsW65HlUWM4LvmcgWALZybhMjaRL0Vj9VW8n\r\nw8Czr+1SWEgvd0zqeNJ+WcAy81KplYYq8tvh7L76RaNUT4dCAM/bOVjg852b\r\nIqvn8pVj2Tjxb6Qi02ar/RRnDXetaXG2ENXCmxWhPRasH9ynHdR814i/4Qsw\r\nYepef+RT7N0Wla7PBNxxUCj7j0GyO9L9NLgilH6RAtmaGrIkcqQffyWMn8al\r\nctFqgVwsGXRJ0aQw9lXnSO9HdJsLW8i1xM2OtpoPmH1HTu7tnhnvQcfRmzgm\r\nYmdw9wyFR1NuXJfSjWDlKIo7A7GukTSKtO0=\r\n=+Z+C\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"f73b6d6704f0e00d81df0f42353a041cf3bcbdec","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.0","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.14.2","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.73.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^4.10.0","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.6.0_1657215941402_0.39475796715212863","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.6.1":{"name":"soql-parser-js","version":"4.6.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.6.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"b718d81c718b7b2942bd2d891c4858e2eb29d7ab","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.6.1.tgz","fileCount":59,"integrity":"sha512-iezk3gA5At1VZ3z/bFI3W2KBUgzxpqc4WyqJwGxGwl6qpbzgD1jPy/p1Wo02/GHdPtcF46z5dH73xYfEvy1X1w==","signatures":[{"sig":"MEUCIGTywuAPvA07khkE46pBGE1dDmRvuOIJfseyLfv4LthCAiEAo66F2SvOkT7kw2BNVwGyqMjQdrlqAGHjMN7w1M37zxQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1494426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1MZWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9Fw/6AnBRHkyc9WyZOBBZ6Ulx1VkoAW3YjvRDEuBRjubecm2EMVv1\r\nLh7+H1hCZo42s+bq60J4cs2kybFXhEi1pwHPZRJnx/bUXaYYeSp00uADOeGj\r\nYbkhvt1l35NvUamQKYX4aHSx3VJwLhmCuWxRcLLwOYVmEaf6w0lv1t+4El7v\r\nsZ4bWCzoHhfUua/XQc13QZJlYwjN7/mebxVEYMnc+Iy5hj8vv+At295wBFQM\r\nSx0UmmurvoQyQXBhlcyEbf8NdBaFsffzxAKhooLC/n39iRQBc7BD9tG01km5\r\nfvYYS5gLkia4PU/vH1Xeu7HxtpkYQtEb+vqxSnr+FSlEa0uSz1uO7pobebYc\r\nwMJDb8NwkJ+BtXV15Ycb0wS4FFyJ+0Tt/y6Igelcd405sBg6ei5ojn/fPQpa\r\nIhjzzynD86JIb3766zz9b8k4y1MICZR5WBbLmpiy+5gsyxqHfPmK2Ium1FcX\r\n33EK4cG7I1M/xl8F+wgwVgGhvlMvx2VMT6QtvkuPcpUMc5HRBZ9QoTn0Vtrg\r\nc8JxAmhXuvbItmJUxpy6IbtNvrzitNAn3aDDGQWxpVZL52HaJD7YnLM/BApi\r\ns125tWXD6rzZ9YP3e7OsrcSEzfW7Aiuzs8JnxunKftmA2XgbhKJwVzXAVpH8\r\nYEOD3oZu5q7lG9DrPEvem63FWeMmoVOgrGE=\r\n=rD7s\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"57be537e0e8b21c7a1737144d0808f046ef042dd","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.73.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^4.10.0","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.6.1_1658111574624_0.013923147028836569","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.7.0":{"name":"soql-parser-js","version":"4.7.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.7.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/paustint/soql-parser-js#readme","bugs":{"url":"https://github.com/paustint/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"2f7a58e5e23de0deec8ad732a13ce2c26ee850ac","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.7.0.tgz","fileCount":59,"integrity":"sha512-mX1f/JJihpWYCLCD1uBz/+9PXyUmfCFV74ev+1BtB0w2v0CzLxXMLMeK8eHknN3R70PG0Cq9k6ScPaPR6aOn0A==","signatures":[{"sig":"MEUCIF8fdboGMhVn0Dyz8txcaOMLGCrwJn8OSj1cUq2yVw10AiEA2dKS5h4ipz2axXO7VJPu/20zywVKs8MfwmB2l3JaDY4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1515276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPsIHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgjQ//ccCbPd3Sglj1GMz8sTEcBFOxNGtt1dcVGRxjtHjEm+a+PitM\r\n1Mrqs8CrUDZanUl2dH1PYDSmZd8DQZt3njy49ZYdQ2eW6GMnKMxWcUguJfkC\r\nlwMfVrhLi3qTJ9LaHL5IWfzHf1dawpKIEJXETOWlm7q2DZUZdfHRmpDznsR9\r\ny55OT91OiemFNBB4eyNmIntjGJaxPVVVtpJ0EcS2tF3/a3Jnm9WDra7w99tD\r\naA5boP99xgFBfMy0JRgyrbriqhMDecCehcQ2rbSBocTV/vFkdv3nbq0V9bFS\r\nWaNXxdA6+z4UvjU9/XxBAM8+//fDM/vQpght4h2xqYRuPBwq1TciCSdVYD9Y\r\nyMLBU4s2cqUmdPdB67jkB3osAMX/KlCqmF4kGKXRne9ALtosGvEKEvZYy+5x\r\nqLkz+4t1pbdubbY7pWkuzx2mjyw91MrmsDIL0a7uPy55A9osR7vn0xz1Epvg\r\nXzAgAYxypXVDswh+CQZrcG9iyWJE0VaLEJ00Nwy+pRd9M0RuQD/RSC/aVp+b\r\nTO3UJ0Ff/YxKwtjtqtCnEHivr6mNaMRKlrXBTHz1pu9k6rtK67rveSWo6o9A\r\nr1K/RPkoYxuZt0B/wIPZpNUJNix+F2W/Ttv3OhEO6ljJpIJb0rhkDQeSvFKk\r\nsqngRsGQogKns6j/5T6bKWUlllIkaw6NWFs=\r\n=iE/c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"470cc12f772547f74118edb65c78714a827c6cd2","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/paustint/soql-parser-js.git","type":"git"},"_npmVersion":"8.5.5","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.15.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.73.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^4.10.0","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.7.0_1665057287395_0.7471456909834495","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.7.1":{"name":"soql-parser-js","version":"4.7.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.7.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"291ce7d26ee39c1f26a3e700b89f747ee9fbe3e6","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.7.1.tgz","fileCount":59,"integrity":"sha512-+5JSqbrJmDQJ8HdLTOjP97bLoXEqBiGNxMxfrXf1ZtWfFJVfq9GGJm/9UvB/p68wTwu+ifkYdVIMk+S5Q2Qkgg==","signatures":[{"sig":"MEYCIQDfw6pzfzRYijv8Iy5gZxd5X1ieqtIY7S14i6uembPe0QIhAIXnnMLdu14Xi8p3p8ck5a421FIBCpLmZ/gvsZhccyC5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1515396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzzxQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo2DQ/9EM7Me5JQZVXQyEqxlyRewmQWjH6esZSFZDcuvvgrPlw+qy+7\r\nsNQfo8i5ley3I4pxYZeG5dbOU849v0GbbOJ3rWEDwzXBKiuXvkY5YCbobW6g\r\n3VYMERngcsQkHkpnNQ5LXetOHsXVCKkGG8EkvBSucUqXGUaqsF8PKDkoO0wC\r\nDh3eMON1N1V5qQlGHG8zBLvspBm/jqN7S5TEl3uSGrIcwHYHZkKIMzdmUBAF\r\nu9Nq5TtfOsfezxbqbnGGoplDGFRPDrZiITPAbHu5Ff4zbjAwdA4BiixpDi7H\r\nzXit/W4D31lua6r+A3LgJeOPGFSUGpgwryoOFHiRi1WMp7E2TMNpP7W+p92L\r\nJriyEEyTKCDe/v4AGSRG2hGe8lsgtPlg3liBNZDLFrAp8RG3r4ZdX3ig8ilC\r\ncJ/d2ZqJbASS80hczS+Zl5gE706h4Vydg3v+8Yau683REJrCfT7J6Ua+o9dn\r\nLPhURxDeL3xCKETxZmxOvx7EG09s1/N/h/9qKt5ORcqg0T2/QMULbV0Z/9zR\r\nvvq3Lu5UKEbbT4eLHj2CkNkUdescD/x0EFQ9YrBhdN23FVPeuyIwpZrg6fiG\r\nwJsCdKtILy1PK0O0FpZJNuSCe+3xsNFUR8v+PcYSq2eNS5UDebppNLuv9urV\r\nsJABZeVqNByA6IaARavrwBYQmHX/pA6Pc6I=\r\n=90Fc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"bfa95c30d573e49e6ee44c8f8a72b85d1228f89c","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:regular bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack-min.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.13.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.73.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^4.10.0","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.7.1_1674525776316_0.19257221616006626","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.8.0":{"name":"soql-parser-js","version":"4.8.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.8.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"097802bceb337c7d972df6d236bf29873f094e26","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.8.0.tgz","fileCount":58,"integrity":"sha512-kBR/SJJYV7qlFpPGecOv5mHE61FilTGcgpWIt6xSDxNwi6MAynLwdvAst7xzO8cvmKoFS+95TE/xwEPenMx53g==","signatures":[{"sig":"MEUCIQCsrtuVNH5V5JGmPWYXltTMDr/PjgoztKGgMH/HLWkOtgIgSoHUzkfvwatZZUNvzXhlZiZTr7iUt2G/ijgyyIeJl9I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":952474,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMsY0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+LA//dPmoGIg2uHZuWmLJLJGU7MpaWn+UUzA7VCkOrKadGUBL0Ytj\r\nGArboVnpDtvb2ghMoIw/DNzpbuymTwRLHNGGuYkKuBoa63dm0Z2GSYBpP8ov\r\nMNjbTM0ltFsGuBAfPujf51+SThSlQUo8WRsXXzG9ibAA/nzI5ahBx+uBiOrX\r\nb46LY0qjPhttYyZgfHq95n9YwOu09ad7kzJnuDWTewGWSuzWo7gzNpKgdR05\r\nP5AdzTAU21zud3MX5UTVOsxgcyTidYiI/uNgK9x6VhWOdxqXmTAvOEPx6CsL\r\num74FgWw98Yy3NFnE2AfNbYOzsrj7XdH7daAO1vQLcpYw7N6ipVX30QJ/yOa\r\nlKj/6QRdUTu0gz3bncvaYBmR77DQ1Ac900IPr6+j/2rcCVirCfsc24li474v\r\nfdg/OCGmlhNARpnMX+xhyRKSv7omPH0KXq8JTvhHOAgTFi/unfmpkSQDKBN1\r\nJa2FyeKycdqM5RouIaA+FdsJyd6upW7rK+jF7xyz/4ljbKHQdzGDB0q3nLot\r\nr2DlqOtKoGRibpwFJUUwvcVbQ5pA4Ljd/1y5Wukbfn+G+p9V9HrEgtnPcYSj\r\nuwy2n2N8/GbSYZo+XLGygRcTfwdj25iA8EeDvMlDJoS+ImaQvLB/aUt5EPEr\r\nND/C0g16SYtgOQJ5QLnGShzZT4Zb76tf6nI=\r\n=Qcnf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"5ae70f7bc9bd496866b4a462044be13fd291775a","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.2","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.18.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.8.0_1681049140264_0.3375311459034238","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.8.1":{"name":"soql-parser-js","version":"4.8.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.8.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"9fdc84713189542025e0ac683154bd942517260c","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.8.1.tgz","fileCount":60,"integrity":"sha512-FLbo6QYS4hKjg/78rkVnmrO8ZA0enMzWZWcrq641ixGDku9d4cUZdfc+8DYj2lVR2cQMGQEK3vZ7KsXJyL9d6g==","signatures":[{"sig":"MEQCIE1xvlmnHqbXVppBmCvjfRiUlXUngiCaTAM2iLySdkIdAiAya55OylHigarOr8oNVJT5qYIiw/K7oHLy+pupMTdHzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1827663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMsgfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNEg//eDgKyeLl04NowbM+c4s/icpbiQSquGUZcOdSf4fn7LZVo4AP\r\nWS7RZGGDvmMtGFx7DfSnB6YrklSx4bjPh3eygBfne34vSPCmU0XDOjfPwtSl\r\nuMHhfCOm5AUSrwt8BSrgBtSy/LbGlP+R/jJq5wWuLgwYwAXZ9YZlkQbDuAtL\r\nO7DDSKmvFpkF9KVWM7m8yBa5QY5GvO6tF7wFs65yQutfJiuSnvwthL6pp/SZ\r\nY5kWPqcNb1T9Z11Vhresc72INSP+KeMChXyDknEzClIVq8XJRLIIckmkcZMl\r\nxj3Ba6CqfS+S3EV2lZ50aSquA5l4NYpXUb7FFf49MOAN035vL0TL7Oemavv/\r\nr214cr/kP4BR5B1Z1LwIlhIRY8o/LBTGrQpYPno8iqr+fFQ+3qlMaatOxIaV\r\nvb2fvd7h3y01soihFZBiiXocj0S689lahA5j865CLNrDZTrrEv2O9u8wBv4e\r\nVbYbd0egsH24vmXW45OUnni/3VUNPmy95Y6SECqNAF6zeFs+5JkWcVK3hKOb\r\nyOHD5LfHoa1+xT5R5JucbjZPtiROXXY5H+RGSq+QSsO7ohyroJ5qRXaezKCZ\r\n4mCKvYGsdImycTnefqPhLyvDPysiF3DOoUXPL/Y2a7tp7gL/zyorcU7tdH1P\r\n5goMVaQN1NAXd9c9s/sOpsCHkacFaT42gNA=\r\n=DOje\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"6577008f3faace569d9aee800fa940dfe0df3574","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.2","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.18.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.8.1_1681049631102_0.01270022974635543","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.8.2":{"name":"soql-parser-js","version":"4.8.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.8.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"05448ad8bb11aa00d033fb989cbcb78c91332293","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.8.2.tgz","fileCount":70,"integrity":"sha512-vG1SUEWS5Gq18t48oLHWLAvGytFJkdxHpl+olynB0aVB+5gMiQVZhSfVSYzNyYcebX4IvLzDpFRcd7WJDD+09g==","signatures":[{"sig":"MEUCIHrWeQ3To7471vCQujuX7ezBobYs02UR+sHcACb6v12CAiEAzDEoPe4eCYBRzfVLjNGoRmcVC12G2tPuHxOxL1swzqk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1955248},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"8238b370ef0bba5fa6123bbef59c6ba357bd459d","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.2","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.18.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.8.2_1684764470436_0.7001769009084509","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.8.3":{"name":"soql-parser-js","version":"4.8.3","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.8.3","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"bb1b3f35cead6364f84008f79c8a046769ddb10e","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.8.3.tgz","fileCount":81,"integrity":"sha512-fTyY7O4tI7IjEoMGICq7l6+vd7fPnkQwM5qEFDrD0+Amr4VrktXJ8XvJTSMkSWkpV+ZXuQfkQMhpff0iGmYMEw==","signatures":[{"sig":"MEYCIQDKUEkvHTF7+EEIZ99M5GuhpAsE+UCfN1CbST6zW+Sd2wIhAL4HCxCVEblYwQ1q0C2dLHg6qh5HSITTKS4sfmb5CsIU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2105180},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"483f93a8d737953197673dc14a753611bacffd7c","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.2","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.18.0","dependencies":{"commander":"^2.20.3","chevrotain":"^9.0.1","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.8.3_1684801326663_0.05587969582918029","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.9.0":{"name":"soql-parser-js","version":"4.9.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.9.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"aafaf75dd427e0967115dd1f86c0bd7f154ac2a0","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.9.0.tgz","fileCount":81,"integrity":"sha512-vUiTqnbQurwIllZHAsPVckj7Zw+NMZn1Ufpkovz4eo+ji9R/2/Keq61FhjTKLDcBcsECdLSxqKVtyZaM2rozAg==","signatures":[{"sig":"MEQCIAyaTICwXW3mPd3wNDBa+aKs7VPyYDlUvO+yNbBW8ZtWAiAFO91MYfIMLig9voeYJZ90oIe8XBYA4jyDOPcm3vyDDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2491643},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"6201aeedcd96bebbdb2b6fb10b13b40f01cd098e","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"8.19.2","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"16.18.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.9.0_1684882718015_0.5728648224453341","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.9.1":{"name":"soql-parser-js","version":"4.9.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.9.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"6f279e38de86712ad7bd6cc8aa847377a0a87a73","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.9.1.tgz","fileCount":81,"integrity":"sha512-wXIqabiUN1QhmdNc/IuwMV9+jhm4zS29gfTA05EFusELijak2HdOc+DQcpeD/Fccy4R1N7HEyUnZXbRiEUH1+w==","signatures":[{"sig":"MEYCIQDrQ3GGmljX40lh6R/bC4oDrLBirp110yJjegWJuYLzQQIhALpSUkTgwogH/eyBKmjVvF9eFN/Y7mED24f7cT22Wke1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2491939},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"1f73638f32ba632241bbce020942df16ddcac7bb","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.13.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.9.1_1685404757974_0.6987752118291739","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.9.2":{"name":"soql-parser-js","version":"4.9.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.9.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"59eff369e9c425507152e34bc50af05e683ac4ad","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.9.2.tgz","fileCount":81,"integrity":"sha512-+hjOmqYptFGY+WgkF0EJ91XaSCmhdPKDJEl99qmnTMnIwRKlpGVk/95LdpYsIZ5DJKxiOriBOwGa2x52WqwGJw==","signatures":[{"sig":"MEUCIQD4iRMVF6oDleMEZC+9mDPiVtp+SZ9/HqlkKZgw79B/QQIgCSBCIWoiSGYyRfBHV3ik55EaL2lpJTqC0zmA/GvaXR0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2492421},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"f3f0a5789c1f8a5934280f014737c24304d56489","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"9.6.7","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.17.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.78.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^15.1.0","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^16.11.43","npm-run-all":"^4.1.5","webpack-cli":"^5.0.1","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.9.2_1690253449621_0.3080439820089804","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"4.10.0":{"name":"soql-parser-js","version":"4.10.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.10.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"d8168504cb421336f45946b2b4831a3e1e731ce3","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.10.0.tgz","fileCount":81,"integrity":"sha512-2uweYYrRSefSBIGowkWI1t3k3bJUKIcLYirUFFI4lh5wcWgL1DNQ6FfVH4oA//yNoVECUgpA2RaCgYwUGHX4rA==","signatures":[{"sig":"MEUCIQD4H+QlhFK1gSh+tP1VXZBxwodJxdkxo8uLCC7NJXIWpAIgXc0X/YVyuHrddN4jhfrXAzr6nEOAN71ZRMp123kbjUM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2505564},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"b1803727d3c423720b8ea293a5dc471ff9214e2d","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js.","repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.89.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^17.0.1","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^20.11.0","npm-run-all":"^4.1.5","webpack-cli":"^5.1.4","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.10.0_1705166255420_0.8101793482626962","host":"s3://npm-registry-packages"}},"4.10.1":{"name":"soql-parser-js","version":"4.10.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@4.10.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"5dc6e817a3413865a5b10af5bb55840177f848e8","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-4.10.1.tgz","fileCount":81,"integrity":"sha512-KfzdaTW2cGyb2AjnY4Rzbfy04wSMjxBfAOhN68u6vCQCojq3afzJ8LtnRm5tODYEsqzirbTDw4ckGMh3Xd/5tg==","signatures":[{"sig":"MEUCIEOXV2/rUlFvQGMMByzd2hb5BC3TZ38WG5CXYwWsmwLsAiEA6lkZB2RwI/elo+6NXfuwWNI4YQMOQ8dq3x/EijYPBAU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2505934},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"fd244fcf4c43f4be0bab7ea954071619f9ca5646","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.89.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^17.0.1","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^20.11.0","npm-run-all":"^4.1.5","webpack-cli":"^5.1.4","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_4.10.1_1705169220403_0.7054988349352931","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"5.0.0":{"name":"soql-parser-js","version":"5.0.0","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@5.0.0","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"f33a29626fabee1b80ade9188854f71be4070938","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-5.0.0.tgz","fileCount":81,"integrity":"sha512-5PXDiozrdxDD/q6V0m5Tv9pWyvCKNQp4CdK20do/5mDj/MJAYEJIwRsouCX9ev6xtweKUtN2DHKr/8wrYzpKTA==","signatures":[{"sig":"MEUCIBLYH0B/sahJJPELxZ7aj2TDt5ic1UWIyLDwJ85C/QpxAiEAkFuGssQc0yEUvPlJCQWFBuYejY2I656aYiyOWppa2mE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2505932},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"fccf925b8f976566cea30d6d1394689a590c863e","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js.","repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.89.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^17.0.1","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^20.11.0","npm-run-all":"^4.1.5","webpack-cli":"^5.1.4","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_5.0.0_1705170073162_0.6749403223330441","host":"s3://npm-registry-packages"}},"5.0.1":{"name":"soql-parser-js","version":"5.0.1","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@5.0.1","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"eb96a56eb6ef0238a6eef0c6a533e8b01720ae48","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-5.0.1.tgz","fileCount":81,"integrity":"sha512-1TEHwUwB+wl/W8avFBwk+iTX0rbt2zEOKK3p7M1AACSUoqq7+eTdZq+Xvy1xA9Hwgp4TrabPXjt4hD8JCGy6+w==","signatures":[{"sig":"MEQCIEs//qF9FrUVF1MerkVcW++lZIWXx3oz3f4097AmBEBIAiBs3z7uLO9QpHTwgLh8eGU6S6rD/+jC2tqNZ+BXBsBU/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2507371},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"3cbd9a71b09b274409059731862aa6e448f6e714","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"7.6.3","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.89.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^17.0.1","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^20.11.0","npm-run-all":"^4.1.5","webpack-cli":"^5.1.4","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_5.0.1_1705170669276_0.3618566450770557","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."},"5.0.2":{"name":"soql-parser-js","version":"5.0.2","keywords":["soql","salesforce","parse","compose","parser"],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"license":"MIT","_id":"soql-parser-js@5.0.2","maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"bin":{"soql-parser-js":"bin/soql-parser-js"},"dist":{"shasum":"29983273603939713fffe1df7073b8e0e401aeb8","tarball":"https://registry.npmjs.org/soql-parser-js/-/soql-parser-js-5.0.2.tgz","fileCount":81,"integrity":"sha512-9Z/KzI89wkfJzXzj77KWcE4YV7gWj3g4ZMFSZVOjJDciIdVIcAOcD6LZJrlYSfUWalTnCsf44OgVZrQ380Cf1Q==","signatures":[{"sig":"MEUCIFggFHN/jIwws+pksxKqT4WOI5tgJSKCdKrPg5Zk3jRYAiEAlGviXCKOGd4+e5FtKeJoQfaP8HUMSm1/EZ7QBrvztD8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2509272},"main":"dist/index.js","types":"dist/src/index.d.ts","module":"dist_esm/index.js","gitHead":"b18d29106932a5df8337ea0770d29f5fed7ca8d6","scripts":{"tsc":"tsc","test":"jest --passWithNoTests --testTimeout 10000","build":"npm-run-all compile bundle:min build:esm build:cli","clean":"rm -rf ./dist/*","compile":"tsc --project tsconfig.json","release":"release-it","prebuild":"npm run clean","build:cli":"npm-run-all clean:cli compile:cli","build:esm":"npm-run-all clean:esm compile:esm","clean:cli":"rm -rf ./dist_cli/*","clean:esm":"rm -rf ./dist_esm/*","bundle:min":"webpack --config webpack.config.js","test:watch":"jest --watch","compile:cli":"tsc --project tsconfig-cli.json","compile:esm":"tsc --project tsconfig-esm.json","bundle:regular":"webpack --config webpack-regular.config.js","soql-parser-js":"node ./bin","copy-tc-to-docs":"ts-node ./tasks/copy-test-cases-to-docs.ts"},"_npmUser":{"name":"paustint","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"_npmVersion":"9.5.1","description":"Salesforce.com SOQL parser and composer","directories":{},"_nodeVersion":"18.16.0","dependencies":{"commander":"^2.20.3","chevrotain":"^10.5.0","lodash.get":"^4.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","chalk":"^4.1.2","husky":"^8.0.1","ts-jest":"^28.0.5","ts-node":"^10.8.2","webpack":"^5.89.0","fs-extra":"^8.1.0","jsonfile":"^5.0.0","prettier":"^2.0.5","release-it":"^17.0.1","typescript":"^4.2.3","@types/jest":"^28.1.4","@types/node":"^20.11.0","npm-run-all":"^4.1.5","webpack-cli":"^5.1.4","@types/fs-extra":"^8.0.0","@types/lodash.get":"^4.4.6","string-replace-loader":"^2.2.0","license-webpack-plugin":"^4.0.2"},"_npmOperationalInternal":{"tmp":"tmp/soql-parser-js_5.0.2_1705623336702_0.4722246913721768","host":"s3://npm-registry-packages"},"deprecated":"This package has been moved to the @jetstreamapp organization starting on version 6.0.0. Update your dependency to use @jetstreamapp/soql-parser-js."}},"time":{"created":"2018-10-13T02:09:18.294Z","modified":"2024-06-16T20:30:34.797Z","0.1.0":"2018-10-13T02:09:18.514Z","0.1.1":"2018-10-13T04:14:29.243Z","0.1.2":"2018-10-13T04:19:30.536Z","0.1.3":"2018-10-13T05:20:29.787Z","0.1.4":"2018-10-13T06:12:02.902Z","0.1.5":"2018-10-13T06:12:25.157Z","0.1.6":"2018-10-13T17:50:39.363Z","0.1.7":"2018-10-13T18:19:23.061Z","0.2.0":"2018-10-14T01:03:02.184Z","0.3.0":"2018-10-14T19:17:38.170Z","0.3.1":"2018-10-14T21:39:44.117Z","0.3.2":"2018-10-15T02:13:09.472Z","0.3.3-beta.0":"2018-10-20T19:53:58.980Z","0.3.3":"2018-10-20T21:01:01.216Z","0.3.4":"2018-10-20T21:50:45.040Z","0.4.0":"2018-10-21T00:13:49.723Z","0.4.1":"2018-10-21T00:31:59.476Z","0.5.1":"2018-10-21T17:26:07.358Z","0.5.2":"2018-10-21T17:48:24.457Z","0.6.0":"2018-10-21T21:12:59.291Z","0.7.0":"2018-10-25T13:54:14.869Z","0.8.0":"2018-10-30T03:25:19.483Z","0.8.1":"2018-10-30T03:55:46.839Z","0.9.0":"2018-11-08T01:24:30.321Z","0.10.0-beta.1":"2018-11-12T00:28:16.069Z","1.0.0":"2018-11-19T01:13:47.638Z","1.0.1":"2019-02-08T01:13:18.554Z","1.0.2":"2019-05-22T01:52:27.799Z","1.1.0":"2019-06-11T02:49:06.283Z","1.1.1":"2019-06-11T03:03:49.264Z","1.2.0":"2019-07-13T23:10:46.314Z","1.2.1":"2019-07-20T01:06:13.664Z","2.0.0-rc.1":"2019-09-29T23:38:56.828Z","2.0.0-rc.2":"2019-09-29T23:51:51.206Z","2.0.0-rc.3":"2019-09-30T02:53:47.840Z","2.0.0-rc.4":"2019-10-02T03:47:39.489Z","2.0.0-rc.5":"2019-10-04T04:17:57.331Z","2.0.0-rc.6":"2019-10-05T15:18:47.006Z","2.0.0":"2019-10-06T22:45:50.906Z","2.1.0":"2019-10-29T03:48:01.535Z","2.2.0":"2019-11-07T03:31:43.751Z","2.2.1":"2019-11-17T23:29:18.908Z","2.2.2":"2019-12-02T23:55:07.423Z","2.2.3":"2020-01-04T22:13:26.891Z","2.3.0":"2020-01-13T19:00:31.988Z","2.4.0":"2020-02-26T05:08:39.422Z","2.4.1":"2020-03-22T19:08:16.739Z","2.5.0":"2020-04-03T17:00:03.221Z","2.5.1":"2020-04-23T15:31:08.344Z","2.5.2":"2020-04-24T03:27:26.429Z","2.5.3":"2020-04-24T14:36:51.039Z","2.5.4":"2020-08-12T16:17:42.715Z","2.5.5":"2020-08-24T02:06:00.904Z","3.0.0":"2020-10-15T03:15:15.833Z","3.0.1":"2021-01-08T03:13:08.816Z","2.5.6":"2021-03-07T00:42:28.658Z","3.0.2":"2021-03-07T00:56:00.492Z","3.1.0":"2021-03-27T17:40:30.233Z","3.2.0":"2021-03-28T00:21:37.381Z","4.0.0":"2021-04-14T04:40:14.054Z","4.1.0":"2021-06-06T19:15:42.675Z","4.1.1":"2021-06-06T19:19:49.695Z","4.2.0":"2021-06-08T13:57:02.191Z","4.2.1":"2021-06-19T00:21:47.867Z","4.2.2":"2021-08-01T19:24:17.169Z","4.2.3-0":"2021-09-20T04:01:53.431Z","4.2.3-1":"2021-09-20T04:06:58.556Z","4.3.0":"2021-09-20T04:16:32.644Z","4.3.1":"2022-02-12T22:40:21.894Z","4.4.0":"2022-03-11T20:23:40.002Z","4.4.1":"2022-06-11T13:25:16.257Z","4.5.0":"2022-06-21T22:33:00.257Z","4.5.1":"2022-06-21T22:40:59.834Z","4.5.2":"2022-06-21T23:28:39.107Z","4.6.0":"2022-07-07T17:45:41.610Z","4.6.1":"2022-07-18T02:32:54.782Z","4.7.0":"2022-10-06T11:54:47.577Z","4.7.1":"2023-01-24T02:02:56.508Z","4.8.0":"2023-04-09T14:05:40.535Z","4.8.1":"2023-04-09T14:13:51.344Z","4.8.2":"2023-05-22T14:07:50.732Z","4.8.3":"2023-05-23T00:22:06.990Z","4.9.0":"2023-05-23T22:58:38.288Z","4.9.1":"2023-05-29T23:59:18.213Z","4.9.2":"2023-07-25T02:50:49.845Z","4.10.0":"2024-01-13T17:17:35.724Z","4.10.1":"2024-01-13T18:07:00.598Z","5.0.0":"2024-01-13T18:21:13.364Z","5.0.1":"2024-01-13T18:31:09.488Z","5.0.2":"2024-01-19T00:15:36.962Z"},"maintainers":[{"name":"paustint","email":"paustint@gmail.com"}],"author":{"name":"Austin Turner","email":"paustint@gmail.com"},"repository":{"url":"git+https://github.com/jetstreamapp/soql-parser-js.git","type":"git"},"keywords":["soql","salesforce","parse","compose","parser"],"license":"MIT","homepage":"https://github.com/jetstreamapp/soql-parser-js#readme","bugs":{"url":"https://github.com/jetstreamapp/soql-parser-js/issues"},"readme":"<img src=\"./assets/soql-parser-js-logo.svg\">\n\n[![build](https://api.travis-ci.com/jetstreamapp/soql-parser-js.png?branch=master)](https://travis-ci.com/jetstreamapp/soql-parser-js)\n[![npm version](https://badge.fury.io/js/soql-parser-js.svg)](https://badge.fury.io/js/soql-parser-js)\n[![dependencies](https://david-dm.org/jetstreamapp/soql-parser-js.svg)](https://david-dm.org/jetstreamapp/soql-parser-js)\n\n## Description\n\n**This library allows parsing and composing SOQL queries from Salesforce using JavaScript or Typescript.**\n\n**Available Features:**\n\n1. Parse SOQL queries into a common `Query` data structure.\n2. Deterministically compose a `Query` data structure back into a SOQL query string.\n3. Validate a query to check if the syntax is valid.\n   1. _Even if a query is returned as valid, it might still be invalid based on your Salesforce configuration_\n\nMigrating from version 1 to version 2? [Check out the changelog](CHANGELOG.md#200) for a full list of changes.\n\nMigrating from version 2 to version 3? [Check out the changelog](CHANGELOG.md#300) for a full list of changes.\n\n## Documentation\n\n**[Read the documentation on our docs site](https://paustint.github.io/soql-parser-js/)**.\n\n## Compatibility\n\n**Node**: version 11 or higher, or a polyfill for [Array.flat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat)  \n**Browser**: Tested in all modern browsers, may not work with older browsers.\n\nThe **commander** dependency is only required for the cli, the other two dependencies **chevrotain** and **lodash.get** are bundled with the non-cli code.\n\n## Quick Start\n\n```javascript\nimport { parseQuery, composeQuery, isQueryValid } from 'soql-parser-js';\n\nconst query = parseQuery(`SELECT Id FROM Account WHERE Id = 'FOO'`);\nconsole.log('query', query);\n\nconst soql = composeQuery(query);\nconsole.log('soql', soql); // SELECT Id FROM Account WHERE Id = 'FOO'\n\nisQueryValid('SELECT Id, Foo FROM Baz'); // true\nisQueryValid('SELECT Id Foo FROM Baz'); // false\n```\n\n## Available Features\n\n| Function     | Description                                            | Arguments                                  |\n| ------------ | ------------------------------------------------------ | ------------------------------------------ |\n| parseQuery   | Parse a SOQL query string into a Query data structure. | soql: Query<br> config?: ParseQueryConfig  |\n| isQueryValid | Returns true if the query was able to be parsed.       | soql: Query<br> config?: ParseQueryConfig  |\n| composeQuery | Turn a Query object back into a SOQL statement.        | soql: Query<br> config?: SoqlComposeConfig |\n| formatQuery  | Format a SOQL query string.                            | soql: Query<br> config?: FormatOptions     |\n\n## Utility Functions\n\n**General Utility**\n\nMany of hte utility functions are provided to easily determine the shape of specific data since there are many variants. If you are using Typescript in strict mode, you can use these to narrow your types.\n\n| Function                                | Description                                                                                                                                                                                                             | Arguments                                                                   |\n| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |\n| hasAlias                                | Returns `true` if the field passed in has the `alias` property.                                                                                                                                                         | input: `string \\| ComposeFieldInput`                                        |\n| getField                                | Convenience method to construct fields in the correct format when using `composeQuery()`. Look in the data models section below for the structure of `ComposeFieldInput`.                                               | input: `string \\| ComposeFieldInput`                                        |\n| getFlattenedFields                      | Flatten a Salesforce record based on the parsed SOQL Query. this is useful if you have relationships in your query and want to show the results in a table, using `.` dot notation for the relationship field headings. | soql: `Query \\| Subquery \\| FieldSubquery`<br> config?: `SoqlComposeConfig` |\n| isSubquery                              | Returns `true` if the data passed in is a subquery.                                                                                                                                                                     | query: `Query \\| Subquery`                                                  |\n| isFieldSubquery                         | Returns `true` if the data passed in is a FieldSubquery.                                                                                                                                                                | value: `any`                                                                |\n| isWhereClauseWithRightCondition         | Returns `true` if the value passed in is a `WhereClause` with an `operator` and `right` property                                                                                                                        | value: `WhereClause`                                                        |\n| isHavingClauseWithRightCondition        | Returns `true` if the value passed in is a `HavingClause` with an `operator` and `right` property                                                                                                                       | value: `HavingClause`                                                       |\n| isWhereOrHavingClauseWithRightCondition | Returns `true` if the value passed in is a `WhereClause` or `HavingClause` with an `operator` and `right` property                                                                                                      | value: `WhereClause \\| HavingClause`                                        |\n| isValueCondition                        | Returns `true` if the value passed in has `field`, `operator` and `value` properties                                                                                                                                    | value: `Condition`                                                          |\n| isValueWithDateLiteralCondition         | Returns `true` if the value passed in has `field`, `operator` and `value` properties and has a `literalType` property that is `DATE_LITERAL` of `['DATE_LITERAL',...]`                                                  | value: `Condition`                                                          |\n| isValueWithDateNLiteralCondition        | Returns `true` if the value passed in has `field`, `operator`, `value` and `dateLiteralVariable` properties                                                                                                             | value: `Condition`                                                          |\n| isValueFunctionCondition                | Returns `true` if the value passed in has `fn`, `operator` and `value` properties                                                                                                                                       | value: `Condition`                                                          |\n| isNegationCondition                     | Returns `true` if the value passed in has a `openParen` property and does not have `fn`, `field`, `operator`, `value`, and `closeParen` properties                                                                      | value: `Condition`                                                          |\n| isValueQueryCondition                   | Returns `true` if the value passed in has `field`, `operator` and `valueQuery` properties and does not have a `value` property                                                                                          | value: `Condition \\| ValueQueryCondition`                                   |\n| isOrderByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `OrderByClause`                                                      |\n| isOrderByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `OrderByClause`                                                      |\n| isGroupByField                          | Returns `true` if the value passed in has `field` property                                                                                                                                                              | value: `GroupByClause`                                                      |\n| isGroupByFn                             | Returns `true` if the value passed in has `fn` property                                                                                                                                                                 | value: `GroupByClause`                                                      |\n\n**ParseQueryConfig**\n\n| Property               | Type    | Description                                                                                                                                                                                                                                   | required | default |\n| ---------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| allowApexBindVariables | boolean | Determines if apex variables are allowed in parsed query. Example: `WHERE Id IN :accountIds`. Only simple Apex is supported. Function calls are not supported. (e.x. `accountMap.keyset()` is not supported)                                  | FALSE    | FALSE   |\n| allowPartialQuery      | boolean | If provided, you can provide an incomplete soql query. This is useful if you need to parse WHERE clauses, for example. Subqueries are required to be valid.                                                                                   | FALSE    | FALSE   |\n| ignoreParseErrors      | boolean | If set to true, then queries with partially invalid syntax will still be parsed, but any clauses with invalid parts will be omitted. The SELECT clause and FROM clause must always be valid, but all other clauses can contain invalid parts. | FALSE    | FALSE   |\n| logErrors              | boolean | If true, parsing and lexing errors will be logged to the console.                                                                                                                                                                             | FALSE    | FALSE   |\n\n**SoqlComposeConfig**\n\n| Property      | Type          | Description                                                                                                                                                                                                              | required | default |\n| ------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |\n| format        | boolean       | Apply formatting the the composed query. This will result in a multi-line soql statement.                                                                                                                                | FALSE    | TRUE    |\n| formatOptions | FormatOptions | Options to apply to the formatter.                                                                                                                                                                                       | FALSE    |         |\n| autoCompose   | boolean       | If you need to compose just part of a query, you can create your own instance of the Compose class and set this to false, then call any methods that you need to just for what you would like to turn into a SOQL query. | FALSE    | TRUE    |\n| logging       | boolean       | Print out logging statements to the console about the format operation.                                                                                                                                                  | FALSE    | FALSE   |\n\n**FormatOptions**\n\n| Property                         | Type    | Description                                                                                                                                                                                 | required | default |\n| -------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- |\n| numIndent                        | number  | The number of tab characters to indent.                                                                                                                                                     | FALSE    | 1       |\n| fieldMaxLineLength               | number  | The number of characters that the fields should take up before making a new line. Set this to 1 to have every field on its own line.                                                        | FALSE    | 60      |\n| fieldSubqueryParensOnOwnLine     | boolean | If true, the opening and closing parentheses will be on their own line for subqueries.                                                                                                      | FALSE    | TRUE    |\n| newLineAfterKeywords             | boolean | Adds a new line and indent after all keywords (such as SELECT, FROM, WHERE, ORDER BY, etc..) Setting this to true will add new lines in other places as well, such as complex WHERE clauses | FALSE    | FALSE   |\n| ~~whereClauseOperatorsIndented~~ | boolean | **Deprecated** If true, indents the where clause operators.                                                                                                                                 | FALSE    | FALSE   |\n| logging                          | boolean | Print out logging statements to the console about the format operation.                                                                                                                     | FALSE    | FALSE   |\n\n## Examples\n\n### Parsing Queries\n\nParsing a SOQL query can be completed by calling `parseQuery(soqlQueryString)`. A `Query` data structure will be returned.\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n\nconst soql = `\n  SELECT UserId, COUNT(Id)\n  FROM LoginHistory\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql);\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"fields\": [\n    {\n      \"type\": \"Field\",\n      \"field\": \"UserId\"\n    },\n    {\n      \"type\": \"FieldFunctionExpression\",\n      \"functionName\": \"COUNT\",\n      \"parameters\": [\"Id\"],\n      \"isAggregateFn\": true,\n      \"rawValue\": \"COUNT(Id)\"\n    }\n  ],\n  \"sObject\": \"LoginHistory\",\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Parsing a partial query\n\nAdded support for `allowPartialQuery` in version `4.4.0`\n\n```typescript\nimport { parseQuery } from 'soql-parser-js';\n\nconst soql = `\n  WHERE LoginTime > 2010-09-20T22:16:30.000Z\n  AND LoginTime < 2010-09-21T22:16:30.000Z\n  GROUP BY UserId\n`;\n\nconst soqlQuery = parseQuery(soql, { allowPartialQuery: true });\n\nconsole.log(JSON.stringify(soqlQuery, null, 2));\n```\n\n<details>\n  <summary><b>Results (click to show)</b></summary>\n\n```json\n{\n  \"where\": {\n    \"left\": {\n      \"field\": \"LoginTime\",\n      \"operator\": \">\",\n      \"value\": \"2010-09-20T22:16:30.000Z\",\n      \"literalType\": \"DATETIME\"\n    },\n    \"operator\": \"AND\",\n    \"right\": {\n      \"left\": {\n        \"field\": \"LoginTime\",\n        \"operator\": \"<\",\n        \"value\": \"2010-09-21T22:16:30.000Z\",\n        \"literalType\": \"DATETIME\"\n      }\n    }\n  },\n  \"groupBy\": {\n    \"field\": \"UserId\"\n  }\n}\n```\n\n</details>\n\n### Validating Queries\n\n```typescript\nimport { isQueryValid } from 'soql-parser-js';\n\nconst invalidSoql = `SELECT UserId, COUNT(Id) Account`;\nconst validSoql = `SELECT UserId, COUNT(Id) Account`;\n\nconsole.log(isQueryValid(soql));\nconsole.log(isQueryValid(soql));\n```\n\n### Composing Queries\n\nBuild a `Query` data structure to have it converted back into a SOQL query.\n\nComposing a query will turn a Query object back to a SOQL query string. The exact same data structure returned from `parseQuery()` can be used,\nbut depending on your use-case, you may need to build your own data structure to compose a query.\nThese examples show building your own Query object with the minimum required fields.\n\nSome utility methods have been provided to make it easier to build the field data structures.\n\n**Note:** Some operators may be converted to uppercase (e.x. NOT, AND)\n\n**Note:** There are a number of fields populated on the Query object when `parseQuery()` is called that are not required to compose a query. Look at the examples below and the comments in the data model for more information.\n\n```typescript\nimport { composeQuery, getField, Query } from 'soql-parser-js';\n\n// Build a subquery\nconst oppLineItemsSubquery = {\n  fields: [\n    getField('Quantity'),\n    getField('ListPrice'),\n    getField({\n      field: 'UnitPrice',\n      relationships: ['PricebookEntry'],\n    }),\n    getField({\n      field: 'Name',\n      relationships: ['PricebookEntry'],\n    }),\n  ],\n  relationshipName: 'OpportunityLineItems',\n};\n\n// build the main query and add the subquery as a field\nconst soqlQuery: Query = {\n  fields: [\n    getField('Id'),\n    getField('Name'),\n    getField({\n      functionName: 'FORMAT',\n      parameters: 'Amount',\n      alias: 'MyFormattedAmount',\n    }),\n    getField({ subquery: oppLineItemsSubquery }),\n  ],\n  sObject: 'Opportunity',\n  where: {\n    left: {\n      field: 'CreatedDate',\n      operator: '>',\n      value: 'LAST_N_YEARS:1',\n    },\n    operator: 'AND',\n    right: {\n      left: {\n        field: 'StageName',\n        operator: '=',\n        value: 'Closed Won',\n        // literalType is optional, but if set to STRING and our value is not already wrapped in \"'\", they will be added\n        // All other literalType values are ignored when composing a query\n        literalType: 'STRING',\n      },\n    },\n  },\n  limit: 150,\n};\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nSELECT Id, Name, FORMAT(Amount) MyFormattedAmount,\n  (\n    SELECT Quantity, ListPrice, PricebookEntry.UnitPrice,\n      PricebookEntry.Name\n    FROM OpportunityLineItems\n  )\nFROM Opportunity\nWHERE CreatedDate > LAST_N_YEARS:1\nAND StageName = 'Closed Won'\nLIMIT 150\n```\n\n### Composing a partial query\n\nStarting in version `4.4`, compose will not fail if there are missing `SELECT` and `FROM` clauses in your query.\n\nPartial compose support it supported without any additional steps.\n\n```typescript\nimport { Compose, parseQuery } from 'soql-parser-js';\n\nconst soql = `WHERE Name LIKE 'A%' AND MailingCity = 'California`;\nconst parsedQuery = parseQuery(soql, { allowPartialQuery: true });\n\n// Results of Parsed Query:\n/**\n{\n  where: {\n    left: { field: 'Name', operator: 'LIKE', value: \"'A%'\", literalType: 'STRING' },\n    operator: 'AND',\n    right: { left: { field: 'MailingCity', operator: '=', value: \"'California'\", literalType: 'STRING' } },\n  },\n}\n*/\n\nconst composedQuery = composeQuery(soqlQuery, { format: true });\n\nconsole.log(composedQuery);\n```\n\n**Results**\n\n```sql\nWHERE Name LIKE 'A%' AND MailingCity = 'California\n```\n\n<details>\n  <summary><b>See the alternate way to compose partial queries by calling the Compose class directly</b></summary>\n\nIf you need to compose just a part of a query instead of the entire query, you can create an instance of the Compose class directly.\n\nFor example, if you just need the `WHERE` clause from a query as a string, you can do the following:\n\n```typescript\nimport { Compose, parseQuery } from 'soql-parser-js';\n\nconst soql = `SELECT Id FROM Account WHERE Name = 'Foo'`;\nconst parsedQuery = parseQuery(soql);\n\n// Results of Parsed Query:\n  // const parsedQuery = {\n  //   fields: [\n  //     {\n  //       type: 'Field',\n  //       field: 'Id',\n  //     },\n  //   ],\n  //   sObject: 'Account',\n  //   where: {\n  //     left: {\n  //       field: 'Name',\n  //       operator: '=',\n  //       value: \"'Foo'\",\n  //       literalType: 'STRING',\n  //     },\n  //   },\n  // };\n\n  // Create a new instance of the compose class and set the autoCompose to false to avoid composing the entire query\n  const composer = new Compose(parsedQuery, { autoCompose: false });\n\n\n  const whereClause = composer.parseWhereOrHavingClause(parsedQuery.where);\n\n  console.log(whereClause);\n}\n```\n\n#### Available methods on the `Compose` class\n\nThese are used internally, but are public and available for use.\n\n```typescript\nparseQuery(query: Query | Subquery): string;\nparseFields(fields: FieldType[]): { text: string; typeOfClause?: string[] }[];\nparseTypeOfField(typeOfField: FieldTypeOf): string[];\nparseWhereOrHavingClause(whereOrHaving: WhereClause | HavingClause, tabOffset = 0, priorConditionIsNegation = false): string;\nparseGroupByClause(groupBy: GroupByClause | GroupByClause[]): string;\nparseOrderBy(orderBy: OrderByClause | OrderByClause[]): string;\nparseWithDataCategory(withDataCategory: WithDataCategoryClause): string;\n```\n\n</details>\n\n## Format Query\n\nThis function is provided as a convenience and just calls parse and compose.\n[Check out the demo](https://jetstreamapp.github.io/soql-parser-js/) to see the outcome of the various format options.\n\n```typescript\nimport { formatQuery } from 'soql-parser-js';\n\nconst query = `SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy, ShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type, Website, (SELECT Id, Name, AccountId, Amount, CampaignId, CloseDate, CreatedById, Type FROM Opportunities), (SELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue, BillingAddress, Website FROM ChildAccounts) FROM Account WHERE Name LIKE 'a%' OR Name LIKE 'b%' OR Name LIKE 'c%'`;\n\nconst formattedQuery1 = formatQuery(query);\nconst formattedQuery2 = formatQuery(query, {\n  fieldMaxLineLength: 20,\n  fieldSubqueryParensOnOwnLine: false,\n  whereClauseOperatorsIndented: true,\n});\nconst formattedQuery3 = formatQuery(query, { fieldSubqueryParensOnOwnLine: true, whereClauseOperatorsIndented: true });\n```\n\n```sql\n-- formattedQuery1\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\nOR Name LIKE 'b%'\nOR Name LIKE 'c%'\n\n-- formattedQuery2\nSELECT Id, Name,\n\tAccountNumber, AccountSource,\n\tAnnualRevenue, BillingAddress,\n\tBillingCity, BillingCountry,\n\tBillingGeocodeAccuracy, ShippingStreet,\n\tSic, SicDesc, Site,\n\tSystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(SELECT Id, Name,\n\t\tAccountId, Amount, CampaignId,\n\t\tCloseDate, CreatedById, Type\n\tFROM Opportunities),\n\t(SELECT Id, Name,\n\t\tAccountNumber, AccountSource,\n\t\tAnnualRevenue, BillingAddress,\n\t\tWebsite\n\tFROM ChildAccounts)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n\n\n-- formattedQuery3\nSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\tBillingAddress, BillingCity, BillingCountry, BillingGeocodeAccuracy,\n\tShippingStreet, Sic, SicDesc, Site, SystemModstamp, TickerSymbol, Type,\n\tWebsite,\n\t(\n\t\tSELECT Id, Name, AccountId, Amount, CampaignId, CloseDate,\n\t\t\tCreatedById, Type\n\t\tFROM Opportunities\n\t),\n\t(\n\t\tSELECT Id, Name, AccountNumber, AccountSource, AnnualRevenue,\n\t\t\tBillingAddress, Website\n\t\tFROM ChildAccounts\n\t)\nFROM Account\nWHERE Name LIKE 'a%'\n\tOR Name LIKE 'b%'\n\tOR Name LIKE 'c%'\n```\n\n## CLI\n\nInstall globally or use `npx` to interact with the cli.\n\n### Available Commands\n\n- `soql-parser-js --help` (or using `npx`: `npx soql-parser-js --help`)\n- `soql-parser-js parse --help`\n- `soql-parser-js compose --help`\n- `soql-parser-js format --help`\n\n### Examples\n\n#### Parse\n\n`npx soql-parser-js parse \"SELECT Id FROM Account\"`\n\n```bash\n{\"fields\":[{\"type\":\"Field\",\"field\":\"Id\"}],\"sObject\":\"Account\"}\n```\n\n#### Compose\n\n`npx soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\"`\n\n```bash\nSELECT Id FROM Account\n```\n\n`npx soql-parser-js compose \"{\\\"fields\\\":[{\\\"type\\\":\\\"Field\\\",\\\"field\\\":\\\"Id\\\"}],\\\"sObject\\\":\\\"Account\\\"}\" --json` or -j\n\n```json\n{ \"query\": \"SELECT Id FROM Account\" }\n```\n\n#### Format\n\n`npx soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1\"`\n\n```bash\nSELECT Name, COUNT(Id)\nFROM Account\nGROUP BY Name\nHAVING COUNT(Id) > 1\n```\n\n`npx soql-parser-js format \"SELECT Name, COUNT(Id) FROM Account GROUP BY Name HAVING COUNT(Id) > 1 -j`\n\n```json\n{ \"query\": \"SELECT Name, COUNT(Id)\\nFROM Account\\nGROUP BY Name\\nHAVING COUNT(Id) > 1\" }\n```\n\n#### Is Valid\n\n`npx soql-parser-js valid \"SELECT Id FROM Account\"`\n\n```bash\ntrue\n```\n\n`npx soql-parser-js valid \"SELECT Id invalid FROM Account\"`\n\nℹ️ this returns an exit code of 1\n\n```bash\nfalse\n```\n\n`npx soql-parser-js valid \"SELECT Id FROM Account\" -j`\n\n```json\n{ \"isValid\": true }\n```\n\n`npx soql-parser-js valid \"SELECT Id invalid invalid FROM Account\" -j`\n\nℹ️ this returns an exit code of 0\n\n```json\n{ \"isValid\": false }\n```\n\n### List of options\n\n`soql-parser-js --help`\n\n```bash\nUsage: soql-parser-js [options] [command]\n\nOptions:\n  -h, --help                 output usage information\n\nCommands:\n  parse [options] <sql>\n  compose [options] <query>\n  format [options] <sql>\n  valid <sql>\n```\n\n`soql-parser-js parse --help`\n\n```bash\nUsage: parse [options] <sql>\n\nOptions:\n  -a, --allow-apex     allow apex bind variables\n  -p, --allow-partial  allow partial queries\n  -i, --ignore-errors  ignore parse errors, return as much of query as possible\n  -h, --help           output usage information\n```\n\n`soql-parser-js compose --help`\n\n```bash\nUsage: compose [options] <query>\n\nOptions:\n  -f, --format                   format output\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js format --help`\n\n```bash\nUsage: format [options] <sql>\n\nOptions:\n  -a, --allow-apex     allow apex bind variables\n  -p, --allow-partial  allow partial queries\n  -i --indent <chars>            number of tab characters to indent (default: 1)\n  -m --line-length <chars>       max number of characters per lins (default: 60)\n  -s --subquery-parens-new-line  subquery parens on own line\n  -k --keywords-new-line         new line after keywords\n  -j, --json                     output as JSON\n  -h, --help                     output usage information\n```\n\n`soql-parser-js valid --help`\n\n```bash\nUsage: valid [options] <sql>\n\nOptions:\n  -a, --allow-apex     allow apex bind variables\n  -p, --allow-partial  allow partial queries\n  -j, --json  output as JSON\n  -h, --help  output usage information\n```\n\n## Data Models\n\n### Query\n\n```typescript\nexport type LogicalOperator = 'AND' | 'OR' | 'NOT';\nexport type Operator = '=' | '!=' | '<=' | '>=' | '>' | '<' | 'LIKE' | 'IN' | 'NOT IN' | 'INCLUDES' | 'EXCLUDES';\nexport type FieldTypeOfConditionType = 'WHEN' | 'ELSE';\nexport type GroupSelector = 'ABOVE' | 'AT' | 'BELOW' | 'ABOVE_OR_BELOW';\nexport type ForClause = 'VIEW' | 'UPDATE' | 'REFERENCE';\nexport type UpdateClause = 'TRACKING' | 'VIEWSTAT';\nexport type LiteralType =\n  | 'STRING'\n  | 'INTEGER'\n  | 'DECIMAL'\n  | 'INTEGER_WITH_CURRENCY_PREFIX'\n  | 'DECIMAL_WITH_CURRENCY_PREFIX'\n  | 'BOOLEAN'\n  | 'NULL'\n  | 'DATETIME'\n  | 'DATE'\n  | 'DATE_LITERAL'\n  | 'DATE_N_LITERAL'\n  | 'APEX_BIND_VARIABLE';\nexport type FieldType =\n  | Field\n  | FieldWithAlias\n  | FieldFunctionExpression\n  | FieldRelationship\n  | FieldRelationshipWithAlias\n  | FieldSubquery\n  | FieldTypeOf;\nexport type OrderByCriterion = 'ASC' | 'DESC';\nexport type NullsOrder = 'FIRST' | 'LAST';\nexport type GroupByType = 'CUBE' | 'ROLLUP';\nexport type DateLiteral =\n  | 'YESTERDAY'\n  | 'TODAY'\n  | 'TOMORROW'\n  | 'LAST_WEEK'\n  | 'THIS_WEEK'\n  | 'NEXT_WEEK'\n  | 'LAST_MONTH'\n  | 'THIS_MONTH'\n  | 'NEXT_MONTH'\n  | 'LAST_90_DAYS'\n  | 'NEXT_90_DAYS'\n  | 'THIS_QUARTER'\n  | 'LAST_QUARTER'\n  | 'NEXT_QUARTER'\n  | 'THIS_YEAR'\n  | 'LAST_YEAR'\n  | 'NEXT_YEAR'\n  | 'THIS_FISCAL_QUARTER'\n  | 'LAST_FISCAL_QUARTER'\n  | 'NEXT_FISCAL_QUARTER'\n  | 'THIS_FISCAL_YEAR'\n  | 'LAST_FISCAL_YEAR'\n  | 'NEXT_FISCAL_YEAR';\n\nexport type DateNLiteral =\n  | 'YESTERDAY'\n  | 'NEXT_N_DAYS'\n  | 'LAST_N_DAYS'\n  | 'N_DAYS_AGO'\n  | 'NEXT_N_WEEKS'\n  | 'LAST_N_WEEKS'\n  | 'N_WEEKS_AGO'\n  | 'NEXT_N_MONTHS'\n  | 'LAST_N_MONTHS'\n  | 'N_MONTHS_AGO'\n  | 'NEXT_N_QUARTERS'\n  | 'LAST_N_QUARTERS'\n  | 'N_QUARTERS_AGO'\n  | 'NEXT_N_YEARS'\n  | 'LAST_N_YEARS'\n  | 'N_YEARS_AGO'\n  | 'NEXT_N_FISCAL_QUARTERS'\n  | 'LAST_N_FISCAL_QUARTERS'\n  | 'N_FISCAL_QUARTERS_AGO'\n  | 'NEXT_N_FISCAL_YEARS'\n  | 'LAST_N_FISCAL_YEARS'\n  | 'N_FISCAL_YEARS_AGO';\n\nexport interface Field {\n  type: 'Field';\n  field: string;\n  alias?: string;\n}\n\nexport interface FieldWithAlias extends Field {\n  objectPrefix: string;\n  rawValue: string;\n}\n\nexport interface FieldFunctionExpression {\n  type: 'FieldFunctionExpression';\n  functionName: string;\n  parameters: (string | FieldFunctionExpression)[];\n  alias?: string;\n  isAggregateFn?: boolean; // not required for compose, will be populated if SOQL is parsed\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed\n}\n\nexport interface FieldRelationship {\n  type: 'FieldRelationship';\n  field: string;\n  relationships: string[];\n  rawValue?: string; // not required for compose, will be populated if SOQL is parsed with the raw value of the entire field\n}\n\nexport interface FieldRelationshipWithAlias extends FieldRelationship {\n  objectPrefix: string;\n  alias: string;\n}\n\nexport interface FieldSubquery {\n  type: 'FieldSubquery';\n  subquery: Subquery;\n}\n\nexport interface FieldTypeOf {\n  type: 'FieldTypeof';\n  field: string;\n  conditions: FieldTypeOfCondition[];\n}\n\nexport interface FieldTypeOfCondition {\n  type: FieldTypeOfConditionType;\n  objectType?: string; // not present when ELSE\n  fieldList: string[];\n}\n\nexport interface QueryBase {\n  fields?: FieldType[];\n  sObjectAlias?: string;\n  usingScope?: string;\n  where?: WhereClause;\n  limit?: number;\n  offset?: number;\n  groupBy?: GroupByClause;\n  orderBy?: OrderByClause | OrderByClause[];\n  withDataCategory?: WithDataCategoryClause;\n  withSecurityEnforced?: boolean;\n  withAccessLevel?: boolean;\n  for?: ForClause;\n  update?: UpdateClause;\n}\n\nexport interface Query extends QueryBase {\n  sObject?: string;\n}\n\nexport interface Subquery extends QueryBase {\n  relationshipName: string;\n  sObjectPrefix?: string[];\n}\n\nexport type WhereClause = WhereClauseWithoutOperator | WhereClauseWithRightCondition;\n\nexport interface WhereClauseWithoutOperator {\n  left: ConditionWithValueQuery;\n}\n\nexport interface WhereClauseWithRightCondition extends WhereClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: WhereClause;\n}\n\nexport type Condition =\n  | ValueCondition\n  | ValueWithDateLiteralCondition\n  | ValueWithDateNLiteralCondition\n  | ValueFunctionCondition\n  | NegationCondition;\n\nexport type ConditionWithValueQuery = Condition | ValueQueryCondition;\n\nexport interface OptionalParentheses {\n  openParen?: number;\n  closeParen?: number;\n}\n\nexport interface ValueCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface ValueWithDateLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: DateLiteral | DateLiteral[];\n  literalType?: 'DATE_LITERAL' | 'DATE_LITERAL'[];\n}\n\nexport interface ValueWithDateNLiteralCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  value: string | string[];\n  literalType?: 'DATE_N_LITERAL' | 'DATE_N_LITERAL'[];\n  dateLiteralVariable: number | number[];\n}\n\nexport interface ValueQueryCondition extends OptionalParentheses {\n  field: string;\n  operator: Operator;\n  valueQuery: Query;\n}\n\nexport interface ValueFunctionCondition extends OptionalParentheses {\n  fn: FunctionExp;\n  operator: Operator;\n  value: string | string[];\n  literalType?: LiteralType | LiteralType[];\n}\n\nexport interface NegationCondition {\n  openParen: number;\n}\n\nexport type OrderByClause = OrderByFieldClause | OrderByFnClause;\n\nexport interface OrderByOptionalFieldsClause {\n  order?: OrderByCriterion;\n  nulls?: NullsOrder;\n}\n\nexport interface OrderByFieldClause extends OrderByOptionalFieldsClause {\n  field: string;\n}\n\nexport interface OrderByFnClause extends OrderByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type GroupByClause = GroupByFieldClause | GroupByFnClause;\n\nexport interface GroupByOptionalFieldsClause {\n  having?: HavingClause;\n}\n\nexport interface GroupByFieldClause extends GroupByOptionalFieldsClause {\n  field: string | string[];\n}\n\nexport interface GroupByFnClause extends GroupByOptionalFieldsClause {\n  fn: FunctionExp;\n}\n\nexport type HavingClause = HavingClauseWithoutOperator | HavingClauseWithRightCondition;\n\nexport interface HavingClauseWithoutOperator {\n  left: Condition;\n}\n\nexport interface HavingClauseWithRightCondition extends HavingClauseWithoutOperator {\n  operator: LogicalOperator;\n  right: HavingClause;\n}\n\nexport interface FunctionExp {\n  rawValue?: string; // only used for compose fields if useRawValueForFn=true. Should be formatted like this: Count(Id)\n  functionName?: string; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  alias?: string;\n  parameters?: (string | FunctionExp)[]; // only used for compose fields if useRawValueForFn=false, will be populated if SOQL is parsed\n  isAggregateFn?: boolean; // not used for compose, will be populated if SOQL is parsed\n}\n\nexport interface WithDataCategoryClause {\n  conditions: WithDataCategoryCondition[];\n}\n\nexport interface WithDataCategoryCondition {\n  groupName: string;\n  selector: GroupSelector;\n  parameters: string[];\n}\n```\n\n## Contributing\n\nAll contributions are welcome on the project. Please read the [contribution guidelines](https://github.com/jetstreamapp/soql-parser-js/blob/master/CONTRIBUTING.md).\n","readmeFilename":"README.md"}