{"_id":"@castore/event-storage-adapter-http","_rev":"6-76e93eddd95064163906c2a7ca5fae85","name":"@castore/event-storage-adapter-http","dist-tags":{"latest":"2.4.2"},"versions":{"2.2.0":{"name":"@castore/event-storage-adapter-http","version":"2.2.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-http@2.2.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"dist":{"shasum":"4e9339267e47b8823429d3b4bd544dd2b67277c3","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.2.0.tgz","fileCount":39,"integrity":"sha512-20ACQ3fJhspDagRVGAPzXz7x4S8/smxVAxzYU1jlnwmoNh4ogv4bw7OMRIUoT5nK4HRnq7thtC0HM3eIbOml6w==","signatures":[{"sig":"MEUCIEB3L6QXEaDFGOd14qbs53ZcO3geKSJ6rtXiSdOwVFQHAiEA3WuvskUPQ2s2/HHbXe96Jdhw0+JM74Li4ZPSyW3ZxOA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128654},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"3cedccd6195f6afd90b6dcb30fd3511bacb4b5e7","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"ttsc -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.2.3","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.9.1","prettier":"^2.6.2","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ttypescript":"^1.5.13","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-http_2.2.0_1705427179554_0.6667164610843774","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@castore/event-storage-adapter-http","version":"2.3.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-http@2.3.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"dist":{"shasum":"bc0e8012bc15271f1e2cf2690a1f888c5b4bd618","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.3.0.tgz","fileCount":39,"integrity":"sha512-x9FNnSGladxDG0KC9QkYXM1+h/scl/0iF/utOA8cZjs3Ymnz/N+dFllSFfklAn6cLlBic1V8eW3CXiNDmTioKA==","signatures":[{"sig":"MEUCIQDQ6RTqPmLLDe6xu8XoQc8WIkqX48k6FV6ViMr53/zXHwIgKgXsITEJKTWDbs3+FRvcq9AaC3uGTIo7MxPt8fAgK1g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128667},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"aa8c8f824db8f4e38afd58f7b9f389c7211acd26","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"ttsc -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.2.4","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.9.1","prettier":"^2.6.2","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ttypescript":"^1.5.13","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-http_2.3.0_1710957084179_0.3876746774257547","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@castore/event-storage-adapter-http","version":"2.3.1","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-http@2.3.1","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"dist":{"shasum":"895d3661c8f737edda9d56f0f327844a50ca8c68","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.3.1.tgz","fileCount":39,"integrity":"sha512-/+VNZ1d9e2WFxeh+YQK7ne4fMf+CwkWey937posoXvroo62dwd3QWI5ppbFqhWqNy0NaS6NgVc8/R5J1Lwsv6w==","signatures":[{"sig":"MEUCIQDZls2ANRzqhYlB0f01EWJNV7I4sz+MUtz/FsqY/w7pAAIgXRsBVhAXMc2vwoPf91H33dDoSDq5F+mG8CjQp05+Gb4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128667},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"ec117c540dcadb351b35e349f04dc9f4d7937a38","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"ttsc -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.5.0","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.9.1","prettier":"^2.6.2","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ttypescript":"^1.5.13","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-http_2.3.1_1714035427978_0.6898789697920611","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@castore/event-storage-adapter-http","version":"2.4.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-http@2.4.0","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"dist":{"shasum":"add7c4e9faadbbd72fb6e53adfa3453a35b91990","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.4.0.tgz","fileCount":39,"integrity":"sha512-ddjPPeEhAlibNWmYg+UR3gD4twmIsgwlq+T+RcY8vIJVF71pDBEKYBLBA9gEo064eXCa9qgPe8wYyDHz6PXMGg==","signatures":[{"sig":"MEUCIBN6Dcl6gWF0AkuHdmKRaWhs22KTvBVQItrWK6QBsmYjAiEAx6csf/M4l+KN+DET6ve8YK161Idik7562J3rhtu2iNw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128667},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"313e001988903763e7eb169751114c5f71cc3efe","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"ttsc -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.9.1","prettier":"^2.6.2","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ttypescript":"^1.5.13","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-http_2.4.0_1739877936298_0.9913974241109655","host":"s3://npm-registry-packages-npm-production"}},"2.4.1":{"name":"@castore/event-storage-adapter-http","version":"2.4.1","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/event-storage-adapter-http@2.4.1","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"dist":{"shasum":"45a0fcc5877d5982a5e109400aaad6aa39a29570","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.4.1.tgz","fileCount":39,"integrity":"sha512-ZvG4MabZcAvi2Q6HlDiLJlCoIkDqyiAsD/RqkchVQoP7NcOnLLeYcYPfKj713CeeeCNGsltzPulKVKwvt/wlYQ==","signatures":[{"sig":"MEQCIAnPTgerBUEieZJdokamwo6w5rPXY8ay0OblVOcYFxHXAiAa/L5gQrgi53m2hP3G56dW2WwVnRMFc+52qvMwaCi3dw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":128667},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"28c9f4e5c7c7527b6d3b5e5d9834789c2e64fd5e","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"ttsc -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/castore-dev/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.9.1","prettier":"^2.6.2","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ttypescript":"^1.5.13","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@babel/preset-typescript":"^7.16.7","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/event-storage-adapter-http_2.4.1_1740488538049_0.7045636542965803","host":"s3://npm-registry-packages-npm-production"}},"2.4.2":{"name":"@castore/event-storage-adapter-http","description":"DRY Castore EventStorageAdapter implementation using a HTTP API","license":"MIT","homepage":"https://github.com/castore-dev/castore#readme","bugs":{"url":"https://github.com/castore-dev/castore/issues"},"repository":{"type":"git","url":"git+https://github.com/castore-dev/castore.git"},"keywords":["event","source","store","typescript"],"publishConfig":{"access":"public"},"sideEffects":false,"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","scripts":{"lint-fix":"yarn linter-base-config --fix","lint-fix-all":"yarn lint-fix .","linter-base-config":"eslint --ext=js,ts","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","package-types":"ttsc -p tsconfig.build.json","test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","test-circular":"yarn depcruise --validate dependency-cruiser.js .","test-linter":"yarn linter-base-config .","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'"},"dependencies":{"openapi-types":"^12.1.3","swagger-client":"^3.20.0"},"devDependencies":{"@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@castore/core":"workspace:","@types/node":"^17.0.29","@zerollup/ts-transform-paths":"^1.7.18","babel-plugin-module-resolver":"^4.1.0","concurrently":"^7.1.0","dependency-cruiser":"^11.7.0","eslint":"^8.14.0","prettier":"^2.6.2","ts-node":"^10.9.1","ttypescript":"^1.5.13","typescript":"^4.6.3","vitest":"^0.26.2"},"maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"nx":{"targets":{"package":{"outputs":["packages/event-storage-adapter-http/dist"]}}},"peerDependencies":{"@castore/core":"^2.0.0"},"version":"2.4.2","_id":"@castore/event-storage-adapter-http@2.4.2","gitHead":"fd79dfcc42ef28d216b08007edacd21208ba1876","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CdWhHurwHgTlOa34foGRbuGdrVRgeQL7jovbJLJQY8qGy/67Tim8enTrs6gRvabKnWesCkCIWOdpuqRMpPggxA==","shasum":"323c033d790fad188daeb61e451e27f5945ed4dd","tarball":"https://registry.npmjs.org/@castore/event-storage-adapter-http/-/event-storage-adapter-http-2.4.2.tgz","fileCount":39,"unpackedSize":128667,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBtpGYA2eyASSyX6IsQ1nu0i2p2iJFx1WaZwVxs/wLu1AiEAkg1viCPNNC9R0lz8YQwCakynKg2I14TgPykcXADrUk0="}]},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/event-storage-adapter-http_2.4.2_1744991101675_0.8536970173741176"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-16T17:46:19.401Z","modified":"2025-04-18T15:45:02.139Z","2.2.0":"2024-01-16T17:46:19.736Z","2.3.0":"2024-03-20T17:51:24.379Z","2.3.1":"2024-04-25T08:57:08.195Z","2.4.0":"2025-02-18T11:25:36.475Z","2.4.1":"2025-02-25T13:02:18.274Z","2.4.2":"2025-04-18T15:45:01.873Z"},"bugs":{"url":"https://github.com/castore-dev/castore/issues"},"license":"MIT","homepage":"https://github.com/castore-dev/castore#readme","keywords":["event","source","store","typescript"],"repository":{"type":"git","url":"git+https://github.com/castore-dev/castore.git"},"description":"DRY Castore EventStorageAdapter implementation using a HTTP API","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"readme":"# HTTP Event Storage Adapter\n\nDRY Castore [`EventStorageAdapter`](https://castore-dev.github.io/castore/docs/event-sourcing/fetching-events/) implementation using a HTTP API.\n\nThis class is mainly useful when you already have the logic for events implemented and you want to expose your methods for a front-end to use them, eg.\n\n## 📥 Installation\n\n```bash\n# npm\nnpm install @castore/event-storage-adapter-http\n\n# yarn\nyarn add @castore/event-storage-adapter-http\n```\n\nThis package has `@castore/core` as peer dependency, so you will have to install it as well:\n\n```bash\n# npm\nnpm install @castore/core\n\n# yarn\nyarn add @castore/core\n```\n\n### 👩‍💻 Usage\n\n```ts\nimport { HttpEventStorageAdapter } from '@castore/event-storage-adapter-http';\nimport { swagger } from './swagger.json'; // your swagger file\n\n\nconst pokemonHttpEventStorageAdapter = new HttpEventStorageAdapter({ swagger });\n\nconst pokemonEventStore = new EventStore({\n  ...\n  eventStorageAdapter: pokemonHttpEventStorageAdapter,\n});\n```\n\n### 🤔 How it works\n\nYou need to expose 2 API endpoints that will be used by the adapter. They need to return the data correctly formatted:\n\n- getEvents: `(aggregateId: string) => { events: EventDetail[] }`\n- listAggregateIds: `() => ListAggregateIdsOutput`\n\nSee [here](https://castore-dev.github.io/castore/docs/event-sourcing/events/) for more details about the EventDetails type.\nFor the `ListAggregateIdsOutput` type:\n\n```typescript\ntype ListAggregateIdsOutput = {\n  aggregateIds: {\n    aggregateId: string;\n    initialEventTimestamp: string;\n  }[];\n  nextPageToken?: string;\n};\n```\n\nOnce your API is deployed, you can export is as an OpenAPI specification (swagger) and pass it to the adapter.\n[Here](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-export.html) is how export an API gateway as a swagger.\n\nThis adapter uses the swagger passed in input to generate requests to you API endpoints.\nFor each method, it looks for the tags `operationId` in the swagger to generate the request.\n\nThe swagger should be typed like this, with at least the paths for the `getEvents` and `listAggregateIds` methods:\n\n```typescript\ntype Swagger = {\n  openapi: string; // the OpenAPI version you are using. Ex: 3.0.1\n  info: {\n    title: string; // the title of your API\n    version: string; // timestamps\n  };\n  servers: {\n    url: string; // the base url of your API\n    variables: {\n      basePath: {\n        default: string; // the default value can be ''\n      };\n    };\n  }[];\n  paths: {\n    [path: string]: {\n      [verb: string]: {\n        operationId: string; // the operation id for the castore method (getEvents | listAggregateIds)\n        responses: {\n          [statusCode: string]: {\n            description: string;\n            content?: {\n              [type: string]: {\n                schema: {\n                  $ref: string;\n                };\n              };\n            };\n          };\n          default: {\n            description: string;\n          };\n        };\n        parameters?: {\n          name: string;\n          in: string; // 'path' | 'query' | 'header' | 'cookie'\n          description: string;\n          required: boolean;\n          format: string;\n        }[];\n      };\n    };\n  };\n};\n```\n\n### 📝 Examples\n\nExample of swagger:\n\n```json\n{\n  \"openapi\": \"3.0.1\",\n  \"info\": {\n    \"title\": \"event-store-api\",\n    \"version\": \"2023-10-27 14:58:17UTC\"\n  },\n  \"servers\": [\n    {\n      \"url\": \"https://yourApiGatewayId.execute-api.eu-west-1.amazonaws.com/{basePath}\",\n      \"variables\": {\n        \"basePath\": {\n          \"default\": \"\"\n        }\n      }\n    }\n  ],\n  \"paths\": {\n    \"/aggregateIds\": {\n      \"get\": {\n        \"responses\": {\n          \"default\": {\n            \"description\": \"Default response for GET /aggregateIds\"\n          }\n        },\n        \"operationId\": \"listAggregateIds\"\n      }\n    },\n    \"/events?aggregateId={aggregateId}\": {\n      \"get\": {\n        \"responses\": {\n          \"default\": {\n            \"description\": \"Default response for GET /events\"\n          }\n        },\n        \"x-castore-operationId\": \"getEvents\",\n        // you can alternatively use the operationId field\n        // \"operationId\": \"getEvents\",\n        \"parameters\": [\n          {\n            \"name\": \"aggregateId\",\n            \"in\": \"path\",\n            \"description\": \"aggregateId of the event-trace we want to retrieve\",\n            \"required\": true,\n            \"format\": \"int64\"\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\nNote that if you don't specify the `x-castore-operationId` or the `operationId` field, then the adapter will not be able to find the method to call.\n","readmeFilename":"README.md"}