initial commit: applephotos CLI with progress, cloud status, per-asset export
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
package photos
|
||||
|
||||
type Album struct {
|
||||
ID string `json:"id"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
|
||||
type Asset struct {
|
||||
ID string `json:"id"`
|
||||
Filename string `json:"filename"`
|
||||
Cloud bool `json:"cloud"`
|
||||
}
|
||||
|
||||
type ExportResult struct {
|
||||
Filename string `json:"filename"`
|
||||
Size int64 `json:"size"`
|
||||
Cloud string `json:"cloud"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
type CollectionNode struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Kind string `json:"kind"`
|
||||
Children []CollectionNode `json:"children,omitempty"`
|
||||
}
|
||||
|
||||
type AlbumsResponse struct {
|
||||
Albums []Album `json:"albums"`
|
||||
}
|
||||
|
||||
type AssetsResponse struct {
|
||||
Assets []Asset `json:"assets"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
type TreeResponse struct {
|
||||
Collections []CollectionNode `json:"collections"`
|
||||
}
|
||||
|
||||
type ErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
type ExportResultResponse struct {
|
||||
ExportResult
|
||||
}
|
||||
Reference in New Issue
Block a user