-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0292ac1
commit 8c4514b
Showing
5 changed files
with
576 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
// This file was auto-generated by Fern from our API Definition. | ||
|
||
package api | ||
|
||
import ( | ||
json "encoding/json" | ||
fmt "fmt" | ||
core "github.com/FlatFilers/flatfile-go/core" | ||
) | ||
|
||
type ListViewsRequest struct { | ||
// The associated sheet ID of the view. | ||
SheetId SheetId `json:"-" url:"sheetId"` | ||
} | ||
|
||
// View ID | ||
type ViewId = string | ||
|
||
type ListViewsResponse struct { | ||
Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"` | ||
Data []*View `json:"data,omitempty" url:"data,omitempty"` | ||
|
||
_rawJSON json.RawMessage | ||
} | ||
|
||
func (l *ListViewsResponse) UnmarshalJSON(data []byte) error { | ||
type unmarshaler ListViewsResponse | ||
var value unmarshaler | ||
if err := json.Unmarshal(data, &value); err != nil { | ||
return err | ||
} | ||
*l = ListViewsResponse(value) | ||
l._rawJSON = json.RawMessage(data) | ||
return nil | ||
} | ||
|
||
func (l *ListViewsResponse) String() string { | ||
if len(l._rawJSON) > 0 { | ||
if value, err := core.StringifyJSON(l._rawJSON); err == nil { | ||
return value | ||
} | ||
} | ||
if value, err := core.StringifyJSON(l); err == nil { | ||
return value | ||
} | ||
return fmt.Sprintf("%#v", l) | ||
} | ||
|
||
type ViewCreate struct { | ||
SheetId SheetId `json:"sheetId" url:"sheetId"` | ||
Name string `json:"name" url:"name"` | ||
Config *ViewConfig `json:"config,omitempty" url:"config,omitempty"` | ||
|
||
_rawJSON json.RawMessage | ||
} | ||
|
||
func (v *ViewCreate) UnmarshalJSON(data []byte) error { | ||
type unmarshaler ViewCreate | ||
var value unmarshaler | ||
if err := json.Unmarshal(data, &value); err != nil { | ||
return err | ||
} | ||
*v = ViewCreate(value) | ||
v._rawJSON = json.RawMessage(data) | ||
return nil | ||
} | ||
|
||
func (v *ViewCreate) String() string { | ||
if len(v._rawJSON) > 0 { | ||
if value, err := core.StringifyJSON(v._rawJSON); err == nil { | ||
return value | ||
} | ||
} | ||
if value, err := core.StringifyJSON(v); err == nil { | ||
return value | ||
} | ||
return fmt.Sprintf("%#v", v) | ||
} | ||
|
||
type ViewResponse struct { | ||
Data *View `json:"data,omitempty" url:"data,omitempty"` | ||
|
||
_rawJSON json.RawMessage | ||
} | ||
|
||
func (v *ViewResponse) UnmarshalJSON(data []byte) error { | ||
type unmarshaler ViewResponse | ||
var value unmarshaler | ||
if err := json.Unmarshal(data, &value); err != nil { | ||
return err | ||
} | ||
*v = ViewResponse(value) | ||
v._rawJSON = json.RawMessage(data) | ||
return nil | ||
} | ||
|
||
func (v *ViewResponse) String() string { | ||
if len(v._rawJSON) > 0 { | ||
if value, err := core.StringifyJSON(v._rawJSON); err == nil { | ||
return value | ||
} | ||
} | ||
if value, err := core.StringifyJSON(v); err == nil { | ||
return value | ||
} | ||
return fmt.Sprintf("%#v", v) | ||
} | ||
|
||
type ViewUpdate struct { | ||
Name *string `json:"name,omitempty" url:"name,omitempty"` | ||
Config *ViewConfig `json:"config,omitempty" url:"config,omitempty"` | ||
|
||
_rawJSON json.RawMessage | ||
} | ||
|
||
func (v *ViewUpdate) UnmarshalJSON(data []byte) error { | ||
type unmarshaler ViewUpdate | ||
var value unmarshaler | ||
if err := json.Unmarshal(data, &value); err != nil { | ||
return err | ||
} | ||
*v = ViewUpdate(value) | ||
v._rawJSON = json.RawMessage(data) | ||
return nil | ||
} | ||
|
||
func (v *ViewUpdate) String() string { | ||
if len(v._rawJSON) > 0 { | ||
if value, err := core.StringifyJSON(v._rawJSON); err == nil { | ||
return value | ||
} | ||
} | ||
if value, err := core.StringifyJSON(v); err == nil { | ||
return value | ||
} | ||
return fmt.Sprintf("%#v", v) | ||
} |
Oops, something went wrong.