alixlahuec / zotero-roam

Connector extension between Roam Research & Zotero
https://alix-lahuec.gitbook.io/zotero-roam/
Apache License 2.0
62 stars 6 forks source link

chore: restructure API code #649

Closed alixlahuec closed 1 month ago

linear[bot] commented 2 months ago

RM-656 Restructure API code

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 94.44444% with 10 lines in your changes missing coverage. Please review.

Project coverage is 83.22%. Comparing base (ea70758) to head (1f5655e).

:exclamation: Current head 1f5655e differs from pull request most recent head 19367ee

Please upload reports for the commit 19367ee to get more accurate results.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649/graphs/tree.svg?width=650&height=150&src=pr&token=32DK4326KK&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec)](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec) ```diff @@ Coverage Diff @@ ## beta #649 +/- ## ========================================== - Coverage 83.69% 83.22% -0.47% ========================================== Files 158 159 +1 Lines 4917 4921 +4 Branches 1409 1406 -3 ========================================== - Hits 4115 4095 -20 - Misses 777 801 +24 Partials 25 25 ``` | [Files](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec) | Coverage Δ | | |---|---|---| | [src/api/public.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fapi%2Fpublic.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2FwaS9wdWJsaWMudHM=) | `80.86% <ø> (-4.25%)` | :arrow_down: | | [src/clients/citoid/base.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fcitoid%2Fbase.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvY2l0b2lkL2Jhc2UudHM=) | `100.00% <ø> (ø)` | | | [src/clients/citoid/hooks.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fcitoid%2Fhooks.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvY2l0b2lkL2hvb2tzLnRz) | `100.00% <ø> (ø)` | | | [src/clients/semantic/base.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fsemantic%2Fbase.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvc2VtYW50aWMvYmFzZS50cw==) | `80.00% <ø> (ø)` | | | [src/clients/semantic/hooks.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fsemantic%2Fhooks.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvc2VtYW50aWMvaG9va3MudHM=) | `100.00% <ø> (ø)` | | | [src/clients/zotero/base.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fzotero%2Fbase.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvem90ZXJvL2Jhc2UudHM=) | `73.03% <ø> (ø)` | | | [src/clients/zotero/helpers.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fzotero%2Fhelpers.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvem90ZXJvL2hlbHBlcnMudHM=) | `95.61% <ø> (ø)` | | | [src/clients/zotero/hooks.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fzotero%2Fhooks.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvem90ZXJvL2hvb2tzLnRz) | `100.00% <ø> (ø)` | | | [src/clients/zotero/mutations.ts](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fclients%2Fzotero%2Fmutations.ts&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NsaWVudHMvem90ZXJvL211dGF0aW9ucy50cw==) | `90.17% <ø> (ø)` | | | [src/components/Autocomplete/index.tsx](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree&filepath=src%2Fcomponents%2FAutocomplete%2Findex.tsx&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec#diff-c3JjL2NvbXBvbmVudHMvQXV0b2NvbXBsZXRlL2luZGV4LnRzeA==) | `6.35% <ø> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/alixlahuec/zotero-roam/pull/649/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Alix+Lahuec)