2019-03-26 15:35:06 +00:00
|
|
|
# Refer to https://gqlgen.com/config/ for detailed .gqlgen.yml documentation.
|
2019-02-09 12:30:49 +00:00
|
|
|
|
|
|
|
schema:
|
2019-03-26 15:35:06 +00:00
|
|
|
- "graphql/schema/types/*.graphql"
|
|
|
|
- "graphql/schema/*.graphql"
|
2019-02-09 12:30:49 +00:00
|
|
|
exec:
|
2022-04-25 05:55:05 +00:00
|
|
|
filename: internal/api/generated_exec.go
|
2019-02-09 12:30:49 +00:00
|
|
|
model:
|
2022-04-25 05:55:05 +00:00
|
|
|
filename: internal/api/generated_models.go
|
2019-02-09 12:30:49 +00:00
|
|
|
resolver:
|
2022-03-17 00:33:59 +00:00
|
|
|
filename: internal/api/resolver.go
|
2019-02-09 12:30:49 +00:00
|
|
|
type: Resolver
|
|
|
|
|
|
|
|
struct_tag: gqlgen
|
|
|
|
|
2022-04-25 05:55:05 +00:00
|
|
|
autobind:
|
2023-11-20 02:09:12 +00:00
|
|
|
- github.com/stashapp/stash/internal/api
|
2022-04-25 05:55:05 +00:00
|
|
|
- github.com/stashapp/stash/pkg/models
|
|
|
|
- github.com/stashapp/stash/pkg/plugin
|
|
|
|
- github.com/stashapp/stash/pkg/scraper
|
|
|
|
- github.com/stashapp/stash/internal/identify
|
|
|
|
- github.com/stashapp/stash/internal/dlna
|
|
|
|
- github.com/stashapp/stash/pkg/scraper/stashbox
|
|
|
|
|
2019-02-09 12:30:49 +00:00
|
|
|
models:
|
Support a minModTime input on metadata scans. (#1951)
* Support a maxAge input on metadata scans.
Extend the GraphQL world with a Duration scalar. It is parsed as a
typical Go duration, i.e., "4h" is 4 hours. Alternatively, one can
pass an integer which is interpreted as seconds.
Extend Mutation.metadataScan(input: $input) to support a new optional
value, maxAge. If set, the scanner will exit early if the file it
is looking at has an mtime older than the cutOff point generated by
now() - maxAge
This speeds up scanning in the case where the user knows how old the
changes on disk are, by exiting the scan early if that is the case.
* Change maxAge into minModTime
Introduce a `Timestamp` scalar, so we have a scalar we control. Let
it accept three formats:
* RFC3339Nano
* @UNIX where UNIX is a unix-timestamp: seconds after 01-01-1970
* '<4h': a timestamp relative to the current server time
This scalar parses to a time.Time.
Use MinModTime in the scanner to filter out a large number of scan
analyzes by exiting the scan operation early.
* Heed the linter, perform errcheck
* Rename test vars for consistency.
* Code review: move minModTime into queuefiles
* Remove the ability to input Unix timestamps
Test failures on the CI-system explains why this is undesirable. It is
not clear what timezone one is operating in when entering a unix
timestamp. We could go with UTC, but it is so much easier to require an
RFC3339 timestamp, which avoids this problem entirely.
* Move the minModTime field into filters
Create a new filter input object for metadata scans, and push the
minModTime field in there. If we come up with new filters, they can
be added to that input object rather than cluttering the main input
object.
* Use utils.ParseDateStringAsTime
Replace time.Parse with utils.ParseDateStringAsTime
While here, add some more test cases for that parser.
2021-11-26 00:48:31 +00:00
|
|
|
# Scalars
|
2023-09-01 00:39:29 +00:00
|
|
|
ID:
|
|
|
|
model:
|
|
|
|
- github.com/99designs/gqlgen/graphql.ID
|
|
|
|
- github.com/99designs/gqlgen/graphql.IntID
|
|
|
|
- github.com/stashapp/stash/pkg/models.FileID
|
|
|
|
- github.com/stashapp/stash/pkg/models.FolderID
|
2022-07-13 06:30:54 +00:00
|
|
|
Int64:
|
2023-07-25 23:15:55 +00:00
|
|
|
model: github.com/99designs/gqlgen/graphql.Int64
|
|
|
|
Timestamp:
|
|
|
|
model: github.com/stashapp/stash/internal/api.Timestamp
|
2023-10-16 05:15:12 +00:00
|
|
|
BoolMap:
|
|
|
|
model: github.com/stashapp/stash/internal/api.BoolMap
|
2024-02-06 22:49:32 +00:00
|
|
|
PluginConfigMap:
|
|
|
|
model: github.com/stashapp/stash/internal/api.PluginConfigMap
|
2022-07-13 06:30:54 +00:00
|
|
|
# define to force resolvers
|
|
|
|
Image:
|
|
|
|
model: github.com/stashapp/stash/pkg/models.Image
|
|
|
|
fields:
|
|
|
|
title:
|
|
|
|
resolver: true
|
2023-09-01 00:39:29 +00:00
|
|
|
VideoFile:
|
|
|
|
fields:
|
|
|
|
# override float fields - #1572
|
|
|
|
duration:
|
|
|
|
fieldName: DurationFinite
|
|
|
|
frame_rate:
|
|
|
|
fieldName: FrameRateFinite
|
2022-07-13 06:30:54 +00:00
|
|
|
# autobind on config causes generation issues
|
2023-03-16 23:52:49 +00:00
|
|
|
BlobsStorageType:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.BlobsStorageType
|
2022-04-25 05:55:05 +00:00
|
|
|
StashConfig:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.StashConfig
|
|
|
|
StashConfigInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.StashConfigInput
|
|
|
|
StashBoxInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.StashBoxInput
|
|
|
|
ConfigImageLightboxResult:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.ConfigImageLightboxResult
|
|
|
|
ImageLightboxDisplayMode:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.ImageLightboxDisplayMode
|
|
|
|
ImageLightboxScrollMode:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.ImageLightboxScrollMode
|
|
|
|
ConfigDisableDropdownCreate:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.ConfigDisableDropdownCreate
|
|
|
|
ScanMetadataOptions:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.ScanMetadataOptions
|
2024-02-23 04:56:00 +00:00
|
|
|
CleanGeneratedInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/task.CleanGeneratedOptions
|
2022-04-25 05:55:05 +00:00
|
|
|
AutoTagMetadataOptions:
|
|
|
|
model: github.com/stashapp/stash/internal/manager/config.AutoTagMetadataOptions
|
|
|
|
SystemStatus:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.SystemStatus
|
|
|
|
SystemStatusEnum:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.SystemStatusEnum
|
|
|
|
ImportDuplicateEnum:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ImportDuplicateEnum
|
|
|
|
SetupInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.SetupInput
|
|
|
|
MigrateInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.MigrateInput
|
|
|
|
ScanMetadataInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ScanMetadataInput
|
|
|
|
GenerateMetadataInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.GenerateMetadataInput
|
|
|
|
GeneratePreviewOptionsInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.GeneratePreviewOptionsInput
|
|
|
|
AutoTagMetadataInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.AutoTagMetadataInput
|
|
|
|
CleanMetadataInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.CleanMetadataInput
|
2023-07-30 23:50:24 +00:00
|
|
|
StashBoxBatchTagInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.StashBoxBatchTagInput
|
2022-04-25 05:55:05 +00:00
|
|
|
SceneStreamEndpoint:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.SceneStreamEndpoint
|
|
|
|
ExportObjectTypeInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ExportObjectTypeInput
|
|
|
|
ExportObjectsInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ExportObjectsInput
|
|
|
|
ImportObjectsInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ImportObjectsInput
|
|
|
|
ScanMetaDataFilterInput:
|
|
|
|
model: github.com/stashapp/stash/internal/manager.ScanMetaDataFilterInput
|
|
|
|
# renamed types
|
2022-07-13 06:30:54 +00:00
|
|
|
BulkUpdateIdMode:
|
|
|
|
model: github.com/stashapp/stash/pkg/models.RelationshipUpdateMode
|
2022-04-25 05:55:05 +00:00
|
|
|
DLNAStatus:
|
|
|
|
model: github.com/stashapp/stash/internal/dlna.Status
|
|
|
|
DLNAIP:
|
|
|
|
model: github.com/stashapp/stash/internal/dlna.Dlnaip
|
|
|
|
IdentifySource:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.Source
|
|
|
|
IdentifyMetadataTaskOptions:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.Options
|
|
|
|
IdentifyMetadataInput:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.Options
|
|
|
|
IdentifyMetadataOptions:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.MetadataOptions
|
|
|
|
IdentifyFieldOptions:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.FieldOptions
|
|
|
|
IdentifyFieldStrategy:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.FieldStrategy
|
|
|
|
ScraperSource:
|
|
|
|
model: github.com/stashapp/stash/pkg/scraper.Source
|
|
|
|
# rebind inputs to types
|
2022-07-13 06:30:54 +00:00
|
|
|
StashIDInput:
|
|
|
|
model: github.com/stashapp/stash/pkg/models.StashID
|
2022-04-25 05:55:05 +00:00
|
|
|
IdentifySourceInput:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.Source
|
|
|
|
IdentifyFieldOptionsInput:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.FieldOptions
|
|
|
|
IdentifyMetadataOptionsInput:
|
|
|
|
model: github.com/stashapp/stash/internal/identify.MetadataOptions
|
|
|
|
ScraperSourceInput:
|
|
|
|
model: github.com/stashapp/stash/pkg/scraper.Source
|
2023-09-01 00:04:56 +00:00
|
|
|
SavedFindFilterType:
|
|
|
|
model: github.com/stashapp/stash/pkg/models.FindFilterType
|
2023-10-18 03:09:13 +00:00
|
|
|
# force resolvers
|
|
|
|
ConfigResult:
|
|
|
|
fields:
|
|
|
|
plugins:
|
|
|
|
resolver: true
|
2022-04-25 05:55:05 +00:00
|
|
|
|