2020-09-15 07:28:53 +00:00
|
|
|
package models
|
|
|
|
|
2022-04-25 05:55:05 +00:00
|
|
|
type StudioFilterType struct {
|
|
|
|
And *StudioFilterType `json:"AND"`
|
|
|
|
Or *StudioFilterType `json:"OR"`
|
|
|
|
Not *StudioFilterType `json:"NOT"`
|
|
|
|
Name *StringCriterionInput `json:"name"`
|
|
|
|
Details *StringCriterionInput `json:"details"`
|
|
|
|
// Filter to only include studios with this parent studio
|
|
|
|
Parents *MultiCriterionInput `json:"parents"`
|
|
|
|
// Filter by StashID
|
|
|
|
StashID *StringCriterionInput `json:"stash_id"`
|
2022-11-16 23:08:15 +00:00
|
|
|
// Filter by StashID Endpoint
|
|
|
|
StashIDEndpoint *StashIDCriterionInput `json:"stash_id_endpoint"`
|
2022-04-25 05:55:05 +00:00
|
|
|
// Filter to only include studios missing this property
|
|
|
|
IsMissing *string `json:"is_missing"`
|
2022-11-15 22:31:44 +00:00
|
|
|
// Filter by rating expressed as 1-100
|
|
|
|
Rating100 *IntCriterionInput `json:"rating100"`
|
2022-04-25 05:55:05 +00:00
|
|
|
// Filter by scene count
|
|
|
|
SceneCount *IntCriterionInput `json:"scene_count"`
|
|
|
|
// Filter by image count
|
|
|
|
ImageCount *IntCriterionInput `json:"image_count"`
|
|
|
|
// Filter by gallery count
|
|
|
|
GalleryCount *IntCriterionInput `json:"gallery_count"`
|
|
|
|
// Filter by url
|
|
|
|
URL *StringCriterionInput `json:"url"`
|
|
|
|
// Filter by studio aliases
|
|
|
|
Aliases *StringCriterionInput `json:"aliases"`
|
|
|
|
// Filter by autotag ignore value
|
|
|
|
IgnoreAutoTag *bool `json:"ignore_auto_tag"`
|
2022-11-15 00:52:05 +00:00
|
|
|
// Filter by created at
|
|
|
|
CreatedAt *TimestampCriterionInput `json:"created_at"`
|
|
|
|
// Filter by updated at
|
|
|
|
UpdatedAt *TimestampCriterionInput `json:"updated_at"`
|
2022-04-25 05:55:05 +00:00
|
|
|
}
|
2023-09-11 02:24:15 +00:00
|
|
|
|
|
|
|
type StudioCreateInput struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
URL *string `json:"url"`
|
|
|
|
ParentID *string `json:"parent_id"`
|
|
|
|
// This should be a URL or a base64 encoded data URL
|
|
|
|
Image *string `json:"image"`
|
|
|
|
StashIds []StashID `json:"stash_ids"`
|
|
|
|
Rating100 *int `json:"rating100"`
|
|
|
|
Details *string `json:"details"`
|
|
|
|
Aliases []string `json:"aliases"`
|
|
|
|
IgnoreAutoTag *bool `json:"ignore_auto_tag"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type StudioUpdateInput struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Name *string `json:"name"`
|
|
|
|
URL *string `json:"url"`
|
|
|
|
ParentID *string `json:"parent_id"`
|
|
|
|
// This should be a URL or a base64 encoded data URL
|
|
|
|
Image *string `json:"image"`
|
|
|
|
StashIds []StashID `json:"stash_ids"`
|
|
|
|
Rating100 *int `json:"rating100"`
|
|
|
|
Details *string `json:"details"`
|
|
|
|
Aliases []string `json:"aliases"`
|
|
|
|
IgnoreAutoTag *bool `json:"ignore_auto_tag"`
|
|
|
|
}
|