Skip to content

Commit

Permalink
Merge pull request #99 from fingerprintjs/changeset-release/main
Browse files Browse the repository at this point in the history
Release [changeset] (test)
  • Loading branch information
TheUnderScorer authored Sep 27, 2024
2 parents c53d7c2 + 7a20900 commit 5c1de1b
Show file tree
Hide file tree
Showing 25 changed files with 171 additions and 190 deletions.
8 changes: 7 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
"initialVersions": {
"fingerprint-pro-server-api-go-sdk": "6.1.0"
},
"changesets": []
"changesets": [
"angry-crabs-roll",
"cuddly-wasps-try",
"sour-moose-exist",
"tough-roses-grow",
"wild-oranges-feel"
]
}
269 changes: 122 additions & 147 deletions CHANGELOG.md

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Fingerprint Pro Server API allows you to get information about visitors and abou
This Go package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 3
- Package version: 6.1.0
- Package version: 7.0.0-test.0
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

## Requirements
Expand All @@ -35,7 +35,7 @@ We keep the [Go support policy](https://go.dev/doc/devel/release) and support th

1. Get the package from GitHub:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk
```

2. Import and use the library:
Expand All @@ -46,7 +46,7 @@ package main
import (
"context"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"log"
)

Expand Down Expand Up @@ -97,7 +97,7 @@ If your subscription is in region other than US, you need to change the region i
```go
import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
)
func main() {
Expand All @@ -112,7 +112,7 @@ func main() {
This SDK provides utility methods for decoding [sealed results](https://dev.fingerprint.com/docs/sealed-client-results).
Install the sealed results dependency as below:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed
```
Then you can use below code to unseal results:
```go
Expand All @@ -121,7 +121,7 @@ package main
import (
"encoding/base64"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed"
"os"
)

Expand Down Expand Up @@ -163,15 +163,15 @@ func main() {
This SDK provides utility method for verifing the HMAC signature of the incoming [webhook](https://dev.fingerprint.com/docs/webhooks) request.
Install the webhook dependency as below:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook
```

Then you can use below code to verify signature:
```go
package main

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packageVersion": "6.1.0",
"packageVersion": "7.0.0-test.0",
"gitRepoId": "fingerprint-pro-server-api-go-sdk",
"gitUserId": "fingerprintjs",
"packageName": "sdk",
Expand Down
2 changes: 1 addition & 1 deletion example/deleteVisit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"context"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"log"
"os"

Expand Down
2 changes: 1 addition & 1 deletion example/getEvent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"os"

"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/joho/godotenv"
)

Expand Down
2 changes: 1 addition & 1 deletion example/getVisits.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"log"
"os"

Expand Down
2 changes: 1 addition & 1 deletion example/sealedResults.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed"
"github.com/joho/godotenv"
"log"
"os"
Expand Down
2 changes: 1 addition & 1 deletion example/updateEvent.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"os"

"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/joho/godotenv"
)

Expand Down
2 changes: 1 addition & 1 deletion example/webhookSignature.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook"
"log"
)

Expand Down
2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"path/filepath"
"strings"

"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config"
)

var files = []string{"README.md", "docs", ".swagger-codegen"}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6
module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7

go 1.21
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fingerprint-pro-server-api-go-sdk",
"version": "6.1.0",
"version": "7.0.0-test.0",
"private": true,
"devDependencies": {
"@changesets/cli": "^2.27.8",
Expand Down
2 changes: 1 addition & 1 deletion sdk/api_fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
)

const IntegrationInfo = "fingerprint-pro-server-go-sdk/6.1.0"
const IntegrationInfo = "fingerprint-pro-server-go-sdk/7.0.0-test.0"

type FingerprintApiServiceInterface interface {
/*
Expand Down
2 changes: 1 addition & 1 deletion sdk/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (c *Configuration) AddDefaultHeader(key string, value string) {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "Swagger-Codegen/6.1.0/go",
UserAgent: "Swagger-Codegen/7.0.0-test.0/go",
region: RegionUS,
}
cfg.basePath = resolveBasePath(cfg.region)
Expand Down
2 changes: 1 addition & 1 deletion sdk/sealed/unseal.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"crypto/cipher"
"encoding/json"
"errors"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"io"
)

Expand Down
14 changes: 7 additions & 7 deletions template/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ We keep the [Go support policy](https://go.dev/doc/devel/release) and support th

1. Get the package from GitHub:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk
```

2. Import and use the library:
Expand All @@ -54,7 +54,7 @@ package main
import (
"context"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"log"
)

Expand Down Expand Up @@ -105,7 +105,7 @@ If your subscription is in region other than US, you need to change the region i
```go

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
)

func main() {
Expand All @@ -120,7 +120,7 @@ func main() {
This SDK provides utility methods for decoding [sealed results](https://dev.fingerprint.com/docs/sealed-client-results).
Install the sealed results dependency as below:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed
```
Then you can use below code to unseal results:
```go
Expand All @@ -129,7 +129,7 @@ package main
import (
"encoding/base64"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed"
"os"
)

Expand Down Expand Up @@ -171,15 +171,15 @@ func main() {
This SDK provides utility method for verifing the HMAC signature of the incoming [webhook](https://dev.fingerprint.com/docs/webhooks) request.
Install the webhook dependency as below:
```shell
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook
go get github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook
```

Then you can use below code to verify signature:
```go
package main

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions test/DeleteVisitorData_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
Expand Down
4 changes: 2 additions & 2 deletions test/GetEvent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"log"
"net/http"
Expand Down
4 changes: 2 additions & 2 deletions test/GetVisits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"log"
"net/http"
Expand Down
2 changes: 1 addition & 1 deletion test/Region_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
4 changes: 2 additions & 2 deletions test/Unseal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/base64"
"encoding/json"
"errors"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/sealed"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/sealed"
"github.com/stretchr/testify/assert"
"reflect"
"testing"
Expand Down
4 changes: 2 additions & 2 deletions test/UpdateEvent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/config"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"
Expand Down
2 changes: 1 addition & 1 deletion test/api_fingerprint_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
4 changes: 2 additions & 2 deletions test/webhook_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package test

import (
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6/sdk/webhook"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk"
"github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v7/sdk/webhook"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down

0 comments on commit 5c1de1b

Please sign in to comment.