├── .eslintrc ├── .github └── workflows │ ├── docs.yaml │ └── main.yaml ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── package.json ├── prettier.config.js ├── rollup.config.js ├── src └── index.ts ├── test ├── SimpleOpaESTranslator.ts ├── SimpleOpaSQLTranslator.ts ├── createUserSessionData.ts ├── docker │ ├── es │ │ ├── docker-compose.yml │ │ ├── elasticsearch.yml │ │ └── setup-test.sh │ ├── opa │ │ └── docker-compose.yml │ └── pg │ │ └── docker-compose.yml ├── getTestDBConfig.ts ├── getUserDocumentsFromDB.spec.ts ├── getUserDocumentsFromDB.ts ├── getUserDocumentsFromES.spec.ts ├── getUserDocumentsFromES.ts ├── policies │ └── object │ │ └── document │ │ ├── allow.rego │ │ └── allow_test.rego ├── runMigrationSql.ts ├── sql │ └── V1_0__initDB.sql └── tsconfig.json ├── tsconfig.json └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/docs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/.github/workflows/docs.yaml -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/prettier.config.js -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/src/index.ts -------------------------------------------------------------------------------- /test/SimpleOpaESTranslator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/SimpleOpaESTranslator.ts -------------------------------------------------------------------------------- /test/SimpleOpaSQLTranslator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/SimpleOpaSQLTranslator.ts -------------------------------------------------------------------------------- /test/createUserSessionData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/createUserSessionData.ts -------------------------------------------------------------------------------- /test/docker/es/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/docker/es/docker-compose.yml -------------------------------------------------------------------------------- /test/docker/es/elasticsearch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/docker/es/elasticsearch.yml -------------------------------------------------------------------------------- /test/docker/es/setup-test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/docker/es/setup-test.sh -------------------------------------------------------------------------------- /test/docker/opa/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/docker/opa/docker-compose.yml -------------------------------------------------------------------------------- /test/docker/pg/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/docker/pg/docker-compose.yml -------------------------------------------------------------------------------- /test/getTestDBConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/getTestDBConfig.ts -------------------------------------------------------------------------------- /test/getUserDocumentsFromDB.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/getUserDocumentsFromDB.spec.ts -------------------------------------------------------------------------------- /test/getUserDocumentsFromDB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/getUserDocumentsFromDB.ts -------------------------------------------------------------------------------- /test/getUserDocumentsFromES.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/getUserDocumentsFromES.spec.ts -------------------------------------------------------------------------------- /test/getUserDocumentsFromES.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/getUserDocumentsFromES.ts -------------------------------------------------------------------------------- /test/policies/object/document/allow.rego: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/policies/object/document/allow.rego -------------------------------------------------------------------------------- /test/policies/object/document/allow_test.rego: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/policies/object/document/allow_test.rego -------------------------------------------------------------------------------- /test/runMigrationSql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/runMigrationSql.ts -------------------------------------------------------------------------------- /test/sql/V1_0__initDB.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/sql/V1_0__initDB.sql -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/t83714/opa-compile-response-parser/HEAD/yarn.lock --------------------------------------------------------------------------------