Update apollo config to fix genSchemaTypes (#1154)

This commit is contained in:
Googol Lee
2025-01-09 19:51:39 +01:00
committed by GitHub
parent e045e0f7ae
commit ce68c25f45
60 changed files with 744 additions and 714 deletions

View File

@@ -1,8 +1,38 @@
// apollo.config.js
const { readdirSync, readFileSync, writeFileSync, mkdirSync } = require('node:fs');
const path = require('node:path');
const schemasFolder = path.join(__dirname, '..', 'api', 'graphql', 'resolvers');
let completeSchema;
try {
completeSchema = readdirSync(schemasFolder)
.filter(x => x.endsWith('.graphql'))
.map(x => {
const filePath = path.join(schemasFolder, x);
return readFileSync(filePath, 'utf-8');
})
.join('\n\n');
} catch (error) {
console.error('Failed to generate schema:', error);
process.exit(1);
}
const outputPath = path.join(__dirname, '.cache', 'schema.graphql');
try {
mkdirSync(path.dirname(outputPath), { recursive: true });
writeFileSync(outputPath, completeSchema, { mode: 0o644 });
} catch (error) {
console.error('Failed to write schema file:', error);
process.exit(1);
}
module.exports = {
client: {
service: {
name: 'photoview',
localSchemaFile: '../api/graphql/schema.graphql',
localSchemaFile: outputPath,
},
},
}

View File

@@ -3,106 +3,106 @@
// @generated
// This file was automatically generated and should not be edited.
import { OrderDirection, MediaType } from './../../../__generated__/globalTypes'
import { OrderDirection, MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: albumQuery
// ====================================================
export interface albumQuery_album_subAlbums_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface albumQuery_album_subAlbums_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: albumQuery_album_subAlbums_thumbnail_thumbnail | null
thumbnail: albumQuery_album_subAlbums_thumbnail_thumbnail | null;
}
export interface albumQuery_album_subAlbums {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: albumQuery_album_subAlbums_thumbnail | null
thumbnail: albumQuery_album_subAlbums_thumbnail | null;
}
export interface albumQuery_album_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface albumQuery_album_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface albumQuery_album_media_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface albumQuery_album_media {
__typename: 'Media'
id: string
type: MediaType
__typename: "Media";
id: string;
type: MediaType;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: albumQuery_album_media_thumbnail | null
thumbnail: albumQuery_album_media_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: albumQuery_album_media_highRes | null
highRes: albumQuery_album_media_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: albumQuery_album_media_videoWeb | null
favorite: boolean
videoWeb: albumQuery_album_media_videoWeb | null;
favorite: boolean;
}
export interface albumQuery_album {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* The albums contained in this album
*/
subAlbums: albumQuery_album_subAlbums[]
subAlbums: albumQuery_album_subAlbums[];
/**
* The media inside this album
*/
media: albumQuery_album_media[]
media: albumQuery_album_media[];
}
export interface albumQuery {
@@ -110,14 +110,14 @@ export interface albumQuery {
* Get album by id, user must own the album or be admin
* If valid tokenCredentials are provided, the album may be retrived without further authentication
*/
album: albumQuery_album
album: albumQuery_album;
}
export interface albumQueryVariables {
id: string
onlyFavorites?: boolean | null
mediaOrderBy?: string | null
orderDirection?: OrderDirection | null
limit?: number | null
offset?: number | null
id: string;
onlyFavorites?: boolean | null;
mediaOrderBy?: string | null;
orderDirection?: OrderDirection | null;
limit?: number | null;
offset?: number | null;
}

View File

@@ -8,35 +8,35 @@
// ====================================================
export interface getMyAlbums_myAlbums_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface getMyAlbums_myAlbums_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: getMyAlbums_myAlbums_thumbnail_thumbnail | null
thumbnail: getMyAlbums_myAlbums_thumbnail_thumbnail | null;
}
export interface getMyAlbums_myAlbums {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: getMyAlbums_myAlbums_thumbnail | null
thumbnail: getMyAlbums_myAlbums_thumbnail | null;
}
export interface getMyAlbums {
/**
* List of albums owned by the logged in user.
*/
myAlbums: getMyAlbums_myAlbums[]
myAlbums: getMyAlbums_myAlbums[];
}

View File

@@ -8,26 +8,26 @@
// ====================================================
export interface Authorize_authorizeUser {
__typename: 'AuthorizeResult'
success: boolean
__typename: "AuthorizeResult";
success: boolean;
/**
* A textual status message describing the result, can be used to show an error message when `success` is false
*/
status: string
status: string;
/**
* An access token used to authenticate new API requests as the newly authorized user. Is present when success is true
*/
token: string | null
token: string | null;
}
export interface Authorize {
/**
* Authorizes a user and returns a token used to identify the new session
*/
authorizeUser: Authorize_authorizeUser
authorizeUser: Authorize_authorizeUser;
}
export interface AuthorizeVariables {
username: string
password: string
username: string;
password: string;
}

View File

@@ -8,13 +8,13 @@
// ====================================================
export interface CheckInitialSetup_siteInfo {
__typename: 'SiteInfo'
__typename: "SiteInfo";
/**
* Whether or not the initial setup wizard should be shown
*/
initialSetup: boolean
initialSetup: boolean;
}
export interface CheckInitialSetup {
siteInfo: CheckInitialSetup_siteInfo
siteInfo: CheckInitialSetup_siteInfo;
}

View File

@@ -8,27 +8,27 @@
// ====================================================
export interface InitialSetup_initialSetupWizard {
__typename: 'AuthorizeResult'
success: boolean
__typename: "AuthorizeResult";
success: boolean;
/**
* A textual status message describing the result, can be used to show an error message when `success` is false
*/
status: string
status: string;
/**
* An access token used to authenticate new API requests as the newly authorized user. Is present when success is true
*/
token: string | null
token: string | null;
}
export interface InitialSetup {
/**
* Registers the initial user, can only be called if initialSetup from SiteInfo is true
*/
initialSetupWizard: InitialSetup_initialSetupWizard | null
initialSetupWizard: InitialSetup_initialSetupWizard | null;
}
export interface InitialSetupVariables {
username: string
password: string
rootPath: string
username: string;
password: string;
rootPath: string;
}

View File

@@ -8,18 +8,18 @@
// ====================================================
export interface combineFaces_combineFaceGroups {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
}
export interface combineFaces {
/**
* Merge two face groups into a single one, all ImageFaces from source will be moved to destination
*/
combineFaceGroups: combineFaces_combineFaceGroups
combineFaceGroups: combineFaces_combineFaceGroups;
}
export interface combineFacesVariables {
destID: string
srcID: string
destID: string;
srcID: string;
}

View File

@@ -8,21 +8,21 @@
// ====================================================
export interface detachImageFaces_detachImageFaces {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
/**
* The name of the person
*/
label: string | null
label: string | null;
}
export interface detachImageFaces {
/**
* Move a list of ImageFaces to a new face group
*/
detachImageFaces: detachImageFaces_detachImageFaces
detachImageFaces: detachImageFaces_detachImageFaces;
}
export interface detachImageFacesVariables {
faceIDs: string[]
faceIDs: string[];
}

View File

@@ -8,24 +8,24 @@
// ====================================================
export interface moveImageFaces_moveImageFaces_imageFaces {
__typename: 'ImageFace'
id: string
__typename: "ImageFace";
id: string;
}
export interface moveImageFaces_moveImageFaces {
__typename: 'FaceGroup'
id: string
imageFaces: moveImageFaces_moveImageFaces_imageFaces[]
__typename: "FaceGroup";
id: string;
imageFaces: moveImageFaces_moveImageFaces_imageFaces[];
}
export interface moveImageFaces {
/**
* Move a list of ImageFaces to another face group
*/
moveImageFaces: moveImageFaces_moveImageFaces
moveImageFaces: moveImageFaces_moveImageFaces;
}
export interface moveImageFacesVariables {
faceIDs: string[]
destFaceGroupID: string
faceIDs: string[];
destFaceGroupID: string;
}

View File

@@ -3,96 +3,96 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../../__generated__/globalTypes'
import { MediaType } from "./../../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: singleFaceGroup
// ====================================================
export interface singleFaceGroup_faceGroup_imageFaces_rectangle {
__typename: 'FaceRectangle'
minX: number
maxX: number
minY: number
maxY: number
__typename: "FaceRectangle";
minX: number;
maxX: number;
minY: number;
maxY: number;
}
export interface singleFaceGroup_faceGroup_imageFaces_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface singleFaceGroup_faceGroup_imageFaces_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface singleFaceGroup_faceGroup_imageFaces_media {
__typename: 'Media'
id: string
type: MediaType
title: string
__typename: "Media";
id: string;
type: MediaType;
title: string;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: singleFaceGroup_faceGroup_imageFaces_media_thumbnail | null
thumbnail: singleFaceGroup_faceGroup_imageFaces_media_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: singleFaceGroup_faceGroup_imageFaces_media_highRes | null
favorite: boolean
highRes: singleFaceGroup_faceGroup_imageFaces_media_highRes | null;
favorite: boolean;
}
export interface singleFaceGroup_faceGroup_imageFaces {
__typename: 'ImageFace'
id: string
__typename: "ImageFace";
id: string;
/**
* A bounding box of where on the image the face is present
*/
rectangle: singleFaceGroup_faceGroup_imageFaces_rectangle
rectangle: singleFaceGroup_faceGroup_imageFaces_rectangle;
/**
* A reference to the image the face appears on
*/
media: singleFaceGroup_faceGroup_imageFaces_media
media: singleFaceGroup_faceGroup_imageFaces_media;
}
export interface singleFaceGroup_faceGroup {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
/**
* The name of the person
*/
label: string | null
imageFaces: singleFaceGroup_faceGroup_imageFaces[]
label: string | null;
imageFaces: singleFaceGroup_faceGroup_imageFaces[];
}
export interface singleFaceGroup {
/**
* Get a particular `FaceGroup` specified by its ID
*/
faceGroup: singleFaceGroup_faceGroup
faceGroup: singleFaceGroup_faceGroup;
}
export interface singleFaceGroupVariables {
id: string
limit: number
offset: number
id: string;
limit: number;
offset: number;
}

View File

@@ -8,74 +8,74 @@
// ====================================================
export interface myFaces_myFaceGroups_imageFaces_rectangle {
__typename: 'FaceRectangle'
minX: number
maxX: number
minY: number
maxY: number
__typename: "FaceRectangle";
minX: number;
maxX: number;
minY: number;
maxY: number;
}
export interface myFaces_myFaceGroups_imageFaces_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface myFaces_myFaceGroups_imageFaces_media {
__typename: 'Media'
id: string
title: string
__typename: "Media";
id: string;
title: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: myFaces_myFaceGroups_imageFaces_media_thumbnail | null
thumbnail: myFaces_myFaceGroups_imageFaces_media_thumbnail | null;
}
export interface myFaces_myFaceGroups_imageFaces {
__typename: 'ImageFace'
id: string
__typename: "ImageFace";
id: string;
/**
* A bounding box of where on the image the face is present
*/
rectangle: myFaces_myFaceGroups_imageFaces_rectangle
rectangle: myFaces_myFaceGroups_imageFaces_rectangle;
/**
* A reference to the image the face appears on
*/
media: myFaces_myFaceGroups_imageFaces_media
media: myFaces_myFaceGroups_imageFaces_media;
}
export interface myFaces_myFaceGroups {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
/**
* The name of the person
*/
label: string | null
label: string | null;
/**
* The total number of images in this collection
*/
imageFaceCount: number
imageFaces: myFaces_myFaceGroups_imageFaces[]
imageFaceCount: number;
imageFaces: myFaces_myFaceGroups_imageFaces[];
}
export interface myFaces {
/**
* Get a list of `FaceGroup`s for the logged in user
*/
myFaceGroups: myFaces_myFaceGroups[]
myFaceGroups: myFaces_myFaceGroups[];
}
export interface myFacesVariables {
limit?: number | null
offset?: number | null
limit?: number | null;
offset?: number | null;
}

View File

@@ -8,13 +8,13 @@
// ====================================================
export interface recognizeUnlabeledFaces_recognizeUnlabeledFaces {
__typename: 'ImageFace'
id: string
__typename: "ImageFace";
id: string;
}
export interface recognizeUnlabeledFaces {
/**
* Check all unlabeled faces to see if they match a labeled FaceGroup, and move them if they match
*/
recognizeUnlabeledFaces: recognizeUnlabeledFaces_recognizeUnlabeledFaces[]
recognizeUnlabeledFaces: recognizeUnlabeledFaces_recognizeUnlabeledFaces[];
}

View File

@@ -8,22 +8,22 @@
// ====================================================
export interface setGroupLabel_setFaceGroupLabel {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
/**
* The name of the person
*/
label: string | null
label: string | null;
}
export interface setGroupLabel {
/**
* Assign a label to a face group, set label to null to remove the current one
*/
setFaceGroupLabel: setGroupLabel_setFaceGroupLabel
setFaceGroupLabel: setGroupLabel_setFaceGroupLabel;
}
export interface setGroupLabelVariables {
groupID: string
label?: string | null
groupID: string;
label?: string | null;
}

View File

@@ -11,5 +11,5 @@ export interface mediaGeoJson {
/**
* Get media owned by the logged in user, returned in GeoJson format
*/
myMediaGeoJson: Any
myMediaGeoJson: Any;
}

View File

@@ -3,90 +3,90 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../__generated__/globalTypes'
import { MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: placePageQueryMedia
// ====================================================
export interface placePageQueryMedia_mediaList_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface placePageQueryMedia_mediaList_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface placePageQueryMedia_mediaList_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface placePageQueryMedia_mediaList {
__typename: 'Media'
id: string
title: string
__typename: "Media";
id: string;
title: string;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: placePageQueryMedia_mediaList_thumbnail | null
thumbnail: placePageQueryMedia_mediaList_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: placePageQueryMedia_mediaList_highRes | null
highRes: placePageQueryMedia_mediaList_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: placePageQueryMedia_mediaList_videoWeb | null
type: MediaType
videoWeb: placePageQueryMedia_mediaList_videoWeb | null;
type: MediaType;
}
export interface placePageQueryMedia {
/**
* Get a list of media by their ids, user must own the media or be admin
*/
mediaList: placePageQueryMedia_mediaList[]
mediaList: placePageQueryMedia_mediaList[];
}
export interface placePageQueryMediaVariables {
mediaIDs: string[]
mediaIDs: string[];
}

View File

@@ -8,18 +8,18 @@
// ====================================================
export interface changeUserPassword_updateUser {
__typename: 'User'
id: string
__typename: "User";
id: string;
}
export interface changeUserPassword {
/**
* Update a user, fields left as `null` will not be changed
*/
updateUser: changeUserPassword_updateUser
updateUser: changeUserPassword_updateUser;
}
export interface changeUserPasswordVariables {
userId: string
password: string
userId: string;
password: string;
}

View File

@@ -8,23 +8,23 @@
// ====================================================
export interface createUser_createUser {
__typename: 'User'
id: string
username: string
__typename: "User";
id: string;
username: string;
/**
* Whether or not the user has admin privileges
*/
admin: boolean
admin: boolean;
}
export interface createUser {
/**
* Create a new user
*/
createUser: createUser_createUser
createUser: createUser_createUser;
}
export interface createUserVariables {
username: string
admin: boolean
username: string;
admin: boolean;
}

View File

@@ -8,18 +8,18 @@
// ====================================================
export interface deleteUser_deleteUser {
__typename: 'User'
id: string
username: string
__typename: "User";
id: string;
username: string;
}
export interface deleteUser {
/**
* Delete an existing user
*/
deleteUser: deleteUser_deleteUser
deleteUser: deleteUser_deleteUser;
}
export interface deleteUserVariables {
id: string
id: string;
}

View File

@@ -8,17 +8,17 @@
// ====================================================
export interface scanUser_scanUser {
__typename: 'ScannerResult'
success: boolean
__typename: "ScannerResult";
success: boolean;
}
export interface scanUser {
/**
* Scan a single user for new media
*/
scanUser: scanUser_scanUser
scanUser: scanUser_scanUser;
}
export interface scanUserVariables {
userId: string
userId: string;
}

View File

@@ -8,31 +8,31 @@
// ====================================================
export interface settingsUsersQuery_user_rootAlbums {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
/**
* The path on the filesystem of the server, where this album is located
*/
filePath: string
filePath: string;
}
export interface settingsUsersQuery_user {
__typename: 'User'
id: string
username: string
__typename: "User";
id: string;
username: string;
/**
* Whether or not the user has admin privileges
*/
admin: boolean
admin: boolean;
/**
* Top level albums owned by this user
*/
rootAlbums: settingsUsersQuery_user_rootAlbums[]
rootAlbums: settingsUsersQuery_user_rootAlbums[];
}
export interface settingsUsersQuery {
/**
* List of registered users, must be admin to call
*/
user: settingsUsersQuery_user[]
user: settingsUsersQuery_user[];
}

View File

@@ -8,24 +8,24 @@
// ====================================================
export interface updateUser_updateUser {
__typename: 'User'
id: string
username: string
__typename: "User";
id: string;
username: string;
/**
* Whether or not the user has admin privileges
*/
admin: boolean
admin: boolean;
}
export interface updateUser {
/**
* Update a user, fields left as `null` will not be changed
*/
updateUser: updateUser_updateUser
updateUser: updateUser_updateUser;
}
export interface updateUserVariables {
id: string
username?: string | null
admin?: boolean | null
id: string;
username?: string | null;
admin?: boolean | null;
}

View File

@@ -8,18 +8,18 @@
// ====================================================
export interface userAddRootPath_userAddRootPath {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
}
export interface userAddRootPath {
/**
* Add a root path from where to look for media for the given user, specified by their user id.
*/
userAddRootPath: userAddRootPath_userAddRootPath | null
userAddRootPath: userAddRootPath_userAddRootPath | null;
}
export interface userAddRootPathVariables {
id: string
rootPath: string
id: string;
rootPath: string;
}

View File

@@ -8,8 +8,8 @@
// ====================================================
export interface userRemoveAlbumPathMutation_userRemoveRootAlbum {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
}
export interface userRemoveAlbumPathMutation {
@@ -18,10 +18,10 @@ export interface userRemoveAlbumPathMutation {
* This album was returned when creating the path using `userAddRootPath`.
* A list of root paths for a particular user can be retrived from the `User.rootAlbums` path.
*/
userRemoveRootAlbum: userRemoveAlbumPathMutation_userRemoveRootAlbum | null
userRemoveRootAlbum: userRemoveAlbumPathMutation_userRemoveRootAlbum | null;
}
export interface userRemoveAlbumPathMutationVariables {
userId: string
albumId: string
userId: string;
albumId: string;
}

View File

@@ -12,9 +12,9 @@ export interface changeScanIntervalMutation {
* Set how often, in seconds, the server should automatically scan for new media,
* a value of 0 will disable periodic scans
*/
setPeriodicScanInterval: number
setPeriodicScanInterval: number;
}
export interface changeScanIntervalMutationVariables {
interval: number
interval: number;
}

View File

@@ -3,25 +3,25 @@
// @generated
// This file was automatically generated and should not be edited.
import { LanguageTranslation } from './../../../__generated__/globalTypes'
import { LanguageTranslation } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL mutation operation: changeUserPreferences
// ====================================================
export interface changeUserPreferences_changeUserPreferences {
__typename: 'UserPreferences'
id: string
language: LanguageTranslation | null
__typename: "UserPreferences";
id: string;
language: LanguageTranslation | null;
}
export interface changeUserPreferences {
/**
* Change user preferences for the logged in user
*/
changeUserPreferences: changeUserPreferences_changeUserPreferences
changeUserPreferences: changeUserPreferences_changeUserPreferences;
}
export interface changeUserPreferencesVariables {
language?: string | null
language?: string | null;
}

View File

@@ -8,13 +8,13 @@
// ====================================================
export interface concurrentWorkersQuery_siteInfo {
__typename: 'SiteInfo'
__typename: "SiteInfo";
/**
* How many max concurrent scanner jobs that should run at once
*/
concurrentWorkers: number
concurrentWorkers: number;
}
export interface concurrentWorkersQuery {
siteInfo: concurrentWorkersQuery_siteInfo
siteInfo: concurrentWorkersQuery_siteInfo;
}

View File

@@ -3,21 +3,21 @@
// @generated
// This file was automatically generated and should not be edited.
import { LanguageTranslation } from './../../../__generated__/globalTypes'
import { LanguageTranslation } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: myUserPreferences
// ====================================================
export interface myUserPreferences_myUserPreferences {
__typename: 'UserPreferences'
id: string
language: LanguageTranslation | null
__typename: "UserPreferences";
id: string;
language: LanguageTranslation | null;
}
export interface myUserPreferences {
/**
* User preferences for the logged in user
*/
myUserPreferences: myUserPreferences_myUserPreferences
myUserPreferences: myUserPreferences_myUserPreferences;
}

View File

@@ -8,14 +8,14 @@
// ====================================================
export interface scanAllMutation_scanAll {
__typename: 'ScannerResult'
success: boolean
message: string | null
__typename: "ScannerResult";
success: boolean;
message: string | null;
}
export interface scanAllMutation {
/**
* Scan all users for new media
*/
scanAll: scanAllMutation_scanAll
scanAll: scanAllMutation_scanAll;
}

View File

@@ -8,13 +8,13 @@
// ====================================================
export interface scanIntervalQuery_siteInfo {
__typename: 'SiteInfo'
__typename: "SiteInfo";
/**
* How often automatic scans should be initiated in seconds
*/
periodicScanInterval: number
periodicScanInterval: number;
}
export interface scanIntervalQuery {
siteInfo: scanIntervalQuery_siteInfo
siteInfo: scanIntervalQuery_siteInfo;
}

View File

@@ -11,9 +11,9 @@ export interface setConcurrentWorkers {
/**
* Set max number of concurrent scanner jobs running at once
*/
setScannerConcurrentWorkers: number
setScannerConcurrentWorkers: number;
}
export interface setConcurrentWorkersVariables {
workers: number
workers: number;
}

View File

@@ -3,7 +3,7 @@
// @generated
// This file was automatically generated and should not be edited.
import { ThumbnailFilter } from './../../../__generated__/globalTypes'
import { ThumbnailFilter } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL mutation operation: setThumbnailMethodMutation
@@ -13,9 +13,9 @@ export interface setThumbnailMethodMutation {
/**
* Set the filter to be used when generating thumbnails
*/
setThumbnailDownsampleMethod: ThumbnailFilter
setThumbnailDownsampleMethod: ThumbnailFilter;
}
export interface setThumbnailMethodMutationVariables {
method: ThumbnailFilter
method: ThumbnailFilter;
}

View File

@@ -3,20 +3,20 @@
// @generated
// This file was automatically generated and should not be edited.
import { ThumbnailFilter } from './../../../__generated__/globalTypes'
import { ThumbnailFilter } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: thumbnailMethodQuery
// ====================================================
export interface thumbnailMethodQuery_siteInfo {
__typename: 'SiteInfo'
__typename: "SiteInfo";
/**
* The filter to use when generating thumbnails
*/
thumbnailMethod: ThumbnailFilter
thumbnailMethod: ThumbnailFilter;
}
export interface thumbnailMethodQuery {
siteInfo: thumbnailMethodQuery_siteInfo
siteInfo: thumbnailMethodQuery_siteInfo;
}

View File

@@ -3,201 +3,201 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../__generated__/globalTypes'
import { MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: SharePageToken
// ====================================================
export interface SharePageToken_shareToken_album {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
}
export interface SharePageToken_shareToken_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface SharePageToken_shareToken_media_downloads_mediaUrl {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
/**
* The file size of the resource in bytes
*/
fileSize: number
fileSize: number;
}
export interface SharePageToken_shareToken_media_downloads {
__typename: 'MediaDownload'
__typename: "MediaDownload";
/**
* A description of the role of the media file
*/
title: string
mediaUrl: SharePageToken_shareToken_media_downloads_mediaUrl
title: string;
mediaUrl: SharePageToken_shareToken_media_downloads_mediaUrl;
}
export interface SharePageToken_shareToken_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface SharePageToken_shareToken_media_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface SharePageToken_shareToken_media_exif_coordinates {
__typename: 'Coordinates'
__typename: "Coordinates";
/**
* GPS longitude in degrees
*/
longitude: number
longitude: number;
/**
* GPS latitude in degrees
*/
latitude: number
latitude: number;
}
export interface SharePageToken_shareToken_media_exif {
__typename: 'MediaEXIF'
id: string
__typename: "MediaEXIF";
id: string;
/**
* The description of the image
*/
description: string | null
description: string | null;
/**
* The model name of the camera
*/
camera: string | null
camera: string | null;
/**
* The maker of the camera
*/
maker: string | null
maker: string | null;
/**
* The name of the lens
*/
lens: string | null
dateShot: Time | null
lens: string | null;
dateShot: Time | null;
/**
* The exposure time of the image
*/
exposure: number | null
exposure: number | null;
/**
* The aperature stops of the image
*/
aperture: number | null
aperture: number | null;
/**
* The ISO setting of the image
*/
iso: number | null
iso: number | null;
/**
* The focal length of the lens, when the image was taken
*/
focalLength: number | null
focalLength: number | null;
/**
* A formatted description of the flash settings, when the image was taken
*/
flash: number | null
flash: number | null;
/**
* An index describing the mode for adjusting the exposure of the image
*/
exposureProgram: number | null
exposureProgram: number | null;
/**
* GPS coordinates of where the image was taken
*/
coordinates: SharePageToken_shareToken_media_exif_coordinates | null
coordinates: SharePageToken_shareToken_media_exif_coordinates | null;
}
export interface SharePageToken_shareToken_media {
__typename: 'Media'
id: string
title: string
type: MediaType
__typename: "Media";
id: string;
title: string;
type: MediaType;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: SharePageToken_shareToken_media_thumbnail | null
thumbnail: SharePageToken_shareToken_media_thumbnail | null;
/**
* A list of different versions of files for this media that can be downloaded by the user
*/
downloads: SharePageToken_shareToken_media_downloads[]
downloads: SharePageToken_shareToken_media_downloads[];
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: SharePageToken_shareToken_media_highRes | null
highRes: SharePageToken_shareToken_media_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: SharePageToken_shareToken_media_videoWeb | null
exif: SharePageToken_shareToken_media_exif | null
videoWeb: SharePageToken_shareToken_media_videoWeb | null;
exif: SharePageToken_shareToken_media_exif | null;
}
export interface SharePageToken_shareToken {
__typename: 'ShareToken'
token: string
__typename: "ShareToken";
token: string;
/**
* The album this token shares
*/
album: SharePageToken_shareToken_album | null
album: SharePageToken_shareToken_album | null;
/**
* The media this token shares
*/
media: SharePageToken_shareToken_media | null
media: SharePageToken_shareToken_media | null;
}
export interface SharePageToken {
/**
* Fetch a share token containing an `Album` or `Media`
*/
shareToken: SharePageToken_shareToken
shareToken: SharePageToken_shareToken;
}
export interface SharePageTokenVariables {
token: string
password?: string | null
token: string;
password?: string | null;
}

View File

@@ -11,10 +11,10 @@ export interface ShareTokenValidatePassword {
/**
* Check if the `ShareToken` credentials are valid
*/
shareTokenValidatePassword: boolean
shareTokenValidatePassword: boolean;
}
export interface ShareTokenValidatePasswordVariables {
token: string
password?: string | null
token: string;
password?: string | null;
}

View File

@@ -3,210 +3,210 @@
// @generated
// This file was automatically generated and should not be edited.
import { OrderDirection, MediaType } from './../../../__generated__/globalTypes'
import { OrderDirection, MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: shareAlbumQuery
// ====================================================
export interface shareAlbumQuery_album_subAlbums_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface shareAlbumQuery_album_subAlbums_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: shareAlbumQuery_album_subAlbums_thumbnail_thumbnail | null
thumbnail: shareAlbumQuery_album_subAlbums_thumbnail_thumbnail | null;
}
export interface shareAlbumQuery_album_subAlbums {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: shareAlbumQuery_album_subAlbums_thumbnail | null
thumbnail: shareAlbumQuery_album_subAlbums_thumbnail | null;
}
export interface shareAlbumQuery_album_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface shareAlbumQuery_album_media_downloads_mediaUrl {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
/**
* The file size of the resource in bytes
*/
fileSize: number
fileSize: number;
}
export interface shareAlbumQuery_album_media_downloads {
__typename: 'MediaDownload'
__typename: "MediaDownload";
/**
* A description of the role of the media file
*/
title: string
mediaUrl: shareAlbumQuery_album_media_downloads_mediaUrl
title: string;
mediaUrl: shareAlbumQuery_album_media_downloads_mediaUrl;
}
export interface shareAlbumQuery_album_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface shareAlbumQuery_album_media_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface shareAlbumQuery_album_media_exif_coordinates {
__typename: 'Coordinates'
__typename: "Coordinates";
/**
* GPS latitude in degrees
*/
latitude: number
latitude: number;
/**
* GPS longitude in degrees
*/
longitude: number
longitude: number;
}
export interface shareAlbumQuery_album_media_exif {
__typename: 'MediaEXIF'
id: string
__typename: "MediaEXIF";
id: string;
/**
* The description of the image
*/
description: string | null
description: string | null;
/**
* The model name of the camera
*/
camera: string | null
camera: string | null;
/**
* The maker of the camera
*/
maker: string | null
maker: string | null;
/**
* The name of the lens
*/
lens: string | null
dateShot: Time | null
lens: string | null;
dateShot: Time | null;
/**
* The exposure time of the image
*/
exposure: number | null
exposure: number | null;
/**
* The aperature stops of the image
*/
aperture: number | null
aperture: number | null;
/**
* The ISO setting of the image
*/
iso: number | null
iso: number | null;
/**
* The focal length of the lens, when the image was taken
*/
focalLength: number | null
focalLength: number | null;
/**
* A formatted description of the flash settings, when the image was taken
*/
flash: number | null
flash: number | null;
/**
* An index describing the mode for adjusting the exposure of the image
*/
exposureProgram: number | null
exposureProgram: number | null;
/**
* GPS coordinates of where the image was taken
*/
coordinates: shareAlbumQuery_album_media_exif_coordinates | null
coordinates: shareAlbumQuery_album_media_exif_coordinates | null;
}
export interface shareAlbumQuery_album_media {
__typename: 'Media'
id: string
title: string
type: MediaType
__typename: "Media";
id: string;
title: string;
type: MediaType;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: shareAlbumQuery_album_media_thumbnail | null
thumbnail: shareAlbumQuery_album_media_thumbnail | null;
/**
* A list of different versions of files for this media that can be downloaded by the user
*/
downloads: shareAlbumQuery_album_media_downloads[]
downloads: shareAlbumQuery_album_media_downloads[];
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: shareAlbumQuery_album_media_highRes | null
highRes: shareAlbumQuery_album_media_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: shareAlbumQuery_album_media_videoWeb | null
exif: shareAlbumQuery_album_media_exif | null
videoWeb: shareAlbumQuery_album_media_videoWeb | null;
exif: shareAlbumQuery_album_media_exif | null;
}
export interface shareAlbumQuery_album {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* The albums contained in this album
*/
subAlbums: shareAlbumQuery_album_subAlbums[]
subAlbums: shareAlbumQuery_album_subAlbums[];
/**
* The media inside this album
*/
media: shareAlbumQuery_album_media[]
media: shareAlbumQuery_album_media[];
}
export interface shareAlbumQuery {
@@ -214,15 +214,15 @@ export interface shareAlbumQuery {
* Get album by id, user must own the album or be admin
* If valid tokenCredentials are provided, the album may be retrived without further authentication
*/
album: shareAlbumQuery_album
album: shareAlbumQuery_album;
}
export interface shareAlbumQueryVariables {
id: string
token: string
password?: string | null
mediaOrderBy?: string | null
mediaOrderDirection?: OrderDirection | null
limit?: number | null
offset?: number | null
id: string;
token: string;
password?: string | null;
mediaOrderBy?: string | null;
mediaOrderDirection?: OrderDirection | null;
limit?: number | null;
offset?: number | null;
}

View File

@@ -11,55 +11,55 @@
* Supported language translations of the user interface
*/
export enum LanguageTranslation {
Basque = 'Basque',
Danish = 'Danish',
English = 'English',
French = 'French',
German = 'German',
Italian = 'Italian',
Polish = 'Polish',
Portuguese = 'Portuguese',
Russian = 'Russian',
SimplifiedChinese = 'SimplifiedChinese',
Spanish = 'Spanish',
Swedish = 'Swedish',
TraditionalChinese = 'TraditionalChinese',
Turkish = 'Turkish',
Ukrainian = 'Ukrainian',
Basque = "Basque",
Danish = "Danish",
English = "English",
French = "French",
German = "German",
Italian = "Italian",
Polish = "Polish",
Portuguese = "Portuguese",
Russian = "Russian",
SimplifiedChinese = "SimplifiedChinese",
Spanish = "Spanish",
Swedish = "Swedish",
TraditionalChinese = "TraditionalChinese",
Turkish = "Turkish",
Ukrainian = "Ukrainian",
}
export enum MediaType {
Photo = 'Photo',
Video = 'Video',
Photo = "Photo",
Video = "Video",
}
/**
* Specified the type a particular notification is of
*/
export enum NotificationType {
Close = 'Close',
Message = 'Message',
Progress = 'Progress',
Close = "Close",
Message = "Message",
Progress = "Progress",
}
/**
* Used to specify which order to sort items in
*/
export enum OrderDirection {
ASC = 'ASC',
DESC = 'DESC',
ASC = "ASC",
DESC = "DESC",
}
/**
* Supported downsampling filters for thumbnail generation
*/
export enum ThumbnailFilter {
Box = 'Box',
CatmullRom = 'CatmullRom',
Lanczos = 'Lanczos',
Linear = 'Linear',
MitchellNetravali = 'MitchellNetravali',
NearestNeighbor = 'NearestNeighbor',
Box = "Box",
CatmullRom = "CatmullRom",
Lanczos = "Lanczos",
Linear = "Linear",
MitchellNetravali = "MitchellNetravali",
NearestNeighbor = "NearestNeighbor",
}
//==============================================================

View File

@@ -3,21 +3,21 @@
// @generated
// This file was automatically generated and should not be edited.
import { LanguageTranslation } from './globalTypes'
import { LanguageTranslation } from "./globalTypes";
// ====================================================
// GraphQL query operation: siteTranslation
// ====================================================
export interface siteTranslation_myUserPreferences {
__typename: 'UserPreferences'
id: string
language: LanguageTranslation | null
__typename: "UserPreferences";
id: string;
language: LanguageTranslation | null;
}
export interface siteTranslation {
/**
* User preferences for the logged in user
*/
myUserPreferences: siteTranslation_myUserPreferences
myUserPreferences: siteTranslation_myUserPreferences;
}

View File

@@ -8,18 +8,18 @@
// ====================================================
export interface albumPathQuery_album_path {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
}
export interface albumPathQuery_album {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
/**
* A breadcrumb list of all parent albums down to this one
*/
path: albumPathQuery_album_path[]
path: albumPathQuery_album_path[];
}
export interface albumPathQuery {
@@ -27,9 +27,9 @@ export interface albumPathQuery {
* Get album by id, user must own the album or be admin
* If valid tokenCredentials are provided, the album may be retrived without further authentication
*/
album: albumPathQuery_album
album: albumPathQuery_album;
}
export interface albumPathQueryVariables {
id: string
id: string;
}

View File

@@ -3,104 +3,104 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../__generated__/globalTypes'
import { MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL fragment: AlbumGalleryFields
// ====================================================
export interface AlbumGalleryFields_subAlbums_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface AlbumGalleryFields_subAlbums_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: AlbumGalleryFields_subAlbums_thumbnail_thumbnail | null
thumbnail: AlbumGalleryFields_subAlbums_thumbnail_thumbnail | null;
}
export interface AlbumGalleryFields_subAlbums {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: AlbumGalleryFields_subAlbums_thumbnail | null
thumbnail: AlbumGalleryFields_subAlbums_thumbnail | null;
}
export interface AlbumGalleryFields_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface AlbumGalleryFields_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface AlbumGalleryFields_media_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface AlbumGalleryFields_media {
__typename: 'Media'
id: string
type: MediaType
__typename: "Media";
id: string;
type: MediaType;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: AlbumGalleryFields_media_thumbnail | null
thumbnail: AlbumGalleryFields_media_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: AlbumGalleryFields_media_highRes | null
highRes: AlbumGalleryFields_media_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: AlbumGalleryFields_media_videoWeb | null
favorite: boolean
videoWeb: AlbumGalleryFields_media_videoWeb | null;
favorite: boolean;
}
export interface AlbumGalleryFields {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* The albums contained in this album
*/
subAlbums: AlbumGalleryFields_subAlbums[]
subAlbums: AlbumGalleryFields_subAlbums[];
/**
* The media inside this album
*/
media: AlbumGalleryFields_media[]
media: AlbumGalleryFields_media[];
}

View File

@@ -8,81 +8,81 @@
// ====================================================
export interface searchQuery_search_albums_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface searchQuery_search_albums_thumbnail {
__typename: 'Media'
__typename: "Media";
/**
* URL to display the media in a smaller resolution
*/
thumbnail: searchQuery_search_albums_thumbnail_thumbnail | null
thumbnail: searchQuery_search_albums_thumbnail_thumbnail | null;
}
export interface searchQuery_search_albums {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: searchQuery_search_albums_thumbnail | null
thumbnail: searchQuery_search_albums_thumbnail | null;
}
export interface searchQuery_search_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface searchQuery_search_media_album {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
}
export interface searchQuery_search_media {
__typename: 'Media'
id: string
title: string
__typename: "Media";
id: string;
title: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: searchQuery_search_media_thumbnail | null
thumbnail: searchQuery_search_media_thumbnail | null;
/**
* The album that holds the media
*/
album: searchQuery_search_media_album
album: searchQuery_search_media_album;
}
export interface searchQuery_search {
__typename: 'SearchResult'
__typename: "SearchResult";
/**
* The string that was searched for
*/
query: string
query: string;
/**
* A list of albums that matched the query
*/
albums: searchQuery_search_albums[]
albums: searchQuery_search_albums[];
/**
* A list of media that matched the query
*/
media: searchQuery_search_media[]
media: searchQuery_search_media[];
}
export interface searchQuery {
/**
* Perform a search query on the contents of the media library
*/
search: searchQuery_search
search: searchQuery_search;
}
export interface searchQueryVariables {
query: string
query: string;
}

View File

@@ -8,16 +8,16 @@
// ====================================================
export interface adminQuery_myUser {
__typename: 'User'
__typename: "User";
/**
* Whether or not the user has admin privileges
*/
admin: boolean
admin: boolean;
}
export interface adminQuery {
/**
* Information about the currently logged in user
*/
myUser: adminQuery_myUser
myUser: adminQuery_myUser;
}

View File

@@ -8,13 +8,13 @@
// ====================================================
export interface faceDetectionEnabled_siteInfo {
__typename: 'SiteInfo'
__typename: "SiteInfo";
/**
* Whether or not face detection is enabled and working
*/
faceDetectionEnabled: boolean
faceDetectionEnabled: boolean;
}
export interface faceDetectionEnabled {
siteInfo: faceDetectionEnabled_siteInfo
siteInfo: faceDetectionEnabled_siteInfo;
}

View File

@@ -11,5 +11,5 @@ export interface mapboxEnabledQuery {
/**
* Get the mapbox api token, returns null if mapbox is not enabled
*/
mapboxToken: string | null
mapboxToken: string | null;
}

View File

@@ -11,9 +11,9 @@ export interface mapboxToken {
/**
* Get the mapbox api token, returns null if mapbox is not enabled
*/
mapboxToken: string | null
mapboxToken: string | null;
/**
* Get media owned by the logged in user, returned in GeoJson format
*/
myMediaGeoJson: Any
myMediaGeoJson: Any;
}

View File

@@ -3,45 +3,45 @@
// @generated
// This file was automatically generated and should not be edited.
import { NotificationType } from './../../../__generated__/globalTypes'
import { NotificationType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL subscription operation: notificationSubscription
// ====================================================
export interface notificationSubscription_notification {
__typename: 'Notification'
__typename: "Notification";
/**
* A key used to identify the notification, new notification updates with the same key, should replace the old notifications
*/
key: string
type: NotificationType
key: string;
type: NotificationType;
/**
* The text for the title of the notification
*/
header: string
header: string;
/**
* The text for the body of the notification
*/
content: string
content: string;
/**
* A value between 0 and 1 when the notification type is `Progress`
*/
progress: number | null
progress: number | null;
/**
* Whether or not the message of the notification is positive, the UI might reflect this with a green color
*/
positive: boolean
positive: boolean;
/**
* Whether or not the message of the notification is negative, the UI might reflect this with a red color
*/
negative: boolean
negative: boolean;
/**
* Time in milliseconds before the notification should close
*/
timeout: number | null
timeout: number | null;
}
export interface notificationSubscription {
notification: notificationSubscription_notification
notification: notificationSubscription_notification;
}

View File

@@ -3,63 +3,63 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../__generated__/globalTypes'
import { MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL fragment: MediaGalleryFields
// ====================================================
export interface MediaGalleryFields_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface MediaGalleryFields_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface MediaGalleryFields_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface MediaGalleryFields {
__typename: 'Media'
id: string
type: MediaType
__typename: "Media";
id: string;
type: MediaType;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: MediaGalleryFields_thumbnail | null
thumbnail: MediaGalleryFields_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: MediaGalleryFields_highRes | null
highRes: MediaGalleryFields_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: MediaGalleryFields_videoWeb | null
favorite: boolean
videoWeb: MediaGalleryFields_videoWeb | null;
favorite: boolean;
}

View File

@@ -8,19 +8,19 @@
// ====================================================
export interface markMediaFavorite_favoriteMedia {
__typename: 'Media'
id: string
favorite: boolean
__typename: "Media";
id: string;
favorite: boolean;
}
export interface markMediaFavorite {
/**
* Mark or unmark a media as being a favorite
*/
favoriteMedia: markMediaFavorite_favoriteMedia
favoriteMedia: markMediaFavorite_favoriteMedia;
}
export interface markMediaFavoriteVariables {
mediaId: string
favorite: boolean
mediaId: string;
favorite: boolean;
}

View File

@@ -3,242 +3,242 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../../__generated__/globalTypes'
import { MediaType } from "./../../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: sidebarMediaQuery
// ====================================================
export interface sidebarMediaQuery_media_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface sidebarMediaQuery_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface sidebarMediaQuery_media_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface sidebarMediaQuery_media_videoMetadata {
__typename: 'VideoMetadata'
id: string
width: number
height: number
duration: number
codec: string | null
framerate: number | null
bitrate: string | null
colorProfile: string | null
audio: string | null
__typename: "VideoMetadata";
id: string;
width: number;
height: number;
duration: number;
codec: string | null;
framerate: number | null;
bitrate: string | null;
colorProfile: string | null;
audio: string | null;
}
export interface sidebarMediaQuery_media_exif_coordinates {
__typename: 'Coordinates'
__typename: "Coordinates";
/**
* GPS latitude in degrees
*/
latitude: number
latitude: number;
/**
* GPS longitude in degrees
*/
longitude: number
longitude: number;
}
export interface sidebarMediaQuery_media_exif {
__typename: 'MediaEXIF'
id: string
__typename: "MediaEXIF";
id: string;
/**
* The description of the image
*/
description: string | null
description: string | null;
/**
* The model name of the camera
*/
camera: string | null
camera: string | null;
/**
* The maker of the camera
*/
maker: string | null
maker: string | null;
/**
* The name of the lens
*/
lens: string | null
dateShot: Time | null
lens: string | null;
dateShot: Time | null;
/**
* The exposure time of the image
*/
exposure: number | null
exposure: number | null;
/**
* The aperature stops of the image
*/
aperture: number | null
aperture: number | null;
/**
* The ISO setting of the image
*/
iso: number | null
iso: number | null;
/**
* The focal length of the lens, when the image was taken
*/
focalLength: number | null
focalLength: number | null;
/**
* A formatted description of the flash settings, when the image was taken
*/
flash: number | null
flash: number | null;
/**
* An index describing the mode for adjusting the exposure of the image
*/
exposureProgram: number | null
exposureProgram: number | null;
/**
* GPS coordinates of where the image was taken
*/
coordinates: sidebarMediaQuery_media_exif_coordinates | null
coordinates: sidebarMediaQuery_media_exif_coordinates | null;
}
export interface sidebarMediaQuery_media_album_path {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
}
export interface sidebarMediaQuery_media_album {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
/**
* A breadcrumb list of all parent albums down to this one
*/
path: sidebarMediaQuery_media_album_path[]
path: sidebarMediaQuery_media_album_path[];
}
export interface sidebarMediaQuery_media_faces_rectangle {
__typename: 'FaceRectangle'
minX: number
maxX: number
minY: number
maxY: number
__typename: "FaceRectangle";
minX: number;
maxX: number;
minY: number;
maxY: number;
}
export interface sidebarMediaQuery_media_faces_faceGroup {
__typename: 'FaceGroup'
id: string
__typename: "FaceGroup";
id: string;
/**
* The name of the person
*/
label: string | null
label: string | null;
/**
* The total number of images in this collection
*/
imageFaceCount: number
imageFaceCount: number;
}
export interface sidebarMediaQuery_media_faces_media_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface sidebarMediaQuery_media_faces_media {
__typename: 'Media'
id: string
title: string
__typename: "Media";
id: string;
title: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: sidebarMediaQuery_media_faces_media_thumbnail | null
thumbnail: sidebarMediaQuery_media_faces_media_thumbnail | null;
}
export interface sidebarMediaQuery_media_faces {
__typename: 'ImageFace'
id: string
__typename: "ImageFace";
id: string;
/**
* A bounding box of where on the image the face is present
*/
rectangle: sidebarMediaQuery_media_faces_rectangle
rectangle: sidebarMediaQuery_media_faces_rectangle;
/**
* The `FaceGroup` that contains this `ImageFace`
*/
faceGroup: sidebarMediaQuery_media_faces_faceGroup
faceGroup: sidebarMediaQuery_media_faces_faceGroup;
/**
* A reference to the image the face appears on
*/
media: sidebarMediaQuery_media_faces_media
media: sidebarMediaQuery_media_faces_media;
}
export interface sidebarMediaQuery_media {
__typename: 'Media'
id: string
title: string
type: MediaType
__typename: "Media";
id: string;
title: string;
type: MediaType;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: sidebarMediaQuery_media_highRes | null
highRes: sidebarMediaQuery_media_highRes | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: sidebarMediaQuery_media_thumbnail | null
thumbnail: sidebarMediaQuery_media_thumbnail | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: sidebarMediaQuery_media_videoWeb | null
videoMetadata: sidebarMediaQuery_media_videoMetadata | null
exif: sidebarMediaQuery_media_exif | null
videoWeb: sidebarMediaQuery_media_videoWeb | null;
videoMetadata: sidebarMediaQuery_media_videoMetadata | null;
exif: sidebarMediaQuery_media_exif | null;
/**
* The album that holds the media
*/
album: sidebarMediaQuery_media_album
album: sidebarMediaQuery_media_album;
/**
* A list of faces present on the image
*/
faces: sidebarMediaQuery_media_faces[]
faces: sidebarMediaQuery_media_faces[];
}
export interface sidebarMediaQuery {
@@ -246,9 +246,9 @@ export interface sidebarMediaQuery {
* Get media by id, user must own the media or be admin.
* If valid tokenCredentials are provided, the media may be retrived without further authentication
*/
media: sidebarMediaQuery_media
media: sidebarMediaQuery_media;
}
export interface sidebarMediaQueryVariables {
id: string
id: string;
}

View File

@@ -8,9 +8,9 @@
// ====================================================
export interface getAlbumSidebar_album {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
}
export interface getAlbumSidebar {
@@ -18,9 +18,9 @@ export interface getAlbumSidebar {
* Get album by id, user must own the album or be admin
* If valid tokenCredentials are provided, the album may be retrived without further authentication
*/
album: getAlbumSidebar_album
album: getAlbumSidebar_album;
}
export interface getAlbumSidebarVariables {
id: string
id: string;
}

View File

@@ -8,38 +8,38 @@
// ====================================================
export interface resetAlbumCover_resetAlbumCover_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface resetAlbumCover_resetAlbumCover_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: resetAlbumCover_resetAlbumCover_thumbnail_thumbnail | null
thumbnail: resetAlbumCover_resetAlbumCover_thumbnail_thumbnail | null;
}
export interface resetAlbumCover_resetAlbumCover {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: resetAlbumCover_resetAlbumCover_thumbnail | null
thumbnail: resetAlbumCover_resetAlbumCover_thumbnail | null;
}
export interface resetAlbumCover {
/**
* Reset the assigned cover photo for an album
*/
resetAlbumCover: resetAlbumCover_resetAlbumCover
resetAlbumCover: resetAlbumCover_resetAlbumCover;
}
export interface resetAlbumCoverVariables {
albumID: string
albumID: string;
}

View File

@@ -8,38 +8,38 @@
// ====================================================
export interface setAlbumCover_setAlbumCover_thumbnail_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface setAlbumCover_setAlbumCover_thumbnail {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: setAlbumCover_setAlbumCover_thumbnail_thumbnail | null
thumbnail: setAlbumCover_setAlbumCover_thumbnail_thumbnail | null;
}
export interface setAlbumCover_setAlbumCover {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
/**
* An image in this album used for previewing this album
*/
thumbnail: setAlbumCover_setAlbumCover_thumbnail | null
thumbnail: setAlbumCover_setAlbumCover_thumbnail | null;
}
export interface setAlbumCover {
/**
* Assign a cover photo to an album
*/
setAlbumCover: setAlbumCover_setAlbumCover
setAlbumCover: setAlbumCover_setAlbumCover;
}
export interface setAlbumCoverVariables {
coverID: string
coverID: string;
}

View File

@@ -8,19 +8,19 @@
// ====================================================
export interface sidebarAlbumAddShare_shareAlbum {
__typename: 'ShareToken'
token: string
__typename: "ShareToken";
token: string;
}
export interface sidebarAlbumAddShare {
/**
* Generate share token for album
*/
shareAlbum: sidebarAlbumAddShare_shareAlbum
shareAlbum: sidebarAlbumAddShare_shareAlbum;
}
export interface sidebarAlbumAddShareVariables {
id: string
password?: string | null
expire?: Time | null
id: string;
password?: string | null;
expire?: Time | null;
}

View File

@@ -8,41 +8,41 @@
// ====================================================
export interface sidebarDownloadQuery_media_downloads_mediaUrl {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
/**
* The file size of the resource in bytes
*/
fileSize: number
fileSize: number;
}
export interface sidebarDownloadQuery_media_downloads {
__typename: 'MediaDownload'
__typename: "MediaDownload";
/**
* A description of the role of the media file
*/
title: string
mediaUrl: sidebarDownloadQuery_media_downloads_mediaUrl
title: string;
mediaUrl: sidebarDownloadQuery_media_downloads_mediaUrl;
}
export interface sidebarDownloadQuery_media {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* A list of different versions of files for this media that can be downloaded by the user
*/
downloads: sidebarDownloadQuery_media_downloads[]
downloads: sidebarDownloadQuery_media_downloads[];
}
export interface sidebarDownloadQuery {
@@ -50,9 +50,9 @@ export interface sidebarDownloadQuery {
* Get media by id, user must own the media or be admin.
* If valid tokenCredentials are provided, the media may be retrived without further authentication
*/
media: sidebarDownloadQuery_media
media: sidebarDownloadQuery_media;
}
export interface sidebarDownloadQueryVariables {
mediaId: string
mediaId: string;
}

View File

@@ -8,22 +8,22 @@
// ====================================================
export interface sidebarGetAlbumShares_album_shares {
__typename: 'ShareToken'
id: string
token: string
__typename: "ShareToken";
id: string;
token: string;
/**
* Whether or not a password is needed to access the share
*/
hasPassword: boolean
hasPassword: boolean;
}
export interface sidebarGetAlbumShares_album {
__typename: 'Album'
id: string
__typename: "Album";
id: string;
/**
* A list of share tokens pointing to this album, owned by the logged in user
*/
shares: sidebarGetAlbumShares_album_shares[]
shares: sidebarGetAlbumShares_album_shares[];
}
export interface sidebarGetAlbumShares {
@@ -31,9 +31,9 @@ export interface sidebarGetAlbumShares {
* Get album by id, user must own the album or be admin
* If valid tokenCredentials are provided, the album may be retrived without further authentication
*/
album: sidebarGetAlbumShares_album
album: sidebarGetAlbumShares_album;
}
export interface sidebarGetAlbumSharesVariables {
id: string
id: string;
}

View File

@@ -8,22 +8,22 @@
// ====================================================
export interface sidebarGetPhotoShares_media_shares {
__typename: 'ShareToken'
id: string
token: string
__typename: "ShareToken";
id: string;
token: string;
/**
* Whether or not a password is needed to access the share
*/
hasPassword: boolean
hasPassword: boolean;
}
export interface sidebarGetPhotoShares_media {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* A list of share tokens pointing to this media, owned byt the logged in user
*/
shares: sidebarGetPhotoShares_media_shares[]
shares: sidebarGetPhotoShares_media_shares[];
}
export interface sidebarGetPhotoShares {
@@ -31,9 +31,9 @@ export interface sidebarGetPhotoShares {
* Get media by id, user must own the media or be admin.
* If valid tokenCredentials are provided, the media may be retrived without further authentication
*/
media: sidebarGetPhotoShares_media
media: sidebarGetPhotoShares_media;
}
export interface sidebarGetPhotoSharesVariables {
id: string
id: string;
}

View File

@@ -8,19 +8,19 @@
// ====================================================
export interface sidebarPhotoAddShare_shareMedia {
__typename: 'ShareToken'
token: string
__typename: "ShareToken";
token: string;
}
export interface sidebarPhotoAddShare {
/**
* Generate share token for media
*/
shareMedia: sidebarPhotoAddShare_shareMedia
shareMedia: sidebarPhotoAddShare_shareMedia;
}
export interface sidebarPhotoAddShareVariables {
id: string
password?: string | null
expire?: Time | null
id: string;
password?: string | null;
expire?: Time | null;
}

View File

@@ -8,22 +8,22 @@
// ====================================================
export interface sidebarProtectShare_protectShareToken {
__typename: 'ShareToken'
token: string
__typename: "ShareToken";
token: string;
/**
* Whether or not a password is needed to access the share
*/
hasPassword: boolean
hasPassword: boolean;
}
export interface sidebarProtectShare {
/**
* Set a password for a token, if null is passed for the password argument, the password will be cleared
*/
protectShareToken: sidebarProtectShare_protectShareToken
protectShareToken: sidebarProtectShare_protectShareToken;
}
export interface sidebarProtectShareVariables {
token: string
password?: string | null
token: string;
password?: string | null;
}

View File

@@ -8,17 +8,17 @@
// ====================================================
export interface sidebareDeleteShare_deleteShareToken {
__typename: 'ShareToken'
token: string
__typename: "ShareToken";
token: string;
}
export interface sidebareDeleteShare {
/**
* Delete a share token by it's token value
*/
deleteShareToken: sidebareDeleteShare_deleteShareToken
deleteShareToken: sidebareDeleteShare_deleteShareToken;
}
export interface sidebareDeleteShareVariables {
token: string
token: string;
}

View File

@@ -8,17 +8,17 @@
// ====================================================
export interface earliestMedia_myMedia {
__typename: 'Media'
id: string
__typename: "Media";
id: string;
/**
* The date the image was shot or the date it was imported as a fallback
*/
date: Time
date: Time;
}
export interface earliestMedia {
/**
* List of media owned by the logged in user
*/
myMedia: earliestMedia_myMedia[]
myMedia: earliestMedia_myMedia[];
}

View File

@@ -3,100 +3,100 @@
// @generated
// This file was automatically generated and should not be edited.
import { MediaType } from './../../../__generated__/globalTypes'
import { MediaType } from "./../../../__generated__/globalTypes";
// ====================================================
// GraphQL query operation: myTimeline
// ====================================================
export interface myTimeline_myTimeline_thumbnail {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface myTimeline_myTimeline_highRes {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
/**
* Width of the image in pixels
*/
width: number
width: number;
/**
* Height of the image in pixels
*/
height: number
height: number;
}
export interface myTimeline_myTimeline_videoWeb {
__typename: 'MediaURL'
__typename: "MediaURL";
/**
* URL for previewing the image
*/
url: string
url: string;
}
export interface myTimeline_myTimeline_album {
__typename: 'Album'
id: string
title: string
__typename: "Album";
id: string;
title: string;
}
export interface myTimeline_myTimeline {
__typename: 'Media'
id: string
title: string
type: MediaType
__typename: "Media";
id: string;
title: string;
type: MediaType;
/**
* A short string that can be used to generate a blured version of the media, to show while the original is loading
*/
blurhash: string | null
blurhash: string | null;
/**
* URL to display the media in a smaller resolution
*/
thumbnail: myTimeline_myTimeline_thumbnail | null
thumbnail: myTimeline_myTimeline_thumbnail | null;
/**
* URL to display the photo in full resolution, will be null for videos
*/
highRes: myTimeline_myTimeline_highRes | null
highRes: myTimeline_myTimeline_highRes | null;
/**
* URL to get the video in a web format that can be played in the browser, will be null for photos
*/
videoWeb: myTimeline_myTimeline_videoWeb | null
favorite: boolean
videoWeb: myTimeline_myTimeline_videoWeb | null;
favorite: boolean;
/**
* The album that holds the media
*/
album: myTimeline_myTimeline_album
album: myTimeline_myTimeline_album;
/**
* The date the image was shot or the date it was imported as a fallback
*/
date: Time
date: Time;
}
export interface myTimeline {
/**
* Get a list of media, ordered first by day, then by album if multiple media was found for the same day.
*/
myTimeline: myTimeline_myTimeline[]
myTimeline: myTimeline_myTimeline[];
}
export interface myTimelineVariables {
onlyFavorites?: boolean | null
limit?: number | null
offset?: number | null
fromDate?: Time | null
onlyFavorites?: boolean | null;
limit?: number | null;
offset?: number | null;
fromDate?: Time | null;
}