diff --git a/README.md b/README.md index a0dfc62..9604e7d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # typesense-go [![Build Status](https://cloud.drone.io/api/badges/typesense/typesense-go/status.svg)](https://cloud.drone.io/typesense/typesense-go) -[![GoReportCard Status](https://goreportcard.com/badge/github.com/typesense/typesense-go/v3)](https://goreportcard.com/report/github.com/typesense/typesense-go/v3) -[![Go Reference](https://pkg.go.dev/badge/github.com/typesense/typesense-go/v3.svg)](https://pkg.go.dev/github.com/typesense/typesense-go/v3) +[![GoReportCard Status](https://goreportcard.com/badge/github.com/typesense/typesense-go/v4)](https://goreportcard.com/report/github.com/typesense/typesense-go/v4) +[![Go Reference](https://pkg.go.dev/badge/github.com/typesense/typesense-go/v4.svg)](https://pkg.go.dev/github.com/typesense/typesense-go/v4) [![GitHub release](https://img.shields.io/github/v/release/typesense/typesense-go)](https://github.com/typesense/typesense-go/releases/latest) [![Gitter](https://badges.gitter.im/typesense-go/community.svg)](https://gitter.im/typesense-go/community) @@ -11,7 +11,7 @@ Go client for the Typesense API: https://github.com/typesense/typesense ## Installation ``` -go get github.com/typesense/typesense-go/v3/typesense +go get github.com/typesense/typesense-go/v4/typesense ``` ## Usage @@ -19,7 +19,7 @@ go get github.com/typesense/typesense-go/v3/typesense Import the the package into your code : ```go -import "github.com/typesense/typesense-go/v3/typesense" +import "github.com/typesense/typesense-go/v4/typesense" ``` Create new client: @@ -516,8 +516,6 @@ export TYPESENSE_API_KEY="xyz" go test ./... -tags=integration -v ``` - - ## License `typesense-go` is distributed under the Apache 2 license. diff --git a/go.mod b/go.mod index b896374..b30c58c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/typesense/typesense-go/v3 +module github.com/typesense/typesense-go/v4 go 1.22 diff --git a/typesense/alias.go b/typesense/alias.go index 4c65250..5837a81 100644 --- a/typesense/alias.go +++ b/typesense/alias.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // AliasInterface is a type for Alias API operations diff --git a/typesense/alias_test.go b/typesense/alias_test.go index efa9000..a31f23c 100644 --- a/typesense/alias_test.go +++ b/typesense/alias_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/aliases.go b/typesense/aliases.go index ae33130..fd75390 100644 --- a/typesense/aliases.go +++ b/typesense/aliases.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // AliasesInterface is a type for Aliases API operations diff --git a/typesense/aliases_test.go b/typesense/aliases_test.go index cf2ccdc..1ab5072 100644 --- a/typesense/aliases_test.go +++ b/typesense/aliases_test.go @@ -6,12 +6,12 @@ import ( "net/http" "testing" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" "github.com/jinzhu/copier" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/analytics_events.go b/typesense/analytics_events.go index ea23c8e..7812063 100644 --- a/typesense/analytics_events.go +++ b/typesense/analytics_events.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type AnalyticsEventsInterface interface { diff --git a/typesense/analytics_events_test.go b/typesense/analytics_events_test.go index 426dc94..c1cfc41 100644 --- a/typesense/analytics_events_test.go +++ b/typesense/analytics_events_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestAnalyticsEventsCreate(t *testing.T) { diff --git a/typesense/analytics_rule.go b/typesense/analytics_rule.go index b7246a9..719af7e 100644 --- a/typesense/analytics_rule.go +++ b/typesense/analytics_rule.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type AnalyticsRuleInterface interface { diff --git a/typesense/analytics_rule_test.go b/typesense/analytics_rule_test.go index df6372d..51b2ac1 100644 --- a/typesense/analytics_rule_test.go +++ b/typesense/analytics_rule_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestAnalyticsRuleRetrieve(t *testing.T) { diff --git a/typesense/analytics_rules.go b/typesense/analytics_rules.go index d371c2f..8a1da99 100644 --- a/typesense/analytics_rules.go +++ b/typesense/analytics_rules.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type AnalyticsRulesInterface interface { diff --git a/typesense/analytics_rules_test.go b/typesense/analytics_rules_test.go index c0f4c37..52501a4 100644 --- a/typesense/analytics_rules_test.go +++ b/typesense/analytics_rules_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestAnalyticsRulesRetrieve(t *testing.T) { diff --git a/typesense/api/circuit/http_client.go b/typesense/api/circuit/http_client.go index 251edb6..f2f0d7d 100644 --- a/typesense/api/circuit/http_client.go +++ b/typesense/api/circuit/http_client.go @@ -5,7 +5,7 @@ package circuit import ( "net/http" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type HTTPRequestDoer interface { diff --git a/typesense/api/circuit/http_client_test.go b/typesense/api/circuit/http_client_test.go index 6075560..160dc9e 100644 --- a/typesense/api/circuit/http_client_test.go +++ b/typesense/api/circuit/http_client_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api/circuit/mocks" + "github.com/typesense/typesense-go/v4/typesense/api/circuit/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/api_call.go b/typesense/api_call.go index ade8d79..1dcf03d 100644 --- a/typesense/api_call.go +++ b/typesense/api_call.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "github.com/typesense/typesense-go/v3/typesense/api/circuit" + "github.com/typesense/typesense-go/v4/typesense/api/circuit" ) type APICall struct { diff --git a/typesense/api_call_test.go b/typesense/api_call_test.go index 5bc1a04..5e4a5ed 100644 --- a/typesense/api_call_test.go +++ b/typesense/api_call_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type serverHandler func(http.ResponseWriter, *http.Request) diff --git a/typesense/client.go b/typesense/client.go index c07aea3..5c1c868 100644 --- a/typesense/client.go +++ b/typesense/client.go @@ -8,8 +8,8 @@ import ( "net/http" "time" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/circuit" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/circuit" ) type APIClientInterface interface { diff --git a/typesense/client_test.go b/typesense/client_test.go index 09cb820..92f2686 100644 --- a/typesense/client_test.go +++ b/typesense/client_test.go @@ -7,8 +7,8 @@ import ( "github.com/sony/gobreaker" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/circuit" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/circuit" ) func TestHttpError(t *testing.T) { diff --git a/typesense/collection.go b/typesense/collection.go index df5d9ca..97797cf 100644 --- a/typesense/collection.go +++ b/typesense/collection.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // CollectionInterface is a type for Collection API operations diff --git a/typesense/collection_test.go b/typesense/collection_test.go index d55b5f7..388f628 100644 --- a/typesense/collection_test.go +++ b/typesense/collection_test.go @@ -7,9 +7,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/collections.go b/typesense/collections.go index 9ea6e0a..3652675 100644 --- a/typesense/collections.go +++ b/typesense/collections.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // CollectionsInterface is a type for Collections API operations diff --git a/typesense/collections_test.go b/typesense/collections_test.go index a0b1347..18a6e7d 100644 --- a/typesense/collections_test.go +++ b/typesense/collections_test.go @@ -8,9 +8,9 @@ import ( "github.com/jinzhu/copier" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/conversation_model.go b/typesense/conversation_model.go index 292323e..88880a4 100644 --- a/typesense/conversation_model.go +++ b/typesense/conversation_model.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type ConversationModelInterface interface { diff --git a/typesense/conversation_model_test.go b/typesense/conversation_model_test.go index 586640b..c209fd6 100644 --- a/typesense/conversation_model_test.go +++ b/typesense/conversation_model_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestConversationModelRetrieve(t *testing.T) { diff --git a/typesense/conversation_models.go b/typesense/conversation_models.go index cb13869..feca83d 100644 --- a/typesense/conversation_models.go +++ b/typesense/conversation_models.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // ConversationModelsInterface is a type for ConversationModels API operations diff --git a/typesense/conversation_models_test.go b/typesense/conversation_models_test.go index fe881f0..f3a541b 100644 --- a/typesense/conversation_models_test.go +++ b/typesense/conversation_models_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestConversationModelsRetrieve(t *testing.T) { diff --git a/typesense/curation_set.go b/typesense/curation_set.go index b06b583..30db6ed 100644 --- a/typesense/curation_set.go +++ b/typesense/curation_set.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // CurationSetInterface is a type for individual Curation Set API operations diff --git a/typesense/curation_sets.go b/typesense/curation_sets.go index 50906d0..9910c4a 100644 --- a/typesense/curation_sets.go +++ b/typesense/curation_sets.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // CurationSetsInterface is a type for Curation Sets API operations diff --git a/typesense/document.go b/typesense/document.go index 8fecf86..e1e3e11 100644 --- a/typesense/document.go +++ b/typesense/document.go @@ -6,7 +6,7 @@ import ( "io" "strings" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type DocumentInterface[T any] interface { diff --git a/typesense/document_test.go b/typesense/document_test.go index f75ef5b..0bad18c 100644 --- a/typesense/document_test.go +++ b/typesense/document_test.go @@ -6,9 +6,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/documents.go b/typesense/documents.go index e95fc3c..18e814a 100644 --- a/typesense/documents.go +++ b/typesense/documents.go @@ -10,8 +10,8 @@ import ( "io" "net/http" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) const ( diff --git a/typesense/documents_test.go b/typesense/documents_test.go index a155f75..59e4580 100644 --- a/typesense/documents_test.go +++ b/typesense/documents_test.go @@ -9,9 +9,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/health_test.go b/typesense/health_test.go index 83d902e..6d660a0 100644 --- a/typesense/health_test.go +++ b/typesense/health_test.go @@ -8,8 +8,8 @@ import ( "time" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/import_test.go b/typesense/import_test.go index 345ae67..be19fd1 100644 --- a/typesense/import_test.go +++ b/typesense/import_test.go @@ -10,9 +10,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/key.go b/typesense/key.go index 5edcd03..2ca3fbc 100644 --- a/typesense/key.go +++ b/typesense/key.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type KeyInterface interface { diff --git a/typesense/key_test.go b/typesense/key_test.go index 4cdc933..0f91262 100644 --- a/typesense/key_test.go +++ b/typesense/key_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/keys.go b/typesense/keys.go index ca2bf90..6199c5b 100644 --- a/typesense/keys.go +++ b/typesense/keys.go @@ -8,7 +8,7 @@ import ( "encoding/json" "fmt" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type KeysInterface interface { diff --git a/typesense/keys_test.go b/typesense/keys_test.go index 03f4e12..60d722a 100644 --- a/typesense/keys_test.go +++ b/typesense/keys_test.go @@ -9,9 +9,9 @@ import ( "github.com/jinzhu/copier" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/mocks/mock_client.go b/typesense/mocks/mock_client.go index b2ff43c..4b760d9 100644 --- a/typesense/mocks/mock_client.go +++ b/typesense/mocks/mock_client.go @@ -15,7 +15,7 @@ import ( http "net/http" reflect "reflect" - api "github.com/typesense/typesense-go/v3/typesense/api" + api "github.com/typesense/typesense-go/v4/typesense/api" gomock "go.uber.org/mock/gomock" ) diff --git a/typesense/multi_search.go b/typesense/multi_search.go index 2d8e0d9..19e1cf7 100644 --- a/typesense/multi_search.go +++ b/typesense/multi_search.go @@ -6,7 +6,7 @@ import ( "encoding/json" "io" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type MultiSearchInterface interface { diff --git a/typesense/multi_search_test.go b/typesense/multi_search_test.go index f65e59c..27638b1 100644 --- a/typesense/multi_search_test.go +++ b/typesense/multi_search_test.go @@ -10,9 +10,9 @@ import ( "bytes" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/nl_search_model.go b/typesense/nl_search_model.go index b0e6ea7..9bb580b 100644 --- a/typesense/nl_search_model.go +++ b/typesense/nl_search_model.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type NLSearchModelInterface interface { diff --git a/typesense/nl_search_models.go b/typesense/nl_search_models.go index 2e0de70..16619d8 100644 --- a/typesense/nl_search_models.go +++ b/typesense/nl_search_models.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type NLSearchModelsInterface interface { diff --git a/typesense/operations.go b/typesense/operations.go index 0ef9756..f33553d 100644 --- a/typesense/operations.go +++ b/typesense/operations.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type OperationsInterface interface { diff --git a/typesense/operations_test.go b/typesense/operations_test.go index 2608d89..f0db888 100644 --- a/typesense/operations_test.go +++ b/typesense/operations_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/preset.go b/typesense/preset.go index 45c23ed..bae041a 100644 --- a/typesense/preset.go +++ b/typesense/preset.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type PresetInterface interface { diff --git a/typesense/preset_test.go b/typesense/preset_test.go index f776559..67a5af9 100644 --- a/typesense/preset_test.go +++ b/typesense/preset_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestPresetRetrieveAsSearchParameters(t *testing.T) { diff --git a/typesense/presets.go b/typesense/presets.go index df6f701..16d1740 100644 --- a/typesense/presets.go +++ b/typesense/presets.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type PresetsInterface interface { diff --git a/typesense/presets_test.go b/typesense/presets_test.go index eab30ce..16533ad 100644 --- a/typesense/presets_test.go +++ b/typesense/presets_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestPresetsRetrieveAsSearchParameters(t *testing.T) { diff --git a/typesense/search_test.go b/typesense/search_test.go index bac406b..36e487d 100644 --- a/typesense/search_test.go +++ b/typesense/search_test.go @@ -8,9 +8,9 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" - "github.com/typesense/typesense-go/v3/typesense/mocks" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/mocks" "go.uber.org/mock/gomock" ) diff --git a/typesense/stats.go b/typesense/stats.go index 61de910..8274300 100644 --- a/typesense/stats.go +++ b/typesense/stats.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type StatsInterface interface { diff --git a/typesense/stats_test.go b/typesense/stats_test.go index bddb65d..7c9d7e7 100644 --- a/typesense/stats_test.go +++ b/typesense/stats_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestStatsRetrieve(t *testing.T) { diff --git a/typesense/stemming_dictionaries.go b/typesense/stemming_dictionaries.go index e97f981..31676ed 100644 --- a/typesense/stemming_dictionaries.go +++ b/typesense/stemming_dictionaries.go @@ -7,7 +7,7 @@ import ( "io" "net/http" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type StemmingDictionariesInterface interface { diff --git a/typesense/stemming_dictionary.go b/typesense/stemming_dictionary.go index 634f50c..2d47109 100644 --- a/typesense/stemming_dictionary.go +++ b/typesense/stemming_dictionary.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type StemmingDictionaryInterface interface { diff --git a/typesense/stopword.go b/typesense/stopword.go index 8c729a0..07c40a5 100644 --- a/typesense/stopword.go +++ b/typesense/stopword.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type StopwordInterface interface { diff --git a/typesense/stopword_test.go b/typesense/stopword_test.go index 8716b58..9bed995 100644 --- a/typesense/stopword_test.go +++ b/typesense/stopword_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestStopwordRetrieve(t *testing.T) { diff --git a/typesense/stopwords.go b/typesense/stopwords.go index e10409e..e8fdcdd 100644 --- a/typesense/stopwords.go +++ b/typesense/stopwords.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) type StopwordsInterface interface { diff --git a/typesense/stopwords_test.go b/typesense/stopwords_test.go index 9e7a252..e8c25a6 100644 --- a/typesense/stopwords_test.go +++ b/typesense/stopwords_test.go @@ -7,8 +7,8 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestStopwordsRetrieve(t *testing.T) { diff --git a/typesense/synonym_set.go b/typesense/synonym_set.go index a80fb95..f12023f 100644 --- a/typesense/synonym_set.go +++ b/typesense/synonym_set.go @@ -3,7 +3,7 @@ package typesense import ( "context" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // SynonymSetInterface is a type for individual Synonym Set API operations diff --git a/typesense/synonym_sets.go b/typesense/synonym_sets.go index e72b384..9a13db3 100644 --- a/typesense/synonym_sets.go +++ b/typesense/synonym_sets.go @@ -5,7 +5,7 @@ import ( "encoding/json" "fmt" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) // SynonymSetsInterface is a type for Synonym Sets API operations diff --git a/typesense/test/alias_test.go b/typesense/test/alias_test.go index f845733..f72c3a4 100644 --- a/typesense/test/alias_test.go +++ b/typesense/test/alias_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestCollectionAliasRetrieve(t *testing.T) { diff --git a/typesense/test/aliases_test.go b/typesense/test/aliases_test.go index 3e8e195..4ebcdb0 100644 --- a/typesense/test/aliases_test.go +++ b/typesense/test/aliases_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestCollectionAliasUpsertNewAlias(t *testing.T) { diff --git a/typesense/test/analytics_events_test.go b/typesense/test/analytics_events_test.go index 8addc6e..984079a 100644 --- a/typesense/test/analytics_events_test.go +++ b/typesense/test/analytics_events_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func analyticsEventsCleanUp() { diff --git a/typesense/test/analytics_rule_test.go b/typesense/test/analytics_rule_test.go index 5ae3347..251793c 100644 --- a/typesense/test/analytics_rule_test.go +++ b/typesense/test/analytics_rule_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func analyticsRuleCleanUp() { diff --git a/typesense/test/analytics_rules_test.go b/typesense/test/analytics_rules_test.go index 704bb15..17b1968 100644 --- a/typesense/test/analytics_rules_test.go +++ b/typesense/test/analytics_rules_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func analyticsRulesCleanUp() { diff --git a/typesense/test/collection_test.go b/typesense/test/collection_test.go index 5099fc7..74e77da 100644 --- a/typesense/test/collection_test.go +++ b/typesense/test/collection_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestCollectionRetrieve(t *testing.T) { diff --git a/typesense/test/collections_test.go b/typesense/test/collections_test.go index 2866677..a76475a 100644 --- a/typesense/test/collections_test.go +++ b/typesense/test/collections_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestCollectionCreate(t *testing.T) { diff --git a/typesense/test/curation_set_test.go b/typesense/test/curation_set_test.go index bdc9744..31d47d4 100644 --- a/typesense/test/curation_set_test.go +++ b/typesense/test/curation_set_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func curationSetCleanUp() { diff --git a/typesense/test/curation_sets_test.go b/typesense/test/curation_sets_test.go index e5b0509..0d20055 100644 --- a/typesense/test/curation_sets_test.go +++ b/typesense/test/curation_sets_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func curationSetsCleanUp() { diff --git a/typesense/test/dbhelpers_test.go b/typesense/test/dbhelpers_test.go index c51d009..98d1d22 100644 --- a/typesense/test/dbhelpers_test.go +++ b/typesense/test/dbhelpers_test.go @@ -14,8 +14,8 @@ import ( "github.com/google/uuid" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func isV30OrAbove(t *testing.T) bool { diff --git a/typesense/test/doc.go b/typesense/test/doc.go index db787a6..2c5bcfd 100644 --- a/typesense/test/doc.go +++ b/typesense/test/doc.go @@ -1,3 +1,3 @@ // Package test contains integration tests for the -// github.com/typesense/typesense-go/v3/typesense package. +// github.com/typesense/typesense-go/v4/typesense package. package test diff --git a/typesense/test/document_test.go b/typesense/test/document_test.go index 4e09b26..be617ab 100644 --- a/typesense/test/document_test.go +++ b/typesense/test/document_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestDocumentRetrieveGeneric(t *testing.T) { diff --git a/typesense/test/documents_test.go b/typesense/test/documents_test.go index 42ac622..9341fee 100644 --- a/typesense/test/documents_test.go +++ b/typesense/test/documents_test.go @@ -10,8 +10,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestDocumentCreate(t *testing.T) { diff --git a/typesense/test/import_test.go b/typesense/test/import_test.go index 01d3f0e..2ba12c9 100644 --- a/typesense/test/import_test.go +++ b/typesense/test/import_test.go @@ -10,8 +10,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestDocumentsImport(t *testing.T) { diff --git a/typesense/test/keys_test.go b/typesense/test/keys_test.go index 01aea62..be233cb 100644 --- a/typesense/test/keys_test.go +++ b/typesense/test/keys_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestKeyCreate(t *testing.T) { diff --git a/typesense/test/main_test.go b/typesense/test/main_test.go index 7098b2f..f08dc8f 100644 --- a/typesense/test/main_test.go +++ b/typesense/test/main_test.go @@ -8,7 +8,7 @@ import ( "os" "testing" - "github.com/typesense/typesense-go/v3/typesense" + "github.com/typesense/typesense-go/v4/typesense" ) var typesenseClient *typesense.Client diff --git a/typesense/test/multi_search_test.go b/typesense/test/multi_search_test.go index d54f1eb..90912f4 100644 --- a/typesense/test/multi_search_test.go +++ b/typesense/test/multi_search_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestMultiSearch(t *testing.T) { diff --git a/typesense/test/nl_search_model_test.go b/typesense/test/nl_search_model_test.go index e7fba4a..96cc351 100644 --- a/typesense/test/nl_search_model_test.go +++ b/typesense/test/nl_search_model_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func nlSearchModelsCleanUp() { diff --git a/typesense/test/presets_test.go b/typesense/test/presets_test.go index e7a94d2..94cbb83 100644 --- a/typesense/test/presets_test.go +++ b/typesense/test/presets_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func presetsCleanUp() { diff --git a/typesense/test/search_test.go b/typesense/test/search_test.go index 779847f..26b674b 100644 --- a/typesense/test/search_test.go +++ b/typesense/test/search_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestCollectionSearch(t *testing.T) { diff --git a/typesense/test/setupdb_docker_test.go b/typesense/test/setupdb_docker_test.go index f1ad07f..f67b38a 100644 --- a/typesense/test/setupdb_docker_test.go +++ b/typesense/test/setupdb_docker_test.go @@ -13,8 +13,8 @@ import ( "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/wait" - "github.com/typesense/typesense-go/v3/typesense" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense" + "github.com/typesense/typesense-go/v4/typesense/api" ) var typesenseC testcontainers.Container diff --git a/typesense/test/setupdb_test.go b/typesense/test/setupdb_test.go index d25e9f7..b7fbc10 100644 --- a/typesense/test/setupdb_test.go +++ b/typesense/test/setupdb_test.go @@ -9,7 +9,7 @@ import ( "os" "time" - "github.com/typesense/typesense-go/v3/typesense" + "github.com/typesense/typesense-go/v4/typesense" ) func waitHealthyStatus(client *typesense.Client, timeout time.Duration) error { diff --git a/typesense/test/stemming_test.go b/typesense/test/stemming_test.go index d4f73e0..d12e93e 100644 --- a/typesense/test/stemming_test.go +++ b/typesense/test/stemming_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func TestStemmingDictionary(t *testing.T) { diff --git a/typesense/test/stopword_test.go b/typesense/test/stopword_test.go index ed28520..2286700 100644 --- a/typesense/test/stopword_test.go +++ b/typesense/test/stopword_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestStopwordRetrieve(t *testing.T) { diff --git a/typesense/test/stopwords_test.go b/typesense/test/stopwords_test.go index 0736aef..985629a 100644 --- a/typesense/test/stopwords_test.go +++ b/typesense/test/stopwords_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" - "github.com/typesense/typesense-go/v3/typesense/api/pointer" + "github.com/typesense/typesense-go/v4/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api/pointer" ) func TestStopwordsUpsert(t *testing.T) { diff --git a/typesense/test/synonym_set_test.go b/typesense/test/synonym_set_test.go index 4b9b478..e90d222 100644 --- a/typesense/test/synonym_set_test.go +++ b/typesense/test/synonym_set_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func synonymSetCleanUp() { diff --git a/typesense/test/synonym_sets_test.go b/typesense/test/synonym_sets_test.go index b198204..69602dc 100644 --- a/typesense/test/synonym_sets_test.go +++ b/typesense/test/synonym_sets_test.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "github.com/typesense/typesense-go/v3/typesense/api" + "github.com/typesense/typesense-go/v4/typesense/api" ) func synonymSetsCleanUp() {