Commit 3c5dffd
Multi-node client (#52)
* use custom openapi generator template
* feat(openapi-template): bon builder derive, generic model and API method
* feat: `x-rust-return-type`to override generated API methods' return type
fix: missing generic in impl block
* feat: bon builder string into conversion
* feat: multi-node client
* fix: avoid JSON serializing the request body of endpoints that accept plain text (JSONL)
* feat: multi search
* refactor multi search extension
* fix lint
* rename folder from `custom-template` to `openapi-generator-template` and remove unused templates
* refactor: `to_owned` instead of `to_string`
* ci: remove httpmock, ci with real Typesense server
* ci: use typesense v30.0.rc10
* ignore rust fmt for `typesense_codegen`
* feat: explicit `x-rust-builder: true` to generate builders for open api models
* rename `x-rust-operation-generic-parameter` to `x-rust-generic-parameter`
* make `perform_union` generic and remove `UnionSearchResultExt`
* use String instead of reqwest::Url for node configuration
* don't `pub use models::*` at the root
* Optimize + fmt
* inline
* Get next node faster for a single node config
* feat: add openapi vendor attributes directly through xtask
* Workspace dependencies
* run cargo fmt after code-gen task
* Refactor execute_wrapper
* collection_name ref str
* codegen apis ref params
* README: add instructions to use the xtask
* Readme tweak
* README: code gen docker command
* remove unused openapi template files
* modify the open api template instead of ignoring`apis/mod.rs` and `lib.rs`
* remove `openapi-generator-template/request.rs`
* expose pub ResponseContent
* Avoid apikey clone
* Rename generic
* Rename: collection() requires trait Document
* Node::set_health
* Legacy API
* Fix test
---------
Co-authored-by: RoDmitry <gh@rdmtr.com>1 parent 6de9902 commit 3c5dffd
File tree
315 files changed
+23933
-3906
lines changed- .github/workflows
- mocks
- openapi-generator-template
- reqwest
- typesense_codegen
- .openapi-generator
- docs
- src
- apis
- models
- typesense_derive/src
- typesense
- src
- client
- collection
- field
- models
- traits
- tests
- api
- client
- derive
- ui
- xtask
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
315 files changed
+23933
-3906
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | | - | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
38 | 52 | | |
39 | 53 | | |
40 | 54 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
13 | | - | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
35 | | - | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
9 | 31 | | |
10 | 32 | | |
11 | 33 | | |
12 | 34 | | |
13 | | - | |
| 35 | + | |
14 | 36 | | |
15 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
16 | 42 | | |
17 | 43 | | |
18 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments