graphql

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FindPerformerByIDQuery = `` /* 846-byte string literal not displayed */
View Source
const FindSceneByFingerprintQuery = `` /* 1530-byte string literal not displayed */
View Source
const FindScenesByFingerprintsQuery = `` /* 1525-byte string literal not displayed */
View Source
const SearchPerformerQuery = `` /* 856-byte string literal not displayed */
View Source
const SearchSceneQuery = `` /* 1472-byte string literal not displayed */
View Source
const SubmitFingerprintQuery = `mutation SubmitFingerprint ($input: FingerprintSubmission!) {
	submitFingerprint(input: $input)
}
`

Variables

Functions

This section is empty.

Types

type ActivateNewUserInput added in v0.7.0

type ActivateNewUserInput struct {
	Name          string `json:"name"`
	Email         string `json:"email"`
	ActivationKey string `json:"activation_key"`
	Password      string `json:"password"`
}

type ApplyEditInput

type ApplyEditInput struct {
	ID string `json:"id"`
}

type BodyModification

type BodyModification struct {
	Location    string  `json:"location"`
	Description *string `json:"description"`
}

type BodyModificationCriterionInput

type BodyModificationCriterionInput struct {
	Location    *string           `json:"location"`
	Description *string           `json:"description"`
	Modifier    CriterionModifier `json:"modifier"`
}

type BodyModificationFragment

type BodyModificationFragment struct {
	Location    string  "json:\"location\" graphql:\"location\""
	Description *string "json:\"description\" graphql:\"description\""
}

type BodyModificationInput

type BodyModificationInput struct {
	Location    string  `json:"location"`
	Description *string `json:"description"`
}

type BreastTypeCriterionInput

type BreastTypeCriterionInput struct {
	Value    *BreastTypeEnum   `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type BreastTypeEnum

type BreastTypeEnum string
const (
	BreastTypeEnumNatural BreastTypeEnum = "NATURAL"
	BreastTypeEnumFake    BreastTypeEnum = "FAKE"
	BreastTypeEnumNa      BreastTypeEnum = "NA"
)

func (BreastTypeEnum) IsValid

func (e BreastTypeEnum) IsValid() bool

func (BreastTypeEnum) MarshalGQL

func (e BreastTypeEnum) MarshalGQL(w io.Writer)

func (BreastTypeEnum) String

func (e BreastTypeEnum) String() string

func (*BreastTypeEnum) UnmarshalGQL

func (e *BreastTypeEnum) UnmarshalGQL(v interface{}) error

type CancelEditInput

type CancelEditInput struct {
	ID string `json:"id"`
}

type Client

type Client struct {
	Client *client.Client
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options ...client.HTTPRequestOption) *Client

func (*Client) FindPerformerByID added in v0.7.0

func (c *Client) FindPerformerByID(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*FindPerformerByID, error)

func (*Client) FindSceneByFingerprint

func (c *Client) FindSceneByFingerprint(ctx context.Context, fingerprint FingerprintQueryInput, httpRequestOptions ...client.HTTPRequestOption) (*FindSceneByFingerprint, error)

func (*Client) FindScenesByFingerprints

func (c *Client) FindScenesByFingerprints(ctx context.Context, fingerprints []string, httpRequestOptions ...client.HTTPRequestOption) (*FindScenesByFingerprints, error)

func (*Client) SearchPerformer added in v0.7.0

func (c *Client) SearchPerformer(ctx context.Context, term string, httpRequestOptions ...client.HTTPRequestOption) (*SearchPerformer, error)

func (*Client) SearchScene

func (c *Client) SearchScene(ctx context.Context, term string, httpRequestOptions ...client.HTTPRequestOption) (*SearchScene, error)

func (*Client) SubmitFingerprint

func (c *Client) SubmitFingerprint(ctx context.Context, input FingerprintSubmission, httpRequestOptions ...client.HTTPRequestOption) (*SubmitFingerprintPayload, error)

type CriterionModifier

type CriterionModifier string
const (
	// =
	CriterionModifierEquals CriterionModifier = "EQUALS"
	// !=
	CriterionModifierNotEquals CriterionModifier = "NOT_EQUALS"
	// >
	CriterionModifierGreaterThan CriterionModifier = "GREATER_THAN"
	// <
	CriterionModifierLessThan CriterionModifier = "LESS_THAN"
	// IS NULL
	CriterionModifierIsNull CriterionModifier = "IS_NULL"
	// IS NOT NULL
	CriterionModifierNotNull CriterionModifier = "NOT_NULL"
	// INCLUDES ALL
	CriterionModifierIncludesAll CriterionModifier = "INCLUDES_ALL"
	CriterionModifierIncludes    CriterionModifier = "INCLUDES"
	CriterionModifierExcludes    CriterionModifier = "EXCLUDES"
)

func (CriterionModifier) IsValid

func (e CriterionModifier) IsValid() bool

func (CriterionModifier) MarshalGQL

func (e CriterionModifier) MarshalGQL(w io.Writer)

func (CriterionModifier) String

func (e CriterionModifier) String() string

func (*CriterionModifier) UnmarshalGQL

func (e *CriterionModifier) UnmarshalGQL(v interface{}) error

type DateAccuracyEnum

type DateAccuracyEnum string
const (
	DateAccuracyEnumYear  DateAccuracyEnum = "YEAR"
	DateAccuracyEnumMonth DateAccuracyEnum = "MONTH"
	DateAccuracyEnumDay   DateAccuracyEnum = "DAY"
)

func (DateAccuracyEnum) IsValid

func (e DateAccuracyEnum) IsValid() bool

func (DateAccuracyEnum) MarshalGQL

func (e DateAccuracyEnum) MarshalGQL(w io.Writer)

func (DateAccuracyEnum) String

func (e DateAccuracyEnum) String() string

func (*DateAccuracyEnum) UnmarshalGQL

func (e *DateAccuracyEnum) UnmarshalGQL(v interface{}) error

type DateCriterionInput

type DateCriterionInput struct {
	Value    string            `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type Edit

type Edit struct {
	ID   string `json:"id"`
	User *User  `json:"user"`
	// Object being edited - null if creating a new object
	Target     EditTarget     `json:"target"`
	TargetType TargetTypeEnum `json:"target_type"`
	// Objects to merge with the target. Only applicable to merges
	MergeSources []EditTarget  `json:"merge_sources"`
	Operation    OperationEnum `json:"operation"`
	Details      EditDetails   `json:"details"`
	// Previous state of fields being modified - null if operation is create or delete.
	OldDetails EditDetails `json:"old_details"`
	// Entity specific options
	Options  *PerformerEditOptions `json:"options"`
	Comments []*EditComment        `json:"comments"`
	Votes    []*VoteComment        `json:"votes"`
	//  = Accepted - Rejected
	VoteCount int            `json:"vote_count"`
	Status    VoteStatusEnum `json:"status"`
	Applied   bool           `json:"applied"`
	Created   time.Time      `json:"created"`
}

type EditComment

type EditComment struct {
	User    *User     `json:"user"`
	Date    time.Time `json:"date"`
	Comment string    `json:"comment"`
}

type EditCommentInput

type EditCommentInput struct {
	ID      string `json:"id"`
	Comment string `json:"comment"`
}

type EditDetails

type EditDetails interface {
	IsEditDetails()
}

type EditFilterType

type EditFilterType struct {
	// Filter by user id
	UserID *string `json:"user_id"`
	// Filter by status
	Status *VoteStatusEnum `json:"status"`
	// Filter by operation
	Operation *OperationEnum `json:"operation"`
	// Filter by vote count
	VoteCount *IntCriterionInput `json:"vote_count"`
	// Filter by applied status
	Applied *bool `json:"applied"`
	// Filter by target type
	TargetType *TargetTypeEnum `json:"target_type"`
	// Filter by target id
	TargetID *string `json:"target_id"`
}

type EditInput

type EditInput struct {
	// Not required for create type
	ID        *string       `json:"id"`
	Operation OperationEnum `json:"operation"`
	// Required for amending an existing edit
	EditID *string `json:"edit_id"`
	// Only required for merge type
	MergeSourceIds []string `json:"merge_source_ids"`
	Comment        *string  `json:"comment"`
}

type EditTarget

type EditTarget interface {
	IsEditTarget()
}

type EditVoteInput

type EditVoteInput struct {
	ID      string       `json:"id"`
	Comment *string      `json:"comment"`
	Type    VoteTypeEnum `json:"type"`
}

type EthnicityEnum

type EthnicityEnum string
const (
	EthnicityEnumCaucasian     EthnicityEnum = "CAUCASIAN"
	EthnicityEnumBlack         EthnicityEnum = "BLACK"
	EthnicityEnumAsian         EthnicityEnum = "ASIAN"
	EthnicityEnumIndian        EthnicityEnum = "INDIAN"
	EthnicityEnumLatin         EthnicityEnum = "LATIN"
	EthnicityEnumMiddleEastern EthnicityEnum = "MIDDLE_EASTERN"
	EthnicityEnumMixed         EthnicityEnum = "MIXED"
	EthnicityEnumOther         EthnicityEnum = "OTHER"
)

func (EthnicityEnum) IsValid

func (e EthnicityEnum) IsValid() bool

func (EthnicityEnum) MarshalGQL

func (e EthnicityEnum) MarshalGQL(w io.Writer)

func (EthnicityEnum) String

func (e EthnicityEnum) String() string

func (*EthnicityEnum) UnmarshalGQL

func (e *EthnicityEnum) UnmarshalGQL(v interface{}) error

type EthnicityFilterEnum added in v0.7.0

type EthnicityFilterEnum string
const (
	EthnicityFilterEnumUnknown       EthnicityFilterEnum = "UNKNOWN"
	EthnicityFilterEnumCaucasian     EthnicityFilterEnum = "CAUCASIAN"
	EthnicityFilterEnumBlack         EthnicityFilterEnum = "BLACK"
	EthnicityFilterEnumAsian         EthnicityFilterEnum = "ASIAN"
	EthnicityFilterEnumIndian        EthnicityFilterEnum = "INDIAN"
	EthnicityFilterEnumLatin         EthnicityFilterEnum = "LATIN"
	EthnicityFilterEnumMiddleEastern EthnicityFilterEnum = "MIDDLE_EASTERN"
	EthnicityFilterEnumMixed         EthnicityFilterEnum = "MIXED"
	EthnicityFilterEnumOther         EthnicityFilterEnum = "OTHER"
)

func (EthnicityFilterEnum) IsValid added in v0.7.0

func (e EthnicityFilterEnum) IsValid() bool

func (EthnicityFilterEnum) MarshalGQL added in v0.7.0

func (e EthnicityFilterEnum) MarshalGQL(w io.Writer)

func (EthnicityFilterEnum) String added in v0.7.0

func (e EthnicityFilterEnum) String() string

func (*EthnicityFilterEnum) UnmarshalGQL added in v0.7.0

func (e *EthnicityFilterEnum) UnmarshalGQL(v interface{}) error

type EyeColorCriterionInput

type EyeColorCriterionInput struct {
	Value    *EyeColorEnum     `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type EyeColorEnum

type EyeColorEnum string
const (
	EyeColorEnumBlue  EyeColorEnum = "BLUE"
	EyeColorEnumBrown EyeColorEnum = "BROWN"
	EyeColorEnumGrey  EyeColorEnum = "GREY"
	EyeColorEnumGreen EyeColorEnum = "GREEN"
	EyeColorEnumHazel EyeColorEnum = "HAZEL"
	EyeColorEnumRed   EyeColorEnum = "RED"
)

func (EyeColorEnum) IsValid

func (e EyeColorEnum) IsValid() bool

func (EyeColorEnum) MarshalGQL

func (e EyeColorEnum) MarshalGQL(w io.Writer)

func (EyeColorEnum) String

func (e EyeColorEnum) String() string

func (*EyeColorEnum) UnmarshalGQL

func (e *EyeColorEnum) UnmarshalGQL(v interface{}) error

type FindPerformerByID added in v0.7.0

type FindPerformerByID struct {
	FindPerformer *PerformerFragment "json:\"findPerformer\" graphql:\"findPerformer\""
}

type FindSceneByFingerprint

type FindSceneByFingerprint struct {
	FindSceneByFingerprint []*SceneFragment "json:\"findSceneByFingerprint\" graphql:\"findSceneByFingerprint\""
}

type FindScenesByFingerprints

type FindScenesByFingerprints struct {
	FindScenesByFingerprints []*SceneFragment "json:\"findScenesByFingerprints\" graphql:\"findScenesByFingerprints\""
}

type Fingerprint

type Fingerprint struct {
	Hash      string               `json:"hash"`
	Algorithm FingerprintAlgorithm `json:"algorithm"`
	Duration  int                  `json:"duration"`
}

type FingerprintAlgorithm

type FingerprintAlgorithm string
const (
	FingerprintAlgorithmMd5    FingerprintAlgorithm = "MD5"
	FingerprintAlgorithmOshash FingerprintAlgorithm = "OSHASH"
	FingerprintAlgorithmPhash  FingerprintAlgorithm = "PHASH"
)

func (FingerprintAlgorithm) IsValid

func (e FingerprintAlgorithm) IsValid() bool

func (FingerprintAlgorithm) MarshalGQL

func (e FingerprintAlgorithm) MarshalGQL(w io.Writer)

func (FingerprintAlgorithm) String

func (e FingerprintAlgorithm) String() string

func (*FingerprintAlgorithm) UnmarshalGQL

func (e *FingerprintAlgorithm) UnmarshalGQL(v interface{}) error

type FingerprintFragment

type FingerprintFragment struct {
	Algorithm FingerprintAlgorithm "json:\"algorithm\" graphql:\"algorithm\""
	Hash      string               "json:\"hash\" graphql:\"hash\""
	Duration  int                  "json:\"duration\" graphql:\"duration\""
}

type FingerprintInput

type FingerprintInput struct {
	Hash      string               `json:"hash"`
	Algorithm FingerprintAlgorithm `json:"algorithm"`
	Duration  int                  `json:"duration"`
}

type FingerprintQueryInput

type FingerprintQueryInput struct {
	Hash      string               `json:"hash"`
	Algorithm FingerprintAlgorithm `json:"algorithm"`
}

type FingerprintSubmission

type FingerprintSubmission struct {
	SceneID     string            `json:"scene_id"`
	Fingerprint *FingerprintInput `json:"fingerprint"`
}

type FuzzyDate

type FuzzyDate struct {
	Date     string           `json:"date"`
	Accuracy DateAccuracyEnum `json:"accuracy"`
}

type FuzzyDateFragment

type FuzzyDateFragment struct {
	Date     string           "json:\"date\" graphql:\"date\""
	Accuracy DateAccuracyEnum "json:\"accuracy\" graphql:\"accuracy\""
}

type FuzzyDateInput

type FuzzyDateInput struct {
	Date     string           `json:"date"`
	Accuracy DateAccuracyEnum `json:"accuracy"`
}

type GenderEnum

type GenderEnum string
const (
	GenderEnumMale              GenderEnum = "MALE"
	GenderEnumFemale            GenderEnum = "FEMALE"
	GenderEnumTransgenderMale   GenderEnum = "TRANSGENDER_MALE"
	GenderEnumTransgenderFemale GenderEnum = "TRANSGENDER_FEMALE"
	GenderEnumIntersex          GenderEnum = "INTERSEX"
)

func (GenderEnum) IsValid

func (e GenderEnum) IsValid() bool

func (GenderEnum) MarshalGQL

func (e GenderEnum) MarshalGQL(w io.Writer)

func (GenderEnum) String

func (e GenderEnum) String() string

func (*GenderEnum) UnmarshalGQL

func (e *GenderEnum) UnmarshalGQL(v interface{}) error

type GenderFilterEnum added in v0.7.0

type GenderFilterEnum string
const (
	GenderFilterEnumUnknown           GenderFilterEnum = "UNKNOWN"
	GenderFilterEnumMale              GenderFilterEnum = "MALE"
	GenderFilterEnumFemale            GenderFilterEnum = "FEMALE"
	GenderFilterEnumTransgenderMale   GenderFilterEnum = "TRANSGENDER_MALE"
	GenderFilterEnumTransgenderFemale GenderFilterEnum = "TRANSGENDER_FEMALE"
	GenderFilterEnumIntersex          GenderFilterEnum = "INTERSEX"
)

func (GenderFilterEnum) IsValid added in v0.7.0

func (e GenderFilterEnum) IsValid() bool

func (GenderFilterEnum) MarshalGQL added in v0.7.0

func (e GenderFilterEnum) MarshalGQL(w io.Writer)

func (GenderFilterEnum) String added in v0.7.0

func (e GenderFilterEnum) String() string

func (*GenderFilterEnum) UnmarshalGQL added in v0.7.0

func (e *GenderFilterEnum) UnmarshalGQL(v interface{}) error

type GrantInviteInput added in v0.7.0

type GrantInviteInput struct {
	UserID string `json:"user_id"`
	Amount int    `json:"amount"`
}

type HairColorCriterionInput

type HairColorCriterionInput struct {
	Value    *HairColorEnum    `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type HairColorEnum

type HairColorEnum string
const (
	HairColorEnumBlonde   HairColorEnum = "BLONDE"
	HairColorEnumBrunette HairColorEnum = "BRUNETTE"
	HairColorEnumBlack    HairColorEnum = "BLACK"
	HairColorEnumRed      HairColorEnum = "RED"
	HairColorEnumAuburn   HairColorEnum = "AUBURN"
	HairColorEnumGrey     HairColorEnum = "GREY"
	HairColorEnumBald     HairColorEnum = "BALD"
	HairColorEnumVarious  HairColorEnum = "VARIOUS"
	HairColorEnumOther    HairColorEnum = "OTHER"
)

func (HairColorEnum) IsValid

func (e HairColorEnum) IsValid() bool

func (HairColorEnum) MarshalGQL

func (e HairColorEnum) MarshalGQL(w io.Writer)

func (HairColorEnum) String

func (e HairColorEnum) String() string

func (*HairColorEnum) UnmarshalGQL

func (e *HairColorEnum) UnmarshalGQL(v interface{}) error

type IDCriterionInput

type IDCriterionInput struct {
	Value    []string          `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type Image

type Image struct {
	ID     string `json:"id"`
	URL    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

type ImageCreateInput

type ImageCreateInput struct {
	URL  *string         `json:"url"`
	File *graphql.Upload `json:"file"`
}

type ImageDestroyInput

type ImageDestroyInput struct {
	ID string `json:"id"`
}

type ImageFragment

type ImageFragment struct {
	ID     string "json:\"id\" graphql:\"id\""
	URL    string "json:\"url\" graphql:\"url\""
	Width  int    "json:\"width\" graphql:\"width\""
	Height int    "json:\"height\" graphql:\"height\""
}

type ImageUpdateInput

type ImageUpdateInput struct {
	ID  string  `json:"id"`
	URL *string `json:"url"`
}

type IntCriterionInput

type IntCriterionInput struct {
	Value    int               `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type Measurements

type Measurements struct {
	CupSize  *string `json:"cup_size"`
	BandSize *int    `json:"band_size"`
	Waist    *int    `json:"waist"`
	Hip      *int    `json:"hip"`
}

type MeasurementsFragment

type MeasurementsFragment struct {
	BandSize *int    "json:\"band_size\" graphql:\"band_size\""
	CupSize  *string "json:\"cup_size\" graphql:\"cup_size\""
	Waist    *int    "json:\"waist\" graphql:\"waist\""
	Hip      *int    "json:\"hip\" graphql:\"hip\""
}

type MeasurementsInput

type MeasurementsInput struct {
	CupSize  *string `json:"cup_size"`
	BandSize *int    `json:"band_size"`
	Waist    *int    `json:"waist"`
	Hip      *int    `json:"hip"`
}

type MultiIDCriterionInput

type MultiIDCriterionInput struct {
	Value    []string          `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type Mutation

type Mutation struct {
	SceneCreate        *Scene       "json:\"sceneCreate\" graphql:\"sceneCreate\""
	SceneUpdate        *Scene       "json:\"sceneUpdate\" graphql:\"sceneUpdate\""
	SceneDestroy       bool         "json:\"sceneDestroy\" graphql:\"sceneDestroy\""
	PerformerCreate    *Performer   "json:\"performerCreate\" graphql:\"performerCreate\""
	PerformerUpdate    *Performer   "json:\"performerUpdate\" graphql:\"performerUpdate\""
	PerformerDestroy   bool         "json:\"performerDestroy\" graphql:\"performerDestroy\""
	StudioCreate       *Studio      "json:\"studioCreate\" graphql:\"studioCreate\""
	StudioUpdate       *Studio      "json:\"studioUpdate\" graphql:\"studioUpdate\""
	StudioDestroy      bool         "json:\"studioDestroy\" graphql:\"studioDestroy\""
	TagCreate          *Tag         "json:\"tagCreate\" graphql:\"tagCreate\""
	TagUpdate          *Tag         "json:\"tagUpdate\" graphql:\"tagUpdate\""
	TagDestroy         bool         "json:\"tagDestroy\" graphql:\"tagDestroy\""
	UserCreate         *User        "json:\"userCreate\" graphql:\"userCreate\""
	UserUpdate         *User        "json:\"userUpdate\" graphql:\"userUpdate\""
	UserDestroy        bool         "json:\"userDestroy\" graphql:\"userDestroy\""
	ImageCreate        *Image       "json:\"imageCreate\" graphql:\"imageCreate\""
	ImageDestroy       bool         "json:\"imageDestroy\" graphql:\"imageDestroy\""
	NewUser            *string      "json:\"newUser\" graphql:\"newUser\""
	ActivateNewUser    *User        "json:\"activateNewUser\" graphql:\"activateNewUser\""
	GenerateInviteCode string       "json:\"generateInviteCode\" graphql:\"generateInviteCode\""
	RescindInviteCode  bool         "json:\"rescindInviteCode\" graphql:\"rescindInviteCode\""
	GrantInvite        int          "json:\"grantInvite\" graphql:\"grantInvite\""
	RevokeInvite       int          "json:\"revokeInvite\" graphql:\"revokeInvite\""
	TagCategoryCreate  *TagCategory "json:\"tagCategoryCreate\" graphql:\"tagCategoryCreate\""
	TagCategoryUpdate  *TagCategory "json:\"tagCategoryUpdate\" graphql:\"tagCategoryUpdate\""
	TagCategoryDestroy bool         "json:\"tagCategoryDestroy\" graphql:\"tagCategoryDestroy\""
	RegenerateAPIKey   string       "json:\"regenerateAPIKey\" graphql:\"regenerateAPIKey\""
	ResetPassword      bool         "json:\"resetPassword\" graphql:\"resetPassword\""
	ChangePassword     bool         "json:\"changePassword\" graphql:\"changePassword\""
	SceneEdit          Edit         "json:\"sceneEdit\" graphql:\"sceneEdit\""
	PerformerEdit      Edit         "json:\"performerEdit\" graphql:\"performerEdit\""
	StudioEdit         Edit         "json:\"studioEdit\" graphql:\"studioEdit\""
	TagEdit            Edit         "json:\"tagEdit\" graphql:\"tagEdit\""
	EditVote           Edit         "json:\"editVote\" graphql:\"editVote\""
	EditComment        Edit         "json:\"editComment\" graphql:\"editComment\""
	ApplyEdit          Edit         "json:\"applyEdit\" graphql:\"applyEdit\""
	CancelEdit         Edit         "json:\"cancelEdit\" graphql:\"cancelEdit\""
	SubmitFingerprint  bool         "json:\"submitFingerprint\" graphql:\"submitFingerprint\""
}

type NewUserInput added in v0.7.0

type NewUserInput struct {
	Email     string  `json:"email"`
	InviteKey *string `json:"invite_key"`
}

type OperationEnum

type OperationEnum string
const (
	OperationEnumCreate  OperationEnum = "CREATE"
	OperationEnumModify  OperationEnum = "MODIFY"
	OperationEnumDestroy OperationEnum = "DESTROY"
	OperationEnumMerge   OperationEnum = "MERGE"
)

func (OperationEnum) IsValid

func (e OperationEnum) IsValid() bool

func (OperationEnum) MarshalGQL

func (e OperationEnum) MarshalGQL(w io.Writer)

func (OperationEnum) String

func (e OperationEnum) String() string

func (*OperationEnum) UnmarshalGQL

func (e *OperationEnum) UnmarshalGQL(v interface{}) error

type Performer

type Performer struct {
	ID             string         `json:"id"`
	Name           string         `json:"name"`
	Disambiguation *string        `json:"disambiguation"`
	Aliases        []string       `json:"aliases"`
	Gender         *GenderEnum    `json:"gender"`
	Urls           []*URL         `json:"urls"`
	Birthdate      *FuzzyDate     `json:"birthdate"`
	Age            *int           `json:"age"`
	Ethnicity      *EthnicityEnum `json:"ethnicity"`
	Country        *string        `json:"country"`
	EyeColor       *EyeColorEnum  `json:"eye_color"`
	HairColor      *HairColorEnum `json:"hair_color"`
	// Height in cm
	Height          *int                `json:"height"`
	Measurements    *Measurements       `json:"measurements"`
	BreastType      *BreastTypeEnum     `json:"breast_type"`
	CareerStartYear *int                `json:"career_start_year"`
	CareerEndYear   *int                `json:"career_end_year"`
	Tattoos         []*BodyModification `json:"tattoos"`
	Piercings       []*BodyModification `json:"piercings"`
	Images          []*Image            `json:"images"`
	Deleted         bool                `json:"deleted"`
	Edits           []*Edit             `json:"edits"`
	SceneCount      int                 `json:"scene_count"`
}

func (Performer) IsEditTarget

func (Performer) IsEditTarget()

type PerformerAppearance

type PerformerAppearance struct {
	Performer *Performer `json:"performer"`
	// Performing as alias
	As *string `json:"as"`
}

type PerformerAppearanceFragment

type PerformerAppearanceFragment struct {
	As        *string           "json:\"as\" graphql:\"as\""
	Performer PerformerFragment "json:\"performer\" graphql:\"performer\""
}

type PerformerAppearanceInput

type PerformerAppearanceInput struct {
	PerformerID string `json:"performer_id"`
	// Performing as alias
	As *string `json:"as"`
}

type PerformerCreateInput

type PerformerCreateInput struct {
	Name            string                   `json:"name"`
	Disambiguation  *string                  `json:"disambiguation"`
	Aliases         []string                 `json:"aliases"`
	Gender          *GenderEnum              `json:"gender"`
	Urls            []*URLInput              `json:"urls"`
	Birthdate       *FuzzyDateInput          `json:"birthdate"`
	Ethnicity       *EthnicityEnum           `json:"ethnicity"`
	Country         *string                  `json:"country"`
	EyeColor        *EyeColorEnum            `json:"eye_color"`
	HairColor       *HairColorEnum           `json:"hair_color"`
	Height          *int                     `json:"height"`
	Measurements    *MeasurementsInput       `json:"measurements"`
	BreastType      *BreastTypeEnum          `json:"breast_type"`
	CareerStartYear *int                     `json:"career_start_year"`
	CareerEndYear   *int                     `json:"career_end_year"`
	Tattoos         []*BodyModificationInput `json:"tattoos"`
	Piercings       []*BodyModificationInput `json:"piercings"`
	ImageIds        []string                 `json:"image_ids"`
}

type PerformerDestroyInput

type PerformerDestroyInput struct {
	ID string `json:"id"`
}

type PerformerEdit

type PerformerEdit struct {
	Name              *string        `json:"name"`
	Disambiguation    *string        `json:"disambiguation"`
	AddedAliases      []string       `json:"added_aliases"`
	RemovedAliases    []string       `json:"removed_aliases"`
	Gender            *GenderEnum    `json:"gender"`
	AddedUrls         []*URL         `json:"added_urls"`
	RemovedUrls       []*URL         `json:"removed_urls"`
	Birthdate         *string        `json:"birthdate"`
	BirthdateAccuracy *string        `json:"birthdate_accuracy"`
	Ethnicity         *EthnicityEnum `json:"ethnicity"`
	Country           *string        `json:"country"`
	EyeColor          *EyeColorEnum  `json:"eye_color"`
	HairColor         *HairColorEnum `json:"hair_color"`
	// Height in cm
	Height           *int                `json:"height"`
	CupSize          *string             `json:"cup_size"`
	BandSize         *int                `json:"band_size"`
	WaistSize        *int                `json:"waist_size"`
	HipSize          *int                `json:"hip_size"`
	BreastType       *BreastTypeEnum     `json:"breast_type"`
	CareerStartYear  *int                `json:"career_start_year"`
	CareerEndYear    *int                `json:"career_end_year"`
	AddedTattoos     []*BodyModification `json:"added_tattoos"`
	RemovedTattoos   []*BodyModification `json:"removed_tattoos"`
	AddedPiercings   []*BodyModification `json:"added_piercings"`
	RemovedPiercings []*BodyModification `json:"removed_piercings"`
	AddedImages      []*Image            `json:"added_images"`
	RemovedImages    []*Image            `json:"removed_images"`
}

func (PerformerEdit) IsEditDetails

func (PerformerEdit) IsEditDetails()

type PerformerEditDetailsInput

type PerformerEditDetailsInput struct {
	Name            *string                  `json:"name"`
	Disambiguation  *string                  `json:"disambiguation"`
	Aliases         []string                 `json:"aliases"`
	Gender          *GenderEnum              `json:"gender"`
	Urls            []*URLInput              `json:"urls"`
	Birthdate       *FuzzyDateInput          `json:"birthdate"`
	Ethnicity       *EthnicityEnum           `json:"ethnicity"`
	Country         *string                  `json:"country"`
	EyeColor        *EyeColorEnum            `json:"eye_color"`
	HairColor       *HairColorEnum           `json:"hair_color"`
	Height          *int                     `json:"height"`
	Measurements    *MeasurementsInput       `json:"measurements"`
	BreastType      *BreastTypeEnum          `json:"breast_type"`
	CareerStartYear *int                     `json:"career_start_year"`
	CareerEndYear   *int                     `json:"career_end_year"`
	Tattoos         []*BodyModificationInput `json:"tattoos"`
	Piercings       []*BodyModificationInput `json:"piercings"`
	ImageIds        []string                 `json:"image_ids"`
}

type PerformerEditInput

type PerformerEditInput struct {
	Edit *EditInput `json:"edit"`
	// Not required for destroy type
	Details *PerformerEditDetailsInput `json:"details"`
	// Controls aliases modification for merges and name modifications
	Options *PerformerEditOptionsInput `json:"options"`
}

type PerformerEditOptions added in v0.7.0

type PerformerEditOptions struct {
	//  Set performer alias on scenes without alias to old name if name is changed
	SetModifyAliases bool `json:"set_modify_aliases"`
	//  Set performer alias on scenes attached to merge sources to old name
	SetMergeAliases bool `json:"set_merge_aliases"`
}

type PerformerEditOptionsInput added in v0.7.0

type PerformerEditOptionsInput struct {
	//  Set performer alias on scenes without alias to old name if name is changed
	SetModifyAliases *bool `json:"set_modify_aliases"`
	//  Set performer alias on scenes attached to merge sources to old name
	SetMergeAliases *bool `json:"set_merge_aliases"`
}

type PerformerFilterType

type PerformerFilterType struct {
	// Searches name and aliases - assumes like query unless quoted
	Names *string `json:"names"`
	// Searches name only - assumes like query unless quoted
	Name *string `json:"name"`
	// Search aliases only - assumes like query unless quoted
	Alias          *string               `json:"alias"`
	Disambiguation *StringCriterionInput `json:"disambiguation"`
	Gender         *GenderFilterEnum     `json:"gender"`
	// Filter to search urls - assumes like query unless quoted
	URL             *string                         `json:"url"`
	Birthdate       *DateCriterionInput             `json:"birthdate"`
	BirthYear       *IntCriterionInput              `json:"birth_year"`
	Age             *IntCriterionInput              `json:"age"`
	Ethnicity       *EthnicityFilterEnum            `json:"ethnicity"`
	Country         *StringCriterionInput           `json:"country"`
	EyeColor        *EyeColorCriterionInput         `json:"eye_color"`
	HairColor       *HairColorCriterionInput        `json:"hair_color"`
	Height          *IntCriterionInput              `json:"height"`
	CupSize         *StringCriterionInput           `json:"cup_size"`
	BandSize        *IntCriterionInput              `json:"band_size"`
	WaistSize       *IntCriterionInput              `json:"waist_size"`
	HipSize         *IntCriterionInput              `json:"hip_size"`
	BreastType      *BreastTypeCriterionInput       `json:"breast_type"`
	CareerStartYear *IntCriterionInput              `json:"career_start_year"`
	CareerEndYear   *IntCriterionInput              `json:"career_end_year"`
	Tattoos         *BodyModificationCriterionInput `json:"tattoos"`
	Piercings       *BodyModificationCriterionInput `json:"piercings"`
}

type PerformerFragment

type PerformerFragment struct {
	ID              string                      "json:\"id\" graphql:\"id\""
	Name            string                      "json:\"name\" graphql:\"name\""
	Disambiguation  *string                     "json:\"disambiguation\" graphql:\"disambiguation\""
	Aliases         []string                    "json:\"aliases\" graphql:\"aliases\""
	Gender          *GenderEnum                 "json:\"gender\" graphql:\"gender\""
	Urls            []*URLFragment              "json:\"urls\" graphql:\"urls\""
	Images          []*ImageFragment            "json:\"images\" graphql:\"images\""
	Birthdate       *FuzzyDateFragment          "json:\"birthdate\" graphql:\"birthdate\""
	Ethnicity       *EthnicityEnum              "json:\"ethnicity\" graphql:\"ethnicity\""
	Country         *string                     "json:\"country\" graphql:\"country\""
	EyeColor        *EyeColorEnum               "json:\"eye_color\" graphql:\"eye_color\""
	HairColor       *HairColorEnum              "json:\"hair_color\" graphql:\"hair_color\""
	Height          *int                        "json:\"height\" graphql:\"height\""
	Measurements    MeasurementsFragment        "json:\"measurements\" graphql:\"measurements\""
	BreastType      *BreastTypeEnum             "json:\"breast_type\" graphql:\"breast_type\""
	CareerStartYear *int                        "json:\"career_start_year\" graphql:\"career_start_year\""
	CareerEndYear   *int                        "json:\"career_end_year\" graphql:\"career_end_year\""
	Tattoos         []*BodyModificationFragment "json:\"tattoos\" graphql:\"tattoos\""
	Piercings       []*BodyModificationFragment "json:\"piercings\" graphql:\"piercings\""
}

type PerformerUpdateInput

type PerformerUpdateInput struct {
	ID              string                   `json:"id"`
	Name            *string                  `json:"name"`
	Disambiguation  *string                  `json:"disambiguation"`
	Aliases         []string                 `json:"aliases"`
	Gender          *GenderEnum              `json:"gender"`
	Urls            []*URLInput              `json:"urls"`
	Birthdate       *FuzzyDateInput          `json:"birthdate"`
	Ethnicity       *EthnicityEnum           `json:"ethnicity"`
	Country         *string                  `json:"country"`
	EyeColor        *EyeColorEnum            `json:"eye_color"`
	HairColor       *HairColorEnum           `json:"hair_color"`
	Height          *int                     `json:"height"`
	Measurements    *MeasurementsInput       `json:"measurements"`
	BreastType      *BreastTypeEnum          `json:"breast_type"`
	CareerStartYear *int                     `json:"career_start_year"`
	CareerEndYear   *int                     `json:"career_end_year"`
	Tattoos         []*BodyModificationInput `json:"tattoos"`
	Piercings       []*BodyModificationInput `json:"piercings"`
	ImageIds        []string                 `json:"image_ids"`
}

type Query

type Query struct {
	FindPerformer            *Performer                   "json:\"findPerformer\" graphql:\"findPerformer\""
	QueryPerformers          QueryPerformersResultType    "json:\"queryPerformers\" graphql:\"queryPerformers\""
	FindStudio               *Studio                      "json:\"findStudio\" graphql:\"findStudio\""
	QueryStudios             QueryStudiosResultType       "json:\"queryStudios\" graphql:\"queryStudios\""
	FindTag                  *Tag                         "json:\"findTag\" graphql:\"findTag\""
	QueryTags                QueryTagsResultType          "json:\"queryTags\" graphql:\"queryTags\""
	FindTagCategory          *TagCategory                 "json:\"findTagCategory\" graphql:\"findTagCategory\""
	QueryTagCategories       QueryTagCategoriesResultType "json:\"queryTagCategories\" graphql:\"queryTagCategories\""
	FindScene                *Scene                       "json:\"findScene\" graphql:\"findScene\""
	FindSceneByFingerprint   []*Scene                     "json:\"findSceneByFingerprint\" graphql:\"findSceneByFingerprint\""
	FindScenesByFingerprints []*Scene                     "json:\"findScenesByFingerprints\" graphql:\"findScenesByFingerprints\""
	QueryScenes              QueryScenesResultType        "json:\"queryScenes\" graphql:\"queryScenes\""
	FindEdit                 *Edit                        "json:\"findEdit\" graphql:\"findEdit\""
	QueryEdits               QueryEditsResultType         "json:\"queryEdits\" graphql:\"queryEdits\""
	FindUser                 *User                        "json:\"findUser\" graphql:\"findUser\""
	QueryUsers               QueryUsersResultType         "json:\"queryUsers\" graphql:\"queryUsers\""
	Me                       *User                        "json:\"me\" graphql:\"me\""
	SearchPerformer          []*Performer                 "json:\"searchPerformer\" graphql:\"searchPerformer\""
	SearchScene              []*Scene                     "json:\"searchScene\" graphql:\"searchScene\""
	Version                  Version                      "json:\"version\" graphql:\"version\""
}

type QueryEditsResultType

type QueryEditsResultType struct {
	Count int     `json:"count"`
	Edits []*Edit `json:"edits"`
}

type QueryPerformersResultType

type QueryPerformersResultType struct {
	Count      int          `json:"count"`
	Performers []*Performer `json:"performers"`
}

type QueryScenesResultType

type QueryScenesResultType struct {
	Count  int      `json:"count"`
	Scenes []*Scene `json:"scenes"`
}

type QuerySpec

type QuerySpec struct {
	Page      *int               `json:"page"`
	PerPage   *int               `json:"per_page"`
	Sort      *string            `json:"sort"`
	Direction *SortDirectionEnum `json:"direction"`
}

type QueryStudiosResultType

type QueryStudiosResultType struct {
	Count   int       `json:"count"`
	Studios []*Studio `json:"studios"`
}

type QueryTagCategoriesResultType added in v0.7.0

type QueryTagCategoriesResultType struct {
	Count         int            `json:"count"`
	TagCategories []*TagCategory `json:"tag_categories"`
}

type QueryTagsResultType

type QueryTagsResultType struct {
	Count int    `json:"count"`
	Tags  []*Tag `json:"tags"`
}

type QueryUsersResultType

type QueryUsersResultType struct {
	Count int     `json:"count"`
	Users []*User `json:"users"`
}

type ResetPasswordInput added in v0.7.0

type ResetPasswordInput struct {
	Email string `json:"email"`
}

type RevokeInviteInput added in v0.7.0

type RevokeInviteInput struct {
	UserID string `json:"user_id"`
	Amount int    `json:"amount"`
}

type RoleCriterionInput

type RoleCriterionInput struct {
	Value    []RoleEnum        `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type RoleEnum

type RoleEnum string
const (
	RoleEnumRead   RoleEnum = "READ"
	RoleEnumVote   RoleEnum = "VOTE"
	RoleEnumEdit   RoleEnum = "EDIT"
	RoleEnumModify RoleEnum = "MODIFY"
	RoleEnumAdmin  RoleEnum = "ADMIN"
	// May generate invites without tokens
	RoleEnumInvite RoleEnum = "INVITE"
	// May grant and rescind invite tokens and resind invite keys
	RoleEnumManageInvites RoleEnum = "MANAGE_INVITES"
)

func (RoleEnum) IsValid

func (e RoleEnum) IsValid() bool

func (RoleEnum) MarshalGQL

func (e RoleEnum) MarshalGQL(w io.Writer)

func (RoleEnum) String

func (e RoleEnum) String() string

func (*RoleEnum) UnmarshalGQL

func (e *RoleEnum) UnmarshalGQL(v interface{}) error

type Scene

type Scene struct {
	ID           string                 `json:"id"`
	Title        *string                `json:"title"`
	Details      *string                `json:"details"`
	Date         *string                `json:"date"`
	Urls         []*URL                 `json:"urls"`
	Studio       *Studio                `json:"studio"`
	Tags         []*Tag                 `json:"tags"`
	Images       []*Image               `json:"images"`
	Performers   []*PerformerAppearance `json:"performers"`
	Fingerprints []*Fingerprint         `json:"fingerprints"`
	Duration     *int                   `json:"duration"`
	Director     *string                `json:"director"`
	Deleted      bool                   `json:"deleted"`
}

func (Scene) IsEditTarget

func (Scene) IsEditTarget()

type SceneCreateInput

type SceneCreateInput struct {
	Title        *string                     `json:"title"`
	Details      *string                     `json:"details"`
	Urls         []*URLInput                 `json:"urls"`
	Date         *string                     `json:"date"`
	StudioID     *string                     `json:"studio_id"`
	Performers   []*PerformerAppearanceInput `json:"performers"`
	TagIds       []string                    `json:"tag_ids"`
	ImageIds     []string                    `json:"image_ids"`
	Fingerprints []*FingerprintInput         `json:"fingerprints"`
	Duration     *int                        `json:"duration"`
	Director     *string                     `json:"director"`
}

type SceneDestroyInput

type SceneDestroyInput struct {
	ID string `json:"id"`
}

type SceneEdit

type SceneEdit struct {
	Title       *string `json:"title"`
	Details     *string `json:"details"`
	AddedUrls   []*URL  `json:"added_urls"`
	RemovedUrls []*URL  `json:"removed_urls"`
	Date        *string `json:"date"`
	StudioID    *string `json:"studio_id"`
	// Added or modified performer appearance entries
	AddedPerformers     []*PerformerAppearance `json:"added_performers"`
	RemovedPerformers   []*PerformerAppearance `json:"removed_performers"`
	AddedTags           []*Tag                 `json:"added_tags"`
	RemovedTags         []*Tag                 `json:"removed_tags"`
	AddedImages         []*Image               `json:"added_images"`
	RemovedImages       []*Image               `json:"removed_images"`
	AddedFingerprints   []*Fingerprint         `json:"added_fingerprints"`
	RemovedFingerprints []*Fingerprint         `json:"removed_fingerprints"`
	Duration            *int                   `json:"duration"`
	Director            *string                `json:"director"`
}

func (SceneEdit) IsEditDetails

func (SceneEdit) IsEditDetails()

type SceneEditDetailsInput

type SceneEditDetailsInput struct {
	Title        *string                     `json:"title"`
	Details      *string                     `json:"details"`
	Urls         []*URLInput                 `json:"urls"`
	Date         *string                     `json:"date"`
	StudioID     *string                     `json:"studio_id"`
	Performers   []*PerformerAppearanceInput `json:"performers"`
	TagIds       []string                    `json:"tag_ids"`
	ImageIds     []string                    `json:"image_ids"`
	Fingerprints []*FingerprintInput         `json:"fingerprints"`
	Duration     *int                        `json:"duration"`
	Director     *string                     `json:"director"`
}

type SceneEditInput

type SceneEditInput struct {
	Edit *EditInput `json:"edit"`
	// Not required for destroy type
	Details  *SceneEditDetailsInput `json:"details"`
	Duration *int                   `json:"duration"`
}

type SceneFilterType

type SceneFilterType struct {
	// Filter to search title and details - assumes like query unless quoted
	Text *string `json:"text"`
	// Filter to search title - assumes like query unless quoted
	Title *string `json:"title"`
	// Filter to search urls - assumes like query unless quoted
	URL *string `json:"url"`
	// Filter by date
	Date *DateCriterionInput `json:"date"`
	// Filter to only include scenes with this studio
	Studios *MultiIDCriterionInput `json:"studios"`
	// Filter to only include scenes with this studio as primary or parent
	ParentStudio *string `json:"parentStudio"`
	// Filter to only include scenes with these tags
	Tags *MultiIDCriterionInput `json:"tags"`
	// Filter to only include scenes with these performers
	Performers *MultiIDCriterionInput `json:"performers"`
	// Filter to include scenes with performer appearing as alias
	Alias *StringCriterionInput `json:"alias"`
}

type SceneFragment

type SceneFragment struct {
	ID           string                         "json:\"id\" graphql:\"id\""
	Title        *string                        "json:\"title\" graphql:\"title\""
	Details      *string                        "json:\"details\" graphql:\"details\""
	Duration     *int                           "json:\"duration\" graphql:\"duration\""
	Date         *string                        "json:\"date\" graphql:\"date\""
	Urls         []*URLFragment                 "json:\"urls\" graphql:\"urls\""
	Images       []*ImageFragment               "json:\"images\" graphql:\"images\""
	Studio       *StudioFragment                "json:\"studio\" graphql:\"studio\""
	Tags         []*TagFragment                 "json:\"tags\" graphql:\"tags\""
	Performers   []*PerformerAppearanceFragment "json:\"performers\" graphql:\"performers\""
	Fingerprints []*FingerprintFragment         "json:\"fingerprints\" graphql:\"fingerprints\""
}

type SceneUpdateInput

type SceneUpdateInput struct {
	ID           string                      `json:"id"`
	Title        *string                     `json:"title"`
	Details      *string                     `json:"details"`
	Urls         []*URLInput                 `json:"urls"`
	Date         *string                     `json:"date"`
	StudioID     *string                     `json:"studio_id"`
	Performers   []*PerformerAppearanceInput `json:"performers"`
	TagIds       []string                    `json:"tag_ids"`
	ImageIds     []string                    `json:"image_ids"`
	Fingerprints []*FingerprintInput         `json:"fingerprints"`
	Duration     *int                        `json:"duration"`
	Director     *string                     `json:"director"`
}

type SearchPerformer added in v0.7.0

type SearchPerformer struct {
	SearchPerformer []*PerformerFragment "json:\"searchPerformer\" graphql:\"searchPerformer\""
}

type SearchScene

type SearchScene struct {
	SearchScene []*SceneFragment "json:\"searchScene\" graphql:\"searchScene\""
}

type SortDirectionEnum

type SortDirectionEnum string
const (
	SortDirectionEnumAsc  SortDirectionEnum = "ASC"
	SortDirectionEnumDesc SortDirectionEnum = "DESC"
)

func (SortDirectionEnum) IsValid

func (e SortDirectionEnum) IsValid() bool

func (SortDirectionEnum) MarshalGQL

func (e SortDirectionEnum) MarshalGQL(w io.Writer)

func (SortDirectionEnum) String

func (e SortDirectionEnum) String() string

func (*SortDirectionEnum) UnmarshalGQL

func (e *SortDirectionEnum) UnmarshalGQL(v interface{}) error

type StringCriterionInput

type StringCriterionInput struct {
	Value    string            `json:"value"`
	Modifier CriterionModifier `json:"modifier"`
}

type Studio

type Studio struct {
	ID           string    `json:"id"`
	Name         string    `json:"name"`
	Urls         []*URL    `json:"urls"`
	Parent       *Studio   `json:"parent"`
	ChildStudios []*Studio `json:"child_studios"`
	Images       []*Image  `json:"images"`
	Deleted      bool      `json:"deleted"`
}

func (Studio) IsEditTarget

func (Studio) IsEditTarget()

type StudioCreateInput

type StudioCreateInput struct {
	Name           string      `json:"name"`
	Urls           []*URLInput `json:"urls"`
	ParentID       *string     `json:"parent_id"`
	ChildStudioIds []string    `json:"child_studio_ids"`
	ImageIds       []string    `json:"image_ids"`
}

type StudioDestroyInput

type StudioDestroyInput struct {
	ID string `json:"id"`
}

type StudioEdit

type StudioEdit struct {
	Name *string `json:"name"`
	// Added and modified URLs
	AddedUrls           []*URL    `json:"added_urls"`
	RemovedUrls         []*URL    `json:"removed_urls"`
	Parent              *Studio   `json:"parent"`
	AddedChildStudios   []*Studio `json:"added_child_studios"`
	RemovedChildStudios []*Studio `json:"removed_child_studios"`
	AddedImages         []*Image  `json:"added_images"`
	RemovedImages       []*Image  `json:"removed_images"`
}

func (StudioEdit) IsEditDetails

func (StudioEdit) IsEditDetails()

type StudioEditDetailsInput

type StudioEditDetailsInput struct {
	Name           *string     `json:"name"`
	Urls           []*URLInput `json:"urls"`
	ParentID       *string     `json:"parent_id"`
	ChildStudioIds []string    `json:"child_studio_ids"`
	ImageIds       []string    `json:"image_ids"`
}

type StudioEditInput

type StudioEditInput struct {
	Edit *EditInput `json:"edit"`
	// Not required for destroy type
	Details *StudioEditDetailsInput `json:"details"`
}

type StudioFilterType

type StudioFilterType struct {
	// Filter to search name - assumes like query unless quoted
	Name *string `json:"name"`
	// Filter to search studio and parent studio name - assumes like query unless quoted
	Names *string `json:"names"`
	// Filter to search url - assumes like query unless quoted
	URL       *string           `json:"url"`
	Parent    *IDCriterionInput `json:"parent"`
	HasParent *bool             `json:"has_parent"`
}

type StudioFragment

type StudioFragment struct {
	Name   string           "json:\"name\" graphql:\"name\""
	ID     string           "json:\"id\" graphql:\"id\""
	Urls   []*URLFragment   "json:\"urls\" graphql:\"urls\""
	Images []*ImageFragment "json:\"images\" graphql:\"images\""
}

type StudioUpdateInput

type StudioUpdateInput struct {
	ID             string      `json:"id"`
	Name           *string     `json:"name"`
	Urls           []*URLInput `json:"urls"`
	ParentID       *string     `json:"parent_id"`
	ChildStudioIds []string    `json:"child_studio_ids"`
	ImageIds       []string    `json:"image_ids"`
}

type SubmitFingerprintPayload

type SubmitFingerprintPayload struct {
	SubmitFingerprint bool "json:\"submitFingerprint\" graphql:\"submitFingerprint\""
}

type Tag

type Tag struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	Description *string      `json:"description"`
	Aliases     []string     `json:"aliases"`
	Deleted     bool         `json:"deleted"`
	Edits       []*Edit      `json:"edits"`
	Category    *TagCategory `json:"category"`
}

func (Tag) IsEditTarget

func (Tag) IsEditTarget()

type TagCategory added in v0.7.0

type TagCategory struct {
	ID          string       `json:"id"`
	Name        string       `json:"name"`
	Group       TagGroupEnum `json:"group"`
	Description *string      `json:"description"`
}

type TagCategoryCreateInput added in v0.7.0

type TagCategoryCreateInput struct {
	Name        string       `json:"name"`
	Group       TagGroupEnum `json:"group"`
	Description *string      `json:"description"`
}

type TagCategoryDestroyInput added in v0.7.0

type TagCategoryDestroyInput struct {
	ID string `json:"id"`
}

type TagCategoryUpdateInput added in v0.7.0

type TagCategoryUpdateInput struct {
	ID          string        `json:"id"`
	Name        *string       `json:"name"`
	Group       *TagGroupEnum `json:"group"`
	Description *string       `json:"description"`
}

type TagCreateInput

type TagCreateInput struct {
	Name        string   `json:"name"`
	Description *string  `json:"description"`
	Aliases     []string `json:"aliases"`
	CategoryID  *string  `json:"category_id"`
}

type TagDestroyInput

type TagDestroyInput struct {
	ID string `json:"id"`
}

type TagEdit

type TagEdit struct {
	Name           *string  `json:"name"`
	Description    *string  `json:"description"`
	AddedAliases   []string `json:"added_aliases"`
	RemovedAliases []string `json:"removed_aliases"`
	CategoryID     *string  `json:"category_id"`
}

func (TagEdit) IsEditDetails

func (TagEdit) IsEditDetails()

type TagEditDetailsInput

type TagEditDetailsInput struct {
	Name        *string  `json:"name"`
	Description *string  `json:"description"`
	Aliases     []string `json:"aliases"`
	CategoryID  *string  `json:"category_id"`
}

type TagEditInput

type TagEditInput struct {
	Edit *EditInput `json:"edit"`
	// Not required for destroy type
	Details *TagEditDetailsInput `json:"details"`
}

type TagFilterType

type TagFilterType struct {
	// Filter to search name, aliases and description - assumes like query unless quoted
	Text *string `json:"text"`
	// Searches name and aliases - assumes like query unless quoted
	Names *string `json:"names"`
	// Filter to search name - assumes like query unless quoted
	Name *string `json:"name"`
	// Filter to category ID
	CategoryID *string `json:"category_id"`
}

type TagFragment

type TagFragment struct {
	Name string "json:\"name\" graphql:\"name\""
	ID   string "json:\"id\" graphql:\"id\""
}

type TagGroupEnum added in v0.7.0

type TagGroupEnum string
const (
	TagGroupEnumPeople TagGroupEnum = "PEOPLE"
	TagGroupEnumScene  TagGroupEnum = "SCENE"
	TagGroupEnumAction TagGroupEnum = "ACTION"
)

func (TagGroupEnum) IsValid added in v0.7.0

func (e TagGroupEnum) IsValid() bool

func (TagGroupEnum) MarshalGQL added in v0.7.0

func (e TagGroupEnum) MarshalGQL(w io.Writer)

func (TagGroupEnum) String added in v0.7.0

func (e TagGroupEnum) String() string

func (*TagGroupEnum) UnmarshalGQL added in v0.7.0

func (e *TagGroupEnum) UnmarshalGQL(v interface{}) error

type TagUpdateInput

type TagUpdateInput struct {
	ID          string   `json:"id"`
	Name        *string  `json:"name"`
	Description *string  `json:"description"`
	Aliases     []string `json:"aliases"`
	CategoryID  *string  `json:"category_id"`
}

type TargetTypeEnum

type TargetTypeEnum string
const (
	TargetTypeEnumScene     TargetTypeEnum = "SCENE"
	TargetTypeEnumStudio    TargetTypeEnum = "STUDIO"
	TargetTypeEnumPerformer TargetTypeEnum = "PERFORMER"
	TargetTypeEnumTag       TargetTypeEnum = "TAG"
)

func (TargetTypeEnum) IsValid

func (e TargetTypeEnum) IsValid() bool

func (TargetTypeEnum) MarshalGQL

func (e TargetTypeEnum) MarshalGQL(w io.Writer)

func (TargetTypeEnum) String

func (e TargetTypeEnum) String() string

func (*TargetTypeEnum) UnmarshalGQL

func (e *TargetTypeEnum) UnmarshalGQL(v interface{}) error

type URL

type URL struct {
	URL  string `json:"url"`
	Type string `json:"type"`
}

type URLFragment

type URLFragment struct {
	URL  string "json:\"url\" graphql:\"url\""
	Type string "json:\"type\" graphql:\"type\""
}

type URLInput

type URLInput struct {
	URL  string `json:"url"`
	Type string `json:"type"`
}

type User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	// Should not be visible to other users
	Roles []RoleEnum `json:"roles"`
	// Should not be visible to other users
	Email *string `json:"email"`
	// Should not be visible to other users
	APIKey            *string `json:"api_key"`
	SuccessfulEdits   int     `json:"successful_edits"`
	UnsuccessfulEdits int     `json:"unsuccessful_edits"`
	SuccessfulVotes   int     `json:"successful_votes"`
	// Votes on unsuccessful edits
	UnsuccessfulVotes int `json:"unsuccessful_votes"`
	// Calls to the API from this user over a configurable time period
	APICalls          int      `json:"api_calls"`
	InvitedBy         *User    `json:"invited_by"`
	InviteTokens      *int     `json:"invite_tokens"`
	ActiveInviteCodes []string `json:"active_invite_codes"`
}

type UserChangePasswordInput

type UserChangePasswordInput struct {
	// Password in plain text
	ExistingPassword *string `json:"existing_password"`
	NewPassword      string  `json:"new_password"`
	ResetKey         *string `json:"reset_key"`
}

type UserCreateInput

type UserCreateInput struct {
	Name string `json:"name"`
	// Password in plain text
	Password    string     `json:"password"`
	Roles       []RoleEnum `json:"roles"`
	Email       string     `json:"email"`
	InvitedByID *string    `json:"invited_by_id"`
}

type UserDestroyInput

type UserDestroyInput struct {
	ID string `json:"id"`
}

type UserFilterType

type UserFilterType struct {
	// Filter to search user name - assumes like query unless quoted
	Name *string `json:"name"`
	// Filter to search email - assumes like query unless quoted
	Email *string `json:"email"`
	// Filter by roles
	Roles *RoleCriterionInput `json:"roles"`
	// Filter by api key
	APIKey *string `json:"apiKey"`
	// Filter by successful edits
	SuccessfulEdits *IntCriterionInput `json:"successful_edits"`
	// Filter by unsuccessful edits
	UnsuccessfulEdits *IntCriterionInput `json:"unsuccessful_edits"`
	// Filter by votes on successful edits
	SuccessfulVotes *IntCriterionInput `json:"successful_votes"`
	// Filter by votes on unsuccessful edits
	UnsuccessfulVotes *IntCriterionInput `json:"unsuccessful_votes"`
	// Filter by number of API calls
	APICalls *IntCriterionInput `json:"api_calls"`
	// Filter by user that invited
	InvitedBy *string `json:"invited_by"`
}

type UserUpdateInput

type UserUpdateInput struct {
	ID   string  `json:"id"`
	Name *string `json:"name"`
	// Password in plain text
	Password *string    `json:"password"`
	Roles    []RoleEnum `json:"roles"`
	Email    *string    `json:"email"`
}

type Version

type Version struct {
	Hash      string `json:"hash"`
	BuildTime string `json:"build_time"`
	Version   string `json:"version"`
}

type VoteComment

type VoteComment struct {
	User    *User         `json:"user"`
	Date    *string       `json:"date"`
	Comment *string       `json:"comment"`
	Type    *VoteTypeEnum `json:"type"`
}

type VoteStatusEnum

type VoteStatusEnum string
const (
	VoteStatusEnumAccepted          VoteStatusEnum = "ACCEPTED"
	VoteStatusEnumRejected          VoteStatusEnum = "REJECTED"
	VoteStatusEnumPending           VoteStatusEnum = "PENDING"
	VoteStatusEnumImmediateAccepted VoteStatusEnum = "IMMEDIATE_ACCEPTED"
	VoteStatusEnumImmediateRejected VoteStatusEnum = "IMMEDIATE_REJECTED"
)

func (VoteStatusEnum) IsValid

func (e VoteStatusEnum) IsValid() bool

func (VoteStatusEnum) MarshalGQL

func (e VoteStatusEnum) MarshalGQL(w io.Writer)

func (VoteStatusEnum) String

func (e VoteStatusEnum) String() string

func (*VoteStatusEnum) UnmarshalGQL

func (e *VoteStatusEnum) UnmarshalGQL(v interface{}) error

type VoteTypeEnum

type VoteTypeEnum string
const (
	VoteTypeEnumComment VoteTypeEnum = "COMMENT"
	VoteTypeEnumAccept  VoteTypeEnum = "ACCEPT"
	VoteTypeEnumReject  VoteTypeEnum = "REJECT"
	// Immediately accepts the edit - bypassing the vote
	VoteTypeEnumImmediateAccept VoteTypeEnum = "IMMEDIATE_ACCEPT"
	// Immediately rejects the edit - bypassing the vote
	VoteTypeEnumImmediateReject VoteTypeEnum = "IMMEDIATE_REJECT"
)

func (VoteTypeEnum) IsValid

func (e VoteTypeEnum) IsValid() bool

func (VoteTypeEnum) MarshalGQL

func (e VoteTypeEnum) MarshalGQL(w io.Writer)

func (VoteTypeEnum) String

func (e VoteTypeEnum) String() string

func (*VoteTypeEnum) UnmarshalGQL

func (e *VoteTypeEnum) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL