Skip to content

Commit

Permalink
Release v0.0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 24, 2025
1 parent aa90a08 commit bb7f27b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/FlatFilers/flatfile-go")
headers.Set("X-Fern-SDK-Version", "v0.0.19")
headers.Set("X-Fern-SDK-Version", "v0.0.20")
return headers
}

Expand Down
6 changes: 6 additions & 0 deletions snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type CreateSnapshotRequest struct {
SheetId SheetId `json:"sheetId" url:"-"`
// Label for the snapshot
Label *string `json:"label,omitempty" url:"-"`
// ThreadId for the snapshot
ThreadId *string `json:"threadId,omitempty" url:"-"`
}

type GetSnapshotRequest struct {
Expand All @@ -33,6 +35,8 @@ type GetSnapshotRecordsRequest struct {
type ListSnapshotRequest struct {
// ID of sheet
SheetId SheetId `json:"-" url:"sheetId"`
// ThreadId to filter snapshots by
ThreadId *string `json:"-" url:"threadId,omitempty"`
}

// Options to filter records in a snapshot
Expand Down Expand Up @@ -146,6 +150,8 @@ type Snapshot struct {
CreatedAt time.Time `json:"createdAt" url:"createdAt"`
// The actor who created the Snapshot.
CreatedBy UserId `json:"createdBy" url:"createdBy"`
// The ID of the thread associated with the snapshot.
ThreadId *string `json:"threadId,omitempty" url:"threadId,omitempty"`

extraProperties map[string]interface{}
_rawJSON json.RawMessage
Expand Down
2 changes: 2 additions & 0 deletions spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ type ListSpacesRequest struct {
SortDirection *SortDirection `json:"-" url:"sortDirection,omitempty"`
// Flag for collaborative (project) spaces
IsCollaborative *bool `json:"-" url:"isCollaborative,omitempty"`
// Filter by appId
AppId *AppId `json:"-" url:"appId,omitempty"`
// Flag for app templates
IsAppTemplate *bool `json:"-" url:"isAppTemplate,omitempty"`
}
Expand Down

0 comments on commit bb7f27b

Please sign in to comment.