-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(openApi): configured rtk-OpenApi codegen (#54)
* chore(openApi): configured rtk-OpenApi codegen * feat(frontend): added reduxjs toolkit --------- Co-authored-by: Stephane SEGNING LAMBOU <[email protected]>
- Loading branch information
1 parent
4f2e765
commit afaa997
Showing
5 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,3 +127,6 @@ docs/gen | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
#API codegen files | ||
./src/store/LynxScannerApi.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { ConfigFile } from '@rtk-query/codegen-openapi' | ||
|
||
const config: ConfigFile = { | ||
schemaFile: './openapi.yaml', | ||
apiFile: './src/store/emptyApi.ts', | ||
apiImport: 'emptySplitApi', | ||
outputFile: './src/store/LynxScannerApi.ts', | ||
exportName: 'LynxScannerApi', | ||
hooks: true, | ||
} | ||
|
||
export default config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Or from '@reduxjs/toolkit/query' if not using the auto-generated hooks | ||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react' | ||
|
||
// initialize an empty api service that we'll inject endpoints into later as needed | ||
export const emptySplitApi = createApi({ | ||
baseQuery: fetchBaseQuery({ baseUrl: '/' }), | ||
endpoints: () => ({}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1613,6 +1613,16 @@ | |
unbzip2-stream "1.4.3" | ||
yargs "17.7.2" | ||
|
||
"@reduxjs/toolkit@^2.2.6": | ||
version "2.2.6" | ||
resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-2.2.6.tgz#4a8356dad9d0c1ab255607a555d492168e0e3bc1" | ||
integrity sha512-kH0r495c5z1t0g796eDQAkYbEQ3a1OLYN9o8jQQVZyKyw367pfRGS+qZLkHYvFHiUUdafpoSlQ2QYObIApjPWA== | ||
dependencies: | ||
immer "^10.0.3" | ||
redux "^5.0.1" | ||
redux-thunk "^3.1.0" | ||
reselect "^5.1.0" | ||
|
||
"@remix-run/[email protected]": | ||
version "1.16.0" | ||
resolved "https://registry.npmjs.org/@remix-run/router/-/router-1.16.0.tgz" | ||
|
@@ -1931,6 +1941,11 @@ | |
resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz" | ||
integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ== | ||
|
||
"@types/use-sync-external-store@^0.0.3": | ||
version "0.0.3" | ||
resolved "https://registry.yarnpkg.com/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz#b6725d5f4af24ace33b36fafd295136e75509f43" | ||
integrity sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA== | ||
|
||
"@types/yauzl@^2.9.1": | ||
version "2.10.3" | ||
resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.3.tgz#e9b2808b4f109504a03cda958259876f61017999" | ||
|
@@ -2974,6 +2989,13 @@ debug@4, [email protected], debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, de | |
dependencies: | ||
ms "2.1.2" | ||
|
||
debug@^2.2.0: | ||
version "2.6.9" | ||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" | ||
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== | ||
dependencies: | ||
ms "2.0.0" | ||
|
||
debug@^3.2.7: | ||
version "3.2.7" | ||
resolved "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" | ||
|
@@ -3743,6 +3765,13 @@ flatted@^3.2.9: | |
resolved "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz" | ||
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== | ||
|
||
flux-standard-action@^0.6.0: | ||
version "0.6.1" | ||
resolved "https://registry.yarnpkg.com/flux-standard-action/-/flux-standard-action-0.6.1.tgz#6f34211b94834ea1c3cc30f4e7afad3d0fbf71a2" | ||
integrity sha512-CBd2tVQN1xvBz7i2ZMPP7XvMbZQCSl/Pz4a00JRQyipYlKNUwsHJctZW+dveCAxFySMvXlVJNevyfMOgT8Byvw== | ||
dependencies: | ||
lodash.isplainobject "^3.2.0" | ||
|
||
for-each@^0.3.3: | ||
version "0.3.3" | ||
resolved "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz" | ||
|
@@ -4153,6 +4182,10 @@ ignore@^5.2.0, ignore@^5.3.1: | |
resolved "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz" | ||
integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== | ||
|
||
immer@^10.0.3: | ||
version "10.1.1" | ||
resolved "https://registry.yarnpkg.com/immer/-/immer-10.1.1.tgz#206f344ea372d8ea176891545ee53ccc062db7bc" | ||
integrity sha512-s2MPrmjovJcoMaHtx6K11Ra7oD05NT97w1IC5zpMkT6Atjr7H8LjaDd81iIxUYpMKSRRNMJE703M1Fhr/TctHw== | ||
immediate@~3.0.5: | ||
version "3.0.6" | ||
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" | ||
|
@@ -4218,6 +4251,13 @@ internal-slot@^1.0.7: | |
hasown "^2.0.0" | ||
side-channel "^1.0.4" | ||
|
||
invariant@^2.1.1: | ||
version "2.2.4" | ||
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" | ||
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== | ||
dependencies: | ||
loose-envify "^1.0.0" | ||
|
||
ip-address@^9.0.5: | ||
version "9.0.5" | ||
resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" | ||
|
@@ -4780,6 +4820,11 @@ locate-path@^7.2.0: | |
dependencies: | ||
p-locate "^6.0.0" | ||
|
||
lodash._basefor@^3.0.0: | ||
version "3.0.3" | ||
resolved "https://registry.yarnpkg.com/lodash._basefor/-/lodash._basefor-3.0.3.tgz#7550b4e9218ef09fad24343b612021c79b4c20c2" | ||
integrity sha512-6bc3b8grkpMgDcVJv9JYZAk/mHgcqMljzm7OsbmcE2FGUMmmLQTPHlh/dFqR8LA0GQ7z4K67JSotVKu5058v1A== | ||
|
||
lodash.camelcase@^4.3.0: | ||
version "4.3.0" | ||
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" | ||
|
@@ -4790,6 +4835,25 @@ lodash.debounce@^4.0.8: | |
resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz" | ||
integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== | ||
|
||
lodash.isarguments@^3.0.0: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" | ||
integrity sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg== | ||
|
||
lodash.isarray@^3.0.0: | ||
version "3.0.4" | ||
resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" | ||
integrity sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ== | ||
|
||
lodash.isplainobject@^3.2.0: | ||
version "3.2.0" | ||
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz#9a8238ae16b200432960cd7346512d0123fbf4c5" | ||
integrity sha512-P4wZnho5curNqeEq/x292Pb57e1v+woR7DJ84DURelKB46lby8aDEGVobSaYtzHdQBWQrJSdxcCwjlGOvvdIyg== | ||
dependencies: | ||
lodash._basefor "^3.0.0" | ||
lodash.isarguments "^3.0.0" | ||
lodash.keysin "^3.0.0" | ||
|
||
lodash.isplainobject@^4.0.6: | ||
version "4.0.6" | ||
resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" | ||
|
@@ -4800,6 +4864,14 @@ lodash.kebabcase@^4.1.1: | |
resolved "https://registry.yarnpkg.com/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz#8489b1cb0d29ff88195cceca448ff6d6cc295c36" | ||
integrity sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g== | ||
|
||
lodash.keysin@^3.0.0: | ||
version "3.0.8" | ||
resolved "https://registry.yarnpkg.com/lodash.keysin/-/lodash.keysin-3.0.8.tgz#22c4493ebbedb1427962a54b445b2c8a767fb47f" | ||
integrity sha512-YDB/5xkL3fBKFMDaC+cfGV00pbiJ6XoJIfRmBhv7aR6wWtbCW6IzkiWnTfkiHTF6ALD7ff83dAtB3OEaSoyQPg== | ||
dependencies: | ||
lodash.isarguments "^3.0.0" | ||
lodash.isarray "^3.0.0" | ||
|
||
lodash.merge@^4.6.2: | ||
version "4.6.2" | ||
resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" | ||
|
@@ -4835,6 +4907,11 @@ lodash.upperfirst@^4.3.1: | |
resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" | ||
integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg== | ||
|
||
lodash@^3.10.1: | ||
version "3.10.1" | ||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" | ||
integrity sha512-9mDDwqVIma6OZX79ZlDACZl8sBm0TEnkf99zV3iMA4GzkIT/9hiqP5mY0HoT1iNLCrKc/R1HByV+yJfRWVJryQ== | ||
|
||
lodash@^4.17.21: | ||
version "4.17.21" | ||
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" | ||
|
@@ -4867,7 +4944,7 @@ log-update@^6.0.0: | |
strip-ansi "^7.1.0" | ||
wrap-ansi "^9.0.0" | ||
|
||
loose-envify@^1.1.0, loose-envify@^1.4.0: | ||
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: | ||
version "1.4.0" | ||
resolved "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz" | ||
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== | ||
|
@@ -5021,6 +5098,11 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/mitt/-/mitt-3.0.1.tgz#ea36cf0cc30403601ae074c8f77b7092cdab36d1" | ||
integrity sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw== | ||
|
||
[email protected]: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" | ||
integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== | ||
|
||
[email protected], ms@^2.1.1: | ||
version "2.1.2" | ||
resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" | ||
|
@@ -5566,6 +5648,14 @@ react-is@^16.13.1: | |
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" | ||
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== | ||
|
||
react-redux@^9.1.2: | ||
version "9.1.2" | ||
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-9.1.2.tgz#deba38c64c3403e9abd0c3fbeab69ffd9d8a7e4b" | ||
integrity sha512-0OA4dhM1W48l3uzmv6B7TXPCGmokUU4p1M44DGN2/D9a1FjVPukVjER1PcPX97jIg6aUeLq1XJo1IpfbgULn0w== | ||
dependencies: | ||
"@types/use-sync-external-store" "^0.0.3" | ||
use-sync-external-store "^1.0.0" | ||
|
||
react-refresh@^0.14.0: | ||
version "0.14.0" | ||
resolved "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.0.tgz" | ||
|
@@ -5607,6 +5697,26 @@ readdirp@~3.6.0: | |
dependencies: | ||
picomatch "^2.2.1" | ||
|
||
redux-thunk@^3.1.0: | ||
version "3.1.0" | ||
resolved "https://registry.yarnpkg.com/redux-thunk/-/redux-thunk-3.1.0.tgz#94aa6e04977c30e14e892eae84978c1af6058ff3" | ||
integrity sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw== | ||
|
||
redux-toolkit@^1.1.2: | ||
version "1.1.2" | ||
resolved "https://registry.yarnpkg.com/redux-toolkit/-/redux-toolkit-1.1.2.tgz#f7dc880fea13b4804284b4fe0072ef0e7a5552ff" | ||
integrity sha512-ZDs6LqSvGLy5kcFfl3yHB/xzpPlXodryCex4ICJUJ2s1SiE/zUsbT/y4YU5IDJafNh4cmTr/J518nTJ+V4rIOQ== | ||
dependencies: | ||
debug "^2.2.0" | ||
flux-standard-action "^0.6.0" | ||
invariant "^2.1.1" | ||
lodash "^3.10.1" | ||
|
||
redux@^5.0.1: | ||
version "5.0.1" | ||
resolved "https://registry.yarnpkg.com/redux/-/redux-5.0.1.tgz#97fa26881ce5746500125585d5642c77b6e9447b" | ||
integrity sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w== | ||
|
||
reflect.getprototypeof@^1.0.4: | ||
version "1.0.6" | ||
resolved "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.6.tgz" | ||
|
@@ -5683,6 +5793,11 @@ require-from-string@^2.0.2: | |
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" | ||
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== | ||
|
||
reselect@^5.1.0: | ||
version "5.1.1" | ||
resolved "https://registry.yarnpkg.com/reselect/-/reselect-5.1.1.tgz#c766b1eb5d558291e5e550298adb0becc24bb72e" | ||
integrity sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w== | ||
|
||
resolve-from@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" | ||
|
@@ -6659,6 +6774,11 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz#f0a03a97bfb03cdf33553e5e79a2aadd22cac8ec" | ||
integrity sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg== | ||
|
||
use-sync-external-store@^1.0.0: | ||
version "1.2.2" | ||
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz#c3b6390f3a30eba13200d2302dcdf1e7b57b2ef9" | ||
integrity sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw== | ||
|
||
util-deprecate@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" | ||
|