2019-12-16 04:30:25 +00:00
|
|
|
const siteFragment = `
|
2020-06-27 22:15:13 +00:00
|
|
|
entity {
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-07-08 00:53:46 +00:00
|
|
|
hasLogo
|
2020-06-27 22:15:13 +00:00
|
|
|
parent {
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-07-08 00:53:46 +00:00
|
|
|
hasLogo
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-02 23:59:02 +00:00
|
|
|
const sitesFragment = `
|
2020-06-27 22:15:13 +00:00
|
|
|
entities {
|
2020-01-02 23:59:02 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-07-08 00:53:46 +00:00
|
|
|
hasLogo
|
2020-06-27 22:15:13 +00:00
|
|
|
parent {
|
2020-01-02 23:59:02 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
2020-06-27 22:15:13 +00:00
|
|
|
type
|
2020-07-02 02:04:28 +00:00
|
|
|
independent
|
2020-07-08 00:53:46 +00:00
|
|
|
hasLogo
|
2020-01-02 23:59:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-03-24 00:52:27 +00:00
|
|
|
const actorStashesFields = `
|
|
|
|
isStashed
|
|
|
|
isFavorited
|
|
|
|
stashes: stashesActors(
|
|
|
|
filter: {
|
|
|
|
stash: {
|
|
|
|
userId: {
|
|
|
|
equalTo: $userId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
) @include(if: $hasAuth) {
|
|
|
|
stash {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
primary
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
const actorFields = `
|
2019-12-16 04:30:25 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2020-05-15 02:40:59 +00:00
|
|
|
birthdate: dateOfBirth
|
2019-12-16 04:30:25 +00:00
|
|
|
age
|
2020-12-17 02:48:38 +00:00
|
|
|
ageFromBirth
|
|
|
|
dateOfBirth
|
2020-01-25 01:29:49 +00:00
|
|
|
gender
|
2020-05-17 03:24:46 +00:00
|
|
|
avatar: avatarMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2021-02-24 02:56:20 +00:00
|
|
|
isS3
|
2020-05-25 00:02:28 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
}
|
2020-05-17 03:24:46 +00:00
|
|
|
}
|
2021-02-16 02:37:52 +00:00
|
|
|
entity {
|
2020-03-27 03:39:13 +00:00
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
2020-06-28 20:29:18 +00:00
|
|
|
birthCountry: countryByBirthCountryAlpha2 {
|
2019-12-16 04:30:25 +00:00
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2021-03-24 00:52:27 +00:00
|
|
|
${actorStashesFields}
|
2020-03-09 04:06:37 +00:00
|
|
|
`;
|
|
|
|
|
2021-08-21 22:40:22 +00:00
|
|
|
const movieFields = `
|
|
|
|
id
|
|
|
|
title
|
|
|
|
url
|
|
|
|
slug
|
|
|
|
date
|
|
|
|
datePrecision
|
|
|
|
actors {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
entity {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
type
|
|
|
|
}
|
|
|
|
}
|
2022-01-29 22:49:59 +00:00
|
|
|
covers: moviesCovers(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) {
|
2021-08-21 22:40:22 +00:00
|
|
|
media {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
width
|
|
|
|
height
|
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
|
|
|
isS3
|
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
comment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-11 22:05:45 +00:00
|
|
|
isFavorited
|
|
|
|
isStashed(includeFavorites: false)
|
|
|
|
stashes: stashesMovies(
|
|
|
|
filter: {
|
|
|
|
stash: {
|
|
|
|
userId: {
|
|
|
|
equalTo: $userId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
) @include(if: $hasAuth) {
|
|
|
|
stash {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
primary
|
|
|
|
}
|
|
|
|
}
|
2021-08-21 22:40:22 +00:00
|
|
|
`;
|
|
|
|
|
2021-06-27 22:05:24 +00:00
|
|
|
const campaignsFragment = `
|
|
|
|
campaigns(filter: {
|
2021-06-28 00:50:06 +00:00
|
|
|
or: [
|
|
|
|
{
|
|
|
|
banner: {
|
|
|
|
bannersTagsConnection: {
|
|
|
|
none: {
|
|
|
|
tag: {
|
|
|
|
slug: {
|
|
|
|
in: $exclude
|
|
|
|
}
|
|
|
|
}
|
2021-06-27 22:05:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-28 00:50:06 +00:00
|
|
|
{
|
|
|
|
bannerExists: false
|
|
|
|
}
|
|
|
|
]
|
2021-06-27 22:05:24 +00:00
|
|
|
}) {
|
2021-06-28 00:50:06 +00:00
|
|
|
id
|
|
|
|
url
|
2021-07-05 22:01:44 +00:00
|
|
|
affiliate {
|
|
|
|
id
|
|
|
|
url
|
2021-07-11 23:41:18 +00:00
|
|
|
parameters
|
2021-07-05 22:01:44 +00:00
|
|
|
}
|
2021-06-27 22:05:24 +00:00
|
|
|
banner {
|
|
|
|
id
|
2021-07-04 22:06:18 +00:00
|
|
|
type
|
2021-06-27 22:05:24 +00:00
|
|
|
width
|
|
|
|
height
|
2021-06-28 00:50:06 +00:00
|
|
|
ratio
|
2021-06-27 22:05:24 +00:00
|
|
|
entity {
|
|
|
|
id
|
|
|
|
type
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
type
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
entity {
|
|
|
|
id
|
|
|
|
type
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
parent {
|
|
|
|
id
|
|
|
|
type
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-03-09 04:06:37 +00:00
|
|
|
const releaseActorsFragment = `
|
|
|
|
actors: releasesActors(orderBy: ACTOR_BY_ACTOR_ID__GENDER_ASC) {
|
|
|
|
actor {
|
|
|
|
${actorFields}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-03-06 23:01:02 +00:00
|
|
|
const releaseDirectorFragment = `
|
|
|
|
directors: releasesDirectors(orderBy: ACTOR_BY_DIRECTOR_ID__NAME_ASC) {
|
|
|
|
director {
|
|
|
|
${actorFields}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releaseTagsFragment = `
|
2021-10-09 22:04:21 +00:00
|
|
|
tags: releasesTags(
|
|
|
|
orderBy: TAG_BY_TAG_ID__PRIORITY_DESC
|
|
|
|
filter: {
|
|
|
|
tagId: { isNull: false }
|
|
|
|
}
|
|
|
|
) {
|
2019-12-19 03:42:50 +00:00
|
|
|
tag {
|
2019-12-16 04:30:25 +00:00
|
|
|
name
|
|
|
|
priority
|
|
|
|
slug
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releasePosterFragment = `
|
2021-11-20 22:59:15 +00:00
|
|
|
poster: releasesPoster {
|
2019-12-19 03:42:50 +00:00
|
|
|
media {
|
2020-08-12 01:30:20 +00:00
|
|
|
id
|
2019-12-19 03:42:50 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2021-03-16 02:55:20 +00:00
|
|
|
width
|
|
|
|
height
|
2021-03-18 03:36:04 +00:00
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
2020-05-07 00:10:28 +00:00
|
|
|
lazy
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2019-12-19 03:42:50 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-02-12 03:39:57 +00:00
|
|
|
const releaseCoversFragment = `
|
2021-02-04 22:28:10 +00:00
|
|
|
covers: releasesCovers(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) {
|
2020-02-12 03:39:57 +00:00
|
|
|
media {
|
2020-08-12 01:30:20 +00:00
|
|
|
id
|
2020-02-12 03:39:57 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2021-03-16 02:55:20 +00:00
|
|
|
width
|
|
|
|
height
|
2021-03-18 03:36:04 +00:00
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
2020-05-07 00:10:28 +00:00
|
|
|
lazy
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2020-02-12 03:39:57 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2020-02-12 03:39:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releasePhotosFragment = `
|
2021-02-04 22:28:10 +00:00
|
|
|
photos: releasesPhotos(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) {
|
2019-12-19 03:42:50 +00:00
|
|
|
media {
|
2020-08-12 01:30:20 +00:00
|
|
|
id
|
2019-12-19 03:42:50 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2021-03-16 02:55:20 +00:00
|
|
|
width
|
|
|
|
height
|
2021-03-18 03:36:04 +00:00
|
|
|
thumbnailWidth
|
|
|
|
thumbnailHeight
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2019-12-19 03:42:50 +00:00
|
|
|
comment
|
2020-04-02 00:02:03 +00:00
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
2020-05-08 23:10:07 +00:00
|
|
|
lazy
|
2020-04-02 00:02:03 +00:00
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTrailerFragment = `
|
2021-11-20 22:59:15 +00:00
|
|
|
trailer: releasesTrailer {
|
2019-12-19 03:42:50 +00:00
|
|
|
media {
|
2020-08-12 01:30:20 +00:00
|
|
|
id
|
2019-12-19 03:42:50 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
2020-02-02 04:14:58 +00:00
|
|
|
mime
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2021-02-04 02:06:19 +00:00
|
|
|
isVr
|
2020-02-02 04:14:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const releaseTeaserFragment = `
|
2021-11-20 22:59:15 +00:00
|
|
|
teaser: releasesTeaser {
|
2020-02-02 04:14:58 +00:00
|
|
|
media {
|
2020-08-20 18:48:52 +00:00
|
|
|
id
|
2020-02-02 04:14:58 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
mime
|
2021-02-22 01:33:39 +00:00
|
|
|
isS3
|
2019-12-19 03:42:50 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-01-08 23:23:37 +00:00
|
|
|
const releaseFields = `
|
|
|
|
id
|
|
|
|
title
|
|
|
|
date
|
2020-07-03 02:12:56 +00:00
|
|
|
datePrecision
|
2020-02-04 02:12:09 +00:00
|
|
|
slug
|
2022-03-31 12:11:13 +00:00
|
|
|
qualities
|
2020-07-02 02:04:28 +00:00
|
|
|
shootId
|
2020-07-02 23:28:22 +00:00
|
|
|
productionDate
|
2020-07-08 00:53:46 +00:00
|
|
|
comment
|
2020-01-08 23:23:37 +00:00
|
|
|
createdAt
|
|
|
|
url
|
2020-10-24 22:52:40 +00:00
|
|
|
createdBatchId
|
2020-01-08 23:23:37 +00:00
|
|
|
${releaseActorsFragment}
|
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
2020-02-12 03:39:57 +00:00
|
|
|
${releaseCoversFragment}
|
2021-02-08 01:10:56 +00:00
|
|
|
${releasePhotosFragment}
|
2020-01-08 23:23:37 +00:00
|
|
|
${siteFragment}
|
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
2021-08-29 23:37:19 +00:00
|
|
|
movies: moviesScenesBySceneId {
|
|
|
|
movie {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
2021-03-21 02:23:58 +00:00
|
|
|
isFavorited
|
|
|
|
isStashed(includeFavorites: false)
|
2021-03-19 02:27:48 +00:00
|
|
|
stashes: stashesScenesBySceneId(
|
|
|
|
filter: {
|
|
|
|
stash: {
|
|
|
|
userId: {
|
|
|
|
equalTo: $userId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
) @include(if: $hasAuth) {
|
|
|
|
stash {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2021-03-21 02:23:58 +00:00
|
|
|
primary
|
2021-03-19 02:27:48 +00:00
|
|
|
}
|
|
|
|
}
|
2020-01-08 23:23:37 +00:00
|
|
|
`;
|
2023-06-11 23:43:43 +00:00
|
|
|
// isNew too performance-intensive
|
2020-01-08 23:23:37 +00:00
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releasesFragment = `
|
2023-01-16 15:49:47 +00:00
|
|
|
connection: releasesConnection(
|
2019-12-18 01:42:55 +00:00
|
|
|
filter: {
|
2023-01-16 20:32:22 +00:00
|
|
|
releasesNotShowcasedsConnectionExist: false
|
2023-01-16 15:49:47 +00:00
|
|
|
date: {
|
|
|
|
lessThan: $before,
|
|
|
|
greaterThan: $after
|
|
|
|
}
|
|
|
|
releasesTagsConnection: {
|
|
|
|
none: {
|
|
|
|
tag: {
|
|
|
|
or: [
|
|
|
|
{ slug: { in: $exclude } }
|
|
|
|
{ name: { in: $exclude } }
|
|
|
|
]
|
2023-01-07 16:43:33 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-14 22:44:32 +00:00
|
|
|
}
|
2019-12-18 01:42:55 +00:00
|
|
|
},
|
|
|
|
first: $limit,
|
2020-05-22 02:32:16 +00:00
|
|
|
offset: $offset,
|
2023-01-14 22:44:32 +00:00
|
|
|
orderBy: $orderBy
|
2019-12-18 01:42:55 +00:00
|
|
|
) {
|
2020-05-22 02:32:16 +00:00
|
|
|
releases: nodes {
|
2023-01-16 15:49:47 +00:00
|
|
|
${releaseFields}
|
2020-05-22 02:32:16 +00:00
|
|
|
}
|
|
|
|
totalCount
|
2019-12-18 01:42:55 +00:00
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
`;
|
|
|
|
|
2022-03-27 21:42:03 +00:00
|
|
|
const mediaFields = `
|
|
|
|
id
|
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
isS3
|
|
|
|
comment
|
|
|
|
sfw: sfwMedia {
|
2022-03-26 16:40:20 +00:00
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2022-03-27 21:42:03 +00:00
|
|
|
path
|
2022-03-26 16:40:20 +00:00
|
|
|
comment
|
2022-03-27 21:42:03 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const mediaFragment = `
|
|
|
|
media {
|
|
|
|
${mediaFields}
|
2022-03-26 16:40:20 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
const releaseFragment = `
|
|
|
|
release(id: $releaseId) {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
description
|
|
|
|
date
|
2020-07-03 02:12:56 +00:00
|
|
|
datePrecision
|
2019-12-16 04:30:25 +00:00
|
|
|
duration
|
|
|
|
createdAt
|
|
|
|
shootId
|
2022-03-31 12:11:13 +00:00
|
|
|
qualities
|
2020-07-02 23:28:22 +00:00
|
|
|
productionDate
|
2020-10-24 22:52:40 +00:00
|
|
|
createdBatchId
|
2020-08-20 02:57:38 +00:00
|
|
|
productionLocation
|
|
|
|
productionCity
|
|
|
|
productionState
|
|
|
|
productionCountry: countryByProductionCountryAlpha2 {
|
|
|
|
alpha2
|
|
|
|
name
|
|
|
|
alias
|
|
|
|
}
|
2020-07-08 00:53:46 +00:00
|
|
|
comment
|
2019-12-16 04:30:25 +00:00
|
|
|
url
|
|
|
|
${releaseActorsFragment}
|
2021-03-06 23:01:02 +00:00
|
|
|
${releaseDirectorFragment}
|
2019-12-16 04:30:25 +00:00
|
|
|
${releaseTagsFragment}
|
|
|
|
${releasePosterFragment}
|
|
|
|
${releasePhotosFragment}
|
2020-03-08 03:23:10 +00:00
|
|
|
${releaseCoversFragment}
|
2019-12-16 04:30:25 +00:00
|
|
|
${releaseTrailerFragment}
|
2020-02-02 04:14:58 +00:00
|
|
|
${releaseTeaserFragment}
|
2019-12-16 04:30:25 +00:00
|
|
|
${siteFragment}
|
2021-02-27 17:05:06 +00:00
|
|
|
chapters(orderBy: TIME_ASC) {
|
2020-08-20 02:57:38 +00:00
|
|
|
id
|
2021-02-26 23:37:22 +00:00
|
|
|
index
|
|
|
|
time
|
|
|
|
duration
|
2020-08-20 02:57:38 +00:00
|
|
|
title
|
|
|
|
description
|
2021-02-26 23:37:22 +00:00
|
|
|
tags: chaptersTags {
|
2020-08-20 02:57:38 +00:00
|
|
|
tag {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
}
|
|
|
|
}
|
2021-11-20 22:59:15 +00:00
|
|
|
poster: chaptersPoster {
|
2020-08-20 02:57:38 +00:00
|
|
|
media {
|
2020-08-20 18:48:52 +00:00
|
|
|
id
|
2020-08-20 02:57:38 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
comment
|
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
studio {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
|
|
|
url
|
|
|
|
}
|
2020-08-12 01:30:20 +00:00
|
|
|
movies: moviesScenesBySceneId {
|
|
|
|
movie {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
slug
|
2022-01-29 22:39:12 +00:00
|
|
|
covers: moviesCovers(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) {
|
2020-08-12 01:30:20 +00:00
|
|
|
media {
|
2020-08-20 18:48:52 +00:00
|
|
|
id
|
2020-08-12 01:30:20 +00:00
|
|
|
index
|
|
|
|
path
|
|
|
|
thumbnail
|
|
|
|
lazy
|
2021-02-23 00:30:38 +00:00
|
|
|
isS3
|
2020-08-12 01:30:20 +00:00
|
|
|
comment
|
|
|
|
sfw: sfwMedia {
|
|
|
|
id
|
|
|
|
thumbnail
|
|
|
|
lazy
|
|
|
|
path
|
|
|
|
comment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-26 16:40:20 +00:00
|
|
|
series: seriesScenesBySceneId {
|
|
|
|
serie {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
slug
|
|
|
|
covers: seriesCoversBySerieId(orderBy: MEDIA_BY_MEDIA_ID__INDEX_ASC) {
|
|
|
|
${mediaFragment}
|
|
|
|
}
|
|
|
|
poster: seriesPosterBySerieId {
|
|
|
|
${mediaFragment}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-21 02:23:58 +00:00
|
|
|
isFavorited
|
|
|
|
isStashed(includeFavorites: false)
|
2021-03-17 01:09:34 +00:00
|
|
|
stashes: stashesScenesBySceneId(
|
|
|
|
filter: {
|
|
|
|
stash: {
|
|
|
|
userId: {
|
|
|
|
equalTo: $userId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
) @include(if: $hasAuth) {
|
|
|
|
stash {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
slug
|
2021-03-21 02:23:58 +00:00
|
|
|
primary
|
2021-03-17 01:09:34 +00:00
|
|
|
}
|
|
|
|
}
|
2019-12-16 04:30:25 +00:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2023-06-15 22:47:19 +00:00
|
|
|
const batchFragment = `
|
|
|
|
batches(first: 1, orderBy: CREATED_AT_DESC) {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-09 01:28:33 +00:00
|
|
|
function getIncludedEntities(router) {
|
2020-12-27 21:45:38 +00:00
|
|
|
const includedChannels = router.currentRoute.value.query.channels ? router.currentRoute.value.query.channels.split(',') : [];
|
|
|
|
const includedNetworks = router.currentRoute.value.query.networks ? router.currentRoute.value.query.networks.split(',') : [];
|
2020-09-09 01:28:33 +00:00
|
|
|
|
|
|
|
if (includedChannels.length === 0 && includedNetworks.length === 0) {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
entity: {
|
|
|
|
slug: {
|
|
|
|
in: includedChannels,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
entity: {
|
|
|
|
parent: {
|
|
|
|
type: {
|
|
|
|
equalTo: 'network',
|
|
|
|
},
|
|
|
|
slug: {
|
|
|
|
in: includedNetworks,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
entity: {
|
|
|
|
type: {
|
|
|
|
equalTo: 'network',
|
|
|
|
},
|
|
|
|
slug: {
|
|
|
|
in: includedNetworks,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2020-09-12 01:09:05 +00:00
|
|
|
function getIncludedActors(router) {
|
2020-12-27 21:45:38 +00:00
|
|
|
const includedActors = router.currentRoute.value.query.actors ? router.currentRoute.value.query.actors.split(',') : [];
|
2020-09-12 01:09:05 +00:00
|
|
|
|
|
|
|
if (includedActors.length === 0) {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
releasesActorsConnection: {
|
|
|
|
some: {
|
|
|
|
actor: {
|
|
|
|
slug: {
|
|
|
|
in: includedActors,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
2020-09-09 01:28:33 +00:00
|
|
|
|
2019-12-16 04:30:25 +00:00
|
|
|
export {
|
2021-04-04 20:52:54 +00:00
|
|
|
actorFields,
|
2021-03-24 00:52:27 +00:00
|
|
|
actorStashesFields,
|
2023-06-15 22:47:19 +00:00
|
|
|
batchFragment,
|
2021-06-27 22:05:24 +00:00
|
|
|
campaignsFragment,
|
2022-03-27 21:42:03 +00:00
|
|
|
mediaFields,
|
|
|
|
mediaFragment,
|
2021-08-21 22:40:22 +00:00
|
|
|
movieFields,
|
2020-05-14 02:26:05 +00:00
|
|
|
releaseActorsFragment,
|
|
|
|
releaseFields,
|
|
|
|
releaseTagsFragment,
|
|
|
|
releasePosterFragment,
|
|
|
|
releasePhotosFragment,
|
|
|
|
releaseTrailerFragment,
|
|
|
|
releasesFragment,
|
|
|
|
releaseFragment,
|
|
|
|
siteFragment,
|
|
|
|
sitesFragment,
|
2020-09-09 01:28:33 +00:00
|
|
|
getIncludedEntities,
|
2020-09-12 01:09:05 +00:00
|
|
|
getIncludedActors,
|
2019-12-16 04:30:25 +00:00
|
|
|
};
|