From d03a57363bf50be06a95b5ee773b6e3cdfe1c6fa Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 12:38:37 -0400 Subject: [PATCH 01/40] feat: generate GraphQL client from schema --- README.md | 89 +- composer.json | 3 +- src/Exception/QueryException.php | 18 +- src/GraphQL/Client.php | 203 +- .../Concerns/HasMutationOperations.php | 524 -- src/GraphQL/Concerns/HasQueryOperations.php | 447 -- src/GraphQL/Definition/ArgumentDefinition.php | 56 + src/GraphQL/Definition/EnumTypeDefinition.php | 26 + src/GraphQL/Definition/FieldDefinition.php | 63 + .../Definition/InputObjectTypeDefinition.php | 26 + .../Definition/ObjectTypeDefinition.php | 26 + .../Definition/ScalarTypeDefinition.php | 26 + src/GraphQL/Definition/TypeReference.php | 84 + src/GraphQL/EnumValue.php | 18 + src/GraphQL/Generated/Enums/AbstractField.php | 33 + src/GraphQL/Generated/Enums/AbstractType.php | 25 + .../Enums/AccessibilityException.php | 27 + .../Generated/Enums/AccessibilityStandard.php | 41 + .../Enums/AdditionalResourceField.php | 45 + .../Generated/Enums/AffiliationField.php | 35 + src/GraphQL/Generated/Enums/AwardField.php | 45 + src/GraphQL/Generated/Enums/AwardRole.php | 35 + .../Generated/Enums/BiographyField.php | 31 + .../Generated/Enums/BookReviewField.php | 39 + .../Generated/Enums/ChecksumAlgorithm.php | 27 + src/GraphQL/Generated/Enums/ContactField.php | 33 + src/GraphQL/Generated/Enums/ContactType.php | 23 + .../Generated/Enums/ContributionField.php | 45 + .../Generated/Enums/ContributionType.php | 49 + .../Generated/Enums/ContributorField.php | 37 + src/GraphQL/Generated/Enums/CountryCode.php | 519 ++ src/GraphQL/Generated/Enums/CurrencyCode.php | 625 +++ src/GraphQL/Generated/Enums/Direction.php | 25 + .../Generated/Enums/EndorsementField.php | 37 + src/GraphQL/Generated/Enums/Expression.php | 25 + src/GraphQL/Generated/Enums/FileType.php | 29 + src/GraphQL/Generated/Enums/FundingField.php | 39 + src/GraphQL/Generated/Enums/ImprintField.php | 39 + .../Generated/Enums/InstitutionField.php | 35 + src/GraphQL/Generated/Enums/IssueField.php | 35 + src/GraphQL/Generated/Enums/LanguageCode.php | 995 ++++ src/GraphQL/Generated/Enums/LanguageField.php | 33 + .../Generated/Enums/LanguageRelation.php | 27 + src/GraphQL/Generated/Enums/LengthUnit.php | 27 + src/GraphQL/Generated/Enums/LocaleCode.php | 1233 +++++ src/GraphQL/Generated/Enums/LocationField.php | 41 + .../Generated/Enums/LocationPlatform.php | 57 + src/GraphQL/Generated/Enums/MarkupFormat.php | 29 + src/GraphQL/Generated/Enums/PriceField.php | 33 + .../Generated/Enums/PublicationField.php | 57 + .../Generated/Enums/PublicationType.php | 45 + .../Generated/Enums/PublisherField.php | 39 + .../Generated/Enums/ReferenceField.php | 71 + src/GraphQL/Generated/Enums/RelationType.php | 37 + src/GraphQL/Generated/Enums/ResourceType.php | 47 + src/GraphQL/Generated/Enums/SeriesField.php | 41 + src/GraphQL/Generated/Enums/SeriesType.php | 25 + src/GraphQL/Generated/Enums/SubjectField.php | 35 + src/GraphQL/Generated/Enums/SubjectType.php | 33 + src/GraphQL/Generated/Enums/TitleField.php | 35 + src/GraphQL/Generated/Enums/WeightUnit.php | 25 + .../Enums/WorkFeaturedVideoField.php | 37 + src/GraphQL/Generated/Enums/WorkField.php | 95 + .../Generated/Enums/WorkRelationField.php | 35 + src/GraphQL/Generated/Enums/WorkStatus.php | 33 + src/GraphQL/Generated/Enums/WorkType.php | 33 + .../Generated/Inputs/AbstractOrderBy.php | 54 + .../Inputs/AdditionalResourceOrderBy.php | 54 + .../Generated/Inputs/AffiliationOrderBy.php | 54 + src/GraphQL/Generated/Inputs/AwardOrderBy.php | 54 + .../Generated/Inputs/BiographyOrderBy.php | 54 + .../Generated/Inputs/BookReviewOrderBy.php | 54 + .../Generated/Inputs/CompleteFileUpload.php | 40 + .../Generated/Inputs/ContactOrderBy.php | 54 + .../Generated/Inputs/ContributionOrderBy.php | 54 + .../Generated/Inputs/ContributorOrderBy.php | 54 + .../Generated/Inputs/EndorsementOrderBy.php | 54 + .../Generated/Inputs/FundingOrderBy.php | 54 + .../Generated/Inputs/ImprintOrderBy.php | 54 + .../Generated/Inputs/InstitutionOrderBy.php | 54 + src/GraphQL/Generated/Inputs/IssueOrderBy.php | 54 + .../Generated/Inputs/LanguageOrderBy.php | 54 + .../Generated/Inputs/LocationOrderBy.php | 54 + src/GraphQL/Generated/Inputs/NewAbstract.php | 96 + .../Inputs/NewAdditionalResource.php | 142 + .../NewAdditionalResourceFileUpload.php | 82 + .../Generated/Inputs/NewAffiliation.php | 78 + src/GraphQL/Generated/Inputs/NewAward.php | 138 + src/GraphQL/Generated/Inputs/NewBiography.php | 82 + .../Generated/Inputs/NewBookReview.php | 184 + src/GraphQL/Generated/Inputs/NewContact.php | 68 + .../Generated/Inputs/NewContribution.php | 134 + .../Generated/Inputs/NewContributor.php | 84 + .../Generated/Inputs/NewEndorsement.php | 118 + .../Inputs/NewFrontcoverFileUpload.php | 82 + src/GraphQL/Generated/Inputs/NewFunding.php | 94 + src/GraphQL/Generated/Inputs/NewImprint.php | 134 + .../Generated/Inputs/NewInstitution.php | 70 + src/GraphQL/Generated/Inputs/NewIssue.php | 78 + src/GraphQL/Generated/Inputs/NewLanguage.php | 68 + src/GraphQL/Generated/Inputs/NewLocation.php | 108 + src/GraphQL/Generated/Inputs/NewPrice.php | 68 + .../Generated/Inputs/NewPublication.php | 184 + .../Inputs/NewPublicationFileUpload.php | 82 + src/GraphQL/Generated/Inputs/NewPublisher.php | 90 + src/GraphQL/Generated/Inputs/NewReference.php | 254 + src/GraphQL/Generated/Inputs/NewSeries.php | 118 + src/GraphQL/Generated/Inputs/NewSubject.php | 82 + src/GraphQL/Generated/Inputs/NewTitle.php | 106 + src/GraphQL/Generated/Inputs/NewWork.php | 328 ++ .../Generated/Inputs/NewWorkFeaturedVideo.php | 92 + .../Inputs/NewWorkFeaturedVideoFileUpload.php | 82 + .../Generated/Inputs/NewWorkRelation.php | 82 + .../Generated/Inputs/PatchAbstract.php | 110 + .../Inputs/PatchAdditionalResource.php | 156 + .../Generated/Inputs/PatchAffiliation.php | 92 + src/GraphQL/Generated/Inputs/PatchAward.php | 152 + .../Generated/Inputs/PatchBiography.php | 96 + .../Generated/Inputs/PatchBookReview.php | 198 + src/GraphQL/Generated/Inputs/PatchContact.php | 82 + .../Generated/Inputs/PatchContribution.php | 148 + .../Generated/Inputs/PatchContributor.php | 98 + .../Generated/Inputs/PatchEndorsement.php | 132 + src/GraphQL/Generated/Inputs/PatchFunding.php | 108 + src/GraphQL/Generated/Inputs/PatchImprint.php | 148 + .../Generated/Inputs/PatchInstitution.php | 84 + src/GraphQL/Generated/Inputs/PatchIssue.php | 92 + .../Generated/Inputs/PatchLanguage.php | 82 + .../Generated/Inputs/PatchLocation.php | 122 + src/GraphQL/Generated/Inputs/PatchPrice.php | 82 + .../Generated/Inputs/PatchPublication.php | 198 + .../Generated/Inputs/PatchPublisher.php | 104 + .../Generated/Inputs/PatchReference.php | 268 + src/GraphQL/Generated/Inputs/PatchSeries.php | 132 + src/GraphQL/Generated/Inputs/PatchSubject.php | 96 + src/GraphQL/Generated/Inputs/PatchTitle.php | 120 + src/GraphQL/Generated/Inputs/PatchWork.php | 342 ++ .../Inputs/PatchWorkFeaturedVideo.php | 106 + .../Generated/Inputs/PatchWorkRelation.php | 96 + src/GraphQL/Generated/Inputs/PriceOrderBy.php | 54 + .../Generated/Inputs/PublicationOrderBy.php | 54 + .../Generated/Inputs/PublisherOrderBy.php | 54 + .../Generated/Inputs/ReferenceOrderBy.php | 54 + .../Generated/Inputs/SeriesOrderBy.php | 54 + .../Generated/Inputs/SubjectOrderBy.php | 54 + .../Generated/Inputs/TimeExpression.php | 54 + src/GraphQL/Generated/Inputs/TitleOrderBy.php | 54 + .../Inputs/WorkFeaturedVideoOrderBy.php | 54 + src/GraphQL/Generated/Inputs/WorkOrderBy.php | 54 + .../Generated/Inputs/WorkRelationOrderBy.php | 54 + .../Mutations/CompleteFileUploadMutation.php | 49 + .../Mutations/CreateAbstractMutation.php | 59 + .../CreateAdditionalResourceMutation.php | 59 + .../Mutations/CreateAffiliationMutation.php | 49 + .../Mutations/CreateAwardMutation.php | 59 + .../Mutations/CreateBiographyMutation.php | 59 + .../Mutations/CreateBookReviewMutation.php | 59 + .../Mutations/CreateContactMutation.php | 49 + .../Mutations/CreateContributionMutation.php | 49 + .../Mutations/CreateContributorMutation.php | 49 + .../Mutations/CreateEndorsementMutation.php | 59 + .../Mutations/CreateFundingMutation.php | 49 + .../Mutations/CreateImprintMutation.php | 49 + .../Mutations/CreateInstitutionMutation.php | 49 + .../Mutations/CreateIssueMutation.php | 49 + .../Mutations/CreateLanguageMutation.php | 49 + .../Mutations/CreateLocationMutation.php | 49 + .../Mutations/CreatePriceMutation.php | 49 + .../Mutations/CreatePublicationMutation.php | 49 + .../Mutations/CreatePublisherMutation.php | 49 + .../Mutations/CreateReferenceMutation.php | 49 + .../Mutations/CreateSeriesMutation.php | 59 + .../Mutations/CreateSubjectMutation.php | 49 + .../Mutations/CreateTitleMutation.php | 59 + .../CreateWorkFeaturedVideoMutation.php | 49 + .../Mutations/CreateWorkMutation.php | 49 + .../Mutations/CreateWorkRelationMutation.php | 49 + .../Mutations/DeleteAbstractMutation.php | 49 + .../DeleteAdditionalResourceMutation.php | 49 + .../Mutations/DeleteAffiliationMutation.php | 49 + .../Mutations/DeleteAwardMutation.php | 49 + .../Mutations/DeleteBiographyMutation.php | 49 + .../Mutations/DeleteBookReviewMutation.php | 49 + .../Mutations/DeleteContactMutation.php | 49 + .../Mutations/DeleteContributionMutation.php | 49 + .../Mutations/DeleteContributorMutation.php | 49 + .../Mutations/DeleteEndorsementMutation.php | 49 + .../Mutations/DeleteFundingMutation.php | 49 + .../Mutations/DeleteImprintMutation.php | 49 + .../Mutations/DeleteInstitutionMutation.php | 49 + .../Mutations/DeleteIssueMutation.php | 49 + .../Mutations/DeleteLanguageMutation.php | 49 + .../Mutations/DeleteLocationMutation.php | 49 + .../Mutations/DeletePriceMutation.php | 49 + .../Mutations/DeletePublicationMutation.php | 49 + .../Mutations/DeletePublisherMutation.php | 49 + .../Mutations/DeleteReferenceMutation.php | 49 + .../Mutations/DeleteSeriesMutation.php | 49 + .../Mutations/DeleteSubjectMutation.php | 49 + .../Mutations/DeleteTitleMutation.php | 49 + .../DeleteWorkFeaturedVideoMutation.php | 49 + .../Mutations/DeleteWorkMutation.php | 49 + .../Mutations/DeleteWorkRelationMutation.php | 49 + ...itAdditionalResourceFileUploadMutation.php | 49 + .../InitFrontcoverFileUploadMutation.php | 49 + .../InitPublicationFileUploadMutation.php | 49 + ...nitWorkFeaturedVideoFileUploadMutation.php | 49 + .../MoveAdditionalResourceMutation.php | 63 + .../Mutations/MoveAffiliationMutation.php | 63 + .../Generated/Mutations/MoveAwardMutation.php | 63 + .../Mutations/MoveBookReviewMutation.php | 63 + .../Mutations/MoveContributionMutation.php | 63 + .../Mutations/MoveEndorsementMutation.php | 63 + .../Generated/Mutations/MoveIssueMutation.php | 63 + .../Mutations/MoveReferenceMutation.php | 63 + .../Mutations/MoveSubjectMutation.php | 63 + .../Mutations/MoveWorkRelationMutation.php | 63 + .../Mutations/UpdateAbstractMutation.php | 59 + .../UpdateAdditionalResourceMutation.php | 59 + .../Mutations/UpdateAffiliationMutation.php | 49 + .../Mutations/UpdateAwardMutation.php | 59 + .../Mutations/UpdateBiographyMutation.php | 59 + .../Mutations/UpdateBookReviewMutation.php | 59 + .../Mutations/UpdateContactMutation.php | 49 + .../Mutations/UpdateContributionMutation.php | 49 + .../Mutations/UpdateContributorMutation.php | 49 + .../Mutations/UpdateEndorsementMutation.php | 59 + .../Mutations/UpdateFundingMutation.php | 49 + .../Mutations/UpdateImprintMutation.php | 49 + .../Mutations/UpdateInstitutionMutation.php | 49 + .../Mutations/UpdateIssueMutation.php | 49 + .../Mutations/UpdateLanguageMutation.php | 49 + .../Mutations/UpdateLocationMutation.php | 49 + .../Mutations/UpdatePriceMutation.php | 49 + .../Mutations/UpdatePublicationMutation.php | 49 + .../Mutations/UpdatePublisherMutation.php | 49 + .../Mutations/UpdateReferenceMutation.php | 49 + .../Mutations/UpdateSeriesMutation.php | 59 + .../Mutations/UpdateSubjectMutation.php | 49 + .../Mutations/UpdateTitleMutation.php | 59 + .../UpdateWorkFeaturedVideoMutation.php | 49 + .../Mutations/UpdateWorkMutation.php | 49 + .../Mutations/UpdateWorkRelationMutation.php | 49 + .../Generated/Queries/AbstractQuery.php | 59 + .../Generated/Queries/AbstractsQuery.php | 111 + .../Queries/AdditionalResourceCountQuery.php | 34 + .../Queries/AdditionalResourceQuery.php | 49 + .../Queries/AdditionalResourcesQuery.php | 91 + .../Queries/AffiliationCountQuery.php | 34 + .../Generated/Queries/AffiliationQuery.php | 49 + .../Generated/Queries/AffiliationsQuery.php | 91 + .../Generated/Queries/AwardCountQuery.php | 34 + src/GraphQL/Generated/Queries/AwardQuery.php | 49 + src/GraphQL/Generated/Queries/AwardsQuery.php | 91 + .../Generated/Queries/BiographiesQuery.php | 111 + .../Generated/Queries/BiographyQuery.php | 59 + .../Generated/Queries/BookByDoiQuery.php | 49 + .../Generated/Queries/BookCountQuery.php | 111 + .../Queries/BookReviewCountQuery.php | 34 + .../Generated/Queries/BookReviewQuery.php | 49 + .../Generated/Queries/BookReviewsQuery.php | 91 + src/GraphQL/Generated/Queries/BooksQuery.php | 149 + .../Generated/Queries/ChapterByDoiQuery.php | 49 + .../Generated/Queries/ChapterCountQuery.php | 111 + .../Generated/Queries/ChaptersQuery.php | 149 + .../Generated/Queries/ContactCountQuery.php | 53 + .../Generated/Queries/ContactQuery.php | 49 + .../Generated/Queries/ContactsQuery.php | 109 + .../Queries/ContributionCountQuery.php | 53 + .../Generated/Queries/ContributionQuery.php | 49 + .../Generated/Queries/ContributionsQuery.php | 109 + .../Queries/ContributorCountQuery.php | 45 + .../Generated/Queries/ContributorQuery.php | 49 + .../Generated/Queries/ContributorsQuery.php | 83 + .../Queries/EndorsementCountQuery.php | 34 + .../Generated/Queries/EndorsementQuery.php | 49 + .../Generated/Queries/EndorsementsQuery.php | 91 + src/GraphQL/Generated/Queries/FileQuery.php | 49 + .../Generated/Queries/FundingCountQuery.php | 34 + .../Generated/Queries/FundingQuery.php | 49 + .../Generated/Queries/FundingsQuery.php | 91 + .../Generated/Queries/ImprintCountQuery.php | 63 + .../Generated/Queries/ImprintQuery.php | 49 + .../Generated/Queries/ImprintsQuery.php | 101 + .../Queries/InstitutionCountQuery.php | 45 + .../Generated/Queries/InstitutionQuery.php | 49 + .../Generated/Queries/InstitutionsQuery.php | 83 + .../Generated/Queries/IssueCountQuery.php | 34 + src/GraphQL/Generated/Queries/IssueQuery.php | 49 + src/GraphQL/Generated/Queries/IssuesQuery.php | 91 + .../Generated/Queries/LanguageCountQuery.php | 81 + .../Generated/Queries/LanguageQuery.php | 49 + .../Generated/Queries/LanguagesQuery.php | 137 + .../Generated/Queries/LocationCountQuery.php | 53 + .../Generated/Queries/LocationQuery.php | 49 + .../Generated/Queries/LocationsQuery.php | 109 + src/GraphQL/Generated/Queries/MeQuery.php | 34 + .../Generated/Queries/PriceCountQuery.php | 53 + src/GraphQL/Generated/Queries/PriceQuery.php | 49 + src/GraphQL/Generated/Queries/PricesQuery.php | 109 + .../Queries/PublicationCountQuery.php | 81 + .../Generated/Queries/PublicationQuery.php | 49 + .../Generated/Queries/PublicationsQuery.php | 119 + .../Generated/Queries/PublisherCountQuery.php | 63 + .../Generated/Queries/PublisherQuery.php | 49 + .../Generated/Queries/PublishersQuery.php | 101 + .../Generated/Queries/ReferenceCountQuery.php | 34 + .../Generated/Queries/ReferenceQuery.php | 49 + .../Generated/Queries/ReferencesQuery.php | 91 + .../Generated/Queries/SeriesCountQuery.php | 81 + src/GraphQL/Generated/Queries/SeriesQuery.php | 49 + .../Generated/Queries/SeriesesQuery.php | 119 + .../Generated/Queries/SubjectCountQuery.php | 81 + .../Generated/Queries/SubjectQuery.php | 49 + .../Generated/Queries/SubjectsQuery.php | 137 + src/GraphQL/Generated/Queries/TitleQuery.php | 59 + src/GraphQL/Generated/Queries/TitlesQuery.php | 111 + .../Generated/Queries/WorkByDoiQuery.php | 49 + .../Generated/Queries/WorkCountQuery.php | 129 + .../Queries/WorkFeaturedVideoCountQuery.php | 34 + .../Queries/WorkFeaturedVideoQuery.php | 49 + .../Queries/WorkFeaturedVideosQuery.php | 91 + src/GraphQL/Generated/Queries/WorkQuery.php | 49 + src/GraphQL/Generated/Queries/WorksQuery.php | 167 + .../Generated/Scalars/BooleanScalar.php | 13 + src/GraphQL/Generated/Scalars/DateScalar.php | 23 + src/GraphQL/Generated/Scalars/DoiScalar.php | 13 + src/GraphQL/Generated/Scalars/FloatScalar.php | 13 + src/GraphQL/Generated/Scalars/IntScalar.php | 13 + src/GraphQL/Generated/Scalars/IsbnScalar.php | 13 + src/GraphQL/Generated/Scalars/OrcidScalar.php | 13 + src/GraphQL/Generated/Scalars/RorScalar.php | 13 + .../Generated/Scalars/StringScalar.php | 13 + .../Generated/Scalars/TimestampScalar.php | 13 + src/GraphQL/Generated/Scalars/UuidScalar.php | 13 + src/GraphQL/Generated/Schemas/Affiliation.php | 154 + src/GraphQL/Generated/Schemas/Award.php | 232 + src/GraphQL/Generated/Schemas/Biography.php | 126 + src/GraphQL/Generated/Schemas/BookReview.php | 300 ++ src/GraphQL/Generated/Schemas/Contact.php | 126 + .../Generated/Schemas/Contribution.php | 378 ++ src/GraphQL/Generated/Schemas/Contributor.php | 203 + src/GraphQL/Generated/Schemas/Endorsement.php | 220 + src/GraphQL/Generated/Schemas/File.php | 206 + .../Generated/Schemas/FileUploadResponse.php | 86 + src/GraphQL/Generated/Schemas/Funding.php | 174 + .../Generated/Schemas/GraphQLAbstract.php | 126 + src/GraphQL/Generated/Schemas/Imprint.php | 338 ++ src/GraphQL/Generated/Schemas/Institution.php | 224 + src/GraphQL/Generated/Schemas/Issue.php | 154 + src/GraphQL/Generated/Schemas/Language.php | 126 + src/GraphQL/Generated/Schemas/Location.php | 174 + src/GraphQL/Generated/Schemas/Me.php | 106 + .../Generated/Schemas/MutationRoot.php | 3197 ++++++++++++ src/GraphQL/Generated/Schemas/Price.php | 126 + src/GraphQL/Generated/Schemas/Publication.php | 436 ++ src/GraphQL/Generated/Schemas/Publisher.php | 276 ++ .../Generated/Schemas/PublisherContext.php | 46 + .../Schemas/PublisherPermissions.php | 62 + src/GraphQL/Generated/Schemas/QueryRoot.php | 4383 +++++++++++++++++ src/GraphQL/Generated/Schemas/Reference.php | 350 ++ src/GraphQL/Generated/Schemas/Series.php | 252 + src/GraphQL/Generated/Schemas/Subject.php | 142 + src/GraphQL/Generated/Schemas/Title.php | 138 + .../Generated/Schemas/UploadRequestHeader.php | 46 + src/GraphQL/Generated/Schemas/Work.php | 1521 ++++++ .../Generated/Schemas/WorkFeaturedVideo.php | 166 + .../Generated/Schemas/WorkRelation.php | 142 + .../Generated/Schemas/WorkResource.php | 248 + src/GraphQL/Models/AbstractModel.php | 50 - src/GraphQL/Models/AbstractText.php | 7 - src/GraphQL/Models/AdditionalResource.php | 16 - src/GraphQL/Models/Affiliation.php | 56 - src/GraphQL/Models/Award.php | 7 - src/GraphQL/Models/Biography.php | 7 - src/GraphQL/Models/BookReview.php | 7 - src/GraphQL/Models/Contact.php | 7 - src/GraphQL/Models/Contribution.php | 121 - src/GraphQL/Models/Contributor.php | 66 - src/GraphQL/Models/Endorsement.php | 7 - src/GraphQL/Models/File.php | 7 - src/GraphQL/Models/FileUploadResponse.php | 7 - src/GraphQL/Models/Funding.php | 86 - src/GraphQL/Models/Imprint.php | 56 - src/GraphQL/Models/Institution.php | 56 - src/GraphQL/Models/Issue.php | 46 - src/GraphQL/Models/Language.php | 60 - src/GraphQL/Models/Location.php | 84 - src/GraphQL/Models/Me.php | 7 - src/GraphQL/Models/Price.php | 46 - src/GraphQL/Models/Publication.php | 171 - src/GraphQL/Models/Publisher.php | 46 - src/GraphQL/Models/Reference.php | 236 - src/GraphQL/Models/Series.php | 99 - src/GraphQL/Models/Subject.php | 63 - src/GraphQL/Models/Title.php | 7 - src/GraphQL/Models/Work.php | 360 -- src/GraphQL/Models/WorkFeaturedVideo.php | 7 - src/GraphQL/Models/WorkRelation.php | 65 - src/GraphQL/MutationBuilder.php | 989 ---- src/GraphQL/OperationRequest.php | 133 + src/GraphQL/Queries/AbstractQuery.php | 17 - src/GraphQL/Queries/AbstractTextQuery.php | 67 - .../Queries/AdditionalResourceQuery.php | 74 - src/GraphQL/Queries/AffiliationQuery.php | 68 - src/GraphQL/Queries/AwardQuery.php | 74 - src/GraphQL/Queries/BiographyQuery.php | 66 - src/GraphQL/Queries/BookReviewQuery.php | 79 - src/GraphQL/Queries/ContactQuery.php | 69 - src/GraphQL/Queries/ContributionQuery.php | 80 - src/GraphQL/Queries/ContributorQuery.php | 69 - src/GraphQL/Queries/EndorsementQuery.php | 72 - src/GraphQL/Queries/FileQuery.php | 38 - src/GraphQL/Queries/FundingQuery.php | 70 - src/GraphQL/Queries/ImprintQuery.php | 107 - src/GraphQL/Queries/InstitutionQuery.php | 70 - src/GraphQL/Queries/IssueQuery.php | 68 - src/GraphQL/Queries/LanguageQuery.php | 77 - src/GraphQL/Queries/LocationQuery.php | 71 - src/GraphQL/Queries/MeQuery.php | 39 - src/GraphQL/Queries/PriceQuery.php | 69 - src/GraphQL/Queries/PublicationQuery.php | 93 - src/GraphQL/Queries/PublisherQuery.php | 78 - src/GraphQL/Queries/ReferenceQuery.php | 86 - src/GraphQL/Queries/SeriesQuery.php | 84 - src/GraphQL/Queries/SubjectQuery.php | 78 - src/GraphQL/Queries/TitleQuery.php | 68 - .../Queries/WorkFeaturedVideoQuery.php | 69 - src/GraphQL/Queries/WorkQuery.php | 133 - src/GraphQL/QueryProvider.php | 130 - src/GraphQL/Request.php | 13 +- src/GraphQL/Response.php | 10 +- tests/Exception/QueryExceptionTest.php | 12 + tests/GraphQL/ClientTest.php | 7 - .../Concerns/HasClientMutationTests.php | 773 --- .../GraphQL/Concerns/HasClientQueryTests.php | 1024 ---- .../Concerns/HasClientSchemaSyncTests.php | 402 -- tests/GraphQL/GeneratedOperationTest.php | 33 + tests/GraphQL/GenericClientTest.php | 117 + tests/GraphQL/Models/AbstractModelTest.php | 53 - tests/GraphQL/Models/AffiliationTest.php | 25 - tests/GraphQL/Models/ContributionTest.php | 46 - tests/GraphQL/Models/ContributorTest.php | 34 - tests/GraphQL/Models/FundingTest.php | 40 - tests/GraphQL/Models/ImprintTest.php | 31 - tests/GraphQL/Models/InstitutionTest.php | 31 - tests/GraphQL/Models/IssueTest.php | 28 - tests/GraphQL/Models/LanguageTest.php | 31 - tests/GraphQL/Models/LocationTest.php | 34 - tests/GraphQL/Models/PriceTest.php | 28 - tests/GraphQL/Models/PublicationTest.php | 54 - tests/GraphQL/Models/PublisherTest.php | 28 - tests/GraphQL/Models/ReferenceTest.php | 87 - tests/GraphQL/Models/SeriesTest.php | 43 - tests/GraphQL/Models/SubjectTest.php | 31 - tests/GraphQL/Models/WorkRelationTest.php | 31 - tests/GraphQL/Models/WorkTest.php | 122 - .../GraphQL/MutationBuilderSchemaSyncTest.php | 333 -- tests/GraphQL/MutationBuilderTest.php | 1677 ------- tests/GraphQL/OperationRequestTest.php | 77 + .../GraphQL/Queries/AffiliationQueryTest.php | 87 - .../GraphQL/Queries/ContributionQueryTest.php | 99 - .../GraphQL/Queries/ContributorQueryTest.php | 88 - tests/GraphQL/Queries/FundingQueryTest.php | 89 - tests/GraphQL/Queries/ImprintQueryTest.php | 137 - .../GraphQL/Queries/InstitutionQueryTest.php | 89 - tests/GraphQL/Queries/IssueQueryTest.php | 87 - tests/GraphQL/Queries/LanguageQueryTest.php | 96 - tests/GraphQL/Queries/LocationQueryTest.php | 90 - tests/GraphQL/Queries/PriceQueryTest.php | 88 - .../GraphQL/Queries/PublicationQueryTest.php | 112 - tests/GraphQL/Queries/PublisherQueryTest.php | 97 - tests/GraphQL/Queries/ReferenceQueryTest.php | 105 - tests/GraphQL/Queries/SchemaSyncQueryTest.php | 112 - tests/GraphQL/Queries/SeriesQueryTest.php | 103 - tests/GraphQL/Queries/SubjectQueryTest.php | 97 - tests/GraphQL/Queries/WorkQueryTest.php | 155 - tests/GraphQL/QueryProviderSchemaSyncTest.php | 53 - tests/GraphQL/QueryProviderTest.php | 230 - tests/GraphQL/RequestTest.php | 12 +- tools/generate-graphql-client.php | 363 ++ 481 files changed, 40620 insertions(+), 13125 deletions(-) delete mode 100644 src/GraphQL/Concerns/HasMutationOperations.php delete mode 100644 src/GraphQL/Concerns/HasQueryOperations.php create mode 100644 src/GraphQL/Definition/ArgumentDefinition.php create mode 100644 src/GraphQL/Definition/EnumTypeDefinition.php create mode 100644 src/GraphQL/Definition/FieldDefinition.php create mode 100644 src/GraphQL/Definition/InputObjectTypeDefinition.php create mode 100644 src/GraphQL/Definition/ObjectTypeDefinition.php create mode 100644 src/GraphQL/Definition/ScalarTypeDefinition.php create mode 100644 src/GraphQL/Definition/TypeReference.php create mode 100644 src/GraphQL/EnumValue.php create mode 100644 src/GraphQL/Generated/Enums/AbstractField.php create mode 100644 src/GraphQL/Generated/Enums/AbstractType.php create mode 100644 src/GraphQL/Generated/Enums/AccessibilityException.php create mode 100644 src/GraphQL/Generated/Enums/AccessibilityStandard.php create mode 100644 src/GraphQL/Generated/Enums/AdditionalResourceField.php create mode 100644 src/GraphQL/Generated/Enums/AffiliationField.php create mode 100644 src/GraphQL/Generated/Enums/AwardField.php create mode 100644 src/GraphQL/Generated/Enums/AwardRole.php create mode 100644 src/GraphQL/Generated/Enums/BiographyField.php create mode 100644 src/GraphQL/Generated/Enums/BookReviewField.php create mode 100644 src/GraphQL/Generated/Enums/ChecksumAlgorithm.php create mode 100644 src/GraphQL/Generated/Enums/ContactField.php create mode 100644 src/GraphQL/Generated/Enums/ContactType.php create mode 100644 src/GraphQL/Generated/Enums/ContributionField.php create mode 100644 src/GraphQL/Generated/Enums/ContributionType.php create mode 100644 src/GraphQL/Generated/Enums/ContributorField.php create mode 100644 src/GraphQL/Generated/Enums/CountryCode.php create mode 100644 src/GraphQL/Generated/Enums/CurrencyCode.php create mode 100644 src/GraphQL/Generated/Enums/Direction.php create mode 100644 src/GraphQL/Generated/Enums/EndorsementField.php create mode 100644 src/GraphQL/Generated/Enums/Expression.php create mode 100644 src/GraphQL/Generated/Enums/FileType.php create mode 100644 src/GraphQL/Generated/Enums/FundingField.php create mode 100644 src/GraphQL/Generated/Enums/ImprintField.php create mode 100644 src/GraphQL/Generated/Enums/InstitutionField.php create mode 100644 src/GraphQL/Generated/Enums/IssueField.php create mode 100644 src/GraphQL/Generated/Enums/LanguageCode.php create mode 100644 src/GraphQL/Generated/Enums/LanguageField.php create mode 100644 src/GraphQL/Generated/Enums/LanguageRelation.php create mode 100644 src/GraphQL/Generated/Enums/LengthUnit.php create mode 100644 src/GraphQL/Generated/Enums/LocaleCode.php create mode 100644 src/GraphQL/Generated/Enums/LocationField.php create mode 100644 src/GraphQL/Generated/Enums/LocationPlatform.php create mode 100644 src/GraphQL/Generated/Enums/MarkupFormat.php create mode 100644 src/GraphQL/Generated/Enums/PriceField.php create mode 100644 src/GraphQL/Generated/Enums/PublicationField.php create mode 100644 src/GraphQL/Generated/Enums/PublicationType.php create mode 100644 src/GraphQL/Generated/Enums/PublisherField.php create mode 100644 src/GraphQL/Generated/Enums/ReferenceField.php create mode 100644 src/GraphQL/Generated/Enums/RelationType.php create mode 100644 src/GraphQL/Generated/Enums/ResourceType.php create mode 100644 src/GraphQL/Generated/Enums/SeriesField.php create mode 100644 src/GraphQL/Generated/Enums/SeriesType.php create mode 100644 src/GraphQL/Generated/Enums/SubjectField.php create mode 100644 src/GraphQL/Generated/Enums/SubjectType.php create mode 100644 src/GraphQL/Generated/Enums/TitleField.php create mode 100644 src/GraphQL/Generated/Enums/WeightUnit.php create mode 100644 src/GraphQL/Generated/Enums/WorkFeaturedVideoField.php create mode 100644 src/GraphQL/Generated/Enums/WorkField.php create mode 100644 src/GraphQL/Generated/Enums/WorkRelationField.php create mode 100644 src/GraphQL/Generated/Enums/WorkStatus.php create mode 100644 src/GraphQL/Generated/Enums/WorkType.php create mode 100644 src/GraphQL/Generated/Inputs/AbstractOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/AffiliationOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/AwardOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/BiographyOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/BookReviewOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/CompleteFileUpload.php create mode 100644 src/GraphQL/Generated/Inputs/ContactOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/ContributionOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/ContributorOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/EndorsementOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/FundingOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/ImprintOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/InstitutionOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/IssueOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/LanguageOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/LocationOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/NewAbstract.php create mode 100644 src/GraphQL/Generated/Inputs/NewAdditionalResource.php create mode 100644 src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php create mode 100644 src/GraphQL/Generated/Inputs/NewAffiliation.php create mode 100644 src/GraphQL/Generated/Inputs/NewAward.php create mode 100644 src/GraphQL/Generated/Inputs/NewBiography.php create mode 100644 src/GraphQL/Generated/Inputs/NewBookReview.php create mode 100644 src/GraphQL/Generated/Inputs/NewContact.php create mode 100644 src/GraphQL/Generated/Inputs/NewContribution.php create mode 100644 src/GraphQL/Generated/Inputs/NewContributor.php create mode 100644 src/GraphQL/Generated/Inputs/NewEndorsement.php create mode 100644 src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php create mode 100644 src/GraphQL/Generated/Inputs/NewFunding.php create mode 100644 src/GraphQL/Generated/Inputs/NewImprint.php create mode 100644 src/GraphQL/Generated/Inputs/NewInstitution.php create mode 100644 src/GraphQL/Generated/Inputs/NewIssue.php create mode 100644 src/GraphQL/Generated/Inputs/NewLanguage.php create mode 100644 src/GraphQL/Generated/Inputs/NewLocation.php create mode 100644 src/GraphQL/Generated/Inputs/NewPrice.php create mode 100644 src/GraphQL/Generated/Inputs/NewPublication.php create mode 100644 src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php create mode 100644 src/GraphQL/Generated/Inputs/NewPublisher.php create mode 100644 src/GraphQL/Generated/Inputs/NewReference.php create mode 100644 src/GraphQL/Generated/Inputs/NewSeries.php create mode 100644 src/GraphQL/Generated/Inputs/NewSubject.php create mode 100644 src/GraphQL/Generated/Inputs/NewTitle.php create mode 100644 src/GraphQL/Generated/Inputs/NewWork.php create mode 100644 src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php create mode 100644 src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php create mode 100644 src/GraphQL/Generated/Inputs/NewWorkRelation.php create mode 100644 src/GraphQL/Generated/Inputs/PatchAbstract.php create mode 100644 src/GraphQL/Generated/Inputs/PatchAdditionalResource.php create mode 100644 src/GraphQL/Generated/Inputs/PatchAffiliation.php create mode 100644 src/GraphQL/Generated/Inputs/PatchAward.php create mode 100644 src/GraphQL/Generated/Inputs/PatchBiography.php create mode 100644 src/GraphQL/Generated/Inputs/PatchBookReview.php create mode 100644 src/GraphQL/Generated/Inputs/PatchContact.php create mode 100644 src/GraphQL/Generated/Inputs/PatchContribution.php create mode 100644 src/GraphQL/Generated/Inputs/PatchContributor.php create mode 100644 src/GraphQL/Generated/Inputs/PatchEndorsement.php create mode 100644 src/GraphQL/Generated/Inputs/PatchFunding.php create mode 100644 src/GraphQL/Generated/Inputs/PatchImprint.php create mode 100644 src/GraphQL/Generated/Inputs/PatchInstitution.php create mode 100644 src/GraphQL/Generated/Inputs/PatchIssue.php create mode 100644 src/GraphQL/Generated/Inputs/PatchLanguage.php create mode 100644 src/GraphQL/Generated/Inputs/PatchLocation.php create mode 100644 src/GraphQL/Generated/Inputs/PatchPrice.php create mode 100644 src/GraphQL/Generated/Inputs/PatchPublication.php create mode 100644 src/GraphQL/Generated/Inputs/PatchPublisher.php create mode 100644 src/GraphQL/Generated/Inputs/PatchReference.php create mode 100644 src/GraphQL/Generated/Inputs/PatchSeries.php create mode 100644 src/GraphQL/Generated/Inputs/PatchSubject.php create mode 100644 src/GraphQL/Generated/Inputs/PatchTitle.php create mode 100644 src/GraphQL/Generated/Inputs/PatchWork.php create mode 100644 src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php create mode 100644 src/GraphQL/Generated/Inputs/PatchWorkRelation.php create mode 100644 src/GraphQL/Generated/Inputs/PriceOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/PublicationOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/PublisherOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/ReferenceOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/SeriesOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/SubjectOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/TimeExpression.php create mode 100644 src/GraphQL/Generated/Inputs/TitleOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/WorkOrderBy.php create mode 100644 src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php create mode 100644 src/GraphQL/Generated/Mutations/CompleteFileUploadMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateAbstractMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateAdditionalResourceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateAffiliationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateAwardMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateBiographyMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateBookReviewMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateContactMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateContributionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateContributorMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateEndorsementMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateFundingMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateImprintMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateInstitutionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateIssueMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateLanguageMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateLocationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreatePriceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreatePublicationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreatePublisherMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateReferenceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateSeriesMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateSubjectMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateTitleMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateWorkFeaturedVideoMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateWorkMutation.php create mode 100644 src/GraphQL/Generated/Mutations/CreateWorkRelationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteAbstractMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteAdditionalResourceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteAffiliationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteAwardMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteBiographyMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteBookReviewMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteContactMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteContributionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteContributorMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteEndorsementMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteFundingMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteImprintMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteInstitutionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteIssueMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteLanguageMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteLocationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeletePriceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeletePublicationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeletePublisherMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteReferenceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteSeriesMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteSubjectMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteTitleMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteWorkFeaturedVideoMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteWorkMutation.php create mode 100644 src/GraphQL/Generated/Mutations/DeleteWorkRelationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/InitAdditionalResourceFileUploadMutation.php create mode 100644 src/GraphQL/Generated/Mutations/InitFrontcoverFileUploadMutation.php create mode 100644 src/GraphQL/Generated/Mutations/InitPublicationFileUploadMutation.php create mode 100644 src/GraphQL/Generated/Mutations/InitWorkFeaturedVideoFileUploadMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveAdditionalResourceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveAffiliationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveAwardMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveBookReviewMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveContributionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveEndorsementMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveIssueMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveReferenceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveSubjectMutation.php create mode 100644 src/GraphQL/Generated/Mutations/MoveWorkRelationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateAbstractMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateAdditionalResourceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateAffiliationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateAwardMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateBiographyMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateBookReviewMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateContactMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateContributionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateContributorMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateEndorsementMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateFundingMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateImprintMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateInstitutionMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateIssueMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateLanguageMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateLocationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdatePriceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdatePublicationMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdatePublisherMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateReferenceMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateSeriesMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateSubjectMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateTitleMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateWorkFeaturedVideoMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateWorkMutation.php create mode 100644 src/GraphQL/Generated/Mutations/UpdateWorkRelationMutation.php create mode 100644 src/GraphQL/Generated/Queries/AbstractQuery.php create mode 100644 src/GraphQL/Generated/Queries/AbstractsQuery.php create mode 100644 src/GraphQL/Generated/Queries/AdditionalResourceCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/AdditionalResourceQuery.php create mode 100644 src/GraphQL/Generated/Queries/AdditionalResourcesQuery.php create mode 100644 src/GraphQL/Generated/Queries/AffiliationCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/AffiliationQuery.php create mode 100644 src/GraphQL/Generated/Queries/AffiliationsQuery.php create mode 100644 src/GraphQL/Generated/Queries/AwardCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/AwardQuery.php create mode 100644 src/GraphQL/Generated/Queries/AwardsQuery.php create mode 100644 src/GraphQL/Generated/Queries/BiographiesQuery.php create mode 100644 src/GraphQL/Generated/Queries/BiographyQuery.php create mode 100644 src/GraphQL/Generated/Queries/BookByDoiQuery.php create mode 100644 src/GraphQL/Generated/Queries/BookCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/BookReviewCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/BookReviewQuery.php create mode 100644 src/GraphQL/Generated/Queries/BookReviewsQuery.php create mode 100644 src/GraphQL/Generated/Queries/BooksQuery.php create mode 100644 src/GraphQL/Generated/Queries/ChapterByDoiQuery.php create mode 100644 src/GraphQL/Generated/Queries/ChapterCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ChaptersQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContactCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContactQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContactsQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributionCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributionQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributionsQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributorCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributorQuery.php create mode 100644 src/GraphQL/Generated/Queries/ContributorsQuery.php create mode 100644 src/GraphQL/Generated/Queries/EndorsementCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/EndorsementQuery.php create mode 100644 src/GraphQL/Generated/Queries/EndorsementsQuery.php create mode 100644 src/GraphQL/Generated/Queries/FileQuery.php create mode 100644 src/GraphQL/Generated/Queries/FundingCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/FundingQuery.php create mode 100644 src/GraphQL/Generated/Queries/FundingsQuery.php create mode 100644 src/GraphQL/Generated/Queries/ImprintCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ImprintQuery.php create mode 100644 src/GraphQL/Generated/Queries/ImprintsQuery.php create mode 100644 src/GraphQL/Generated/Queries/InstitutionCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/InstitutionQuery.php create mode 100644 src/GraphQL/Generated/Queries/InstitutionsQuery.php create mode 100644 src/GraphQL/Generated/Queries/IssueCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/IssueQuery.php create mode 100644 src/GraphQL/Generated/Queries/IssuesQuery.php create mode 100644 src/GraphQL/Generated/Queries/LanguageCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/LanguageQuery.php create mode 100644 src/GraphQL/Generated/Queries/LanguagesQuery.php create mode 100644 src/GraphQL/Generated/Queries/LocationCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/LocationQuery.php create mode 100644 src/GraphQL/Generated/Queries/LocationsQuery.php create mode 100644 src/GraphQL/Generated/Queries/MeQuery.php create mode 100644 src/GraphQL/Generated/Queries/PriceCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/PriceQuery.php create mode 100644 src/GraphQL/Generated/Queries/PricesQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublicationCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublicationQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublicationsQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublisherCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublisherQuery.php create mode 100644 src/GraphQL/Generated/Queries/PublishersQuery.php create mode 100644 src/GraphQL/Generated/Queries/ReferenceCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/ReferenceQuery.php create mode 100644 src/GraphQL/Generated/Queries/ReferencesQuery.php create mode 100644 src/GraphQL/Generated/Queries/SeriesCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/SeriesQuery.php create mode 100644 src/GraphQL/Generated/Queries/SeriesesQuery.php create mode 100644 src/GraphQL/Generated/Queries/SubjectCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/SubjectQuery.php create mode 100644 src/GraphQL/Generated/Queries/SubjectsQuery.php create mode 100644 src/GraphQL/Generated/Queries/TitleQuery.php create mode 100644 src/GraphQL/Generated/Queries/TitlesQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkByDoiQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkFeaturedVideoCountQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkFeaturedVideoQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkFeaturedVideosQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorkQuery.php create mode 100644 src/GraphQL/Generated/Queries/WorksQuery.php create mode 100644 src/GraphQL/Generated/Scalars/BooleanScalar.php create mode 100644 src/GraphQL/Generated/Scalars/DateScalar.php create mode 100644 src/GraphQL/Generated/Scalars/DoiScalar.php create mode 100644 src/GraphQL/Generated/Scalars/FloatScalar.php create mode 100644 src/GraphQL/Generated/Scalars/IntScalar.php create mode 100644 src/GraphQL/Generated/Scalars/IsbnScalar.php create mode 100644 src/GraphQL/Generated/Scalars/OrcidScalar.php create mode 100644 src/GraphQL/Generated/Scalars/RorScalar.php create mode 100644 src/GraphQL/Generated/Scalars/StringScalar.php create mode 100644 src/GraphQL/Generated/Scalars/TimestampScalar.php create mode 100644 src/GraphQL/Generated/Scalars/UuidScalar.php create mode 100644 src/GraphQL/Generated/Schemas/Affiliation.php create mode 100644 src/GraphQL/Generated/Schemas/Award.php create mode 100644 src/GraphQL/Generated/Schemas/Biography.php create mode 100644 src/GraphQL/Generated/Schemas/BookReview.php create mode 100644 src/GraphQL/Generated/Schemas/Contact.php create mode 100644 src/GraphQL/Generated/Schemas/Contribution.php create mode 100644 src/GraphQL/Generated/Schemas/Contributor.php create mode 100644 src/GraphQL/Generated/Schemas/Endorsement.php create mode 100644 src/GraphQL/Generated/Schemas/File.php create mode 100644 src/GraphQL/Generated/Schemas/FileUploadResponse.php create mode 100644 src/GraphQL/Generated/Schemas/Funding.php create mode 100644 src/GraphQL/Generated/Schemas/GraphQLAbstract.php create mode 100644 src/GraphQL/Generated/Schemas/Imprint.php create mode 100644 src/GraphQL/Generated/Schemas/Institution.php create mode 100644 src/GraphQL/Generated/Schemas/Issue.php create mode 100644 src/GraphQL/Generated/Schemas/Language.php create mode 100644 src/GraphQL/Generated/Schemas/Location.php create mode 100644 src/GraphQL/Generated/Schemas/Me.php create mode 100644 src/GraphQL/Generated/Schemas/MutationRoot.php create mode 100644 src/GraphQL/Generated/Schemas/Price.php create mode 100644 src/GraphQL/Generated/Schemas/Publication.php create mode 100644 src/GraphQL/Generated/Schemas/Publisher.php create mode 100644 src/GraphQL/Generated/Schemas/PublisherContext.php create mode 100644 src/GraphQL/Generated/Schemas/PublisherPermissions.php create mode 100644 src/GraphQL/Generated/Schemas/QueryRoot.php create mode 100644 src/GraphQL/Generated/Schemas/Reference.php create mode 100644 src/GraphQL/Generated/Schemas/Series.php create mode 100644 src/GraphQL/Generated/Schemas/Subject.php create mode 100644 src/GraphQL/Generated/Schemas/Title.php create mode 100644 src/GraphQL/Generated/Schemas/UploadRequestHeader.php create mode 100644 src/GraphQL/Generated/Schemas/Work.php create mode 100644 src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php create mode 100644 src/GraphQL/Generated/Schemas/WorkRelation.php create mode 100644 src/GraphQL/Generated/Schemas/WorkResource.php delete mode 100644 src/GraphQL/Models/AbstractModel.php delete mode 100644 src/GraphQL/Models/AbstractText.php delete mode 100644 src/GraphQL/Models/AdditionalResource.php delete mode 100644 src/GraphQL/Models/Affiliation.php delete mode 100644 src/GraphQL/Models/Award.php delete mode 100644 src/GraphQL/Models/Biography.php delete mode 100644 src/GraphQL/Models/BookReview.php delete mode 100644 src/GraphQL/Models/Contact.php delete mode 100644 src/GraphQL/Models/Contribution.php delete mode 100644 src/GraphQL/Models/Contributor.php delete mode 100644 src/GraphQL/Models/Endorsement.php delete mode 100644 src/GraphQL/Models/File.php delete mode 100644 src/GraphQL/Models/FileUploadResponse.php delete mode 100644 src/GraphQL/Models/Funding.php delete mode 100644 src/GraphQL/Models/Imprint.php delete mode 100644 src/GraphQL/Models/Institution.php delete mode 100644 src/GraphQL/Models/Issue.php delete mode 100644 src/GraphQL/Models/Language.php delete mode 100644 src/GraphQL/Models/Location.php delete mode 100644 src/GraphQL/Models/Me.php delete mode 100644 src/GraphQL/Models/Price.php delete mode 100644 src/GraphQL/Models/Publication.php delete mode 100644 src/GraphQL/Models/Publisher.php delete mode 100644 src/GraphQL/Models/Reference.php delete mode 100644 src/GraphQL/Models/Series.php delete mode 100644 src/GraphQL/Models/Subject.php delete mode 100644 src/GraphQL/Models/Title.php delete mode 100644 src/GraphQL/Models/Work.php delete mode 100644 src/GraphQL/Models/WorkFeaturedVideo.php delete mode 100644 src/GraphQL/Models/WorkRelation.php delete mode 100644 src/GraphQL/MutationBuilder.php create mode 100644 src/GraphQL/OperationRequest.php delete mode 100644 src/GraphQL/Queries/AbstractQuery.php delete mode 100644 src/GraphQL/Queries/AbstractTextQuery.php delete mode 100644 src/GraphQL/Queries/AdditionalResourceQuery.php delete mode 100644 src/GraphQL/Queries/AffiliationQuery.php delete mode 100644 src/GraphQL/Queries/AwardQuery.php delete mode 100644 src/GraphQL/Queries/BiographyQuery.php delete mode 100644 src/GraphQL/Queries/BookReviewQuery.php delete mode 100644 src/GraphQL/Queries/ContactQuery.php delete mode 100644 src/GraphQL/Queries/ContributionQuery.php delete mode 100644 src/GraphQL/Queries/ContributorQuery.php delete mode 100644 src/GraphQL/Queries/EndorsementQuery.php delete mode 100644 src/GraphQL/Queries/FileQuery.php delete mode 100644 src/GraphQL/Queries/FundingQuery.php delete mode 100644 src/GraphQL/Queries/ImprintQuery.php delete mode 100644 src/GraphQL/Queries/InstitutionQuery.php delete mode 100644 src/GraphQL/Queries/IssueQuery.php delete mode 100644 src/GraphQL/Queries/LanguageQuery.php delete mode 100644 src/GraphQL/Queries/LocationQuery.php delete mode 100644 src/GraphQL/Queries/MeQuery.php delete mode 100644 src/GraphQL/Queries/PriceQuery.php delete mode 100644 src/GraphQL/Queries/PublicationQuery.php delete mode 100644 src/GraphQL/Queries/PublisherQuery.php delete mode 100644 src/GraphQL/Queries/ReferenceQuery.php delete mode 100644 src/GraphQL/Queries/SeriesQuery.php delete mode 100644 src/GraphQL/Queries/SubjectQuery.php delete mode 100644 src/GraphQL/Queries/TitleQuery.php delete mode 100644 src/GraphQL/Queries/WorkFeaturedVideoQuery.php delete mode 100644 src/GraphQL/Queries/WorkQuery.php delete mode 100644 src/GraphQL/QueryProvider.php delete mode 100644 tests/GraphQL/Concerns/HasClientMutationTests.php delete mode 100644 tests/GraphQL/Concerns/HasClientQueryTests.php delete mode 100644 tests/GraphQL/Concerns/HasClientSchemaSyncTests.php create mode 100644 tests/GraphQL/GeneratedOperationTest.php create mode 100644 tests/GraphQL/GenericClientTest.php delete mode 100644 tests/GraphQL/Models/AbstractModelTest.php delete mode 100644 tests/GraphQL/Models/AffiliationTest.php delete mode 100644 tests/GraphQL/Models/ContributionTest.php delete mode 100644 tests/GraphQL/Models/ContributorTest.php delete mode 100644 tests/GraphQL/Models/FundingTest.php delete mode 100644 tests/GraphQL/Models/ImprintTest.php delete mode 100644 tests/GraphQL/Models/InstitutionTest.php delete mode 100644 tests/GraphQL/Models/IssueTest.php delete mode 100644 tests/GraphQL/Models/LanguageTest.php delete mode 100644 tests/GraphQL/Models/LocationTest.php delete mode 100644 tests/GraphQL/Models/PriceTest.php delete mode 100644 tests/GraphQL/Models/PublicationTest.php delete mode 100644 tests/GraphQL/Models/PublisherTest.php delete mode 100644 tests/GraphQL/Models/ReferenceTest.php delete mode 100644 tests/GraphQL/Models/SeriesTest.php delete mode 100644 tests/GraphQL/Models/SubjectTest.php delete mode 100644 tests/GraphQL/Models/WorkRelationTest.php delete mode 100644 tests/GraphQL/Models/WorkTest.php delete mode 100644 tests/GraphQL/MutationBuilderSchemaSyncTest.php delete mode 100644 tests/GraphQL/MutationBuilderTest.php create mode 100644 tests/GraphQL/OperationRequestTest.php delete mode 100644 tests/GraphQL/Queries/AffiliationQueryTest.php delete mode 100644 tests/GraphQL/Queries/ContributionQueryTest.php delete mode 100644 tests/GraphQL/Queries/ContributorQueryTest.php delete mode 100644 tests/GraphQL/Queries/FundingQueryTest.php delete mode 100644 tests/GraphQL/Queries/ImprintQueryTest.php delete mode 100644 tests/GraphQL/Queries/InstitutionQueryTest.php delete mode 100644 tests/GraphQL/Queries/IssueQueryTest.php delete mode 100644 tests/GraphQL/Queries/LanguageQueryTest.php delete mode 100644 tests/GraphQL/Queries/LocationQueryTest.php delete mode 100644 tests/GraphQL/Queries/PriceQueryTest.php delete mode 100644 tests/GraphQL/Queries/PublicationQueryTest.php delete mode 100644 tests/GraphQL/Queries/PublisherQueryTest.php delete mode 100644 tests/GraphQL/Queries/ReferenceQueryTest.php delete mode 100644 tests/GraphQL/Queries/SchemaSyncQueryTest.php delete mode 100644 tests/GraphQL/Queries/SeriesQueryTest.php delete mode 100644 tests/GraphQL/Queries/SubjectQueryTest.php delete mode 100644 tests/GraphQL/Queries/WorkQueryTest.php delete mode 100644 tests/GraphQL/QueryProviderSchemaSyncTest.php delete mode 100644 tests/GraphQL/QueryProviderTest.php create mode 100644 tools/generate-graphql-client.php diff --git a/README.md b/README.md index 780f0cd..475c4ce 100644 --- a/README.md +++ b/README.md @@ -24,53 +24,33 @@ $client = new \ThothApi\GraphQL\Client(); #### Queries -The client maps all queries from the Thoth GraphQL API. Methods return data in an object-oriented format, making it easy to use and manipulate information. +The GraphQL client has a generic request executor. Query, mutation, schema, input, enum and scalar +classes are generated from the Thoth GraphQL introspection schema. ```php -$contributors = $client->contributors(); +use ThothApi\GraphQL\Generated\Queries\ContributorsQuery; -echo print_r($contributors, true); -/** - * Array ( - * [0] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => e1de541c-e84b-4092-941f-dab9b5dac865 - * [firstName] => Aaron - * [lastName] => Ansell - * [fullName] => Aaron Ansell - * [orcid] => https://orcid.org/0000-0001-6365-5168 - * [website] => - * ) - * ) - * [1] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => 1c3aade6-6d48-41b4-8def-b435f4b43573 - * [firstName] => Aaron D. - * [lastName] => Hornkohl - * [fullName] => Aaron D. Hornkohl - * [orcid] => - * [website] => https://www.ames.cam.ac.uk/people/dr-aaron-d-hornkohl - * ) - * ) - * ... - * ) -*/ - -$contributor = array_shift($contributors); - -echo $contributor->getLastName(); // Ansell -echo $contributor->getOrcid(); // https://orcid.org/0000-0001-6365-5168 +$contributors = $client->execute(ContributorsQuery::operation([], [ + 'contributorId', + 'fullName', + 'orcid', +])); ``` -Queries can accept an array with the required arguments as specified in the Thoth GraphQL schema. It's possible to use the "order" argument specifying only the field and the desired direction. +Arguments must match the Thoth GraphQL schema. Enum values can be wrapped with `OperationRequest::enum()`. ```php -$works = $client->works([ +use ThothApi\GraphQL\Generated\Queries\WorksQuery; +use ThothApi\GraphQL\OperationRequest; + +$works = $client->execute(WorksQuery::operation([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, - 'field' => 'PUBLICATION_DATE', - 'direction' => 'DESC' -]); + 'order' => [ + 'field' => OperationRequest::enum('PUBLICATION_DATE'), + 'direction' => OperationRequest::enum('DESC'), + ], +], ['workId', 'fullTitle', 'doi'])); ``` #### Mutations @@ -81,20 +61,24 @@ To execute mutations, provide a valid personal access token to the client. $client->setToken($token); ``` -Mutations can be executed by providing an instance of the model class corresponding to the mutation type. To delete mutations, only the object's ID is required. When the operation is successful, the object's ID is returned. +Mutations use the generated mutation classes and return the selected fields from the GraphQL response. ```php -use ThothApi\GraphQL\Models\Subject; - -$subject = new Subject(); -$subject->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30'); -$subject->setSubjectType(Subject::SUBJECT_TYPE_BIC); -$subject->setSubjectCode('1D'); -$subject->setSubjectOrdinal(3); +use ThothApi\GraphQL\Generated\Enums\SubjectType; +use ThothApi\GraphQL\Generated\Inputs\NewSubject; + +$subjectId = $client->createSubject(new NewSubject([ + 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', + 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectCode' => '1D', + 'subjectOrdinal' => 3, +])); +``` -$subjectId = $client->createSubject($subject); // 1d5ae47b-9e0c-4fba-b2d4-a3a2cdd8860c +Regenerate the GraphQL classes from the current Thoth GraphQL schema: -$client->deleteSubject($subjectId); +```bash +composer generate-graphql-client ``` #### Exceptions @@ -103,10 +87,11 @@ A QueryException is thrown in case of an error in the request to the GraphQL API ```php try { - $work = new \ThothApi\GraphQL\Models\Work([ - 'doi' => 'https://doi.org/10.00000/00000000', - ]); - $workId = $client->createWork($work); + $client->execute(\ThothApi\GraphQL\Generated\Mutations\CreateWorkMutation::operation([ + 'data' => [ + 'doi' => 'https://doi.org/10.00000/00000000', + ], + ], ['workId'])); } catch (\ThothApi\Exception\QueryException $exception) { echo $exception->getMessage(); /** diff --git a/composer.json b/composer.json index 4631857..fffe987 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ }, "scripts" : { "test": "vendor/bin/phpunit --colors --testdox tests/", - "lint": "vendor/bin/php-cs-fixer fix -v --diff --allow-risky=yes --config=.php-cs-fixer.php" + "lint": "vendor/bin/php-cs-fixer fix -v --diff --allow-risky=yes --config=.php-cs-fixer.php", + "generate-graphql-client": "php tools/generate-graphql-client.php" } } diff --git a/src/Exception/QueryException.php b/src/Exception/QueryException.php index b69e170..68837b5 100644 --- a/src/Exception/QueryException.php +++ b/src/Exception/QueryException.php @@ -6,9 +6,15 @@ class QueryException extends \RuntimeException { private array $details; - public function __construct(array $error) + private ?string $query; + + private ?array $variables; + + public function __construct(array $error, ?string $query = null, ?array $variables = null) { $this->details = $error; + $this->query = $query; + $this->variables = $variables; parent::__construct($error['message']); } @@ -16,4 +22,14 @@ public function getDetails(): array { return $this->details; } + + public function getQuery(): ?string + { + return $this->query; + } + + public function getVariables(): ?array + { + return $this->variables; + } } diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 4599052..0d852bd 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -2,19 +2,8 @@ namespace ThothApi\GraphQL; -use ThothApi\GraphQL\Concerns\HasMutationOperations; -use ThothApi\GraphQL\Concerns\HasQueryOperations; -use ThothApi\GraphQL\Models\AbstractModel; -use ThothApi\GraphQL\Models\AbstractText; -use ThothApi\GraphQL\Models\AdditionalResource; -use ThothApi\GraphQL\Models\Me; -use ThothApi\GraphQL\Models\Work; - class Client { - use HasMutationOperations; - use HasQueryOperations; - private Request $request; private string $token = ''; @@ -41,99 +30,167 @@ public function rawQuery(string $rawQuery, array $args = []): array return $response->getData(); } - private function get(string $entityName, string $entityId, array $args = []): AbstractModel + public function execute(OperationRequest $operation): array { - $entityClass = $this->getModelClass($entityName); - $args = array_merge( - [$this->getIdentifierField($entityName) => $entityId], - array_filter($args, fn ($value) => $value !== null) - ); + $response = $this->request->runQuery($operation->toGraphQL(), null, $this->token ?: null); + $data = $response->getData(); - $result = $this->query($entityName, $args, $entityName === 'me' ? $this->token : null); - return new $entityClass($result[$entityName]); + return $data[$operation->getField()->getName()]; } - private function getMany(string $entityName, array $args = []): array + public function __call(string $name, array $arguments) { - $entityClass = $this->getModelClass($entityName); - $queryName = $this->getPluralQueryName($entityName); + $operationClass = $this->getOperationClass($name); + $selection = $this->getSelectionArgument($arguments); + $field = $operationClass::field(); + $operation = $operationClass::operation( + $this->getOperationArguments($field->getArguments(), $arguments), + $selection ?: $this->getDefaultSelection($field->getType()->baseName()) + ); + $result = $this->execute($operation); + + if (is_array($result) && count($operation->getSelection()) === 1) { + $selectedField = $operation->getSelection()[0]; + + if (is_string($selectedField) && array_key_exists($selectedField, $result)) { + return $result[$selectedField]; + } + } - $result = $this->query($queryName, $args); - return array_map(fn ($data) => new $entityClass($data), $result[$queryName]); + return $result; } - private function count(string $entityName, array $args = []): int + private function getOperationClass(string $name): string { - $queryName = $entityName . 'Count'; - $result = $this->query($queryName, $args); - return $result[$queryName]; + $className = $this->studly($name); + $mutationClass = '\\ThothApi\\GraphQL\\Generated\\Mutations\\' . $className . 'Mutation'; + + if (class_exists($mutationClass)) { + return $mutationClass; + } + + $queryClass = '\\ThothApi\\GraphQL\\Generated\\Queries\\' . $className . 'Query'; + + if (class_exists($queryClass)) { + return $queryClass; + } + + throw new \BadMethodCallException("Operation '{$name}' not found."); } - private function getByDoi(string $entityName, string $doi): AbstractModel + private function getSelectionArgument(array &$arguments): array { - $entityClass = $this->getModelClass($entityName); - $queryName = $entityName . 'ByDoi'; - $result = $this->query($queryName, ['doi' => $doi]); - return new $entityClass($result[$queryName]); + if (count($arguments) < 2) { + return []; + } + + $selection = end($arguments); + + if (!is_array($selection)) { + return []; + } + + array_pop($arguments); + return $selection; } - private function mutation(string $mutationName, array $data, string $returnValue, array $extraArgs = []): string + private function getOperationArguments(array $schemaArguments, array $arguments): array { - $result = $this->runMutation($mutationName, $data, $extraArgs); - return $result[$returnValue]; + if ($schemaArguments === []) { + return []; + } + + if (count($arguments) === 1 && is_array($arguments[0]) && $this->isAssociativeArray($arguments[0])) { + if (count($schemaArguments) !== 1 || array_key_exists($schemaArguments[0]->getName(), $arguments[0])) { + return $this->normalizeValue($arguments[0]); + } + } + + if (count($schemaArguments) === 1) { + return [$schemaArguments[0]->getName() => $this->normalizeValue($arguments[0] ?? null)]; + } + + $operationArguments = []; + + foreach ($schemaArguments as $index => $schemaArgument) { + if (array_key_exists($index, $arguments)) { + $operationArguments[$schemaArgument->getName()] = $this->normalizeValue($arguments[$index]); + } + } + + return $operationArguments; } - private function runMutation(string $mutationName, array $data, array $extraArgs = []): array + private function normalizeValue($value) { - $mutation = MutationBuilder::build($mutationName, $data, $extraArgs); - $response = $this->request->runQuery($mutation, null, $this->token); - $body = $response->getData(); - return $body[$mutationName]; + if ($value instanceof EnumValue) { + return $value; + } + + if (is_array($value)) { + return array_map([$this, 'normalizeValue'], $value); + } + + if (is_object($value)) { + if (method_exists($value, 'getAllData')) { + return $this->normalizeValue($value->getAllData()); + } + + if ($value instanceof \JsonSerializable) { + return $this->normalizeValue($value->jsonSerialize()); + } + + return $this->normalizeValue(get_object_vars($value)); + } + + return $value; } - private function getModelClass(string $entityName): string + private function getDefaultSelection(?string $typeName): array { - $mapping = [ - 'abstract' => AbstractText::class, - 'additionalResource' => AdditionalResource::class, - 'book' => Work::class, - 'chapter' => Work::class, - 'me' => Me::class, - ]; - - return $mapping[$entityName] ?? '\\ThothApi\\GraphQL\\Models\\' . ucfirst($entityName); + if ($typeName === null || in_array($typeName, ['Boolean', 'Date', 'Doi', 'Float', 'Int', 'Isbn', 'Orcid', 'Ror', 'String', 'Timestamp', 'Uuid'], true)) { + return []; + } + + $schemaClass = '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . $this->safeClassName($this->studly($typeName)); + + if (!class_exists($schemaClass)) { + return []; + } + + foreach ($schemaClass::definition()->getFields() as $field) { + if (substr($field->getName(), -2) === 'Id') { + return [$field->getName()]; + } + } + + return []; } - private function getIdentifierField(string $entityName): string + private function studly(string $value): string { - switch ($entityName) { - case 'additionalResource': - return 'additionalResourceId'; - case 'bookReview': - return 'bookReviewId'; - case 'workFeaturedVideo': - return 'workFeaturedVideoId'; - default: - return $entityName . 'Id'; + $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); + $value = preg_replace('/(?request->runQuery($query, array_filter($args, fn ($value) => $value !== null), $token); - return $response->getData(); + return $value !== [] && array_keys($value) !== range(0, count($value) - 1); } } diff --git a/src/GraphQL/Concerns/HasMutationOperations.php b/src/GraphQL/Concerns/HasMutationOperations.php deleted file mode 100644 index 47a377d..0000000 --- a/src/GraphQL/Concerns/HasMutationOperations.php +++ /dev/null @@ -1,524 +0,0 @@ -mutation( - 'createAdditionalResource', - $additionalResource->getAllData(), - 'workResourceId', - ['markupFormat' => $markupFormat] - ); - } - - public function updateAdditionalResource(AdditionalResource $additionalResource, ?string $markupFormat = null): string - { - return $this->mutation( - 'updateAdditionalResource', - $additionalResource->getAllData(), - 'workResourceId', - ['markupFormat' => $markupFormat] - ); - } - - public function deleteAdditionalResource(string $additionalResourceId): string - { - return $this->mutation( - 'deleteAdditionalResource', - ['additionalResourceId' => $additionalResourceId], - 'workResourceId' - ); - } - - public function createAffiliation(Affiliation $affiliation): string - { - return $this->mutation('createAffiliation', $affiliation->getAllData(), 'affiliationId'); - } - - public function updateAffiliation(Affiliation $affiliation): string - { - return $this->mutation('updateAffiliation', $affiliation->getAllData(), 'affiliationId'); - } - - public function deleteAffiliation(string $affiliationId): string - { - return $this->mutation('deleteAffiliation', ['affiliationId' => $affiliationId], 'affiliationId'); - } - - public function createAbstract(AbstractText $abstract, ?string $markupFormat = null): string - { - return $this->mutation('createAbstract', $abstract->getAllData(), 'abstractId', ['markupFormat' => $markupFormat]); - } - - public function updateAbstract(AbstractText $abstract, ?string $markupFormat = null): string - { - return $this->mutation('updateAbstract', $abstract->getAllData(), 'abstractId', ['markupFormat' => $markupFormat]); - } - - public function deleteAbstract(string $abstractId): string - { - return $this->mutation('deleteAbstract', ['abstractId' => $abstractId], 'abstractId'); - } - - public function createAward(Award $award, ?string $markupFormat = null): string - { - return $this->mutation('createAward', $award->getAllData(), 'awardId', ['markupFormat' => $markupFormat]); - } - - public function updateAward(Award $award, ?string $markupFormat = null): string - { - return $this->mutation('updateAward', $award->getAllData(), 'awardId', ['markupFormat' => $markupFormat]); - } - - public function deleteAward(string $awardId): string - { - return $this->mutation('deleteAward', ['awardId' => $awardId], 'awardId'); - } - - public function createBiography(Biography $biography, ?string $markupFormat = null): string - { - return $this->mutation('createBiography', $biography->getAllData(), 'biographyId', ['markupFormat' => $markupFormat]); - } - - public function updateBiography(Biography $biography, ?string $markupFormat = null): string - { - return $this->mutation('updateBiography', $biography->getAllData(), 'biographyId', ['markupFormat' => $markupFormat]); - } - - public function deleteBiography(string $biographyId): string - { - return $this->mutation('deleteBiography', ['biographyId' => $biographyId], 'biographyId'); - } - - public function createBookReview(BookReview $bookReview, ?string $markupFormat = null): string - { - return $this->mutation('createBookReview', $bookReview->getAllData(), 'bookReviewId', ['markupFormat' => $markupFormat]); - } - - public function updateBookReview(BookReview $bookReview, ?string $markupFormat = null): string - { - return $this->mutation('updateBookReview', $bookReview->getAllData(), 'bookReviewId', ['markupFormat' => $markupFormat]); - } - - public function deleteBookReview(string $bookReviewId): string - { - return $this->mutation('deleteBookReview', ['bookReviewId' => $bookReviewId], 'bookReviewId'); - } - - public function createContact(Contact $contact): string - { - return $this->mutation('createContact', $contact->getAllData(), 'contactId'); - } - - public function updateContact(Contact $contact): string - { - return $this->mutation('updateContact', $contact->getAllData(), 'contactId'); - } - - public function deleteContact(string $contactId): string - { - return $this->mutation('deleteContact', ['contactId' => $contactId], 'contactId'); - } - - public function createContribution(Contribution $contribution): string - { - return $this->mutation('createContribution', $contribution->getAllData(), 'contributionId'); - } - - public function updateContribution(Contribution $contribution): string - { - return $this->mutation('updateContribution', $contribution->getAllData(), 'contributionId'); - } - - public function deleteContribution(string $contributionId): string - { - return $this->mutation('deleteContribution', ['contributionId' => $contributionId], 'contributionId'); - } - - public function createContributor(Contributor $contributor): string - { - return $this->mutation('createContributor', $contributor->getAllData(), 'contributorId'); - } - - public function updateContributor(Contributor $contributor): string - { - return $this->mutation('updateContributor', $contributor->getAllData(), 'contributorId'); - } - - public function deleteContributor(string $contributorId): string - { - return $this->mutation('deleteContributor', ['contributorId' => $contributorId], 'contributorId'); - } - - public function createEndorsement(Endorsement $endorsement, ?string $markupFormat = null): string - { - return $this->mutation( - 'createEndorsement', - $endorsement->getAllData(), - 'endorsementId', - ['markupFormat' => $markupFormat] - ); - } - - public function updateEndorsement(Endorsement $endorsement, ?string $markupFormat = null): string - { - return $this->mutation( - 'updateEndorsement', - $endorsement->getAllData(), - 'endorsementId', - ['markupFormat' => $markupFormat] - ); - } - - public function deleteEndorsement(string $endorsementId): string - { - return $this->mutation('deleteEndorsement', ['endorsementId' => $endorsementId], 'endorsementId'); - } - - public function createFunding(Funding $funding): string - { - return $this->mutation('createFunding', $funding->getAllData(), 'fundingId'); - } - - public function updateFunding(Funding $funding): string - { - return $this->mutation('updateFunding', $funding->getAllData(), 'fundingId'); - } - - public function deleteFunding(string $fundingId): string - { - return $this->mutation('deleteFunding', ['fundingId' => $fundingId], 'fundingId'); - } - - public function createImprint(Imprint $imprint): string - { - return $this->mutation('createImprint', $imprint->getAllData(), 'imprintId'); - } - - public function updateImprint(Imprint $imprint): string - { - return $this->mutation('updateImprint', $imprint->getAllData(), 'imprintId'); - } - - public function deleteImprint(string $imprintId): string - { - return $this->mutation('deleteImprint', ['imprintId' => $imprintId], 'imprintId'); - } - - public function createInstitution(Institution $institution): string - { - return $this->mutation('createInstitution', $institution->getAllData(), 'institutionId'); - } - - public function updateInstitution(Institution $institution): string - { - return $this->mutation('updateInstitution', $institution->getAllData(), 'institutionId'); - } - - public function deleteInstitution(string $institutionId): string - { - return $this->mutation('deleteInstitution', ['institutionId' => $institutionId], 'institutionId'); - } - - public function createIssue(Issue $issue): string - { - return $this->mutation('createIssue', $issue->getAllData(), 'issueId'); - } - - public function updateIssue(Issue $issue): string - { - return $this->mutation('updateIssue', $issue->getAllData(), 'issueId'); - } - - public function deleteIssue(string $issueId): string - { - return $this->mutation('deleteIssue', ['issueId' => $issueId], 'issueId'); - } - - public function createLanguage(Language $language): string - { - return $this->mutation('createLanguage', $language->getAllData(), 'languageId'); - } - - public function updateLanguage(Language $language): string - { - return $this->mutation('updateLanguage', $language->getAllData(), 'languageId'); - } - - public function deleteLanguage(string $languageId): string - { - return $this->mutation('deleteLanguage', ['languageId' => $languageId], 'languageId'); - } - - public function createLocation(Location $location): string - { - return $this->mutation('createLocation', $location->getAllData(), 'locationId'); - } - - public function updateLocation(Location $location): string - { - return $this->mutation('updateLocation', $location->getAllData(), 'locationId'); - } - - public function deleteLocation(string $locationId): string - { - return $this->mutation('deleteLocation', ['locationId' => $locationId], 'locationId'); - } - - public function createPrice(Price $price): string - { - return $this->mutation('createPrice', $price->getAllData(), 'priceId'); - } - - public function updatePrice(Price $price): string - { - return $this->mutation('updatePrice', $price->getAllData(), 'priceId'); - } - - public function deletePrice(string $priceId): string - { - return $this->mutation('deletePrice', ['priceId' => $priceId], 'priceId'); - } - - public function createPublication(Publication $publication): string - { - return $this->mutation('createPublication', $publication->getAllData(), 'publicationId'); - } - - public function updatePublication(Publication $publication): string - { - return $this->mutation('updatePublication', $publication->getAllData(), 'publicationId'); - } - - public function deletePublication(string $publicationId): string - { - return $this->mutation('deletePublication', ['publicationId' => $publicationId], 'publicationId'); - } - - public function createPublisher(Publisher $publisher): string - { - return $this->mutation('createPublisher', $publisher->getAllData(), 'publisherId'); - } - - public function updatePublisher(Publisher $publisher): string - { - return $this->mutation('updatePublisher', $publisher->getAllData(), 'publisherId'); - } - - public function deletePublisher(string $publisherId): string - { - return $this->mutation('deletePublisher', ['publisherId' => $publisherId], 'publisherId'); - } - - public function createReference(Reference $reference): string - { - return $this->mutation('createReference', $reference->getAllData(), 'referenceId'); - } - - public function updateReference(Reference $reference): string - { - return $this->mutation('updateReference', $reference->getAllData(), 'referenceId'); - } - - public function deleteReference(string $referenceId): string - { - return $this->mutation('deleteReference', ['referenceId' => $referenceId], 'referenceId'); - } - - public function createSeries(Series $series): string - { - return $this->mutation('createSeries', $series->getAllData(), 'seriesId'); - } - - public function updateSeries(Series $series): string - { - return $this->mutation('updateSeries', $series->getAllData(), 'seriesId'); - } - - public function deleteSeries(string $seriesId): string - { - return $this->mutation('deleteSeries', ['seriesId' => $seriesId], 'seriesId'); - } - - public function createSubject(Subject $subject): string - { - return $this->mutation('createSubject', $subject->getAllData(), 'subjectId'); - } - - public function updateSubject(Subject $subject): string - { - return $this->mutation('updateSubject', $subject->getAllData(), 'subjectId'); - } - - public function deleteSubject(string $subjectId): string - { - return $this->mutation('deleteSubject', ['subjectId' => $subjectId], 'subjectId'); - } - - public function createTitle(Title $title, ?string $markupFormat = null): string - { - return $this->mutation('createTitle', $title->getAllData(), 'titleId', ['markupFormat' => $markupFormat]); - } - - public function updateTitle(Title $title, ?string $markupFormat = null): string - { - return $this->mutation('updateTitle', $title->getAllData(), 'titleId', ['markupFormat' => $markupFormat]); - } - - public function deleteTitle(string $titleId): string - { - return $this->mutation('deleteTitle', ['titleId' => $titleId], 'titleId'); - } - - public function createWork(Work $work): string - { - return $this->mutation('createWork', $work->getAllData(), 'workId'); - } - - public function updateWork(Work $work): string - { - return $this->mutation('updateWork', $work->getAllData(), 'workId'); - } - - public function deleteWork(string $workId): string - { - return $this->mutation('deleteWork', ['workId' => $workId], 'workId'); - } - - public function createWorkFeaturedVideo(WorkFeaturedVideo $workFeaturedVideo): string - { - return $this->mutation('createWorkFeaturedVideo', $workFeaturedVideo->getAllData(), 'workFeaturedVideoId'); - } - - public function updateWorkFeaturedVideo(WorkFeaturedVideo $workFeaturedVideo): string - { - return $this->mutation('updateWorkFeaturedVideo', $workFeaturedVideo->getAllData(), 'workFeaturedVideoId'); - } - - public function deleteWorkFeaturedVideo(string $workFeaturedVideoId): string - { - return $this->mutation('deleteWorkFeaturedVideo', ['workFeaturedVideoId' => $workFeaturedVideoId], 'workFeaturedVideoId'); - } - - public function createWorkRelation(WorkRelation $workRelation): string - { - return $this->mutation('createWorkRelation', $workRelation->getAllData(), 'workRelationId'); - } - - public function updateWorkRelation(WorkRelation $workRelation): string - { - return $this->mutation('updateWorkRelation', $workRelation->getAllData(), 'workRelationId'); - } - - public function deleteWorkRelation(string $workRelationId): string - { - return $this->mutation('deleteWorkRelation', ['workRelationId' => $workRelationId], 'workRelationId'); - } - - public function moveAffiliation(string $affiliationId, int $newOrdinal): string - { - return $this->mutation('moveAffiliation', compact('affiliationId', 'newOrdinal'), 'affiliationId'); - } - - public function moveContribution(string $contributionId, int $newOrdinal): string - { - return $this->mutation('moveContribution', compact('contributionId', 'newOrdinal'), 'contributionId'); - } - - public function moveIssue(string $issueId, int $newOrdinal): string - { - return $this->mutation('moveIssue', compact('issueId', 'newOrdinal'), 'issueId'); - } - - public function moveReference(string $referenceId, int $newOrdinal): string - { - return $this->mutation('moveReference', compact('referenceId', 'newOrdinal'), 'referenceId'); - } - - public function moveAdditionalResource(string $additionalResourceId, int $newOrdinal): string - { - return $this->mutation('moveAdditionalResource', compact('additionalResourceId', 'newOrdinal'), 'workResourceId'); - } - - public function moveAward(string $awardId, int $newOrdinal): string - { - return $this->mutation('moveAward', compact('awardId', 'newOrdinal'), 'awardId'); - } - - public function moveEndorsement(string $endorsementId, int $newOrdinal): string - { - return $this->mutation('moveEndorsement', compact('endorsementId', 'newOrdinal'), 'endorsementId'); - } - - public function moveBookReview(string $bookReviewId, int $newOrdinal): string - { - return $this->mutation('moveBookReview', compact('bookReviewId', 'newOrdinal'), 'bookReviewId'); - } - - public function moveSubject(string $subjectId, int $newOrdinal): string - { - return $this->mutation('moveSubject', compact('subjectId', 'newOrdinal'), 'subjectId'); - } - - public function moveWorkRelation(string $workRelationId, int $newOrdinal): string - { - return $this->mutation('moveWorkRelation', compact('workRelationId', 'newOrdinal'), 'workRelationId'); - } - - public function initPublicationFileUpload(array $data): FileUploadResponse - { - return new FileUploadResponse($this->runMutation('initPublicationFileUpload', $data)); - } - - public function initFrontcoverFileUpload(array $data): FileUploadResponse - { - return new FileUploadResponse($this->runMutation('initFrontcoverFileUpload', $data)); - } - - public function initAdditionalResourceFileUpload(array $data): FileUploadResponse - { - return new FileUploadResponse($this->runMutation('initAdditionalResourceFileUpload', $data)); - } - - public function initWorkFeaturedVideoFileUpload(array $data): FileUploadResponse - { - return new FileUploadResponse($this->runMutation('initWorkFeaturedVideoFileUpload', $data)); - } - - public function completeFileUpload(array $data): File - { - return new File($this->runMutation('completeFileUpload', $data)); - } -} diff --git a/src/GraphQL/Concerns/HasQueryOperations.php b/src/GraphQL/Concerns/HasQueryOperations.php deleted file mode 100644 index c5e1d09..0000000 --- a/src/GraphQL/Concerns/HasQueryOperations.php +++ /dev/null @@ -1,447 +0,0 @@ -get('additionalResource', $additionalResourceId); - } - - public function additionalResources(array $args = []): array - { - return $this->getMany('additionalResource', $args); - } - - public function additionalResourceCount(): int - { - return $this->count('additionalResource'); - } - - public function affiliation(string $affiliationId): Affiliation - { - return $this->get('affiliation', $affiliationId); - } - - public function affiliations(array $args = []): array - { - return $this->getMany('affiliation', $args); - } - - public function affiliationCount(): int - { - return $this->count('affiliation'); - } - - public function abstract(string $abstractId, ?string $markupFormat = null): AbstractText - { - return $this->get('abstract', $abstractId, ['markupFormat' => $markupFormat]); - } - - public function abstracts(array $args = []): array - { - return $this->getMany('abstract', $args); - } - - public function award(string $awardId): Award - { - return $this->get('award', $awardId); - } - - public function awards(array $args = []): array - { - return $this->getMany('award', $args); - } - - public function awardCount(): int - { - return $this->count('award'); - } - - public function biography(string $biographyId, ?string $markupFormat = null): Biography - { - return $this->get('biography', $biographyId, ['markupFormat' => $markupFormat]); - } - - public function biographies(array $args = []): array - { - return $this->getMany('biography', $args); - } - - public function books(array $args = []): array - { - return $this->getMany('book', $args); - } - - public function bookByDoi(string $doi): Work - { - return $this->getByDoi('book', $doi); - } - - public function bookCount(array $args = []): int - { - return $this->count('book', $args); - } - - public function bookReview(string $bookReviewId): BookReview - { - return $this->get('bookReview', $bookReviewId); - } - - public function bookReviews(array $args = []): array - { - return $this->getMany('bookReview', $args); - } - - public function bookReviewCount(): int - { - return $this->count('bookReview'); - } - - public function chapters(array $args = []): array - { - return $this->getMany('chapter', $args); - } - - public function chapterByDoi(string $doi): Work - { - return $this->getByDoi('chapter', $doi); - } - - public function chapterCount(array $args = []): int - { - return $this->count('chapter', $args); - } - - public function contact(string $contactId): Contact - { - return $this->get('contact', $contactId); - } - - public function contacts(array $args = []): array - { - return $this->getMany('contact', $args); - } - - public function contactCount(array $args = []): int - { - return $this->count('contact', $args); - } - - public function contribution(string $contributionId): Contribution - { - return $this->get('contribution', $contributionId); - } - - public function contributions(array $args = []): array - { - return $this->getMany('contribution', $args); - } - - public function contributionCount(array $args = []): int - { - return $this->count('contribution', $args); - } - - public function contributor(string $contributorId): Contributor - { - return $this->get('contributor', $contributorId); - } - - public function contributors(array $args = []): array - { - return $this->getMany('contributor', $args); - } - - public function contributorCount(array $args = []): int - { - return $this->count('contributor', $args); - } - - public function endorsement(string $endorsementId): Endorsement - { - return $this->get('endorsement', $endorsementId); - } - - public function endorsements(array $args = []): array - { - return $this->getMany('endorsement', $args); - } - - public function endorsementCount(): int - { - return $this->count('endorsement'); - } - - public function file(string $fileId): File - { - return $this->get('file', $fileId); - } - - public function funding(string $fundingId): Funding - { - return $this->get('funding', $fundingId); - } - - public function fundings(array $args = []): array - { - return $this->getMany('funding', $args); - } - - public function fundingCount(): int - { - return $this->count('funding'); - } - - public function imprint(string $imprintId): Imprint - { - return $this->get('imprint', $imprintId); - } - - public function imprints(array $args = [], bool $includeRestrictedFields = false): array - { - if (!$includeRestrictedFields) { - return $this->getMany('imprint', $args); - } - - $query = (new ImprintQuery())->getManyQueryWithRestrictedFields(true); - $result = $this->runGraphqlQuery($query, array_filter($args, fn ($value) => $value !== null))->getData(); - return array_map(fn ($data) => new Imprint($data), $result['imprints']); - } - - public function imprintCount(array $args = []): int - { - return $this->count('imprint', $args); - } - - public function institution(string $institutionId): Institution - { - return $this->get('institution', $institutionId); - } - - public function institutions(array $args = []): array - { - return $this->getMany('institution', $args); - } - - public function institutionCount(array $args = []): int - { - return $this->count('institution', $args); - } - - public function issue(string $issueId): Issue - { - return $this->get('issue', $issueId); - } - - public function issues(array $args = []): array - { - return $this->getMany('issue', $args); - } - - public function issueCount(): int - { - return $this->count('issue'); - } - - public function language(string $languageId): Language - { - return $this->get('language', $languageId); - } - - public function languages(array $args = []): array - { - return $this->getMany('language', $args); - } - - public function languageCount(array $args = []): int - { - return $this->count('language', $args); - } - - public function location(string $locationId): Location - { - return $this->get('location', $locationId); - } - - public function locations(array $args = []): array - { - return $this->getMany('location', $args); - } - - public function locationCount(array $args = []): int - { - return $this->count('location', $args); - } - - public function me(): Me - { - $result = $this->query('me', [], $this->token); - return new Me($result['me']); - } - - public function price(string $priceId): Price - { - return $this->get('price', $priceId); - } - - public function prices(array $args = []): array - { - return $this->getMany('price', $args); - } - - public function priceCount(array $args = []): int - { - return $this->count('price', $args); - } - - public function publication(string $publicationId): Publication - { - return $this->get('publication', $publicationId); - } - - public function publications(array $args = []): array - { - return $this->getMany('publication', $args); - } - - public function publicationCount(array $args = []): int - { - return $this->count('publication', $args); - } - - public function publisher(string $publisherId): Publisher - { - return $this->get('publisher', $publisherId); - } - - public function publishers(array $args = []): array - { - return $this->getMany('publisher', $args); - } - - public function publisherCount(array $args = []): int - { - return $this->count('publisher', $args); - } - - public function reference(string $referenceId): Reference - { - return $this->get('reference', $referenceId); - } - - public function references(array $args = []): array - { - return $this->getMany('reference', $args); - } - - public function referenceCount(): int - { - return $this->count('reference'); - } - - public function series(string $seriesId): Series - { - return $this->get('series', $seriesId); - } - - public function serieses(array $args = []): array - { - return $this->getMany('series', $args); - } - - public function seriesCount(array $args = []): int - { - return $this->count('series', $args); - } - - public function subject(string $subjectId): Subject - { - return $this->get('subject', $subjectId); - } - - public function subjects(array $args = []): array - { - return $this->getMany('subject', $args); - } - - public function subjectCount(array $args = []): int - { - return $this->count('subject', $args); - } - - public function title(string $titleId, ?string $markupFormat = null): Title - { - return $this->get('title', $titleId, ['markupFormat' => $markupFormat]); - } - - public function titles(array $args = []): array - { - return $this->getMany('title', $args); - } - - public function work(string $workId): Work - { - return $this->get('work', $workId); - } - - public function works(array $args = []): array - { - return $this->getMany('work', $args); - } - - public function workByDoi(string $doi): Work - { - return $this->getByDoi('work', $doi); - } - - public function workCount(array $args = []): int - { - return $this->count('work', $args); - } - - public function workFeaturedVideo(string $workFeaturedVideoId): WorkFeaturedVideo - { - return $this->get('workFeaturedVideo', $workFeaturedVideoId); - } - - public function workFeaturedVideos(array $args = []): array - { - return $this->getMany('workFeaturedVideo', $args); - } - - public function workFeaturedVideoCount(): int - { - return $this->count('workFeaturedVideo'); - } -} diff --git a/src/GraphQL/Definition/ArgumentDefinition.php b/src/GraphQL/Definition/ArgumentDefinition.php new file mode 100644 index 0000000..e3d85c8 --- /dev/null +++ b/src/GraphQL/Definition/ArgumentDefinition.php @@ -0,0 +1,56 @@ +name = $name; + $this->type = $type; + $this->description = $description; + $this->defaultValue = $defaultValue; + } + + public static function fromIntrospection(array $argument): self + { + return new self( + $argument['name'], + TypeReference::fromIntrospection($argument['type']), + $argument['description'] ?? null, + $argument['defaultValue'] ?? null + ); + } + + public function getName(): string + { + return $this->name; + } + + public function getType(): TypeReference + { + return $this->type; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function getDefaultValue(): ?string + { + return $this->defaultValue; + } +} diff --git a/src/GraphQL/Definition/EnumTypeDefinition.php b/src/GraphQL/Definition/EnumTypeDefinition.php new file mode 100644 index 0000000..7c88e51 --- /dev/null +++ b/src/GraphQL/Definition/EnumTypeDefinition.php @@ -0,0 +1,26 @@ +name = $name; + $this->values = $values; + } + + public function getName(): string + { + return $this->name; + } + + public function getValues(): array + { + return $this->values; + } +} diff --git a/src/GraphQL/Definition/FieldDefinition.php b/src/GraphQL/Definition/FieldDefinition.php new file mode 100644 index 0000000..c78a806 --- /dev/null +++ b/src/GraphQL/Definition/FieldDefinition.php @@ -0,0 +1,63 @@ +name = $name; + $this->type = $type; + $this->arguments = $arguments; + $this->description = $description; + } + + public static function fromIntrospection(array $field): self + { + $arguments = array_map( + static function (array $argument): ArgumentDefinition { + return ArgumentDefinition::fromIntrospection($argument); + }, + $field['args'] ?? [] + ); + + return new self( + $field['name'], + TypeReference::fromIntrospection($field['type']), + $arguments, + $field['description'] ?? null + ); + } + + public function getName(): string + { + return $this->name; + } + + public function getType(): TypeReference + { + return $this->type; + } + + public function getArguments(): array + { + return $this->arguments; + } + + public function getDescription(): ?string + { + return $this->description; + } +} diff --git a/src/GraphQL/Definition/InputObjectTypeDefinition.php b/src/GraphQL/Definition/InputObjectTypeDefinition.php new file mode 100644 index 0000000..bcf8619 --- /dev/null +++ b/src/GraphQL/Definition/InputObjectTypeDefinition.php @@ -0,0 +1,26 @@ +name = $name; + $this->fields = $fields; + } + + public function getName(): string + { + return $this->name; + } + + public function getFields(): array + { + return $this->fields; + } +} diff --git a/src/GraphQL/Definition/ObjectTypeDefinition.php b/src/GraphQL/Definition/ObjectTypeDefinition.php new file mode 100644 index 0000000..99e0ee1 --- /dev/null +++ b/src/GraphQL/Definition/ObjectTypeDefinition.php @@ -0,0 +1,26 @@ +name = $name; + $this->fields = $fields; + } + + public function getName(): string + { + return $this->name; + } + + public function getFields(): array + { + return $this->fields; + } +} diff --git a/src/GraphQL/Definition/ScalarTypeDefinition.php b/src/GraphQL/Definition/ScalarTypeDefinition.php new file mode 100644 index 0000000..f32cb89 --- /dev/null +++ b/src/GraphQL/Definition/ScalarTypeDefinition.php @@ -0,0 +1,26 @@ +name = $name; + $this->description = $description; + } + + public function getName(): string + { + return $this->name; + } + + public function getDescription(): ?string + { + return $this->description; + } +} diff --git a/src/GraphQL/Definition/TypeReference.php b/src/GraphQL/Definition/TypeReference.php new file mode 100644 index 0000000..6464807 --- /dev/null +++ b/src/GraphQL/Definition/TypeReference.php @@ -0,0 +1,84 @@ +kind = $kind; + $this->name = $name; + $this->ofType = $ofType; + } + + public static function named(string $name): self + { + return new self('NAMED', $name); + } + + public static function listOf(self $ofType): self + { + return new self('LIST', null, $ofType); + } + + public static function nonNull(self $ofType): self + { + return new self('NON_NULL', null, $ofType); + } + + public static function fromIntrospection(array $type): self + { + if (isset($type['ofType']) && is_array($type['ofType'])) { + return new self($type['kind'], $type['name'] ?? null, self::fromIntrospection($type['ofType'])); + } + + if ($type['kind'] === 'LIST' || $type['kind'] === 'NON_NULL') { + return new self($type['kind'], $type['name'] ?? null); + } + + return self::named($type['name']); + } + + public function getKind(): string + { + return $this->kind; + } + + public function getName(): ?string + { + return $this->name; + } + + public function getOfType(): ?self + { + return $this->ofType; + } + + public function toGraphQL(): string + { + if ($this->kind === 'NON_NULL') { + return ($this->ofType ? $this->ofType->toGraphQL() : '') . '!'; + } + + if ($this->kind === 'LIST') { + return '[' . ($this->ofType ? $this->ofType->toGraphQL() : '') . ']'; + } + + return (string) $this->name; + } + + public function baseName(): ?string + { + if ($this->name !== null) { + return $this->name; + } + + return $this->ofType ? $this->ofType->baseName() : null; + } +} diff --git a/src/GraphQL/EnumValue.php b/src/GraphQL/EnumValue.php new file mode 100644 index 0000000..e331599 --- /dev/null +++ b/src/GraphQL/EnumValue.php @@ -0,0 +1,18 @@ +value = $value; + } + + public function __toString(): string + { + return $this->value; + } +} diff --git a/src/GraphQL/Generated/Enums/AbstractField.php b/src/GraphQL/Generated/Enums/AbstractField.php new file mode 100644 index 0000000..9dbbefa --- /dev/null +++ b/src/GraphQL/Generated/Enums/AbstractField.php @@ -0,0 +1,33 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('AbstractOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AbstractField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php b/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php new file mode 100644 index 0000000..6a4e51f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('AdditionalResourceOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AdditionalResourceField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php b/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php new file mode 100644 index 0000000..e17484a --- /dev/null +++ b/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('AffiliationOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AffiliationField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/AwardOrderBy.php b/src/GraphQL/Generated/Inputs/AwardOrderBy.php new file mode 100644 index 0000000..e75db6a --- /dev/null +++ b/src/GraphQL/Generated/Inputs/AwardOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('AwardOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AwardField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/BiographyOrderBy.php b/src/GraphQL/Generated/Inputs/BiographyOrderBy.php new file mode 100644 index 0000000..9235d73 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/BiographyOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('BiographyOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'BiographyField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php b/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php new file mode 100644 index 0000000..af9f27b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('BookReviewOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'BookReviewField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/CompleteFileUpload.php b/src/GraphQL/Generated/Inputs/CompleteFileUpload.php new file mode 100644 index 0000000..1a37667 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/CompleteFileUpload.php @@ -0,0 +1,40 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('CompleteFileUpload', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fileUploadId', + 'description' => 'ID of the upload session to complete.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/ContactOrderBy.php b/src/GraphQL/Generated/Inputs/ContactOrderBy.php new file mode 100644 index 0000000..af5fab1 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/ContactOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('ContactOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/ContributionOrderBy.php b/src/GraphQL/Generated/Inputs/ContributionOrderBy.php new file mode 100644 index 0000000..93a4478 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/ContributionOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('ContributionOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/ContributorOrderBy.php b/src/GraphQL/Generated/Inputs/ContributorOrderBy.php new file mode 100644 index 0000000..8139142 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/ContributorOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('ContributorOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributorField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php b/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php new file mode 100644 index 0000000..0996f69 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('EndorsementOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'EndorsementField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/FundingOrderBy.php b/src/GraphQL/Generated/Inputs/FundingOrderBy.php new file mode 100644 index 0000000..3451c3f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/FundingOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('FundingOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'FundingField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/ImprintOrderBy.php b/src/GraphQL/Generated/Inputs/ImprintOrderBy.php new file mode 100644 index 0000000..c5585f1 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/ImprintOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('ImprintOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ImprintField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php b/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php new file mode 100644 index 0000000..be2725f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('InstitutionOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'InstitutionField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/IssueOrderBy.php b/src/GraphQL/Generated/Inputs/IssueOrderBy.php new file mode 100644 index 0000000..fd13157 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/IssueOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('IssueOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'IssueField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/LanguageOrderBy.php b/src/GraphQL/Generated/Inputs/LanguageOrderBy.php new file mode 100644 index 0000000..d9bb0fb --- /dev/null +++ b/src/GraphQL/Generated/Inputs/LanguageOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('LanguageOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/LocationOrderBy.php b/src/GraphQL/Generated/Inputs/LocationOrderBy.php new file mode 100644 index 0000000..a8590ce --- /dev/null +++ b/src/GraphQL/Generated/Inputs/LocationOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('LocationOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewAbstract.php b/src/GraphQL/Generated/Inputs/NewAbstract.php new file mode 100644 index 0000000..0c592bd --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewAbstract.php @@ -0,0 +1,96 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewAbstract', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'abstractType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AbstractType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewAdditionalResource.php b/src/GraphQL/Generated/Inputs/NewAdditionalResource.php new file mode 100644 index 0000000..4361b4b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewAdditionalResource.php @@ -0,0 +1,142 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewAdditionalResource', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'description', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'attribution', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourceType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ResourceType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'handle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'date', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourceOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php b/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php new file mode 100644 index 0000000..b3aadf3 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewAdditionalResourceFileUpload', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of the additional resource linked to this file.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredMimeType', + 'description' => 'MIME type declared by the client (used for validation and in the presigned URL).', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredExtension', + 'description' => 'File extension to use in the final canonical key, e.g. \'jpg\', \'png\', \'mp4\', \'xlsx\'.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredSha256', + 'description' => 'SHA-256 checksum of the file, hex-encoded.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewAffiliation.php b/src/GraphQL/Generated/Inputs/NewAffiliation.php new file mode 100644 index 0000000..42d85ae --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewAffiliation.php @@ -0,0 +1,78 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewAffiliation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'affiliationOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'position', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewAward.php b/src/GraphQL/Generated/Inputs/NewAward.php new file mode 100644 index 0000000..ddf0b7a --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewAward.php @@ -0,0 +1,138 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewAward', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'category', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'year', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'jury', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'country', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'prizeStatement', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'role', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AwardRole', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'awardOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewBiography.php b/src/GraphQL/Generated/Inputs/NewBiography.php new file mode 100644 index 0000000..edf8d60 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewBiography.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewBiography', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewBookReview.php b/src/GraphQL/Generated/Inputs/NewBookReview.php new file mode 100644 index 0000000..4dd49f8 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewBookReview.php @@ -0,0 +1,184 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewBookReview', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewerOrcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewerInstitutionId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalVolume', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalIssn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageRange', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewContact.php b/src/GraphQL/Generated/Inputs/NewContact.php new file mode 100644 index 0000000..e7bf70c --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewContact.php @@ -0,0 +1,68 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewContact', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contactType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'email', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewContribution.php b/src/GraphQL/Generated/Inputs/NewContribution.php new file mode 100644 index 0000000..6cd2786 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewContribution.php @@ -0,0 +1,134 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewContribution', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributorId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'mainContribution', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewContributor.php b/src/GraphQL/Generated/Inputs/NewContributor.php new file mode 100644 index 0000000..d5c7cee --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewContributor.php @@ -0,0 +1,84 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewContributor', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'orcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'website', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewEndorsement.php b/src/GraphQL/Generated/Inputs/NewEndorsement.php new file mode 100644 index 0000000..6bb3cef --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewEndorsement.php @@ -0,0 +1,118 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewEndorsement', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorRole', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorOrcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorInstitutionId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'endorsementOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php b/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php new file mode 100644 index 0000000..aecdda9 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewFrontcoverFileUpload', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work this front cover belongs to.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredMimeType', + 'description' => 'MIME type declared by the client (e.g. \'image/jpeg\').', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredExtension', + 'description' => 'File extension to use in the final canonical key, e.g. \'jpg\', \'png\', \'webp\'.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredSha256', + 'description' => 'SHA-256 checksum of the file, hex-encoded.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewFunding.php b/src/GraphQL/Generated/Inputs/NewFunding.php new file mode 100644 index 0000000..2cb84f8 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewFunding.php @@ -0,0 +1,94 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewFunding', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'program', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'projectName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'projectShortname', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'grantNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewImprint.php b/src/GraphQL/Generated/Inputs/NewImprint.php new file mode 100644 index 0000000..e455f03 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewImprint.php @@ -0,0 +1,134 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewImprint', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'crossmarkDoi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 's3Bucket', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'cdnDomain', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'cloudfrontDistId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultCurrency', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultPlace', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultLocale', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewInstitution.php b/src/GraphQL/Generated/Inputs/NewInstitution.php new file mode 100644 index 0000000..524db18 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewInstitution.php @@ -0,0 +1,70 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewInstitution', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionDoi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'ror', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Ror', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'countryCode', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewIssue.php b/src/GraphQL/Generated/Inputs/NewIssue.php new file mode 100644 index 0000000..9ecca44 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewIssue.php @@ -0,0 +1,78 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewIssue', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issueOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issueNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewLanguage.php b/src/GraphQL/Generated/Inputs/NewLanguage.php new file mode 100644 index 0000000..c435f3f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewLanguage.php @@ -0,0 +1,68 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewLanguage', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'languageCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'languageRelation', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewLocation.php b/src/GraphQL/Generated/Inputs/NewLocation.php new file mode 100644 index 0000000..7fe05bf --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewLocation.php @@ -0,0 +1,108 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewLocation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullTextUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'locationPlatform', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'checksum', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'checksumAlgorithm', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'ChecksumAlgorithm', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewPrice.php b/src/GraphQL/Generated/Inputs/NewPrice.php new file mode 100644 index 0000000..449f0cf --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewPrice.php @@ -0,0 +1,68 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewPrice', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'currencyCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'unitPrice', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewPublication.php b/src/GraphQL/Generated/Inputs/NewPublication.php new file mode 100644 index 0000000..335a00d --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewPublication.php @@ -0,0 +1,184 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewPublication', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'widthMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'widthIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'heightMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'heightIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'depthMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'depthIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'weightG', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'weightOz', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityStandard', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityAdditionalStandard', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityException', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityException', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php b/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php new file mode 100644 index 0000000..fa6c0ba --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewPublicationFileUpload', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => 'Thoth ID of the publication linked to this file.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredMimeType', + 'description' => 'MIME type declared by the client (used for validation and in the presigned URL).', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredExtension', + 'description' => 'File extension to use in the final canonical key, e.g. \'pdf\', \'epub\', \'xml\'.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredSha256', + 'description' => 'SHA-256 checksum of the file, hex-encoded.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewPublisher.php b/src/GraphQL/Generated/Inputs/NewPublisher.php new file mode 100644 index 0000000..68dee34 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewPublisher.php @@ -0,0 +1,90 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewPublisher', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherShortname', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'zitadelId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityStatement', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewReference.php b/src/GraphQL/Generated/Inputs/NewReference.php new file mode 100644 index 0000000..3cddaa4 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewReference.php @@ -0,0 +1,254 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewReference', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'referenceOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'unstructuredCitation', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'articleTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'volumeTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'author', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'volume', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issue', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'componentNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardDesignator', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardsBodyName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardsBodyAcronym', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'retrievalDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewSeries.php b/src/GraphQL/Generated/Inputs/NewSeries.php new file mode 100644 index 0000000..1790fc1 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewSeries.php @@ -0,0 +1,118 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewSeries', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issnPrint', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issnDigital', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesDescription', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesCfpUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewSubject.php b/src/GraphQL/Generated/Inputs/NewSubject.php new file mode 100644 index 0000000..64d460d --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewSubject.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewSubject', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewTitle.php b/src/GraphQL/Generated/Inputs/NewTitle.php new file mode 100644 index 0000000..77df109 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewTitle.php @@ -0,0 +1,106 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewTitle', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullTitle', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subtitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewWork.php b/src/GraphQL/Generated/Inputs/NewWork.php new file mode 100644 index 0000000..ad85214 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewWork.php @@ -0,0 +1,328 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewWork', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workStatus', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reference', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'withdrawnDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'place', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageBreakdown', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imageCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'tableCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'audioCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'videoCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'license', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'copyrightHolder', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lccn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'oclc', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'generalNote', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'bibliographyNote', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'toc', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourcesDescription', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'coverUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'coverCaption', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageInterval', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php new file mode 100644 index 0000000..4de2849 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php @@ -0,0 +1,92 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewWorkFeaturedVideo', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'width', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'height', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php new file mode 100644 index 0000000..0b5e3d8 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewWorkFeaturedVideoFileUpload', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth ID of the work featured video linked to this file.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredMimeType', + 'description' => 'MIME type declared by the client (used for validation and in the presigned URL).', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredExtension', + 'description' => 'File extension to use in the final canonical key, e.g. \'mp4\', \'webm\', \'mov\'.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'declaredSha256', + 'description' => 'SHA-256 checksum of the file, hex-encoded.', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/NewWorkRelation.php b/src/GraphQL/Generated/Inputs/NewWorkRelation.php new file mode 100644 index 0000000..8b61a4b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/NewWorkRelation.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('NewWorkRelation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relatorWorkId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relatedWorkId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relationType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'RelationType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relationOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchAbstract.php b/src/GraphQL/Generated/Inputs/PatchAbstract.php new file mode 100644 index 0000000..038d671 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchAbstract.php @@ -0,0 +1,110 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchAbstract', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'abstractId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'abstractType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AbstractType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php b/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php new file mode 100644 index 0000000..2cfc2cf --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php @@ -0,0 +1,156 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchAdditionalResource', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'additionalResourceId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'description', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'attribution', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourceType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ResourceType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'handle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'date', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourceOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchAffiliation.php b/src/GraphQL/Generated/Inputs/PatchAffiliation.php new file mode 100644 index 0000000..9b82231 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchAffiliation.php @@ -0,0 +1,92 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchAffiliation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'affiliationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'affiliationOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'position', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchAward.php b/src/GraphQL/Generated/Inputs/PatchAward.php new file mode 100644 index 0000000..949371b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchAward.php @@ -0,0 +1,152 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchAward', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'awardId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'category', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'year', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'jury', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'country', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'prizeStatement', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'role', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AwardRole', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'awardOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchBiography.php b/src/GraphQL/Generated/Inputs/PatchBiography.php new file mode 100644 index 0000000..9e41722 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchBiography.php @@ -0,0 +1,96 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchBiography', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'biographyId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchBookReview.php b/src/GraphQL/Generated/Inputs/PatchBookReview.php new file mode 100644 index 0000000..af51e82 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchBookReview.php @@ -0,0 +1,198 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchBookReview', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'bookReviewId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewerOrcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewerInstitutionId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalVolume', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalIssn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageRange', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reviewOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchContact.php b/src/GraphQL/Generated/Inputs/PatchContact.php new file mode 100644 index 0000000..57465a7 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchContact.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchContact', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contactId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contactType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'email', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchContribution.php b/src/GraphQL/Generated/Inputs/PatchContribution.php new file mode 100644 index 0000000..397ae1c --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchContribution.php @@ -0,0 +1,148 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchContribution', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributorId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'mainContribution', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributionOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchContributor.php b/src/GraphQL/Generated/Inputs/PatchContributor.php new file mode 100644 index 0000000..072878b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchContributor.php @@ -0,0 +1,98 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchContributor', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'contributorId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'orcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'website', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchEndorsement.php b/src/GraphQL/Generated/Inputs/PatchEndorsement.php new file mode 100644 index 0000000..bc7edb5 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchEndorsement.php @@ -0,0 +1,132 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchEndorsement', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'endorsementId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorRole', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorOrcid', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'authorInstitutionId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'endorsementOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchFunding.php b/src/GraphQL/Generated/Inputs/PatchFunding.php new file mode 100644 index 0000000..c4fc198 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchFunding.php @@ -0,0 +1,108 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchFunding', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fundingId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'program', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'projectName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'projectShortname', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'grantNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchImprint.php b/src/GraphQL/Generated/Inputs/PatchImprint.php new file mode 100644 index 0000000..794c977 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchImprint.php @@ -0,0 +1,148 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchImprint', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'crossmarkDoi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 's3Bucket', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'cdnDomain', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'cloudfrontDistId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultCurrency', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultPlace', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'defaultLocale', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchInstitution.php b/src/GraphQL/Generated/Inputs/PatchInstitution.php new file mode 100644 index 0000000..912e1af --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchInstitution.php @@ -0,0 +1,84 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchInstitution', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'institutionDoi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'ror', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Ror', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'countryCode', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchIssue.php b/src/GraphQL/Generated/Inputs/PatchIssue.php new file mode 100644 index 0000000..41688c1 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchIssue.php @@ -0,0 +1,92 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchIssue', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issueId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issueOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issueNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchLanguage.php b/src/GraphQL/Generated/Inputs/PatchLanguage.php new file mode 100644 index 0000000..bcf5b2b --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchLanguage.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchLanguage', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'languageId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'languageCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'languageRelation', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchLocation.php b/src/GraphQL/Generated/Inputs/PatchLocation.php new file mode 100644 index 0000000..87d90b5 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchLocation.php @@ -0,0 +1,122 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchLocation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'locationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullTextUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'locationPlatform', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'checksum', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'checksumAlgorithm', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'ChecksumAlgorithm', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchPrice.php b/src/GraphQL/Generated/Inputs/PatchPrice.php new file mode 100644 index 0000000..cf164d9 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchPrice.php @@ -0,0 +1,82 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchPrice', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'priceId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'currencyCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'unitPrice', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchPublication.php b/src/GraphQL/Generated/Inputs/PatchPublication.php new file mode 100644 index 0000000..2169aa6 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchPublication.php @@ -0,0 +1,198 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchPublication', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'widthMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'widthIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'heightMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'heightIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'depthMm', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'depthIn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'weightG', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'weightOz', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityStandard', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityAdditionalStandard', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityException', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityException', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchPublisher.php b/src/GraphQL/Generated/Inputs/PatchPublisher.php new file mode 100644 index 0000000..4ba04c1 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchPublisher.php @@ -0,0 +1,104 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchPublisher', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherShortname', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publisherUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'zitadelId', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityStatement', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchReference.php b/src/GraphQL/Generated/Inputs/PatchReference.php new file mode 100644 index 0000000..3e4a5b7 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchReference.php @@ -0,0 +1,268 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchReference', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'referenceId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'referenceOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'unstructuredCitation', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'journalTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'articleTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'volumeTitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'author', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'volume', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issue', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'componentNumber', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardDesignator', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardsBodyName', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'standardsBodyAcronym', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'retrievalDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchSeries.php b/src/GraphQL/Generated/Inputs/PatchSeries.php new file mode 100644 index 0000000..1b55b61 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchSeries.php @@ -0,0 +1,132 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchSeries', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesName', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issnPrint', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'issnDigital', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesDescription', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'seriesCfpUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchSubject.php b/src/GraphQL/Generated/Inputs/PatchSubject.php new file mode 100644 index 0000000..202e159 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchSubject.php @@ -0,0 +1,96 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchSubject', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subjectOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchTitle.php b/src/GraphQL/Generated/Inputs/PatchTitle.php new file mode 100644 index 0000000..3f34d0c --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchTitle.php @@ -0,0 +1,120 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchTitle', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'titleId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'fullTitle', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'subtitle', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchWork.php b/src/GraphQL/Generated/Inputs/PatchWork.php new file mode 100644 index 0000000..57ce2c5 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchWork.php @@ -0,0 +1,342 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchWork', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workStatus', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'reference', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'withdrawnDate', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'place', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageBreakdown', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'imageCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'tableCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'audioCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'videoCount', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'license', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'copyrightHolder', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lccn', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'oclc', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'generalNote', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'bibliographyNote', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'toc', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'resourcesDescription', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'coverUrl', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'coverCaption', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'lastPage', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'pageInterval', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php b/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php new file mode 100644 index 0000000..202b3b4 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php @@ -0,0 +1,106 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchWorkFeaturedVideo', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideoId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => null, + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'width', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'height', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PatchWorkRelation.php b/src/GraphQL/Generated/Inputs/PatchWorkRelation.php new file mode 100644 index 0000000..2ac5b07 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PatchWorkRelation.php @@ -0,0 +1,96 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PatchWorkRelation', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'workRelationId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relatorWorkId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relatedWorkId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relationType', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'RelationType', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'relationOrdinal', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PriceOrderBy.php b/src/GraphQL/Generated/Inputs/PriceOrderBy.php new file mode 100644 index 0000000..a25a090 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PriceOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PriceOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PriceField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PublicationOrderBy.php b/src/GraphQL/Generated/Inputs/PublicationOrderBy.php new file mode 100644 index 0000000..31e5e2c --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PublicationOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PublicationOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/PublisherOrderBy.php b/src/GraphQL/Generated/Inputs/PublisherOrderBy.php new file mode 100644 index 0000000..686225e --- /dev/null +++ b/src/GraphQL/Generated/Inputs/PublisherOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('PublisherOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublisherField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php b/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php new file mode 100644 index 0000000..5997570 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('ReferenceOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ReferenceField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/SeriesOrderBy.php b/src/GraphQL/Generated/Inputs/SeriesOrderBy.php new file mode 100644 index 0000000..9b0d56f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/SeriesOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('SeriesOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/SubjectOrderBy.php b/src/GraphQL/Generated/Inputs/SubjectOrderBy.php new file mode 100644 index 0000000..5149bbf --- /dev/null +++ b/src/GraphQL/Generated/Inputs/SubjectOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('SubjectOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/TimeExpression.php b/src/GraphQL/Generated/Inputs/TimeExpression.php new file mode 100644 index 0000000..17d13fa --- /dev/null +++ b/src/GraphQL/Generated/Inputs/TimeExpression.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('TimeExpression', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'timestamp', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'expression', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Expression', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/TitleOrderBy.php b/src/GraphQL/Generated/Inputs/TitleOrderBy.php new file mode 100644 index 0000000..b9e6756 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/TitleOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('TitleOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'TitleField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php b/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php new file mode 100644 index 0000000..cd7dbd0 --- /dev/null +++ b/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('WorkFeaturedVideoOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkFeaturedVideoField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/WorkOrderBy.php b/src/GraphQL/Generated/Inputs/WorkOrderBy.php new file mode 100644 index 0000000..6e3d97f --- /dev/null +++ b/src/GraphQL/Generated/Inputs/WorkOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('WorkOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php b/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php new file mode 100644 index 0000000..5524adc --- /dev/null +++ b/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php @@ -0,0 +1,54 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('WorkRelationOrderBy', [ + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'field', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkRelationField', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]), + \ThothApi\GraphQL\Definition\ArgumentDefinition::fromIntrospection([ + 'name' => 'direction', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'Direction', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Mutations/CompleteFileUploadMutation.php b/src/GraphQL/Generated/Mutations/CompleteFileUploadMutation.php new file mode 100644 index 0000000..d1311ee --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CompleteFileUploadMutation.php @@ -0,0 +1,49 @@ + 'completeFileUpload', + 'description' => 'Complete a file upload, validate it, and promote it to its final DOI-based location.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for completing a file upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'CompleteFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateAbstractMutation.php b/src/GraphQL/Generated/Mutations/CreateAbstractMutation.php new file mode 100644 index 0000000..6c2a903 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateAbstractMutation.php @@ -0,0 +1,59 @@ + 'createAbstract', + 'description' => 'Create a new abstract with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the abstract', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for abstract to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAbstract', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateAdditionalResourceMutation.php b/src/GraphQL/Generated/Mutations/CreateAdditionalResourceMutation.php new file mode 100644 index 0000000..7039bf4 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateAdditionalResourceMutation.php @@ -0,0 +1,59 @@ + 'createAdditionalResource', + 'description' => 'Create a new additional resource with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the additional resource text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for additional resource to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAdditionalResource', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateAffiliationMutation.php b/src/GraphQL/Generated/Mutations/CreateAffiliationMutation.php new file mode 100644 index 0000000..adefc6d --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateAffiliationMutation.php @@ -0,0 +1,49 @@ + 'createAffiliation', + 'description' => 'Create a new affiliation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for affiliation to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAffiliation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateAwardMutation.php b/src/GraphQL/Generated/Mutations/CreateAwardMutation.php new file mode 100644 index 0000000..812f1c7 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateAwardMutation.php @@ -0,0 +1,59 @@ + 'createAward', + 'description' => 'Create a new award with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the award text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for award to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAward', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateBiographyMutation.php b/src/GraphQL/Generated/Mutations/CreateBiographyMutation.php new file mode 100644 index 0000000..2a9a238 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateBiographyMutation.php @@ -0,0 +1,59 @@ + 'createBiography', + 'description' => 'Create a new biography with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the biography', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for biography to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewBiography', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateBookReviewMutation.php b/src/GraphQL/Generated/Mutations/CreateBookReviewMutation.php new file mode 100644 index 0000000..95b7f59 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateBookReviewMutation.php @@ -0,0 +1,59 @@ + 'createBookReview', + 'description' => 'Create a new book review with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the book review text field', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for book review to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewBookReview', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateContactMutation.php b/src/GraphQL/Generated/Mutations/CreateContactMutation.php new file mode 100644 index 0000000..e89c4ea --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateContactMutation.php @@ -0,0 +1,49 @@ + 'createContact', + 'description' => 'Create a new contact with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contact to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContact', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateContributionMutation.php b/src/GraphQL/Generated/Mutations/CreateContributionMutation.php new file mode 100644 index 0000000..fee2f01 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateContributionMutation.php @@ -0,0 +1,49 @@ + 'createContribution', + 'description' => 'Create a new contribution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contribution to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContribution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateContributorMutation.php b/src/GraphQL/Generated/Mutations/CreateContributorMutation.php new file mode 100644 index 0000000..e797c10 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateContributorMutation.php @@ -0,0 +1,49 @@ + 'createContributor', + 'description' => 'Create a new contributor with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contributor to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContributor', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateEndorsementMutation.php b/src/GraphQL/Generated/Mutations/CreateEndorsementMutation.php new file mode 100644 index 0000000..af76e68 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateEndorsementMutation.php @@ -0,0 +1,59 @@ + 'createEndorsement', + 'description' => 'Create a new endorsement with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the endorsement rich-text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for endorsement to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewEndorsement', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateFundingMutation.php b/src/GraphQL/Generated/Mutations/CreateFundingMutation.php new file mode 100644 index 0000000..cf2ae86 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateFundingMutation.php @@ -0,0 +1,49 @@ + 'createFunding', + 'description' => 'Create a new funding with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for funding to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewFunding', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateImprintMutation.php b/src/GraphQL/Generated/Mutations/CreateImprintMutation.php new file mode 100644 index 0000000..1b1ed56 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateImprintMutation.php @@ -0,0 +1,49 @@ + 'createImprint', + 'description' => 'Create a new imprint with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for imprint to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewImprint', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateInstitutionMutation.php b/src/GraphQL/Generated/Mutations/CreateInstitutionMutation.php new file mode 100644 index 0000000..48a5538 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateInstitutionMutation.php @@ -0,0 +1,49 @@ + 'createInstitution', + 'description' => 'Create a new institution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for institution to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewInstitution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateIssueMutation.php b/src/GraphQL/Generated/Mutations/CreateIssueMutation.php new file mode 100644 index 0000000..2180c06 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateIssueMutation.php @@ -0,0 +1,49 @@ + 'createIssue', + 'description' => 'Create a new issue with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for issue to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewIssue', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateLanguageMutation.php b/src/GraphQL/Generated/Mutations/CreateLanguageMutation.php new file mode 100644 index 0000000..d340b77 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateLanguageMutation.php @@ -0,0 +1,49 @@ + 'createLanguage', + 'description' => 'Create a new language with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for language to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewLanguage', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateLocationMutation.php b/src/GraphQL/Generated/Mutations/CreateLocationMutation.php new file mode 100644 index 0000000..3af9c75 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateLocationMutation.php @@ -0,0 +1,49 @@ + 'createLocation', + 'description' => 'Create a new location with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for location to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewLocation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreatePriceMutation.php b/src/GraphQL/Generated/Mutations/CreatePriceMutation.php new file mode 100644 index 0000000..08044c5 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreatePriceMutation.php @@ -0,0 +1,49 @@ + 'createPrice', + 'description' => 'Create a new price with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for price to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPrice', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreatePublicationMutation.php b/src/GraphQL/Generated/Mutations/CreatePublicationMutation.php new file mode 100644 index 0000000..bb7e584 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreatePublicationMutation.php @@ -0,0 +1,49 @@ + 'createPublication', + 'description' => 'Create a new publication with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for publication to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublication', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreatePublisherMutation.php b/src/GraphQL/Generated/Mutations/CreatePublisherMutation.php new file mode 100644 index 0000000..4b0c2a4 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreatePublisherMutation.php @@ -0,0 +1,49 @@ + 'createPublisher', + 'description' => 'Create a new publisher with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for publisher to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublisher', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateReferenceMutation.php b/src/GraphQL/Generated/Mutations/CreateReferenceMutation.php new file mode 100644 index 0000000..36afa6b --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateReferenceMutation.php @@ -0,0 +1,49 @@ + 'createReference', + 'description' => 'Create a new reference with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for reference to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewReference', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateSeriesMutation.php b/src/GraphQL/Generated/Mutations/CreateSeriesMutation.php new file mode 100644 index 0000000..49e226a --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateSeriesMutation.php @@ -0,0 +1,59 @@ + 'createSeries', + 'description' => 'Create a new series with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the series description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for series to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewSeries', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateSubjectMutation.php b/src/GraphQL/Generated/Mutations/CreateSubjectMutation.php new file mode 100644 index 0000000..54da70c --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateSubjectMutation.php @@ -0,0 +1,49 @@ + 'createSubject', + 'description' => 'Create a new subject with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for subject to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewSubject', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateTitleMutation.php b/src/GraphQL/Generated/Mutations/CreateTitleMutation.php new file mode 100644 index 0000000..53fe104 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateTitleMutation.php @@ -0,0 +1,59 @@ + 'createTitle', + 'description' => 'Create a new title with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for title to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewTitle', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateWorkFeaturedVideoMutation.php b/src/GraphQL/Generated/Mutations/CreateWorkFeaturedVideoMutation.php new file mode 100644 index 0000000..6b9b7bf --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateWorkFeaturedVideoMutation.php @@ -0,0 +1,49 @@ + 'createWorkFeaturedVideo', + 'description' => 'Create a new featured video with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for featured video to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateWorkMutation.php b/src/GraphQL/Generated/Mutations/CreateWorkMutation.php new file mode 100644 index 0000000..57cd2fc --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateWorkMutation.php @@ -0,0 +1,49 @@ + 'createWork', + 'description' => 'Create a new work with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for work to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWork', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/CreateWorkRelationMutation.php b/src/GraphQL/Generated/Mutations/CreateWorkRelationMutation.php new file mode 100644 index 0000000..5aa8c96 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/CreateWorkRelationMutation.php @@ -0,0 +1,49 @@ + 'createWorkRelation', + 'description' => 'Create a new work relation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for work relation to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteAbstractMutation.php b/src/GraphQL/Generated/Mutations/DeleteAbstractMutation.php new file mode 100644 index 0000000..e3734ed --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteAbstractMutation.php @@ -0,0 +1,49 @@ + 'deleteAbstract', + 'description' => 'Delete a single abstract using its ID', + 'args' => [ + [ + 'name' => 'abstractId', + 'description' => 'Thoth ID of abstract to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteAdditionalResourceMutation.php b/src/GraphQL/Generated/Mutations/DeleteAdditionalResourceMutation.php new file mode 100644 index 0000000..898f8f4 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteAdditionalResourceMutation.php @@ -0,0 +1,49 @@ + 'deleteAdditionalResource', + 'description' => 'Delete a single additional resource using its ID', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of additional resource to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteAffiliationMutation.php b/src/GraphQL/Generated/Mutations/DeleteAffiliationMutation.php new file mode 100644 index 0000000..20d3371 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteAffiliationMutation.php @@ -0,0 +1,49 @@ + 'deleteAffiliation', + 'description' => 'Delete a single affiliation using its ID', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth ID of affiliation to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteAwardMutation.php b/src/GraphQL/Generated/Mutations/DeleteAwardMutation.php new file mode 100644 index 0000000..08f7649 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteAwardMutation.php @@ -0,0 +1,49 @@ + 'deleteAward', + 'description' => 'Delete a single award using its ID', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth ID of award to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteBiographyMutation.php b/src/GraphQL/Generated/Mutations/DeleteBiographyMutation.php new file mode 100644 index 0000000..e3de7a9 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteBiographyMutation.php @@ -0,0 +1,49 @@ + 'deleteBiography', + 'description' => 'Delete a single biography using its ID', + 'args' => [ + [ + 'name' => 'biographyId', + 'description' => 'Thoth ID of biography to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteBookReviewMutation.php b/src/GraphQL/Generated/Mutations/DeleteBookReviewMutation.php new file mode 100644 index 0000000..78fc5a5 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteBookReviewMutation.php @@ -0,0 +1,49 @@ + 'deleteBookReview', + 'description' => 'Delete a single book review using its ID', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth ID of book review to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteContactMutation.php b/src/GraphQL/Generated/Mutations/DeleteContactMutation.php new file mode 100644 index 0000000..02ef9a7 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteContactMutation.php @@ -0,0 +1,49 @@ + 'deleteContact', + 'description' => 'Delete a single contact using its ID', + 'args' => [ + [ + 'name' => 'contactId', + 'description' => 'Thoth ID of contact to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteContributionMutation.php b/src/GraphQL/Generated/Mutations/DeleteContributionMutation.php new file mode 100644 index 0000000..ba3f7bf --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteContributionMutation.php @@ -0,0 +1,49 @@ + 'deleteContribution', + 'description' => 'Delete a single contribution using its ID', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth ID of contribution to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteContributorMutation.php b/src/GraphQL/Generated/Mutations/DeleteContributorMutation.php new file mode 100644 index 0000000..6533414 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteContributorMutation.php @@ -0,0 +1,49 @@ + 'deleteContributor', + 'description' => 'Delete a single contributor using its ID', + 'args' => [ + [ + 'name' => 'contributorId', + 'description' => 'Thoth ID of contributor to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteEndorsementMutation.php b/src/GraphQL/Generated/Mutations/DeleteEndorsementMutation.php new file mode 100644 index 0000000..66b263a --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteEndorsementMutation.php @@ -0,0 +1,49 @@ + 'deleteEndorsement', + 'description' => 'Delete a single endorsement using its ID', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth ID of endorsement to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteFundingMutation.php b/src/GraphQL/Generated/Mutations/DeleteFundingMutation.php new file mode 100644 index 0000000..fea4295 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteFundingMutation.php @@ -0,0 +1,49 @@ + 'deleteFunding', + 'description' => 'Delete a single funding using its ID', + 'args' => [ + [ + 'name' => 'fundingId', + 'description' => 'Thoth ID of funding to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteImprintMutation.php b/src/GraphQL/Generated/Mutations/DeleteImprintMutation.php new file mode 100644 index 0000000..ab55b93 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteImprintMutation.php @@ -0,0 +1,49 @@ + 'deleteImprint', + 'description' => 'Delete a single imprint using its ID', + 'args' => [ + [ + 'name' => 'imprintId', + 'description' => 'Thoth ID of imprint to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteInstitutionMutation.php b/src/GraphQL/Generated/Mutations/DeleteInstitutionMutation.php new file mode 100644 index 0000000..29dc977 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteInstitutionMutation.php @@ -0,0 +1,49 @@ + 'deleteInstitution', + 'description' => 'Delete a single institution using its ID', + 'args' => [ + [ + 'name' => 'institutionId', + 'description' => 'Thoth ID of institution to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteIssueMutation.php b/src/GraphQL/Generated/Mutations/DeleteIssueMutation.php new file mode 100644 index 0000000..06012fd --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteIssueMutation.php @@ -0,0 +1,49 @@ + 'deleteIssue', + 'description' => 'Delete a single issue using its ID', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth ID of issue to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteLanguageMutation.php b/src/GraphQL/Generated/Mutations/DeleteLanguageMutation.php new file mode 100644 index 0000000..662505b --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteLanguageMutation.php @@ -0,0 +1,49 @@ + 'deleteLanguage', + 'description' => 'Delete a single language using its ID', + 'args' => [ + [ + 'name' => 'languageId', + 'description' => 'Thoth ID of language to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteLocationMutation.php b/src/GraphQL/Generated/Mutations/DeleteLocationMutation.php new file mode 100644 index 0000000..88e00e8 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteLocationMutation.php @@ -0,0 +1,49 @@ + 'deleteLocation', + 'description' => 'Delete a single location using its ID', + 'args' => [ + [ + 'name' => 'locationId', + 'description' => 'Thoth ID of location to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeletePriceMutation.php b/src/GraphQL/Generated/Mutations/DeletePriceMutation.php new file mode 100644 index 0000000..70c63c1 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeletePriceMutation.php @@ -0,0 +1,49 @@ + 'deletePrice', + 'description' => 'Delete a single price using its ID', + 'args' => [ + [ + 'name' => 'priceId', + 'description' => 'Thoth ID of price to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeletePublicationMutation.php b/src/GraphQL/Generated/Mutations/DeletePublicationMutation.php new file mode 100644 index 0000000..7cfb581 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeletePublicationMutation.php @@ -0,0 +1,49 @@ + 'deletePublication', + 'description' => 'Delete a single publication using its ID', + 'args' => [ + [ + 'name' => 'publicationId', + 'description' => 'Thoth ID of publication to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeletePublisherMutation.php b/src/GraphQL/Generated/Mutations/DeletePublisherMutation.php new file mode 100644 index 0000000..60d0853 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeletePublisherMutation.php @@ -0,0 +1,49 @@ + 'deletePublisher', + 'description' => 'Delete a single publisher using its ID', + 'args' => [ + [ + 'name' => 'publisherId', + 'description' => 'Thoth ID of publisher to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteReferenceMutation.php b/src/GraphQL/Generated/Mutations/DeleteReferenceMutation.php new file mode 100644 index 0000000..fa90334 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteReferenceMutation.php @@ -0,0 +1,49 @@ + 'deleteReference', + 'description' => 'Delete a single reference using its ID', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth ID of reference to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteSeriesMutation.php b/src/GraphQL/Generated/Mutations/DeleteSeriesMutation.php new file mode 100644 index 0000000..0248394 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteSeriesMutation.php @@ -0,0 +1,49 @@ + 'deleteSeries', + 'description' => 'Delete a single series using its ID', + 'args' => [ + [ + 'name' => 'seriesId', + 'description' => 'Thoth ID of series to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteSubjectMutation.php b/src/GraphQL/Generated/Mutations/DeleteSubjectMutation.php new file mode 100644 index 0000000..56c226b --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteSubjectMutation.php @@ -0,0 +1,49 @@ + 'deleteSubject', + 'description' => 'Delete a single subject using its ID', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth ID of subject to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteTitleMutation.php b/src/GraphQL/Generated/Mutations/DeleteTitleMutation.php new file mode 100644 index 0000000..69dfbb4 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteTitleMutation.php @@ -0,0 +1,49 @@ + 'deleteTitle', + 'description' => 'Delete a single title using its ID', + 'args' => [ + [ + 'name' => 'titleId', + 'description' => 'Thoth ID of title to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteWorkFeaturedVideoMutation.php b/src/GraphQL/Generated/Mutations/DeleteWorkFeaturedVideoMutation.php new file mode 100644 index 0000000..c39d7d1 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteWorkFeaturedVideoMutation.php @@ -0,0 +1,49 @@ + 'deleteWorkFeaturedVideo', + 'description' => 'Delete a single featured video using its ID', + 'args' => [ + [ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth ID of featured video to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteWorkMutation.php b/src/GraphQL/Generated/Mutations/DeleteWorkMutation.php new file mode 100644 index 0000000..16f207e --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteWorkMutation.php @@ -0,0 +1,49 @@ + 'deleteWork', + 'description' => 'Delete a single work using its ID', + 'args' => [ + [ + 'name' => 'workId', + 'description' => 'Thoth ID of work to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/DeleteWorkRelationMutation.php b/src/GraphQL/Generated/Mutations/DeleteWorkRelationMutation.php new file mode 100644 index 0000000..59112fc --- /dev/null +++ b/src/GraphQL/Generated/Mutations/DeleteWorkRelationMutation.php @@ -0,0 +1,49 @@ + 'deleteWorkRelation', + 'description' => 'Delete a single work relation using its ID', + 'args' => [ + [ + 'name' => 'workRelationId', + 'description' => 'Thoth ID of work relation to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/InitAdditionalResourceFileUploadMutation.php b/src/GraphQL/Generated/Mutations/InitAdditionalResourceFileUploadMutation.php new file mode 100644 index 0000000..03bf389 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/InitAdditionalResourceFileUploadMutation.php @@ -0,0 +1,49 @@ + 'initAdditionalResourceFileUpload', + 'description' => 'Start uploading a file for an additional resource. Supported resource types include AUDIO, VIDEO, IMAGE, DOCUMENT, DATASET, and SPREADSHEET.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting an additional resource upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAdditionalResourceFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/InitFrontcoverFileUploadMutation.php b/src/GraphQL/Generated/Mutations/InitFrontcoverFileUploadMutation.php new file mode 100644 index 0000000..ee6ba20 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/InitFrontcoverFileUploadMutation.php @@ -0,0 +1,49 @@ + 'initFrontcoverFileUpload', + 'description' => 'Start uploading a front cover image for a given work. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a front cover upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewFrontcoverFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/InitPublicationFileUploadMutation.php b/src/GraphQL/Generated/Mutations/InitPublicationFileUploadMutation.php new file mode 100644 index 0000000..abadd2e --- /dev/null +++ b/src/GraphQL/Generated/Mutations/InitPublicationFileUploadMutation.php @@ -0,0 +1,49 @@ + 'initPublicationFileUpload', + 'description' => 'Start uploading a publication file (e.g. PDF, EPUB, XML) for a given publication. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a publication file upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublicationFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/InitWorkFeaturedVideoFileUploadMutation.php b/src/GraphQL/Generated/Mutations/InitWorkFeaturedVideoFileUploadMutation.php new file mode 100644 index 0000000..d49e273 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/InitWorkFeaturedVideoFileUploadMutation.php @@ -0,0 +1,49 @@ + 'initWorkFeaturedVideoFileUpload', + 'description' => 'Start uploading a hosted featured video for a work. The uploaded file is promoted to a DOI-scoped resource path.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a featured video upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkFeaturedVideoFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveAdditionalResourceMutation.php b/src/GraphQL/Generated/Mutations/MoveAdditionalResourceMutation.php new file mode 100644 index 0000000..bcb20f7 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveAdditionalResourceMutation.php @@ -0,0 +1,63 @@ + 'moveAdditionalResource', + 'description' => 'Change the ordering of an additional resource within a work', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of additional resource to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which additional resource should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveAffiliationMutation.php b/src/GraphQL/Generated/Mutations/MoveAffiliationMutation.php new file mode 100644 index 0000000..be8bd5e --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveAffiliationMutation.php @@ -0,0 +1,63 @@ + 'moveAffiliation', + 'description' => 'Change the ordering of an affiliation within a contribution', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth ID of affiliation to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which affiliation should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveAwardMutation.php b/src/GraphQL/Generated/Mutations/MoveAwardMutation.php new file mode 100644 index 0000000..f3dcd78 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveAwardMutation.php @@ -0,0 +1,63 @@ + 'moveAward', + 'description' => 'Change the ordering of an award within a work', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth ID of award to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which award should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveBookReviewMutation.php b/src/GraphQL/Generated/Mutations/MoveBookReviewMutation.php new file mode 100644 index 0000000..2971913 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveBookReviewMutation.php @@ -0,0 +1,63 @@ + 'moveBookReview', + 'description' => 'Change the ordering of a book review within a work', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth ID of book review to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which book review should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveContributionMutation.php b/src/GraphQL/Generated/Mutations/MoveContributionMutation.php new file mode 100644 index 0000000..ce132b1 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveContributionMutation.php @@ -0,0 +1,63 @@ + 'moveContribution', + 'description' => 'Change the ordering of a contribution within a work', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth ID of contribution to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which contribution should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveEndorsementMutation.php b/src/GraphQL/Generated/Mutations/MoveEndorsementMutation.php new file mode 100644 index 0000000..6f310ee --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveEndorsementMutation.php @@ -0,0 +1,63 @@ + 'moveEndorsement', + 'description' => 'Change the ordering of an endorsement within a work', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth ID of endorsement to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which endorsement should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveIssueMutation.php b/src/GraphQL/Generated/Mutations/MoveIssueMutation.php new file mode 100644 index 0000000..52219d6 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveIssueMutation.php @@ -0,0 +1,63 @@ + 'moveIssue', + 'description' => 'Change the ordering of an issue within a series', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth ID of issue to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which issue should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveReferenceMutation.php b/src/GraphQL/Generated/Mutations/MoveReferenceMutation.php new file mode 100644 index 0000000..beef56e --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveReferenceMutation.php @@ -0,0 +1,63 @@ + 'moveReference', + 'description' => 'Change the ordering of a reference within a work', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth ID of reference to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which reference should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveSubjectMutation.php b/src/GraphQL/Generated/Mutations/MoveSubjectMutation.php new file mode 100644 index 0000000..361624d --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveSubjectMutation.php @@ -0,0 +1,63 @@ + 'moveSubject', + 'description' => 'Change the ordering of a subject within a work', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth ID of subject to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which subject should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/MoveWorkRelationMutation.php b/src/GraphQL/Generated/Mutations/MoveWorkRelationMutation.php new file mode 100644 index 0000000..61057d5 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/MoveWorkRelationMutation.php @@ -0,0 +1,63 @@ + 'moveWorkRelation', + 'description' => 'Change the ordering of a work relation within a work', + 'args' => [ + [ + 'name' => 'workRelationId', + 'description' => 'Thoth ID of work relation to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which work relation should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateAbstractMutation.php b/src/GraphQL/Generated/Mutations/UpdateAbstractMutation.php new file mode 100644 index 0000000..1131ba3 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateAbstractMutation.php @@ -0,0 +1,59 @@ + 'updateAbstract', + 'description' => 'Update an existing abstract with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the abstract', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing abstract', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAbstract', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateAdditionalResourceMutation.php b/src/GraphQL/Generated/Mutations/UpdateAdditionalResourceMutation.php new file mode 100644 index 0000000..5cafb17 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateAdditionalResourceMutation.php @@ -0,0 +1,59 @@ + 'updateAdditionalResource', + 'description' => 'Update an existing additional resource with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the additional resource text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing additional resource', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAdditionalResource', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateAffiliationMutation.php b/src/GraphQL/Generated/Mutations/UpdateAffiliationMutation.php new file mode 100644 index 0000000..9c2041b --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateAffiliationMutation.php @@ -0,0 +1,49 @@ + 'updateAffiliation', + 'description' => 'Update an existing affiliation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing affiliation', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAffiliation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateAwardMutation.php b/src/GraphQL/Generated/Mutations/UpdateAwardMutation.php new file mode 100644 index 0000000..eac5780 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateAwardMutation.php @@ -0,0 +1,59 @@ + 'updateAward', + 'description' => 'Update an existing award with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the award text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing award', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAward', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateBiographyMutation.php b/src/GraphQL/Generated/Mutations/UpdateBiographyMutation.php new file mode 100644 index 0000000..e1057fc --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateBiographyMutation.php @@ -0,0 +1,59 @@ + 'updateBiography', + 'description' => 'Update an existing biography with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the biography', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing biography', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchBiography', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateBookReviewMutation.php b/src/GraphQL/Generated/Mutations/UpdateBookReviewMutation.php new file mode 100644 index 0000000..e654749 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateBookReviewMutation.php @@ -0,0 +1,59 @@ + 'updateBookReview', + 'description' => 'Update an existing book review with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the book review text field', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing book review', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchBookReview', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateContactMutation.php b/src/GraphQL/Generated/Mutations/UpdateContactMutation.php new file mode 100644 index 0000000..ebf80b5 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateContactMutation.php @@ -0,0 +1,49 @@ + 'updateContact', + 'description' => 'Update an existing contact with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contact', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContact', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateContributionMutation.php b/src/GraphQL/Generated/Mutations/UpdateContributionMutation.php new file mode 100644 index 0000000..940e0b2 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateContributionMutation.php @@ -0,0 +1,49 @@ + 'updateContribution', + 'description' => 'Update an existing contribution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contribution', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContribution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateContributorMutation.php b/src/GraphQL/Generated/Mutations/UpdateContributorMutation.php new file mode 100644 index 0000000..979bf16 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateContributorMutation.php @@ -0,0 +1,49 @@ + 'updateContributor', + 'description' => 'Update an existing contributor with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contributor', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContributor', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateEndorsementMutation.php b/src/GraphQL/Generated/Mutations/UpdateEndorsementMutation.php new file mode 100644 index 0000000..4a5f122 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateEndorsementMutation.php @@ -0,0 +1,59 @@ + 'updateEndorsement', + 'description' => 'Update an existing endorsement with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the endorsement rich-text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing endorsement', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchEndorsement', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateFundingMutation.php b/src/GraphQL/Generated/Mutations/UpdateFundingMutation.php new file mode 100644 index 0000000..9564aed --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateFundingMutation.php @@ -0,0 +1,49 @@ + 'updateFunding', + 'description' => 'Update an existing funding with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing funding', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchFunding', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateImprintMutation.php b/src/GraphQL/Generated/Mutations/UpdateImprintMutation.php new file mode 100644 index 0000000..00076fb --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateImprintMutation.php @@ -0,0 +1,49 @@ + 'updateImprint', + 'description' => 'Update an existing imprint with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing imprint', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchImprint', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateInstitutionMutation.php b/src/GraphQL/Generated/Mutations/UpdateInstitutionMutation.php new file mode 100644 index 0000000..98667c9 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateInstitutionMutation.php @@ -0,0 +1,49 @@ + 'updateInstitution', + 'description' => 'Update an existing institution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing institution', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchInstitution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateIssueMutation.php b/src/GraphQL/Generated/Mutations/UpdateIssueMutation.php new file mode 100644 index 0000000..c29d8e1 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateIssueMutation.php @@ -0,0 +1,49 @@ + 'updateIssue', + 'description' => 'Update an existing issue with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing issue', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchIssue', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateLanguageMutation.php b/src/GraphQL/Generated/Mutations/UpdateLanguageMutation.php new file mode 100644 index 0000000..466dd05 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateLanguageMutation.php @@ -0,0 +1,49 @@ + 'updateLanguage', + 'description' => 'Update an existing language with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing language', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchLanguage', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateLocationMutation.php b/src/GraphQL/Generated/Mutations/UpdateLocationMutation.php new file mode 100644 index 0000000..72ff59c --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateLocationMutation.php @@ -0,0 +1,49 @@ + 'updateLocation', + 'description' => 'Update an existing location with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing location', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchLocation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdatePriceMutation.php b/src/GraphQL/Generated/Mutations/UpdatePriceMutation.php new file mode 100644 index 0000000..b09ef27 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdatePriceMutation.php @@ -0,0 +1,49 @@ + 'updatePrice', + 'description' => 'Update an existing price with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing price', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPrice', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdatePublicationMutation.php b/src/GraphQL/Generated/Mutations/UpdatePublicationMutation.php new file mode 100644 index 0000000..1ecf17c --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdatePublicationMutation.php @@ -0,0 +1,49 @@ + 'updatePublication', + 'description' => 'Update an existing publication with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing publication', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPublication', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdatePublisherMutation.php b/src/GraphQL/Generated/Mutations/UpdatePublisherMutation.php new file mode 100644 index 0000000..95a8cb3 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdatePublisherMutation.php @@ -0,0 +1,49 @@ + 'updatePublisher', + 'description' => 'Update an existing publisher with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing publisher', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPublisher', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateReferenceMutation.php b/src/GraphQL/Generated/Mutations/UpdateReferenceMutation.php new file mode 100644 index 0000000..09f69a9 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateReferenceMutation.php @@ -0,0 +1,49 @@ + 'updateReference', + 'description' => 'Update an existing reference with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing reference', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchReference', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateSeriesMutation.php b/src/GraphQL/Generated/Mutations/UpdateSeriesMutation.php new file mode 100644 index 0000000..a4efdbd --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateSeriesMutation.php @@ -0,0 +1,59 @@ + 'updateSeries', + 'description' => 'Update an existing series with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the series description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing series', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchSeries', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateSubjectMutation.php b/src/GraphQL/Generated/Mutations/UpdateSubjectMutation.php new file mode 100644 index 0000000..ea2dec0 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateSubjectMutation.php @@ -0,0 +1,49 @@ + 'updateSubject', + 'description' => 'Update an existing subject with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing subject', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchSubject', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateTitleMutation.php b/src/GraphQL/Generated/Mutations/UpdateTitleMutation.php new file mode 100644 index 0000000..ca33254 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateTitleMutation.php @@ -0,0 +1,59 @@ + 'updateTitle', + 'description' => 'Update an existing title with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing title', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchTitle', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateWorkFeaturedVideoMutation.php b/src/GraphQL/Generated/Mutations/UpdateWorkFeaturedVideoMutation.php new file mode 100644 index 0000000..8d882b9 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateWorkFeaturedVideoMutation.php @@ -0,0 +1,49 @@ + 'updateWorkFeaturedVideo', + 'description' => 'Update an existing featured video with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing featured video', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateWorkMutation.php b/src/GraphQL/Generated/Mutations/UpdateWorkMutation.php new file mode 100644 index 0000000..c68d130 --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateWorkMutation.php @@ -0,0 +1,49 @@ + 'updateWork', + 'description' => 'Update an existing work with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing work', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWork', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Mutations/UpdateWorkRelationMutation.php b/src/GraphQL/Generated/Mutations/UpdateWorkRelationMutation.php new file mode 100644 index 0000000..1b23a3f --- /dev/null +++ b/src/GraphQL/Generated/Mutations/UpdateWorkRelationMutation.php @@ -0,0 +1,49 @@ + 'updateWorkRelation', + 'description' => 'Update an existing work relation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing work relation', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWorkRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('mutation', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AbstractQuery.php b/src/GraphQL/Generated/Queries/AbstractQuery.php new file mode 100644 index 0000000..f7e19b6 --- /dev/null +++ b/src/GraphQL/Generated/Queries/AbstractQuery.php @@ -0,0 +1,59 @@ + 'abstract', + 'description' => 'Query an abstract by its ID', + 'args' => [ + [ + 'name' => 'abstractId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows results with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AbstractsQuery.php b/src/GraphQL/Generated/Queries/AbstractsQuery.php new file mode 100644 index 0000000..a97218a --- /dev/null +++ b/src/GraphQL/Generated/Queries/AbstractsQuery.php @@ -0,0 +1,111 @@ + 'abstracts', + 'description' => 'Query the full list of abstracts', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AbstractOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AdditionalResourceCountQuery.php b/src/GraphQL/Generated/Queries/AdditionalResourceCountQuery.php new file mode 100644 index 0000000..0fb864b --- /dev/null +++ b/src/GraphQL/Generated/Queries/AdditionalResourceCountQuery.php @@ -0,0 +1,34 @@ + 'additionalResourceCount', + 'description' => 'Get the total number of additional resources', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AdditionalResourceQuery.php b/src/GraphQL/Generated/Queries/AdditionalResourceQuery.php new file mode 100644 index 0000000..b0a3bbd --- /dev/null +++ b/src/GraphQL/Generated/Queries/AdditionalResourceQuery.php @@ -0,0 +1,49 @@ + 'additionalResource', + 'description' => 'Query a single additional resource using its ID', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth additional resource ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AdditionalResourcesQuery.php b/src/GraphQL/Generated/Queries/AdditionalResourcesQuery.php new file mode 100644 index 0000000..fe7bd88 --- /dev/null +++ b/src/GraphQL/Generated/Queries/AdditionalResourcesQuery.php @@ -0,0 +1,91 @@ + 'additionalResources', + 'description' => 'Query the full list of additional resources', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AdditionalResourceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "RESOURCE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AffiliationCountQuery.php b/src/GraphQL/Generated/Queries/AffiliationCountQuery.php new file mode 100644 index 0000000..4671b4c --- /dev/null +++ b/src/GraphQL/Generated/Queries/AffiliationCountQuery.php @@ -0,0 +1,34 @@ + 'affiliationCount', + 'description' => 'Get the total number of affiliations', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AffiliationQuery.php b/src/GraphQL/Generated/Queries/AffiliationQuery.php new file mode 100644 index 0000000..38ffbbb --- /dev/null +++ b/src/GraphQL/Generated/Queries/AffiliationQuery.php @@ -0,0 +1,49 @@ + 'affiliation', + 'description' => 'Query a single affiliation using its ID', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth affiliation ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AffiliationsQuery.php b/src/GraphQL/Generated/Queries/AffiliationsQuery.php new file mode 100644 index 0000000..9447d3d --- /dev/null +++ b/src/GraphQL/Generated/Queries/AffiliationsQuery.php @@ -0,0 +1,91 @@ + 'affiliations', + 'description' => 'Query the full list of affiliations', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AffiliationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AFFILIATION_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AwardCountQuery.php b/src/GraphQL/Generated/Queries/AwardCountQuery.php new file mode 100644 index 0000000..a86b6fe --- /dev/null +++ b/src/GraphQL/Generated/Queries/AwardCountQuery.php @@ -0,0 +1,34 @@ + 'awardCount', + 'description' => 'Get the total number of awards', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AwardQuery.php b/src/GraphQL/Generated/Queries/AwardQuery.php new file mode 100644 index 0000000..6813ccd --- /dev/null +++ b/src/GraphQL/Generated/Queries/AwardQuery.php @@ -0,0 +1,49 @@ + 'award', + 'description' => 'Query a single award using its ID', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth award ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/AwardsQuery.php b/src/GraphQL/Generated/Queries/AwardsQuery.php new file mode 100644 index 0000000..ef817a6 --- /dev/null +++ b/src/GraphQL/Generated/Queries/AwardsQuery.php @@ -0,0 +1,91 @@ + 'awards', + 'description' => 'Query the full list of awards', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AwardOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AWARD_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BiographiesQuery.php b/src/GraphQL/Generated/Queries/BiographiesQuery.php new file mode 100644 index 0000000..08a6ebb --- /dev/null +++ b/src/GraphQL/Generated/Queries/BiographiesQuery.php @@ -0,0 +1,111 @@ + 'biographies', + 'description' => 'Query biographies by work ID', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'BiographyOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BiographyQuery.php b/src/GraphQL/Generated/Queries/BiographyQuery.php new file mode 100644 index 0000000..059da42 --- /dev/null +++ b/src/GraphQL/Generated/Queries/BiographyQuery.php @@ -0,0 +1,59 @@ + 'biography', + 'description' => 'Query an biography by it\'s ID', + 'args' => [ + [ + 'name' => 'biographyId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BookByDoiQuery.php b/src/GraphQL/Generated/Queries/BookByDoiQuery.php new file mode 100644 index 0000000..b0184af --- /dev/null +++ b/src/GraphQL/Generated/Queries/BookByDoiQuery.php @@ -0,0 +1,49 @@ + 'bookByDoi', + 'description' => 'Query a single book using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Book DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BookCountQuery.php b/src/GraphQL/Generated/Queries/BookCountQuery.php new file mode 100644 index 0000000..a56114b --- /dev/null +++ b/src/GraphQL/Generated/Queries/BookCountQuery.php @@ -0,0 +1,111 @@ + 'bookCount', + 'description' => 'Get the total number of books (a subset of the total number of works)', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BookReviewCountQuery.php b/src/GraphQL/Generated/Queries/BookReviewCountQuery.php new file mode 100644 index 0000000..fcb023b --- /dev/null +++ b/src/GraphQL/Generated/Queries/BookReviewCountQuery.php @@ -0,0 +1,34 @@ + 'bookReviewCount', + 'description' => 'Get the total number of book reviews', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BookReviewQuery.php b/src/GraphQL/Generated/Queries/BookReviewQuery.php new file mode 100644 index 0000000..54a2815 --- /dev/null +++ b/src/GraphQL/Generated/Queries/BookReviewQuery.php @@ -0,0 +1,49 @@ + 'bookReview', + 'description' => 'Query a single book review using its ID', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth book review ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BookReviewsQuery.php b/src/GraphQL/Generated/Queries/BookReviewsQuery.php new file mode 100644 index 0000000..fd1d2eb --- /dev/null +++ b/src/GraphQL/Generated/Queries/BookReviewsQuery.php @@ -0,0 +1,91 @@ + 'bookReviews', + 'description' => 'Query the full list of book reviews', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'BookReviewOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "REVIEW_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/BooksQuery.php b/src/GraphQL/Generated/Queries/BooksQuery.php new file mode 100644 index 0000000..16979c7 --- /dev/null +++ b/src/GraphQL/Generated/Queries/BooksQuery.php @@ -0,0 +1,149 @@ + 'books', + 'description' => 'Query the full list of books (a subset of the full list of works)', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ChapterByDoiQuery.php b/src/GraphQL/Generated/Queries/ChapterByDoiQuery.php new file mode 100644 index 0000000..a641f52 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ChapterByDoiQuery.php @@ -0,0 +1,49 @@ + 'chapterByDoi', + 'description' => 'Query a single chapter using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Chapter DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ChapterCountQuery.php b/src/GraphQL/Generated/Queries/ChapterCountQuery.php new file mode 100644 index 0000000..2f955fd --- /dev/null +++ b/src/GraphQL/Generated/Queries/ChapterCountQuery.php @@ -0,0 +1,111 @@ + 'chapterCount', + 'description' => 'Get the total number of chapters (a subset of the total number of works)', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ChaptersQuery.php b/src/GraphQL/Generated/Queries/ChaptersQuery.php new file mode 100644 index 0000000..2c56e7c --- /dev/null +++ b/src/GraphQL/Generated/Queries/ChaptersQuery.php @@ -0,0 +1,149 @@ + 'chapters', + 'description' => 'Query the full list of chapters (a subset of the full list of works)', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContactCountQuery.php b/src/GraphQL/Generated/Queries/ContactCountQuery.php new file mode 100644 index 0000000..1630b12 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContactCountQuery.php @@ -0,0 +1,53 @@ + 'contactCount', + 'description' => 'Get the total number of contacts', + 'args' => [ + [ + 'name' => 'contactTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContactQuery.php b/src/GraphQL/Generated/Queries/ContactQuery.php new file mode 100644 index 0000000..e12b36b --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContactQuery.php @@ -0,0 +1,49 @@ + 'contact', + 'description' => 'Query a single contact using its ID', + 'args' => [ + [ + 'name' => 'contactId', + 'description' => 'Thoth contact ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContactsQuery.php b/src/GraphQL/Generated/Queries/ContactsQuery.php new file mode 100644 index 0000000..1fc5c72 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContactsQuery.php @@ -0,0 +1,109 @@ + 'contacts', + 'description' => 'Query the full list of contacts', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContactOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "EMAIL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'contactTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributionCountQuery.php b/src/GraphQL/Generated/Queries/ContributionCountQuery.php new file mode 100644 index 0000000..b23e6d3 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributionCountQuery.php @@ -0,0 +1,53 @@ + 'contributionCount', + 'description' => 'Get the total number of contributions', + 'args' => [ + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributionQuery.php b/src/GraphQL/Generated/Queries/ContributionQuery.php new file mode 100644 index 0000000..176e6e1 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributionQuery.php @@ -0,0 +1,49 @@ + 'contribution', + 'description' => 'Query a single contribution using its ID', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth contribution ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributionsQuery.php b/src/GraphQL/Generated/Queries/ContributionsQuery.php new file mode 100644 index 0000000..cbc59a9 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributionsQuery.php @@ -0,0 +1,109 @@ + 'contributions', + 'description' => 'Query the full list of contributions', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CONTRIBUTION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributorCountQuery.php b/src/GraphQL/Generated/Queries/ContributorCountQuery.php new file mode 100644 index 0000000..eceed5c --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributorCountQuery.php @@ -0,0 +1,45 @@ + 'contributorCount', + 'description' => 'Get the total number of contributors', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributorQuery.php b/src/GraphQL/Generated/Queries/ContributorQuery.php new file mode 100644 index 0000000..84cdcc3 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributorQuery.php @@ -0,0 +1,49 @@ + 'contributor', + 'description' => 'Query a single contributor using its ID', + 'args' => [ + [ + 'name' => 'contributorId', + 'description' => 'Thoth contributor ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ContributorsQuery.php b/src/GraphQL/Generated/Queries/ContributorsQuery.php new file mode 100644 index 0000000..32a6241 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ContributorsQuery.php @@ -0,0 +1,83 @@ + 'contributors', + 'description' => 'Query the full list of contributors', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributorOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_NAME", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/EndorsementCountQuery.php b/src/GraphQL/Generated/Queries/EndorsementCountQuery.php new file mode 100644 index 0000000..4ab8826 --- /dev/null +++ b/src/GraphQL/Generated/Queries/EndorsementCountQuery.php @@ -0,0 +1,34 @@ + 'endorsementCount', + 'description' => 'Get the total number of endorsements', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/EndorsementQuery.php b/src/GraphQL/Generated/Queries/EndorsementQuery.php new file mode 100644 index 0000000..cc77d61 --- /dev/null +++ b/src/GraphQL/Generated/Queries/EndorsementQuery.php @@ -0,0 +1,49 @@ + 'endorsement', + 'description' => 'Query a single endorsement using its ID', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth endorsement ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/EndorsementsQuery.php b/src/GraphQL/Generated/Queries/EndorsementsQuery.php new file mode 100644 index 0000000..abead50 --- /dev/null +++ b/src/GraphQL/Generated/Queries/EndorsementsQuery.php @@ -0,0 +1,91 @@ + 'endorsements', + 'description' => 'Query the full list of endorsements', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'EndorsementOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ENDORSEMENT_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/FileQuery.php b/src/GraphQL/Generated/Queries/FileQuery.php new file mode 100644 index 0000000..4778571 --- /dev/null +++ b/src/GraphQL/Generated/Queries/FileQuery.php @@ -0,0 +1,49 @@ + 'file', + 'description' => 'Query a single file using its ID', + 'args' => [ + [ + 'name' => 'fileId', + 'description' => 'Thoth file ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/FundingCountQuery.php b/src/GraphQL/Generated/Queries/FundingCountQuery.php new file mode 100644 index 0000000..96fa476 --- /dev/null +++ b/src/GraphQL/Generated/Queries/FundingCountQuery.php @@ -0,0 +1,34 @@ + 'fundingCount', + 'description' => 'Get the total number of funding instances associated to works', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/FundingQuery.php b/src/GraphQL/Generated/Queries/FundingQuery.php new file mode 100644 index 0000000..cd69066 --- /dev/null +++ b/src/GraphQL/Generated/Queries/FundingQuery.php @@ -0,0 +1,49 @@ + 'funding', + 'description' => 'Query a single funding using its ID', + 'args' => [ + [ + 'name' => 'fundingId', + 'description' => 'Thoth funding ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/FundingsQuery.php b/src/GraphQL/Generated/Queries/FundingsQuery.php new file mode 100644 index 0000000..f7815f5 --- /dev/null +++ b/src/GraphQL/Generated/Queries/FundingsQuery.php @@ -0,0 +1,91 @@ + 'fundings', + 'description' => 'Query the full list of fundings', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'FundingOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PROGRAM", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ImprintCountQuery.php b/src/GraphQL/Generated/Queries/ImprintCountQuery.php new file mode 100644 index 0000000..8191e98 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ImprintCountQuery.php @@ -0,0 +1,63 @@ + 'imprintCount', + 'description' => 'Get the total number of imprints', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ImprintQuery.php b/src/GraphQL/Generated/Queries/ImprintQuery.php new file mode 100644 index 0000000..6d6a85b --- /dev/null +++ b/src/GraphQL/Generated/Queries/ImprintQuery.php @@ -0,0 +1,49 @@ + 'imprint', + 'description' => 'Query a single imprint using its ID', + 'args' => [ + [ + 'name' => 'imprintId', + 'description' => 'Thoth imprint ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ImprintsQuery.php b/src/GraphQL/Generated/Queries/ImprintsQuery.php new file mode 100644 index 0000000..4142be0 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ImprintsQuery.php @@ -0,0 +1,101 @@ + 'imprints', + 'description' => 'Query the full list of imprints', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ImprintOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "IMPRINT_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/InstitutionCountQuery.php b/src/GraphQL/Generated/Queries/InstitutionCountQuery.php new file mode 100644 index 0000000..de1f308 --- /dev/null +++ b/src/GraphQL/Generated/Queries/InstitutionCountQuery.php @@ -0,0 +1,45 @@ + 'institutionCount', + 'description' => 'Get the total number of institutions', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/InstitutionQuery.php b/src/GraphQL/Generated/Queries/InstitutionQuery.php new file mode 100644 index 0000000..34555b3 --- /dev/null +++ b/src/GraphQL/Generated/Queries/InstitutionQuery.php @@ -0,0 +1,49 @@ + 'institution', + 'description' => 'Query a single institution using its ID', + 'args' => [ + [ + 'name' => 'institutionId', + 'description' => 'Thoth institution ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/InstitutionsQuery.php b/src/GraphQL/Generated/Queries/InstitutionsQuery.php new file mode 100644 index 0000000..472751e --- /dev/null +++ b/src/GraphQL/Generated/Queries/InstitutionsQuery.php @@ -0,0 +1,83 @@ + 'institutions', + 'description' => 'Query the full list of institutions', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'InstitutionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "INSTITUTION_NAME", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/IssueCountQuery.php b/src/GraphQL/Generated/Queries/IssueCountQuery.php new file mode 100644 index 0000000..f6ba4a5 --- /dev/null +++ b/src/GraphQL/Generated/Queries/IssueCountQuery.php @@ -0,0 +1,34 @@ + 'issueCount', + 'description' => 'Get the total number of issues', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/IssueQuery.php b/src/GraphQL/Generated/Queries/IssueQuery.php new file mode 100644 index 0000000..f606cb2 --- /dev/null +++ b/src/GraphQL/Generated/Queries/IssueQuery.php @@ -0,0 +1,49 @@ + 'issue', + 'description' => 'Query a single issue using its ID', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth issue ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/IssuesQuery.php b/src/GraphQL/Generated/Queries/IssuesQuery.php new file mode 100644 index 0000000..bf9425c --- /dev/null +++ b/src/GraphQL/Generated/Queries/IssuesQuery.php @@ -0,0 +1,91 @@ + 'issues', + 'description' => 'Query the full list of issues', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'IssueOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ISSUE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LanguageCountQuery.php b/src/GraphQL/Generated/Queries/LanguageCountQuery.php new file mode 100644 index 0000000..c5d5f50 --- /dev/null +++ b/src/GraphQL/Generated/Queries/LanguageCountQuery.php @@ -0,0 +1,81 @@ + 'languageCount', + 'description' => 'Get the total number of languages associated to works', + 'args' => [ + [ + 'name' => 'languageCodes', + 'description' => 'Specific languages to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageRelation', + 'description' => '(deprecated) A specific relation to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'languageRelations', + 'description' => 'Specific relations to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LanguageQuery.php b/src/GraphQL/Generated/Queries/LanguageQuery.php new file mode 100644 index 0000000..9bbe31c --- /dev/null +++ b/src/GraphQL/Generated/Queries/LanguageQuery.php @@ -0,0 +1,49 @@ + 'language', + 'description' => 'Query a single language using its ID', + 'args' => [ + [ + 'name' => 'languageId', + 'description' => 'Thoth language ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LanguagesQuery.php b/src/GraphQL/Generated/Queries/LanguagesQuery.php new file mode 100644 index 0000000..082094a --- /dev/null +++ b/src/GraphQL/Generated/Queries/LanguagesQuery.php @@ -0,0 +1,137 @@ + 'languages', + 'description' => 'Query the full list of languages', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LanguageOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LANGUAGE_CODE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageCodes', + 'description' => 'Specific languages to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageRelation', + 'description' => '(deprecated) A specific relation to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'languageRelations', + 'description' => 'Specific relations to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LocationCountQuery.php b/src/GraphQL/Generated/Queries/LocationCountQuery.php new file mode 100644 index 0000000..5dac9da --- /dev/null +++ b/src/GraphQL/Generated/Queries/LocationCountQuery.php @@ -0,0 +1,53 @@ + 'locationCount', + 'description' => 'Get the total number of locations associated to works', + 'args' => [ + [ + 'name' => 'locationPlatforms', + 'description' => 'Specific platforms to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LocationQuery.php b/src/GraphQL/Generated/Queries/LocationQuery.php new file mode 100644 index 0000000..cf56b8f --- /dev/null +++ b/src/GraphQL/Generated/Queries/LocationQuery.php @@ -0,0 +1,49 @@ + 'location', + 'description' => 'Query a single location using its ID', + 'args' => [ + [ + 'name' => 'locationId', + 'description' => 'Thoth location ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/LocationsQuery.php b/src/GraphQL/Generated/Queries/LocationsQuery.php new file mode 100644 index 0000000..11ca0b3 --- /dev/null +++ b/src/GraphQL/Generated/Queries/LocationsQuery.php @@ -0,0 +1,109 @@ + 'locations', + 'description' => 'Query the full list of locations', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LocationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LOCATION_PLATFORM", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'locationPlatforms', + 'description' => 'Specific platforms to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/MeQuery.php b/src/GraphQL/Generated/Queries/MeQuery.php new file mode 100644 index 0000000..ce785d5 --- /dev/null +++ b/src/GraphQL/Generated/Queries/MeQuery.php @@ -0,0 +1,34 @@ + 'me', + 'description' => 'Get the total number of contacts', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Me', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PriceCountQuery.php b/src/GraphQL/Generated/Queries/PriceCountQuery.php new file mode 100644 index 0000000..238e38b --- /dev/null +++ b/src/GraphQL/Generated/Queries/PriceCountQuery.php @@ -0,0 +1,53 @@ + 'priceCount', + 'description' => 'Get the total number of prices associated to works', + 'args' => [ + [ + 'name' => 'currencyCodes', + 'description' => 'Specific currencies to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PriceQuery.php b/src/GraphQL/Generated/Queries/PriceQuery.php new file mode 100644 index 0000000..25c330e --- /dev/null +++ b/src/GraphQL/Generated/Queries/PriceQuery.php @@ -0,0 +1,49 @@ + 'price', + 'description' => 'Query a single price using its ID', + 'args' => [ + [ + 'name' => 'priceId', + 'description' => 'Thoth price ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PricesQuery.php b/src/GraphQL/Generated/Queries/PricesQuery.php new file mode 100644 index 0000000..ca15877 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PricesQuery.php @@ -0,0 +1,109 @@ + 'prices', + 'description' => 'Query the full list of prices', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PriceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CURRENCY_CODE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'currencyCodes', + 'description' => 'Specific currencies to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublicationCountQuery.php b/src/GraphQL/Generated/Queries/PublicationCountQuery.php new file mode 100644 index 0000000..413e06f --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublicationCountQuery.php @@ -0,0 +1,81 @@ + 'publicationCount', + 'description' => 'Get the total number of publications', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublicationQuery.php b/src/GraphQL/Generated/Queries/PublicationQuery.php new file mode 100644 index 0000000..1f2c678 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublicationQuery.php @@ -0,0 +1,49 @@ + 'publication', + 'description' => 'Query a single publication using its ID', + 'args' => [ + [ + 'name' => 'publicationId', + 'description' => 'Thoth publication ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublicationsQuery.php b/src/GraphQL/Generated/Queries/PublicationsQuery.php new file mode 100644 index 0000000..cd94d47 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublicationsQuery.php @@ -0,0 +1,119 @@ + 'publications', + 'description' => 'Query the full list of publications', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PublicationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PUBLICATION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublisherCountQuery.php b/src/GraphQL/Generated/Queries/PublisherCountQuery.php new file mode 100644 index 0000000..642d477 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublisherCountQuery.php @@ -0,0 +1,63 @@ + 'publisherCount', + 'description' => 'Get the total number of publishers', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublisherQuery.php b/src/GraphQL/Generated/Queries/PublisherQuery.php new file mode 100644 index 0000000..58ae531 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublisherQuery.php @@ -0,0 +1,49 @@ + 'publisher', + 'description' => 'Query a single publisher using its ID', + 'args' => [ + [ + 'name' => 'publisherId', + 'description' => 'Thoth publisher ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/PublishersQuery.php b/src/GraphQL/Generated/Queries/PublishersQuery.php new file mode 100644 index 0000000..30a6561 --- /dev/null +++ b/src/GraphQL/Generated/Queries/PublishersQuery.php @@ -0,0 +1,101 @@ + 'publishers', + 'description' => 'Query the full list of publishers', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PublisherOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PUBLISHER_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ReferenceCountQuery.php b/src/GraphQL/Generated/Queries/ReferenceCountQuery.php new file mode 100644 index 0000000..97d02f9 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ReferenceCountQuery.php @@ -0,0 +1,34 @@ + 'referenceCount', + 'description' => 'Get the total number of references', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ReferenceQuery.php b/src/GraphQL/Generated/Queries/ReferenceQuery.php new file mode 100644 index 0000000..b253a5a --- /dev/null +++ b/src/GraphQL/Generated/Queries/ReferenceQuery.php @@ -0,0 +1,49 @@ + 'reference', + 'description' => 'Query a single reference using its ID', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth reference ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/ReferencesQuery.php b/src/GraphQL/Generated/Queries/ReferencesQuery.php new file mode 100644 index 0000000..7301978 --- /dev/null +++ b/src/GraphQL/Generated/Queries/ReferencesQuery.php @@ -0,0 +1,91 @@ + 'references', + 'description' => 'Query the full list of references', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ReferenceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "REFERENCE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SeriesCountQuery.php b/src/GraphQL/Generated/Queries/SeriesCountQuery.php new file mode 100644 index 0000000..6caf519 --- /dev/null +++ b/src/GraphQL/Generated/Queries/SeriesCountQuery.php @@ -0,0 +1,81 @@ + 'seriesCount', + 'description' => 'Get the total number of series', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'seriesTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SeriesQuery.php b/src/GraphQL/Generated/Queries/SeriesQuery.php new file mode 100644 index 0000000..ea70049 --- /dev/null +++ b/src/GraphQL/Generated/Queries/SeriesQuery.php @@ -0,0 +1,49 @@ + 'series', + 'description' => 'Query a single series using its ID', + 'args' => [ + [ + 'name' => 'seriesId', + 'description' => 'Thoth series ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SeriesesQuery.php b/src/GraphQL/Generated/Queries/SeriesesQuery.php new file mode 100644 index 0000000..a296fff --- /dev/null +++ b/src/GraphQL/Generated/Queries/SeriesesQuery.php @@ -0,0 +1,119 @@ + 'serieses', + 'description' => 'Query the full list of series', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'SeriesOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "SERIES_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'seriesTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SubjectCountQuery.php b/src/GraphQL/Generated/Queries/SubjectCountQuery.php new file mode 100644 index 0000000..f37fcf4 --- /dev/null +++ b/src/GraphQL/Generated/Queries/SubjectCountQuery.php @@ -0,0 +1,81 @@ + 'subjectCount', + 'description' => 'Get the total number of subjects associated to works', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'subjectTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SubjectQuery.php b/src/GraphQL/Generated/Queries/SubjectQuery.php new file mode 100644 index 0000000..828fabb --- /dev/null +++ b/src/GraphQL/Generated/Queries/SubjectQuery.php @@ -0,0 +1,49 @@ + 'subject', + 'description' => 'Query a single subject using its ID', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth subject ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/SubjectsQuery.php b/src/GraphQL/Generated/Queries/SubjectsQuery.php new file mode 100644 index 0000000..f839457 --- /dev/null +++ b/src/GraphQL/Generated/Queries/SubjectsQuery.php @@ -0,0 +1,137 @@ + 'subjects', + 'description' => 'Query the full list of subjects', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'SubjectOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "SUBJECT_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'subjectTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/TitleQuery.php b/src/GraphQL/Generated/Queries/TitleQuery.php new file mode 100644 index 0000000..6cc4a94 --- /dev/null +++ b/src/GraphQL/Generated/Queries/TitleQuery.php @@ -0,0 +1,59 @@ + 'title', + 'description' => 'Query a title by its ID', + 'args' => [ + [ + 'name' => 'titleId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/TitlesQuery.php b/src/GraphQL/Generated/Queries/TitlesQuery.php new file mode 100644 index 0000000..ee126f5 --- /dev/null +++ b/src/GraphQL/Generated/Queries/TitlesQuery.php @@ -0,0 +1,111 @@ + 'titles', + 'description' => 'Query the full list of titles', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TitleOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkByDoiQuery.php b/src/GraphQL/Generated/Queries/WorkByDoiQuery.php new file mode 100644 index 0000000..0b9134f --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkByDoiQuery.php @@ -0,0 +1,49 @@ + 'workByDoi', + 'description' => 'Query a single work using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Work DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkCountQuery.php b/src/GraphQL/Generated/Queries/WorkCountQuery.php new file mode 100644 index 0000000..ea7481d --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkCountQuery.php @@ -0,0 +1,129 @@ + 'workCount', + 'description' => 'Get the total number of works', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkFeaturedVideoCountQuery.php b/src/GraphQL/Generated/Queries/WorkFeaturedVideoCountQuery.php new file mode 100644 index 0000000..e2e2573 --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkFeaturedVideoCountQuery.php @@ -0,0 +1,34 @@ + 'workFeaturedVideoCount', + 'description' => 'Get the total number of featured videos', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkFeaturedVideoQuery.php b/src/GraphQL/Generated/Queries/WorkFeaturedVideoQuery.php new file mode 100644 index 0000000..9cb8fb6 --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkFeaturedVideoQuery.php @@ -0,0 +1,49 @@ + 'workFeaturedVideo', + 'description' => 'Query a single featured video using its ID', + 'args' => [ + [ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth featured video ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkFeaturedVideosQuery.php b/src/GraphQL/Generated/Queries/WorkFeaturedVideosQuery.php new file mode 100644 index 0000000..4773bf9 --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkFeaturedVideosQuery.php @@ -0,0 +1,91 @@ + 'workFeaturedVideos', + 'description' => 'Query the full list of featured videos', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkFeaturedVideoOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "UPDATED_AT", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorkQuery.php b/src/GraphQL/Generated/Queries/WorkQuery.php new file mode 100644 index 0000000..6f004c2 --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorkQuery.php @@ -0,0 +1,49 @@ + 'work', + 'description' => 'Query a single work using its ID', + 'args' => [ + [ + 'name' => 'workId', + 'description' => 'Thoth work ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Queries/WorksQuery.php b/src/GraphQL/Generated/Queries/WorksQuery.php new file mode 100644 index 0000000..cd912b2 --- /dev/null +++ b/src/GraphQL/Generated/Queries/WorksQuery.php @@ -0,0 +1,167 @@ + 'works', + 'description' => 'Query the full list of works', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]); + } + + public static function operation(array $arguments = [], array $selection = []): OperationRequest + { + return new OperationRequest('query', self::field(), $arguments, $selection); + } +} diff --git a/src/GraphQL/Generated/Scalars/BooleanScalar.php b/src/GraphQL/Generated/Scalars/BooleanScalar.php new file mode 100644 index 0000000..6a202b7 --- /dev/null +++ b/src/GraphQL/Generated/Scalars/BooleanScalar.php @@ -0,0 +1,13 @@ ++\\[\\]]+$`'); + } +} diff --git a/src/GraphQL/Generated/Scalars/FloatScalar.php b/src/GraphQL/Generated/Scalars/FloatScalar.php new file mode 100644 index 0000000..5b5f1f3 --- /dev/null +++ b/src/GraphQL/Generated/Scalars/FloatScalar.php @@ -0,0 +1,13 @@ + 'affiliationId', + 'description' => 'Thoth ID of the affiliation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => 'Thoth ID of the contribution linked to this affiliation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => 'Thoth ID of the institution linked to this affiliation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliationOrdinal', + 'description' => 'Number representing this affiliation\'s position in an ordered list of affiliations within the contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'position', + 'description' => 'Position of the contributor at the institution at the time of contribution', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the affiliation record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the affiliation record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institution', + 'description' => 'Get the institution linked to this affiliation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contribution', + 'description' => 'Get the contribution linked to this affiliation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Award.php b/src/GraphQL/Generated/Schemas/Award.php new file mode 100644 index 0000000..0601df1 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Award.php @@ -0,0 +1,232 @@ + 'awardId', + 'description' => 'Thoth ID of the award', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this award belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Title of the award', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'URL of the award page', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'category', + 'description' => 'Category of the award', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'year', + 'description' => 'Year or year span associated with the award', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'jury', + 'description' => 'Jury associated with the award', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'country', + 'description' => 'Country associated with the award', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'role', + 'description' => 'Role of the work in this award', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AwardRole', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'prizeStatement', + 'description' => 'Prize statement for this award', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering prize statement', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'awardOrdinal', + 'description' => 'Number representing this award\'s position in an ordered list of awards within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the award record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the award record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work linked to this award', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Biography.php b/src/GraphQL/Generated/Schemas/Biography.php new file mode 100644 index 0000000..296c28c --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Biography.php @@ -0,0 +1,126 @@ + 'biographyId', + 'description' => 'Thoth ID of the biography', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributionId', + 'description' => 'Thoth ID of the contribution to which the biography is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => 'Locale code of the biography', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => 'Content of the biography', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => 'Whether this is the canonical biography for the contribution/work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work to which the biography is linked via contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contribution', + 'description' => 'Get the contribution to which the biography is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/BookReview.php b/src/GraphQL/Generated/Schemas/BookReview.php new file mode 100644 index 0000000..9418180 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/BookReview.php @@ -0,0 +1,300 @@ + 'bookReviewId', + 'description' => 'Thoth ID of the book review', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this review belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Title of the review', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering review title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => 'Name of the review author', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reviewerOrcid', + 'description' => 'ORCID (Open Researcher and Contributor ID) of the reviewer as full URL, using the HTTPS scheme and the orcid.org domain', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reviewerInstitutionId', + 'description' => 'Thoth ID of the reviewer\'s institution', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'URL of the review publication', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => 'DOI of the review as full URL, using the HTTPS scheme and the doi.org domain', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reviewDate', + 'description' => 'Publication date of the review', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'journalName', + 'description' => 'Name of the journal where the review was published', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'journalVolume', + 'description' => 'Volume of the journal where the review was published', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'journalNumber', + 'description' => 'Number of the journal where the review was published', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'journalIssn', + 'description' => 'ISSN of the journal where the review was published', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'pageRange', + 'description' => 'Page range of the review', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => 'Text of the review', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering review text', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reviewOrdinal', + 'description' => 'Number representing this review\'s position in an ordered list of reviews within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the review record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the review record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work linked to this review', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reviewerInstitution', + 'description' => 'Get the reviewer\'s institution', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Contact.php b/src/GraphQL/Generated/Schemas/Contact.php new file mode 100644 index 0000000..a00f6f9 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Contact.php @@ -0,0 +1,126 @@ + 'contactId', + 'description' => 'Thoth ID of the contact', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => 'Thoth ID of the publisher to which this contact belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contactType', + 'description' => 'Type of the contact', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'email', + 'description' => 'Email address of the contact', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the contact record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the contact record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisher', + 'description' => 'Get the publisher to which this contact belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Contribution.php b/src/GraphQL/Generated/Schemas/Contribution.php new file mode 100644 index 0000000..773a7e8 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Contribution.php @@ -0,0 +1,378 @@ + 'contributionId', + 'description' => 'Thoth ID of the contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributorId', + 'description' => 'Thoth ID of the contributor who created the contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work in which the contribution appears', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributionType', + 'description' => 'Nature of the contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'mainContribution', + 'description' => 'Whether this is a main contribution to the work (e.g. contributor credited on title page)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'biographies', + 'description' => 'Query the full list of biographies', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'BiographyOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set, only shows results with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'biography', + 'description' => 'Biography of the contributor at the time of contribution', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Contribution `biographies` field instead to get the correct biography in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the contribution record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the contribution record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => 'Given or first name(s) of the contributor, as credited in this contribution', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => 'Family or surname of the contributor, as credited in this contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => 'Full, serialized name of the contributor, as credited in this contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributionOrdinal', + 'description' => 'Number representing this contribution\'s position in an ordered list of contributions within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work in which the contribution appears', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributor', + 'description' => 'Get the contributor who created the contribution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliations', + 'description' => 'Get affiliations linked to this contribution', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AffiliationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AFFILIATION_ORDINAL", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Contributor.php b/src/GraphQL/Generated/Schemas/Contributor.php new file mode 100644 index 0000000..3dc6b65 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Contributor.php @@ -0,0 +1,203 @@ + 'contributorId', + 'description' => 'Thoth ID of the contributor', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => 'Given or first name(s) of the contributor', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => 'Family or surname of the contributor', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fullName', + 'description' => 'Full, serialized name of the contributor. Serialization is often culturally determined.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'orcid', + 'description' => 'ORCID (Open Researcher and Contributor ID) of the contributor as full URL, using the HTTPS scheme and the orcid.org domain (e.g. https://orcid.org/0000-0002-1825-0097)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'website', + 'description' => 'URL of the contributor\'s website', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the contributor record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the contributor record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributions', + 'description' => 'Get contributions linked to this contributor', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CONTRIBUTION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Endorsement.php b/src/GraphQL/Generated/Schemas/Endorsement.php new file mode 100644 index 0000000..ef6e362 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Endorsement.php @@ -0,0 +1,220 @@ + 'endorsementId', + 'description' => 'Thoth ID of the endorsement', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this endorsement belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorName', + 'description' => 'Name of the endorsement author', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorRole', + 'description' => 'Role of the endorsement author', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering endorsement author role', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorOrcid', + 'description' => 'ORCID (Open Researcher and Contributor ID) of the endorsement author as full URL, using the HTTPS scheme and the orcid.org domain', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Orcid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorInstitutionId', + 'description' => 'Thoth ID of the endorsement author\'s institution', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'URL associated with this endorsement', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'text', + 'description' => 'Text of the endorsement', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering endorsement text', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'endorsementOrdinal', + 'description' => 'Number representing this endorsement\'s position in an ordered list of endorsements within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the endorsement record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the endorsement record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work linked to this endorsement', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'authorInstitution', + 'description' => 'Get the endorsement author\'s institution', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/File.php b/src/GraphQL/Generated/Schemas/File.php new file mode 100644 index 0000000..8bcd49d --- /dev/null +++ b/src/GraphQL/Generated/Schemas/File.php @@ -0,0 +1,206 @@ + 'fileId', + 'description' => 'Thoth ID of the file', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fileType', + 'description' => 'Type of file (publication, frontcover, additional_resource, or work_featured_video)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'FileType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work (for frontcovers)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => 'Thoth ID of the publication (for publication files)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of the additional resource (for additional resource files)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth ID of the featured video (for featured video files)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'objectKey', + 'description' => 'S3 object key (canonical DOI-based path)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'cdnUrl', + 'description' => 'Public CDN URL', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'mimeType', + 'description' => 'MIME type used when serving the file', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bytes', + 'description' => 'Size of the file in bytes', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'sha256', + 'description' => 'SHA-256 checksum of the stored file', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the file record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the file record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/FileUploadResponse.php b/src/GraphQL/Generated/Schemas/FileUploadResponse.php new file mode 100644 index 0000000..08010fc --- /dev/null +++ b/src/GraphQL/Generated/Schemas/FileUploadResponse.php @@ -0,0 +1,86 @@ + 'fileUploadId', + 'description' => 'ID of the upload session.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'uploadUrl', + 'description' => 'Presigned S3 PUT URL for uploading the file.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'uploadHeaders', + 'description' => 'Headers that must be sent with the HTTP PUT request to uploadUrl.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'UploadRequestHeader', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'expiresAt', + 'description' => 'Time when the upload URL expires.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Funding.php b/src/GraphQL/Generated/Schemas/Funding.php new file mode 100644 index 0000000..15e4b7c --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Funding.php @@ -0,0 +1,174 @@ + 'fundingId', + 'description' => 'Thoth ID of the funding', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the funded work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutionId', + 'description' => 'Thoth ID of the funding institution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'program', + 'description' => 'Name of the funding program', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'projectName', + 'description' => 'Name of the funding project', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'projectShortname', + 'description' => 'Short name of the funding project', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'grantNumber', + 'description' => 'Grant number of the award', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the funding record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the funding record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the funded work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institution', + 'description' => 'Get the funding institution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/GraphQLAbstract.php b/src/GraphQL/Generated/Schemas/GraphQLAbstract.php new file mode 100644 index 0000000..ece4566 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/GraphQLAbstract.php @@ -0,0 +1,126 @@ + 'abstractId', + 'description' => 'Thoth ID of the abstract', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which the abstract is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => 'Locale code of the abstract', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'content', + 'description' => 'Content of the abstract', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => 'Whether this is the canonical abstract for the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'abstractType', + 'description' => 'Type of the abstract', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'AbstractType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work to which the abstract is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Imprint.php b/src/GraphQL/Generated/Schemas/Imprint.php new file mode 100644 index 0000000..effb860 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Imprint.php @@ -0,0 +1,338 @@ + 'imprintId', + 'description' => 'Thoth ID of the imprint', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherId', + 'description' => 'Thoth ID of the publisher to which this imprint belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprintName', + 'description' => 'Name of the imprint', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprintUrl', + 'description' => 'URL of the imprint\'s landing page', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'crossmarkDoi', + 'description' => 'DOI of the imprint\'s Crossmark policy page, if publisher participates. Crossmark \'gives readers quick and easy access to the + current status of an item of content, including any corrections, retractions, or updates\'. More: https://www.crossref.org/services/crossmark/', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 's3Bucket', + 'description' => 'S3 bucket used for files belonging to this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'cdnDomain', + 'description' => 'CDN domain used for files belonging to this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'cloudfrontDistId', + 'description' => 'CloudFront distribution ID used for files belonging to this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'defaultCurrency', + 'description' => 'Default currency code for works under this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'defaultPlace', + 'description' => 'Default publication place for works under this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'defaultLocale', + 'description' => 'Default locale code for works under this imprint', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the imprint record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the imprint record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisher', + 'description' => 'Get the publisher to which this imprint belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'works', + 'description' => 'Get works linked to this imprint', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'workTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Institution.php b/src/GraphQL/Generated/Schemas/Institution.php new file mode 100644 index 0000000..3cd2d79 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Institution.php @@ -0,0 +1,224 @@ + 'institutionId', + 'description' => 'Thoth ID of the institution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutionName', + 'description' => 'Name of the institution', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutionDoi', + 'description' => 'Digital Object Identifier of the organisation as full URL, using the HTTPS scheme and the doi.org domain (e.g. https://doi.org/10.13039/100014013)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'countryCode', + 'description' => 'Three-letter ISO 3166-1 code representing the country where this institution is based', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'CountryCode', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'ror', + 'description' => 'Research Organisation Registry identifier of the organisation as full URL, using the HTTPS scheme and the ror.org domain (e.g. https://ror.org/051z6e826)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Ror', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the institution record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the institution record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fundings', + 'description' => 'Get fundings linked to this institution', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'FundingOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PROGRAM", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliations', + 'description' => 'Get affiliations linked to this institution', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AffiliationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AFFILIATION_ORDINAL", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Issue.php b/src/GraphQL/Generated/Schemas/Issue.php new file mode 100644 index 0000000..44131c3 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Issue.php @@ -0,0 +1,154 @@ + 'issueId', + 'description' => 'Thoth ID of the issue', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work represented by the issue', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesId', + 'description' => 'Thoth ID of the series to which the issue belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issueOrdinal', + 'description' => 'Number representing this issue\'s position in an ordered list of issues within the series (does not have to correspond to published issue number)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issueNumber', + 'description' => 'Published issue number given to this issue within the series, if any', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the issue record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the issue record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'series', + 'description' => 'Get the series to which the issue belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work represented by the issue', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Language.php b/src/GraphQL/Generated/Schemas/Language.php new file mode 100644 index 0000000..6347077 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Language.php @@ -0,0 +1,126 @@ + 'languageId', + 'description' => 'Thoth ID of the language', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work which has this language', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'languageCode', + 'description' => 'Three-letter ISO 639 code representing the language', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'languageRelation', + 'description' => 'Relation between this language and the original language of the text', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the language record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the language record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work which has this language', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Location.php b/src/GraphQL/Generated/Schemas/Location.php new file mode 100644 index 0000000..35b9428 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Location.php @@ -0,0 +1,174 @@ + 'locationId', + 'description' => 'Thoth ID of the location', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => 'Thoth ID of the publication linked to this location', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => 'Public-facing URL via which the publication can be accessed', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fullTextUrl', + 'description' => 'Direct link to the full text file', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'locationPlatform', + 'description' => 'Platform where the publication is hosted or can be acquired', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => 'Whether this is the canonical location for this specific publication (e.g. the main platform on which the print version is sold, or the official version of record hosted on the publisher\'s own web server)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'checksum', + 'description' => 'Checksum of the full text file as returned by the platform', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'checksumAlgorithm', + 'description' => 'Algorithm used to generate the checksum (MD5, SHA-256 or SHA-1)', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'ChecksumAlgorithm', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the location record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the location record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publication', + 'description' => 'Get the publication linked to this location', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Me.php b/src/GraphQL/Generated/Schemas/Me.php new file mode 100644 index 0000000..4ab4535 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Me.php @@ -0,0 +1,106 @@ + 'userId', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'email', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'firstName', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'lastName', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'isSuperuser', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherContexts', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'PublisherContext', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/MutationRoot.php b/src/GraphQL/Generated/Schemas/MutationRoot.php new file mode 100644 index 0000000..4734ab3 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/MutationRoot.php @@ -0,0 +1,3197 @@ + 'createWork', + 'description' => 'Create a new work with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for work to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWork', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createPublisher', + 'description' => 'Create a new publisher with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for publisher to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublisher', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createImprint', + 'description' => 'Create a new imprint with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for imprint to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewImprint', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createContributor', + 'description' => 'Create a new contributor with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contributor to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContributor', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createContribution', + 'description' => 'Create a new contribution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contribution to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContribution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createPublication', + 'description' => 'Create a new publication with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for publication to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublication', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createSeries', + 'description' => 'Create a new series with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the series description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for series to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewSeries', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createIssue', + 'description' => 'Create a new issue with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for issue to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewIssue', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createLanguage', + 'description' => 'Create a new language with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for language to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewLanguage', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createTitle', + 'description' => 'Create a new title with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for title to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewTitle', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createAbstract', + 'description' => 'Create a new abstract with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the abstract', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for abstract to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAbstract', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createBiography', + 'description' => 'Create a new biography with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the biography', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for biography to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewBiography', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createInstitution', + 'description' => 'Create a new institution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for institution to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewInstitution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createFunding', + 'description' => 'Create a new funding with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for funding to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewFunding', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createLocation', + 'description' => 'Create a new location with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for location to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewLocation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createPrice', + 'description' => 'Create a new price with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for price to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPrice', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createSubject', + 'description' => 'Create a new subject with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for subject to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewSubject', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createAffiliation', + 'description' => 'Create a new affiliation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for affiliation to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAffiliation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createWorkRelation', + 'description' => 'Create a new work relation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for work relation to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createReference', + 'description' => 'Create a new reference with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for reference to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewReference', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createAdditionalResource', + 'description' => 'Create a new additional resource with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the additional resource text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for additional resource to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAdditionalResource', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createAward', + 'description' => 'Create a new award with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the award text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for award to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAward', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createEndorsement', + 'description' => 'Create a new endorsement with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the endorsement rich-text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for endorsement to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewEndorsement', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createBookReview', + 'description' => 'Create a new book review with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the book review text field', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values for book review to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewBookReview', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createWorkFeaturedVideo', + 'description' => 'Create a new featured video with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for featured video to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createContact', + 'description' => 'Create a new contact with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values for contact to be created', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewContact', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateWork', + 'description' => 'Update an existing work with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing work', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWork', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatePublisher', + 'description' => 'Update an existing publisher with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing publisher', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPublisher', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateImprint', + 'description' => 'Update an existing imprint with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing imprint', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchImprint', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateContributor', + 'description' => 'Update an existing contributor with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contributor', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContributor', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateContribution', + 'description' => 'Update an existing contribution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contribution', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContribution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatePublication', + 'description' => 'Update an existing publication with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing publication', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPublication', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateSeries', + 'description' => 'Update an existing series with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the series description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing series', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchSeries', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateIssue', + 'description' => 'Update an existing issue with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing issue', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchIssue', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateLanguage', + 'description' => 'Update an existing language with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing language', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchLanguage', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateInstitution', + 'description' => 'Update an existing institution with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing institution', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchInstitution', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateFunding', + 'description' => 'Update an existing funding with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing funding', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchFunding', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateLocation', + 'description' => 'Update an existing location with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing location', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchLocation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatePrice', + 'description' => 'Update an existing price with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing price', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchPrice', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateSubject', + 'description' => 'Update an existing subject with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing subject', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchSubject', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateAffiliation', + 'description' => 'Update an existing affiliation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing affiliation', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAffiliation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateWorkRelation', + 'description' => 'Update an existing work relation with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing work relation', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWorkRelation', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateReference', + 'description' => 'Update an existing reference with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing reference', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchReference', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateAdditionalResource', + 'description' => 'Update an existing additional resource with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the additional resource text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing additional resource', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAdditionalResource', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateAward', + 'description' => 'Update an existing award with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the award text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing award', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAward', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateEndorsement', + 'description' => 'Update an existing endorsement with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the endorsement rich-text fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing endorsement', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchEndorsement', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateBookReview', + 'description' => 'Update an existing book review with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the book review text field', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing book review', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchBookReview', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateWorkFeaturedVideo', + 'description' => 'Update an existing featured video with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing featured video', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchWorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateContact', + 'description' => 'Update an existing contact with the specified values', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Values to apply to existing contact', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchContact', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateTitle', + 'description' => 'Update an existing title with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing title', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchTitle', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateAbstract', + 'description' => 'Update an existing abstract with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the abstract', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing abstract', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchAbstract', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updateBiography', + 'description' => 'Update an existing biography with the specified values', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'The markup format of the biography', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'data', + 'description' => 'Values to apply to existing biography', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PatchBiography', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteWork', + 'description' => 'Delete a single work using its ID', + 'args' => [ + [ + 'name' => 'workId', + 'description' => 'Thoth ID of work to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deletePublisher', + 'description' => 'Delete a single publisher using its ID', + 'args' => [ + [ + 'name' => 'publisherId', + 'description' => 'Thoth ID of publisher to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteImprint', + 'description' => 'Delete a single imprint using its ID', + 'args' => [ + [ + 'name' => 'imprintId', + 'description' => 'Thoth ID of imprint to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteContributor', + 'description' => 'Delete a single contributor using its ID', + 'args' => [ + [ + 'name' => 'contributorId', + 'description' => 'Thoth ID of contributor to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteContribution', + 'description' => 'Delete a single contribution using its ID', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth ID of contribution to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deletePublication', + 'description' => 'Delete a single publication using its ID', + 'args' => [ + [ + 'name' => 'publicationId', + 'description' => 'Thoth ID of publication to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteSeries', + 'description' => 'Delete a single series using its ID', + 'args' => [ + [ + 'name' => 'seriesId', + 'description' => 'Thoth ID of series to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteIssue', + 'description' => 'Delete a single issue using its ID', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth ID of issue to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteLanguage', + 'description' => 'Delete a single language using its ID', + 'args' => [ + [ + 'name' => 'languageId', + 'description' => 'Thoth ID of language to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteTitle', + 'description' => 'Delete a single title using its ID', + 'args' => [ + [ + 'name' => 'titleId', + 'description' => 'Thoth ID of title to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteInstitution', + 'description' => 'Delete a single institution using its ID', + 'args' => [ + [ + 'name' => 'institutionId', + 'description' => 'Thoth ID of institution to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteFunding', + 'description' => 'Delete a single funding using its ID', + 'args' => [ + [ + 'name' => 'fundingId', + 'description' => 'Thoth ID of funding to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteLocation', + 'description' => 'Delete a single location using its ID', + 'args' => [ + [ + 'name' => 'locationId', + 'description' => 'Thoth ID of location to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deletePrice', + 'description' => 'Delete a single price using its ID', + 'args' => [ + [ + 'name' => 'priceId', + 'description' => 'Thoth ID of price to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteSubject', + 'description' => 'Delete a single subject using its ID', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth ID of subject to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteAffiliation', + 'description' => 'Delete a single affiliation using its ID', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth ID of affiliation to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteWorkRelation', + 'description' => 'Delete a single work relation using its ID', + 'args' => [ + [ + 'name' => 'workRelationId', + 'description' => 'Thoth ID of work relation to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteReference', + 'description' => 'Delete a single reference using its ID', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth ID of reference to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteAdditionalResource', + 'description' => 'Delete a single additional resource using its ID', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of additional resource to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteAward', + 'description' => 'Delete a single award using its ID', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth ID of award to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteEndorsement', + 'description' => 'Delete a single endorsement using its ID', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth ID of endorsement to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteBookReview', + 'description' => 'Delete a single book review using its ID', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth ID of book review to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteWorkFeaturedVideo', + 'description' => 'Delete a single featured video using its ID', + 'args' => [ + [ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth ID of featured video to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteAbstract', + 'description' => 'Delete a single abstract using its ID', + 'args' => [ + [ + 'name' => 'abstractId', + 'description' => 'Thoth ID of abstract to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteBiography', + 'description' => 'Delete a single biography using its ID', + 'args' => [ + [ + 'name' => 'biographyId', + 'description' => 'Thoth ID of biography to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveAffiliation', + 'description' => 'Change the ordering of an affiliation within a contribution', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth ID of affiliation to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which affiliation should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveContribution', + 'description' => 'Change the ordering of a contribution within a work', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth ID of contribution to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which contribution should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveIssue', + 'description' => 'Change the ordering of an issue within a series', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth ID of issue to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which issue should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveReference', + 'description' => 'Change the ordering of a reference within a work', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth ID of reference to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which reference should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveAdditionalResource', + 'description' => 'Change the ordering of an additional resource within a work', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth ID of additional resource to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which additional resource should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveAward', + 'description' => 'Change the ordering of an award within a work', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth ID of award to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which award should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveEndorsement', + 'description' => 'Change the ordering of an endorsement within a work', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth ID of endorsement to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which endorsement should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveBookReview', + 'description' => 'Change the ordering of a book review within a work', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth ID of book review to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which book review should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveSubject', + 'description' => 'Change the ordering of a subject within a work', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth ID of subject to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which subject should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'moveWorkRelation', + 'description' => 'Change the ordering of a work relation within a work', + 'args' => [ + [ + 'name' => 'workRelationId', + 'description' => 'Thoth ID of work relation to be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'newOrdinal', + 'description' => 'Ordinal representing position to which work relation should be moved', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'initPublicationFileUpload', + 'description' => 'Start uploading a publication file (e.g. PDF, EPUB, XML) for a given publication. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a publication file upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewPublicationFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'initFrontcoverFileUpload', + 'description' => 'Start uploading a front cover image for a given work. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a front cover upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewFrontcoverFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'initAdditionalResourceFileUpload', + 'description' => 'Start uploading a file for an additional resource. Supported resource types include AUDIO, VIDEO, IMAGE, DOCUMENT, DATASET, and SPREADSHEET.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting an additional resource upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewAdditionalResourceFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'initWorkFeaturedVideoFileUpload', + 'description' => 'Start uploading a hosted featured video for a work. The uploaded file is promoted to a DOI-scoped resource path.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for starting a featured video upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'NewWorkFeaturedVideoFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'FileUploadResponse', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'completeFileUpload', + 'description' => 'Complete a file upload, validate it, and promote it to its final DOI-based location.', + 'args' => [ + [ + 'name' => 'data', + 'description' => 'Input for completing a file upload', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'CompleteFileUpload', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'deleteContact', + 'description' => 'Delete a single contact using its ID', + 'args' => [ + [ + 'name' => 'contactId', + 'description' => 'Thoth ID of contact to be deleted', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Price.php b/src/GraphQL/Generated/Schemas/Price.php new file mode 100644 index 0000000..56c9ae7 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Price.php @@ -0,0 +1,126 @@ + 'priceId', + 'description' => 'Thoth ID of the price', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationId', + 'description' => 'Thoth ID of the publication linked to this price', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'currencyCode', + 'description' => 'Three-letter ISO 4217 code representing the currency used in this price', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'unitPrice', + 'description' => 'Value of the publication in the specified currency', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the price record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the price record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publication', + 'description' => 'Get the publication linked to this price', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Publication.php b/src/GraphQL/Generated/Schemas/Publication.php new file mode 100644 index 0000000..3f7b237 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Publication.php @@ -0,0 +1,436 @@ + 'publicationId', + 'description' => 'Thoth ID of the publication', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationType', + 'description' => 'Format of this publication', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this publication belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => 'International Standard Book Number of the publication, in ISBN-13 format', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the publication record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the publication record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'width', + 'description' => 'Width of the physical Publication (in mm, cm or in) (only applicable to non-Chapter Paperbacks and Hardbacks)', + 'args' => [ + [ + 'name' => 'units', + 'description' => 'Unit of measurement in which to represent the width (mm, cm or in)', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LengthUnit', + 'ofType' => null, + ], + ], + 'defaultValue' => '"MM"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'height', + 'description' => 'Height of the physical Publication (in mm, cm or in) (only applicable to non-Chapter Paperbacks and Hardbacks)', + 'args' => [ + [ + 'name' => 'units', + 'description' => 'Unit of measurement in which to represent the height (mm, cm or in)', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LengthUnit', + 'ofType' => null, + ], + ], + 'defaultValue' => '"MM"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'depth', + 'description' => 'Depth of the physical Publication (in mm, cm or in) (only applicable to non-Chapter Paperbacks and Hardbacks)', + 'args' => [ + [ + 'name' => 'units', + 'description' => 'Unit of measurement in which to represent the depth (mm, cm or in)', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LengthUnit', + 'ofType' => null, + ], + ], + 'defaultValue' => '"MM"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'weight', + 'description' => 'Weight of the physical Publication (in g or oz) (only applicable to non-Chapter Paperbacks and Hardbacks)', + 'args' => [ + [ + 'name' => 'units', + 'description' => 'Unit of measurement in which to represent the weight (grams or ounces)', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WeightUnit', + 'ofType' => null, + ], + ], + 'defaultValue' => '"G"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Float', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityStandard', + 'description' => 'WCAG standard accessibility level met by this publication (if any)', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityAdditionalStandard', + 'description' => 'EPUB- or PDF-specific standard accessibility level met by this publication, if applicable', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityStandard', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityException', + 'description' => 'Reason for this publication not being required to comply with accessibility standards (if any)', + 'args' => [], + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'AccessibilityException', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => 'Link to a web page showing detailed accessibility information for this publication', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'prices', + 'description' => 'Get prices linked to this publication', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PriceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CURRENCY_CODE", direction: "ASC"}', + ], + [ + 'name' => 'currencyCodes', + 'description' => 'Specific currencies to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'locations', + 'description' => 'Get locations linked to this publication', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LocationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LOCATION_PLATFORM", direction: "ASC"}', + ], + [ + 'name' => 'locationPlatforms', + 'description' => 'Specific platforms to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'file', + 'description' => 'Get the publication file for this publication', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work to which this publication belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Publisher.php b/src/GraphQL/Generated/Schemas/Publisher.php new file mode 100644 index 0000000..845dfa2 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Publisher.php @@ -0,0 +1,276 @@ + 'publisherId', + 'description' => 'Thoth ID of the publisher', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherName', + 'description' => 'Name of the publisher', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherShortname', + 'description' => 'Short name of the publisher, if any (e.g. an abbreviation)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherUrl', + 'description' => 'URL of the publisher\'s website', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'zitadelId', + 'description' => 'Zitadel organisation ID associated with the publisher', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityStatement', + 'description' => 'Statement from the publisher on the accessibility of its texts for readers with impairments', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'accessibilityReportUrl', + 'description' => 'URL of the publisher\'s report on the accessibility of its texts for readers with impairments', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the publisher record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the publisher record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprints', + 'description' => 'Get imprints linked to this publisher', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ImprintOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "IMPRINT_NAME", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contacts', + 'description' => 'Get contacts linked to this publisher', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContactOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "EMAIL", direction: "ASC"}', + ], + [ + 'name' => 'contactTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/PublisherContext.php b/src/GraphQL/Generated/Schemas/PublisherContext.php new file mode 100644 index 0000000..cefc2e1 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/PublisherContext.php @@ -0,0 +1,46 @@ + 'publisher', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'permissions', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'PublisherPermissions', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/PublisherPermissions.php b/src/GraphQL/Generated/Schemas/PublisherPermissions.php new file mode 100644 index 0000000..bbddf2b --- /dev/null +++ b/src/GraphQL/Generated/Schemas/PublisherPermissions.php @@ -0,0 +1,62 @@ + 'publisherAdmin', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workLifecycle', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'cdnWrite', + 'description' => null, + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/QueryRoot.php b/src/GraphQL/Generated/Schemas/QueryRoot.php new file mode 100644 index 0000000..41e52ab --- /dev/null +++ b/src/GraphQL/Generated/Schemas/QueryRoot.php @@ -0,0 +1,4383 @@ + 'works', + 'description' => 'Query the full list of works', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Query a single work using its ID', + 'args' => [ + [ + 'name' => 'workId', + 'description' => 'Thoth work ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workByDoi', + 'description' => 'Query a single work using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Work DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workCount', + 'description' => 'Get the total number of works', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'books', + 'description' => 'Query the full list of books (a subset of the full list of works)', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookByDoi', + 'description' => 'Query a single book using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Book DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookCount', + 'description' => 'Get the total number of books (a subset of the total number of works)', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'chapters', + 'description' => 'Query the full list of chapters (a subset of the full list of works)', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'chapterByDoi', + 'description' => 'Query a single chapter using its DOI', + 'args' => [ + [ + 'name' => 'doi', + 'description' => 'Chapter DOI to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'chapterCount', + 'description' => 'Get the total number of chapters (a subset of the total number of works)', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatus', + 'description' => '(deprecated) A specific status to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationDate', + 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'updatedAtWithRelations', + 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TimeExpression', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publications', + 'description' => 'Query the full list of publications', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PublicationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PUBLICATION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publication', + 'description' => 'Query a single publication using its ID', + 'args' => [ + [ + 'name' => 'publicationId', + 'description' => 'Thoth publication ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'file', + 'description' => 'Query a single file using its ID', + 'args' => [ + [ + 'name' => 'fileId', + 'description' => 'Thoth file ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationCount', + 'description' => 'Get the total number of publications', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'publicationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publishers', + 'description' => 'Query the full list of publishers', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PublisherOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PUBLISHER_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisher', + 'description' => 'Query a single publisher using its ID', + 'args' => [ + [ + 'name' => 'publisherId', + 'description' => 'Thoth publisher ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publisher', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publisherCount', + 'description' => 'Get the total number of publishers', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprints', + 'description' => 'Query the full list of imprints', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ImprintOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "IMPRINT_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprint', + 'description' => 'Query a single imprint using its ID', + 'args' => [ + [ + 'name' => 'imprintId', + 'description' => 'Thoth imprint ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprintCount', + 'description' => 'Get the total number of imprints', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributors', + 'description' => 'Query the full list of contributors', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributorOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "FULL_NAME", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributor', + 'description' => 'Query a single contributor using its ID', + 'args' => [ + [ + 'name' => 'contributorId', + 'description' => 'Thoth contributor ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contributor', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributorCount', + 'description' => 'Get the total number of contributors', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributions', + 'description' => 'Query the full list of contributions', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CONTRIBUTION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contribution', + 'description' => 'Query a single contribution using its ID', + 'args' => [ + [ + 'name' => 'contributionId', + 'description' => 'Thoth contribution ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributionCount', + 'description' => 'Get the total number of contributions', + 'args' => [ + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'serieses', + 'description' => 'Query the full list of series', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'SeriesOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "SERIES_NAME", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'seriesTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'series', + 'description' => 'Query a single series using its ID', + 'args' => [ + [ + 'name' => 'seriesId', + 'description' => 'Thoth series ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Series', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesCount', + 'description' => 'Get the total number of series', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'seriesTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issues', + 'description' => 'Query the full list of issues', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'IssueOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ISSUE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issue', + 'description' => 'Query a single issue using its ID', + 'args' => [ + [ + 'name' => 'issueId', + 'description' => 'Thoth issue ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issueCount', + 'description' => 'Get the total number of issues', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'languages', + 'description' => 'Query the full list of languages', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LanguageOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LANGUAGE_CODE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageCodes', + 'description' => 'Specific languages to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageRelation', + 'description' => '(deprecated) A specific relation to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'languageRelations', + 'description' => 'Specific relations to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'language', + 'description' => 'Query a single language using its ID', + 'args' => [ + [ + 'name' => 'languageId', + 'description' => 'Thoth language ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'languageCount', + 'description' => 'Get the total number of languages associated to works', + 'args' => [ + [ + 'name' => 'languageCodes', + 'description' => 'Specific languages to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageRelation', + 'description' => '(deprecated) A specific relation to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'languageRelations', + 'description' => 'Specific relations to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'locations', + 'description' => 'Query the full list of locations', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LocationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LOCATION_PLATFORM", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'locationPlatforms', + 'description' => 'Specific platforms to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'location', + 'description' => 'Query a single location using its ID', + 'args' => [ + [ + 'name' => 'locationId', + 'description' => 'Thoth location ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Location', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'locationCount', + 'description' => 'Get the total number of locations associated to works', + 'args' => [ + [ + 'name' => 'locationPlatforms', + 'description' => 'Specific platforms to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocationPlatform', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'prices', + 'description' => 'Query the full list of prices', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PriceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CURRENCY_CODE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'currencyCodes', + 'description' => 'Specific currencies to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'price', + 'description' => 'Query a single price using its ID', + 'args' => [ + [ + 'name' => 'priceId', + 'description' => 'Thoth price ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Price', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'priceCount', + 'description' => 'Get the total number of prices associated to works', + 'args' => [ + [ + 'name' => 'currencyCodes', + 'description' => 'Specific currencies to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'CurrencyCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjects', + 'description' => 'Query the full list of subjects', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'SubjectOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "SUBJECT_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'subjectTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subject', + 'description' => 'Query a single subject using its ID', + 'args' => [ + [ + 'name' => 'subjectId', + 'description' => 'Thoth subject ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjectCount', + 'description' => 'Get the total number of subjects associated to works', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'subjectTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'workStatuses', + 'description' => 'Specific statuses to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutions', + 'description' => 'Query the full list of institutions', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'InstitutionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "INSTITUTION_NAME", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institution', + 'description' => 'Query a single institution using its ID', + 'args' => [ + [ + 'name' => 'institutionId', + 'description' => 'Thoth institution ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Institution', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'institutionCount', + 'description' => 'Get the total number of institutions', + 'args' => [ + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fundings', + 'description' => 'Query the full list of fundings', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'FundingOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PROGRAM", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'funding', + 'description' => 'Query a single funding using its ID', + 'args' => [ + [ + 'name' => 'fundingId', + 'description' => 'Thoth funding ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fundingCount', + 'description' => 'Get the total number of funding instances associated to works', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliations', + 'description' => 'Query the full list of affiliations', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AffiliationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AFFILIATION_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliation', + 'description' => 'Query a single affiliation using its ID', + 'args' => [ + [ + 'name' => 'affiliationId', + 'description' => 'Thoth affiliation ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Affiliation', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'affiliationCount', + 'description' => 'Get the total number of affiliations', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'references', + 'description' => 'Query the full list of references', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ReferenceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "REFERENCE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reference', + 'description' => 'Query a single reference using its ID', + 'args' => [ + [ + 'name' => 'referenceId', + 'description' => 'Thoth reference ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'referenceCount', + 'description' => 'Get the total number of references', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'additionalResources', + 'description' => 'Query the full list of additional resources', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AdditionalResourceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "RESOURCE_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'additionalResource', + 'description' => 'Query a single additional resource using its ID', + 'args' => [ + [ + 'name' => 'additionalResourceId', + 'description' => 'Thoth additional resource ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'additionalResourceCount', + 'description' => 'Get the total number of additional resources', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'awards', + 'description' => 'Query the full list of awards', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AwardOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "AWARD_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'award', + 'description' => 'Query a single award using its ID', + 'args' => [ + [ + 'name' => 'awardId', + 'description' => 'Thoth award ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'awardCount', + 'description' => 'Get the total number of awards', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'endorsements', + 'description' => 'Query the full list of endorsements', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'EndorsementOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ENDORSEMENT_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'endorsement', + 'description' => 'Query a single endorsement using its ID', + 'args' => [ + [ + 'name' => 'endorsementId', + 'description' => 'Thoth endorsement ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'endorsementCount', + 'description' => 'Get the total number of endorsements', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookReviews', + 'description' => 'Query the full list of book reviews', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'BookReviewOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "REVIEW_ORDINAL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookReview', + 'description' => 'Query a single book review using its ID', + 'args' => [ + [ + 'name' => 'bookReviewId', + 'description' => 'Thoth book review ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookReviewCount', + 'description' => 'Get the total number of book reviews', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideos', + 'description' => 'Query the full list of featured videos', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkFeaturedVideoOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "UPDATED_AT", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideo', + 'description' => 'Query a single featured video using its ID', + 'args' => [ + [ + 'name' => 'workFeaturedVideoId', + 'description' => 'Thoth featured video ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workFeaturedVideoCount', + 'description' => 'Get the total number of featured videos', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Query a title by its ID', + 'args' => [ + [ + 'name' => 'titleId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => null, + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'titles', + 'description' => 'Query the full list of titles', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TitleOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'abstract', + 'description' => 'Query an abstract by its ID', + 'args' => [ + [ + 'name' => 'abstractId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows results with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'abstracts', + 'description' => 'Query the full list of abstracts', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AbstractOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'biography', + 'description' => 'Query an biography by it\'s ID', + 'args' => [ + [ + 'name' => 'biographyId', + 'description' => null, + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'biographies', + 'description' => 'Query biographies by work ID', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'BiographyOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set shows result with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Biography', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contacts', + 'description' => 'Query the full list of contacts', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContactOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "EMAIL", direction: "ASC"}', + ], + [ + 'name' => 'publishers', + 'description' => 'If set, only shows results connected to publishers with these IDs', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'contactTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contact', + 'description' => 'Query a single contact using its ID', + 'args' => [ + [ + 'name' => 'contactId', + 'description' => 'Thoth contact ID to search on', + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contact', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contactCount', + 'description' => 'Get the total number of contacts', + 'args' => [ + [ + 'name' => 'contactTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContactType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'me', + 'description' => 'Get the total number of contacts', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Me', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Reference.php b/src/GraphQL/Generated/Schemas/Reference.php new file mode 100644 index 0000000..99b9883 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Reference.php @@ -0,0 +1,350 @@ + 'referenceId', + 'description' => 'UUID of the reference.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'UUID of the citing work.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'referenceOrdinal', + 'description' => 'Number used to order references within a work\'s bibliography.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => 'Digital Object Identifier of the cited work as full URL.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'unstructuredCitation', + 'description' => 'Full reference text. When the DOI of the cited work is not known this field is required, and may be used in conjunction with other structured data to help identify the cited work.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issn', + 'description' => 'ISSN of a series.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'isbn', + 'description' => 'Book ISBN, when the cited work is a book or a chapter.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Isbn', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'journalTitle', + 'description' => 'Title of a journal, when the cited work is an article.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'articleTitle', + 'description' => 'Journal article, conference paper, or book chapter title.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesTitle', + 'description' => 'Title of a book or conference series.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'volumeTitle', + 'description' => 'Title of a book or conference proceeding.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => 'Book edition number.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'author', + 'description' => 'First author of the cited work.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'volume', + 'description' => 'Volume number of a journal or book set.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issue', + 'description' => 'Journal issue, when the cited work is an article.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => 'First page of the cited page range.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'componentNumber', + 'description' => 'The chapter, section or part number, when the cited work is a component of a book.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'standardDesignator', + 'description' => 'Standard identifier (e.g. "14064-1"), when the cited work is a standard.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'standardsBodyName', + 'description' => 'Full name of the standards organisation (e.g. "International Organization for Standardization"), when the cited work is a standard.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'standardsBodyAcronym', + 'description' => 'Acronym of the standards organisation (e.g. "ISO"), when the cited work is a standard.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'URL of the cited work.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => 'Publication date of the cited work. Day and month should be set to "01" when only the publication year is known.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'retrievalDate', + 'description' => 'Date the cited work was accessed, when citing a website or online article.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Timestamp of the creation of this record within Thoth.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Timestamp of the last update to this record within Thoth.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'The citing work.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Series.php b/src/GraphQL/Generated/Schemas/Series.php new file mode 100644 index 0000000..4025b7a --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Series.php @@ -0,0 +1,252 @@ + 'seriesId', + 'description' => 'Thoth ID of the series', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesType', + 'description' => 'Type of the series', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SeriesType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesName', + 'description' => 'Name of the series', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issnPrint', + 'description' => 'Print ISSN (International Standard Serial Number) of the series. This represents the print media version.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issnDigital', + 'description' => 'Electronic ISSN (International Standard Serial Number) of the series. This represents the online version.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesUrl', + 'description' => 'URL of the series\' landing page', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesDescription', + 'description' => 'Description of the series', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering series description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'seriesCfpUrl', + 'description' => 'URL of the series\' call for proposals page', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => 'Thoth ID of the imprint to which this series belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the series record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the series record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprint', + 'description' => 'Get the imprint linked to this series', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issues', + 'description' => 'Get issues linked to this series', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'IssueOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ISSUE_ORDINAL", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Subject.php b/src/GraphQL/Generated/Schemas/Subject.php new file mode 100644 index 0000000..ef8ae75 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Subject.php @@ -0,0 +1,142 @@ + 'subjectId', + 'description' => 'Thoth ID of the subject', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which the subject is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjectType', + 'description' => 'Type of the subject (e.g. the subject category scheme being used)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjectCode', + 'description' => 'Code representing the subject within the specified type', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjectOrdinal', + 'description' => 'Number representing this subject\'s position in an ordered list of subjects of the same type within the work (subjects of equal prominence can have the same number)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the subject record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the subject record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work to which the subject is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Title.php b/src/GraphQL/Generated/Schemas/Title.php new file mode 100644 index 0000000..a44aa6c --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Title.php @@ -0,0 +1,138 @@ + 'titleId', + 'description' => 'Thoth ID of the title', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which the title is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'localeCode', + 'description' => 'Locale code of the title', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fullTitle', + 'description' => 'Full title including subtitle', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Main title (excluding subtitle)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subtitle', + 'description' => 'Subtitle of the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'canonical', + 'description' => 'Whether this is the canonical title for the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Boolean', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work to which the title is linked', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/UploadRequestHeader.php b/src/GraphQL/Generated/Schemas/UploadRequestHeader.php new file mode 100644 index 0000000..d0e66b5 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/UploadRequestHeader.php @@ -0,0 +1,46 @@ + 'name', + 'description' => 'HTTP header name.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'value', + 'description' => 'HTTP header value.', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/Work.php b/src/GraphQL/Generated/Schemas/Work.php new file mode 100644 index 0000000..03eaf04 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/Work.php @@ -0,0 +1,1521 @@ + 'workId', + 'description' => 'Thoth ID of the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workType', + 'description' => 'Type of the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workStatus', + 'description' => 'Publication status of the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'WorkStatus', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fullTitle', + 'description' => 'Concatenation of title and subtitle with punctuation mark', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Work `titles` field instead to get the correct full title in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Main title of the work (excluding subtitle)', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Work `titles` field instead to get the correct title in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subtitle', + 'description' => 'Secondary title of the work (excluding main title)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Work `titles` field instead to get the correct sub_title in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'shortAbstract', + 'description' => 'Short abstract of the work. Where a work has two different versions of the abstract, the truncated version should be entered here. Otherwise, it can be left blank. This field is not output in metadata formats; where relevant, Long Abstract is used instead.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Work `abstracts` field instead to get the correct short abstract in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'longAbstract', + 'description' => 'Abstract of the work. Where a work has only one abstract, it should be entered here, and Short Abstract can be left blank. Long Abstract is output in metadata formats, and Short Abstract is not.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => true, + 'deprecationReason' => 'Please use Work `abstracts` field instead to get the correct long abstract in a multilingual manner', + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'titles', + 'description' => 'Query titles by work ID', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'TitleOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set, only shows results with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Title', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'abstracts', + 'description' => 'Query abstracts by work ID', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'AbstractOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', + ], + [ + 'name' => 'localeCodes', + 'description' => 'If set, only shows results with these locale codes', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LocaleCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'markupFormat', + 'description' => 'If set, only shows results with this markup format', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Abstract', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'reference', + 'description' => 'Internal reference code', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'edition', + 'description' => 'Edition number of the work (not applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprintId', + 'description' => 'Thoth ID of the work\'s imprint', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => 'Digital Object Identifier of the work as full URL, using the HTTPS scheme and the doi.org domain (e.g. https://doi.org/10.11647/obp.0001)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publicationDate', + 'description' => 'Date the work was published', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'withdrawnDate', + 'description' => 'Date the work was withdrawn from publication. Only applies to out of print and withdrawn works.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'place', + 'description' => 'Place of publication of the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'pageCount', + 'description' => 'Total number of pages in the work. In most cases, unnumbered pages (e.g. endpapers) should be omitted from this count.', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'pageBreakdown', + 'description' => 'Breakdown of work\'s page count into front matter, main content, and/or back matter (e.g. \'xi + 140\')', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imageCount', + 'description' => 'Total number of images in the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'tableCount', + 'description' => 'Total number of tables in the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'audioCount', + 'description' => 'Total number of audio fragments in the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'videoCount', + 'description' => 'Total number of video fragments in the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'license', + 'description' => 'URL of the license which applies to this work (frequently a Creative Commons license for open-access works)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'copyrightHolder', + 'description' => 'Copyright holder of the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'landingPage', + 'description' => 'URL of the web page of the work', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'lccn', + 'description' => 'Library of Congress Control Number of the work (not applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'oclc', + 'description' => 'OCLC (WorldCat) Control Number of the work (not applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'generalNote', + 'description' => 'A general-purpose field used to include information that does not have a specific designated field', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bibliographyNote', + 'description' => 'Indicates that the work contains a bibliography or other similar information', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'toc', + 'description' => 'Table of contents of the work (not applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'resourcesDescription', + 'description' => 'Description of additional resources linked to this work', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering resources description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'coverUrl', + 'description' => 'URL of the work\'s cover image', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'coverCaption', + 'description' => 'Caption describing the work\'s cover image', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the work record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the work record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'firstPage', + 'description' => 'Page number on which the work begins (only applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'lastPage', + 'description' => 'Page number on which the work ends (only applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'pageInterval', + 'description' => 'Concatenation of first page and last page with dash (only applicable to chapters)', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAtWithRelations', + 'description' => 'Date and time at which the work record or any of its linked records was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'imprint', + 'description' => 'Get this work\'s imprint', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Imprint', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'contributions', + 'description' => 'Get contributions linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ContributionOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "CONTRIBUTION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'contributionTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'ContributionType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Contribution', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'languages', + 'description' => 'Get languages linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'LanguageOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "LANGUAGE_CODE", direction: "ASC"}', + ], + [ + 'name' => 'languageCodes', + 'description' => 'Specific languages to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageCode', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + [ + 'name' => 'languageRelation', + 'description' => '(deprecated) A specific relation to filter by', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + [ + 'name' => 'languageRelations', + 'description' => 'Specific relations to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'LanguageRelation', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Language', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'publications', + 'description' => 'Get publications linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'PublicationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PUBLICATION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'publicationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'PublicationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Publication', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'subjects', + 'description' => 'Get subjects linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'SubjectOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "SUBJECT_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'subjectTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'SubjectType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Subject', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'fundings', + 'description' => 'Get fundings linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'FundingOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "PROGRAM", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Funding', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'issues', + 'description' => 'Get issues linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'IssueOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "ISSUE_ORDINAL", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Issue', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relations', + 'description' => 'Get other works related to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'WorkRelationOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "RELATION_TYPE", direction: "ASC"}', + ], + [ + 'name' => 'relationTypes', + 'description' => 'Specific types to filter by', + 'type' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'RelationType', + 'ofType' => null, + ], + ], + ], + 'defaultValue' => '[]', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkRelation', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'frontcover', + 'description' => 'Get the front cover file for this work', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'references', + 'description' => 'Get references cited by this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '100', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'filter', + 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on doi, unstructured_citation, issn, isbn, journal_title, article_title, series_title, volume_title, author, standard_designator, standards_body_name, and standards_body_acronym', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'defaultValue' => '""', + ], + [ + 'name' => 'order', + 'description' => 'The order in which to sort the results', + 'type' => [ + 'kind' => 'INPUT_OBJECT', + 'name' => 'ReferenceOrderBy', + 'ofType' => null, + ], + 'defaultValue' => '{field: "REFERENCE_ORDINAL", direction: "ASC"}', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Reference', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'additionalResources', + 'description' => 'Get additional resources linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '50', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering textual fields', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => '"JATS_XML"', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkResource', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'awards', + 'description' => 'Get awards linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '50', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Award', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'endorsements', + 'description' => 'Get endorsements linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '50', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Endorsement', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'bookReviews', + 'description' => 'Get book reviews linked to this work', + 'args' => [ + [ + 'name' => 'limit', + 'description' => 'The number of items to return', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '50', + ], + [ + 'name' => 'offset', + 'description' => 'The number of items to skip', + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + 'defaultValue' => '0', + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'LIST', + 'name' => null, + 'ofType' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'BookReview', + 'ofType' => null, + ], + ], + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'featuredVideo', + 'description' => 'Get the featured video linked to this work', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'WorkFeaturedVideo', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php b/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php new file mode 100644 index 0000000..d04aa40 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php @@ -0,0 +1,166 @@ + 'workFeaturedVideoId', + 'description' => 'Thoth ID of the featured video', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this featured video belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Title or caption of the featured video', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'CDN URL of the featured video', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'width', + 'description' => 'Rendered width of the featured video embed', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'height', + 'description' => 'Rendered height of the featured video embed', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the featured video record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the featured video record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work linked to this featured video', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'file', + 'description' => 'Get the hosted file linked to this featured video', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/WorkRelation.php b/src/GraphQL/Generated/Schemas/WorkRelation.php new file mode 100644 index 0000000..8e81c7c --- /dev/null +++ b/src/GraphQL/Generated/Schemas/WorkRelation.php @@ -0,0 +1,142 @@ + 'workRelationId', + 'description' => 'Thoth ID of the work relation', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relatorWorkId', + 'description' => 'Thoth ID of the work to which this work relation belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relatedWorkId', + 'description' => 'Thoth ID of the other work in the relationship', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relationType', + 'description' => 'Nature of the relationship', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'ENUM', + 'name' => 'RelationType', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relationOrdinal', + 'description' => 'Number representing this work relation\'s position in an ordered list of relations of the same type within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the work relation record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the work relation record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'relatedWork', + 'description' => 'Get the other work in the relationship', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Generated/Schemas/WorkResource.php b/src/GraphQL/Generated/Schemas/WorkResource.php new file mode 100644 index 0000000..ad5fdd4 --- /dev/null +++ b/src/GraphQL/Generated/Schemas/WorkResource.php @@ -0,0 +1,248 @@ + 'workResourceId', + 'description' => 'Thoth ID of the work resource', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'workId', + 'description' => 'Thoth ID of the work to which this resource belongs', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Uuid', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'title', + 'description' => 'Title of the additional resource', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering title', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'description', + 'description' => 'Description of the additional resource', + 'args' => [ + [ + 'name' => 'markupFormat', + 'description' => 'Markup format used for rendering description', + 'type' => [ + 'kind' => 'ENUM', + 'name' => 'MarkupFormat', + 'ofType' => null, + ], + 'defaultValue' => null, + ], + ], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'attribution', + 'description' => 'Attribution for the resource source/author', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'resourceType', + 'description' => 'Type of additional resource', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'doi', + 'description' => 'DOI of the resource as full URL, using the HTTPS scheme and the doi.org domain', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Doi', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'handle', + 'description' => 'Handle identifier of the resource', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'url', + 'description' => 'URL of the additional resource', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'String', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'date', + 'description' => 'Date associated with the additional resource', + 'args' => [], + 'type' => [ + 'kind' => 'SCALAR', + 'name' => 'Date', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'resourceOrdinal', + 'description' => 'Number representing this resource\'s position in an ordered list of resources within the work', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Int', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'createdAt', + 'description' => 'Date and time at which the resource record was created', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'updatedAt', + 'description' => 'Date and time at which the resource record was last updated', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'SCALAR', + 'name' => 'Timestamp', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'work', + 'description' => 'Get the work linked to this resource', + 'args' => [], + 'type' => [ + 'kind' => 'NON_NULL', + 'name' => null, + 'ofType' => [ + 'kind' => 'OBJECT', + 'name' => 'Work', + 'ofType' => null, + ], + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]), + \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ + 'name' => 'file', + 'description' => 'Get the hosted file linked to this resource', + 'args' => [], + 'type' => [ + 'kind' => 'OBJECT', + 'name' => 'File', + 'ofType' => null, + ], + 'isDeprecated' => false, + 'deprecationReason' => null, + ]) + ]); + } +} diff --git a/src/GraphQL/Models/AbstractModel.php b/src/GraphQL/Models/AbstractModel.php deleted file mode 100644 index 73866b5..0000000 --- a/src/GraphQL/Models/AbstractModel.php +++ /dev/null @@ -1,50 +0,0 @@ -data = $data; - } - - public function getAllData() - { - return $this->data; - } - - public function getData($key) - { - return $this->data[$key] ?? null; - } - - public function setData($key, $value) - { - if ($value !== null) { - $this->data[$key] = $value; - return; - } - - if (array_key_exists($key, $this->data)) { - unset($this->data[$key]); - } - } - - public function __call(string $name, array $arguments) - { - if (preg_match('/^(get|set|is)(.+)$/', $name, $matches) !== 1) { - throw new \BadMethodCallException("Method '{$name}' does not exist."); - } - - $field = lcfirst($matches[2]); - if ($matches[1] === 'set') { - $this->setData($field, $arguments[0] ?? null); - return; - } - - return $this->getData($field); - } -} diff --git a/src/GraphQL/Models/AbstractText.php b/src/GraphQL/Models/AbstractText.php deleted file mode 100644 index fcb5bde..0000000 --- a/src/GraphQL/Models/AbstractText.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('workResourceId'); - } - - public function setAdditionalResourceId(?string $additionalResourceId): void - { - $this->setData('workResourceId', $additionalResourceId); - } -} diff --git a/src/GraphQL/Models/Affiliation.php b/src/GraphQL/Models/Affiliation.php deleted file mode 100644 index afe7ce3..0000000 --- a/src/GraphQL/Models/Affiliation.php +++ /dev/null @@ -1,56 +0,0 @@ -getData('affiliationId'); - } - - public function setAffiliationId(?string $affiliationId): void - { - $this->setData('affiliationId', $affiliationId); - } - - public function getContributionId(): ?string - { - return $this->getData('contributionId'); - } - - public function setContributionId(?string $contributionId): void - { - $this->setData('contributionId', $contributionId); - } - - public function getInstitutionId(): ?string - { - return $this->getData('institutionId'); - } - - public function setInstitutionId(?string $institutionId): void - { - $this->setData('institutionId', $institutionId); - } - - public function getAffiliationOrdinal(): int - { - return $this->getData('affiliationOrdinal'); - } - - public function setAffiliationOrdinal(int $affiliationOrdinal): void - { - $this->setData('affiliationOrdinal', $affiliationOrdinal); - } - - public function getPosition(): ?string - { - return $this->getData('position'); - } - - public function setPosition(?string $position): void - { - $this->setData('position', $position); - } -} diff --git a/src/GraphQL/Models/Award.php b/src/GraphQL/Models/Award.php deleted file mode 100644 index a131bfb..0000000 --- a/src/GraphQL/Models/Award.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('contributionId'); - } - - public function setContributionId(?string $contributionId): void - { - $this->setData('contributionId', $contributionId); - } - - public function getContributorId(): ?string - { - return $this->getData('contributorId'); - } - - public function setContributorId(?string $contributorId): void - { - $this->setData('contributorId', $contributorId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getContributionType(): ?string - { - return $this->getData('contributionType'); - } - - public function setContributionType(?string $contributionType): void - { - $this->setData('contributionType', $contributionType); - } - - public function getMainContribution(): ?bool - { - return $this->getData('mainContribution'); - } - - public function setMainContribution(?bool $mainContribution): void - { - $this->setData('mainContribution', $mainContribution); - } - - public function getBiography(): ?string - { - return $this->getData('biography'); - } - - public function setBiography(?string $biography): void - { - $this->setData('biography', $biography); - } - - public function getFirstName(): ?string - { - return $this->getData('firstName'); - } - - public function setFirstName(?string $firstName): void - { - $this->setData('firstName', $firstName); - } - - public function getLastName(): ?string - { - return $this->getData('lastName'); - } - - public function setLastName(?string $lastName): void - { - $this->setData('lastName', $lastName); - } - - public function getFullName(): ?string - { - return $this->getData('fullName'); - } - - public function setFullName(?string $fullName): void - { - $this->setData('fullName', $fullName); - } - - public function getContributionOrdinal(): ?int - { - return $this->getData('contributionOrdinal'); - } - - public function setContributionOrdinal(?int $ContributionOrdinal): void - { - $this->setData('contributionOrdinal', $ContributionOrdinal); - } -} diff --git a/src/GraphQL/Models/Contributor.php b/src/GraphQL/Models/Contributor.php deleted file mode 100644 index 85fef27..0000000 --- a/src/GraphQL/Models/Contributor.php +++ /dev/null @@ -1,66 +0,0 @@ -getData('contributorId'); - } - - public function setContributorId(?string $contributorId): void - { - $this->setData('contributorId', $contributorId); - } - - public function getFirstName(): ?string - { - return $this->getData('firstName'); - } - - public function setFirstName(?string $firstName): void - { - $this->setData('firstName', $firstName); - } - - public function getLastName(): ?string - { - return $this->getData('lastName'); - } - - public function setLastName(?string $lastName): void - { - $this->setData('lastName', $lastName); - } - - public function getFullName(): ?string - { - return $this->getData('fullName'); - } - - public function setFullName(?string $fullName): void - { - $this->setData('fullName', $fullName); - } - - public function getOrcid(): ?string - { - return $this->getData('orcid'); - } - - public function setOrcid(?string $orcid): void - { - $this->setData('orcid', $orcid); - } - - public function getWebsite(): ?string - { - return $this->getData('website'); - } - - public function setWebsite(?string $website): void - { - $this->setData('website', $website); - } -} diff --git a/src/GraphQL/Models/Endorsement.php b/src/GraphQL/Models/Endorsement.php deleted file mode 100644 index ab23ab3..0000000 --- a/src/GraphQL/Models/Endorsement.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('fundingId'); - } - - public function setFundingId(?string $fundingId): void - { - $this->setData('fundingId', $fundingId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getInstitutionId(): ?string - { - return $this->getData('institutionId'); - } - - public function setInstitutionId(?string $institutionId): void - { - $this->setData('institutionId', $institutionId); - } - - public function getProgram(): ?string - { - return $this->getData('program'); - } - - public function setProgram(?string $program): void - { - $this->setData('program', $program); - } - - public function getProjectName(): ?string - { - return $this->getData('projectName'); - } - - public function setProjectName(?string $projectName): void - { - $this->setData('projectName', $projectName); - } - - public function getProjectShortName(): ?string - { - return $this->getData('projectShortname'); - } - - public function setProjectShortName(?string $projectShortName): void - { - $this->setData('projectShortname', $projectShortName); - } - - public function getGrantNumber(): ?string - { - return $this->getData('grantNumber'); - } - - public function setGrantNumber(?string $grantNumber): void - { - $this->setData('grantNumber', $grantNumber); - } - - public function getJurisdiction(): ?string - { - return $this->getData('jurisdiction'); - } - - public function setJurisdiction(?string $jurisdiction): void - { - $this->setData('jurisdiction', $jurisdiction); - } -} diff --git a/src/GraphQL/Models/Imprint.php b/src/GraphQL/Models/Imprint.php deleted file mode 100644 index ecf6df4..0000000 --- a/src/GraphQL/Models/Imprint.php +++ /dev/null @@ -1,56 +0,0 @@ -getData('imprintId'); - } - - public function setImprintId(?string $imprintId): void - { - $this->setData('imprintId', $imprintId); - } - - public function getPublisherId(): ?string - { - return $this->getData('publisherId'); - } - - public function setPublisherId(?string $publisherId): void - { - $this->setData('publisherId', $publisherId); - } - - public function getImprintName(): ?string - { - return $this->getData('imprintName'); - } - - public function setImprintName(?string $imprintName): void - { - $this->setData('imprintName', $imprintName); - } - - public function getImprintUrl(): ?string - { - return $this->getData('imprintUrl'); - } - - public function setImprintUrl(?string $imprintUrl): void - { - $this->setData('imprintUrl', $imprintUrl); - } - - public function getCrossmarkDoi(): ?string - { - return $this->getData('crossmarkDoi'); - } - - public function setCrossmarkDoi(?string $crossmarkDoi): void - { - $this->setData('crossmarkDoi', $crossmarkDoi); - } -} diff --git a/src/GraphQL/Models/Institution.php b/src/GraphQL/Models/Institution.php deleted file mode 100644 index d0d17d1..0000000 --- a/src/GraphQL/Models/Institution.php +++ /dev/null @@ -1,56 +0,0 @@ -getData('institutionId'); - } - - public function setInstitutionId(?string $institutionId): void - { - $this->setData('institutionId', $institutionId); - } - - public function getInstitutionName(): ?string - { - return $this->getData('institutionName'); - } - - public function setInstitutionName(?string $institutionName): void - { - $this->setData('institutionName', $institutionName); - } - - public function getInstitutionDoi(): ?string - { - return $this->getData('institutionDoi'); - } - - public function setInstitutionDoi(?string $institutionDoi): void - { - $this->setData('institutionDoi', $institutionDoi); - } - - public function getCountryCode(): ?string - { - return $this->getData('countryCode'); - } - - public function setCountryCode(?string $countryCode): void - { - $this->setData('countryCode', $countryCode); - } - - public function getRor(): ?string - { - return $this->getData('ror'); - } - - public function setRor(?string $ror): void - { - $this->setData('ror', $ror); - } -} diff --git a/src/GraphQL/Models/Issue.php b/src/GraphQL/Models/Issue.php deleted file mode 100644 index 8bf7fef..0000000 --- a/src/GraphQL/Models/Issue.php +++ /dev/null @@ -1,46 +0,0 @@ -getData('issueId'); - } - - public function setIssueId(?string $issueId): void - { - $this->setData('issueId', $issueId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getSeriesId(): ?string - { - return $this->getData('seriesId'); - } - - public function setSeriesId(?string $seriesId): void - { - $this->setData('seriesId', $seriesId); - } - - public function getIssueOrdinal(): ?int - { - return $this->getData('issueOrdinal'); - } - - public function setIssueOrdinal(?int $issueOrdinal): void - { - $this->setData('issueOrdinal', $issueOrdinal); - } -} diff --git a/src/GraphQL/Models/Language.php b/src/GraphQL/Models/Language.php deleted file mode 100644 index d59dea2..0000000 --- a/src/GraphQL/Models/Language.php +++ /dev/null @@ -1,60 +0,0 @@ -getData('languageId'); - } - - public function setLanguageId(?string $languageId): void - { - $this->setData('languageId', $languageId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getLanguageCode(): ?string - { - return $this->getData('languageCode'); - } - - public function setLanguageCode(?string $languageCode): void - { - $this->setData('languageCode', $languageCode); - } - - public function getLanguageRelation(): ?string - { - return $this->getData('languageRelation'); - } - - public function setLanguageRelation(?string $languageRelation): void - { - $this->setData('languageRelation', $languageRelation); - } - - public function getMainLanguage(): ?bool - { - return $this->getData('mainLanguage'); - } - - public function setMainLanguage(?bool $mainLanguage): void - { - $this->setData('mainLanguage', $mainLanguage); - } -} diff --git a/src/GraphQL/Models/Location.php b/src/GraphQL/Models/Location.php deleted file mode 100644 index d632224..0000000 --- a/src/GraphQL/Models/Location.php +++ /dev/null @@ -1,84 +0,0 @@ -getData('locationId'); - } - - public function setLocationId(?string $locationId): void - { - $this->setData('locationId', $locationId); - } - - public function getPublicationId(): ?string - { - return $this->getData('publicationId'); - } - - public function setPublicationId(?string $publicationId): void - { - $this->setData('publicationId', $publicationId); - } - - public function getLandingPage(): ?string - { - return $this->getData('landingPage'); - } - - public function setLandingPage(?string $landingPage): void - { - $this->setData('landingPage', $landingPage); - } - - public function getFullTextUrl(): ?string - { - return $this->getData('fullTextUrl'); - } - - public function setFullTextUrl(?string $fullTextUrl): void - { - $this->setData('fullTextUrl', $fullTextUrl); - } - - public function getLocationPlatform(): ?string - { - return $this->getData('locationPlatform'); - } - - public function setLocationPlatform(?string $locationPlatform): void - { - $this->setData('locationPlatform', $locationPlatform); - } - - public function getCanonical(): ?bool - { - return $this->getData('canonical'); - } - - public function setCanonical(?bool $canonical): void - { - $this->setData('canonical', $canonical); - } -} diff --git a/src/GraphQL/Models/Me.php b/src/GraphQL/Models/Me.php deleted file mode 100644 index 19e1dc8..0000000 --- a/src/GraphQL/Models/Me.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('priceId'); - } - - public function setPriceId(?string $priceId): void - { - $this->setData('priceId', $priceId); - } - - public function getPublicationId(): ?string - { - return $this->getData('publicationId'); - } - - public function setPublicationId(?string $publicationId): void - { - $this->setData('publicationId', $publicationId); - } - - public function getCurrencyCode(): ?string - { - return $this->getData('currencyCode'); - } - - public function setCurrencyCode(?string $currencyCode): void - { - $this->setData('currencyCode', $currencyCode); - } - - public function getUnitPrice(): ?float - { - return $this->getData('unitPrice'); - } - - public function setUnitPrice(?float $unitPrice): void - { - $this->setData('unitPrice', $unitPrice); - } -} diff --git a/src/GraphQL/Models/Publication.php b/src/GraphQL/Models/Publication.php deleted file mode 100644 index 4ff5a6e..0000000 --- a/src/GraphQL/Models/Publication.php +++ /dev/null @@ -1,171 +0,0 @@ -getData('publicationId'); - } - - public function setPublicationId(?string $publicationId): void - { - $this->setData('publicationId', $publicationId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getPublicationType(): ?string - { - return $this->getData('publicationType'); - } - - public function setPublicationType(?string $publicationType): void - { - $this->setData('publicationType', $publicationType); - } - - public function getIsbn(): ?string - { - return $this->getData('isbn'); - } - - public function setIsbn(?string $isbn): void - { - $this->setData('isbn', $isbn); - } - - public function getWidthMm(): ?float - { - return $this->getData('widthMm'); - } - - public function setWidthMm(?float $widthMm, bool $convert = false): void - { - $this->setData('widthMm', $widthMm); - - if ($convert) { - $this->setData('widthIn', $widthMm ? round($widthMm / 25.4, 2) : null); - } - } - - public function getWidthIn(): ?float - { - return $this->getData('widthIn'); - } - - public function setWidthIn(?float $widthIn, bool $convert = false): void - { - $this->setData('widthIn', $widthIn); - - if ($convert) { - $this->setData('widthMm', $widthIn ? round($widthIn * 25.4, 2) : null); - } - } - - public function getHeightMm(): ?float - { - return $this->getData('heightMm'); - } - - public function setHeightMm(?float $heightMm, bool $convert = false): void - { - $this->setData('heightMm', $heightMm); - - if ($convert) { - $this->setData('heightIn', $heightMm ? round($heightMm / 25.4, 2) : null); - } - } - - public function getHeightIn(): ?float - { - return $this->getData('heightIn'); - } - - public function setHeightIn(?float $heightIn, bool $convert = false): void - { - $this->setData('heightIn', $heightIn); - - if ($convert) { - $this->setData('heightMm', $heightIn ? round($heightIn * 25.4, 2) : null); - } - } - - public function getDepthMm(): ?float - { - return $this->getData('depthMm'); - } - - public function setDepthMm(?float $depthMm, bool $convert = false): void - { - $this->setData('depthMm', $depthMm); - - if ($convert) { - $this->setData('depthIn', $depthMm ? round($depthMm / 25.4, 2) : null); - } - } - - public function getDepthIn(): ?float - { - return $this->getData('depthIn'); - } - - public function setDepthIn(?float $depthIn, bool $convert = false): void - { - $this->setData('depthIn', $depthIn); - - if ($convert) { - $this->setData('depthMm', $depthIn ? round($depthIn * 25.4, 2) : null); - } - } - - public function getWeightG(): ?float - { - return $this->getData('weightG'); - } - - public function setWeightG(?float $weightG, bool $convert = false): void - { - $this->setData('weightG', $weightG); - - if ($convert) { - $this->setData('weightOz', $weightG ? round($weightG / 28.349523125, 4) : null); - } - } - - public function getWeightOz(): ?float - { - return $this->getData('weightOz'); - } - - public function setWeightOz(?float $weightOz, bool $convert = false): void - { - $this->setData('weightOz', $weightOz); - - if ($convert) { - $this->setData('weightG', $weightOz ? round($weightOz * 28.349523125, 4) : null); - } - } -} diff --git a/src/GraphQL/Models/Publisher.php b/src/GraphQL/Models/Publisher.php deleted file mode 100644 index 287d413..0000000 --- a/src/GraphQL/Models/Publisher.php +++ /dev/null @@ -1,46 +0,0 @@ -getData('publisherId'); - } - - public function setPublisherId(?string $publisherId): void - { - $this->setData('publisherId', $publisherId); - } - - public function getPublisherName(): ?string - { - return $this->getData('publisherName'); - } - - public function setPublisherName(?string $publisherName): void - { - $this->setData('publisherName', $publisherName); - } - - public function getPublisherShortName(): ?string - { - return $this->getData('publisherShortname'); - } - - public function setPublisherShortName(?string $publisherShortName): void - { - $this->setData('publisherShortname', $publisherShortName); - } - - public function getPublisherUrl(): ?string - { - return $this->getData('publisherUrl'); - } - - public function setPublisherUrl(?string $publisherUrl): void - { - $this->setData('publisherUrl', $publisherUrl); - } -} diff --git a/src/GraphQL/Models/Reference.php b/src/GraphQL/Models/Reference.php deleted file mode 100644 index 29f134c..0000000 --- a/src/GraphQL/Models/Reference.php +++ /dev/null @@ -1,236 +0,0 @@ -getData('referenceId'); - } - - public function setReferenceId(?string $referenceId): void - { - $this->setData('referenceId', $referenceId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getReferenceOrdinal(): int - { - return $this->getData('referenceOrdinal'); - } - - public function setReferenceOrdinal(int $referenceOrdinal): void - { - $this->setData('referenceOrdinal', $referenceOrdinal); - } - - public function getDoi(): ?string - { - return $this->getData('doi'); - } - - public function setDoi(?string $doi): void - { - $this->setData('doi', $doi); - } - - public function getUnstructuredCitation(): ?string - { - return $this->getData('unstructuredCitation'); - } - - public function setUnstructuredCitation(?string $unstructuredCitation): void - { - $this->setData('unstructuredCitation', $unstructuredCitation); - } - - public function getIssn(): ?string - { - return $this->getData('issn'); - } - - public function setIssn(?string $issn): void - { - $this->setData('issn', $issn); - } - - public function getIsbn(): ?string - { - return $this->getData('isbn'); - } - - public function setIsbn(?string $isbn): void - { - $this->setData('isbn', $isbn); - } - - public function getJournalTitle(): ?string - { - return $this->getData('journalTitle'); - } - - public function setJournalTitle(?string $journalTitle): void - { - $this->setData('journalTitle', $journalTitle); - } - - public function getArticleTitle(): ?string - { - return $this->getData('articleTitle'); - } - - public function setArticleTitle(?string $articleTitle): void - { - $this->setData('articleTitle', $articleTitle); - } - - public function getSeriesTitle(): ?string - { - return $this->getData('seriesTitle'); - } - - public function setSeriesTitle(?string $seriesTitle): void - { - $this->setData('seriesTitle', $seriesTitle); - } - - public function getVolumeTitle(): ?string - { - return $this->getData('volumeTitle'); - } - - public function setVolumeTitle(?string $volumeTitle): void - { - $this->setData('volumeTitle', $volumeTitle); - } - - public function getEdition(): int - { - return $this->getData('edition'); - } - - public function setEdition(int $edition): void - { - $this->setData('edition', $edition); - } - - public function getAuthor(): ?string - { - return $this->getData('author'); - } - - public function setAuthor(?string $author): void - { - $this->setData('author', $author); - } - - public function getVolume(): ?string - { - return $this->getData('volume'); - } - - public function setVolume(?string $volume): void - { - $this->setData('volume', $volume); - } - - public function getIssue(): ?string - { - return $this->getData('issue'); - } - - public function setIssue(?string $issue): void - { - $this->setData('issue', $issue); - } - - public function getFirstPage(): ?string - { - return $this->getData('firstPage'); - } - - public function setFirstPage(?string $firstPage): void - { - $this->setData('firstPage', $firstPage); - } - - public function getComponentNumber(): ?string - { - return $this->getData('componentNumber'); - } - - public function setComponentNumber(?string $componentNumber): void - { - $this->setData('componentNumber', $componentNumber); - } - - public function getStandardDesignator(): ?string - { - return $this->getData('standardDesignator'); - } - - public function setStandardDesignator(?string $standardDesignator): void - { - $this->setData('standardDesignator', $standardDesignator); - } - - public function getStandardsBodyName(): ?string - { - return $this->getData('standardsBodyName'); - } - - public function setStandardsBodyName(?string $standardsBodyName): void - { - $this->setData('standardsBodyName', $standardsBodyName); - } - - public function getStandardsBodyAcronym(): ?string - { - return $this->getData('standardsBodyAcronym'); - } - - public function setStandardsBodyAcronym(?string $standardsBodyAcronym): void - { - $this->setData('standardsBodyAcronym', $standardsBodyAcronym); - } - - public function getUrl(): ?string - { - return $this->getData('url'); - } - - public function setUrl(?string $url): void - { - $this->setData('url', $url); - } - - public function getPublicationDate(): ?string - { - return $this->getData('publicationDate'); - } - - public function setPublicationDate(?string $publicationDate): void - { - $this->setData('publicationDate', $publicationDate); - } - - public function getRetrievalDate(): ?string - { - return $this->getData('retrievalDate'); - } - - public function setRetrievalDate(?string $retrievalDate): void - { - $this->setData('retrievalDate', $retrievalDate); - } -} diff --git a/src/GraphQL/Models/Series.php b/src/GraphQL/Models/Series.php deleted file mode 100644 index 87ff267..0000000 --- a/src/GraphQL/Models/Series.php +++ /dev/null @@ -1,99 +0,0 @@ -getData('seriesId'); - } - - public function setSeriesId(?string $seriesId): void - { - $this->setData('seriesId', $seriesId); - } - - public function getSeriesType(): ?string - { - return $this->getData('seriesType'); - } - - public function setSeriesType(?string $seriesType): void - { - $this->setData('seriesType', $seriesType); - } - - public function getSeriesName(): ?string - { - return $this->getData('seriesName'); - } - - public function setSeriesName(?string $seriesName): void - { - $this->setData('seriesName', $seriesName); - } - - public function getIssnPrint(): ?string - { - return $this->getData('issnPrint'); - } - - public function setIssnPrint(?string $issnPrint): void - { - $this->setData('issnPrint', $issnPrint); - } - - public function getIssnDigital(): ?string - { - return $this->getData('issnDigital'); - } - - public function setIssnDigital(?string $issnDigital): void - { - $this->setData('issnDigital', $issnDigital); - } - - public function getSeriesUrl(): ?string - { - return $this->getData('seriesUrl'); - } - - public function setSeriesUrl(?string $seriesUrl): void - { - $this->setData('seriesUrl', $seriesUrl); - } - - public function getSeriesDescription(): ?string - { - return $this->getData('seriesDescription'); - } - - public function setSeriesDescription(?string $seriesDescription): void - { - $this->setData('seriesDescription', $seriesDescription); - } - - public function getSeriesCfpUrl(): ?string - { - return $this->getData('seriesCfpUrl'); - } - - public function setSeriesCfpUrl(?string $seriesCfpUrl): void - { - $this->setData('seriesCfpUrl', $seriesCfpUrl); - } - - public function getImprintId(): ?string - { - return $this->getData('imprintId'); - } - - public function setImprintId(?string $imprintId): void - { - $this->setData('imprintId', $imprintId); - } -} diff --git a/src/GraphQL/Models/Subject.php b/src/GraphQL/Models/Subject.php deleted file mode 100644 index 6c5e635..0000000 --- a/src/GraphQL/Models/Subject.php +++ /dev/null @@ -1,63 +0,0 @@ -getData('subjectId'); - } - - public function setSubjectId(?string $subjectId): void - { - $this->setData('subjectId', $subjectId); - } - - public function getWorkId(): ?string - { - return $this->getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getSubjectType(): ?string - { - return $this->getData('subjectType'); - } - - public function setSubjectType(?string $subjectType): void - { - $this->setData('subjectType', $subjectType); - } - - public function getSubjectCode(): ?string - { - return $this->getData('subjectCode'); - } - - public function setSubjectCode(?string $subjectCode): void - { - $this->setData('subjectCode', $subjectCode); - } - - public function getSubjectOrdinal(): ?int - { - return $this->getData('subjectOrdinal'); - } - - public function setSubjectOrdinal(?int $subjectOrdinal): void - { - $this->setData('subjectOrdinal', $subjectOrdinal); - } -} diff --git a/src/GraphQL/Models/Title.php b/src/GraphQL/Models/Title.php deleted file mode 100644 index e1204e1..0000000 --- a/src/GraphQL/Models/Title.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('workId'); - } - - public function setWorkId(?string $workId): void - { - $this->setData('workId', $workId); - } - - public function getWorkType(): ?string - { - return $this->getData('workType'); - } - - public function setWorkType(?string $workType): void - { - $this->setData('workType', $workType); - } - - public function getWorkStatus(): ?string - { - return $this->getData('workStatus'); - } - - public function setWorkStatus(?string $workStatus): void - { - $this->setData('workStatus', $workStatus); - } - - public function getFullTitle(): ?string - { - return $this->getData('fullTitle'); - } - - public function setFullTitle(?string $fullTitle): void - { - $this->setData('fullTitle', $fullTitle); - } - - public function getTitle(): ?string - { - return $this->getData('title'); - } - - public function setTitle(?string $title): void - { - $this->setData('title', $title); - } - - public function getSubtitle(): ?string - { - return $this->getData('subtitle'); - } - - public function setSubtitle(?string $subtitle): void - { - $this->setData('subtitle', $subtitle); - } - - public function getReference(): ?string - { - return $this->getData('reference'); - } - - public function setReference(?string $reference): void - { - $this->setData('reference', $reference); - } - - public function getEdition(): ?int - { - return $this->getData('edition'); - } - - public function setEdition(?int $edition): void - { - $this->setData('edition', $edition); - } - - public function getImprintId(): ?string - { - return $this->getData('imprintId'); - } - - public function setImprintId(?string $imprintId): void - { - $this->setData('imprintId', $imprintId); - } - - public function getDoi(): ?string - { - return $this->getData('doi'); - } - - public function setDoi(?string $doi): void - { - $this->setData('doi', $doi); - } - - public function getPublicationDate(): ?string - { - return $this->getData('publicationDate'); - } - - public function setPublicationDate(?string $publicationDate): void - { - $this->setData('publicationDate', $publicationDate); - } - - public function getWithdrawnDate(): ?string - { - return $this->getData('withdrawnDate'); - } - - public function setWithdrawnDate(?string $withdrawnDate): void - { - $this->setData('withdrawnDate', $withdrawnDate); - } - - public function getPlace(): ?string - { - return $this->getData('place'); - } - - public function setPlace(?string $place): void - { - $this->setData('place', $place); - } - - public function getPageCount(): ?int - { - return $this->getData('pageCount'); - } - - public function setPageCount(?int $pageCount): void - { - $this->setData('pageCount', $pageCount); - } - - public function getPageBreakdown(): ?string - { - return $this->getData('pageBreakdown'); - } - - public function setPageBreakdown(?string $pageBreakdown): void - { - $this->setData('pageBreakdown', $pageBreakdown); - } - - public function getImageCount(): ?int - { - return $this->getData('imageCount'); - } - - public function setImageCount(?int $imageCount): void - { - $this->setData('imageCount', $imageCount); - } - - public function getTableCount(): ?int - { - return $this->getData('tableCount'); - } - - public function setTableCount(?int $tableCount): void - { - $this->setData('tableCount', $tableCount); - } - - public function getAudioCount(): ?int - { - return $this->getData('audioCount'); - } - - public function setAudioCount(?int $audioCount): void - { - $this->setData('audioCount', $audioCount); - } - - public function getVideoCount(): ?int - { - return $this->getData('videoCount'); - } - - public function setVideoCount(?int $videoCount): void - { - $this->setData('videoCount', $videoCount); - } - - public function getLicense(): ?string - { - return $this->getData('license'); - } - - public function setLicense(?string $license): void - { - $this->setData('license', $license); - } - - public function getCopyrightHolder(): ?string - { - return $this->getData('copyrightHolder'); - } - - public function setCopyrightHolder(?string $copyrightHolder): void - { - $this->setData('copyrightHolder', $copyrightHolder); - } - - public function getLandingPage(): ?string - { - return $this->getData('landingPage'); - } - - public function setLandingPage(?string $landingPage): void - { - $this->setData('landingPage', $landingPage); - } - - public function getLccn(): ?string - { - return $this->getData('lccn'); - } - - public function setLccn(?string $lccn): void - { - $this->setData('lccn', $lccn); - } - - public function getOclc(): ?string - { - return $this->getData('oclc'); - } - - public function setOclc(?string $oclc): void - { - $this->setData('oclc', $oclc); - } - - public function getShortAbstract(): ?string - { - return $this->getData('shortAbstract'); - } - - public function setShortAbstract(?string $shortAbstract): void - { - $this->setData('shortAbstract', $shortAbstract); - } - - public function getLongAbstract(): ?string - { - return $this->getData('longAbstract'); - } - - public function setLongAbstract(?string $longAbstract): void - { - $this->setData('longAbstract', $longAbstract); - } - - public function getGeneralNote(): ?string - { - return $this->getData('generalNote'); - } - - public function setGeneralNote(?string $generalNote): void - { - $this->setData('generalNote', $generalNote); - } - - public function getBibliographyNote(): ?string - { - return $this->getData('bibliographyNote'); - } - - public function setBibliographyNote(?string $bibliographyNote): void - { - $this->setData('bibliographyNote', $bibliographyNote); - } - - public function getToc(): ?string - { - return $this->getData('toc'); - } - - public function setToc(?string $toc): void - { - $this->setData('toc', $toc); - } - - public function getCoverUrl(): ?string - { - return $this->getData('coverUrl'); - } - - public function setCoverUrl(?string $coverUrl): void - { - $this->setData('coverUrl', $coverUrl); - } - - public function getCoverCaption(): ?string - { - return $this->getData('coverCaption'); - } - - public function setCoverCaption(?string $coverCaption): void - { - $this->setData('coverCaption', $coverCaption); - } - - public function getFirstPage(): ?string - { - return $this->getData('firstPage'); - } - - public function setFirstPage(?string $firstPage): void - { - $this->setData('firstPage', $firstPage); - } - - public function getLastPage(): ?string - { - return $this->getData('lastPage'); - } - - public function setLastPage(?string $lastPage): void - { - $this->setData('lastPage', $lastPage); - } - - public function getPageInterval(): ?string - { - return $this->getData('pageInterval'); - } - - public function setPageInterval(?string $pageInterval): void - { - $this->setData('pageInterval', $pageInterval); - } -} diff --git a/src/GraphQL/Models/WorkFeaturedVideo.php b/src/GraphQL/Models/WorkFeaturedVideo.php deleted file mode 100644 index 5ca3436..0000000 --- a/src/GraphQL/Models/WorkFeaturedVideo.php +++ /dev/null @@ -1,7 +0,0 @@ -getData('workRelationId'); - } - - public function setWorkRelationId(?string $workRelationId): void - { - $this->setData('workRelationId', $workRelationId); - } - - public function getRelatorWorkId(): ?string - { - return $this->getData('relatorWorkId'); - } - - public function setRelatorWorkId(?string $relatorWorkId): void - { - $this->setData('relatorWorkId', $relatorWorkId); - } - - public function getRelatedWorkId(): ?string - { - return $this->getData('relatedWorkId'); - } - - public function setRelatedWorkId(?string $relatedWorkId): void - { - $this->setData('relatedWorkId', $relatedWorkId); - } - - public function getRelationType(): ?string - { - return $this->getData('relationType'); - } - - public function setRelationType(?string $relationType): void - { - $this->setData('relationType', $relationType); - } - - public function getRelationOrdinal(): ?int - { - return $this->getData('relationOrdinal'); - } - - public function setRelationOrdinal(?int $relationOrdinal): void - { - $this->setData('relationOrdinal', $relationOrdinal); - } -} diff --git a/src/GraphQL/MutationBuilder.php b/src/GraphQL/MutationBuilder.php deleted file mode 100644 index 4b9de38..0000000 --- a/src/GraphQL/MutationBuilder.php +++ /dev/null @@ -1,989 +0,0 @@ - $value !== ''); - $mutationStr = << true]; - $uploadFields = [ - 'declaredMimeType' => false, - 'declaredExtension' => false, - 'declaredSha256' => false, - ]; - - $mapping = [ - 'createAdditionalResource' => [ - 'fields' => [ - 'workId' => false, - 'title' => false, - 'description' => false, - 'attribution' => false, - 'resourceType' => true, - 'doi' => false, - 'handle' => false, - 'url' => false, - 'date' => false, - 'resourceOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'workResourceId', - ], - 'updateAdditionalResource' => [ - 'fields' => [ - 'additionalResourceId' => false, - 'workId' => false, - 'title' => false, - 'description' => false, - 'attribution' => false, - 'resourceType' => true, - 'doi' => false, - 'handle' => false, - 'url' => false, - 'date' => false, - 'resourceOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'workResourceId', - ], - 'deleteAdditionalResource' => [ - 'fields' => ['additionalResourceId' => false], - 'nested' => false, - 'returnValue' => 'workResourceId', - ], - 'createAffiliation' => [ - 'fields' => [ - 'contributionId' => false, - 'institutionId' => false, - 'affiliationOrdinal' => false, - 'position' => false, - ], - 'returnValue' => 'affiliationId', - ], - 'updateAffiliation' => [ - 'fields' => [ - 'affiliationId' => false, - 'contributionId' => false, - 'institutionId' => false, - 'affiliationOrdinal' => false, - 'position' => false, - ], - 'returnValue' => 'affiliationId', - ], - 'deleteAffiliation' => [ - 'fields' => ['affiliationId' => false], - 'nested' => false, - 'returnValue' => 'affiliationId', - ], - 'createAbstract' => [ - 'fields' => [ - 'workId' => false, - 'content' => false, - 'localeCode' => true, - 'abstractType' => true, - 'canonical' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'abstractId', - ], - 'updateAbstract' => [ - 'fields' => [ - 'abstractId' => false, - 'workId' => false, - 'content' => false, - 'localeCode' => true, - 'abstractType' => true, - 'canonical' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'abstractId', - ], - 'deleteAbstract' => [ - 'fields' => ['abstractId' => false], - 'nested' => false, - 'returnValue' => 'abstractId', - ], - 'createAward' => [ - 'fields' => [ - 'workId' => false, - 'title' => false, - 'url' => false, - 'category' => false, - 'year' => false, - 'jury' => false, - 'country' => true, - 'prizeStatement' => false, - 'role' => true, - 'awardOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'awardId', - ], - 'updateAward' => [ - 'fields' => [ - 'awardId' => false, - 'workId' => false, - 'title' => false, - 'url' => false, - 'category' => false, - 'year' => false, - 'jury' => false, - 'country' => true, - 'prizeStatement' => false, - 'role' => true, - 'awardOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'awardId', - ], - 'deleteAward' => [ - 'fields' => ['awardId' => false], - 'nested' => false, - 'returnValue' => 'awardId', - ], - 'createBiography' => [ - 'fields' => [ - 'contributionId' => false, - 'content' => false, - 'canonical' => false, - 'localeCode' => true, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'biographyId', - ], - 'updateBiography' => [ - 'fields' => [ - 'biographyId' => false, - 'contributionId' => false, - 'content' => false, - 'canonical' => false, - 'localeCode' => true, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'biographyId', - ], - 'deleteBiography' => [ - 'fields' => ['biographyId' => false], - 'nested' => false, - 'returnValue' => 'biographyId', - ], - 'createBookReview' => [ - 'fields' => [ - 'workId' => false, - 'title' => false, - 'authorName' => false, - 'reviewerOrcid' => false, - 'reviewerInstitutionId' => false, - 'url' => false, - 'doi' => false, - 'reviewDate' => false, - 'journalName' => false, - 'journalVolume' => false, - 'journalNumber' => false, - 'journalIssn' => false, - 'pageRange' => false, - 'text' => false, - 'reviewOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'bookReviewId', - ], - 'updateBookReview' => [ - 'fields' => [ - 'bookReviewId' => false, - 'workId' => false, - 'title' => false, - 'authorName' => false, - 'reviewerOrcid' => false, - 'reviewerInstitutionId' => false, - 'url' => false, - 'doi' => false, - 'reviewDate' => false, - 'journalName' => false, - 'journalVolume' => false, - 'journalNumber' => false, - 'journalIssn' => false, - 'pageRange' => false, - 'text' => false, - 'reviewOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'bookReviewId', - ], - 'deleteBookReview' => [ - 'fields' => ['bookReviewId' => false], - 'nested' => false, - 'returnValue' => 'bookReviewId', - ], - 'createContact' => [ - 'fields' => [ - 'publisherId' => false, - 'contactType' => true, - 'email' => false, - ], - 'returnValue' => 'contactId', - ], - 'updateContact' => [ - 'fields' => [ - 'contactId' => false, - 'publisherId' => false, - 'contactType' => true, - 'email' => false, - ], - 'returnValue' => 'contactId', - ], - 'deleteContact' => [ - 'fields' => ['contactId' => false], - 'nested' => false, - 'returnValue' => 'contactId', - ], - 'createContribution' => [ - 'fields' => [ - 'workId' => false, - 'contributorId' => false, - 'contributionType' => true, - 'mainContribution' => false, - 'contributionOrdinal' => false, - 'firstName' => false, - 'lastName' => false, - 'fullName' => false, - ], - 'returnValue' => 'contributionId', - ], - 'updateContribution' => [ - 'fields' => [ - 'contributionId' => false, - 'workId' => false, - 'contributorId' => false, - 'contributionType' => true, - 'mainContribution' => false, - 'contributionOrdinal' => false, - 'firstName' => false, - 'lastName' => false, - 'fullName' => false, - ], - 'returnValue' => 'contributionId', - ], - 'deleteContribution' => [ - 'fields' => ['contributionId' => false], - 'nested' => false, - 'returnValue' => 'contributionId', - ], - 'createContributor' => [ - 'fields' => [ - 'firstName' => false, - 'lastName' => false, - 'fullName' => false, - 'orcid' => false, - 'website' => false, - ], - 'returnValue' => 'contributorId', - ], - 'updateContributor' => [ - 'fields' => [ - 'contributorId' => false, - 'firstName' => false, - 'lastName' => false, - 'fullName' => false, - 'orcid' => false, - 'website' => false, - ], - 'returnValue' => 'contributorId', - ], - 'deleteContributor' => [ - 'fields' => ['contributorId' => false], - 'nested' => false, - 'returnValue' => 'contributorId', - ], - 'createEndorsement' => [ - 'fields' => [ - 'workId' => false, - 'authorName' => false, - 'authorRole' => false, - 'authorOrcid' => false, - 'authorInstitutionId' => false, - 'url' => false, - 'text' => false, - 'endorsementOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'endorsementId', - ], - 'updateEndorsement' => [ - 'fields' => [ - 'endorsementId' => false, - 'workId' => false, - 'authorName' => false, - 'authorRole' => false, - 'authorOrcid' => false, - 'authorInstitutionId' => false, - 'url' => false, - 'text' => false, - 'endorsementOrdinal' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'endorsementId', - ], - 'deleteEndorsement' => [ - 'fields' => ['endorsementId' => false], - 'nested' => false, - 'returnValue' => 'endorsementId', - ], - 'createFunding' => [ - 'fields' => [ - 'workId' => false, - 'institutionId' => false, - 'program' => false, - 'projectName' => false, - 'projectShortname' => false, - 'grantNumber' => false, - ], - 'returnValue' => 'fundingId', - ], - 'updateFunding' => [ - 'fields' => [ - 'fundingId' => false, - 'workId' => false, - 'institutionId' => false, - 'program' => false, - 'projectName' => false, - 'projectShortname' => false, - 'grantNumber' => false, - ], - 'returnValue' => 'fundingId', - ], - 'deleteFunding' => [ - 'fields' => ['fundingId' => false], - 'nested' => false, - 'returnValue' => 'fundingId', - ], - 'createImprint' => [ - 'fields' => [ - 'publisherId' => false, - 'imprintName' => false, - 'imprintUrl' => false, - 'crossmarkDoi' => false, - 's3Bucket' => false, - 'cdnDomain' => false, - 'cloudfrontDistId' => false, - 'defaultCurrency' => true, - 'defaultPlace' => false, - 'defaultLocale' => true, - ], - 'returnValue' => 'imprintId', - ], - 'updateImprint' => [ - 'fields' => [ - 'imprintId' => false, - 'publisherId' => false, - 'imprintName' => false, - 'imprintUrl' => false, - 'crossmarkDoi' => false, - 's3Bucket' => false, - 'cdnDomain' => false, - 'cloudfrontDistId' => false, - 'defaultCurrency' => true, - 'defaultPlace' => false, - 'defaultLocale' => true, - ], - 'returnValue' => 'imprintId', - ], - 'deleteImprint' => [ - 'fields' => ['imprintId' => false], - 'nested' => false, - 'returnValue' => 'imprintId', - ], - 'createInstitution' => [ - 'fields' => [ - 'institutionName' => false, - 'institutionDoi' => false, - 'countryCode' => true, - 'ror' => false, - ], - 'returnValue' => 'institutionId', - ], - 'updateInstitution' => [ - 'fields' => [ - 'institutionId' => false, - 'institutionName' => false, - 'institutionDoi' => false, - 'countryCode' => true, - 'ror' => false, - ], - 'returnValue' => 'institutionId', - ], - 'deleteInstitution' => [ - 'fields' => ['institutionId' => false], - 'nested' => false, - 'returnValue' => 'institutionId', - ], - 'createIssue' => [ - 'fields' => [ - 'seriesId' => false, - 'workId' => false, - 'issueOrdinal' => false, - 'issueNumber' => false, - ], - 'returnValue' => 'issueId', - ], - 'updateIssue' => [ - 'fields' => [ - 'issueId' => false, - 'seriesId' => false, - 'workId' => false, - 'issueOrdinal' => false, - 'issueNumber' => false, - ], - 'returnValue' => 'issueId', - ], - 'deleteIssue' => [ - 'fields' => ['issueId' => false], - 'nested' => false, - 'returnValue' => 'issueId', - ], - 'createLanguage' => [ - 'fields' => [ - 'workId' => false, - 'languageCode' => true, - 'languageRelation' => true, - ], - 'returnValue' => 'languageId', - ], - 'updateLanguage' => [ - 'fields' => [ - 'languageId' => false, - 'workId' => false, - 'languageCode' => true, - 'languageRelation' => true, - ], - 'returnValue' => 'languageId', - ], - 'deleteLanguage' => [ - 'fields' => ['languageId' => false], - 'nested' => false, - 'returnValue' => 'languageId', - ], - 'createLocation' => [ - 'fields' => [ - 'publicationId' => false, - 'locationPlatform' => true, - 'canonical' => false, - 'landingPage' => false, - 'fullTextUrl' => false, - ], - 'returnValue' => 'locationId', - ], - 'updateLocation' => [ - 'fields' => [ - 'locationId' => false, - 'publicationId' => false, - 'locationPlatform' => true, - 'canonical' => false, - 'landingPage' => false, - 'fullTextUrl' => false, - ], - 'returnValue' => 'locationId', - ], - 'deleteLocation' => [ - 'fields' => ['locationId' => false], - 'nested' => false, - 'returnValue' => 'locationId', - ], - 'createPrice' => [ - 'fields' => [ - 'publicationId' => false, - 'currencyCode' => true, - 'unitPrice' => false, - ], - 'returnValue' => 'priceId', - ], - 'updatePrice' => [ - 'fields' => [ - 'priceId' => false, - 'publicationId' => false, - 'currencyCode' => true, - 'unitPrice' => false, - ], - 'returnValue' => 'priceId', - ], - 'deletePrice' => [ - 'fields' => ['priceId' => false], - 'nested' => false, - 'returnValue' => 'priceId', - ], - 'createPublication' => [ - 'fields' => [ - 'publicationType' => true, - 'workId' => false, - 'depthMm' => false, - 'depthIn' => false, - 'widthMm' => false, - 'widthIn' => false, - 'heightMm' => false, - 'heightIn' => false, - 'weightG' => false, - 'weightOz' => false, - 'isbn' => false, - 'accessibilityStandard' => true, - 'accessibilityAdditionalStandard' => true, - 'accessibilityException' => true, - 'accessibilityReportUrl' => false, - ], - 'returnValue' => 'publicationId', - ], - 'updatePublication' => [ - 'fields' => [ - 'publicationId' => false, - 'publicationType' => true, - 'workId' => false, - 'depthMm' => false, - 'depthIn' => false, - 'widthMm' => false, - 'widthIn' => false, - 'heightMm' => false, - 'heightIn' => false, - 'weightG' => false, - 'weightOz' => false, - 'isbn' => false, - 'accessibilityStandard' => true, - 'accessibilityAdditionalStandard' => true, - 'accessibilityException' => true, - 'accessibilityReportUrl' => false, - ], - 'returnValue' => 'publicationId', - ], - 'deletePublication' => [ - 'fields' => ['publicationId' => false], - 'nested' => false, - 'returnValue' => 'publicationId', - ], - 'createPublisher' => [ - 'fields' => [ - 'publisherName' => false, - 'publisherShortname' => false, - 'publisherUrl' => false, - 'accessibilityStatement' => false, - 'accessibilityReportUrl' => false, - ], - 'returnValue' => 'publisherId', - ], - 'updatePublisher' => [ - 'fields' => [ - 'publisherId' => false, - 'publisherName' => false, - 'publisherShortname' => false, - 'publisherUrl' => false, - 'accessibilityStatement' => false, - 'accessibilityReportUrl' => false, - ], - 'returnValue' => 'publisherId', - ], - 'deletePublisher' => [ - 'fields' => ['publisherId' => false], - 'nested' => false, - 'returnValue' => 'publisherId', - ], - 'createReference' => [ - 'fields' => [ - 'workId' => false, - 'referenceOrdinal' => false, - 'doi' => false, - 'unstructuredCitation' => false, - 'issn' => false, - 'isbn' => false, - 'journalTitle' => false, - 'articleTitle' => false, - 'seriesTitle' => false, - 'volumeTitle' => false, - 'edition' => false, - 'author' => false, - 'volume' => false, - 'issue' => false, - 'firstPage' => false, - 'componentNumber' => false, - 'standardDesignator' => false, - 'standardsBodyName' => false, - 'standardsBodyAcronym' => false, - 'url' => false, - 'publicationDate' => false, - 'retrievalDate' => false, - ], - 'returnValue' => 'referenceId', - ], - 'updateReference' => [ - 'fields' => [ - 'referenceId' => false, - 'workId' => false, - 'referenceOrdinal' => false, - 'doi' => false, - 'unstructuredCitation' => false, - 'issn' => false, - 'isbn' => false, - 'journalTitle' => false, - 'articleTitle' => false, - 'seriesTitle' => false, - 'volumeTitle' => false, - 'edition' => false, - 'author' => false, - 'volume' => false, - 'issue' => false, - 'firstPage' => false, - 'componentNumber' => false, - 'standardDesignator' => false, - 'standardsBodyName' => false, - 'standardsBodyAcronym' => false, - 'url' => false, - 'publicationDate' => false, - 'retrievalDate' => false, - ], - 'returnValue' => 'referenceId', - ], - 'deleteReference' => [ - 'fields' => ['referenceId' => false], - 'nested' => false, - 'returnValue' => 'referenceId', - ], - 'createSeries' => [ - 'fields' => [ - 'imprintId' => false, - 'seriesType' => true, - 'seriesName' => false, - 'issnPrint' => false, - 'issnDigital' => false, - 'seriesUrl' => false, - 'seriesDescription' => false, - 'seriesCfpUrl' => false, - ], - 'returnValue' => 'seriesId', - ], - 'updateSeries' => [ - 'fields' => [ - 'seriesId' => false, - 'imprintId' => false, - 'seriesType' => true, - 'seriesName' => false, - 'issnPrint' => false, - 'issnDigital' => false, - 'seriesUrl' => false, - 'seriesDescription' => false, - 'seriesCfpUrl' => false, - ], - 'returnValue' => 'seriesId', - ], - 'deleteSeries' => [ - 'fields' => ['seriesId' => false], - 'nested' => false, - 'returnValue' => 'seriesId', - ], - 'createSubject' => [ - 'fields' => [ - 'workId' => false, - 'subjectType' => true, - 'subjectCode' => false, - 'subjectOrdinal' => false, - ], - 'returnValue' => 'subjectId', - ], - 'updateSubject' => [ - 'fields' => [ - 'subjectId' => false, - 'workId' => false, - 'subjectType' => true, - 'subjectCode' => false, - 'subjectOrdinal' => false, - ], - 'returnValue' => 'subjectId', - ], - 'deleteSubject' => [ - 'fields' => ['subjectId' => false], - 'nested' => false, - 'returnValue' => 'subjectId', - ], - 'createTitle' => [ - 'fields' => [ - 'workId' => false, - 'localeCode' => true, - 'fullTitle' => false, - 'title' => false, - 'subtitle' => false, - 'canonical' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'titleId', - ], - 'updateTitle' => [ - 'fields' => [ - 'titleId' => false, - 'workId' => false, - 'localeCode' => true, - 'fullTitle' => false, - 'title' => false, - 'subtitle' => false, - 'canonical' => false, - ], - 'extraArgs' => $markupArg, - 'returnValue' => 'titleId', - ], - 'deleteTitle' => [ - 'fields' => ['titleId' => false], - 'nested' => false, - 'returnValue' => 'titleId', - ], - 'createWork' => [ - 'fields' => [ - 'workType' => true, - 'workStatus' => true, - 'reference' => false, - 'edition' => false, - 'imprintId' => false, - 'doi' => false, - 'publicationDate' => false, - 'withdrawnDate' => false, - 'place' => false, - 'pageCount' => false, - 'pageBreakdown' => false, - 'imageCount' => false, - 'tableCount' => false, - 'audioCount' => false, - 'videoCount' => false, - 'license' => false, - 'copyrightHolder' => false, - 'landingPage' => false, - 'lccn' => false, - 'oclc' => false, - 'generalNote' => false, - 'bibliographyNote' => false, - 'toc' => false, - 'resourcesDescription' => false, - 'coverUrl' => false, - 'coverCaption' => false, - 'firstPage' => false, - 'lastPage' => false, - 'pageInterval' => false, - ], - 'returnValue' => 'workId', - ], - 'updateWork' => [ - 'fields' => [ - 'workId' => false, - 'workType' => true, - 'workStatus' => true, - 'reference' => false, - 'edition' => false, - 'imprintId' => false, - 'doi' => false, - 'publicationDate' => false, - 'withdrawnDate' => false, - 'place' => false, - 'pageCount' => false, - 'pageBreakdown' => false, - 'imageCount' => false, - 'tableCount' => false, - 'audioCount' => false, - 'videoCount' => false, - 'license' => false, - 'copyrightHolder' => false, - 'landingPage' => false, - 'lccn' => false, - 'oclc' => false, - 'generalNote' => false, - 'bibliographyNote' => false, - 'toc' => false, - 'resourcesDescription' => false, - 'coverUrl' => false, - 'coverCaption' => false, - 'firstPage' => false, - 'lastPage' => false, - 'pageInterval' => false, - ], - 'returnValue' => 'workId', - ], - 'deleteWork' => [ - 'fields' => ['workId' => false], - 'nested' => false, - 'returnValue' => 'workId', - ], - 'createWorkFeaturedVideo' => [ - 'fields' => [ - 'workId' => false, - 'title' => false, - 'url' => false, - 'width' => false, - 'height' => false, - ], - 'returnValue' => 'workFeaturedVideoId', - ], - 'updateWorkFeaturedVideo' => [ - 'fields' => [ - 'workFeaturedVideoId' => false, - 'workId' => false, - 'title' => false, - 'url' => false, - 'width' => false, - 'height' => false, - ], - 'returnValue' => 'workFeaturedVideoId', - ], - 'deleteWorkFeaturedVideo' => [ - 'fields' => ['workFeaturedVideoId' => false], - 'nested' => false, - 'returnValue' => 'workFeaturedVideoId', - ], - 'createWorkRelation' => [ - 'fields' => [ - 'relatorWorkId' => false, - 'relatedWorkId' => false, - 'relationType' => true, - 'relationOrdinal' => false, - ], - 'returnValue' => 'workRelationId', - ], - 'updateWorkRelation' => [ - 'fields' => [ - 'workRelationId' => false, - 'relatorWorkId' => false, - 'relatedWorkId' => false, - 'relationType' => true, - 'relationOrdinal' => false, - ], - 'returnValue' => 'workRelationId', - ], - 'deleteWorkRelation' => [ - 'fields' => ['workRelationId' => false], - 'nested' => false, - 'returnValue' => 'workRelationId', - ], - 'moveAffiliation' => [ - 'fields' => ['affiliationId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'affiliationId', - ], - 'moveContribution' => [ - 'fields' => ['contributionId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'contributionId', - ], - 'moveIssue' => [ - 'fields' => ['issueId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'issueId', - ], - 'moveReference' => [ - 'fields' => ['referenceId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'referenceId', - ], - 'moveAdditionalResource' => [ - 'fields' => ['additionalResourceId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'workResourceId', - ], - 'moveAward' => [ - 'fields' => ['awardId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'awardId', - ], - 'moveEndorsement' => [ - 'fields' => ['endorsementId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'endorsementId', - ], - 'moveBookReview' => [ - 'fields' => ['bookReviewId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'bookReviewId', - ], - 'moveSubject' => [ - 'fields' => ['subjectId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'subjectId', - ], - 'moveWorkRelation' => [ - 'fields' => ['workRelationId' => false, 'newOrdinal' => false], - 'nested' => false, - 'returnValue' => 'workRelationId', - ], - 'initPublicationFileUpload' => [ - 'fields' => ['publicationId' => false] + $uploadFields, - 'returnValue' => 'fileUploadId', - ], - 'initFrontcoverFileUpload' => [ - 'fields' => ['workId' => false] + $uploadFields, - 'returnValue' => 'fileUploadId', - ], - 'initAdditionalResourceFileUpload' => [ - 'fields' => ['additionalResourceId' => false] + $uploadFields, - 'returnValue' => 'fileUploadId', - ], - 'initWorkFeaturedVideoFileUpload' => [ - 'fields' => ['workFeaturedVideoId' => false] + $uploadFields, - 'returnValue' => 'fileUploadId', - ], - 'completeFileUpload' => [ - 'fields' => ['fileUploadId' => false], - 'returnValue' => 'fileId', - ], - ]; - - return $mapping[$mutationName] ?? null; - } - - private static function prepareData(array $mutationFields, array $fieldsData): string - { - $sanitizedFields = []; - foreach ($mutationFields as $key => $raw) { - $value = $fieldsData[$key] ?? null; - if ($value === null || $value === '') { - continue; - } - $sanitizedFields[] = $key . ': ' . ($raw ? $value : json_encode($value)); - } - - return implode(', ', $sanitizedFields); - } -} diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php new file mode 100644 index 0000000..80f7248 --- /dev/null +++ b/src/GraphQL/OperationRequest.php @@ -0,0 +1,133 @@ +operationType = $operationType; + $this->field = $field; + $this->arguments = $arguments; + $this->selection = $selection; + } + + public static function enum(string $value): EnumValue + { + return new EnumValue($value); + } + + public function getField(): FieldDefinition + { + return $this->field; + } + + public function getSelection(): array + { + return $this->selection; + } + + public function toGraphQL(): string + { + $arguments = $this->formatArguments($this->arguments); + $fieldLine = $this->field->getName() . ($arguments === '' ? '' : '(' . $arguments . ')'); + $selection = $this->formatSelection($this->selection); + + if ($selection !== '') { + $fieldLine .= " {\n" . $selection . "\n }"; + } + + return $this->operationType . " {\n " . $fieldLine . "\n}"; + } + + private function formatArguments(array $arguments): string + { + $formatted = []; + + foreach ($arguments as $name => $value) { + if ($value === null) { + continue; + } + + $formatted[] = $name . ': ' . $this->formatValue($value); + } + + return implode(', ', $formatted); + } + + private function formatSelection(array $selection): string + { + $lines = []; + + foreach ($selection as $key => $value) { + if (is_array($value)) { + $lines[] = ' ' . $key . " {\n" . $this->indent($this->formatSelection($value), 8) . "\n }"; + continue; + } + + $lines[] = ' ' . $value; + } + + return implode("\n", $lines); + } + + private function formatValue($value): string + { + if ($value instanceof EnumValue) { + return (string) $value; + } + + if (is_array($value)) { + if ($this->isList($value)) { + return '[' . implode(', ', array_map([$this, 'formatValue'], $value)) . ']'; + } + + $fields = []; + foreach ($value as $field => $fieldValue) { + if ($fieldValue !== null) { + $fields[] = $field . ': ' . $this->formatValue($fieldValue); + } + } + + return '{' . implode(', ', $fields) . '}'; + } + + if (is_bool($value)) { + return $value ? 'true' : 'false'; + } + + if (is_int($value) || is_float($value)) { + return (string) $value; + } + + return json_encode((string) $value, JSON_UNESCAPED_UNICODE); + } + + private function isList(array $value): bool + { + if ($value === []) { + return true; + } + + return array_keys($value) === range(0, count($value) - 1); + } + + private function indent(string $value, int $spaces): string + { + return str_replace("\n", "\n" . str_repeat(' ', $spaces), $value); + } +} diff --git a/src/GraphQL/Queries/AbstractQuery.php b/src/GraphQL/Queries/AbstractQuery.php deleted file mode 100644 index 6f70567..0000000 --- a/src/GraphQL/Queries/AbstractQuery.php +++ /dev/null @@ -1,17 +0,0 @@ -getFieldsFragment(); - return <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQueryWithRestrictedFields( - <<<'GQL' - query($imprintId: Uuid!) { - imprint(imprintId: $imprintId) { - ...imprintFields - } - } - GQL, - true - ); - } - - public function getManyQuery(): string - { - return $this->getManyQueryWithRestrictedFields(false); - } - - public function getManyQueryWithRestrictedFields(bool $includeRestrictedFields = false): string - { - return $this->buildQueryWithRestrictedFields( - <<<'GQL' - query( - $limit: Int = 100 - $offset: Int = 0 - $filter: String = "" - $field: ImprintField = IMPRINT_NAME - $direction: Direction = ASC - $publishers: [Uuid!] = [] - ) { - imprints( - limit: $limit - offset: $offset - filter: $filter - order: { - field: $field - direction: $direction - } - publishers: $publishers - ) { - ...imprintFields - } - } - GQL, - $includeRestrictedFields - ); - } - - public function getCountQuery(): string - { - return <<getFieldsFragmentWithRestrictedFields(true); - } - - protected function getFieldsFragmentWithRestrictedFields(bool $includeRestrictedFields = false): string - { - $restrictedFields = $includeRestrictedFields ? <<getFieldsFragmentWithRestrictedFields($includeRestrictedFields); - return <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - <<buildQuery( - << (new FileQuery())->getQuery(), - 'me' => (new MeQuery())->getQuery(), - ] - ); - } - - private static function mapQuery(AbstractQuery $queryObject, string $name): array - { - return [ - $name => $queryObject->getQuery(), - self::getPluralQueryName($name) => $queryObject->getManyQuery(), - $name . 'Count' => $queryObject->getCountQuery(), - ]; - } - - private static function mapWorkQueries(WorkQuery $workQuery): array - { - return [ - 'books' => $workQuery->getManyQuery('book'), - 'bookByDoi' => $workQuery->getByDoiQuery('book'), - 'bookCount' => $workQuery->getCountQuery('book'), - 'chapters' => $workQuery->getManyQuery('chapter'), - 'chapterByDoi' => $workQuery->getByDoiQuery('chapter'), - 'chapterCount' => $workQuery->getCountQuery('chapter'), - 'work' => $workQuery->getQuery(), - 'works' => $workQuery->getManyQuery(), - 'workByDoi' => $workQuery->getByDoiQuery(), - 'workCount' => $workQuery->getCountQuery(), - ]; - } - - private static function mapMarkupQuery(AbstractQuery $queryObject, string $name): array - { - return [ - $name => $queryObject->getQuery(), - self::getPluralQueryName($name) => $queryObject->getManyQuery(), - ]; - } - - private static function getPluralQueryName(string $name): string - { - switch ($name) { - case 'biography': - return 'biographies'; - case 'series': - return 'serieses'; - default: - return $name . 's'; - } - } -} diff --git a/src/GraphQL/Request.php b/src/GraphQL/Request.php index 1952371..4770c80 100644 --- a/src/GraphQL/Request.php +++ b/src/GraphQL/Request.php @@ -33,17 +33,22 @@ public function runQuery(string $query, ?array $variables = null, ?string $token $options['headers']['Authorization'] = 'Bearer ' . $token; } - return $this->execute('POST', 'graphql', $options); + return $this->execute('POST', 'graphql', $options, $query, $variables); } - public function execute(string $method, string $endpoint, array $options = []): Response - { + public function execute( + string $method, + string $endpoint, + array $options = [], + ?string $query = null, + ?array $variables = null + ): Response { try { $httpResponse = $this->httpClient->request($method, $endpoint, $options); } catch (ClientException $exception) { $httpResponse = $exception->getResponse(); } - return new Response($httpResponse); + return new Response($httpResponse, $query, $variables); } } diff --git a/src/GraphQL/Response.php b/src/GraphQL/Response.php index 3265b95..4c09c5f 100644 --- a/src/GraphQL/Response.php +++ b/src/GraphQL/Response.php @@ -12,13 +12,19 @@ class Response private GuzzleResponse $previousResponse; - public function __construct(ResponseInterface $guzzleResponse) + private ?string $query; + + private ?array $variables; + + public function __construct(ResponseInterface $guzzleResponse, ?string $query = null, ?array $variables = null) { $this->previousResponse = $guzzleResponse; $this->body = $guzzleResponse->getBody()->getContents(); + $this->query = $query; + $this->variables = $variables; if ($error = $this->getErrors()) { - throw new QueryException($error); + throw new QueryException($error, $this->query, $this->variables); } } diff --git a/tests/Exception/QueryExceptionTest.php b/tests/Exception/QueryExceptionTest.php index 5a84925..a9a0a0e 100644 --- a/tests/Exception/QueryExceptionTest.php +++ b/tests/Exception/QueryExceptionTest.php @@ -23,4 +23,16 @@ public function testGetExceptionError(): void $this->assertSame($error, $queryException->getDetails()); $this->assertSame($error['message'], $queryException->getMessage()); } + + public function testGetQueryAndVariables(): void + { + $error = ['message' => 'some syntax error']; + $query = 'query { books { workId } }'; + $variables = ['limit' => 1]; + + $queryException = new QueryException($error, $query, $variables); + + $this->assertSame($query, $queryException->getQuery()); + $this->assertSame($variables, $queryException->getVariables()); + } } diff --git a/tests/GraphQL/ClientTest.php b/tests/GraphQL/ClientTest.php index 0dd1951..d8358d7 100644 --- a/tests/GraphQL/ClientTest.php +++ b/tests/GraphQL/ClientTest.php @@ -7,16 +7,9 @@ use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use ThothApi\GraphQL\Client; -use ThothApi\Tests\GraphQL\Concerns\HasClientMutationTests; -use ThothApi\Tests\GraphQL\Concerns\HasClientQueryTests; -use ThothApi\Tests\GraphQL\Concerns\HasClientSchemaSyncTests; final class ClientTest extends TestCase { - use HasClientMutationTests; - use HasClientQueryTests; - use HasClientSchemaSyncTests; - private MockHandler $mockHandler; private Client $client; diff --git a/tests/GraphQL/Concerns/HasClientMutationTests.php b/tests/GraphQL/Concerns/HasClientMutationTests.php deleted file mode 100644 index 5347bff..0000000 --- a/tests/GraphQL/Concerns/HasClientMutationTests.php +++ /dev/null @@ -1,773 +0,0 @@ -mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createAffiliation' => [ - 'affiliationId' => 'e435b256-681c-4118-a3b5-bba22cb6fe7f' - ] - ] - ]))); - - $affiliation = new Affiliation(); - $result = $this->client->createAffiliation($affiliation); - $this->assertSame('e435b256-681c-4118-a3b5-bba22cb6fe7f', $result); - } - - public function testUpdateAffiliation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateAffiliation' => [ - 'affiliationId' => 'e435b256-681c-4118-a3b5-bba22cb6fe7f' - ] - ] - ]))); - - $affiliation = new Affiliation(); - $result = $this->client->updateAffiliation($affiliation); - $this->assertSame('e435b256-681c-4118-a3b5-bba22cb6fe7f', $result); - } - - public function testDeleteAffiliation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteAffiliation' => [ - 'affiliationId' => 'e435b256-681c-4118-a3b5-bba22cb6fe7f' - ] - ] - ]))); - - $result = $this->client->deleteAffiliation('e435b256-681c-4118-a3b5-bba22cb6fe7f'); - $this->assertSame('e435b256-681c-4118-a3b5-bba22cb6fe7f', $result); - } - - public function testCreateContribution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createContribution' => [ - 'contributionId' => '5448ca99-ae7d-4347-9170-b8ffa067ebbf' - ] - ] - ]))); - - $contribution = new Contribution(); - $result = $this->client->createContribution($contribution); - $this->assertSame('5448ca99-ae7d-4347-9170-b8ffa067ebbf', $result); - } - - public function testUpdateContribution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateContribution' => [ - 'contributionId' => '5448ca99-ae7d-4347-9170-b8ffa067ebbf' - ] - ] - ]))); - - $contribution = new Contribution(); - $result = $this->client->updateContribution($contribution); - $this->assertSame('5448ca99-ae7d-4347-9170-b8ffa067ebbf', $result); - } - - public function testDeleteContribution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteContribution' => [ - 'contributionId' => '5448ca99-ae7d-4347-9170-b8ffa067ebbf' - ] - ] - ]))); - - $result = $this->client->deleteContribution('5448ca99-ae7d-4347-9170-b8ffa067ebbf'); - $this->assertSame('5448ca99-ae7d-4347-9170-b8ffa067ebbf', $result); - } - - public function testCreateContributor(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createContributor' => [ - 'contributorId' => '2724eca4-0d31-44ba-bbf4-19061a9637ce' - ] - ] - ]))); - - $contributor = new Contributor(); - $result = $this->client->createContributor($contributor); - $this->assertSame('2724eca4-0d31-44ba-bbf4-19061a9637ce', $result); - } - - public function testUpdateContributor(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateContributor' => [ - 'contributorId' => '2724eca4-0d31-44ba-bbf4-19061a9637ce' - ] - ] - ]))); - - $contributor = new Contributor(); - $result = $this->client->updateContributor($contributor); - $this->assertSame('2724eca4-0d31-44ba-bbf4-19061a9637ce', $result); - } - - public function testDeleteContributor(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteContributor' => [ - 'contributorId' => '2724eca4-0d31-44ba-bbf4-19061a9637ce' - ] - ] - ]))); - - $result = $this->client->deleteContributor('2724eca4-0d31-44ba-bbf4-19061a9637ce'); - $this->assertSame('2724eca4-0d31-44ba-bbf4-19061a9637ce', $result); - } - - public function testCreateFunding(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createFunding' => [ - 'fundingId' => 'bba5f263-3442-4a4e-8b2b-752a238b9c03' - ] - ] - ]))); - - $funding = new Funding(); - $result = $this->client->createFunding($funding); - $this->assertSame('bba5f263-3442-4a4e-8b2b-752a238b9c03', $result); - } - - public function testUpdateFunding(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateFunding' => [ - 'fundingId' => 'bba5f263-3442-4a4e-8b2b-752a238b9c03' - ] - ] - ]))); - - $funding = new Funding(); - $result = $this->client->updateFunding($funding); - $this->assertSame('bba5f263-3442-4a4e-8b2b-752a238b9c03', $result); - } - - public function testDeleteFunding(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteFunding' => [ - 'fundingId' => 'bba5f263-3442-4a4e-8b2b-752a238b9c03' - ] - ] - ]))); - - $result = $this->client->deleteFunding('bba5f263-3442-4a4e-8b2b-752a238b9c03'); - $this->assertSame('bba5f263-3442-4a4e-8b2b-752a238b9c03', $result); - } - - public function testCreateImprint(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createImprint' => [ - 'imprintId' => '7485750d-c8cf-4a7e-9a6c-c080b932dbd9' - ] - ] - ]))); - - $imprint = new Imprint(); - $result = $this->client->createImprint($imprint); - $this->assertSame('7485750d-c8cf-4a7e-9a6c-c080b932dbd9', $result); - } - - public function testUpdateImprint(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateImprint' => [ - 'imprintId' => '7485750d-c8cf-4a7e-9a6c-c080b932dbd9' - ] - ] - ]))); - - $imprint = new Imprint(); - $result = $this->client->updateImprint($imprint); - $this->assertSame('7485750d-c8cf-4a7e-9a6c-c080b932dbd9', $result); - } - - public function testDeleteImprint(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteImprint' => [ - 'imprintId' => '7485750d-c8cf-4a7e-9a6c-c080b932dbd9' - ] - ] - ]))); - - $result = $this->client->deleteImprint('7485750d-c8cf-4a7e-9a6c-c080b932dbd9'); - $this->assertSame('7485750d-c8cf-4a7e-9a6c-c080b932dbd9', $result); - } - - public function testCreateInstitution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createInstitution' => [ - 'institutionId' => 'a71debc6-0172-4cf5-b4c4-f932915ffce3' - ] - ] - ]))); - - $institution = new Institution(); - $result = $this->client->createInstitution($institution); - $this->assertSame('a71debc6-0172-4cf5-b4c4-f932915ffce3', $result); - } - - public function testUpdateInstitution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateInstitution' => [ - 'institutionId' => 'a71debc6-0172-4cf5-b4c4-f932915ffce3' - ] - ] - ]))); - - $institution = new Institution(); - $result = $this->client->updateInstitution($institution); - $this->assertSame('a71debc6-0172-4cf5-b4c4-f932915ffce3', $result); - } - - public function testDeleteInstitution(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteInstitution' => [ - 'institutionId' => 'a71debc6-0172-4cf5-b4c4-f932915ffce3' - ] - ] - ]))); - - $result = $this->client->deleteInstitution('a71debc6-0172-4cf5-b4c4-f932915ffce3'); - $this->assertSame('a71debc6-0172-4cf5-b4c4-f932915ffce3', $result); - } - - public function testCreateIssue(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createIssue' => [ - 'issueId' => 'df439ff0-a8ed-4972-aada-956fb0bb27ce' - ] - ] - ]))); - - $issue = new Issue(); - $result = $this->client->createIssue($issue); - $this->assertSame('df439ff0-a8ed-4972-aada-956fb0bb27ce', $result); - } - - public function testUpdateIssue(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateIssue' => [ - 'issueId' => 'df439ff0-a8ed-4972-aada-956fb0bb27ce' - ] - ] - ]))); - - $issue = new Issue(); - $result = $this->client->updateIssue($issue); - $this->assertSame('df439ff0-a8ed-4972-aada-956fb0bb27ce', $result); - } - - public function testDeleteIssue(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteIssue' => [ - 'issueId' => 'df439ff0-a8ed-4972-aada-956fb0bb27ce' - ] - ] - ]))); - - $result = $this->client->deleteIssue('df439ff0-a8ed-4972-aada-956fb0bb27ce'); - $this->assertSame('df439ff0-a8ed-4972-aada-956fb0bb27ce', $result); - } - - public function testCreateLanguage(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createLanguage' => [ - 'languageId' => '1584d8e2-b856-4519-a507-c2399af11af5' - ] - ] - ]))); - - $language = new Language(); - $result = $this->client->createLanguage($language); - $this->assertSame('1584d8e2-b856-4519-a507-c2399af11af5', $result); - } - - public function testUpdateLanguage(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateLanguage' => [ - 'languageId' => '1584d8e2-b856-4519-a507-c2399af11af5' - ] - ] - ]))); - - $language = new Language(); - $result = $this->client->updateLanguage($language); - $this->assertSame('1584d8e2-b856-4519-a507-c2399af11af5', $result); - } - - public function testDeleteLanguage(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteLanguage' => [ - 'languageId' => '1584d8e2-b856-4519-a507-c2399af11af5' - ] - ] - ]))); - - $result = $this->client->deleteLanguage('1584d8e2-b856-4519-a507-c2399af11af5'); - $this->assertSame('1584d8e2-b856-4519-a507-c2399af11af5', $result); - } - - public function testCreateLocation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createLocation' => [ - 'locationId' => 'c45e9a4a-80e1-46c2-8845-61bf4263255e' - ] - ] - ]))); - - $location = new Location(); - $result = $this->client->createLocation($location); - $this->assertSame('c45e9a4a-80e1-46c2-8845-61bf4263255e', $result); - } - - public function testUpdateLocation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateLocation' => [ - 'locationId' => 'c45e9a4a-80e1-46c2-8845-61bf4263255e' - ] - ] - ]))); - - $location = new Location(); - $result = $this->client->updateLocation($location); - $this->assertSame('c45e9a4a-80e1-46c2-8845-61bf4263255e', $result); - } - - public function testDeleteLocation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteLocation' => [ - 'locationId' => 'c45e9a4a-80e1-46c2-8845-61bf4263255e' - ] - ] - ]))); - - $result = $this->client->deleteLocation('c45e9a4a-80e1-46c2-8845-61bf4263255e'); - $this->assertSame('c45e9a4a-80e1-46c2-8845-61bf4263255e', $result); - } - - public function testCreatePrice(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createPrice' => [ - 'priceId' => '38e96434-88a3-4f1c-9c39-b9160000c61a' - ] - ] - ]))); - - $price = new Price(); - $result = $this->client->createPrice($price); - $this->assertSame('38e96434-88a3-4f1c-9c39-b9160000c61a', $result); - } - - public function testUpdatePrice(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updatePrice' => [ - 'priceId' => '38e96434-88a3-4f1c-9c39-b9160000c61a' - ] - ] - ]))); - - $price = new Price(); - $result = $this->client->updatePrice($price); - $this->assertSame('38e96434-88a3-4f1c-9c39-b9160000c61a', $result); - } - - public function testDeletePrice(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deletePrice' => [ - 'priceId' => '38e96434-88a3-4f1c-9c39-b9160000c61a' - ] - ] - ]))); - - $result = $this->client->deletePrice('38e96434-88a3-4f1c-9c39-b9160000c61a'); - $this->assertSame('38e96434-88a3-4f1c-9c39-b9160000c61a', $result); - } - - public function testCreatePublication(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createPublication' => [ - 'publicationId' => '01fec4e9-fbff-4c2e-9752-a0562a506e4d' - ] - ] - ]))); - - $publication = new Publication(); - $result = $this->client->createPublication($publication); - $this->assertSame('01fec4e9-fbff-4c2e-9752-a0562a506e4d', $result); - } - - public function testUpdatePublication(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updatePublication' => [ - 'publicationId' => '01fec4e9-fbff-4c2e-9752-a0562a506e4d' - ] - ] - ]))); - - $publication = new Publication(); - $result = $this->client->updatePublication($publication); - $this->assertSame('01fec4e9-fbff-4c2e-9752-a0562a506e4d', $result); - } - - public function testDeletePublication(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deletePublication' => [ - 'publicationId' => '01fec4e9-fbff-4c2e-9752-a0562a506e4d' - ] - ] - ]))); - - $result = $this->client->deletePublication('01fec4e9-fbff-4c2e-9752-a0562a506e4d'); - $this->assertSame('01fec4e9-fbff-4c2e-9752-a0562a506e4d', $result); - } - - public function testCreatePublisher(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createPublisher' => [ - 'publisherId' => 'a77ef552-856c-4585-9d35-fd58d2190b1b' - ] - ] - ]))); - - $publisher = new Publisher(); - $result = $this->client->createPublisher($publisher); - $this->assertSame('a77ef552-856c-4585-9d35-fd58d2190b1b', $result); - } - - public function testUpdatePublisher(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updatePublisher' => [ - 'publisherId' => 'a77ef552-856c-4585-9d35-fd58d2190b1b' - ] - ] - ]))); - - $publisher = new Publisher(); - $result = $this->client->updatePublisher($publisher); - $this->assertSame('a77ef552-856c-4585-9d35-fd58d2190b1b', $result); - } - - public function testDeletePublisher(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deletePublisher' => [ - 'publisherId' => 'a77ef552-856c-4585-9d35-fd58d2190b1b' - ] - ] - ]))); - - $result = $this->client->deletePublisher('a77ef552-856c-4585-9d35-fd58d2190b1b'); - $this->assertSame('a77ef552-856c-4585-9d35-fd58d2190b1b', $result); - } - - public function testCreateReference(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createReference' => [ - 'referenceId' => '6b4060ff-a89b-4bdc-b722-2b87ef9d057a' - ] - ] - ]))); - - $reference = new Reference(); - $result = $this->client->createReference($reference); - $this->assertSame('6b4060ff-a89b-4bdc-b722-2b87ef9d057a', $result); - } - - public function testUpdateReference(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateReference' => [ - 'referenceId' => '6b4060ff-a89b-4bdc-b722-2b87ef9d057a' - ] - ] - ]))); - - $reference = new Reference(); - $result = $this->client->updateReference($reference); - $this->assertSame('6b4060ff-a89b-4bdc-b722-2b87ef9d057a', $result); - } - - public function testDeleteReference(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteReference' => [ - 'referenceId' => '6b4060ff-a89b-4bdc-b722-2b87ef9d057a' - ] - ] - ]))); - - $result = $this->client->deleteReference('6b4060ff-a89b-4bdc-b722-2b87ef9d057a'); - $this->assertSame('6b4060ff-a89b-4bdc-b722-2b87ef9d057a', $result); - } - - public function testCreateSeries(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createSeries' => [ - 'seriesId' => 'dc4ed0f7-89a4-4760-aad3-adec7294706d' - ] - ] - ]))); - - $series = new Series(); - $result = $this->client->createSeries($series); - $this->assertSame('dc4ed0f7-89a4-4760-aad3-adec7294706d', $result); - } - - public function testUpdateSeries(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateSeries' => [ - 'seriesId' => 'dc4ed0f7-89a4-4760-aad3-adec7294706d' - ] - ] - ]))); - - $series = new Series(); - $result = $this->client->updateSeries($series); - $this->assertSame('dc4ed0f7-89a4-4760-aad3-adec7294706d', $result); - } - - public function testDeleteSeries(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteSeries' => [ - 'seriesId' => 'dc4ed0f7-89a4-4760-aad3-adec7294706d' - ] - ] - ]))); - - $result = $this->client->deleteSeries('dc4ed0f7-89a4-4760-aad3-adec7294706d'); - $this->assertSame('dc4ed0f7-89a4-4760-aad3-adec7294706d', $result); - } - - public function testCreateSubject(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createSubject' => [ - 'subjectId' => 'e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd' - ] - ] - ]))); - - $subject = new Subject(); - $result = $this->client->createSubject($subject); - $this->assertSame('e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd', $result); - } - - public function testUpdateSubject(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateSubject' => [ - 'subjectId' => 'e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd' - ] - ] - ]))); - - $subject = new Subject(); - $result = $this->client->updateSubject($subject); - $this->assertSame('e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd', $result); - } - - public function testDeleteSubject(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteSubject' => [ - 'subjectId' => 'e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd' - ] - ] - ]))); - - $result = $this->client->deleteSubject('e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd'); - $this->assertSame('e7ab386e-186a-4b1c-aa6f-e974b8a1e3cd', $result); - } - - public function testCreateWork(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createWork' => [ - 'workId' => 'd81bab71-d9fe-456b-9951-2308b91db2b4' - ] - ] - ]))); - - $work = new Work(); - $result = $this->client->createWork($work); - $this->assertSame('d81bab71-d9fe-456b-9951-2308b91db2b4', $result); - } - - public function testUpdateWork(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateWork' => [ - 'workId' => 'd81bab71-d9fe-456b-9951-2308b91db2b4' - ] - ] - ]))); - - $work = new Work(); - $result = $this->client->updateWork($work); - $this->assertSame('d81bab71-d9fe-456b-9951-2308b91db2b4', $result); - } - - public function testDeleteWork(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteWork' => [ - 'workId' => 'd81bab71-d9fe-456b-9951-2308b91db2b4' - ] - ] - ]))); - - $result = $this->client->deleteWork('d81bab71-d9fe-456b-9951-2308b91db2b4'); - $this->assertSame('d81bab71-d9fe-456b-9951-2308b91db2b4', $result); - } - - public function testCreateWorkRelation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'createWorkRelation' => [ - 'workRelationId' => '64019725-3e50-41de-a785-e4e5ddc4620a' - ] - ] - ]))); - - $workRelation = new WorkRelation(); - $result = $this->client->createWorkRelation($workRelation); - $this->assertSame('64019725-3e50-41de-a785-e4e5ddc4620a', $result); - } - - public function testUpdateWorkRelation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'updateWorkRelation' => [ - 'workRelationId' => '64019725-3e50-41de-a785-e4e5ddc4620a' - ] - ] - ]))); - - $workRelation = new WorkRelation(); - $result = $this->client->updateWorkRelation($workRelation); - $this->assertSame('64019725-3e50-41de-a785-e4e5ddc4620a', $result); - } - - public function testDeleteWorkRelation(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'deleteWorkRelation' => [ - 'workRelationId' => '64019725-3e50-41de-a785-e4e5ddc4620a' - ] - ] - ]))); - - $result = $this->client->deleteWorkRelation('64019725-3e50-41de-a785-e4e5ddc4620a'); - $this->assertSame('64019725-3e50-41de-a785-e4e5ddc4620a', $result); - } -} diff --git a/tests/GraphQL/Concerns/HasClientQueryTests.php b/tests/GraphQL/Concerns/HasClientQueryTests.php deleted file mode 100644 index a46b674..0000000 --- a/tests/GraphQL/Concerns/HasClientQueryTests.php +++ /dev/null @@ -1,1024 +0,0 @@ - '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'affiliation' => [ - 'affiliationId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->affiliation('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($affiliation, $result); - } - - public function testAffiliations(): void - { - $affiliations = [ - new Affiliation(['affiliationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Affiliation(['affiliationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'affiliations' => [ - [ - 'affiliationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'affiliationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->affiliations(); - $this->assertEquals($affiliations, $result); - } - - public function testAffiliationCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'affiliationCount' => 710 - ] - ]))); - - $result = $this->client->affiliationCount(); - $this->assertSame($expectedCount, $result); - } - - public function testContribution(): void - { - $contribution = new Contribution(['contributionId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contribution' => [ - 'contributionId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->contribution('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($contribution, $result); - } - - public function testBooks(): void - { - $books = [ - new Work(['workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Work(['workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'books' => [ - [ - 'workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->books(); - $this->assertEquals($books, $result); - } - - public function testBookByDoi(): void - { - $book = new Work([ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ]); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'bookByDoi' => [ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ] - ] - ]))); - - $result = $this->client->bookByDoi('https://doi.org/10.00000/00000000'); - $this->assertEquals($book, $result); - } - - public function testBookCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'bookCount' => 710 - ] - ]))); - - $result = $this->client->bookCount(); - $this->assertSame($expectedCount, $result); - } - - public function testChapters(): void - { - $chapters = [ - new Work(['workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Work(['workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'chapters' => [ - [ - 'workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->chapters(); - $this->assertEquals($chapters, $result); - } - - public function testChapterByDoi(): void - { - $chapter = new Work([ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ]); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'chapterByDoi' => [ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ] - ] - ]))); - - $result = $this->client->chapterByDoi('https://doi.org/10.00000/00000000'); - $this->assertEquals($chapter, $result); - } - - public function testChapterCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'chapterCount' => 710 - ] - ]))); - - $result = $this->client->chapterCount(); - $this->assertSame($expectedCount, $result); - } - - public function testContributions(): void - { - $contributions = [ - new Contribution(['contributionId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Contribution(['contributionId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contributions' => [ - [ - 'contributionId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'contributionId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->contributions(); - $this->assertEquals($contributions, $result); - } - - public function testContributionCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contributionCount' => 710 - ] - ]))); - - $result = $this->client->contributionCount(); - $this->assertSame($expectedCount, $result); - } - - public function testContributor(): void - { - $contributor = new Contributor(['contributorId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contributor' => [ - 'contributorId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->contributor('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($contributor, $result); - } - - public function testContributors(): void - { - $contributors = [ - new Contributor(['contributorId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Contributor(['contributorId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contributors' => [ - [ - 'contributorId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'contributorId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->contributors(); - $this->assertEquals($contributors, $result); - } - - public function testContributorCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'contributorCount' => 710 - ] - ]))); - - $result = $this->client->contributorCount(); - $this->assertSame($expectedCount, $result); - } - - public function testFunding(): void - { - $funding = new Funding(['fundingId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'funding' => [ - 'fundingId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->funding('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($funding, $result); - } - - public function testFundings(): void - { - $fundings = [ - new Funding(['fundingId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Funding(['fundingId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'fundings' => [ - [ - 'fundingId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'fundingId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->fundings(); - $this->assertEquals($fundings, $result); - } - - public function testFundingCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'fundingCount' => 710 - ] - ]))); - - $result = $this->client->fundingCount(); - $this->assertSame($expectedCount, $result); - } - - public function testImprint(): void - { - $imprint = new Imprint(['imprintId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'imprint' => [ - 'imprintId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->imprint('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($imprint, $result); - } - - public function testImprints(): void - { - $imprints = [ - new Imprint(['imprintId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Imprint(['imprintId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'imprints' => [ - [ - 'imprintId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'imprintId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->imprints(); - $this->assertEquals($imprints, $result); - } - - public function testImprintCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'imprintCount' => 710 - ] - ]))); - - $result = $this->client->imprintCount(); - $this->assertSame($expectedCount, $result); - } - - public function testInstitution(): void - { - $institution = new Institution(['institutionId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'institution' => [ - 'institutionId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->institution('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($institution, $result); - } - - public function testInstitutions(): void - { - $institutions = [ - new Institution(['institutionId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Institution(['institutionId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'institutions' => [ - [ - 'institutionId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'institutionId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->institutions(); - $this->assertEquals($institutions, $result); - } - - public function testInstitutionCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'institutionCount' => 710 - ] - ]))); - - $result = $this->client->institutionCount(); - $this->assertSame($expectedCount, $result); - } - - public function testIssue(): void - { - $issue = new Issue(['issueId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'issue' => [ - 'issueId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->issue('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($issue, $result); - } - - public function testIssues(): void - { - $issues = [ - new Issue(['issueId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Issue(['issueId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'issues' => [ - [ - 'issueId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'issueId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->issues(); - $this->assertEquals($issues, $result); - } - - public function testIssueCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'issueCount' => 710 - ] - ]))); - - $result = $this->client->issueCount(); - $this->assertSame($expectedCount, $result); - } - - public function testLanguage(): void - { - $language = new Language(['languageId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'language' => [ - 'languageId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->language('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($language, $result); - } - - public function testLanguages(): void - { - $languages = [ - new Language(['languageId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Language(['languageId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'languages' => [ - [ - 'languageId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'languageId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->languages(); - $this->assertEquals($languages, $result); - } - - public function testLanguageCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'languageCount' => 710 - ] - ]))); - - $result = $this->client->languageCount(); - $this->assertSame($expectedCount, $result); - } - - public function testLocation(): void - { - $location = new Location(['locationId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'location' => [ - 'locationId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->location('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($location, $result); - } - - public function testLocations(): void - { - $locations = [ - new Location(['locationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Location(['locationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'locations' => [ - [ - 'locationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'locationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->locations(); - $this->assertEquals($locations, $result); - } - - public function testLocationCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'locationCount' => 710 - ] - ]))); - - $result = $this->client->locationCount(); - $this->assertSame($expectedCount, $result); - } - - public function testPrice(): void - { - $price = new Price(['priceId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'price' => [ - 'priceId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->price('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($price, $result); - } - - public function testPrices(): void - { - $prices = [ - new Price(['priceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Price(['priceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'prices' => [ - [ - 'priceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'priceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->prices(); - $this->assertEquals($prices, $result); - } - - public function testPriceCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'priceCount' => 710 - ] - ]))); - - $result = $this->client->priceCount(); - $this->assertSame($expectedCount, $result); - } - - public function testPublication(): void - { - $publication = new Publication(['publicationId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publication' => [ - 'publicationId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->publication('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($publication, $result); - } - - public function testPublications(): void - { - $publications = [ - new Publication(['publicationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Publication(['publicationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publications' => [ - [ - 'publicationId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'publicationId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->publications(); - $this->assertEquals($publications, $result); - } - - public function testPublicationCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publicationCount' => 710 - ] - ]))); - - $result = $this->client->publicationCount(); - $this->assertSame($expectedCount, $result); - } - - public function testPublisher(): void - { - $publisher = new Publisher(['publisherId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publisher' => [ - 'publisherId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->publisher('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($publisher, $result); - } - - public function testPublishers(): void - { - $publishers = [ - new Publisher(['publisherId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Publisher(['publisherId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publishers' => [ - [ - 'publisherId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'publisherId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->publishers(); - $this->assertEquals($publishers, $result); - } - - public function testPublisherCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'publisherCount' => 710 - ] - ]))); - - $result = $this->client->publisherCount(); - $this->assertSame($expectedCount, $result); - } - - public function testReference(): void - { - $reference = new Reference(['referenceId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'reference' => [ - 'referenceId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->reference('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($reference, $result); - } - - public function testReferences(): void - { - $references = [ - new Reference(['referenceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Reference(['referenceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'references' => [ - [ - 'referenceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'referenceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->references(); - $this->assertEquals($references, $result); - } - - public function testReferenceCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'referenceCount' => 710 - ] - ]))); - - $result = $this->client->referenceCount(); - $this->assertSame($expectedCount, $result); - } - - public function testSeries(): void - { - $series = new Series(['seriesId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'series' => [ - 'seriesId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->series('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($series, $result); - } - - public function testSerieses(): void - { - $serieses = [ - new Series(['seriesId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Series(['seriesId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'serieses' => [ - [ - 'seriesId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'seriesId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->serieses(); - $this->assertEquals($serieses, $result); - } - - public function testSeriesCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'seriesCount' => 710 - ] - ]))); - - $result = $this->client->seriesCount(); - $this->assertSame($expectedCount, $result); - } - - public function testSubject(): void - { - $subject = new Subject(['subjectId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'subject' => [ - 'subjectId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->subject('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($subject, $result); - } - - public function testSubjects(): void - { - $subjects = [ - new Subject(['subjectId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Subject(['subjectId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'subjects' => [ - [ - 'subjectId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'subjectId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->subjects(); - $this->assertEquals($subjects, $result); - } - - public function testSubjectCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'subjectCount' => 710 - ] - ]))); - - $result = $this->client->subjectCount(); - $this->assertSame($expectedCount, $result); - } - - public function testWork(): void - { - $work = new Work(['workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'work' => [ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b' - ] - ] - ]))); - - $result = $this->client->work('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($work, $result); - } - - public function testWorks(): void - { - $works = [ - new Work(['workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new Work(['workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'works' => [ - [ - 'workId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2' - ], - [ - 'workId' => '0472b0af-acf6-4f27-bee3-d3414466ccec' - ] - ] - ] - ]))); - - $result = $this->client->works(); - $this->assertEquals($works, $result); - } - - public function testWorkByDoi(): void - { - $work = new Work([ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ]); - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'workByDoi' => [ - 'workId' => '9afc6760-f556-46a1-a912-39ea5ebc921b', - 'doi' => 'https://doi.org/10.00000/00000000' - ] - ] - ]))); - - $result = $this->client->workByDoi('https://doi.org/10.00000/00000000'); - $this->assertEquals($work, $result); - } - - public function testWorkCount(): void - { - $expectedCount = 710; - - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'workCount' => 710 - ] - ]))); - - $result = $this->client->workCount(); - $this->assertSame($expectedCount, $result); - } -} diff --git a/tests/GraphQL/Concerns/HasClientSchemaSyncTests.php b/tests/GraphQL/Concerns/HasClientSchemaSyncTests.php deleted file mode 100644 index 7b22941..0000000 --- a/tests/GraphQL/Concerns/HasClientSchemaSyncTests.php +++ /dev/null @@ -1,402 +0,0 @@ - '9afc6760-f556-46a1-a912-39ea5ebc921b']); - $this->appendGraphQlResponse('additionalResource', ['workResourceId' => '9afc6760-f556-46a1-a912-39ea5ebc921b']); - - $result = $this->client->additionalResource('9afc6760-f556-46a1-a912-39ea5ebc921b'); - $this->assertEquals($expected, $result); - } - - public function testAdditionalResources(): void - { - $expected = [ - new AdditionalResource(['workResourceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2']), - new AdditionalResource(['workResourceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec']), - ]; - $this->appendGraphQlResponse('additionalResources', [ - ['workResourceId' => '7608e91a-7e51-467a-9bab-67d1eee68ab2'], - ['workResourceId' => '0472b0af-acf6-4f27-bee3-d3414466ccec'], - ]); - - $result = $this->client->additionalResources(); - $this->assertEquals($expected, $result); - } - - public function testAdditionalResourceCount(): void - { - $this->appendGraphQlResponse('additionalResourceCount', 12); - $this->assertSame(12, $this->client->additionalResourceCount()); - } - - public function testAbstract(): void - { - $expected = new AbstractText(['abstractId' => '7b256755-3546-49ad-8199-6e98d1a66792']); - $this->appendGraphQlResponse('abstract', ['abstractId' => '7b256755-3546-49ad-8199-6e98d1a66792']); - - $result = $this->client->abstract('7b256755-3546-49ad-8199-6e98d1a66792', 'HTML'); - $this->assertEquals($expected, $result); - } - - public function testAbstracts(): void - { - $expected = [ - new AbstractText(['abstractId' => 'c8cba422-728e-4e94-8f4d-b4c1ba8f7416']), - new AbstractText(['abstractId' => '0cf7d5c4-c8e0-4787-8130-f6b7133ec2f1']), - ]; - $this->appendGraphQlResponse('abstracts', [ - ['abstractId' => 'c8cba422-728e-4e94-8f4d-b4c1ba8f7416'], - ['abstractId' => '0cf7d5c4-c8e0-4787-8130-f6b7133ec2f1'], - ]); - - $result = $this->client->abstracts(); - $this->assertEquals($expected, $result); - } - - public function testAward(): void - { - $expected = new Award(['awardId' => '348f8f66-9bd5-43f5-beb7-f08a6656d1a2']); - $this->appendGraphQlResponse('award', ['awardId' => '348f8f66-9bd5-43f5-beb7-f08a6656d1a2']); - - $result = $this->client->award('348f8f66-9bd5-43f5-beb7-f08a6656d1a2'); - $this->assertEquals($expected, $result); - } - - public function testAwards(): void - { - $expected = [ - new Award(['awardId' => 'e9572168-7795-4a72-a139-ad1c0f1143af']), - new Award(['awardId' => '6b8b30aa-0ad8-4dab-b9f1-725cfaf2f804']), - ]; - $this->appendGraphQlResponse('awards', [ - ['awardId' => 'e9572168-7795-4a72-a139-ad1c0f1143af'], - ['awardId' => '6b8b30aa-0ad8-4dab-b9f1-725cfaf2f804'], - ]); - - $result = $this->client->awards(); - $this->assertEquals($expected, $result); - } - - public function testAwardCount(): void - { - $this->appendGraphQlResponse('awardCount', 5); - $this->assertSame(5, $this->client->awardCount()); - } - - public function testBiography(): void - { - $expected = new Biography(['biographyId' => '6d8ddf35-e112-48b2-87c6-3ef5888c03e7']); - $this->appendGraphQlResponse('biography', ['biographyId' => '6d8ddf35-e112-48b2-87c6-3ef5888c03e7']); - - $result = $this->client->biography('6d8ddf35-e112-48b2-87c6-3ef5888c03e7', 'HTML'); - $this->assertEquals($expected, $result); - } - - public function testBiographies(): void - { - $expected = [ - new Biography(['biographyId' => 'ed51ceb4-d77e-4f6e-bf1a-8277c1f5f0df']), - new Biography(['biographyId' => '2d8a97c3-6b6e-440f-9c6e-b8c5ee5bf1cb']), - ]; - $this->appendGraphQlResponse('biographies', [ - ['biographyId' => 'ed51ceb4-d77e-4f6e-bf1a-8277c1f5f0df'], - ['biographyId' => '2d8a97c3-6b6e-440f-9c6e-b8c5ee5bf1cb'], - ]); - - $result = $this->client->biographies(); - $this->assertEquals($expected, $result); - } - - public function testBookReview(): void - { - $expected = new BookReview(['bookReviewId' => 'a465c5d1-5ef0-493c-b2b3-a8084144f35c']); - $this->appendGraphQlResponse('bookReview', ['bookReviewId' => 'a465c5d1-5ef0-493c-b2b3-a8084144f35c']); - - $result = $this->client->bookReview('a465c5d1-5ef0-493c-b2b3-a8084144f35c'); - $this->assertEquals($expected, $result); - } - - public function testBookReviews(): void - { - $expected = [ - new BookReview(['bookReviewId' => '728d3048-b0db-444e-bd46-26ab6b66e7cf']), - new BookReview(['bookReviewId' => '83b8dfe7-8394-49f1-b5f0-c833e86d9d5b']), - ]; - $this->appendGraphQlResponse('bookReviews', [ - ['bookReviewId' => '728d3048-b0db-444e-bd46-26ab6b66e7cf'], - ['bookReviewId' => '83b8dfe7-8394-49f1-b5f0-c833e86d9d5b'], - ]); - - $result = $this->client->bookReviews(); - $this->assertEquals($expected, $result); - } - - public function testBookReviewCount(): void - { - $this->appendGraphQlResponse('bookReviewCount', 8); - $this->assertSame(8, $this->client->bookReviewCount()); - } - - public function testContact(): void - { - $expected = new Contact(['contactId' => 'd4122dc0-f3fc-45ce-81a4-fe45e8da837b']); - $this->appendGraphQlResponse('contact', ['contactId' => 'd4122dc0-f3fc-45ce-81a4-fe45e8da837b']); - - $result = $this->client->contact('d4122dc0-f3fc-45ce-81a4-fe45e8da837b'); - $this->assertEquals($expected, $result); - } - - public function testContacts(): void - { - $expected = [ - new Contact(['contactId' => 'f74cc2d0-4888-4629-a31b-ac8527d4f374']), - new Contact(['contactId' => '67c2ab2c-e1c5-452a-8bb4-7fd3bf7f2394']), - ]; - $this->appendGraphQlResponse('contacts', [ - ['contactId' => 'f74cc2d0-4888-4629-a31b-ac8527d4f374'], - ['contactId' => '67c2ab2c-e1c5-452a-8bb4-7fd3bf7f2394'], - ]); - - $result = $this->client->contacts(); - $this->assertEquals($expected, $result); - } - - public function testContactCount(): void - { - $this->appendGraphQlResponse('contactCount', 4); - $this->assertSame(4, $this->client->contactCount()); - } - - public function testEndorsement(): void - { - $expected = new Endorsement(['endorsementId' => '0b13c4ca-6db2-4f4a-ad98-784ec0f5f8f6']); - $this->appendGraphQlResponse('endorsement', ['endorsementId' => '0b13c4ca-6db2-4f4a-ad98-784ec0f5f8f6']); - - $result = $this->client->endorsement('0b13c4ca-6db2-4f4a-ad98-784ec0f5f8f6'); - $this->assertEquals($expected, $result); - } - - public function testEndorsements(): void - { - $expected = [ - new Endorsement(['endorsementId' => '1bb5729c-2fb1-4e0b-b9eb-d78c646c2048']), - new Endorsement(['endorsementId' => 'f2248af2-4650-4f4b-b5e7-b702a05629a7']), - ]; - $this->appendGraphQlResponse('endorsements', [ - ['endorsementId' => '1bb5729c-2fb1-4e0b-b9eb-d78c646c2048'], - ['endorsementId' => 'f2248af2-4650-4f4b-b5e7-b702a05629a7'], - ]); - - $result = $this->client->endorsements(); - $this->assertEquals($expected, $result); - } - - public function testEndorsementCount(): void - { - $this->appendGraphQlResponse('endorsementCount', 7); - $this->assertSame(7, $this->client->endorsementCount()); - } - - public function testFile(): void - { - $expected = new File(['fileId' => '0a2cde56-a535-4f7a-ac6b-3fc12942d1c9']); - $this->appendGraphQlResponse('file', ['fileId' => '0a2cde56-a535-4f7a-ac6b-3fc12942d1c9']); - - $result = $this->client->file('0a2cde56-a535-4f7a-ac6b-3fc12942d1c9'); - $this->assertEquals($expected, $result); - } - - public function testMe(): void - { - $expected = new Me(['userId' => '3a3d425f-35ed-49fd-a0f9-4b13d68ab71b']); - $this->appendGraphQlResponse('me', ['userId' => '3a3d425f-35ed-49fd-a0f9-4b13d68ab71b']); - - $result = $this->client->setToken('token')->me(); - $this->assertEquals($expected, $result); - } - - public function testTitle(): void - { - $expected = new Title(['titleId' => '11595f9d-536e-422a-8184-4b01df1158f5']); - $this->appendGraphQlResponse('title', ['titleId' => '11595f9d-536e-422a-8184-4b01df1158f5']); - - $result = $this->client->title('11595f9d-536e-422a-8184-4b01df1158f5', 'HTML'); - $this->assertEquals($expected, $result); - } - - public function testTitles(): void - { - $expected = [ - new Title(['titleId' => '194fb8a9-ec22-414d-a4ce-a2216755b5b0']), - new Title(['titleId' => '204291c6-6ecb-4b9b-b61d-c789336f281d']), - ]; - $this->appendGraphQlResponse('titles', [ - ['titleId' => '194fb8a9-ec22-414d-a4ce-a2216755b5b0'], - ['titleId' => '204291c6-6ecb-4b9b-b61d-c789336f281d'], - ]); - - $result = $this->client->titles(); - $this->assertEquals($expected, $result); - } - - public function testWorkFeaturedVideo(): void - { - $expected = new WorkFeaturedVideo(['workFeaturedVideoId' => 'ce185b34-0678-4332-b805-271db0feec4c']); - $this->appendGraphQlResponse('workFeaturedVideo', ['workFeaturedVideoId' => 'ce185b34-0678-4332-b805-271db0feec4c']); - - $result = $this->client->workFeaturedVideo('ce185b34-0678-4332-b805-271db0feec4c'); - $this->assertEquals($expected, $result); - } - - public function testWorkFeaturedVideos(): void - { - $expected = [ - new WorkFeaturedVideo(['workFeaturedVideoId' => 'b44e6137-bd54-46d3-a5de-d377ef205022']), - new WorkFeaturedVideo(['workFeaturedVideoId' => 'd865ba29-1f2c-42b8-b6c0-35f96a86091a']), - ]; - $this->appendGraphQlResponse('workFeaturedVideos', [ - ['workFeaturedVideoId' => 'b44e6137-bd54-46d3-a5de-d377ef205022'], - ['workFeaturedVideoId' => 'd865ba29-1f2c-42b8-b6c0-35f96a86091a'], - ]); - - $result = $this->client->workFeaturedVideos(); - $this->assertEquals($expected, $result); - } - - public function testWorkFeaturedVideoCount(): void - { - $this->appendGraphQlResponse('workFeaturedVideoCount', 2); - $this->assertSame(2, $this->client->workFeaturedVideoCount()); - } - - public function testAdditionalSchemaMutations(): void - { - $cases = [ - ['createAdditionalResource', new AdditionalResource(), 'createAdditionalResource', 'workResourceId'], - ['updateAdditionalResource', new AdditionalResource(), 'updateAdditionalResource', 'workResourceId'], - ['deleteAdditionalResource', '6df7310c-8d9e-4b25-afb9-3ef670051c5a', 'deleteAdditionalResource', 'workResourceId'], - ['createAbstract', new AbstractText(), 'createAbstract', 'abstractId'], - ['updateAbstract', new AbstractText(), 'updateAbstract', 'abstractId'], - ['deleteAbstract', 'c17f97cd-6c31-4e25-a870-9df7559c61ad', 'deleteAbstract', 'abstractId'], - ['createAward', new Award(), 'createAward', 'awardId'], - ['updateAward', new Award(), 'updateAward', 'awardId'], - ['deleteAward', '1da2c824-1cdd-4a20-8d18-979743f2576d', 'deleteAward', 'awardId'], - ['createBiography', new Biography(), 'createBiography', 'biographyId'], - ['updateBiography', new Biography(), 'updateBiography', 'biographyId'], - ['deleteBiography', '403d31d1-8e7a-4b36-a3d2-72cdc4f9d2a4', 'deleteBiography', 'biographyId'], - ['createBookReview', new BookReview(), 'createBookReview', 'bookReviewId'], - ['updateBookReview', new BookReview(), 'updateBookReview', 'bookReviewId'], - ['deleteBookReview', '5db50f30-9783-4ff6-9c85-521662fdd1d2', 'deleteBookReview', 'bookReviewId'], - ['createContact', new Contact(), 'createContact', 'contactId'], - ['updateContact', new Contact(), 'updateContact', 'contactId'], - ['deleteContact', '52e6f1dd-2811-497a-a0fd-7fdc439c0ab4', 'deleteContact', 'contactId'], - ['createEndorsement', new Endorsement(), 'createEndorsement', 'endorsementId'], - ['updateEndorsement', new Endorsement(), 'updateEndorsement', 'endorsementId'], - ['deleteEndorsement', 'a2d18be6-b877-4b68-b6e9-bf1c0b74d89c', 'deleteEndorsement', 'endorsementId'], - ['createTitle', new Title(), 'createTitle', 'titleId'], - ['updateTitle', new Title(), 'updateTitle', 'titleId'], - ['deleteTitle', '2581af59-2c28-4576-a823-cd90cacf9f7f', 'deleteTitle', 'titleId'], - ['createWorkFeaturedVideo', new WorkFeaturedVideo(), 'createWorkFeaturedVideo', 'workFeaturedVideoId'], - ['updateWorkFeaturedVideo', new WorkFeaturedVideo(), 'updateWorkFeaturedVideo', 'workFeaturedVideoId'], - ['deleteWorkFeaturedVideo', 'e3733ec2-2bc2-456b-af8c-43a83df87f5d', 'deleteWorkFeaturedVideo', 'workFeaturedVideoId'], - ]; - - foreach ($cases as $case) { - $this->appendGraphQlResponse($case[2], [$case[3] => '5d065ca7-e93d-4830-a94c-0b18cac0d738']); - $result = is_string($case[1]) - ? $this->client->{$case[0]}($case[1]) - : $this->client->{$case[0]}($case[1]); - - $this->assertSame('5d065ca7-e93d-4830-a94c-0b18cac0d738', $result); - } - } - - public function testMoveMutations(): void - { - $cases = [ - ['moveAffiliation', 'moveAffiliation', 'affiliationId'], - ['moveContribution', 'moveContribution', 'contributionId'], - ['moveIssue', 'moveIssue', 'issueId'], - ['moveReference', 'moveReference', 'referenceId'], - ['moveAdditionalResource', 'moveAdditionalResource', 'workResourceId'], - ['moveAward', 'moveAward', 'awardId'], - ['moveEndorsement', 'moveEndorsement', 'endorsementId'], - ['moveBookReview', 'moveBookReview', 'bookReviewId'], - ['moveSubject', 'moveSubject', 'subjectId'], - ['moveWorkRelation', 'moveWorkRelation', 'workRelationId'], - ]; - - foreach ($cases as $case) { - $this->appendGraphQlResponse($case[1], [$case[2] => 'a6ef3310-3f0a-4814-b66f-75c0a0850ed1']); - $result = $this->client->{$case[0]}('8ad22885-ea80-4bfc-b562-a4e3f8c9fe25', 2); - $this->assertSame('a6ef3310-3f0a-4814-b66f-75c0a0850ed1', $result); - } - } - - public function testFileUploadMutations(): void - { - $payload = [ - 'declaredMimeType' => 'application/pdf', - 'declaredExtension' => 'pdf', - 'declaredSha256' => 'abc123', - ]; - - $this->appendGraphQlResponse('initPublicationFileUpload', ['fileUploadId' => '805f6199-48e8-4c30-aeec-7c4bcc6cf515']); - $this->assertEquals( - new FileUploadResponse(['fileUploadId' => '805f6199-48e8-4c30-aeec-7c4bcc6cf515']), - $this->client->initPublicationFileUpload(['publicationId' => '22851a6f-b1b8-4631-90b4-fcf70dce8472'] + $payload) - ); - - $this->appendGraphQlResponse('initFrontcoverFileUpload', ['fileUploadId' => '33ea7c51-54e4-4e77-a9e2-666aeb277cfa']); - $this->assertEquals( - new FileUploadResponse(['fileUploadId' => '33ea7c51-54e4-4e77-a9e2-666aeb277cfa']), - $this->client->initFrontcoverFileUpload(['workId' => 'f3505088-fb35-4c64-9b64-0cdd4964d3db'] + $payload) - ); - - $this->appendGraphQlResponse('initAdditionalResourceFileUpload', ['fileUploadId' => '63f8edbf-3e4d-44fe-b83d-725fdb7152f4']); - $this->assertEquals( - new FileUploadResponse(['fileUploadId' => '63f8edbf-3e4d-44fe-b83d-725fdb7152f4']), - $this->client->initAdditionalResourceFileUpload(['additionalResourceId' => '4fadb13b-fda1-4ce1-aa17-cf1902652f66'] + $payload) - ); - - $this->appendGraphQlResponse('initWorkFeaturedVideoFileUpload', ['fileUploadId' => '2897df20-c90f-4a0e-a81d-7b0557d7fd07']); - $this->assertEquals( - new FileUploadResponse(['fileUploadId' => '2897df20-c90f-4a0e-a81d-7b0557d7fd07']), - $this->client->initWorkFeaturedVideoFileUpload(['workFeaturedVideoId' => '2b554c7f-0c1d-49c6-8a4f-d9638a115bea'] + $payload) - ); - - $this->appendGraphQlResponse('completeFileUpload', ['fileId' => 'c0b70667-9a9a-4829-9b29-f4792c53c702']); - $this->assertEquals( - new File(['fileId' => 'c0b70667-9a9a-4829-9b29-f4792c53c702']), - $this->client->completeFileUpload(['fileUploadId' => '2897df20-c90f-4a0e-a81d-7b0557d7fd07']) - ); - } - - private function appendGraphQlResponse(string $field, $data): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - $field => $data, - ], - ]))); - } -} diff --git a/tests/GraphQL/GeneratedOperationTest.php b/tests/GraphQL/GeneratedOperationTest.php new file mode 100644 index 0000000..8a5b15d --- /dev/null +++ b/tests/GraphQL/GeneratedOperationTest.php @@ -0,0 +1,33 @@ + 1], ['workId']); + + $this->assertInstanceOf(OperationRequest::class, $operation); + $this->assertSame('books', BooksQuery::field()->getName()); + $this->assertStringContainsString('books(limit: 1)', $operation->toGraphQL()); + } + + public function testGeneratedMutationCreatesOperationRequest(): void + { + $operation = CreatePublisherMutation::operation([ + 'data' => [ + 'publisherName' => 'ACME Press', + ], + ], ['publisherId']); + + $this->assertInstanceOf(OperationRequest::class, $operation); + $this->assertSame('createPublisher', CreatePublisherMutation::field()->getName()); + $this->assertStringContainsString('createPublisher(data: {publisherName: "ACME Press"})', $operation->toGraphQL()); + } +} diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php new file mode 100644 index 0000000..85459c5 --- /dev/null +++ b/tests/GraphQL/GenericClientTest.php @@ -0,0 +1,117 @@ + [ + 'books' => [ + [ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + $operation = new OperationRequest( + 'query', + new FieldDefinition('books', TypeReference::named('Work')), + [], + ['workId', 'fullTitle'] + ); + + $this->assertSame([ + [ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], + ], $client->execute($operation)); + } + + public function testItExecutesGeneratedMutationByMethodName(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + + $this->assertSame('work-1', $client->createWork([ + 'workType' => OperationRequest::enum('MONOGRAPH'), + 'workStatus' => OperationRequest::enum('ACTIVE'), + 'fullTitle' => 'Generated client', + ])); + } + + public function testItAcceptsObjectsWithGetAllDataWhenExecutingGeneratedMutationByMethodName(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + $newWork = new class () { + public function getAllData(): array + { + return [ + 'workType' => OperationRequest::enum('MONOGRAPH'), + 'workStatus' => OperationRequest::enum('ACTIVE'), + 'fullTitle' => 'Generated client', + ]; + } + }; + + $this->assertSame('work-1', $client->createWork($newWork)); + } + + public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + $newWork = new NewWork([ + 'workType' => OperationRequest::enum('MONOGRAPH'), + 'workStatus' => OperationRequest::enum('ACTIVE'), + 'fullTitle' => 'Generated client', + ]); + + $this->assertSame('work-1', $client->createWork($newWork)); + } +} diff --git a/tests/GraphQL/Models/AbstractModelTest.php b/tests/GraphQL/Models/AbstractModelTest.php deleted file mode 100644 index 9b0060e..0000000 --- a/tests/GraphQL/Models/AbstractModelTest.php +++ /dev/null @@ -1,53 +0,0 @@ -getMockBuilder(AbstractModel::class) - ->setConstructorArgs([['foo' => 'bar']]) - ->getMockForAbstractClass(); - - $this->assertSame('bar', $model->getData('foo')); - } - - public function testSetData(): void - { - $model = $this->getMockBuilder(AbstractModel::class) - ->getMockForAbstractClass(); - - $model->setData('foo', 'bar'); - - $this->assertSame('bar', $model->getData('foo')); - } - - public function testSetDataToNull(): void - { - $model = $this->getMockBuilder(AbstractModel::class) - ->setConstructorArgs([['foo' => 'bar']]) - ->getMockForAbstractClass(); - - $model->setData('foo', null); - - $this->assertNull($model->getData('foo')); - } - - public function testGetAllData(): void - { - $data = [ - 'foo' => 'bar', - 'baz' => 'qux' - ]; - - $model = $this->getMockBuilder(AbstractModel::class) - ->setConstructorArgs([$data]) - ->getMockForAbstractClass(); - - $this->assertSame($data, $model->getAllData()); - } -} diff --git a/tests/GraphQL/Models/AffiliationTest.php b/tests/GraphQL/Models/AffiliationTest.php deleted file mode 100644 index a3e64cf..0000000 --- a/tests/GraphQL/Models/AffiliationTest.php +++ /dev/null @@ -1,25 +0,0 @@ -setAffiliationId('aef9abbd-5570-434e-af90-04ee447625dd'); - $affiliation->setContributionId('9dc580ba-8fd0-4e66-9165-cddbf500d4bd'); - $affiliation->setInstitutionId('d1c90c01-6a8b-4589-a8e2-27a9e8092b5d'); - $affiliation->setAffiliationOrdinal(1); - $affiliation->setPosition('Senior Professor'); - - $this->assertEquals('aef9abbd-5570-434e-af90-04ee447625dd', $affiliation->getAffiliationId()); - $this->assertEquals('9dc580ba-8fd0-4e66-9165-cddbf500d4bd', $affiliation->getContributionId()); - $this->assertEquals('d1c90c01-6a8b-4589-a8e2-27a9e8092b5d', $affiliation->getInstitutionId()); - $this->assertEquals(1, $affiliation->getAffiliationOrdinal()); - $this->assertEquals('Senior Professor', $affiliation->getPosition()); - } -} diff --git a/tests/GraphQL/Models/ContributionTest.php b/tests/GraphQL/Models/ContributionTest.php deleted file mode 100644 index 9fd716c..0000000 --- a/tests/GraphQL/Models/ContributionTest.php +++ /dev/null @@ -1,46 +0,0 @@ -setContributionId($contributionId); - $contribution->setContributorId($contributorId); - $contribution->setWorkId($workId); - $contribution->setContributionType($contributionType); - $contribution->setMainContribution($mainContribution); - $contribution->setBiography($biography); - $contribution->setFirstName($firstName); - $contribution->setLastName($lastName); - $contribution->setFullName($fullName); - $contribution->setContributionOrdinal($contributionOrdinal); - - $this->assertSame($contributionId, $contribution->getContributionId()); - $this->assertSame($contributorId, $contribution->getContributorId()); - $this->assertSame($workId, $contribution->getWorkId()); - $this->assertSame($contributionType, $contribution->getContributionType()); - $this->assertSame($mainContribution, $contribution->getMainContribution()); - $this->assertSame($biography, $contribution->getBiography()); - $this->assertSame($firstName, $contribution->getFirstName()); - $this->assertSame($lastName, $contribution->getLastName()); - $this->assertSame($fullName, $contribution->getFullName()); - $this->assertSame($contributionOrdinal, $contribution->getContributionOrdinal()); - } -} diff --git a/tests/GraphQL/Models/ContributorTest.php b/tests/GraphQL/Models/ContributorTest.php deleted file mode 100644 index 700ac5f..0000000 --- a/tests/GraphQL/Models/ContributorTest.php +++ /dev/null @@ -1,34 +0,0 @@ -setContributorId($contributorId); - $contributor->setFirstName($firstName); - $contributor->setLastName($lastName); - $contributor->setFullName($fullName); - $contributor->setOrcid($orcid); - $contributor->setWebsite($website); - - $this->assertSame($contributorId, $contributor->getContributorId()); - $this->assertSame($firstName, $contributor->getFirstName()); - $this->assertSame($lastName, $contributor->getLastName()); - $this->assertSame($fullName, $contributor->getFullName()); - $this->assertSame($orcid, $contributor->getOrcid()); - $this->assertSame($website, $contributor->getWebsite()); - } -} diff --git a/tests/GraphQL/Models/FundingTest.php b/tests/GraphQL/Models/FundingTest.php deleted file mode 100644 index eafb951..0000000 --- a/tests/GraphQL/Models/FundingTest.php +++ /dev/null @@ -1,40 +0,0 @@ -setFundingId($fundingId); - $funding->setWorkId($workId); - $funding->setInstitutionId($institutionId); - $funding->setProgram($program); - $funding->setProjectName($projectName); - $funding->setProjectShortName($projectShortName); - $funding->setGrantNumber($grantNumber); - $funding->setJurisdiction($jurisdiction); - - $this->assertSame($fundingId, $funding->getFundingId()); - $this->assertSame($workId, $funding->getWorkId()); - $this->assertSame($institutionId, $funding->getInstitutionId()); - $this->assertSame($program, $funding->getProgram()); - $this->assertSame($projectName, $funding->getProjectName()); - $this->assertSame($projectShortName, $funding->getProjectShortName()); - $this->assertSame($grantNumber, $funding->getGrantNumber()); - $this->assertSame($jurisdiction, $funding->getJurisdiction()); - } -} diff --git a/tests/GraphQL/Models/ImprintTest.php b/tests/GraphQL/Models/ImprintTest.php deleted file mode 100644 index 2ed1817..0000000 --- a/tests/GraphQL/Models/ImprintTest.php +++ /dev/null @@ -1,31 +0,0 @@ -setImprintId($imprintId); - $imprint->setPublisherId($publisherId); - $imprint->setImprintName($imprintName); - $imprint->setImprintUrl($imprintUrl); - $imprint->setCrossmarkDoi($crossmarkDoi); - - $this->assertSame($imprintId, $imprint->getImprintId()); - $this->assertSame($publisherId, $imprint->getPublisherId()); - $this->assertSame($imprintName, $imprint->getImprintName()); - $this->assertSame($imprintUrl, $imprint->getImprintUrl()); - $this->assertSame($crossmarkDoi, $imprint->getCrossmarkDoi()); - } -} diff --git a/tests/GraphQL/Models/InstitutionTest.php b/tests/GraphQL/Models/InstitutionTest.php deleted file mode 100644 index a0664e2..0000000 --- a/tests/GraphQL/Models/InstitutionTest.php +++ /dev/null @@ -1,31 +0,0 @@ -setInstitutionId($institutionId); - $institution->setInstitutionName($institutionName); - $institution->setInstitutionDoi($institutionDoi); - $institution->setCountryCode($countryCode); - $institution->setRor($ror); - - $this->assertSame($institutionId, $institution->getInstitutionId()); - $this->assertSame($institutionName, $institution->getInstitutionName()); - $this->assertSame($institutionDoi, $institution->getInstitutionDoi()); - $this->assertSame($countryCode, $institution->getCountryCode()); - $this->assertSame($ror, $institution->getRor()); - } -} diff --git a/tests/GraphQL/Models/IssueTest.php b/tests/GraphQL/Models/IssueTest.php deleted file mode 100644 index 7b9dbca..0000000 --- a/tests/GraphQL/Models/IssueTest.php +++ /dev/null @@ -1,28 +0,0 @@ -setIssueId($issueId); - $issue->setWorkId($workId); - $issue->setSeriesId($seriesId); - $issue->setIssueOrdinal($issueOrdinal); - - $this->assertSame($issueId, $issue->getIssueId()); - $this->assertSame($workId, $issue->getWorkId()); - $this->assertSame($seriesId, $issue->getSeriesId()); - $this->assertSame($issueOrdinal, $issue->getIssueOrdinal()); - } -} diff --git a/tests/GraphQL/Models/LanguageTest.php b/tests/GraphQL/Models/LanguageTest.php deleted file mode 100644 index 002bc19..0000000 --- a/tests/GraphQL/Models/LanguageTest.php +++ /dev/null @@ -1,31 +0,0 @@ -setLanguageId($languageId); - $language->setWorkId($workId); - $language->setLanguageCode($languageCode); - $language->setLanguageRelation($languageRelation); - $language->setMainLanguage($mainLanguage); - - $this->assertSame($languageId, $language->getLanguageId()); - $this->assertSame($workId, $language->getWorkId()); - $this->assertSame($languageCode, $language->getLanguageCode()); - $this->assertSame($languageRelation, $language->getLanguageRelation()); - $this->assertSame($mainLanguage, $language->getMainLanguage()); - } -} diff --git a/tests/GraphQL/Models/LocationTest.php b/tests/GraphQL/Models/LocationTest.php deleted file mode 100644 index 56c50d1..0000000 --- a/tests/GraphQL/Models/LocationTest.php +++ /dev/null @@ -1,34 +0,0 @@ -setLocationId($locationId); - $location->setPublicationId($publicationId); - $location->setLandingPage($landingPage); - $location->setFullTextUrl($fullTextUrl); - $location->setLocationPlatform($locationPlatform); - $location->setCanonical($canonical); - - $this->assertSame($locationId, $location->getLocationId()); - $this->assertSame($publicationId, $location->getPublicationId()); - $this->assertSame($landingPage, $location->getLandingPage()); - $this->assertSame($fullTextUrl, $location->getFullTextUrl()); - $this->assertSame($locationPlatform, $location->getLocationPlatform()); - $this->assertSame($canonical, $location->getCanonical()); - } -} diff --git a/tests/GraphQL/Models/PriceTest.php b/tests/GraphQL/Models/PriceTest.php deleted file mode 100644 index 54e4559..0000000 --- a/tests/GraphQL/Models/PriceTest.php +++ /dev/null @@ -1,28 +0,0 @@ -setPriceId($priceId); - $price->setPublicationId($publicationId); - $price->setCurrencyCode($currentCode); - $price->setUnitPrice($unitPrice); - - $this->assertSame($priceId, $price->getPriceId()); - $this->assertSame($publicationId, $price->getPublicationId()); - $this->assertSame($currentCode, $price->getCurrencyCode()); - $this->assertSame($unitPrice, $price->getUnitPrice()); - } -} diff --git a/tests/GraphQL/Models/PublicationTest.php b/tests/GraphQL/Models/PublicationTest.php deleted file mode 100644 index b068cd7..0000000 --- a/tests/GraphQL/Models/PublicationTest.php +++ /dev/null @@ -1,54 +0,0 @@ -setPublicationId($publicationId); - $publication->setWorkId($workId); - $publication->setPublicationType($publicationType); - $publication->setIsbn($isbn); - $publication->setWidthMm($widthMm); - $publication->setHeightMm($heightMm); - $publication->setDepthMm($depthMm); - $publication->setWeightG($weightG); - - $this->assertSame($publicationId, $publication->getPublicationId()); - $this->assertSame($workId, $publication->getWorkId()); - $this->assertSame($publicationType, $publication->getPublicationType()); - $this->assertSame($isbn, $publication->getIsbn()); - $this->assertSame($widthMm, $publication->getWidthMm()); - $this->assertSame($heightMm, $publication->getHeightMm()); - $this->assertSame($depthMm, $publication->getDepthMm()); - $this->assertSame($weightG, $publication->getWeightG()); - } - - public function testGettersAndSettersWithConvention(): void - { - $publication = new Publication(); - $publication->setWidthMm(156, true); - $publication->setHeightMm(234, true); - $publication->setDepthMm(5, true); - $publication->setWeightG(206, true); - - $this->assertSame(6.14, $publication->getWidthIn()); - $this->assertSame(9.21, $publication->getHeightIn()); - $this->assertSame(0.2, $publication->getDepthIn()); - $this->assertSame(7.2664, $publication->getWeightOz()); - } -} diff --git a/tests/GraphQL/Models/PublisherTest.php b/tests/GraphQL/Models/PublisherTest.php deleted file mode 100644 index f81cb2d..0000000 --- a/tests/GraphQL/Models/PublisherTest.php +++ /dev/null @@ -1,28 +0,0 @@ -setPublisherId($publisherId); - $publisher->setPublisherName($publisherName); - $publisher->setPublisherShortName($publisherShortName); - $publisher->setPublisherUrl($publisherUrl); - - $this->assertSame($publisherId, $publisher->getPublisherId()); - $this->assertSame($publisherName, $publisher->getPublisherName()); - $this->assertSame($publisherShortName, $publisher->getPublisherShortName()); - $this->assertSame($publisherUrl, $publisher->getPublisherUrl()); - } -} diff --git a/tests/GraphQL/Models/ReferenceTest.php b/tests/GraphQL/Models/ReferenceTest.php deleted file mode 100644 index c8660f3..0000000 --- a/tests/GraphQL/Models/ReferenceTest.php +++ /dev/null @@ -1,87 +0,0 @@ -setReferenceId($referenceId); - $reference->setWorkId($workId); - $reference->setReferenceOrdinal($referenceOrdinal); - $reference->setDoi($doi); - $reference->setUnstructuredCitation($unstructuredCitation); - $reference->setIssn($issn); - $reference->setIsbn($isbn); - $reference->setJournalTitle($journalTitle); - $reference->setArticleTitle($articleTitle); - $reference->setSeriesTitle($seriesTitle); - $reference->setVolumeTitle($volumeTitle); - $reference->setEdition($edition); - $reference->setAuthor($author); - $reference->setVolume($volume); - $reference->setIssue($issue); - $reference->setFirstPage($firstPage); - $reference->setComponentNumber($componentNumber); - $reference->setStandardDesignator($standardDesignator); - $reference->setStandardsBodyName($standardsBodyName); - $reference->setStandardsBodyAcronym($standardsBodyAcronym); - $reference->setUrl($url); - $reference->setPublicationDate($publicationDate); - $reference->setRetrievalDate($retrievalDate); - - $this->assertSame($referenceId, $reference->getReferenceId()); - $this->assertSame($workId, $reference->getWorkId()); - $this->assertSame($referenceOrdinal, $reference->getReferenceOrdinal()); - $this->assertSame($doi, $reference->getDoi()); - $this->assertSame($unstructuredCitation, $reference->getUnstructuredCitation()); - $this->assertSame($issn, $reference->getIssn()); - $this->assertSame($isbn, $reference->getIsbn()); - $this->assertSame($journalTitle, $reference->getJournalTitle()); - $this->assertSame($articleTitle, $reference->getArticleTitle()); - $this->assertSame($seriesTitle, $reference->getSeriesTitle()); - $this->assertSame($volumeTitle, $reference->getVolumeTitle()); - $this->assertSame($edition, $reference->getEdition()); - $this->assertSame($author, $reference->getAuthor()); - $this->assertSame($volume, $reference->getVolume()); - $this->assertSame($issue, $reference->getIssue()); - $this->assertSame($firstPage, $reference->getFirstPage()); - $this->assertSame($componentNumber, $reference->getComponentNumber()); - $this->assertSame($standardDesignator, $reference->getStandardDesignator()); - $this->assertSame($standardsBodyName, $reference->getStandardsBodyName()); - $this->assertSame($standardsBodyAcronym, $reference->getStandardsBodyAcronym()); - $this->assertSame($url, $reference->getUrl()); - $this->assertSame($publicationDate, $reference->getPublicationDate()); - $this->assertSame($retrievalDate, $reference->getRetrievalDate()); - } -} diff --git a/tests/GraphQL/Models/SeriesTest.php b/tests/GraphQL/Models/SeriesTest.php deleted file mode 100644 index a62d106..0000000 --- a/tests/GraphQL/Models/SeriesTest.php +++ /dev/null @@ -1,43 +0,0 @@ -setSeriesId($seriesId); - $series->setSeriesType($seriesType); - $series->setSeriesName($seriesName); - $series->setIssnPrint($issnPrint); - $series->setIssnDigital($issnDigital); - $series->setSeriesUrl($seriesUrl); - $series->setSeriesDescription($seriesDescription); - $series->setSeriesCfpUrl($seriesCfpUrl); - $series->setImprintId($imprintId); - - $this->assertSame($seriesId, $series->getSeriesId()); - $this->assertSame($seriesType, $series->getSeriesType()); - $this->assertSame($seriesName, $series->getSeriesName()); - $this->assertSame($issnPrint, $series->getIssnPrint()); - $this->assertSame($issnDigital, $series->getIssnDigital()); - $this->assertSame($seriesUrl, $series->getSeriesUrl()); - $this->assertSame($seriesDescription, $series->getSeriesDescription()); - $this->assertSame($seriesCfpUrl, $series->getSeriesCfpUrl()); - $this->assertSame($imprintId, $series->getImprintId()); - } -} diff --git a/tests/GraphQL/Models/SubjectTest.php b/tests/GraphQL/Models/SubjectTest.php deleted file mode 100644 index e0037b3..0000000 --- a/tests/GraphQL/Models/SubjectTest.php +++ /dev/null @@ -1,31 +0,0 @@ -setSubjectId($subjectId); - $subject->setWorkId($workId); - $subject->setSubjectType($subjectType); - $subject->setSubjectCode($subjectCode); - $subject->setSubjectOrdinal($subjectOrdinal); - - $this->assertSame($subjectId, $subject->getSubjectId()); - $this->assertSame($workId, $subject->getWorkId()); - $this->assertSame($subjectType, $subject->getSubjectType()); - $this->assertSame($subjectCode, $subject->getSubjectCode()); - $this->assertSame($subjectOrdinal, $subject->getSubjectOrdinal()); - } -} diff --git a/tests/GraphQL/Models/WorkRelationTest.php b/tests/GraphQL/Models/WorkRelationTest.php deleted file mode 100644 index 04cd5ce..0000000 --- a/tests/GraphQL/Models/WorkRelationTest.php +++ /dev/null @@ -1,31 +0,0 @@ -setWorkRelationId($workRelationId); - $workRelation->setRelatorWorkId($relatorWorkId); - $workRelation->setRelatedWorkId($relatedWorkId); - $workRelation->setRelationType($relationType); - $workRelation->setRelationOrdinal($relationOrdinal); - - $this->assertSame($workRelationId, $workRelation->getWorkRelationId()); - $this->assertSame($relatorWorkId, $workRelation->getRelatorWorkId()); - $this->assertSame($relatedWorkId, $workRelation->getRelatedWorkId()); - $this->assertSame($relationType, $workRelation->getRelationType()); - $this->assertSame($relationOrdinal, $workRelation->getRelationOrdinal()); - } -} diff --git a/tests/GraphQL/Models/WorkTest.php b/tests/GraphQL/Models/WorkTest.php deleted file mode 100644 index 88ee252..0000000 --- a/tests/GraphQL/Models/WorkTest.php +++ /dev/null @@ -1,122 +0,0 @@ -setWorkId($workId); - $work->setWorkType($workType); - $work->setWorkStatus($workStatus); - $work->setFullTitle($fullTitle); - $work->setTitle($title); - $work->setSubtitle($subtitle); - $work->setReference($reference); - $work->setEdition($edition); - $work->setImprintId($imprintId); - $work->setDoi($doi); - $work->setPublicationDate($publicationDate); - $work->setWithdrawnDate($withdrawnDate); - $work->setPlace($place); - $work->setPageCount($pageCount); - $work->setPageBreakdown($pageBreakdown); - $work->setImageCount($imageCount); - $work->setTableCount($tableCount); - $work->setAudioCount($audioCount); - $work->setVideoCount($videoCount); - $work->setLicense($license); - $work->setCopyrightHolder($copyrightHolder); - $work->setLandingPage($landingPage); - $work->setLccn($lccn); - $work->setOclc($oclc); - $work->setShortAbstract($shortAbstract); - $work->setLongAbstract($longAbstract); - $work->setGeneralNote($generalNote); - $work->setBibliographyNote($bibliographyNote); - $work->setToc($toc); - $work->setCoverUrl($coverUrl); - $work->setCoverCaption($coverCaption); - $work->setFirstPage($firstPage); - $work->setLastPage($lastPage); - $work->setPageInterval($pageInterval); - - $this->assertSame($workId, $work->getWorkId()); - $this->assertSame($workType, $work->getWorkType()); - $this->assertSame($workStatus, $work->getWorkStatus()); - $this->assertSame($fullTitle, $work->getFullTitle()); - $this->assertSame($title, $work->getTitle()); - $this->assertSame($subtitle, $work->getSubtitle()); - $this->assertSame($reference, $work->getReference()); - $this->assertSame($edition, $work->getEdition()); - $this->assertSame($imprintId, $work->getImprintId()); - $this->assertSame($doi, $work->getDoi()); - $this->assertSame($publicationDate, $work->getPublicationDate()); - $this->assertSame($withdrawnDate, $work->getWithdrawnDate()); - $this->assertSame($place, $work->getPlace()); - $this->assertSame($pageCount, $work->getPageCount()); - $this->assertSame($pageBreakdown, $work->getPageBreakdown()); - $this->assertSame($imageCount, $work->getImageCount()); - $this->assertSame($tableCount, $work->getTableCount()); - $this->assertSame($audioCount, $work->getAudioCount()); - $this->assertSame($videoCount, $work->getVideoCount()); - $this->assertSame($license, $work->getLicense()); - $this->assertSame($copyrightHolder, $work->getCopyrightHolder()); - $this->assertSame($landingPage, $work->getLandingPage()); - $this->assertSame($lccn, $work->getLccn()); - $this->assertSame($oclc, $work->getOclc()); - $this->assertSame($shortAbstract, $work->getShortAbstract()); - $this->assertSame($longAbstract, $work->getLongAbstract()); - $this->assertSame($generalNote, $work->getGeneralNote()); - $this->assertSame($bibliographyNote, $work->getBibliographyNote()); - $this->assertSame($toc, $work->getToc()); - $this->assertSame($coverUrl, $work->getCoverUrl()); - $this->assertSame($coverCaption, $work->getCoverCaption()); - $this->assertSame($firstPage, $work->getFirstPage()); - $this->assertSame($lastPage, $work->getLastPage()); - $this->assertSame($pageInterval, $work->getPageInterval()); - } -} diff --git a/tests/GraphQL/MutationBuilderSchemaSyncTest.php b/tests/GraphQL/MutationBuilderSchemaSyncTest.php deleted file mode 100644 index a3078ce..0000000 --- a/tests/GraphQL/MutationBuilderSchemaSyncTest.php +++ /dev/null @@ -1,333 +0,0 @@ -assertMutation( - 'createAdditionalResource', - 'workId: "c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859", title: "Resource title", description: "Resource description", attribution: "John Doe", resourceType: OTHER, doi: "https:\/\/doi.org\/10.00000\/00000000", handle: "https:\/\/hdl.handle.net\/123", url: "https:\/\/example.com", date: "2026-04-10", resourceOrdinal: 2', - 'workResourceId', - [ - 'workId' => 'c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859', - 'title' => 'Resource title', - 'description' => 'Resource description', - 'attribution' => 'John Doe', - 'resourceType' => 'OTHER', - 'doi' => 'https://doi.org/10.00000/00000000', - 'handle' => 'https://hdl.handle.net/123', - 'url' => 'https://example.com', - 'date' => '2026-04-10', - 'resourceOrdinal' => 2, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'updateAdditionalResource', - 'additionalResourceId: "6f02b20c-e94e-46ff-a3f7-87f9e20bf9fd", workId: "c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859", title: "Resource title", description: "Resource description", attribution: "John Doe", resourceType: OTHER, doi: "https:\/\/doi.org\/10.00000\/00000000", handle: "https:\/\/hdl.handle.net\/123", url: "https:\/\/example.com", date: "2026-04-10", resourceOrdinal: 2', - 'workResourceId', - [ - 'additionalResourceId' => '6f02b20c-e94e-46ff-a3f7-87f9e20bf9fd', - 'workId' => 'c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859', - 'title' => 'Resource title', - 'description' => 'Resource description', - 'attribution' => 'John Doe', - 'resourceType' => 'OTHER', - 'doi' => 'https://doi.org/10.00000/00000000', - 'handle' => 'https://hdl.handle.net/123', - 'url' => 'https://example.com', - 'date' => '2026-04-10', - 'resourceOrdinal' => 2, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'deleteAdditionalResource', - 'additionalResourceId: "6f02b20c-e94e-46ff-a3f7-87f9e20bf9fd"', - 'workResourceId', - ['additionalResourceId' => '6f02b20c-e94e-46ff-a3f7-87f9e20bf9fd'], - '', - false - ); - } - - public function testBuildMarkupMutations(): void - { - $this->assertMutation( - 'createAbstract', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", content: "Abstract text", localeCode: EN_GB, abstractType: LONG, canonical: true', - 'abstractId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'content' => 'Abstract text', - 'localeCode' => 'EN_GB', - 'abstractType' => 'LONG', - 'canonical' => true, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'createAward', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", title: "Award title", url: "https:\/\/example.com\/award", category: "Prize", year: 2026, jury: "Jury", country: GB, prizeStatement: "Winner", role: AUTHOR, awardOrdinal: 1', - 'awardId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'title' => 'Award title', - 'url' => 'https://example.com/award', - 'category' => 'Prize', - 'year' => 2026, - 'jury' => 'Jury', - 'country' => 'GB', - 'prizeStatement' => 'Winner', - 'role' => 'AUTHOR', - 'awardOrdinal' => 1, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'createBiography', - 'contributionId: "7b865707-f8ec-4c14-a580-f4a9767f2dd5", content: "Biography text", canonical: true, localeCode: EN_GB', - 'biographyId', - [ - 'contributionId' => '7b865707-f8ec-4c14-a580-f4a9767f2dd5', - 'content' => 'Biography text', - 'canonical' => true, - 'localeCode' => 'EN_GB', - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'createBookReview', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", title: "Review title", authorName: "John Doe", reviewerOrcid: "https:\/\/orcid.org\/0000-0000-0000-0000", reviewerInstitutionId: "77af8f4c-0ea0-44de-bbfa-c68cc2fc60fb", url: "https:\/\/example.com\/review", doi: "https:\/\/doi.org\/10.00000\/11111111", reviewDate: "2026-04-10", journalName: "Journal", journalVolume: "4", journalNumber: "2", journalIssn: "1234-5678", pageRange: "10-12", text: "Review text", reviewOrdinal: 3', - 'bookReviewId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'title' => 'Review title', - 'authorName' => 'John Doe', - 'reviewerOrcid' => 'https://orcid.org/0000-0000-0000-0000', - 'reviewerInstitutionId' => '77af8f4c-0ea0-44de-bbfa-c68cc2fc60fb', - 'url' => 'https://example.com/review', - 'doi' => 'https://doi.org/10.00000/11111111', - 'reviewDate' => '2026-04-10', - 'journalName' => 'Journal', - 'journalVolume' => '4', - 'journalNumber' => '2', - 'journalIssn' => '1234-5678', - 'pageRange' => '10-12', - 'text' => 'Review text', - 'reviewOrdinal' => 3, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'createEndorsement', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", authorName: "Jane Doe", authorRole: "Editor", authorOrcid: "https:\/\/orcid.org\/0000-0000-0000-0001", authorInstitutionId: "77af8f4c-0ea0-44de-bbfa-c68cc2fc60fb", url: "https:\/\/example.com\/endorsement", text: "Endorsement text", endorsementOrdinal: 1', - 'endorsementId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'authorName' => 'Jane Doe', - 'authorRole' => 'Editor', - 'authorOrcid' => 'https://orcid.org/0000-0000-0000-0001', - 'authorInstitutionId' => '77af8f4c-0ea0-44de-bbfa-c68cc2fc60fb', - 'url' => 'https://example.com/endorsement', - 'text' => 'Endorsement text', - 'endorsementOrdinal' => 1, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - - $this->assertMutation( - 'createTitle', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", localeCode: EN_GB, fullTitle: "Full title", title: "Title", subtitle: "Subtitle", canonical: true', - 'titleId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'localeCode' => 'EN_GB', - 'fullTitle' => 'Full title', - 'title' => 'Title', - 'subtitle' => 'Subtitle', - 'canonical' => true, - ], - 'markupFormat: HTML', - true, - ['markupFormat' => 'HTML'] - ); - } - - public function testBuildContactAndFeaturedVideoMutations(): void - { - $this->assertMutation( - 'createContact', - 'publisherId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", contactType: SUPPORT, email: "support@example.com"', - 'contactId', - [ - 'publisherId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741', - 'contactType' => 'SUPPORT', - 'email' => 'support@example.com', - ] - ); - - $this->assertMutation( - 'updateContact', - 'contactId: "d83d440f-190f-4695-b752-3080c5d4ea40", publisherId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", contactType: SUPPORT, email: "support@example.com"', - 'contactId', - [ - 'contactId' => 'd83d440f-190f-4695-b752-3080c5d4ea40', - 'publisherId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741', - 'contactType' => 'SUPPORT', - 'email' => 'support@example.com', - ] - ); - - $this->assertMutation( - 'deleteContact', - 'contactId: "d83d440f-190f-4695-b752-3080c5d4ea40"', - 'contactId', - ['contactId' => 'd83d440f-190f-4695-b752-3080c5d4ea40'], - '', - false - ); - - $this->assertMutation( - 'createWorkFeaturedVideo', - 'workId: "b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a", title: "Featured video", url: "https:\/\/example.com\/video", width: 1920, height: 1080', - 'workFeaturedVideoId', - [ - 'workId' => 'b0a17dad-4ef0-4429-89e4-a3ddd9c4f72a', - 'title' => 'Featured video', - 'url' => 'https://example.com/video', - 'width' => 1920, - 'height' => 1080, - ] - ); - } - - public function testBuildMoveMutations(): void - { - $cases = [ - ['moveAffiliation', 'affiliationId', 'affiliationId'], - ['moveContribution', 'contributionId', 'contributionId'], - ['moveIssue', 'issueId', 'issueId'], - ['moveReference', 'referenceId', 'referenceId'], - ['moveAdditionalResource', 'additionalResourceId', 'workResourceId'], - ['moveAward', 'awardId', 'awardId'], - ['moveEndorsement', 'endorsementId', 'endorsementId'], - ['moveBookReview', 'bookReviewId', 'bookReviewId'], - ['moveSubject', 'subjectId', 'subjectId'], - ['moveWorkRelation', 'workRelationId', 'workRelationId'], - ]; - - foreach ($cases as $case) { - $this->assertMutation( - $case[0], - $case[1] . ': "6b4060ff-a89b-4bdc-b722-2b87ef9d057a", newOrdinal: 4', - $case[2], - [ - $case[1] => '6b4060ff-a89b-4bdc-b722-2b87ef9d057a', - 'newOrdinal' => 4, - ], - '', - false - ); - } - } - - public function testBuildUploadMutations(): void - { - $common = [ - 'declaredMimeType' => 'application/pdf', - 'declaredExtension' => 'pdf', - 'declaredSha256' => 'abc123', - ]; - - $this->assertMutation( - 'initPublicationFileUpload', - 'publicationId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", declaredMimeType: "application\/pdf", declaredExtension: "pdf", declaredSha256: "abc123"', - 'fileUploadId', - ['publicationId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741'] + $common - ); - - $this->assertMutation( - 'initFrontcoverFileUpload', - 'workId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", declaredMimeType: "application\/pdf", declaredExtension: "pdf", declaredSha256: "abc123"', - 'fileUploadId', - ['workId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741'] + $common - ); - - $this->assertMutation( - 'initAdditionalResourceFileUpload', - 'additionalResourceId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", declaredMimeType: "application\/pdf", declaredExtension: "pdf", declaredSha256: "abc123"', - 'fileUploadId', - ['additionalResourceId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741'] + $common - ); - - $this->assertMutation( - 'initWorkFeaturedVideoFileUpload', - 'workFeaturedVideoId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741", declaredMimeType: "application\/pdf", declaredExtension: "pdf", declaredSha256: "abc123"', - 'fileUploadId', - ['workFeaturedVideoId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741'] + $common - ); - - $this->assertMutation( - 'completeFileUpload', - 'fileUploadId: "f70cac7c-b6c2-4af6-833b-910bb8bb1741"', - 'fileId', - ['fileUploadId' => 'f70cac7c-b6c2-4af6-833b-910bb8bb1741'] - ); - } - - private function assertMutation( - string $mutationName, - string $data, - string $returnValue, - array $input, - string $extraArgs = '', - bool $nested = true, - array $extraInput = [] - ): void { - $args = [$nested ? 'data: {' . $data . '}' : $data]; - if ($extraArgs !== '') { - $args[] = $extraArgs; - } - - $expectedMutation = <<assertSame($expectedMutation, $mutation); - } -} diff --git a/tests/GraphQL/MutationBuilderTest.php b/tests/GraphQL/MutationBuilderTest.php deleted file mode 100644 index 2b5faf0..0000000 --- a/tests/GraphQL/MutationBuilderTest.php +++ /dev/null @@ -1,1677 +0,0 @@ -expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Mutation \'foo\' not found.'); - - $mutation = MutationBuilder::build('foo', []); - } - - public function testBuildCreateAffiliationMutation(): void - { - $mutationName = 'createAffiliation'; - $data = 'contributionId: "c6f1380f-e4e5-4638-aab8-ee550cee449e", ' . - 'institutionId: "730095c4-99d3-4f4f-af3b-e189e2364bac", ' . - 'affiliationOrdinal: 1'; - $returnValue = 'affiliationId'; - - $expectedMutation = << 'c6f1380f-e4e5-4638-aab8-ee550cee449e', - 'institutionId' => '730095c4-99d3-4f4f-af3b-e189e2364bac', - 'affiliationOrdinal' => 1, - 'position' => null - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateAffiliationMutation(): void - { - $mutationName = 'updateAffiliation'; - $data = 'affiliationId: "c3f76bf8-bf27-447c-9934-97340e65ed12", ' . - 'contributionId: "c6f1380f-e4e5-4638-aab8-ee550cee449e", ' . - 'institutionId: "730095c4-99d3-4f4f-af3b-e189e2364bac", ' . - 'affiliationOrdinal: 1, ' . - 'position: "Foobar"'; - $returnValue = 'affiliationId'; - - $expectedMutation = << 'c3f76bf8-bf27-447c-9934-97340e65ed12', - 'contributionId' => 'c6f1380f-e4e5-4638-aab8-ee550cee449e', - 'institutionId' => '730095c4-99d3-4f4f-af3b-e189e2364bac', - 'affiliationOrdinal' => 1, - 'position' => 'Foobar' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteAffiliationMutation(): void - { - $mutationName = 'deleteAffiliation'; - $data = 'affiliationId: "c3f76bf8-bf27-447c-9934-97340e65ed12"'; - $returnValue = 'affiliationId'; - - $expectedMutation = << 'c3f76bf8-bf27-447c-9934-97340e65ed12'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateContributionMutation(): void - { - $mutationName = 'createContribution'; - $data = 'workId: "c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859", ' . - 'contributorId: "8b8e429d-a03c-42a7-a861-842841fae9e0", ' . - 'contributionType: AUTHOR, ' . - 'mainContribution: true, ' . - 'contributionOrdinal: 1, ' . - 'firstName: "John", ' . - 'lastName: "Doe", ' . - 'fullName: "John Doe"'; - $returnValue = 'contributionId'; - - $expectedMutation = << 'c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859', - 'contributorId' => '8b8e429d-a03c-42a7-a861-842841fae9e0', - 'contributionType' => 'AUTHOR', - 'mainContribution' => true, - 'contributionOrdinal' => 1, - 'firstName' => 'John', - 'lastName' => 'Doe', - 'fullName' => 'John Doe', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateContributionMutation(): void - { - $mutationName = 'updateContribution'; - $data = 'contributionId: "f7645045-7424-4912-af34-13b915ec76bc", ' . - 'workId: "c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859", ' . - 'contributorId: "8b8e429d-a03c-42a7-a861-842841fae9e0", ' . - 'contributionType: AUTHOR, ' . - 'mainContribution: true, ' . - 'contributionOrdinal: 1, ' . - 'firstName: "John", ' . - 'lastName: "Doe", ' . - 'fullName: "John Doe"'; - $returnValue = 'contributionId'; - - $expectedMutation = << 'f7645045-7424-4912-af34-13b915ec76bc', - 'workId' => 'c53fa7ab-0ae0-44fd-ad28-1d5b8a5e3859', - 'contributorId' => '8b8e429d-a03c-42a7-a861-842841fae9e0', - 'contributionType' => 'AUTHOR', - 'mainContribution' => true, - 'contributionOrdinal' => 1, - 'firstName' => 'John', - 'lastName' => 'Doe', - 'fullName' => 'John Doe', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteContributionMutation(): void - { - $mutationName = 'deleteContribution'; - $data = 'contributionId: "f7645045-7424-4912-af34-13b915ec76bc"'; - $returnValue = 'contributionId'; - - $expectedMutation = << 'f7645045-7424-4912-af34-13b915ec76bc'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateContributorMutation(): void - { - $mutationName = 'createContributor'; - $data = 'firstName: "Mary", ' . - 'lastName: "Sue", ' . - 'fullName: "Mary Sue", ' . - 'orcid: "https:\/\/orcid.org\/0000-0000-0000-0000", ' . - 'website: "https:\/\/www.marysue.com\/"'; - $returnValue = 'contributorId'; - - $expectedMutation = << 'Mary', - 'lastName' => 'Sue', - 'fullName' => 'Mary Sue', - 'orcid' => 'https://orcid.org/0000-0000-0000-0000', - 'website' => 'https://www.marysue.com/' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateContributorMutation(): void - { - $mutationName = 'updateContributor'; - $data = 'contributorId: "bcd08ad4-53bc-47a9-a780-b9f770cf38bf", ' . - 'firstName: "Mary", ' . - 'lastName: "Sue", ' . - 'fullName: "Mary Sue", ' . - 'orcid: "https:\/\/orcid.org\/0000-0000-0000-0000", ' . - 'website: "https:\/\/www.marysue.com\/"'; - $returnValue = 'contributorId'; - - $expectedMutation = << 'bcd08ad4-53bc-47a9-a780-b9f770cf38bf', - 'firstName' => 'Mary', - 'lastName' => 'Sue', - 'fullName' => 'Mary Sue', - 'orcid' => 'https://orcid.org/0000-0000-0000-0000', - 'website' => 'https://www.marysue.com/' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteContributorMutation(): void - { - $mutationName = 'deleteContributor'; - $data = 'contributorId: "bcd08ad4-53bc-47a9-a780-b9f770cf38bf"'; - $returnValue = 'contributorId'; - - $expectedMutation = << 'bcd08ad4-53bc-47a9-a780-b9f770cf38bf'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateFundingMutation(): void - { - $mutationName = 'createFunding'; - $data = 'workId: "1891ec7a-e9b3-4d77-b0cc-c17130d9c7d1", ' . - 'institutionId: "d322dbb8-1168-40fd-a111-70a0ac1bbaa8", ' . - 'program: "FSE", ' . - 'projectName: "Marine Renewable Energy as Alien", ' . - 'projectShortname: "Alien Energy", ' . - 'grantNumber: "0602-02551B"'; - $returnValue = 'fundingId'; - - $expectedMutation = << '1891ec7a-e9b3-4d77-b0cc-c17130d9c7d1', - 'institutionId' => 'd322dbb8-1168-40fd-a111-70a0ac1bbaa8', - 'program' => 'FSE', - 'projectName' => 'Marine Renewable Energy as Alien', - 'projectShortname' => 'Alien Energy', - 'grantNumber' => '0602-02551B', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateFundingMutation(): void - { - $mutationName = 'updateFunding'; - $data = 'fundingId: "faa6e266-3b32-4465-b355-22c6721fe788", ' . - 'workId: "1891ec7a-e9b3-4d77-b0cc-c17130d9c7d1", ' . - 'institutionId: "d322dbb8-1168-40fd-a111-70a0ac1bbaa8", ' . - 'program: "FSE", ' . - 'projectName: "Marine Renewable Energy as Alien", ' . - 'projectShortname: "Alien Energy", ' . - 'grantNumber: "0602-02551B"'; - $returnValue = 'fundingId'; - - $expectedMutation = << 'faa6e266-3b32-4465-b355-22c6721fe788', - 'workId' => '1891ec7a-e9b3-4d77-b0cc-c17130d9c7d1', - 'institutionId' => 'd322dbb8-1168-40fd-a111-70a0ac1bbaa8', - 'program' => 'FSE', - 'projectName' => 'Marine Renewable Energy as Alien', - 'projectShortname' => 'Alien Energy', - 'grantNumber' => '0602-02551B', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteFundingMutation(): void - { - $mutationName = 'deleteFunding'; - $data = 'fundingId: "bcd08ad4-53bc-47a9-a780-b9f770cf38bf"'; - $returnValue = 'fundingId'; - - $expectedMutation = << 'bcd08ad4-53bc-47a9-a780-b9f770cf38bf'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateImprintMutation(): void - { - $mutationName = 'createImprint'; - $data = 'publisherId: "eac9c4ab-ed52-4482-8181-e03398904269", ' . - 'imprintName: "FooBar", ' . - 'imprintUrl: "https:\/\/foo.bar\/", ' . - 'crossmarkDoi: "https:\/\/doi.org\/10.5555\/12345678"'; - $returnValue = 'imprintId'; - - $expectedMutation = << 'eac9c4ab-ed52-4482-8181-e03398904269', - 'imprintName' => 'FooBar', - 'imprintUrl' => 'https://foo.bar/', - 'crossmarkDoi' => 'https://doi.org/10.5555/12345678' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateImprintMutation(): void - { - $mutationName = 'updateImprint'; - $data = 'imprintId: "6791d262-ac0b-4518-9c93-9d5f63d270eb", ' . - 'publisherId: "eac9c4ab-ed52-4482-8181-e03398904269", ' . - 'imprintName: "FooBar", ' . - 'imprintUrl: "https:\/\/foo.bar\/", ' . - 'crossmarkDoi: "https:\/\/doi.org\/10.5555\/12345678"'; - $returnValue = 'imprintId'; - - $expectedMutation = << '6791d262-ac0b-4518-9c93-9d5f63d270eb', - 'publisherId' => 'eac9c4ab-ed52-4482-8181-e03398904269', - 'imprintName' => 'FooBar', - 'imprintUrl' => 'https://foo.bar/', - 'crossmarkDoi' => 'https://doi.org/10.5555/12345678' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteImprintMutation(): void - { - $mutationName = 'deleteImprint'; - $data = 'imprintId: "6791d262-ac0b-4518-9c93-9d5f63d270eb"'; - $returnValue = 'imprintId'; - - $expectedMutation = << '6791d262-ac0b-4518-9c93-9d5f63d270eb'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateInstitutionMutation(): void - { - $mutationName = 'createInstitution'; - $data = 'institutionName: "FooBar", ' . - 'institutionDoi: "https:\/\/doi.org\/10.55555\/100000001", ' . - 'countryCode: IOT, ' . - 'ror: "https:\/\/ror.org\/012x3z456"'; - $returnValue = 'institutionId'; - - $expectedMutation = << 'FooBar', - 'countryCode' => 'IOT', - 'institutionDoi' => 'https://doi.org/10.55555/100000001', - 'ror' => 'https://ror.org/012x3z456' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateInstitutionMutation(): void - { - $mutationName = 'updateInstitution'; - $data = 'institutionId: "a89dc5c9-dc51-4a3e-860d-ba9285c3bd1d", ' . - 'institutionName: "FooBar", ' . - 'institutionDoi: "https:\/\/doi.org\/10.55555\/100000001", ' . - 'countryCode: IOT, ' . - 'ror: "https:\/\/ror.org\/012x3z456"'; - $returnValue = 'institutionId'; - - $expectedMutation = << 'a89dc5c9-dc51-4a3e-860d-ba9285c3bd1d', - 'institutionName' => 'FooBar', - 'countryCode' => 'IOT', - 'institutionDoi' => 'https://doi.org/10.55555/100000001', - 'ror' => 'https://ror.org/012x3z456' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteInstitutionMutation(): void - { - $mutationName = 'deleteInstitution'; - $data = 'institutionId: "a89dc5c9-dc51-4a3e-860d-ba9285c3bd1d"'; - $returnValue = 'institutionId'; - - $expectedMutation = << 'a89dc5c9-dc51-4a3e-860d-ba9285c3bd1d'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateIssueMutation(): void - { - $mutationName = 'createIssue'; - $data = 'seriesId: "d0818cf4-a22a-4d1d-845e-a6f46650a294", ' . - 'workId: "89b9e3f2-82d1-4c15-9a4f-f28332addabf", ' . - 'issueOrdinal: 10'; - $returnValue = 'issueId'; - - $expectedMutation = << 'd0818cf4-a22a-4d1d-845e-a6f46650a294', - 'workId' => '89b9e3f2-82d1-4c15-9a4f-f28332addabf', - 'issueOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateIssueMutation(): void - { - $mutationName = 'updateIssue'; - $data = 'issueId: "0c02c522-07a3-4c89-95c6-b5f4cdea31a3", ' . - 'seriesId: "d0818cf4-a22a-4d1d-845e-a6f46650a294", ' . - 'workId: "89b9e3f2-82d1-4c15-9a4f-f28332addabf", ' . - 'issueOrdinal: 10'; - $returnValue = 'issueId'; - - $expectedMutation = << '0c02c522-07a3-4c89-95c6-b5f4cdea31a3', - 'seriesId' => 'd0818cf4-a22a-4d1d-845e-a6f46650a294', - 'workId' => '89b9e3f2-82d1-4c15-9a4f-f28332addabf', - 'issueOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteIssueMutation(): void - { - $mutationName = 'deleteIssue'; - $data = 'issueId: "0c02c522-07a3-4c89-95c6-b5f4cdea31a3"'; - $returnValue = 'issueId'; - - $expectedMutation = << '0c02c522-07a3-4c89-95c6-b5f4cdea31a3'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateLanguageMutation(): void - { - $mutationName = 'createLanguage'; - $data = 'workId: "dcff2c6a-a81d-4af5-a08b-cef22928911b", ' . - 'languageCode: AAR, ' . - 'languageRelation: ORIGINAL'; - $returnValue = 'languageId'; - - $expectedMutation = << 'dcff2c6a-a81d-4af5-a08b-cef22928911b', - 'languageCode' => 'AAR', - 'languageRelation' => 'ORIGINAL', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateLanguageMutation(): void - { - $mutationName = 'updateLanguage'; - $data = 'languageId: "c5fe1926-d702-468b-b98e-984e1b49acf9", ' . - 'workId: "dcff2c6a-a81d-4af5-a08b-cef22928911b", ' . - 'languageCode: AAR, ' . - 'languageRelation: ORIGINAL'; - $returnValue = 'languageId'; - - $expectedMutation = << 'c5fe1926-d702-468b-b98e-984e1b49acf9', - 'workId' => 'dcff2c6a-a81d-4af5-a08b-cef22928911b', - 'languageCode' => 'AAR', - 'languageRelation' => 'ORIGINAL', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteLanguageMutation(): void - { - $mutationName = 'deleteLanguage'; - $data = 'languageId: "c5fe1926-d702-468b-b98e-984e1b49acf9"'; - $returnValue = 'languageId'; - - $expectedMutation = << 'c5fe1926-d702-468b-b98e-984e1b49acf9'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateLocationMutation(): void - { - $mutationName = 'createLocation'; - $data = 'publicationId: "7b27a854-7bc5-47aa-aa84-cacd8724b290", ' . - 'locationPlatform: PROJECT_MUSE, ' . - 'canonical: false, ' . - 'landingPage: "https:\/\/foo.bar", ' . - 'fullTextUrl: "https:\/\/foo.bar\/baz\/qux"'; - $returnValue = 'locationId'; - - $expectedMutation = << '7b27a854-7bc5-47aa-aa84-cacd8724b290', - 'locationPlatform' => 'PROJECT_MUSE', - 'canonical' => false, - 'fullTextUrl' => 'https://foo.bar/baz/qux', - 'landingPage' => 'https://foo.bar' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateLocationMutation(): void - { - $mutationName = 'updateLocation'; - $data = 'locationId: "fd0b0ad5-b1ac-4340-bd8f-81c42b71921a", ' . - 'publicationId: "7b27a854-7bc5-47aa-aa84-cacd8724b290", ' . - 'locationPlatform: PROJECT_MUSE, ' . - 'canonical: false, ' . - 'landingPage: "https:\/\/foo.bar", ' . - 'fullTextUrl: "https:\/\/foo.bar\/baz\/qux"'; - $returnValue = 'locationId'; - - $expectedMutation = << 'fd0b0ad5-b1ac-4340-bd8f-81c42b71921a', - 'publicationId' => '7b27a854-7bc5-47aa-aa84-cacd8724b290', - 'locationPlatform' => 'PROJECT_MUSE', - 'canonical' => false, - 'fullTextUrl' => 'https://foo.bar/baz/qux', - 'landingPage' => 'https://foo.bar' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteLocationMutation(): void - { - $mutationName = 'deleteLocation'; - $data = 'locationId: "fd0b0ad5-b1ac-4340-bd8f-81c42b71921a"'; - $returnValue = 'locationId'; - - $expectedMutation = << 'fd0b0ad5-b1ac-4340-bd8f-81c42b71921a'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreatePriceMutation(): void - { - $mutationName = 'createPrice'; - $data = 'publicationId: "a635e1b6-1994-4f05-b0eb-337612950205", ' . - 'currencyCode: BWP, ' . - 'unitPrice: 1.5'; - $returnValue = 'priceId'; - - $expectedMutation = << 'a635e1b6-1994-4f05-b0eb-337612950205', - 'currencyCode' => 'BWP', - 'unitPrice' => 1.5 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdatePriceMutation(): void - { - $mutationName = 'updatePrice'; - $data = 'priceId: "3a5bf0d0-adc7-4787-af24-3a4f3c49098c", ' . - 'publicationId: "a635e1b6-1994-4f05-b0eb-337612950205", ' . - 'currencyCode: BWP, ' . - 'unitPrice: 1.5'; - $returnValue = 'priceId'; - - $expectedMutation = << '3a5bf0d0-adc7-4787-af24-3a4f3c49098c', - 'publicationId' => 'a635e1b6-1994-4f05-b0eb-337612950205', - 'currencyCode' => 'BWP', - 'unitPrice' => 1.5 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeletePriceMutation(): void - { - $mutationName = 'deletePrice'; - $data = 'priceId: "3a5bf0d0-adc7-4787-af24-3a4f3c49098c"'; - $returnValue = 'priceId'; - - $expectedMutation = << '3a5bf0d0-adc7-4787-af24-3a4f3c49098c'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreatePublicationMutation(): void - { - $mutationName = 'createPublication'; - $data = 'publicationType: PAPERBACK, ' . - 'workId: "c67656e3-7c36-4ef5-b3d9-decc76c7b215", ' . - 'depthMm: 1.5, ' . - 'depthIn: 1.5, ' . - 'widthMm: 1.5, ' . - 'widthIn: 1.5, ' . - 'heightMm: 1.5, ' . - 'heightIn: 1.5, ' . - 'weightG: 1.5, ' . - 'weightOz: 1.5, ' . - 'isbn: "987-6-54321-234-5"'; - $returnValue = 'publicationId'; - - $expectedMutation = << 'PAPERBACK', - 'workId' => 'c67656e3-7c36-4ef5-b3d9-decc76c7b215', - 'depthMm' => 1.5, - 'depthIn' => 1.5, - 'heightMm' => 1.5, - 'heightIn' => 1.5, - 'isbn' => '987-6-54321-234-5', - 'weightG' => 1.5, - 'weightOz' => 1.5, - 'widthMm' => 1.5, - 'widthIn' => 1.5 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdatePublicationMutation(): void - { - $mutationName = 'updatePublication'; - $data = 'publicationId: "3a5bf0d0-adc7-4787-af24-3a4f3c49098c", ' . - 'publicationType: PAPERBACK, ' . - 'workId: "c67656e3-7c36-4ef5-b3d9-decc76c7b215", ' . - 'depthMm: 1.5, ' . - 'depthIn: 1.5, ' . - 'widthMm: 1.5, ' . - 'widthIn: 1.5, ' . - 'heightMm: 1.5, ' . - 'heightIn: 1.5, ' . - 'weightG: 1.5, ' . - 'weightOz: 1.5, ' . - 'isbn: "987-6-54321-234-5"'; - $returnValue = 'publicationId'; - - $expectedMutation = << '3a5bf0d0-adc7-4787-af24-3a4f3c49098c', - 'publicationType' => 'PAPERBACK', - 'workId' => 'c67656e3-7c36-4ef5-b3d9-decc76c7b215', - 'depthIn' => 1.5, - 'depthMm' => 1.5, - 'heightIn' => 1.5, - 'heightMm' => 1.5, - 'isbn' => '987-6-54321-234-5', - 'weightG' => 1.5, - 'weightOz' => 1.5, - 'widthIn' => 1.5, - 'widthMm' => 1.5 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeletePublicationMutation(): void - { - $mutationName = 'deletePublication'; - $data = 'publicationId: "3a5bf0d0-adc7-4787-af24-3a4f3c49098c"'; - $returnValue = 'publicationId'; - - $expectedMutation = << '3a5bf0d0-adc7-4787-af24-3a4f3c49098c'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreatePublisherMutation(): void - { - $mutationName = 'createPublisher'; - $data = 'publisherName: "FooBar", ' . - 'publisherShortname: "Foo", ' . - 'publisherUrl: "https:\/\/foo.bar\/"'; - $returnValue = 'publisherId'; - - $expectedMutation = << 'FooBar', - 'publisherShortname' => 'Foo', - 'publisherUrl' => 'https://foo.bar/' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdatePublisherMutation(): void - { - $mutationName = 'updatePublisher'; - $data = 'publisherId: "17b0b443-61cb-4ffa-9da7-9de4c2ae591e", ' . - 'publisherName: "FooBar", ' . - 'publisherShortname: "Foo", ' . - 'publisherUrl: "https:\/\/foo.bar\/"'; - $returnValue = 'publisherId'; - - $expectedMutation = << '17b0b443-61cb-4ffa-9da7-9de4c2ae591e', - 'publisherName' => 'FooBar', - 'publisherShortname' => 'Foo', - 'publisherUrl' => 'https://foo.bar/' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeletePublisherMutation(): void - { - $mutationName = 'deletePublisher'; - $data = 'publisherId: "17b0b443-61cb-4ffa-9da7-9de4c2ae591e"'; - $returnValue = 'publisherId'; - - $expectedMutation = << '17b0b443-61cb-4ffa-9da7-9de4c2ae591e'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateReferenceMutation(): void - { - $mutationName = 'createReference'; - $data = 'workId: "14f9c7e8-bebe-4e25-90f2-e2f77a2501aa", ' . - 'referenceOrdinal: 10, ' . - 'doi: "https:\/\/doi.org\/10.1016\/j.joule.2017.07.005", ' . - 'unstructuredCitation: "Jacobson, M., et al. 2017. 100% clean and renewable wind, water, ' . - 'and sunlight all-sector energy roadmaps for 139 countries of the world. ' . - 'Joule, 1, 1-14, http:\/\/dx.doi.org\/10.1016\/j.joule.2017.07.005", ' . - 'issn: "2542-4351", ' . - 'journalTitle: "Joule", ' . - 'articleTitle: "100% Clean and Renewable Wind, Water, and Sunlight All-Sector Energy ' . - 'Roadmaps for 139 Countries of the World", ' . - 'edition: 10, ' . - 'author: "Jacobson, Mark Z.; Delucchi, Mark A.; Bauer, Zack A.F.;", ' . - 'volume: "1", ' . - 'issue: "1", ' . - 'firstPage: "108", ' . - 'url: "https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S2542435117300120", ' . - 'publicationDate: "2017-09-01"'; - $returnValue = 'referenceId'; - - $expectedMutation = << '14f9c7e8-bebe-4e25-90f2-e2f77a2501aa', - 'referenceOrdinal' => 10, - 'articleTitle' => '100% Clean and Renewable Wind, Water, and Sunlight All-Sector Energy ' . - 'Roadmaps for 139 Countries of the World', - 'author' => 'Jacobson, Mark Z.; Delucchi, Mark A.; Bauer, Zack A.F.;', - 'componentNumber' => '', - 'doi' => 'https://doi.org/10.1016/j.joule.2017.07.005', - 'edition' => 10, - 'firstPage' => '108', - 'isbn' => '', - 'issn' => '2542-4351', - 'issue' => '1', - 'journalTitle' => 'Joule', - 'publicationDate' => '2017-09-01', - 'retrievalDate' => '', - 'seriesTitle' => '', - 'standardDesignator' => '', - 'standardsBodyAcronym' => '', - 'standardsBodyName' => '', - 'unstructuredCitation' => 'Jacobson, M., et al. 2017. 100% clean and renewable wind, water, ' . - 'and sunlight all-sector energy roadmaps for 139 countries of the world. ' . - 'Joule, 1, 1-14, http://dx.doi.org/10.1016/j.joule.2017.07.005', - 'url' => 'https://linkinghub.elsevier.com/retrieve/pii/S2542435117300120', - 'volume' => '1', - 'volumeTitle' => '' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateReferenceMutation(): void - { - $mutationName = 'updateReference'; - $data = 'referenceId: "b09470b5-bc1f-4754-8ce5-016b37c50224", ' . - 'workId: "14f9c7e8-bebe-4e25-90f2-e2f77a2501aa", ' . - 'referenceOrdinal: 10, ' . - 'doi: "https:\/\/doi.org\/10.1016\/j.joule.2017.07.005", ' . - 'unstructuredCitation: "Jacobson, M., et al. 2017. 100% clean and renewable wind, water, ' . - 'and sunlight all-sector energy roadmaps for 139 countries of the world. ' . - 'Joule, 1, 1-14, http:\/\/dx.doi.org\/10.1016\/j.joule.2017.07.005", ' . - 'issn: "2542-4351", ' . - 'journalTitle: "Joule", ' . - 'articleTitle: "100% Clean and Renewable Wind, Water, and Sunlight All-Sector Energy ' . - 'Roadmaps for 139 Countries of the World", ' . - 'edition: 10, ' . - 'author: "Jacobson, Mark Z.; Delucchi, Mark A.; Bauer, Zack A.F.;", ' . - 'volume: "1", ' . - 'issue: "1", ' . - 'firstPage: "108", ' . - 'url: "https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S2542435117300120", ' . - 'publicationDate: "2017-09-01"'; - $returnValue = 'referenceId'; - - $expectedMutation = << 'b09470b5-bc1f-4754-8ce5-016b37c50224', - 'workId' => '14f9c7e8-bebe-4e25-90f2-e2f77a2501aa', - 'referenceOrdinal' => 10, - 'articleTitle' => '100% Clean and Renewable Wind, Water, and Sunlight All-Sector Energy ' . - 'Roadmaps for 139 Countries of the World', - 'author' => 'Jacobson, Mark Z.; Delucchi, Mark A.; Bauer, Zack A.F.;', - 'doi' => 'https://doi.org/10.1016/j.joule.2017.07.005', - 'edition' => 10, - 'firstPage' => '108', - 'issn' => '2542-4351', - 'issue' => '1', - 'journalTitle' => 'Joule', - 'publicationDate' => '2017-09-01', - 'unstructuredCitation' => 'Jacobson, M., et al. 2017. 100% clean and renewable wind, water, ' . - 'and sunlight all-sector energy roadmaps for 139 countries of the world. ' . - 'Joule, 1, 1-14, http://dx.doi.org/10.1016/j.joule.2017.07.005', - 'url' => 'https://linkinghub.elsevier.com/retrieve/pii/S2542435117300120', - 'volume' => '1', - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteReferenceMutation(): void - { - $mutationName = 'deleteReference'; - $data = 'referenceId: "b09470b5-bc1f-4754-8ce5-016b37c50224"'; - $returnValue = 'referenceId'; - - $expectedMutation = << 'b09470b5-bc1f-4754-8ce5-016b37c50224'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateSeriesMutation(): void - { - $mutationName = 'createSeries'; - $data = 'imprintId: "c2a4eca1-9bb4-479f-98ad-09abc9756745", ' . - 'seriesType: JOURNAL, ' . - 'seriesName: "Foobar", ' . - 'issnPrint: "2515-0758", ' . - 'issnDigital: "2515-0766", ' . - 'seriesUrl: "http:\/\/foo.bar\/", ' . - 'seriesDescription: "Sed nunc dui, semper eu semper vel, bibendum in nulla.", ' . - 'seriesCfpUrl: "http:\/\/foo.bar\/baz\/cfp"'; - $returnValue = 'seriesId'; - - $expectedMutation = << 'JOURNAL', - 'seriesName' => 'Foobar', - 'imprintId' => 'c2a4eca1-9bb4-479f-98ad-09abc9756745', - 'seriesUrl' => 'http://foo.bar/', - 'seriesDescription' => 'Sed nunc dui, semper eu semper vel, bibendum in nulla.', - 'seriesCfpUrl' => 'http://foo.bar/baz/cfp', - 'issnPrint' => '2515-0758', - 'issnDigital' => '2515-0766' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateSeriesMutation(): void - { - $mutationName = 'updateSeries'; - $data = 'seriesId: "1368d4f8-04c7-4a60-92b6-b2d14d31b6a6", ' . - 'imprintId: "c2a4eca1-9bb4-479f-98ad-09abc9756745", ' . - 'seriesType: JOURNAL, ' . - 'seriesName: "Foobar", ' . - 'issnPrint: "2515-0758", ' . - 'issnDigital: "2515-0766", ' . - 'seriesUrl: "http:\/\/foo.bar\/", ' . - 'seriesDescription: "Sed nunc dui, semper eu semper vel, bibendum in nulla.", ' . - 'seriesCfpUrl: "http:\/\/foo.bar\/baz\/cfp"'; - $returnValue = 'seriesId'; - - $expectedMutation = << '1368d4f8-04c7-4a60-92b6-b2d14d31b6a6', - 'seriesType' => 'JOURNAL', - 'seriesName' => 'Foobar', - 'imprintId' => 'c2a4eca1-9bb4-479f-98ad-09abc9756745', - 'seriesUrl' => 'http://foo.bar/', - 'seriesDescription' => 'Sed nunc dui, semper eu semper vel, bibendum in nulla.', - 'seriesCfpUrl' => 'http://foo.bar/baz/cfp', - 'issnPrint' => '2515-0758', - 'issnDigital' => '2515-0766' - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteSeriesMutation(): void - { - $mutationName = 'deleteSeries'; - $data = 'seriesId: "1368d4f8-04c7-4a60-92b6-b2d14d31b6a6"'; - $returnValue = 'seriesId'; - - $expectedMutation = << '1368d4f8-04c7-4a60-92b6-b2d14d31b6a6'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateSubjectMutation(): void - { - $mutationName = 'createSubject'; - $data = 'workId: "885cb751-044d-48e8-93c8-cf3c549484ac", ' . - 'subjectType: BIC, ' . - 'subjectCode: "1D", ' . - 'subjectOrdinal: 10'; - $returnValue = 'subjectId'; - - $expectedMutation = << '885cb751-044d-48e8-93c8-cf3c549484ac', - 'subjectType' => 'BIC', - 'subjectCode' => '1D', - 'subjectOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateSubjectMutation(): void - { - $mutationName = 'updateSubject'; - $data = 'subjectId: "e4535b01-722a-46d8-b1e4-1687a33838d0", ' . - 'workId: "885cb751-044d-48e8-93c8-cf3c549484ac", ' . - 'subjectType: BIC, ' . - 'subjectCode: "1D", ' . - 'subjectOrdinal: 10'; - $returnValue = 'subjectId'; - - $expectedMutation = << 'e4535b01-722a-46d8-b1e4-1687a33838d0', - 'workId' => '885cb751-044d-48e8-93c8-cf3c549484ac', - 'subjectType' => 'BIC', - 'subjectCode' => '1D', - 'subjectOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteSubjectMutation(): void - { - $mutationName = 'deleteSubject'; - $data = 'subjectId: "e4535b01-722a-46d8-b1e4-1687a33838d0"'; - $returnValue = 'subjectId'; - - $expectedMutation = << 'e4535b01-722a-46d8-b1e4-1687a33838d0'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateWorkMutation(): void - { - $mutationName = 'createWork'; - $data = 'workType: BOOK_CHAPTER, ' . - 'workStatus: FORTHCOMING, ' . - 'reference: "foo", ' . - 'edition: 10, ' . - 'imprintId: "dd0410c9-d5f9-43c9-8289-adfd9fc8bded", ' . - 'doi: "https:\/\/doi.org\/10.00000\/00000000", ' . - 'publicationDate: "2020-01-01", ' . - 'withdrawnDate: "2020-12-12", ' . - 'place: "Earth, Milky Way", ' . - 'pageCount: 10, ' . - 'pageBreakdown: "0", ' . - 'imageCount: 10, ' . - 'tableCount: 10, ' . - 'audioCount: 10, ' . - 'videoCount: 10, ' . - 'license: "https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/", ' . - 'copyrightHolder: "John Doe", ' . - 'landingPage: "https:\/\/foo.bar\/lorem-ipsum\/", ' . - 'lccn: "2014471418", ' . - 'oclc: "1086518639", ' . - 'generalNote: "Sed nunc dui, semper eu semper vel, bibendum in nulla.", ' . - 'bibliographyNote: "Phasellus ac gravida odio. Mauris nec sodales odio", ' . - 'toc: "0. Introduction\n1. Lorem ipsum dolor sit amet\n2. Nullam viverra ut finibus suscipit\n3. Etiam dictum cursus dolor\n4. Conclusions", ' . - 'coverUrl: "https:\/\/foo.bar\/baz\/qux", ' . - 'coverCaption: "foobar", ' . - 'firstPage: "1", ' . - 'lastPage: "326", ' . - 'pageInterval: "1-326"'; - $returnValue = 'workId'; - - $expectedMutation = << 'BOOK_CHAPTER', - 'workStatus' => 'FORTHCOMING', - 'imprintId' => 'dd0410c9-d5f9-43c9-8289-adfd9fc8bded', - 'withdrawnDate' => '2020-12-12', - 'videoCount' => 10, - 'toc' => "0. Introduction\n1. Lorem ipsum dolor sit amet\n2. Nullam viverra ut finibus suscipit\n3. Etiam dictum cursus dolor\n4. Conclusions", - 'tableCount' => 10, - 'reference' => 'foo', - 'publicationDate' => '2020-01-01', - 'place' => 'Earth, Milky Way', - 'pageInterval' => '1-326', - 'pageCount' => 10, - 'pageBreakdown' => '0', - 'oclc' => '1086518639', - 'license' => 'https://creativecommons.org/licenses/by-nc/4.0/', - 'lccn' => '2014471418', - 'lastPage' => '326', - 'landingPage' => 'https://foo.bar/lorem-ipsum/', - 'imageCount' => 10, - 'generalNote' => 'Sed nunc dui, semper eu semper vel, bibendum in nulla.', - 'firstPage' => '1', - 'edition' => 10, - 'doi' => 'https://doi.org/10.00000/00000000', - 'coverUrl' => 'https://foo.bar/baz/qux', - 'coverCaption' => 'foobar', - 'copyrightHolder' => 'John Doe', - 'bibliographyNote' => 'Phasellus ac gravida odio. Mauris nec sodales odio', - 'audioCount' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateWorkMutation(): void - { - $mutationName = 'updateWork'; - $data = 'workId: "de7387a8-dd91-44ec-87c5-f8dba3f82b99", ' . - 'workType: BOOK_CHAPTER, ' . - 'workStatus: FORTHCOMING, ' . - 'reference: "foo", ' . - 'edition: 10, ' . - 'imprintId: "dd0410c9-d5f9-43c9-8289-adfd9fc8bded", ' . - 'doi: "https:\/\/doi.org\/10.00000\/00000000", ' . - 'publicationDate: "2020-01-01", ' . - 'withdrawnDate: "2020-12-12", ' . - 'place: "Earth, Milky Way", ' . - 'pageCount: 10, ' . - 'pageBreakdown: "0", ' . - 'imageCount: 10, ' . - 'tableCount: 10, ' . - 'audioCount: 10, ' . - 'videoCount: 10, ' . - 'license: "https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/", ' . - 'copyrightHolder: "John Doe", ' . - 'landingPage: "https:\/\/foo.bar\/lorem-ipsum\/", ' . - 'lccn: "2014471418", ' . - 'oclc: "1086518639", ' . - 'generalNote: "Sed nunc dui, semper eu semper vel, bibendum in nulla.", ' . - 'bibliographyNote: "Phasellus ac gravida odio. Mauris nec sodales odio", ' . - 'toc: "0. Introduction\n1. Lorem ipsum dolor sit amet\n2. Nullam viverra ut finibus suscipit\n3. Etiam dictum cursus dolor\n4. Conclusions", ' . - 'coverUrl: "https:\/\/foo.bar\/baz\/qux", ' . - 'coverCaption: "foobar", ' . - 'firstPage: "1", ' . - 'lastPage: "326", ' . - 'pageInterval: "1-326"'; - $returnValue = 'workId'; - - $expectedMutation = << 'de7387a8-dd91-44ec-87c5-f8dba3f82b99', - 'workType' => 'BOOK_CHAPTER', - 'workStatus' => 'FORTHCOMING', - 'imprintId' => 'dd0410c9-d5f9-43c9-8289-adfd9fc8bded', - 'withdrawnDate' => '2020-12-12', - 'videoCount' => 10, - 'toc' => "0. Introduction\n1. Lorem ipsum dolor sit amet\n2. Nullam viverra ut finibus suscipit\n3. Etiam dictum cursus dolor\n4. Conclusions", - 'tableCount' => 10, - 'reference' => 'foo', - 'publicationDate' => '2020-01-01', - 'place' => 'Earth, Milky Way', - 'pageInterval' => '1-326', - 'pageCount' => 10, - 'pageBreakdown' => '0', - 'oclc' => '1086518639', - 'license' => 'https://creativecommons.org/licenses/by-nc/4.0/', - 'lccn' => '2014471418', - 'lastPage' => '326', - 'landingPage' => 'https://foo.bar/lorem-ipsum/', - 'imageCount' => 10, - 'generalNote' => 'Sed nunc dui, semper eu semper vel, bibendum in nulla.', - 'firstPage' => '1', - 'edition' => 10, - 'doi' => 'https://doi.org/10.00000/00000000', - 'coverUrl' => 'https://foo.bar/baz/qux', - 'coverCaption' => 'foobar', - 'copyrightHolder' => 'John Doe', - 'bibliographyNote' => 'Phasellus ac gravida odio. Mauris nec sodales odio', - 'audioCount' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteWorkMutation(): void - { - $mutationName = 'deleteWork'; - $data = 'workId: "de7387a8-dd91-44ec-87c5-f8dba3f82b99"'; - $returnValue = 'workId'; - - $expectedMutation = << 'de7387a8-dd91-44ec-87c5-f8dba3f82b99'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildCreateWorkRelationMutation(): void - { - $mutationName = 'createWorkRelation'; - $data = 'relatorWorkId: "2d4c0f2d-2618-4d29-b5e9-2a2ea0d57c06", ' . - 'relatedWorkId: "51caff7d-d70a-460f-b242-b3c8fd140abc", ' . - 'relationType: REPLACES, ' . - 'relationOrdinal: 10'; - $returnValue = 'workRelationId'; - - $expectedMutation = << '2d4c0f2d-2618-4d29-b5e9-2a2ea0d57c06', - 'relatedWorkId' => '51caff7d-d70a-460f-b242-b3c8fd140abc', - 'relationType' => 'REPLACES', - 'relationOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildUpdateWorkRelationMutation(): void - { - $mutationName = 'updateWorkRelation'; - $data = 'workRelationId: "ed68c8bd-db8c-48b1-ad6e-c3ffedc36055", ' . - 'relatorWorkId: "2d4c0f2d-2618-4d29-b5e9-2a2ea0d57c06", ' . - 'relatedWorkId: "51caff7d-d70a-460f-b242-b3c8fd140abc", ' . - 'relationType: REPLACES, ' . - 'relationOrdinal: 10'; - $returnValue = 'workRelationId'; - - $expectedMutation = << 'ed68c8bd-db8c-48b1-ad6e-c3ffedc36055', - 'relatorWorkId' => '2d4c0f2d-2618-4d29-b5e9-2a2ea0d57c06', - 'relatedWorkId' => '51caff7d-d70a-460f-b242-b3c8fd140abc', - 'relationType' => 'REPLACES', - 'relationOrdinal' => 10 - ]); - - $this->assertSame($expectedMutation, $mutation); - } - - public function testBuildDeleteWorkRelationMutation(): void - { - $mutationName = 'deleteWorkRelation'; - $data = 'workRelationId: "ed68c8bd-db8c-48b1-ad6e-c3ffedc36055"'; - $returnValue = 'workRelationId'; - - $expectedMutation = << 'ed68c8bd-db8c-48b1-ad6e-c3ffedc36055'], - false - ); - - $this->assertSame($expectedMutation, $mutation); - } -} diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php new file mode 100644 index 0000000..6b22b72 --- /dev/null +++ b/tests/GraphQL/OperationRequestTest.php @@ -0,0 +1,77 @@ + 1, + 'order' => [ + 'field' => OperationRequest::enum('PUBLICATION_DATE'), + 'direction' => OperationRequest::enum('ASC'), + ], + ], + ['workId', 'fullTitle'] + ); + + $expected = <<assertSame($expected, $operation->toGraphQL()); + } + + public function testItBuildsAMutationWithInputDataAndSelection(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createPublisher', + TypeReference::nonNull(TypeReference::named('Publisher')), + [ + new ArgumentDefinition('data', TypeReference::nonNull(TypeReference::named('NewPublisher'))), + ] + ), + [ + 'data' => [ + 'publisherName' => 'ACME Press', + 'publisherUrl' => 'https://example.test', + ], + ], + ['publisherId'] + ); + + $expected = <<assertSame($expected, $operation->toGraphQL()); + } +} diff --git a/tests/GraphQL/Queries/AffiliationQueryTest.php b/tests/GraphQL/Queries/AffiliationQueryTest.php deleted file mode 100644 index 57b7632..0000000 --- a/tests/GraphQL/Queries/AffiliationQueryTest.php +++ /dev/null @@ -1,87 +0,0 @@ -affiliationQuery = new AffiliationQuery(); - } - - public function testGetAffiliationQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<affiliationQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetAffiliationsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<affiliationQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetAffiliationCountQuery(): void - { - $expectedQuery = <<affiliationQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - private function getFieldsFragment(): string - { - return <<contributionQuery = new ContributionQuery(); - } - - public function testGetContributionQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<contributionQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetContributionsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<contributionQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetContributionCountQuery(): void - { - $expectedQuery = <<contributionQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - private function getFieldsFragment(): string - { - return <<contributorQuery = new ContributorQuery(); - } - - public function testGetContributorQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<contributorQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetContributorsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<contributorQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetContributorCountQuery(): void - { - $expectedQuery = <<contributorQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - private function getFieldsFragment(): string - { - return <<fundingQuery = new FundingQuery(); - } - - public function testGetFundingQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<fundingQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetFundingsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<fundingQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetFundingCountQuery(): void - { - $expectedQuery = <<fundingQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - private function getFieldsFragment(): string - { - return <<imprintQuery = new ImprintQuery(); - } - - public function testGetImprintQuery(): void - { - $fragment = $this->getFieldsFragment(true); - $expectedQuery = <<imprintQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetImprintsQuery(): void - { - $fragment = $this->getFieldsFragment(false); - $expectedQuery = <<imprintQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetImprintsQueryWithRestrictedFields(): void - { - $fragment = $this->getFieldsFragment(true); - $expectedQuery = <<imprintQuery->getManyQueryWithRestrictedFields(true); - $this->assertSame($expectedQuery, $query); - } - - public function testGetImprintCountQuery(): void - { - $expectedQuery = <<imprintQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(bool $includeRestrictedFields): string - { - $restrictedFields = $includeRestrictedFields ? <<institutionQuery = new InstitutionQuery(); - } - - public function testGetInstitutionQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<institutionQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetInstitutionsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<institutionQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetInstitutionCountQuery(): void - { - $expectedQuery = <<institutionQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<issueQuery = new IssueQuery(); - } - - public function testGetIssueQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<issueQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetIssuesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<issueQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetIssueCountQuery(): void - { - $expectedQuery = <<issueQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<languageQuery = new LanguageQuery(); - } - - public function testGetLanguageQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<languageQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetLanguagesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<languageQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetLanguageCountQuery(): void - { - $expectedQuery = <<languageQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<locationQuery = new LocationQuery(); - } - - public function testGetLocationQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<locationQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetLocationsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<locationQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetLocationCountQuery(): void - { - $expectedQuery = <<locationQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<priceQuery = new PriceQuery(); - } - - public function testGetPriceQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<priceQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPricesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<priceQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPriceCountQuery(): void - { - $expectedQuery = <<priceQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<publicationQuery = new PublicationQuery(); - } - - public function testGetPublicationQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<publicationQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPublicationsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<publicationQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPublicationCountQuery(): void - { - $expectedQuery = <<publicationQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<publisherQuery = new PublisherQuery(); - } - - public function testGetPublisherQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<publisherQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPublishersQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<publisherQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetPublisherCountQuery(): void - { - $expectedQuery = <<publisherQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<referenceQuery = new ReferenceQuery(); - } - - public function testGetReferenceQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<referenceQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetReferencesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<referenceQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetReferenceCountQuery(): void - { - $expectedQuery = <<referenceQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<assertStringContainsString('additionalResource(additionalResourceId:', $query->getQuery()); - $this->assertStringContainsString('additionalResources(', $query->getManyQuery()); - $this->assertStringContainsString('additionalResourceCount', $query->getCountQuery()); - $this->assertStringContainsString('fragment additionalResourceFields on WorkResource', $query->getQuery()); - } - - public function testAbstractQueries(): void - { - $query = new AbstractTextQuery(); - $this->assertStringContainsString('abstract(abstractId:', $query->getQuery()); - $this->assertStringContainsString('markupFormat: $markupFormat', $query->getQuery()); - $this->assertStringContainsString('abstracts(', $query->getManyQuery()); - $this->assertStringContainsString('fragment abstractFields on Abstract', $query->getManyQuery()); - } - - public function testAwardQueries(): void - { - $query = new AwardQuery(); - $this->assertStringContainsString('award(awardId:', $query->getQuery()); - $this->assertStringContainsString('awards(', $query->getManyQuery()); - $this->assertStringContainsString('awardCount', $query->getCountQuery()); - $this->assertStringContainsString('fragment awardFields on Award', $query->getQuery()); - } - - public function testBiographyQueries(): void - { - $query = new BiographyQuery(); - $this->assertStringContainsString('biography(biographyId:', $query->getQuery()); - $this->assertStringContainsString('biographies(', $query->getManyQuery()); - $this->assertStringContainsString('fragment biographyFields on Biography', $query->getQuery()); - } - - public function testBookReviewQueries(): void - { - $query = new BookReviewQuery(); - $this->assertStringContainsString('bookReview(bookReviewId:', $query->getQuery()); - $this->assertStringContainsString('bookReviews(', $query->getManyQuery()); - $this->assertStringContainsString('bookReviewCount', $query->getCountQuery()); - $this->assertStringContainsString('fragment bookReviewFields on BookReview', $query->getQuery()); - } - - public function testContactQueries(): void - { - $query = new ContactQuery(); - $this->assertStringContainsString('contact(contactId:', $query->getQuery()); - $this->assertStringContainsString('contacts(', $query->getManyQuery()); - $this->assertStringContainsString('contactCount(contactTypes:', $query->getCountQuery()); - $this->assertStringContainsString('fragment contactFields on Contact', $query->getQuery()); - } - - public function testEndorsementQueries(): void - { - $query = new EndorsementQuery(); - $this->assertStringContainsString('endorsement(endorsementId:', $query->getQuery()); - $this->assertStringContainsString('endorsements(', $query->getManyQuery()); - $this->assertStringContainsString('endorsementCount', $query->getCountQuery()); - $this->assertStringContainsString('fragment endorsementFields on Endorsement', $query->getQuery()); - } - - public function testFileQuery(): void - { - $query = new FileQuery(); - $this->assertStringContainsString('file(fileId:', $query->getQuery()); - $this->assertStringContainsString('fragment fileFields on File', $query->getQuery()); - } - - public function testMeQuery(): void - { - $query = new MeQuery(); - $this->assertStringContainsString('me {', $query->getQuery()); - $this->assertStringContainsString('fragment meFields on Me', $query->getQuery()); - } - - public function testTitleQueries(): void - { - $query = new TitleQuery(); - $this->assertStringContainsString('title(titleId:', $query->getQuery()); - $this->assertStringContainsString('titles(', $query->getManyQuery()); - $this->assertStringContainsString('fragment titleFields on Title', $query->getQuery()); - } - - public function testWorkFeaturedVideoQueries(): void - { - $query = new WorkFeaturedVideoQuery(); - $this->assertStringContainsString('workFeaturedVideo(workFeaturedVideoId:', $query->getQuery()); - $this->assertStringContainsString('workFeaturedVideos(', $query->getManyQuery()); - $this->assertStringContainsString('workFeaturedVideoCount', $query->getCountQuery()); - $this->assertStringContainsString('fragment workFeaturedVideoFields on WorkFeaturedVideo', $query->getQuery()); - } -} diff --git a/tests/GraphQL/Queries/SeriesQueryTest.php b/tests/GraphQL/Queries/SeriesQueryTest.php deleted file mode 100644 index b0ba2a5..0000000 --- a/tests/GraphQL/Queries/SeriesQueryTest.php +++ /dev/null @@ -1,103 +0,0 @@ -seriesQuery = new SeriesQuery(); - } - - public function testGetSeriesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<seriesQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetSeriesesQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<seriesQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetSeriesCountQuery(): void - { - $expectedQuery = <<seriesQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<subjectQuery = new SubjectQuery(); - } - - public function testGetSubjectQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<subjectQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetSubjectsQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<subjectQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetSubjectCountQuery(): void - { - $expectedQuery = <<subjectQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<workQuery = new WorkQuery(); - } - - public function testGetWorkQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<workQuery->getQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetWorksQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<workQuery->getManyQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetWorkByDoiQuery(): void - { - $fragment = $this->getFieldsFragment(); - $expectedQuery = <<workQuery->getByDoiQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function testGetWorkCountQuery(): void - { - $expectedQuery = <<workQuery->getCountQuery(); - $this->assertSame($expectedQuery, $query); - } - - public function getFieldsFragment(): string - { - return <<assertStringContainsString($queryName, $query); - } - } - - public function testGetAdditionalSchemaQueries(): void - { - foreach ([ - 'additionalResource', - 'additionalResources', - 'additionalResourceCount', - 'award', - 'awards', - 'awardCount', - 'bookReview', - 'bookReviews', - 'bookReviewCount', - 'contact', - 'contacts', - 'contactCount', - 'endorsement', - 'endorsements', - 'endorsementCount', - 'workFeaturedVideo', - 'workFeaturedVideos', - 'workFeaturedVideoCount', - ] as $queryName) { - $query = QueryProvider::get($queryName); - $this->assertStringContainsString($queryName, $query); - } - } - - public function testGetStandaloneQueries(): void - { - $query = QueryProvider::get('file'); - $this->assertStringContainsString('file(fileId:', $query); - - $query = QueryProvider::get('me'); - $this->assertStringContainsString('me {', $query); - } -} diff --git a/tests/GraphQL/QueryProviderTest.php b/tests/GraphQL/QueryProviderTest.php deleted file mode 100644 index 652dce8..0000000 --- a/tests/GraphQL/QueryProviderTest.php +++ /dev/null @@ -1,230 +0,0 @@ -expectException(\InvalidArgumentException::class); - $this->expectExceptionMessage('Query \'foo\' not found.'); - - $query = QueryProvider::get('foo'); - } - - public function testGetAffiliationQueries(): void - { - $query = QueryProvider::get('affiliation'); - $this->assertStringContainsString('affiliation', $query); - - $query = QueryProvider::get('affiliations'); - $this->assertStringContainsString('affiliations', $query); - - $query = QueryProvider::get('affiliationCount'); - $this->assertStringContainsString('affiliationCount', $query); - } - - public function testGetContributionQueries(): void - { - $query = QueryProvider::get('contribution'); - $this->assertStringContainsString('contribution', $query); - - $query = QueryProvider::get('contributions'); - $this->assertStringContainsString('contributions', $query); - - $query = QueryProvider::get('contributionCount'); - $this->assertStringContainsString('contributionCount', $query); - } - - public function testGetContributorQueries(): void - { - $query = QueryProvider::get('contributor'); - $this->assertStringContainsString('contributor', $query); - - $query = QueryProvider::get('contributors'); - $this->assertStringContainsString('contributors', $query); - - $query = QueryProvider::get('contributorCount'); - $this->assertStringContainsString('contributorCount', $query); - } - - public function testGetFundingQueries(): void - { - $query = QueryProvider::get('funding'); - $this->assertStringContainsString('funding', $query); - - $query = QueryProvider::get('fundings'); - $this->assertStringContainsString('fundings', $query); - - $query = QueryProvider::get('fundingCount'); - $this->assertStringContainsString('fundingCount', $query); - } - - public function testGetImprintQueries(): void - { - $query = QueryProvider::get('imprint'); - $this->assertStringContainsString('imprint', $query); - - $query = QueryProvider::get('imprints'); - $this->assertStringContainsString('imprints', $query); - - $query = QueryProvider::get('imprintCount'); - $this->assertStringContainsString('imprintCount', $query); - } - - public function testGetInstitutionQueries(): void - { - $query = QueryProvider::get('institution'); - $this->assertStringContainsString('institution', $query); - - $query = QueryProvider::get('institutions'); - $this->assertStringContainsString('institutions', $query); - - $query = QueryProvider::get('institutionCount'); - $this->assertStringContainsString('institutionCount', $query); - } - - public function testGetIssueQueries(): void - { - $query = QueryProvider::get('issue'); - $this->assertStringContainsString('issue', $query); - - $query = QueryProvider::get('issues'); - $this->assertStringContainsString('issues', $query); - - $query = QueryProvider::get('issueCount'); - $this->assertStringContainsString('issueCount', $query); - } - - public function testGetLanguageQueries(): void - { - $query = QueryProvider::get('language'); - $this->assertStringContainsString('language', $query); - - $query = QueryProvider::get('languages'); - $this->assertStringContainsString('languages', $query); - - $query = QueryProvider::get('languageCount'); - $this->assertStringContainsString('languageCount', $query); - } - - public function testGetLocationQueries(): void - { - $query = QueryProvider::get('location'); - $this->assertStringContainsString('location', $query); - - $query = QueryProvider::get('locations'); - $this->assertStringContainsString('locations', $query); - - $query = QueryProvider::get('locationCount'); - $this->assertStringContainsString('locationCount', $query); - } - - public function testGetPriceQueries(): void - { - $query = QueryProvider::get('price'); - $this->assertStringContainsString('price', $query); - - $query = QueryProvider::get('prices'); - $this->assertStringContainsString('prices', $query); - - $query = QueryProvider::get('priceCount'); - $this->assertStringContainsString('priceCount', $query); - } - - public function testGetPublicationQueries(): void - { - $query = QueryProvider::get('publication'); - $this->assertStringContainsString('publication', $query); - - $query = QueryProvider::get('publications'); - $this->assertStringContainsString('publications', $query); - - $query = QueryProvider::get('publicationCount'); - $this->assertStringContainsString('publicationCount', $query); - } - - public function testGetPublisherQueries(): void - { - $query = QueryProvider::get('publisher'); - $this->assertStringContainsString('publisher', $query); - - $query = QueryProvider::get('publishers'); - $this->assertStringContainsString('publishers', $query); - - $query = QueryProvider::get('publisherCount'); - $this->assertStringContainsString('publisherCount', $query); - } - - public function testGetReferenceQueries(): void - { - $query = QueryProvider::get('reference'); - $this->assertStringContainsString('reference', $query); - - $query = QueryProvider::get('references'); - $this->assertStringContainsString('references', $query); - - $query = QueryProvider::get('referenceCount'); - $this->assertStringContainsString('referenceCount', $query); - } - - public function testGetSeriesQueries(): void - { - $query = QueryProvider::get('series'); - $this->assertStringContainsString('series', $query); - - $query = QueryProvider::get('serieses'); - $this->assertStringContainsString('serieses', $query); - - $query = QueryProvider::get('seriesCount'); - $this->assertStringContainsString('seriesCount', $query); - } - - public function testGetSubjectQueries(): void - { - $query = QueryProvider::get('subject'); - $this->assertStringContainsString('subject', $query); - - $query = QueryProvider::get('subjects'); - $this->assertStringContainsString('subjects', $query); - - $query = QueryProvider::get('subjectCount'); - $this->assertStringContainsString('subjectCount', $query); - } - - public function testGetWorkQueries(): void - { - $query = QueryProvider::get('books'); - $this->assertStringContainsString('books', $query); - - $query = QueryProvider::get('bookByDoi'); - $this->assertStringContainsString('bookByDoi', $query); - - $query = QueryProvider::get('bookCount'); - $this->assertStringContainsString('bookCount', $query); - - $query = QueryProvider::get('chapters'); - $this->assertStringContainsString('chapters', $query); - - $query = QueryProvider::get('chapterByDoi'); - $this->assertStringContainsString('chapterByDoi', $query); - - $query = QueryProvider::get('chapterCount'); - $this->assertStringContainsString('chapterCount', $query); - - $query = QueryProvider::get('work'); - $this->assertStringContainsString('work', $query); - - $query = QueryProvider::get('works'); - $this->assertStringContainsString('works', $query); - - $query = QueryProvider::get('workByDoi'); - $this->assertStringContainsString('workByDoi', $query); - - $query = QueryProvider::get('workCount'); - $this->assertStringContainsString('workCount', $query); - } -} diff --git a/tests/GraphQL/RequestTest.php b/tests/GraphQL/RequestTest.php index b2b8b34..9c7f655 100644 --- a/tests/GraphQL/RequestTest.php +++ b/tests/GraphQL/RequestTest.php @@ -52,6 +52,9 @@ public function testExecuteQuery(): void public function testInvalidQueryWithResponse200(): void { + $query = 'query { invalid }'; + $variables = ['limit' => 1]; + $this->mockHandler->append(new Response(200, [], json_encode([ 'errors' => [ [ @@ -66,8 +69,13 @@ public function testInvalidQueryWithResponse200(): void ] ]))); - $this->expectException(QueryException::class); - $this->request->runQuery(''); + try { + $this->request->runQuery($query, $variables); + $this->fail('Expected query exception.'); + } catch (QueryException $exception) { + $this->assertSame($query, $exception->getQuery()); + $this->assertSame($variables, $exception->getVariables()); + } } public function testInvalidQueryResponseWith400(): void diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php new file mode 100644 index 0000000..6cdd207 --- /dev/null +++ b/tools/generate-graphql-client.php @@ -0,0 +1,363 @@ + introspectionQuery()]); + $context = stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'header' => "Content-Type: application/json\r\n", + 'content' => $payload, + ], + ]); + $schema = json_decode((string) file_get_contents($endpoint, false, $context), true); + + return is_array($schema) ? $schema : []; +} + +function introspectionQuery(): string +{ + return 'query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }'; +} + +function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void +{ + foreach ($rootType['fields'] ?? [] as $field) { + $className = safeClassName(studly($field['name']) . ($operationType === 'query' ? 'Query' : 'Mutation')); + $fieldCode = fieldCode($field); + $contents = <<data = \$data; + } + + public function getAllData(): array + { + return \$this->data; + } + + public static function definition(): InputObjectTypeDefinition + { + return new InputObjectTypeDefinition('{$type['name']}', [ + {$fieldsCode} + ]); + } +} +PHP; + file_put_contents($directory . '/' . $className . '.php', $contents . "\n"); +} + +function generateEnumType(array $type, string $directory, string $namespacePart): void +{ + $className = safeClassName(studly($type['name'])); + $values = []; + $constants = []; + foreach ($type['enumValues'] ?? [] as $value) { + $values[] = $value['name']; + $constantName = sanitizeConstant($value['name']); + $constants[] = " public const {$constantName} = '{$value['name']}';"; + } + + $valuesCode = exportPhpValue($values, 2); + $constantsCode = implode("\n", $constants); + $contents = << $childValue) { + $prefix = $isList ? '' : exportPhpValue($key, 0) . ' => '; + $lines[] = $childIndent . $prefix . exportPhpValue($childValue, $level + 1) . ','; + } + + $lines[] = $indent . ']'; + return implode("\n", $lines); + } + + if ($value === null) { + return 'null'; + } + + if (is_bool($value)) { + return $value ? 'true' : 'false'; + } + + return var_export($value, true); +} + +function isSequentialArray(array $value): bool +{ + $expected = 0; + foreach ($value as $key => $_) { + if ($key !== $expected) { + return false; + } + + $expected++; + } + + return true; +} + +function studly(string $value): string +{ + $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); + $value = preg_replace('/(?isDir()) { + rmdir($file->getPathname()); + } else { + unlink($file->getPathname()); + } + } + + rmdir($directory); +} From dc5c7c84c7eb8052755ce9f2509199dfd425f57c Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 12:49:29 -0400 Subject: [PATCH 02/40] refactor: simplify generated GraphQL client --- src/GraphQL/Client.php | 46 +++++++------------ .../Generated/Inputs/AbstractOrderBy.php | 15 +----- .../Inputs/AdditionalResourceOrderBy.php | 15 +----- .../Generated/Inputs/AffiliationOrderBy.php | 15 +----- src/GraphQL/Generated/Inputs/AwardOrderBy.php | 15 +----- .../Generated/Inputs/BiographyOrderBy.php | 15 +----- .../Generated/Inputs/BookReviewOrderBy.php | 15 +----- .../Generated/Inputs/CompleteFileUpload.php | 15 +----- .../Generated/Inputs/ContactOrderBy.php | 15 +----- .../Generated/Inputs/ContributionOrderBy.php | 15 +----- .../Generated/Inputs/ContributorOrderBy.php | 15 +----- .../Generated/Inputs/EndorsementOrderBy.php | 15 +----- .../Generated/Inputs/FundingOrderBy.php | 15 +----- .../Generated/Inputs/ImprintOrderBy.php | 15 +----- .../Generated/Inputs/InstitutionOrderBy.php | 15 +----- src/GraphQL/Generated/Inputs/IssueOrderBy.php | 15 +----- .../Generated/Inputs/LanguageOrderBy.php | 15 +----- .../Generated/Inputs/LocationOrderBy.php | 15 +----- src/GraphQL/Generated/Inputs/NewAbstract.php | 15 +----- .../Inputs/NewAdditionalResource.php | 15 +----- .../NewAdditionalResourceFileUpload.php | 15 +----- .../Generated/Inputs/NewAffiliation.php | 15 +----- src/GraphQL/Generated/Inputs/NewAward.php | 15 +----- src/GraphQL/Generated/Inputs/NewBiography.php | 15 +----- .../Generated/Inputs/NewBookReview.php | 15 +----- src/GraphQL/Generated/Inputs/NewContact.php | 15 +----- .../Generated/Inputs/NewContribution.php | 15 +----- .../Generated/Inputs/NewContributor.php | 15 +----- .../Generated/Inputs/NewEndorsement.php | 15 +----- .../Inputs/NewFrontcoverFileUpload.php | 15 +----- src/GraphQL/Generated/Inputs/NewFunding.php | 15 +----- src/GraphQL/Generated/Inputs/NewImprint.php | 15 +----- .../Generated/Inputs/NewInstitution.php | 15 +----- src/GraphQL/Generated/Inputs/NewIssue.php | 15 +----- src/GraphQL/Generated/Inputs/NewLanguage.php | 15 +----- src/GraphQL/Generated/Inputs/NewLocation.php | 15 +----- src/GraphQL/Generated/Inputs/NewPrice.php | 15 +----- .../Generated/Inputs/NewPublication.php | 15 +----- .../Inputs/NewPublicationFileUpload.php | 15 +----- src/GraphQL/Generated/Inputs/NewPublisher.php | 15 +----- src/GraphQL/Generated/Inputs/NewReference.php | 15 +----- src/GraphQL/Generated/Inputs/NewSeries.php | 15 +----- src/GraphQL/Generated/Inputs/NewSubject.php | 15 +----- src/GraphQL/Generated/Inputs/NewTitle.php | 15 +----- src/GraphQL/Generated/Inputs/NewWork.php | 15 +----- .../Generated/Inputs/NewWorkFeaturedVideo.php | 15 +----- .../Inputs/NewWorkFeaturedVideoFileUpload.php | 15 +----- .../Generated/Inputs/NewWorkRelation.php | 15 +----- .../Generated/Inputs/PatchAbstract.php | 15 +----- .../Inputs/PatchAdditionalResource.php | 15 +----- .../Generated/Inputs/PatchAffiliation.php | 15 +----- src/GraphQL/Generated/Inputs/PatchAward.php | 15 +----- .../Generated/Inputs/PatchBiography.php | 15 +----- .../Generated/Inputs/PatchBookReview.php | 15 +----- src/GraphQL/Generated/Inputs/PatchContact.php | 15 +----- .../Generated/Inputs/PatchContribution.php | 15 +----- .../Generated/Inputs/PatchContributor.php | 15 +----- .../Generated/Inputs/PatchEndorsement.php | 15 +----- src/GraphQL/Generated/Inputs/PatchFunding.php | 15 +----- src/GraphQL/Generated/Inputs/PatchImprint.php | 15 +----- .../Generated/Inputs/PatchInstitution.php | 15 +----- src/GraphQL/Generated/Inputs/PatchIssue.php | 15 +----- .../Generated/Inputs/PatchLanguage.php | 15 +----- .../Generated/Inputs/PatchLocation.php | 15 +----- src/GraphQL/Generated/Inputs/PatchPrice.php | 15 +----- .../Generated/Inputs/PatchPublication.php | 15 +----- .../Generated/Inputs/PatchPublisher.php | 15 +----- .../Generated/Inputs/PatchReference.php | 15 +----- src/GraphQL/Generated/Inputs/PatchSeries.php | 15 +----- src/GraphQL/Generated/Inputs/PatchSubject.php | 15 +----- src/GraphQL/Generated/Inputs/PatchTitle.php | 15 +----- src/GraphQL/Generated/Inputs/PatchWork.php | 15 +----- .../Inputs/PatchWorkFeaturedVideo.php | 15 +----- .../Generated/Inputs/PatchWorkRelation.php | 15 +----- src/GraphQL/Generated/Inputs/PriceOrderBy.php | 15 +----- .../Generated/Inputs/PublicationOrderBy.php | 15 +----- .../Generated/Inputs/PublisherOrderBy.php | 15 +----- .../Generated/Inputs/ReferenceOrderBy.php | 15 +----- .../Generated/Inputs/SeriesOrderBy.php | 15 +----- .../Generated/Inputs/SubjectOrderBy.php | 15 +----- .../Generated/Inputs/TimeExpression.php | 15 +----- src/GraphQL/Generated/Inputs/TitleOrderBy.php | 15 +----- .../Inputs/WorkFeaturedVideoOrderBy.php | 15 +----- src/GraphQL/Generated/Inputs/WorkOrderBy.php | 15 +----- .../Generated/Inputs/WorkRelationOrderBy.php | 15 +----- src/GraphQL/InputObject.php | 18 ++++++++ tests/GraphQL/GenericClientTest.php | 24 ++++++++++ tools/generate-graphql-client.php | 46 ++++++++----------- 88 files changed, 246 insertions(+), 1148 deletions(-) create mode 100644 src/GraphQL/InputObject.php diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 0d852bd..a4a25f0 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -4,6 +4,8 @@ class Client { + private const SCALAR_TYPES = ['Boolean', 'Date', 'Doi', 'Float', 'Int', 'Isbn', 'Orcid', 'Ror', 'String', 'Timestamp', 'Uuid']; + private Request $request; private string $token = ''; @@ -47,17 +49,8 @@ public function __call(string $name, array $arguments) $this->getOperationArguments($field->getArguments(), $arguments), $selection ?: $this->getDefaultSelection($field->getType()->baseName()) ); - $result = $this->execute($operation); - - if (is_array($result) && count($operation->getSelection()) === 1) { - $selectedField = $operation->getSelection()[0]; - - if (is_string($selectedField) && array_key_exists($selectedField, $result)) { - return $result[$selectedField]; - } - } - return $result; + return $this->unwrapSingleSelection($this->execute($operation), $operation->getSelection()); } private function getOperationClass(string $name): string @@ -80,18 +73,13 @@ private function getOperationClass(string $name): string private function getSelectionArgument(array &$arguments): array { - if (count($arguments) < 2) { - return []; - } + $lastArgument = count($arguments) - 1; - $selection = end($arguments); - - if (!is_array($selection)) { + if ($lastArgument < 1 || !is_array($arguments[$lastArgument])) { return []; } - array_pop($arguments); - return $selection; + return array_pop($arguments); } private function getOperationArguments(array $schemaArguments, array $arguments): array @@ -148,11 +136,11 @@ private function normalizeValue($value) private function getDefaultSelection(?string $typeName): array { - if ($typeName === null || in_array($typeName, ['Boolean', 'Date', 'Doi', 'Float', 'Int', 'Isbn', 'Orcid', 'Ror', 'String', 'Timestamp', 'Uuid'], true)) { + if ($typeName === null || in_array($typeName, self::SCALAR_TYPES, true)) { return []; } - $schemaClass = '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . $this->safeClassName($this->studly($typeName)); + $schemaClass = '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); if (!class_exists($schemaClass)) { return []; @@ -167,6 +155,15 @@ private function getDefaultSelection(?string $typeName): array return []; } + private function unwrapSingleSelection($result, array $selection) + { + if (!is_array($result) || count($selection) !== 1 || !is_string($selection[0])) { + return $result; + } + + return array_key_exists($selection[0], $result) ? $result[$selection[0]] : $result; + } + private function studly(string $value): string { $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); @@ -180,15 +177,6 @@ private function studly(string $value): string return $value; } - private function safeClassName(string $className): string - { - if (in_array(strtolower($className), ['abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', 'finally', 'fn', 'for', 'foreach', 'function', 'global', 'goto', 'if', 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 'interface', 'isset', 'list', 'match', 'namespace', 'new', 'or', 'print', 'private', 'protected', 'public', 'readonly', 'require', 'require_once', 'return', 'static', 'switch', 'throw', 'trait', 'try', 'unset', 'use', 'var', 'while', 'xor', 'yield'], true)) { - return 'GraphQL' . $className; - } - - return $className; - } - private function isAssociativeArray(array $value): bool { return $value !== [] && array_keys($value) !== range(0, count($value) - 1); diff --git a/src/GraphQL/Generated/Inputs/AbstractOrderBy.php b/src/GraphQL/Generated/Inputs/AbstractOrderBy.php index f3ea076..371a8e0 100644 --- a/src/GraphQL/Generated/Inputs/AbstractOrderBy.php +++ b/src/GraphQL/Generated/Inputs/AbstractOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class AbstractOrderBy +final class AbstractOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AbstractOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php b/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php index 6a4e51f..f51fb74 100644 --- a/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php +++ b/src/GraphQL/Generated/Inputs/AdditionalResourceOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class AdditionalResourceOrderBy +final class AdditionalResourceOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AdditionalResourceOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php b/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php index e17484a..ed481c7 100644 --- a/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php +++ b/src/GraphQL/Generated/Inputs/AffiliationOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class AffiliationOrderBy +final class AffiliationOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AffiliationOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/AwardOrderBy.php b/src/GraphQL/Generated/Inputs/AwardOrderBy.php index e75db6a..2ae5d40 100644 --- a/src/GraphQL/Generated/Inputs/AwardOrderBy.php +++ b/src/GraphQL/Generated/Inputs/AwardOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class AwardOrderBy +final class AwardOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AwardOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/BiographyOrderBy.php b/src/GraphQL/Generated/Inputs/BiographyOrderBy.php index 9235d73..254f31b 100644 --- a/src/GraphQL/Generated/Inputs/BiographyOrderBy.php +++ b/src/GraphQL/Generated/Inputs/BiographyOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class BiographyOrderBy +final class BiographyOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('BiographyOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php b/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php index af9f27b..5f1e345 100644 --- a/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php +++ b/src/GraphQL/Generated/Inputs/BookReviewOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class BookReviewOrderBy +final class BookReviewOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('BookReviewOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/CompleteFileUpload.php b/src/GraphQL/Generated/Inputs/CompleteFileUpload.php index 1a37667..4c1d636 100644 --- a/src/GraphQL/Generated/Inputs/CompleteFileUpload.php +++ b/src/GraphQL/Generated/Inputs/CompleteFileUpload.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class CompleteFileUpload +final class CompleteFileUpload extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('CompleteFileUpload', [ diff --git a/src/GraphQL/Generated/Inputs/ContactOrderBy.php b/src/GraphQL/Generated/Inputs/ContactOrderBy.php index af5fab1..a24625e 100644 --- a/src/GraphQL/Generated/Inputs/ContactOrderBy.php +++ b/src/GraphQL/Generated/Inputs/ContactOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class ContactOrderBy +final class ContactOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContactOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/ContributionOrderBy.php b/src/GraphQL/Generated/Inputs/ContributionOrderBy.php index 93a4478..5f2de19 100644 --- a/src/GraphQL/Generated/Inputs/ContributionOrderBy.php +++ b/src/GraphQL/Generated/Inputs/ContributionOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class ContributionOrderBy +final class ContributionOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContributionOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/ContributorOrderBy.php b/src/GraphQL/Generated/Inputs/ContributorOrderBy.php index 8139142..2f99ef4 100644 --- a/src/GraphQL/Generated/Inputs/ContributorOrderBy.php +++ b/src/GraphQL/Generated/Inputs/ContributorOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class ContributorOrderBy +final class ContributorOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContributorOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php b/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php index 0996f69..884ce34 100644 --- a/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php +++ b/src/GraphQL/Generated/Inputs/EndorsementOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class EndorsementOrderBy +final class EndorsementOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('EndorsementOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/FundingOrderBy.php b/src/GraphQL/Generated/Inputs/FundingOrderBy.php index 3451c3f..9cbbe9d 100644 --- a/src/GraphQL/Generated/Inputs/FundingOrderBy.php +++ b/src/GraphQL/Generated/Inputs/FundingOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class FundingOrderBy +final class FundingOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('FundingOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/ImprintOrderBy.php b/src/GraphQL/Generated/Inputs/ImprintOrderBy.php index c5585f1..821f6ce 100644 --- a/src/GraphQL/Generated/Inputs/ImprintOrderBy.php +++ b/src/GraphQL/Generated/Inputs/ImprintOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class ImprintOrderBy +final class ImprintOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ImprintOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php b/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php index be2725f..511bc28 100644 --- a/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php +++ b/src/GraphQL/Generated/Inputs/InstitutionOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class InstitutionOrderBy +final class InstitutionOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('InstitutionOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/IssueOrderBy.php b/src/GraphQL/Generated/Inputs/IssueOrderBy.php index fd13157..567fa72 100644 --- a/src/GraphQL/Generated/Inputs/IssueOrderBy.php +++ b/src/GraphQL/Generated/Inputs/IssueOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class IssueOrderBy +final class IssueOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('IssueOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/LanguageOrderBy.php b/src/GraphQL/Generated/Inputs/LanguageOrderBy.php index d9bb0fb..826b3f7 100644 --- a/src/GraphQL/Generated/Inputs/LanguageOrderBy.php +++ b/src/GraphQL/Generated/Inputs/LanguageOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class LanguageOrderBy +final class LanguageOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('LanguageOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/LocationOrderBy.php b/src/GraphQL/Generated/Inputs/LocationOrderBy.php index a8590ce..616bb38 100644 --- a/src/GraphQL/Generated/Inputs/LocationOrderBy.php +++ b/src/GraphQL/Generated/Inputs/LocationOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class LocationOrderBy +final class LocationOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('LocationOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/NewAbstract.php b/src/GraphQL/Generated/Inputs/NewAbstract.php index 0c592bd..7347efe 100644 --- a/src/GraphQL/Generated/Inputs/NewAbstract.php +++ b/src/GraphQL/Generated/Inputs/NewAbstract.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewAbstract +final class NewAbstract extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAbstract', [ diff --git a/src/GraphQL/Generated/Inputs/NewAdditionalResource.php b/src/GraphQL/Generated/Inputs/NewAdditionalResource.php index 4361b4b..5e31c6d 100644 --- a/src/GraphQL/Generated/Inputs/NewAdditionalResource.php +++ b/src/GraphQL/Generated/Inputs/NewAdditionalResource.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewAdditionalResource +final class NewAdditionalResource extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAdditionalResource', [ diff --git a/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php b/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php index b3aadf3..1bc902d 100644 --- a/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php +++ b/src/GraphQL/Generated/Inputs/NewAdditionalResourceFileUpload.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewAdditionalResourceFileUpload +final class NewAdditionalResourceFileUpload extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAdditionalResourceFileUpload', [ diff --git a/src/GraphQL/Generated/Inputs/NewAffiliation.php b/src/GraphQL/Generated/Inputs/NewAffiliation.php index 42d85ae..28745fc 100644 --- a/src/GraphQL/Generated/Inputs/NewAffiliation.php +++ b/src/GraphQL/Generated/Inputs/NewAffiliation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewAffiliation +final class NewAffiliation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAffiliation', [ diff --git a/src/GraphQL/Generated/Inputs/NewAward.php b/src/GraphQL/Generated/Inputs/NewAward.php index ddf0b7a..d34e1a7 100644 --- a/src/GraphQL/Generated/Inputs/NewAward.php +++ b/src/GraphQL/Generated/Inputs/NewAward.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewAward +final class NewAward extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAward', [ diff --git a/src/GraphQL/Generated/Inputs/NewBiography.php b/src/GraphQL/Generated/Inputs/NewBiography.php index edf8d60..9fc1b4f 100644 --- a/src/GraphQL/Generated/Inputs/NewBiography.php +++ b/src/GraphQL/Generated/Inputs/NewBiography.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewBiography +final class NewBiography extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewBiography', [ diff --git a/src/GraphQL/Generated/Inputs/NewBookReview.php b/src/GraphQL/Generated/Inputs/NewBookReview.php index 4dd49f8..3e2bf5e 100644 --- a/src/GraphQL/Generated/Inputs/NewBookReview.php +++ b/src/GraphQL/Generated/Inputs/NewBookReview.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewBookReview +final class NewBookReview extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewBookReview', [ diff --git a/src/GraphQL/Generated/Inputs/NewContact.php b/src/GraphQL/Generated/Inputs/NewContact.php index e7bf70c..b10b2ae 100644 --- a/src/GraphQL/Generated/Inputs/NewContact.php +++ b/src/GraphQL/Generated/Inputs/NewContact.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewContact +final class NewContact extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContact', [ diff --git a/src/GraphQL/Generated/Inputs/NewContribution.php b/src/GraphQL/Generated/Inputs/NewContribution.php index 6cd2786..a6889e0 100644 --- a/src/GraphQL/Generated/Inputs/NewContribution.php +++ b/src/GraphQL/Generated/Inputs/NewContribution.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewContribution +final class NewContribution extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContribution', [ diff --git a/src/GraphQL/Generated/Inputs/NewContributor.php b/src/GraphQL/Generated/Inputs/NewContributor.php index d5c7cee..a8b1100 100644 --- a/src/GraphQL/Generated/Inputs/NewContributor.php +++ b/src/GraphQL/Generated/Inputs/NewContributor.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewContributor +final class NewContributor extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContributor', [ diff --git a/src/GraphQL/Generated/Inputs/NewEndorsement.php b/src/GraphQL/Generated/Inputs/NewEndorsement.php index 6bb3cef..86dbbed 100644 --- a/src/GraphQL/Generated/Inputs/NewEndorsement.php +++ b/src/GraphQL/Generated/Inputs/NewEndorsement.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewEndorsement +final class NewEndorsement extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewEndorsement', [ diff --git a/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php b/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php index aecdda9..152f5fb 100644 --- a/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php +++ b/src/GraphQL/Generated/Inputs/NewFrontcoverFileUpload.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewFrontcoverFileUpload +final class NewFrontcoverFileUpload extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewFrontcoverFileUpload', [ diff --git a/src/GraphQL/Generated/Inputs/NewFunding.php b/src/GraphQL/Generated/Inputs/NewFunding.php index 2cb84f8..61d18ea 100644 --- a/src/GraphQL/Generated/Inputs/NewFunding.php +++ b/src/GraphQL/Generated/Inputs/NewFunding.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewFunding +final class NewFunding extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewFunding', [ diff --git a/src/GraphQL/Generated/Inputs/NewImprint.php b/src/GraphQL/Generated/Inputs/NewImprint.php index e455f03..c1e3cde 100644 --- a/src/GraphQL/Generated/Inputs/NewImprint.php +++ b/src/GraphQL/Generated/Inputs/NewImprint.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewImprint +final class NewImprint extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewImprint', [ diff --git a/src/GraphQL/Generated/Inputs/NewInstitution.php b/src/GraphQL/Generated/Inputs/NewInstitution.php index 524db18..4b23dbf 100644 --- a/src/GraphQL/Generated/Inputs/NewInstitution.php +++ b/src/GraphQL/Generated/Inputs/NewInstitution.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewInstitution +final class NewInstitution extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewInstitution', [ diff --git a/src/GraphQL/Generated/Inputs/NewIssue.php b/src/GraphQL/Generated/Inputs/NewIssue.php index 9ecca44..3749d8c 100644 --- a/src/GraphQL/Generated/Inputs/NewIssue.php +++ b/src/GraphQL/Generated/Inputs/NewIssue.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewIssue +final class NewIssue extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewIssue', [ diff --git a/src/GraphQL/Generated/Inputs/NewLanguage.php b/src/GraphQL/Generated/Inputs/NewLanguage.php index c435f3f..2ffd468 100644 --- a/src/GraphQL/Generated/Inputs/NewLanguage.php +++ b/src/GraphQL/Generated/Inputs/NewLanguage.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewLanguage +final class NewLanguage extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewLanguage', [ diff --git a/src/GraphQL/Generated/Inputs/NewLocation.php b/src/GraphQL/Generated/Inputs/NewLocation.php index 7fe05bf..1c02ff4 100644 --- a/src/GraphQL/Generated/Inputs/NewLocation.php +++ b/src/GraphQL/Generated/Inputs/NewLocation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewLocation +final class NewLocation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewLocation', [ diff --git a/src/GraphQL/Generated/Inputs/NewPrice.php b/src/GraphQL/Generated/Inputs/NewPrice.php index 449f0cf..01b1995 100644 --- a/src/GraphQL/Generated/Inputs/NewPrice.php +++ b/src/GraphQL/Generated/Inputs/NewPrice.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewPrice +final class NewPrice extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPrice', [ diff --git a/src/GraphQL/Generated/Inputs/NewPublication.php b/src/GraphQL/Generated/Inputs/NewPublication.php index 335a00d..a11239e 100644 --- a/src/GraphQL/Generated/Inputs/NewPublication.php +++ b/src/GraphQL/Generated/Inputs/NewPublication.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewPublication +final class NewPublication extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublication', [ diff --git a/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php b/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php index fa6c0ba..9c8d362 100644 --- a/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php +++ b/src/GraphQL/Generated/Inputs/NewPublicationFileUpload.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewPublicationFileUpload +final class NewPublicationFileUpload extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublicationFileUpload', [ diff --git a/src/GraphQL/Generated/Inputs/NewPublisher.php b/src/GraphQL/Generated/Inputs/NewPublisher.php index 68dee34..2cd3ae9 100644 --- a/src/GraphQL/Generated/Inputs/NewPublisher.php +++ b/src/GraphQL/Generated/Inputs/NewPublisher.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewPublisher +final class NewPublisher extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublisher', [ diff --git a/src/GraphQL/Generated/Inputs/NewReference.php b/src/GraphQL/Generated/Inputs/NewReference.php index 3cddaa4..de17c42 100644 --- a/src/GraphQL/Generated/Inputs/NewReference.php +++ b/src/GraphQL/Generated/Inputs/NewReference.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewReference +final class NewReference extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewReference', [ diff --git a/src/GraphQL/Generated/Inputs/NewSeries.php b/src/GraphQL/Generated/Inputs/NewSeries.php index 1790fc1..25026c2 100644 --- a/src/GraphQL/Generated/Inputs/NewSeries.php +++ b/src/GraphQL/Generated/Inputs/NewSeries.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewSeries +final class NewSeries extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewSeries', [ diff --git a/src/GraphQL/Generated/Inputs/NewSubject.php b/src/GraphQL/Generated/Inputs/NewSubject.php index 64d460d..2d6b83c 100644 --- a/src/GraphQL/Generated/Inputs/NewSubject.php +++ b/src/GraphQL/Generated/Inputs/NewSubject.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewSubject +final class NewSubject extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewSubject', [ diff --git a/src/GraphQL/Generated/Inputs/NewTitle.php b/src/GraphQL/Generated/Inputs/NewTitle.php index 77df109..2f98a76 100644 --- a/src/GraphQL/Generated/Inputs/NewTitle.php +++ b/src/GraphQL/Generated/Inputs/NewTitle.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewTitle +final class NewTitle extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewTitle', [ diff --git a/src/GraphQL/Generated/Inputs/NewWork.php b/src/GraphQL/Generated/Inputs/NewWork.php index ad85214..5ba41c4 100644 --- a/src/GraphQL/Generated/Inputs/NewWork.php +++ b/src/GraphQL/Generated/Inputs/NewWork.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewWork +final class NewWork extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWork', [ diff --git a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php index 4de2849..9e52c42 100644 --- a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php +++ b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideo.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewWorkFeaturedVideo +final class NewWorkFeaturedVideo extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkFeaturedVideo', [ diff --git a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php index 0b5e3d8..8da72e0 100644 --- a/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php +++ b/src/GraphQL/Generated/Inputs/NewWorkFeaturedVideoFileUpload.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewWorkFeaturedVideoFileUpload +final class NewWorkFeaturedVideoFileUpload extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkFeaturedVideoFileUpload', [ diff --git a/src/GraphQL/Generated/Inputs/NewWorkRelation.php b/src/GraphQL/Generated/Inputs/NewWorkRelation.php index 8b61a4b..d9601ae 100644 --- a/src/GraphQL/Generated/Inputs/NewWorkRelation.php +++ b/src/GraphQL/Generated/Inputs/NewWorkRelation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class NewWorkRelation +final class NewWorkRelation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkRelation', [ diff --git a/src/GraphQL/Generated/Inputs/PatchAbstract.php b/src/GraphQL/Generated/Inputs/PatchAbstract.php index 038d671..3677d82 100644 --- a/src/GraphQL/Generated/Inputs/PatchAbstract.php +++ b/src/GraphQL/Generated/Inputs/PatchAbstract.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchAbstract +final class PatchAbstract extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAbstract', [ diff --git a/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php b/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php index 2cfc2cf..e692c52 100644 --- a/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php +++ b/src/GraphQL/Generated/Inputs/PatchAdditionalResource.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchAdditionalResource +final class PatchAdditionalResource extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAdditionalResource', [ diff --git a/src/GraphQL/Generated/Inputs/PatchAffiliation.php b/src/GraphQL/Generated/Inputs/PatchAffiliation.php index 9b82231..8d80512 100644 --- a/src/GraphQL/Generated/Inputs/PatchAffiliation.php +++ b/src/GraphQL/Generated/Inputs/PatchAffiliation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchAffiliation +final class PatchAffiliation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAffiliation', [ diff --git a/src/GraphQL/Generated/Inputs/PatchAward.php b/src/GraphQL/Generated/Inputs/PatchAward.php index 949371b..27eddc7 100644 --- a/src/GraphQL/Generated/Inputs/PatchAward.php +++ b/src/GraphQL/Generated/Inputs/PatchAward.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchAward +final class PatchAward extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAward', [ diff --git a/src/GraphQL/Generated/Inputs/PatchBiography.php b/src/GraphQL/Generated/Inputs/PatchBiography.php index 9e41722..7b8779b 100644 --- a/src/GraphQL/Generated/Inputs/PatchBiography.php +++ b/src/GraphQL/Generated/Inputs/PatchBiography.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchBiography +final class PatchBiography extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchBiography', [ diff --git a/src/GraphQL/Generated/Inputs/PatchBookReview.php b/src/GraphQL/Generated/Inputs/PatchBookReview.php index af51e82..a8db7d5 100644 --- a/src/GraphQL/Generated/Inputs/PatchBookReview.php +++ b/src/GraphQL/Generated/Inputs/PatchBookReview.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchBookReview +final class PatchBookReview extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchBookReview', [ diff --git a/src/GraphQL/Generated/Inputs/PatchContact.php b/src/GraphQL/Generated/Inputs/PatchContact.php index 57465a7..8d7f850 100644 --- a/src/GraphQL/Generated/Inputs/PatchContact.php +++ b/src/GraphQL/Generated/Inputs/PatchContact.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchContact +final class PatchContact extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContact', [ diff --git a/src/GraphQL/Generated/Inputs/PatchContribution.php b/src/GraphQL/Generated/Inputs/PatchContribution.php index 397ae1c..413d8b7 100644 --- a/src/GraphQL/Generated/Inputs/PatchContribution.php +++ b/src/GraphQL/Generated/Inputs/PatchContribution.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchContribution +final class PatchContribution extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContribution', [ diff --git a/src/GraphQL/Generated/Inputs/PatchContributor.php b/src/GraphQL/Generated/Inputs/PatchContributor.php index 072878b..00845c6 100644 --- a/src/GraphQL/Generated/Inputs/PatchContributor.php +++ b/src/GraphQL/Generated/Inputs/PatchContributor.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchContributor +final class PatchContributor extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContributor', [ diff --git a/src/GraphQL/Generated/Inputs/PatchEndorsement.php b/src/GraphQL/Generated/Inputs/PatchEndorsement.php index bc7edb5..018c095 100644 --- a/src/GraphQL/Generated/Inputs/PatchEndorsement.php +++ b/src/GraphQL/Generated/Inputs/PatchEndorsement.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchEndorsement +final class PatchEndorsement extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchEndorsement', [ diff --git a/src/GraphQL/Generated/Inputs/PatchFunding.php b/src/GraphQL/Generated/Inputs/PatchFunding.php index c4fc198..47c9bd0 100644 --- a/src/GraphQL/Generated/Inputs/PatchFunding.php +++ b/src/GraphQL/Generated/Inputs/PatchFunding.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchFunding +final class PatchFunding extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchFunding', [ diff --git a/src/GraphQL/Generated/Inputs/PatchImprint.php b/src/GraphQL/Generated/Inputs/PatchImprint.php index 794c977..f173a72 100644 --- a/src/GraphQL/Generated/Inputs/PatchImprint.php +++ b/src/GraphQL/Generated/Inputs/PatchImprint.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchImprint +final class PatchImprint extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchImprint', [ diff --git a/src/GraphQL/Generated/Inputs/PatchInstitution.php b/src/GraphQL/Generated/Inputs/PatchInstitution.php index 912e1af..c3c38ab 100644 --- a/src/GraphQL/Generated/Inputs/PatchInstitution.php +++ b/src/GraphQL/Generated/Inputs/PatchInstitution.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchInstitution +final class PatchInstitution extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchInstitution', [ diff --git a/src/GraphQL/Generated/Inputs/PatchIssue.php b/src/GraphQL/Generated/Inputs/PatchIssue.php index 41688c1..5459915 100644 --- a/src/GraphQL/Generated/Inputs/PatchIssue.php +++ b/src/GraphQL/Generated/Inputs/PatchIssue.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchIssue +final class PatchIssue extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchIssue', [ diff --git a/src/GraphQL/Generated/Inputs/PatchLanguage.php b/src/GraphQL/Generated/Inputs/PatchLanguage.php index bcf5b2b..ccd425a 100644 --- a/src/GraphQL/Generated/Inputs/PatchLanguage.php +++ b/src/GraphQL/Generated/Inputs/PatchLanguage.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchLanguage +final class PatchLanguage extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchLanguage', [ diff --git a/src/GraphQL/Generated/Inputs/PatchLocation.php b/src/GraphQL/Generated/Inputs/PatchLocation.php index 87d90b5..031673f 100644 --- a/src/GraphQL/Generated/Inputs/PatchLocation.php +++ b/src/GraphQL/Generated/Inputs/PatchLocation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchLocation +final class PatchLocation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchLocation', [ diff --git a/src/GraphQL/Generated/Inputs/PatchPrice.php b/src/GraphQL/Generated/Inputs/PatchPrice.php index cf164d9..7a586a0 100644 --- a/src/GraphQL/Generated/Inputs/PatchPrice.php +++ b/src/GraphQL/Generated/Inputs/PatchPrice.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchPrice +final class PatchPrice extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPrice', [ diff --git a/src/GraphQL/Generated/Inputs/PatchPublication.php b/src/GraphQL/Generated/Inputs/PatchPublication.php index 2169aa6..65b9c39 100644 --- a/src/GraphQL/Generated/Inputs/PatchPublication.php +++ b/src/GraphQL/Generated/Inputs/PatchPublication.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchPublication +final class PatchPublication extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPublication', [ diff --git a/src/GraphQL/Generated/Inputs/PatchPublisher.php b/src/GraphQL/Generated/Inputs/PatchPublisher.php index 4ba04c1..423c526 100644 --- a/src/GraphQL/Generated/Inputs/PatchPublisher.php +++ b/src/GraphQL/Generated/Inputs/PatchPublisher.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchPublisher +final class PatchPublisher extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPublisher', [ diff --git a/src/GraphQL/Generated/Inputs/PatchReference.php b/src/GraphQL/Generated/Inputs/PatchReference.php index 3e4a5b7..da5113b 100644 --- a/src/GraphQL/Generated/Inputs/PatchReference.php +++ b/src/GraphQL/Generated/Inputs/PatchReference.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchReference +final class PatchReference extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchReference', [ diff --git a/src/GraphQL/Generated/Inputs/PatchSeries.php b/src/GraphQL/Generated/Inputs/PatchSeries.php index 1b55b61..900f9e3 100644 --- a/src/GraphQL/Generated/Inputs/PatchSeries.php +++ b/src/GraphQL/Generated/Inputs/PatchSeries.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchSeries +final class PatchSeries extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchSeries', [ diff --git a/src/GraphQL/Generated/Inputs/PatchSubject.php b/src/GraphQL/Generated/Inputs/PatchSubject.php index 202e159..72b83d8 100644 --- a/src/GraphQL/Generated/Inputs/PatchSubject.php +++ b/src/GraphQL/Generated/Inputs/PatchSubject.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchSubject +final class PatchSubject extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchSubject', [ diff --git a/src/GraphQL/Generated/Inputs/PatchTitle.php b/src/GraphQL/Generated/Inputs/PatchTitle.php index 3f34d0c..e6536ff 100644 --- a/src/GraphQL/Generated/Inputs/PatchTitle.php +++ b/src/GraphQL/Generated/Inputs/PatchTitle.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchTitle +final class PatchTitle extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchTitle', [ diff --git a/src/GraphQL/Generated/Inputs/PatchWork.php b/src/GraphQL/Generated/Inputs/PatchWork.php index 57ce2c5..83ea8b5 100644 --- a/src/GraphQL/Generated/Inputs/PatchWork.php +++ b/src/GraphQL/Generated/Inputs/PatchWork.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchWork +final class PatchWork extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWork', [ diff --git a/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php b/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php index 202b3b4..1f7b9bc 100644 --- a/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php +++ b/src/GraphQL/Generated/Inputs/PatchWorkFeaturedVideo.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchWorkFeaturedVideo +final class PatchWorkFeaturedVideo extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWorkFeaturedVideo', [ diff --git a/src/GraphQL/Generated/Inputs/PatchWorkRelation.php b/src/GraphQL/Generated/Inputs/PatchWorkRelation.php index 2ac5b07..c13df3a 100644 --- a/src/GraphQL/Generated/Inputs/PatchWorkRelation.php +++ b/src/GraphQL/Generated/Inputs/PatchWorkRelation.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PatchWorkRelation +final class PatchWorkRelation extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWorkRelation', [ diff --git a/src/GraphQL/Generated/Inputs/PriceOrderBy.php b/src/GraphQL/Generated/Inputs/PriceOrderBy.php index a25a090..9dc1662 100644 --- a/src/GraphQL/Generated/Inputs/PriceOrderBy.php +++ b/src/GraphQL/Generated/Inputs/PriceOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PriceOrderBy +final class PriceOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PriceOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/PublicationOrderBy.php b/src/GraphQL/Generated/Inputs/PublicationOrderBy.php index 31e5e2c..24ce239 100644 --- a/src/GraphQL/Generated/Inputs/PublicationOrderBy.php +++ b/src/GraphQL/Generated/Inputs/PublicationOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PublicationOrderBy +final class PublicationOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PublicationOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/PublisherOrderBy.php b/src/GraphQL/Generated/Inputs/PublisherOrderBy.php index 686225e..fe65683 100644 --- a/src/GraphQL/Generated/Inputs/PublisherOrderBy.php +++ b/src/GraphQL/Generated/Inputs/PublisherOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class PublisherOrderBy +final class PublisherOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PublisherOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php b/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php index 5997570..cc93dd7 100644 --- a/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php +++ b/src/GraphQL/Generated/Inputs/ReferenceOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class ReferenceOrderBy +final class ReferenceOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ReferenceOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/SeriesOrderBy.php b/src/GraphQL/Generated/Inputs/SeriesOrderBy.php index 9b0d56f..d08573d 100644 --- a/src/GraphQL/Generated/Inputs/SeriesOrderBy.php +++ b/src/GraphQL/Generated/Inputs/SeriesOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class SeriesOrderBy +final class SeriesOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('SeriesOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/SubjectOrderBy.php b/src/GraphQL/Generated/Inputs/SubjectOrderBy.php index 5149bbf..f4c3eb3 100644 --- a/src/GraphQL/Generated/Inputs/SubjectOrderBy.php +++ b/src/GraphQL/Generated/Inputs/SubjectOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class SubjectOrderBy +final class SubjectOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('SubjectOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/TimeExpression.php b/src/GraphQL/Generated/Inputs/TimeExpression.php index 17d13fa..c78103e 100644 --- a/src/GraphQL/Generated/Inputs/TimeExpression.php +++ b/src/GraphQL/Generated/Inputs/TimeExpression.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class TimeExpression +final class TimeExpression extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('TimeExpression', [ diff --git a/src/GraphQL/Generated/Inputs/TitleOrderBy.php b/src/GraphQL/Generated/Inputs/TitleOrderBy.php index b9e6756..e023a49 100644 --- a/src/GraphQL/Generated/Inputs/TitleOrderBy.php +++ b/src/GraphQL/Generated/Inputs/TitleOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class TitleOrderBy +final class TitleOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('TitleOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php b/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php index cd7dbd0..ce47552 100644 --- a/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php +++ b/src/GraphQL/Generated/Inputs/WorkFeaturedVideoOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class WorkFeaturedVideoOrderBy +final class WorkFeaturedVideoOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkFeaturedVideoOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/WorkOrderBy.php b/src/GraphQL/Generated/Inputs/WorkOrderBy.php index 6e3d97f..c10b6c1 100644 --- a/src/GraphQL/Generated/Inputs/WorkOrderBy.php +++ b/src/GraphQL/Generated/Inputs/WorkOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class WorkOrderBy +final class WorkOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkOrderBy', [ diff --git a/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php b/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php index 5524adc..29e4c0b 100644 --- a/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php +++ b/src/GraphQL/Generated/Inputs/WorkRelationOrderBy.php @@ -3,21 +3,10 @@ namespace ThothApi\GraphQL\Generated\Inputs; use ThothApi\GraphQL\Definition\InputObjectTypeDefinition; +use ThothApi\GraphQL\InputObject; -final class WorkRelationOrderBy +final class WorkRelationOrderBy extends InputObject { - private array $data; - - public function __construct(array $data = []) - { - $this->data = $data; - } - - public function getAllData(): array - { - return $this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkRelationOrderBy', [ diff --git a/src/GraphQL/InputObject.php b/src/GraphQL/InputObject.php new file mode 100644 index 0000000..21f3bf9 --- /dev/null +++ b/src/GraphQL/InputObject.php @@ -0,0 +1,18 @@ +data = $data; + } + + public function getAllData(): array + { + return $this->data; + } +} diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index 85459c5..d3d581f 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -9,6 +9,7 @@ use ThothApi\GraphQL\Client; use ThothApi\GraphQL\Definition\FieldDefinition; use ThothApi\GraphQL\Definition\TypeReference; +use ThothApi\GraphQL\Generated\Inputs\NewPublicationFileUpload; use ThothApi\GraphQL\Generated\Inputs\NewWork; use ThothApi\GraphQL\OperationRequest; @@ -114,4 +115,27 @@ public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void $this->assertSame('work-1', $client->createWork($newWork)); } + + public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'initPublicationFileUpload' => [ + 'fileUploadId' => 'upload-1', + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + $input = new NewPublicationFileUpload([ + 'publicationId' => 'publication-1', + 'declaredMimeType' => 'application/pdf', + 'declaredExtension' => 'pdf', + 'declaredSha256' => str_repeat('a', 64), + ]); + + $this->assertSame('upload-1', $client->initPublicationFileUpload($input)); + } } diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 6cdd207..257826a 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -21,12 +21,10 @@ } removeDirectory($target); -mkdir($target . '/Queries', 0777, true); -mkdir($target . '/Mutations', 0777, true); -mkdir($target . '/Schemas', 0777, true); -mkdir($target . '/Inputs', 0777, true); -mkdir($target . '/Enums', 0777, true); -mkdir($target . '/Scalars', 0777, true); + +foreach (['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars'] as $directory) { + mkdir($target . '/' . $directory, 0777, true); +} generateOperations($types[$schema['queryType']['name']], 'query', $target . '/Queries', 'Queries'); generateOperations($types[$schema['mutationType']['name']], 'mutation', $target . '/Mutations', 'Mutations'); @@ -36,14 +34,19 @@ continue; } - if ($type['kind'] === 'OBJECT') { - generateObjectType($type, $target . '/Schemas', 'Schemas'); - } elseif ($type['kind'] === 'INPUT_OBJECT') { - generateInputType($type, $target . '/Inputs', 'Inputs'); - } elseif ($type['kind'] === 'ENUM') { - generateEnumType($type, $target . '/Enums', 'Enums'); - } elseif ($type['kind'] === 'SCALAR') { - generateScalarType($type, $target . '/Scalars', 'Scalars'); + switch ($type['kind']) { + case 'OBJECT': + generateObjectType($type, $target . '/Schemas', 'Schemas'); + break; + case 'INPUT_OBJECT': + generateInputType($type, $target . '/Inputs', 'Inputs'); + break; + case 'ENUM': + generateEnumType($type, $target . '/Enums', 'Enums'); + break; + case 'SCALAR': + generateScalarType($type, $target . '/Scalars', 'Scalars'); + break; } } @@ -150,21 +153,10 @@ static function (array $argument): string { namespace ThothApi\\GraphQL\\Generated\\{$namespacePart}; use ThothApi\\GraphQL\\Definition\\InputObjectTypeDefinition; +use ThothApi\\GraphQL\\InputObject; -final class {$className} +final class {$className} extends InputObject { - private array \$data; - - public function __construct(array \$data = []) - { - \$this->data = \$data; - } - - public function getAllData(): array - { - return \$this->data; - } - public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('{$type['name']}', [ From a72241859f38cfb15f72c638cd199bac1c913a2f Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 13:07:11 -0400 Subject: [PATCH 03/40] fix: harden generated GraphQL client execution --- src/GraphQL/Client.php | 75 ++++++++++++++++++++++--- src/GraphQL/OperationRequest.php | 12 ++++ tests/GraphQL/GenericClientTest.php | 76 ++++++++++++++++++++++++++ tests/GraphQL/OperationRequestTest.php | 65 ++++++++++++++++++++++ 4 files changed, 219 insertions(+), 9 deletions(-) diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index a4a25f0..bcbfffc 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -10,6 +10,8 @@ class Client private string $token = ''; + private static array $defaultSelections = []; + public const THOTH_BASE_URI = 'https://api.thoth.pub/'; public function __construct(array $httpConfig = []) @@ -32,7 +34,7 @@ public function rawQuery(string $rawQuery, array $args = []): array return $response->getData(); } - public function execute(OperationRequest $operation): array + public function execute(OperationRequest $operation) { $response = $this->request->runQuery($operation->toGraphQL(), null, $this->token ?: null); $data = $response->getData(); @@ -43,10 +45,11 @@ public function execute(OperationRequest $operation): array public function __call(string $name, array $arguments) { $operationClass = $this->getOperationClass($name); - $selection = $this->getSelectionArgument($arguments); $field = $operationClass::field(); + $schemaArguments = $field->getArguments(); + $selection = $this->getSelectionArgument($arguments, $schemaArguments); $operation = $operationClass::operation( - $this->getOperationArguments($field->getArguments(), $arguments), + $this->getOperationArguments($schemaArguments, $arguments), $selection ?: $this->getDefaultSelection($field->getType()->baseName()) ); @@ -71,15 +74,28 @@ private function getOperationClass(string $name): string throw new \BadMethodCallException("Operation '{$name}' not found."); } - private function getSelectionArgument(array &$arguments): array + private function getSelectionArgument(array &$arguments, array $schemaArguments): array { $lastArgument = count($arguments) - 1; - if ($lastArgument < 1 || !is_array($arguments[$lastArgument])) { + if ($lastArgument < 0 || !is_array($arguments[$lastArgument])) { return []; } - return array_pop($arguments); + if (count($arguments) > count($schemaArguments) && $this->isSelectionArray($arguments[$lastArgument])) { + return array_pop($arguments); + } + + if ( + count($arguments) === 2 + && is_array($arguments[0]) + && $this->hasSchemaNamedArguments($arguments[0], $schemaArguments) + && $this->isSelectionArray($arguments[$lastArgument]) + ) { + return array_pop($arguments); + } + + return []; } private function getOperationArguments(array $schemaArguments, array $arguments): array @@ -140,19 +156,26 @@ private function getDefaultSelection(?string $typeName): array return []; } + if (array_key_exists($typeName, self::$defaultSelections)) { + return self::$defaultSelections[$typeName]; + } + $schemaClass = '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); if (!class_exists($schemaClass)) { - return []; + self::$defaultSelections[$typeName] = []; + return self::$defaultSelections[$typeName]; } foreach ($schemaClass::definition()->getFields() as $field) { if (substr($field->getName(), -2) === 'Id') { - return [$field->getName()]; + self::$defaultSelections[$typeName] = [$field->getName()]; + return self::$defaultSelections[$typeName]; } } - return []; + self::$defaultSelections[$typeName] = []; + return self::$defaultSelections[$typeName]; } private function unwrapSingleSelection($result, array $selection) @@ -181,4 +204,38 @@ private function isAssociativeArray(array $value): bool { return $value !== [] && array_keys($value) !== range(0, count($value) - 1); } + + private function isSelectionArray(array $value): bool + { + foreach ($value as $field => $selection) { + if (is_array($selection)) { + if (!is_string($field) || !$this->isSelectionArray($selection)) { + return false; + } + + continue; + } + + if (!is_string($selection)) { + return false; + } + } + + return true; + } + + private function hasSchemaNamedArguments(array $arguments, array $schemaArguments): bool + { + if (!$this->isAssociativeArray($arguments)) { + return false; + } + + foreach ($schemaArguments as $schemaArgument) { + if (array_key_exists($schemaArgument->getName(), $arguments)) { + return true; + } + } + + return false; + } } diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 80f7248..735b315 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -63,6 +63,7 @@ private function formatArguments(array $arguments): string continue; } + $this->assertIdentifier((string) $name); $formatted[] = $name . ': ' . $this->formatValue($value); } @@ -75,10 +76,12 @@ private function formatSelection(array $selection): string foreach ($selection as $key => $value) { if (is_array($value)) { + $this->assertIdentifier((string) $key); $lines[] = ' ' . $key . " {\n" . $this->indent($this->formatSelection($value), 8) . "\n }"; continue; } + $this->assertIdentifier((string) $value); $lines[] = ' ' . $value; } @@ -88,6 +91,7 @@ private function formatSelection(array $selection): string private function formatValue($value): string { if ($value instanceof EnumValue) { + $this->assertIdentifier((string) $value); return (string) $value; } @@ -99,6 +103,7 @@ private function formatValue($value): string $fields = []; foreach ($value as $field => $fieldValue) { if ($fieldValue !== null) { + $this->assertIdentifier((string) $field); $fields[] = $field . ': ' . $this->formatValue($fieldValue); } } @@ -130,4 +135,11 @@ private function indent(string $value, int $spaces): string { return str_replace("\n", "\n" . str_repeat(' ', $spaces), $value); } + + private function assertIdentifier(string $value): void + { + if (!preg_match('/^[_A-Za-z][_0-9A-Za-z]*$/', $value)) { + throw new \InvalidArgumentException("Invalid GraphQL identifier '{$value}'."); + } + } } diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index d3d581f..a17a620 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -4,6 +4,7 @@ use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; +use GuzzleHttp\Middleware; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use ThothApi\GraphQL\Client; @@ -116,6 +117,39 @@ public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void $this->assertSame('work-1', $client->createWork($newWork)); } + public function testItKeepsExplicitSelectionForGeneratedMutationWithOneInput(): void + { + $history = []; + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], + ], + ])), + ]); + $handlerStack = HandlerStack::create($mockHandler); + $handlerStack->push(Middleware::history($history)); + $client = new Client(['handler' => $handlerStack]); + $newWork = new NewWork([ + 'workType' => OperationRequest::enum('MONOGRAPH'), + 'workStatus' => OperationRequest::enum('ACTIVE'), + 'fullTitle' => 'Generated client', + ]); + + $this->assertSame([ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], $client->createWork($newWork, ['workId', 'fullTitle'])); + + $body = json_decode((string) $history[0]['request']->getBody(), true); + + $this->assertStringContainsString('workId', $body['query']); + $this->assertStringContainsString('fullTitle', $body['query']); + } + public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): void { $mockHandler = new MockHandler([ @@ -138,4 +172,46 @@ public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): v $this->assertSame('upload-1', $client->initPublicationFileUpload($input)); } + + public function testItReturnsScalarOperationResults(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'workCount' => 3, + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + + $this->assertSame(3, $client->workCount()); + } + + public function testItKeepsArrayArgumentsWhenNoExplicitSelectionIsProvided(): void + { + $history = []; + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'works' => [ + ['workId' => 'work-1'], + ], + ], + ])), + ]); + $handlerStack = HandlerStack::create($mockHandler); + $handlerStack->push(Middleware::history($history)); + $client = new Client(['handler' => $handlerStack]); + + $client->works(100, 0, '', [ + 'field' => OperationRequest::enum('FULL_TITLE'), + 'direction' => OperationRequest::enum('ASC'), + ]); + + $body = json_decode((string) $history[0]['request']->getBody(), true); + + $this->assertStringContainsString('order: {field: FULL_TITLE, direction: ASC}', $body['query']); + $this->assertStringContainsString('workId', $body['query']); + } } diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 6b22b72..77e0c91 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -74,4 +74,69 @@ public function testItBuildsAMutationWithInputDataAndSelection(): void $this->assertSame($expected, $operation->toGraphQL()); } + + public function testItRejectsInvalidSelectionFields(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition('books', TypeReference::named('Work')), + [], + ['workId } malicious {'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid GraphQL identifier'); + + $operation->toGraphQL(); + } + + public function testItRejectsInvalidInputFields(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createPublisher', + TypeReference::named('Publisher'), + [ + new ArgumentDefinition('data', TypeReference::named('NewPublisher')), + ] + ), + [ + 'data' => [ + 'publisherName } malicious {' => 'ACME Press', + ], + ], + ['publisherId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid GraphQL identifier'); + + $operation->toGraphQL(); + } + + public function testItRejectsInvalidEnumValues(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition('order', TypeReference::named('WorkOrderBy')), + ] + ), + [ + 'order' => [ + 'field' => OperationRequest::enum('FULL_TITLE) malicious'), + ], + ], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid GraphQL identifier'); + + $operation->toGraphQL(); + } } From 7d95066e683299ba46a34f1ac42af3409dc8c0f3 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 13:37:24 -0400 Subject: [PATCH 04/40] fix: close GraphQL client review findings --- README.md | 2 ++ src/GraphQL/Client.php | 23 ++++++++++++- src/GraphQL/OperationRequest.php | 1 + tests/GraphQL/GenericClientTest.php | 46 ++++++++++++++++++++++++++ tests/GraphQL/OperationRequestTest.php | 15 +++++++++ 5 files changed, 86 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 475c4ce..f42c841 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,8 @@ try { * ) * ) */ + echo $exception->getQuery(); + echo print_r($exception->getVariables(), true); } ``` diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index bcbfffc..dcd26ee 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -30,7 +30,7 @@ public function setToken(string $token): self public function rawQuery(string $rawQuery, array $args = []): array { - $response = $this->request->runQuery($rawQuery, $args); + $response = $this->request->runQuery($rawQuery, $args, $this->token ?: null); return $response->getData(); } @@ -86,6 +86,14 @@ private function getSelectionArgument(array &$arguments, array $schemaArguments) return array_pop($arguments); } + if ( + isset($schemaArguments[$lastArgument]) + && $this->isScalarType($schemaArguments[$lastArgument]->getType()) + && $this->isSelectionArray($arguments[$lastArgument]) + ) { + return array_pop($arguments); + } + if ( count($arguments) === 2 && is_array($arguments[0]) @@ -238,4 +246,17 @@ private function hasSchemaNamedArguments(array $arguments, array $schemaArgument return false; } + + private function isScalarType($type): bool + { + if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->isScalarType($type->getOfType()); + } + + if ($type->getKind() === 'LIST') { + return false; + } + + return in_array($type->baseName(), self::SCALAR_TYPES, true); + } } diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 735b315..2b8d493 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -43,6 +43,7 @@ public function getSelection(): array public function toGraphQL(): string { + $this->assertIdentifier($this->field->getName()); $arguments = $this->formatArguments($this->arguments); $fieldLine = $this->field->getName() . ($arguments === '' ? '' : '(' . $arguments . ')'); $selection = $this->formatSelection($this->selection); diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index a17a620..5d6bbd1 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -188,6 +188,25 @@ public function testItReturnsScalarOperationResults(): void $this->assertSame(3, $client->workCount()); } + public function testItUsesTokenWhenExecutingRawQueries(): void + { + $history = []; + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'ping' => true, + ], + ])), + ]); + $handlerStack = HandlerStack::create($mockHandler); + $handlerStack->push(Middleware::history($history)); + $client = new Client(['handler' => $handlerStack]); + + $client->setToken('token-1')->rawQuery('query { ping }'); + + $this->assertSame('Bearer token-1', $history[0]['request']->getHeaderLine('Authorization')); + } + public function testItKeepsArrayArgumentsWhenNoExplicitSelectionIsProvided(): void { $history = []; @@ -214,4 +233,31 @@ public function testItKeepsArrayArgumentsWhenNoExplicitSelectionIsProvided(): vo $this->assertStringContainsString('order: {field: FULL_TITLE, direction: ASC}', $body['query']); $this->assertStringContainsString('workId', $body['query']); } + + public function testItAcceptsExplicitSelectionAfterOptionalPositionalArguments(): void + { + $history = []; + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'works' => [ + [ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], + ], + ], + ])), + ]); + $handlerStack = HandlerStack::create($mockHandler); + $handlerStack->push(Middleware::history($history)); + $client = new Client(['handler' => $handlerStack]); + + $client->works(5, ['workId', 'fullTitle']); + + $body = json_decode((string) $history[0]['request']->getBody(), true); + + $this->assertStringContainsString('works(limit: 5)', $body['query']); + $this->assertStringContainsString('fullTitle', $body['query']); + } } diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 77e0c91..51f71fb 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -90,6 +90,21 @@ public function testItRejectsInvalidSelectionFields(): void $operation->toGraphQL(); } + public function testItRejectsInvalidOperationFields(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition('books } malicious {', TypeReference::named('Work')), + [], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid GraphQL identifier'); + + $operation->toGraphQL(); + } + public function testItRejectsInvalidInputFields(): void { $operation = new OperationRequest( From ada7e67c1c3220b8f90ec67d10246f546f75ff03 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 13:56:05 -0400 Subject: [PATCH 05/40] feat: hydrate generated GraphQL schemas --- README.md | 21 + src/GraphQL/Client.php | 46 +- src/GraphQL/Generated/Schemas/Affiliation.php | 93 +- src/GraphQL/Generated/Schemas/Award.php | 143 ++- src/GraphQL/Generated/Schemas/Biography.php | 73 +- src/GraphQL/Generated/Schemas/BookReview.php | 203 +++- src/GraphQL/Generated/Schemas/Contact.php | 73 +- .../Generated/Schemas/Contribution.php | 163 ++- src/GraphQL/Generated/Schemas/Contributor.php | 93 +- src/GraphQL/Generated/Schemas/Endorsement.php | 133 ++- src/GraphQL/Generated/Schemas/File.php | 133 ++- .../Generated/Schemas/FileUploadResponse.php | 43 +- src/GraphQL/Generated/Schemas/Funding.php | 113 ++- .../Generated/Schemas/GraphQLAbstract.php | 73 +- src/GraphQL/Generated/Schemas/Imprint.php | 153 ++- src/GraphQL/Generated/Schemas/Institution.php | 93 +- src/GraphQL/Generated/Schemas/Issue.php | 93 +- src/GraphQL/Generated/Schemas/Language.php | 73 +- src/GraphQL/Generated/Schemas/Location.php | 113 ++- src/GraphQL/Generated/Schemas/Me.php | 63 +- .../Generated/Schemas/MutationRoot.php | 933 +++++++++++++++++- src/GraphQL/Generated/Schemas/Price.php | 73 +- src/GraphQL/Generated/Schemas/Publication.php | 183 +++- src/GraphQL/Generated/Schemas/Publisher.php | 113 ++- .../Generated/Schemas/PublisherContext.php | 23 +- .../Schemas/PublisherPermissions.php | 33 +- src/GraphQL/Generated/Schemas/QueryRoot.php | 813 ++++++++++++++- src/GraphQL/Generated/Schemas/Reference.php | 263 ++++- src/GraphQL/Generated/Schemas/Series.php | 133 ++- src/GraphQL/Generated/Schemas/Subject.php | 83 +- src/GraphQL/Generated/Schemas/Title.php | 83 +- .../Generated/Schemas/UploadRequestHeader.php | 23 +- src/GraphQL/Generated/Schemas/Work.php | 553 ++++++++++- .../Generated/Schemas/WorkFeaturedVideo.php | 103 +- .../Generated/Schemas/WorkRelation.php | 83 +- .../Generated/Schemas/WorkResource.php | 153 ++- src/GraphQL/ObjectData.php | 118 +++ tests/GraphQL/GenericClientTest.php | 91 +- tools/generate-graphql-client.php | 30 +- 39 files changed, 5837 insertions(+), 41 deletions(-) create mode 100644 src/GraphQL/ObjectData.php diff --git a/README.md b/README.md index f42c841..88974ea 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,27 @@ $subjectId = $client->createSubject(new NewSubject([ ])); ``` +Generated schema classes can also be hydrated from explicit selections and expose getters, setters and +`toArray()`. + +```php +$work = $client->createWork($newWork, [ + 'workId', + 'fullTitle', + 'imprint' => [ + 'imprintId', + 'publisher' => [ + 'publisherId', + 'publisherName', + ], + ], +]); + +echo $work->getWorkId(); +echo $work->getImprint()->getPublisher()->getPublisherName(); +print_r($work->toArray()); +``` + Regenerate the GraphQL classes from the current Thoth GraphQL schema: ```bash diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index dcd26ee..18cd81b 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -53,7 +53,14 @@ public function __call(string $name, array $arguments) $selection ?: $this->getDefaultSelection($field->getType()->baseName()) ); - return $this->unwrapSingleSelection($this->execute($operation), $operation->getSelection()); + $result = $this->execute($operation); + $unwrappedResult = $this->unwrapSingleSelection($result, $operation->getSelection()); + + if ($unwrappedResult !== $result) { + return $unwrappedResult; + } + + return $this->hydrateResult($result, $field->getType()); } private function getOperationClass(string $name): string @@ -195,6 +202,38 @@ private function unwrapSingleSelection($result, array $selection) return array_key_exists($selection[0], $result) ? $result[$selection[0]] : $result; } + private function hydrateResult($result, $type) + { + if ($result === null) { + return null; + } + + if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->hydrateResult($result, $type->getOfType()); + } + + if ($type->getKind() === 'LIST' && $type->getOfType() !== null && is_array($result)) { + return array_map( + function ($item) use ($type) { + return $this->hydrateResult($item, $type->getOfType()); + }, + $result + ); + } + + if (!is_array($result)) { + return $result; + } + + $schemaClass = $this->getSchemaClass($type->baseName()); + + if (!class_exists($schemaClass)) { + return $result; + } + + return $schemaClass::fromArray($result); + } + private function studly(string $value): string { $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); @@ -259,4 +298,9 @@ private function isScalarType($type): bool return in_array($type->baseName(), self::SCALAR_TYPES, true); } + + private function getSchemaClass(?string $typeName): string + { + return '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + } } diff --git a/src/GraphQL/Generated/Schemas/Affiliation.php b/src/GraphQL/Generated/Schemas/Affiliation.php index 9b41cd0..a2f444f 100644 --- a/src/GraphQL/Generated/Schemas/Affiliation.php +++ b/src/GraphQL/Generated/Schemas/Affiliation.php @@ -3,9 +3,100 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Affiliation +final class Affiliation extends ObjectData { + public function getAffiliationId() + { + return $this->get('affiliationId'); + } + + public function setAffiliationId($value): self + { + return $this->set('affiliationId', $value); + } + + public function getContributionId() + { + return $this->get('contributionId'); + } + + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function getAffiliationOrdinal() + { + return $this->get('affiliationOrdinal'); + } + + public function setAffiliationOrdinal($value): self + { + return $this->set('affiliationOrdinal', $value); + } + + public function getPosition() + { + return $this->get('position'); + } + + public function setPosition($value): self + { + return $this->set('position', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getInstitution() + { + return $this->get('institution'); + } + + public function setInstitution($value): self + { + return $this->set('institution', $value); + } + + public function getContribution() + { + return $this->get('contribution'); + } + + public function setContribution($value): self + { + return $this->set('contribution', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Affiliation', [ diff --git a/src/GraphQL/Generated/Schemas/Award.php b/src/GraphQL/Generated/Schemas/Award.php index 0601df1..6192bb5 100644 --- a/src/GraphQL/Generated/Schemas/Award.php +++ b/src/GraphQL/Generated/Schemas/Award.php @@ -3,9 +3,150 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Award +final class Award extends ObjectData { + public function getAwardId() + { + return $this->get('awardId'); + } + + public function setAwardId($value): self + { + return $this->set('awardId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getCategory() + { + return $this->get('category'); + } + + public function setCategory($value): self + { + return $this->set('category', $value); + } + + public function getYear() + { + return $this->get('year'); + } + + public function setYear($value): self + { + return $this->set('year', $value); + } + + public function getJury() + { + return $this->get('jury'); + } + + public function setJury($value): self + { + return $this->set('jury', $value); + } + + public function getCountry() + { + return $this->get('country'); + } + + public function setCountry($value): self + { + return $this->set('country', $value); + } + + public function getRole() + { + return $this->get('role'); + } + + public function setRole($value): self + { + return $this->set('role', $value); + } + + public function getPrizeStatement() + { + return $this->get('prizeStatement'); + } + + public function setPrizeStatement($value): self + { + return $this->set('prizeStatement', $value); + } + + public function getAwardOrdinal() + { + return $this->get('awardOrdinal'); + } + + public function setAwardOrdinal($value): self + { + return $this->set('awardOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Award', [ diff --git a/src/GraphQL/Generated/Schemas/Biography.php b/src/GraphQL/Generated/Schemas/Biography.php index 296c28c..2c8a1a0 100644 --- a/src/GraphQL/Generated/Schemas/Biography.php +++ b/src/GraphQL/Generated/Schemas/Biography.php @@ -3,9 +3,80 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Biography +final class Biography extends ObjectData { + public function getBiographyId() + { + return $this->get('biographyId'); + } + + public function setBiographyId($value): self + { + return $this->set('biographyId', $value); + } + + public function getContributionId() + { + return $this->get('contributionId'); + } + + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function getContent() + { + return $this->get('content'); + } + + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function getCanonical() + { + return $this->get('canonical'); + } + + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getContribution() + { + return $this->get('contribution'); + } + + public function setContribution($value): self + { + return $this->set('contribution', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Biography', [ diff --git a/src/GraphQL/Generated/Schemas/BookReview.php b/src/GraphQL/Generated/Schemas/BookReview.php index 9418180..00392d7 100644 --- a/src/GraphQL/Generated/Schemas/BookReview.php +++ b/src/GraphQL/Generated/Schemas/BookReview.php @@ -3,9 +3,210 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class BookReview +final class BookReview extends ObjectData { + public function getBookReviewId() + { + return $this->get('bookReviewId'); + } + + public function setBookReviewId($value): self + { + return $this->set('bookReviewId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getAuthorName() + { + return $this->get('authorName'); + } + + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function getReviewerOrcid() + { + return $this->get('reviewerOrcid'); + } + + public function setReviewerOrcid($value): self + { + return $this->set('reviewerOrcid', $value); + } + + public function getReviewerInstitutionId() + { + return $this->get('reviewerInstitutionId'); + } + + public function setReviewerInstitutionId($value): self + { + return $this->set('reviewerInstitutionId', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getDoi() + { + return $this->get('doi'); + } + + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function getReviewDate() + { + return $this->get('reviewDate'); + } + + public function setReviewDate($value): self + { + return $this->set('reviewDate', $value); + } + + public function getJournalName() + { + return $this->get('journalName'); + } + + public function setJournalName($value): self + { + return $this->set('journalName', $value); + } + + public function getJournalVolume() + { + return $this->get('journalVolume'); + } + + public function setJournalVolume($value): self + { + return $this->set('journalVolume', $value); + } + + public function getJournalNumber() + { + return $this->get('journalNumber'); + } + + public function setJournalNumber($value): self + { + return $this->set('journalNumber', $value); + } + + public function getJournalIssn() + { + return $this->get('journalIssn'); + } + + public function setJournalIssn($value): self + { + return $this->set('journalIssn', $value); + } + + public function getPageRange() + { + return $this->get('pageRange'); + } + + public function setPageRange($value): self + { + return $this->set('pageRange', $value); + } + + public function getText() + { + return $this->get('text'); + } + + public function setText($value): self + { + return $this->set('text', $value); + } + + public function getReviewOrdinal() + { + return $this->get('reviewOrdinal'); + } + + public function setReviewOrdinal($value): self + { + return $this->set('reviewOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getReviewerInstitution() + { + return $this->get('reviewerInstitution'); + } + + public function setReviewerInstitution($value): self + { + return $this->set('reviewerInstitution', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('BookReview', [ diff --git a/src/GraphQL/Generated/Schemas/Contact.php b/src/GraphQL/Generated/Schemas/Contact.php index a00f6f9..2159c86 100644 --- a/src/GraphQL/Generated/Schemas/Contact.php +++ b/src/GraphQL/Generated/Schemas/Contact.php @@ -3,9 +3,80 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Contact +final class Contact extends ObjectData { + public function getContactId() + { + return $this->get('contactId'); + } + + public function setContactId($value): self + { + return $this->set('contactId', $value); + } + + public function getPublisherId() + { + return $this->get('publisherId'); + } + + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function getContactType() + { + return $this->get('contactType'); + } + + public function setContactType($value): self + { + return $this->set('contactType', $value); + } + + public function getEmail() + { + return $this->get('email'); + } + + public function setEmail($value): self + { + return $this->set('email', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getPublisher() + { + return $this->get('publisher'); + } + + public function setPublisher($value): self + { + return $this->set('publisher', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contact', [ diff --git a/src/GraphQL/Generated/Schemas/Contribution.php b/src/GraphQL/Generated/Schemas/Contribution.php index 773a7e8..f30dfa4 100644 --- a/src/GraphQL/Generated/Schemas/Contribution.php +++ b/src/GraphQL/Generated/Schemas/Contribution.php @@ -3,9 +3,170 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Contribution +final class Contribution extends ObjectData { + public function getContributionId() + { + return $this->get('contributionId'); + } + + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function getContributorId() + { + return $this->get('contributorId'); + } + + public function setContributorId($value): self + { + return $this->set('contributorId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getContributionType() + { + return $this->get('contributionType'); + } + + public function setContributionType($value): self + { + return $this->set('contributionType', $value); + } + + public function getMainContribution() + { + return $this->get('mainContribution'); + } + + public function setMainContribution($value): self + { + return $this->set('mainContribution', $value); + } + + public function getBiographies() + { + return $this->get('biographies'); + } + + public function setBiographies($value): self + { + return $this->set('biographies', $value); + } + + public function getBiography() + { + return $this->get('biography'); + } + + public function setBiography($value): self + { + return $this->set('biography', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getFirstName() + { + return $this->get('firstName'); + } + + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function getLastName() + { + return $this->get('lastName'); + } + + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function getFullName() + { + return $this->get('fullName'); + } + + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function getContributionOrdinal() + { + return $this->get('contributionOrdinal'); + } + + public function setContributionOrdinal($value): self + { + return $this->set('contributionOrdinal', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getContributor() + { + return $this->get('contributor'); + } + + public function setContributor($value): self + { + return $this->set('contributor', $value); + } + + public function getAffiliations() + { + return $this->get('affiliations'); + } + + public function setAffiliations($value): self + { + return $this->set('affiliations', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contribution', [ diff --git a/src/GraphQL/Generated/Schemas/Contributor.php b/src/GraphQL/Generated/Schemas/Contributor.php index 3dc6b65..97cfb7a 100644 --- a/src/GraphQL/Generated/Schemas/Contributor.php +++ b/src/GraphQL/Generated/Schemas/Contributor.php @@ -3,9 +3,100 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Contributor +final class Contributor extends ObjectData { + public function getContributorId() + { + return $this->get('contributorId'); + } + + public function setContributorId($value): self + { + return $this->set('contributorId', $value); + } + + public function getFirstName() + { + return $this->get('firstName'); + } + + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function getLastName() + { + return $this->get('lastName'); + } + + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function getFullName() + { + return $this->get('fullName'); + } + + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function getOrcid() + { + return $this->get('orcid'); + } + + public function setOrcid($value): self + { + return $this->set('orcid', $value); + } + + public function getWebsite() + { + return $this->get('website'); + } + + public function setWebsite($value): self + { + return $this->set('website', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getContributions() + { + return $this->get('contributions'); + } + + public function setContributions($value): self + { + return $this->set('contributions', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contributor', [ diff --git a/src/GraphQL/Generated/Schemas/Endorsement.php b/src/GraphQL/Generated/Schemas/Endorsement.php index ef6e362..c0efa4d 100644 --- a/src/GraphQL/Generated/Schemas/Endorsement.php +++ b/src/GraphQL/Generated/Schemas/Endorsement.php @@ -3,9 +3,140 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Endorsement +final class Endorsement extends ObjectData { + public function getEndorsementId() + { + return $this->get('endorsementId'); + } + + public function setEndorsementId($value): self + { + return $this->set('endorsementId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getAuthorName() + { + return $this->get('authorName'); + } + + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function getAuthorRole() + { + return $this->get('authorRole'); + } + + public function setAuthorRole($value): self + { + return $this->set('authorRole', $value); + } + + public function getAuthorOrcid() + { + return $this->get('authorOrcid'); + } + + public function setAuthorOrcid($value): self + { + return $this->set('authorOrcid', $value); + } + + public function getAuthorInstitutionId() + { + return $this->get('authorInstitutionId'); + } + + public function setAuthorInstitutionId($value): self + { + return $this->set('authorInstitutionId', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getText() + { + return $this->get('text'); + } + + public function setText($value): self + { + return $this->set('text', $value); + } + + public function getEndorsementOrdinal() + { + return $this->get('endorsementOrdinal'); + } + + public function setEndorsementOrdinal($value): self + { + return $this->set('endorsementOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getAuthorInstitution() + { + return $this->get('authorInstitution'); + } + + public function setAuthorInstitution($value): self + { + return $this->set('authorInstitution', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Endorsement', [ diff --git a/src/GraphQL/Generated/Schemas/File.php b/src/GraphQL/Generated/Schemas/File.php index 8bcd49d..4a8e10f 100644 --- a/src/GraphQL/Generated/Schemas/File.php +++ b/src/GraphQL/Generated/Schemas/File.php @@ -3,9 +3,140 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class File +final class File extends ObjectData { + public function getFileId() + { + return $this->get('fileId'); + } + + public function setFileId($value): self + { + return $this->set('fileId', $value); + } + + public function getFileType() + { + return $this->get('fileType'); + } + + public function setFileType($value): self + { + return $this->set('fileType', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getPublicationId() + { + return $this->get('publicationId'); + } + + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function getAdditionalResourceId() + { + return $this->get('additionalResourceId'); + } + + public function setAdditionalResourceId($value): self + { + return $this->set('additionalResourceId', $value); + } + + public function getWorkFeaturedVideoId() + { + return $this->get('workFeaturedVideoId'); + } + + public function setWorkFeaturedVideoId($value): self + { + return $this->set('workFeaturedVideoId', $value); + } + + public function getObjectKey() + { + return $this->get('objectKey'); + } + + public function setObjectKey($value): self + { + return $this->set('objectKey', $value); + } + + public function getCdnUrl() + { + return $this->get('cdnUrl'); + } + + public function setCdnUrl($value): self + { + return $this->set('cdnUrl', $value); + } + + public function getMimeType() + { + return $this->get('mimeType'); + } + + public function setMimeType($value): self + { + return $this->set('mimeType', $value); + } + + public function getBytes() + { + return $this->get('bytes'); + } + + public function setBytes($value): self + { + return $this->set('bytes', $value); + } + + public function getSha256() + { + return $this->get('sha256'); + } + + public function setSha256($value): self + { + return $this->set('sha256', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('File', [ diff --git a/src/GraphQL/Generated/Schemas/FileUploadResponse.php b/src/GraphQL/Generated/Schemas/FileUploadResponse.php index 08010fc..c4d6494 100644 --- a/src/GraphQL/Generated/Schemas/FileUploadResponse.php +++ b/src/GraphQL/Generated/Schemas/FileUploadResponse.php @@ -3,9 +3,50 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class FileUploadResponse +final class FileUploadResponse extends ObjectData { + public function getFileUploadId() + { + return $this->get('fileUploadId'); + } + + public function setFileUploadId($value): self + { + return $this->set('fileUploadId', $value); + } + + public function getUploadUrl() + { + return $this->get('uploadUrl'); + } + + public function setUploadUrl($value): self + { + return $this->set('uploadUrl', $value); + } + + public function getUploadHeaders() + { + return $this->get('uploadHeaders'); + } + + public function setUploadHeaders($value): self + { + return $this->set('uploadHeaders', $value); + } + + public function getExpiresAt() + { + return $this->get('expiresAt'); + } + + public function setExpiresAt($value): self + { + return $this->set('expiresAt', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('FileUploadResponse', [ diff --git a/src/GraphQL/Generated/Schemas/Funding.php b/src/GraphQL/Generated/Schemas/Funding.php index 15e4b7c..f70a41c 100644 --- a/src/GraphQL/Generated/Schemas/Funding.php +++ b/src/GraphQL/Generated/Schemas/Funding.php @@ -3,9 +3,120 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Funding +final class Funding extends ObjectData { + public function getFundingId() + { + return $this->get('fundingId'); + } + + public function setFundingId($value): self + { + return $this->set('fundingId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function getProgram() + { + return $this->get('program'); + } + + public function setProgram($value): self + { + return $this->set('program', $value); + } + + public function getProjectName() + { + return $this->get('projectName'); + } + + public function setProjectName($value): self + { + return $this->set('projectName', $value); + } + + public function getProjectShortname() + { + return $this->get('projectShortname'); + } + + public function setProjectShortname($value): self + { + return $this->set('projectShortname', $value); + } + + public function getGrantNumber() + { + return $this->get('grantNumber'); + } + + public function setGrantNumber($value): self + { + return $this->set('grantNumber', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getInstitution() + { + return $this->get('institution'); + } + + public function setInstitution($value): self + { + return $this->set('institution', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Funding', [ diff --git a/src/GraphQL/Generated/Schemas/GraphQLAbstract.php b/src/GraphQL/Generated/Schemas/GraphQLAbstract.php index ece4566..7b4dfcc 100644 --- a/src/GraphQL/Generated/Schemas/GraphQLAbstract.php +++ b/src/GraphQL/Generated/Schemas/GraphQLAbstract.php @@ -3,9 +3,80 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class GraphQLAbstract +final class GraphQLAbstract extends ObjectData { + public function getAbstractId() + { + return $this->get('abstractId'); + } + + public function setAbstractId($value): self + { + return $this->set('abstractId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function getContent() + { + return $this->get('content'); + } + + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function getCanonical() + { + return $this->get('canonical'); + } + + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function getAbstractType() + { + return $this->get('abstractType'); + } + + public function setAbstractType($value): self + { + return $this->set('abstractType', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Abstract', [ diff --git a/src/GraphQL/Generated/Schemas/Imprint.php b/src/GraphQL/Generated/Schemas/Imprint.php index effb860..01ccd4b 100644 --- a/src/GraphQL/Generated/Schemas/Imprint.php +++ b/src/GraphQL/Generated/Schemas/Imprint.php @@ -3,9 +3,160 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Imprint +final class Imprint extends ObjectData { + public function getImprintId() + { + return $this->get('imprintId'); + } + + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function getPublisherId() + { + return $this->get('publisherId'); + } + + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function getImprintName() + { + return $this->get('imprintName'); + } + + public function setImprintName($value): self + { + return $this->set('imprintName', $value); + } + + public function getImprintUrl() + { + return $this->get('imprintUrl'); + } + + public function setImprintUrl($value): self + { + return $this->set('imprintUrl', $value); + } + + public function getCrossmarkDoi() + { + return $this->get('crossmarkDoi'); + } + + public function setCrossmarkDoi($value): self + { + return $this->set('crossmarkDoi', $value); + } + + public function getS3Bucket() + { + return $this->get('s3Bucket'); + } + + public function setS3Bucket($value): self + { + return $this->set('s3Bucket', $value); + } + + public function getCdnDomain() + { + return $this->get('cdnDomain'); + } + + public function setCdnDomain($value): self + { + return $this->set('cdnDomain', $value); + } + + public function getCloudfrontDistId() + { + return $this->get('cloudfrontDistId'); + } + + public function setCloudfrontDistId($value): self + { + return $this->set('cloudfrontDistId', $value); + } + + public function getDefaultCurrency() + { + return $this->get('defaultCurrency'); + } + + public function setDefaultCurrency($value): self + { + return $this->set('defaultCurrency', $value); + } + + public function getDefaultPlace() + { + return $this->get('defaultPlace'); + } + + public function setDefaultPlace($value): self + { + return $this->set('defaultPlace', $value); + } + + public function getDefaultLocale() + { + return $this->get('defaultLocale'); + } + + public function setDefaultLocale($value): self + { + return $this->set('defaultLocale', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getPublisher() + { + return $this->get('publisher'); + } + + public function setPublisher($value): self + { + return $this->set('publisher', $value); + } + + public function getWorks() + { + return $this->get('works'); + } + + public function setWorks($value): self + { + return $this->set('works', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Imprint', [ diff --git a/src/GraphQL/Generated/Schemas/Institution.php b/src/GraphQL/Generated/Schemas/Institution.php index 3cd2d79..51f9c8a 100644 --- a/src/GraphQL/Generated/Schemas/Institution.php +++ b/src/GraphQL/Generated/Schemas/Institution.php @@ -3,9 +3,100 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Institution +final class Institution extends ObjectData { + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function getInstitutionName() + { + return $this->get('institutionName'); + } + + public function setInstitutionName($value): self + { + return $this->set('institutionName', $value); + } + + public function getInstitutionDoi() + { + return $this->get('institutionDoi'); + } + + public function setInstitutionDoi($value): self + { + return $this->set('institutionDoi', $value); + } + + public function getCountryCode() + { + return $this->get('countryCode'); + } + + public function setCountryCode($value): self + { + return $this->set('countryCode', $value); + } + + public function getRor() + { + return $this->get('ror'); + } + + public function setRor($value): self + { + return $this->set('ror', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getFundings() + { + return $this->get('fundings'); + } + + public function setFundings($value): self + { + return $this->set('fundings', $value); + } + + public function getAffiliations() + { + return $this->get('affiliations'); + } + + public function setAffiliations($value): self + { + return $this->set('affiliations', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Institution', [ diff --git a/src/GraphQL/Generated/Schemas/Issue.php b/src/GraphQL/Generated/Schemas/Issue.php index 44131c3..09e4f98 100644 --- a/src/GraphQL/Generated/Schemas/Issue.php +++ b/src/GraphQL/Generated/Schemas/Issue.php @@ -3,9 +3,100 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Issue +final class Issue extends ObjectData { + public function getIssueId() + { + return $this->get('issueId'); + } + + public function setIssueId($value): self + { + return $this->set('issueId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getSeriesId() + { + return $this->get('seriesId'); + } + + public function setSeriesId($value): self + { + return $this->set('seriesId', $value); + } + + public function getIssueOrdinal() + { + return $this->get('issueOrdinal'); + } + + public function setIssueOrdinal($value): self + { + return $this->set('issueOrdinal', $value); + } + + public function getIssueNumber() + { + return $this->get('issueNumber'); + } + + public function setIssueNumber($value): self + { + return $this->set('issueNumber', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getSeries() + { + return $this->get('series'); + } + + public function setSeries($value): self + { + return $this->set('series', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Issue', [ diff --git a/src/GraphQL/Generated/Schemas/Language.php b/src/GraphQL/Generated/Schemas/Language.php index 6347077..f265c12 100644 --- a/src/GraphQL/Generated/Schemas/Language.php +++ b/src/GraphQL/Generated/Schemas/Language.php @@ -3,9 +3,80 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Language +final class Language extends ObjectData { + public function getLanguageId() + { + return $this->get('languageId'); + } + + public function setLanguageId($value): self + { + return $this->set('languageId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getLanguageCode() + { + return $this->get('languageCode'); + } + + public function setLanguageCode($value): self + { + return $this->set('languageCode', $value); + } + + public function getLanguageRelation() + { + return $this->get('languageRelation'); + } + + public function setLanguageRelation($value): self + { + return $this->set('languageRelation', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Language', [ diff --git a/src/GraphQL/Generated/Schemas/Location.php b/src/GraphQL/Generated/Schemas/Location.php index 35b9428..d5f5149 100644 --- a/src/GraphQL/Generated/Schemas/Location.php +++ b/src/GraphQL/Generated/Schemas/Location.php @@ -3,9 +3,120 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Location +final class Location extends ObjectData { + public function getLocationId() + { + return $this->get('locationId'); + } + + public function setLocationId($value): self + { + return $this->set('locationId', $value); + } + + public function getPublicationId() + { + return $this->get('publicationId'); + } + + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function getLandingPage() + { + return $this->get('landingPage'); + } + + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function getFullTextUrl() + { + return $this->get('fullTextUrl'); + } + + public function setFullTextUrl($value): self + { + return $this->set('fullTextUrl', $value); + } + + public function getLocationPlatform() + { + return $this->get('locationPlatform'); + } + + public function setLocationPlatform($value): self + { + return $this->set('locationPlatform', $value); + } + + public function getCanonical() + { + return $this->get('canonical'); + } + + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function getChecksum() + { + return $this->get('checksum'); + } + + public function setChecksum($value): self + { + return $this->set('checksum', $value); + } + + public function getChecksumAlgorithm() + { + return $this->get('checksumAlgorithm'); + } + + public function setChecksumAlgorithm($value): self + { + return $this->set('checksumAlgorithm', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getPublication() + { + return $this->get('publication'); + } + + public function setPublication($value): self + { + return $this->set('publication', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Location', [ diff --git a/src/GraphQL/Generated/Schemas/Me.php b/src/GraphQL/Generated/Schemas/Me.php index 4ab4535..a5656a7 100644 --- a/src/GraphQL/Generated/Schemas/Me.php +++ b/src/GraphQL/Generated/Schemas/Me.php @@ -3,9 +3,70 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Me +final class Me extends ObjectData { + public function getUserId() + { + return $this->get('userId'); + } + + public function setUserId($value): self + { + return $this->set('userId', $value); + } + + public function getEmail() + { + return $this->get('email'); + } + + public function setEmail($value): self + { + return $this->set('email', $value); + } + + public function getFirstName() + { + return $this->get('firstName'); + } + + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function getLastName() + { + return $this->get('lastName'); + } + + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function getIsSuperuser() + { + return $this->get('isSuperuser'); + } + + public function setIsSuperuser($value): self + { + return $this->set('isSuperuser', $value); + } + + public function getPublisherContexts() + { + return $this->get('publisherContexts'); + } + + public function setPublisherContexts($value): self + { + return $this->set('publisherContexts', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Me', [ diff --git a/src/GraphQL/Generated/Schemas/MutationRoot.php b/src/GraphQL/Generated/Schemas/MutationRoot.php index 4734ab3..fb1eba6 100644 --- a/src/GraphQL/Generated/Schemas/MutationRoot.php +++ b/src/GraphQL/Generated/Schemas/MutationRoot.php @@ -3,9 +3,940 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class MutationRoot +final class MutationRoot extends ObjectData { + public function getCreateWork() + { + return $this->get('createWork'); + } + + public function setCreateWork($value): self + { + return $this->set('createWork', $value); + } + + public function getCreatePublisher() + { + return $this->get('createPublisher'); + } + + public function setCreatePublisher($value): self + { + return $this->set('createPublisher', $value); + } + + public function getCreateImprint() + { + return $this->get('createImprint'); + } + + public function setCreateImprint($value): self + { + return $this->set('createImprint', $value); + } + + public function getCreateContributor() + { + return $this->get('createContributor'); + } + + public function setCreateContributor($value): self + { + return $this->set('createContributor', $value); + } + + public function getCreateContribution() + { + return $this->get('createContribution'); + } + + public function setCreateContribution($value): self + { + return $this->set('createContribution', $value); + } + + public function getCreatePublication() + { + return $this->get('createPublication'); + } + + public function setCreatePublication($value): self + { + return $this->set('createPublication', $value); + } + + public function getCreateSeries() + { + return $this->get('createSeries'); + } + + public function setCreateSeries($value): self + { + return $this->set('createSeries', $value); + } + + public function getCreateIssue() + { + return $this->get('createIssue'); + } + + public function setCreateIssue($value): self + { + return $this->set('createIssue', $value); + } + + public function getCreateLanguage() + { + return $this->get('createLanguage'); + } + + public function setCreateLanguage($value): self + { + return $this->set('createLanguage', $value); + } + + public function getCreateTitle() + { + return $this->get('createTitle'); + } + + public function setCreateTitle($value): self + { + return $this->set('createTitle', $value); + } + + public function getCreateAbstract() + { + return $this->get('createAbstract'); + } + + public function setCreateAbstract($value): self + { + return $this->set('createAbstract', $value); + } + + public function getCreateBiography() + { + return $this->get('createBiography'); + } + + public function setCreateBiography($value): self + { + return $this->set('createBiography', $value); + } + + public function getCreateInstitution() + { + return $this->get('createInstitution'); + } + + public function setCreateInstitution($value): self + { + return $this->set('createInstitution', $value); + } + + public function getCreateFunding() + { + return $this->get('createFunding'); + } + + public function setCreateFunding($value): self + { + return $this->set('createFunding', $value); + } + + public function getCreateLocation() + { + return $this->get('createLocation'); + } + + public function setCreateLocation($value): self + { + return $this->set('createLocation', $value); + } + + public function getCreatePrice() + { + return $this->get('createPrice'); + } + + public function setCreatePrice($value): self + { + return $this->set('createPrice', $value); + } + + public function getCreateSubject() + { + return $this->get('createSubject'); + } + + public function setCreateSubject($value): self + { + return $this->set('createSubject', $value); + } + + public function getCreateAffiliation() + { + return $this->get('createAffiliation'); + } + + public function setCreateAffiliation($value): self + { + return $this->set('createAffiliation', $value); + } + + public function getCreateWorkRelation() + { + return $this->get('createWorkRelation'); + } + + public function setCreateWorkRelation($value): self + { + return $this->set('createWorkRelation', $value); + } + + public function getCreateReference() + { + return $this->get('createReference'); + } + + public function setCreateReference($value): self + { + return $this->set('createReference', $value); + } + + public function getCreateAdditionalResource() + { + return $this->get('createAdditionalResource'); + } + + public function setCreateAdditionalResource($value): self + { + return $this->set('createAdditionalResource', $value); + } + + public function getCreateAward() + { + return $this->get('createAward'); + } + + public function setCreateAward($value): self + { + return $this->set('createAward', $value); + } + + public function getCreateEndorsement() + { + return $this->get('createEndorsement'); + } + + public function setCreateEndorsement($value): self + { + return $this->set('createEndorsement', $value); + } + + public function getCreateBookReview() + { + return $this->get('createBookReview'); + } + + public function setCreateBookReview($value): self + { + return $this->set('createBookReview', $value); + } + + public function getCreateWorkFeaturedVideo() + { + return $this->get('createWorkFeaturedVideo'); + } + + public function setCreateWorkFeaturedVideo($value): self + { + return $this->set('createWorkFeaturedVideo', $value); + } + + public function getCreateContact() + { + return $this->get('createContact'); + } + + public function setCreateContact($value): self + { + return $this->set('createContact', $value); + } + + public function getUpdateWork() + { + return $this->get('updateWork'); + } + + public function setUpdateWork($value): self + { + return $this->set('updateWork', $value); + } + + public function getUpdatePublisher() + { + return $this->get('updatePublisher'); + } + + public function setUpdatePublisher($value): self + { + return $this->set('updatePublisher', $value); + } + + public function getUpdateImprint() + { + return $this->get('updateImprint'); + } + + public function setUpdateImprint($value): self + { + return $this->set('updateImprint', $value); + } + + public function getUpdateContributor() + { + return $this->get('updateContributor'); + } + + public function setUpdateContributor($value): self + { + return $this->set('updateContributor', $value); + } + + public function getUpdateContribution() + { + return $this->get('updateContribution'); + } + + public function setUpdateContribution($value): self + { + return $this->set('updateContribution', $value); + } + + public function getUpdatePublication() + { + return $this->get('updatePublication'); + } + + public function setUpdatePublication($value): self + { + return $this->set('updatePublication', $value); + } + + public function getUpdateSeries() + { + return $this->get('updateSeries'); + } + + public function setUpdateSeries($value): self + { + return $this->set('updateSeries', $value); + } + + public function getUpdateIssue() + { + return $this->get('updateIssue'); + } + + public function setUpdateIssue($value): self + { + return $this->set('updateIssue', $value); + } + + public function getUpdateLanguage() + { + return $this->get('updateLanguage'); + } + + public function setUpdateLanguage($value): self + { + return $this->set('updateLanguage', $value); + } + + public function getUpdateInstitution() + { + return $this->get('updateInstitution'); + } + + public function setUpdateInstitution($value): self + { + return $this->set('updateInstitution', $value); + } + + public function getUpdateFunding() + { + return $this->get('updateFunding'); + } + + public function setUpdateFunding($value): self + { + return $this->set('updateFunding', $value); + } + + public function getUpdateLocation() + { + return $this->get('updateLocation'); + } + + public function setUpdateLocation($value): self + { + return $this->set('updateLocation', $value); + } + + public function getUpdatePrice() + { + return $this->get('updatePrice'); + } + + public function setUpdatePrice($value): self + { + return $this->set('updatePrice', $value); + } + + public function getUpdateSubject() + { + return $this->get('updateSubject'); + } + + public function setUpdateSubject($value): self + { + return $this->set('updateSubject', $value); + } + + public function getUpdateAffiliation() + { + return $this->get('updateAffiliation'); + } + + public function setUpdateAffiliation($value): self + { + return $this->set('updateAffiliation', $value); + } + + public function getUpdateWorkRelation() + { + return $this->get('updateWorkRelation'); + } + + public function setUpdateWorkRelation($value): self + { + return $this->set('updateWorkRelation', $value); + } + + public function getUpdateReference() + { + return $this->get('updateReference'); + } + + public function setUpdateReference($value): self + { + return $this->set('updateReference', $value); + } + + public function getUpdateAdditionalResource() + { + return $this->get('updateAdditionalResource'); + } + + public function setUpdateAdditionalResource($value): self + { + return $this->set('updateAdditionalResource', $value); + } + + public function getUpdateAward() + { + return $this->get('updateAward'); + } + + public function setUpdateAward($value): self + { + return $this->set('updateAward', $value); + } + + public function getUpdateEndorsement() + { + return $this->get('updateEndorsement'); + } + + public function setUpdateEndorsement($value): self + { + return $this->set('updateEndorsement', $value); + } + + public function getUpdateBookReview() + { + return $this->get('updateBookReview'); + } + + public function setUpdateBookReview($value): self + { + return $this->set('updateBookReview', $value); + } + + public function getUpdateWorkFeaturedVideo() + { + return $this->get('updateWorkFeaturedVideo'); + } + + public function setUpdateWorkFeaturedVideo($value): self + { + return $this->set('updateWorkFeaturedVideo', $value); + } + + public function getUpdateContact() + { + return $this->get('updateContact'); + } + + public function setUpdateContact($value): self + { + return $this->set('updateContact', $value); + } + + public function getUpdateTitle() + { + return $this->get('updateTitle'); + } + + public function setUpdateTitle($value): self + { + return $this->set('updateTitle', $value); + } + + public function getUpdateAbstract() + { + return $this->get('updateAbstract'); + } + + public function setUpdateAbstract($value): self + { + return $this->set('updateAbstract', $value); + } + + public function getUpdateBiography() + { + return $this->get('updateBiography'); + } + + public function setUpdateBiography($value): self + { + return $this->set('updateBiography', $value); + } + + public function getDeleteWork() + { + return $this->get('deleteWork'); + } + + public function setDeleteWork($value): self + { + return $this->set('deleteWork', $value); + } + + public function getDeletePublisher() + { + return $this->get('deletePublisher'); + } + + public function setDeletePublisher($value): self + { + return $this->set('deletePublisher', $value); + } + + public function getDeleteImprint() + { + return $this->get('deleteImprint'); + } + + public function setDeleteImprint($value): self + { + return $this->set('deleteImprint', $value); + } + + public function getDeleteContributor() + { + return $this->get('deleteContributor'); + } + + public function setDeleteContributor($value): self + { + return $this->set('deleteContributor', $value); + } + + public function getDeleteContribution() + { + return $this->get('deleteContribution'); + } + + public function setDeleteContribution($value): self + { + return $this->set('deleteContribution', $value); + } + + public function getDeletePublication() + { + return $this->get('deletePublication'); + } + + public function setDeletePublication($value): self + { + return $this->set('deletePublication', $value); + } + + public function getDeleteSeries() + { + return $this->get('deleteSeries'); + } + + public function setDeleteSeries($value): self + { + return $this->set('deleteSeries', $value); + } + + public function getDeleteIssue() + { + return $this->get('deleteIssue'); + } + + public function setDeleteIssue($value): self + { + return $this->set('deleteIssue', $value); + } + + public function getDeleteLanguage() + { + return $this->get('deleteLanguage'); + } + + public function setDeleteLanguage($value): self + { + return $this->set('deleteLanguage', $value); + } + + public function getDeleteTitle() + { + return $this->get('deleteTitle'); + } + + public function setDeleteTitle($value): self + { + return $this->set('deleteTitle', $value); + } + + public function getDeleteInstitution() + { + return $this->get('deleteInstitution'); + } + + public function setDeleteInstitution($value): self + { + return $this->set('deleteInstitution', $value); + } + + public function getDeleteFunding() + { + return $this->get('deleteFunding'); + } + + public function setDeleteFunding($value): self + { + return $this->set('deleteFunding', $value); + } + + public function getDeleteLocation() + { + return $this->get('deleteLocation'); + } + + public function setDeleteLocation($value): self + { + return $this->set('deleteLocation', $value); + } + + public function getDeletePrice() + { + return $this->get('deletePrice'); + } + + public function setDeletePrice($value): self + { + return $this->set('deletePrice', $value); + } + + public function getDeleteSubject() + { + return $this->get('deleteSubject'); + } + + public function setDeleteSubject($value): self + { + return $this->set('deleteSubject', $value); + } + + public function getDeleteAffiliation() + { + return $this->get('deleteAffiliation'); + } + + public function setDeleteAffiliation($value): self + { + return $this->set('deleteAffiliation', $value); + } + + public function getDeleteWorkRelation() + { + return $this->get('deleteWorkRelation'); + } + + public function setDeleteWorkRelation($value): self + { + return $this->set('deleteWorkRelation', $value); + } + + public function getDeleteReference() + { + return $this->get('deleteReference'); + } + + public function setDeleteReference($value): self + { + return $this->set('deleteReference', $value); + } + + public function getDeleteAdditionalResource() + { + return $this->get('deleteAdditionalResource'); + } + + public function setDeleteAdditionalResource($value): self + { + return $this->set('deleteAdditionalResource', $value); + } + + public function getDeleteAward() + { + return $this->get('deleteAward'); + } + + public function setDeleteAward($value): self + { + return $this->set('deleteAward', $value); + } + + public function getDeleteEndorsement() + { + return $this->get('deleteEndorsement'); + } + + public function setDeleteEndorsement($value): self + { + return $this->set('deleteEndorsement', $value); + } + + public function getDeleteBookReview() + { + return $this->get('deleteBookReview'); + } + + public function setDeleteBookReview($value): self + { + return $this->set('deleteBookReview', $value); + } + + public function getDeleteWorkFeaturedVideo() + { + return $this->get('deleteWorkFeaturedVideo'); + } + + public function setDeleteWorkFeaturedVideo($value): self + { + return $this->set('deleteWorkFeaturedVideo', $value); + } + + public function getDeleteAbstract() + { + return $this->get('deleteAbstract'); + } + + public function setDeleteAbstract($value): self + { + return $this->set('deleteAbstract', $value); + } + + public function getDeleteBiography() + { + return $this->get('deleteBiography'); + } + + public function setDeleteBiography($value): self + { + return $this->set('deleteBiography', $value); + } + + public function getMoveAffiliation() + { + return $this->get('moveAffiliation'); + } + + public function setMoveAffiliation($value): self + { + return $this->set('moveAffiliation', $value); + } + + public function getMoveContribution() + { + return $this->get('moveContribution'); + } + + public function setMoveContribution($value): self + { + return $this->set('moveContribution', $value); + } + + public function getMoveIssue() + { + return $this->get('moveIssue'); + } + + public function setMoveIssue($value): self + { + return $this->set('moveIssue', $value); + } + + public function getMoveReference() + { + return $this->get('moveReference'); + } + + public function setMoveReference($value): self + { + return $this->set('moveReference', $value); + } + + public function getMoveAdditionalResource() + { + return $this->get('moveAdditionalResource'); + } + + public function setMoveAdditionalResource($value): self + { + return $this->set('moveAdditionalResource', $value); + } + + public function getMoveAward() + { + return $this->get('moveAward'); + } + + public function setMoveAward($value): self + { + return $this->set('moveAward', $value); + } + + public function getMoveEndorsement() + { + return $this->get('moveEndorsement'); + } + + public function setMoveEndorsement($value): self + { + return $this->set('moveEndorsement', $value); + } + + public function getMoveBookReview() + { + return $this->get('moveBookReview'); + } + + public function setMoveBookReview($value): self + { + return $this->set('moveBookReview', $value); + } + + public function getMoveSubject() + { + return $this->get('moveSubject'); + } + + public function setMoveSubject($value): self + { + return $this->set('moveSubject', $value); + } + + public function getMoveWorkRelation() + { + return $this->get('moveWorkRelation'); + } + + public function setMoveWorkRelation($value): self + { + return $this->set('moveWorkRelation', $value); + } + + public function getInitPublicationFileUpload() + { + return $this->get('initPublicationFileUpload'); + } + + public function setInitPublicationFileUpload($value): self + { + return $this->set('initPublicationFileUpload', $value); + } + + public function getInitFrontcoverFileUpload() + { + return $this->get('initFrontcoverFileUpload'); + } + + public function setInitFrontcoverFileUpload($value): self + { + return $this->set('initFrontcoverFileUpload', $value); + } + + public function getInitAdditionalResourceFileUpload() + { + return $this->get('initAdditionalResourceFileUpload'); + } + + public function setInitAdditionalResourceFileUpload($value): self + { + return $this->set('initAdditionalResourceFileUpload', $value); + } + + public function getInitWorkFeaturedVideoFileUpload() + { + return $this->get('initWorkFeaturedVideoFileUpload'); + } + + public function setInitWorkFeaturedVideoFileUpload($value): self + { + return $this->set('initWorkFeaturedVideoFileUpload', $value); + } + + public function getCompleteFileUpload() + { + return $this->get('completeFileUpload'); + } + + public function setCompleteFileUpload($value): self + { + return $this->set('completeFileUpload', $value); + } + + public function getDeleteContact() + { + return $this->get('deleteContact'); + } + + public function setDeleteContact($value): self + { + return $this->set('deleteContact', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('MutationRoot', [ diff --git a/src/GraphQL/Generated/Schemas/Price.php b/src/GraphQL/Generated/Schemas/Price.php index 56c9ae7..ac9200c 100644 --- a/src/GraphQL/Generated/Schemas/Price.php +++ b/src/GraphQL/Generated/Schemas/Price.php @@ -3,9 +3,80 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Price +final class Price extends ObjectData { + public function getPriceId() + { + return $this->get('priceId'); + } + + public function setPriceId($value): self + { + return $this->set('priceId', $value); + } + + public function getPublicationId() + { + return $this->get('publicationId'); + } + + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function getCurrencyCode() + { + return $this->get('currencyCode'); + } + + public function setCurrencyCode($value): self + { + return $this->set('currencyCode', $value); + } + + public function getUnitPrice() + { + return $this->get('unitPrice'); + } + + public function setUnitPrice($value): self + { + return $this->set('unitPrice', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getPublication() + { + return $this->get('publication'); + } + + public function setPublication($value): self + { + return $this->set('publication', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Price', [ diff --git a/src/GraphQL/Generated/Schemas/Publication.php b/src/GraphQL/Generated/Schemas/Publication.php index 3f7b237..1f640e6 100644 --- a/src/GraphQL/Generated/Schemas/Publication.php +++ b/src/GraphQL/Generated/Schemas/Publication.php @@ -3,9 +3,190 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Publication +final class Publication extends ObjectData { + public function getPublicationId() + { + return $this->get('publicationId'); + } + + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function getPublicationType() + { + return $this->get('publicationType'); + } + + public function setPublicationType($value): self + { + return $this->set('publicationType', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getIsbn() + { + return $this->get('isbn'); + } + + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWidth() + { + return $this->get('width'); + } + + public function setWidth($value): self + { + return $this->set('width', $value); + } + + public function getHeight() + { + return $this->get('height'); + } + + public function setHeight($value): self + { + return $this->set('height', $value); + } + + public function getDepth() + { + return $this->get('depth'); + } + + public function setDepth($value): self + { + return $this->set('depth', $value); + } + + public function getWeight() + { + return $this->get('weight'); + } + + public function setWeight($value): self + { + return $this->set('weight', $value); + } + + public function getAccessibilityStandard() + { + return $this->get('accessibilityStandard'); + } + + public function setAccessibilityStandard($value): self + { + return $this->set('accessibilityStandard', $value); + } + + public function getAccessibilityAdditionalStandard() + { + return $this->get('accessibilityAdditionalStandard'); + } + + public function setAccessibilityAdditionalStandard($value): self + { + return $this->set('accessibilityAdditionalStandard', $value); + } + + public function getAccessibilityException() + { + return $this->get('accessibilityException'); + } + + public function setAccessibilityException($value): self + { + return $this->set('accessibilityException', $value); + } + + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function getPrices() + { + return $this->get('prices'); + } + + public function setPrices($value): self + { + return $this->set('prices', $value); + } + + public function getLocations() + { + return $this->get('locations'); + } + + public function setLocations($value): self + { + return $this->set('locations', $value); + } + + public function getFile() + { + return $this->get('file'); + } + + public function setFile($value): self + { + return $this->set('file', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Publication', [ diff --git a/src/GraphQL/Generated/Schemas/Publisher.php b/src/GraphQL/Generated/Schemas/Publisher.php index 845dfa2..3e2b758 100644 --- a/src/GraphQL/Generated/Schemas/Publisher.php +++ b/src/GraphQL/Generated/Schemas/Publisher.php @@ -3,9 +3,120 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Publisher +final class Publisher extends ObjectData { + public function getPublisherId() + { + return $this->get('publisherId'); + } + + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function getPublisherName() + { + return $this->get('publisherName'); + } + + public function setPublisherName($value): self + { + return $this->set('publisherName', $value); + } + + public function getPublisherShortname() + { + return $this->get('publisherShortname'); + } + + public function setPublisherShortname($value): self + { + return $this->set('publisherShortname', $value); + } + + public function getPublisherUrl() + { + return $this->get('publisherUrl'); + } + + public function setPublisherUrl($value): self + { + return $this->set('publisherUrl', $value); + } + + public function getZitadelId() + { + return $this->get('zitadelId'); + } + + public function setZitadelId($value): self + { + return $this->set('zitadelId', $value); + } + + public function getAccessibilityStatement() + { + return $this->get('accessibilityStatement'); + } + + public function setAccessibilityStatement($value): self + { + return $this->set('accessibilityStatement', $value); + } + + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getImprints() + { + return $this->get('imprints'); + } + + public function setImprints($value): self + { + return $this->set('imprints', $value); + } + + public function getContacts() + { + return $this->get('contacts'); + } + + public function setContacts($value): self + { + return $this->set('contacts', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Publisher', [ diff --git a/src/GraphQL/Generated/Schemas/PublisherContext.php b/src/GraphQL/Generated/Schemas/PublisherContext.php index cefc2e1..4c77587 100644 --- a/src/GraphQL/Generated/Schemas/PublisherContext.php +++ b/src/GraphQL/Generated/Schemas/PublisherContext.php @@ -3,9 +3,30 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class PublisherContext +final class PublisherContext extends ObjectData { + public function getPublisher() + { + return $this->get('publisher'); + } + + public function setPublisher($value): self + { + return $this->set('publisher', $value); + } + + public function getPermissions() + { + return $this->get('permissions'); + } + + public function setPermissions($value): self + { + return $this->set('permissions', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('PublisherContext', [ diff --git a/src/GraphQL/Generated/Schemas/PublisherPermissions.php b/src/GraphQL/Generated/Schemas/PublisherPermissions.php index bbddf2b..4a81ab4 100644 --- a/src/GraphQL/Generated/Schemas/PublisherPermissions.php +++ b/src/GraphQL/Generated/Schemas/PublisherPermissions.php @@ -3,9 +3,40 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class PublisherPermissions +final class PublisherPermissions extends ObjectData { + public function getPublisherAdmin() + { + return $this->get('publisherAdmin'); + } + + public function setPublisherAdmin($value): self + { + return $this->set('publisherAdmin', $value); + } + + public function getWorkLifecycle() + { + return $this->get('workLifecycle'); + } + + public function setWorkLifecycle($value): self + { + return $this->set('workLifecycle', $value); + } + + public function getCdnWrite() + { + return $this->get('cdnWrite'); + } + + public function setCdnWrite($value): self + { + return $this->set('cdnWrite', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('PublisherPermissions', [ diff --git a/src/GraphQL/Generated/Schemas/QueryRoot.php b/src/GraphQL/Generated/Schemas/QueryRoot.php index 41e52ab..6deb432 100644 --- a/src/GraphQL/Generated/Schemas/QueryRoot.php +++ b/src/GraphQL/Generated/Schemas/QueryRoot.php @@ -3,9 +3,820 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class QueryRoot +final class QueryRoot extends ObjectData { + public function getWorks() + { + return $this->get('works'); + } + + public function setWorks($value): self + { + return $this->set('works', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getWorkByDoi() + { + return $this->get('workByDoi'); + } + + public function setWorkByDoi($value): self + { + return $this->set('workByDoi', $value); + } + + public function getWorkCount() + { + return $this->get('workCount'); + } + + public function setWorkCount($value): self + { + return $this->set('workCount', $value); + } + + public function getBooks() + { + return $this->get('books'); + } + + public function setBooks($value): self + { + return $this->set('books', $value); + } + + public function getBookByDoi() + { + return $this->get('bookByDoi'); + } + + public function setBookByDoi($value): self + { + return $this->set('bookByDoi', $value); + } + + public function getBookCount() + { + return $this->get('bookCount'); + } + + public function setBookCount($value): self + { + return $this->set('bookCount', $value); + } + + public function getChapters() + { + return $this->get('chapters'); + } + + public function setChapters($value): self + { + return $this->set('chapters', $value); + } + + public function getChapterByDoi() + { + return $this->get('chapterByDoi'); + } + + public function setChapterByDoi($value): self + { + return $this->set('chapterByDoi', $value); + } + + public function getChapterCount() + { + return $this->get('chapterCount'); + } + + public function setChapterCount($value): self + { + return $this->set('chapterCount', $value); + } + + public function getPublications() + { + return $this->get('publications'); + } + + public function setPublications($value): self + { + return $this->set('publications', $value); + } + + public function getPublication() + { + return $this->get('publication'); + } + + public function setPublication($value): self + { + return $this->set('publication', $value); + } + + public function getFile() + { + return $this->get('file'); + } + + public function setFile($value): self + { + return $this->set('file', $value); + } + + public function getPublicationCount() + { + return $this->get('publicationCount'); + } + + public function setPublicationCount($value): self + { + return $this->set('publicationCount', $value); + } + + public function getPublishers() + { + return $this->get('publishers'); + } + + public function setPublishers($value): self + { + return $this->set('publishers', $value); + } + + public function getPublisher() + { + return $this->get('publisher'); + } + + public function setPublisher($value): self + { + return $this->set('publisher', $value); + } + + public function getPublisherCount() + { + return $this->get('publisherCount'); + } + + public function setPublisherCount($value): self + { + return $this->set('publisherCount', $value); + } + + public function getImprints() + { + return $this->get('imprints'); + } + + public function setImprints($value): self + { + return $this->set('imprints', $value); + } + + public function getImprint() + { + return $this->get('imprint'); + } + + public function setImprint($value): self + { + return $this->set('imprint', $value); + } + + public function getImprintCount() + { + return $this->get('imprintCount'); + } + + public function setImprintCount($value): self + { + return $this->set('imprintCount', $value); + } + + public function getContributors() + { + return $this->get('contributors'); + } + + public function setContributors($value): self + { + return $this->set('contributors', $value); + } + + public function getContributor() + { + return $this->get('contributor'); + } + + public function setContributor($value): self + { + return $this->set('contributor', $value); + } + + public function getContributorCount() + { + return $this->get('contributorCount'); + } + + public function setContributorCount($value): self + { + return $this->set('contributorCount', $value); + } + + public function getContributions() + { + return $this->get('contributions'); + } + + public function setContributions($value): self + { + return $this->set('contributions', $value); + } + + public function getContribution() + { + return $this->get('contribution'); + } + + public function setContribution($value): self + { + return $this->set('contribution', $value); + } + + public function getContributionCount() + { + return $this->get('contributionCount'); + } + + public function setContributionCount($value): self + { + return $this->set('contributionCount', $value); + } + + public function getSerieses() + { + return $this->get('serieses'); + } + + public function setSerieses($value): self + { + return $this->set('serieses', $value); + } + + public function getSeries() + { + return $this->get('series'); + } + + public function setSeries($value): self + { + return $this->set('series', $value); + } + + public function getSeriesCount() + { + return $this->get('seriesCount'); + } + + public function setSeriesCount($value): self + { + return $this->set('seriesCount', $value); + } + + public function getIssues() + { + return $this->get('issues'); + } + + public function setIssues($value): self + { + return $this->set('issues', $value); + } + + public function getIssue() + { + return $this->get('issue'); + } + + public function setIssue($value): self + { + return $this->set('issue', $value); + } + + public function getIssueCount() + { + return $this->get('issueCount'); + } + + public function setIssueCount($value): self + { + return $this->set('issueCount', $value); + } + + public function getLanguages() + { + return $this->get('languages'); + } + + public function setLanguages($value): self + { + return $this->set('languages', $value); + } + + public function getLanguage() + { + return $this->get('language'); + } + + public function setLanguage($value): self + { + return $this->set('language', $value); + } + + public function getLanguageCount() + { + return $this->get('languageCount'); + } + + public function setLanguageCount($value): self + { + return $this->set('languageCount', $value); + } + + public function getLocations() + { + return $this->get('locations'); + } + + public function setLocations($value): self + { + return $this->set('locations', $value); + } + + public function getLocation() + { + return $this->get('location'); + } + + public function setLocation($value): self + { + return $this->set('location', $value); + } + + public function getLocationCount() + { + return $this->get('locationCount'); + } + + public function setLocationCount($value): self + { + return $this->set('locationCount', $value); + } + + public function getPrices() + { + return $this->get('prices'); + } + + public function setPrices($value): self + { + return $this->set('prices', $value); + } + + public function getPrice() + { + return $this->get('price'); + } + + public function setPrice($value): self + { + return $this->set('price', $value); + } + + public function getPriceCount() + { + return $this->get('priceCount'); + } + + public function setPriceCount($value): self + { + return $this->set('priceCount', $value); + } + + public function getSubjects() + { + return $this->get('subjects'); + } + + public function setSubjects($value): self + { + return $this->set('subjects', $value); + } + + public function getSubject() + { + return $this->get('subject'); + } + + public function setSubject($value): self + { + return $this->set('subject', $value); + } + + public function getSubjectCount() + { + return $this->get('subjectCount'); + } + + public function setSubjectCount($value): self + { + return $this->set('subjectCount', $value); + } + + public function getInstitutions() + { + return $this->get('institutions'); + } + + public function setInstitutions($value): self + { + return $this->set('institutions', $value); + } + + public function getInstitution() + { + return $this->get('institution'); + } + + public function setInstitution($value): self + { + return $this->set('institution', $value); + } + + public function getInstitutionCount() + { + return $this->get('institutionCount'); + } + + public function setInstitutionCount($value): self + { + return $this->set('institutionCount', $value); + } + + public function getFundings() + { + return $this->get('fundings'); + } + + public function setFundings($value): self + { + return $this->set('fundings', $value); + } + + public function getFunding() + { + return $this->get('funding'); + } + + public function setFunding($value): self + { + return $this->set('funding', $value); + } + + public function getFundingCount() + { + return $this->get('fundingCount'); + } + + public function setFundingCount($value): self + { + return $this->set('fundingCount', $value); + } + + public function getAffiliations() + { + return $this->get('affiliations'); + } + + public function setAffiliations($value): self + { + return $this->set('affiliations', $value); + } + + public function getAffiliation() + { + return $this->get('affiliation'); + } + + public function setAffiliation($value): self + { + return $this->set('affiliation', $value); + } + + public function getAffiliationCount() + { + return $this->get('affiliationCount'); + } + + public function setAffiliationCount($value): self + { + return $this->set('affiliationCount', $value); + } + + public function getReferences() + { + return $this->get('references'); + } + + public function setReferences($value): self + { + return $this->set('references', $value); + } + + public function getReference() + { + return $this->get('reference'); + } + + public function setReference($value): self + { + return $this->set('reference', $value); + } + + public function getReferenceCount() + { + return $this->get('referenceCount'); + } + + public function setReferenceCount($value): self + { + return $this->set('referenceCount', $value); + } + + public function getAdditionalResources() + { + return $this->get('additionalResources'); + } + + public function setAdditionalResources($value): self + { + return $this->set('additionalResources', $value); + } + + public function getAdditionalResource() + { + return $this->get('additionalResource'); + } + + public function setAdditionalResource($value): self + { + return $this->set('additionalResource', $value); + } + + public function getAdditionalResourceCount() + { + return $this->get('additionalResourceCount'); + } + + public function setAdditionalResourceCount($value): self + { + return $this->set('additionalResourceCount', $value); + } + + public function getAwards() + { + return $this->get('awards'); + } + + public function setAwards($value): self + { + return $this->set('awards', $value); + } + + public function getAward() + { + return $this->get('award'); + } + + public function setAward($value): self + { + return $this->set('award', $value); + } + + public function getAwardCount() + { + return $this->get('awardCount'); + } + + public function setAwardCount($value): self + { + return $this->set('awardCount', $value); + } + + public function getEndorsements() + { + return $this->get('endorsements'); + } + + public function setEndorsements($value): self + { + return $this->set('endorsements', $value); + } + + public function getEndorsement() + { + return $this->get('endorsement'); + } + + public function setEndorsement($value): self + { + return $this->set('endorsement', $value); + } + + public function getEndorsementCount() + { + return $this->get('endorsementCount'); + } + + public function setEndorsementCount($value): self + { + return $this->set('endorsementCount', $value); + } + + public function getBookReviews() + { + return $this->get('bookReviews'); + } + + public function setBookReviews($value): self + { + return $this->set('bookReviews', $value); + } + + public function getBookReview() + { + return $this->get('bookReview'); + } + + public function setBookReview($value): self + { + return $this->set('bookReview', $value); + } + + public function getBookReviewCount() + { + return $this->get('bookReviewCount'); + } + + public function setBookReviewCount($value): self + { + return $this->set('bookReviewCount', $value); + } + + public function getWorkFeaturedVideos() + { + return $this->get('workFeaturedVideos'); + } + + public function setWorkFeaturedVideos($value): self + { + return $this->set('workFeaturedVideos', $value); + } + + public function getWorkFeaturedVideo() + { + return $this->get('workFeaturedVideo'); + } + + public function setWorkFeaturedVideo($value): self + { + return $this->set('workFeaturedVideo', $value); + } + + public function getWorkFeaturedVideoCount() + { + return $this->get('workFeaturedVideoCount'); + } + + public function setWorkFeaturedVideoCount($value): self + { + return $this->set('workFeaturedVideoCount', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getTitles() + { + return $this->get('titles'); + } + + public function setTitles($value): self + { + return $this->set('titles', $value); + } + + public function getAbstract() + { + return $this->get('abstract'); + } + + public function setAbstract($value): self + { + return $this->set('abstract', $value); + } + + public function getAbstracts() + { + return $this->get('abstracts'); + } + + public function setAbstracts($value): self + { + return $this->set('abstracts', $value); + } + + public function getBiography() + { + return $this->get('biography'); + } + + public function setBiography($value): self + { + return $this->set('biography', $value); + } + + public function getBiographies() + { + return $this->get('biographies'); + } + + public function setBiographies($value): self + { + return $this->set('biographies', $value); + } + + public function getContacts() + { + return $this->get('contacts'); + } + + public function setContacts($value): self + { + return $this->set('contacts', $value); + } + + public function getContact() + { + return $this->get('contact'); + } + + public function setContact($value): self + { + return $this->set('contact', $value); + } + + public function getContactCount() + { + return $this->get('contactCount'); + } + + public function setContactCount($value): self + { + return $this->set('contactCount', $value); + } + + public function getMe() + { + return $this->get('me'); + } + + public function setMe($value): self + { + return $this->set('me', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('QueryRoot', [ diff --git a/src/GraphQL/Generated/Schemas/Reference.php b/src/GraphQL/Generated/Schemas/Reference.php index 99b9883..b70be94 100644 --- a/src/GraphQL/Generated/Schemas/Reference.php +++ b/src/GraphQL/Generated/Schemas/Reference.php @@ -3,9 +3,270 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Reference +final class Reference extends ObjectData { + public function getReferenceId() + { + return $this->get('referenceId'); + } + + public function setReferenceId($value): self + { + return $this->set('referenceId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getReferenceOrdinal() + { + return $this->get('referenceOrdinal'); + } + + public function setReferenceOrdinal($value): self + { + return $this->set('referenceOrdinal', $value); + } + + public function getDoi() + { + return $this->get('doi'); + } + + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function getUnstructuredCitation() + { + return $this->get('unstructuredCitation'); + } + + public function setUnstructuredCitation($value): self + { + return $this->set('unstructuredCitation', $value); + } + + public function getIssn() + { + return $this->get('issn'); + } + + public function setIssn($value): self + { + return $this->set('issn', $value); + } + + public function getIsbn() + { + return $this->get('isbn'); + } + + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function getJournalTitle() + { + return $this->get('journalTitle'); + } + + public function setJournalTitle($value): self + { + return $this->set('journalTitle', $value); + } + + public function getArticleTitle() + { + return $this->get('articleTitle'); + } + + public function setArticleTitle($value): self + { + return $this->set('articleTitle', $value); + } + + public function getSeriesTitle() + { + return $this->get('seriesTitle'); + } + + public function setSeriesTitle($value): self + { + return $this->set('seriesTitle', $value); + } + + public function getVolumeTitle() + { + return $this->get('volumeTitle'); + } + + public function setVolumeTitle($value): self + { + return $this->set('volumeTitle', $value); + } + + public function getEdition() + { + return $this->get('edition'); + } + + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function getAuthor() + { + return $this->get('author'); + } + + public function setAuthor($value): self + { + return $this->set('author', $value); + } + + public function getVolume() + { + return $this->get('volume'); + } + + public function setVolume($value): self + { + return $this->set('volume', $value); + } + + public function getIssue() + { + return $this->get('issue'); + } + + public function setIssue($value): self + { + return $this->set('issue', $value); + } + + public function getFirstPage() + { + return $this->get('firstPage'); + } + + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function getComponentNumber() + { + return $this->get('componentNumber'); + } + + public function setComponentNumber($value): self + { + return $this->set('componentNumber', $value); + } + + public function getStandardDesignator() + { + return $this->get('standardDesignator'); + } + + public function setStandardDesignator($value): self + { + return $this->set('standardDesignator', $value); + } + + public function getStandardsBodyName() + { + return $this->get('standardsBodyName'); + } + + public function setStandardsBodyName($value): self + { + return $this->set('standardsBodyName', $value); + } + + public function getStandardsBodyAcronym() + { + return $this->get('standardsBodyAcronym'); + } + + public function setStandardsBodyAcronym($value): self + { + return $this->set('standardsBodyAcronym', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function getRetrievalDate() + { + return $this->get('retrievalDate'); + } + + public function setRetrievalDate($value): self + { + return $this->set('retrievalDate', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Reference', [ diff --git a/src/GraphQL/Generated/Schemas/Series.php b/src/GraphQL/Generated/Schemas/Series.php index 4025b7a..fd588fc 100644 --- a/src/GraphQL/Generated/Schemas/Series.php +++ b/src/GraphQL/Generated/Schemas/Series.php @@ -3,9 +3,140 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Series +final class Series extends ObjectData { + public function getSeriesId() + { + return $this->get('seriesId'); + } + + public function setSeriesId($value): self + { + return $this->set('seriesId', $value); + } + + public function getSeriesType() + { + return $this->get('seriesType'); + } + + public function setSeriesType($value): self + { + return $this->set('seriesType', $value); + } + + public function getSeriesName() + { + return $this->get('seriesName'); + } + + public function setSeriesName($value): self + { + return $this->set('seriesName', $value); + } + + public function getIssnPrint() + { + return $this->get('issnPrint'); + } + + public function setIssnPrint($value): self + { + return $this->set('issnPrint', $value); + } + + public function getIssnDigital() + { + return $this->get('issnDigital'); + } + + public function setIssnDigital($value): self + { + return $this->set('issnDigital', $value); + } + + public function getSeriesUrl() + { + return $this->get('seriesUrl'); + } + + public function setSeriesUrl($value): self + { + return $this->set('seriesUrl', $value); + } + + public function getSeriesDescription() + { + return $this->get('seriesDescription'); + } + + public function setSeriesDescription($value): self + { + return $this->set('seriesDescription', $value); + } + + public function getSeriesCfpUrl() + { + return $this->get('seriesCfpUrl'); + } + + public function setSeriesCfpUrl($value): self + { + return $this->set('seriesCfpUrl', $value); + } + + public function getImprintId() + { + return $this->get('imprintId'); + } + + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getImprint() + { + return $this->get('imprint'); + } + + public function setImprint($value): self + { + return $this->set('imprint', $value); + } + + public function getIssues() + { + return $this->get('issues'); + } + + public function setIssues($value): self + { + return $this->set('issues', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Series', [ diff --git a/src/GraphQL/Generated/Schemas/Subject.php b/src/GraphQL/Generated/Schemas/Subject.php index ef8ae75..d587128 100644 --- a/src/GraphQL/Generated/Schemas/Subject.php +++ b/src/GraphQL/Generated/Schemas/Subject.php @@ -3,9 +3,90 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Subject +final class Subject extends ObjectData { + public function getSubjectId() + { + return $this->get('subjectId'); + } + + public function setSubjectId($value): self + { + return $this->set('subjectId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getSubjectType() + { + return $this->get('subjectType'); + } + + public function setSubjectType($value): self + { + return $this->set('subjectType', $value); + } + + public function getSubjectCode() + { + return $this->get('subjectCode'); + } + + public function setSubjectCode($value): self + { + return $this->set('subjectCode', $value); + } + + public function getSubjectOrdinal() + { + return $this->get('subjectOrdinal'); + } + + public function setSubjectOrdinal($value): self + { + return $this->set('subjectOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Subject', [ diff --git a/src/GraphQL/Generated/Schemas/Title.php b/src/GraphQL/Generated/Schemas/Title.php index a44aa6c..820afe8 100644 --- a/src/GraphQL/Generated/Schemas/Title.php +++ b/src/GraphQL/Generated/Schemas/Title.php @@ -3,9 +3,90 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Title +final class Title extends ObjectData { + public function getTitleId() + { + return $this->get('titleId'); + } + + public function setTitleId($value): self + { + return $this->set('titleId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function getFullTitle() + { + return $this->get('fullTitle'); + } + + public function setFullTitle($value): self + { + return $this->set('fullTitle', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getSubtitle() + { + return $this->get('subtitle'); + } + + public function setSubtitle($value): self + { + return $this->set('subtitle', $value); + } + + public function getCanonical() + { + return $this->get('canonical'); + } + + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Title', [ diff --git a/src/GraphQL/Generated/Schemas/UploadRequestHeader.php b/src/GraphQL/Generated/Schemas/UploadRequestHeader.php index d0e66b5..02c5eb5 100644 --- a/src/GraphQL/Generated/Schemas/UploadRequestHeader.php +++ b/src/GraphQL/Generated/Schemas/UploadRequestHeader.php @@ -3,9 +3,30 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class UploadRequestHeader +final class UploadRequestHeader extends ObjectData { + public function getName() + { + return $this->get('name'); + } + + public function setName($value): self + { + return $this->set('name', $value); + } + + public function getValue() + { + return $this->get('value'); + } + + public function setValue($value): self + { + return $this->set('value', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('UploadRequestHeader', [ diff --git a/src/GraphQL/Generated/Schemas/Work.php b/src/GraphQL/Generated/Schemas/Work.php index 03eaf04..e2df202 100644 --- a/src/GraphQL/Generated/Schemas/Work.php +++ b/src/GraphQL/Generated/Schemas/Work.php @@ -3,9 +3,560 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class Work +final class Work extends ObjectData { + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getWorkType() + { + return $this->get('workType'); + } + + public function setWorkType($value): self + { + return $this->set('workType', $value); + } + + public function getWorkStatus() + { + return $this->get('workStatus'); + } + + public function setWorkStatus($value): self + { + return $this->set('workStatus', $value); + } + + public function getFullTitle() + { + return $this->get('fullTitle'); + } + + public function setFullTitle($value): self + { + return $this->set('fullTitle', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getSubtitle() + { + return $this->get('subtitle'); + } + + public function setSubtitle($value): self + { + return $this->set('subtitle', $value); + } + + public function getShortAbstract() + { + return $this->get('shortAbstract'); + } + + public function setShortAbstract($value): self + { + return $this->set('shortAbstract', $value); + } + + public function getLongAbstract() + { + return $this->get('longAbstract'); + } + + public function setLongAbstract($value): self + { + return $this->set('longAbstract', $value); + } + + public function getTitles() + { + return $this->get('titles'); + } + + public function setTitles($value): self + { + return $this->set('titles', $value); + } + + public function getAbstracts() + { + return $this->get('abstracts'); + } + + public function setAbstracts($value): self + { + return $this->set('abstracts', $value); + } + + public function getReference() + { + return $this->get('reference'); + } + + public function setReference($value): self + { + return $this->set('reference', $value); + } + + public function getEdition() + { + return $this->get('edition'); + } + + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function getImprintId() + { + return $this->get('imprintId'); + } + + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function getDoi() + { + return $this->get('doi'); + } + + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function getWithdrawnDate() + { + return $this->get('withdrawnDate'); + } + + public function setWithdrawnDate($value): self + { + return $this->set('withdrawnDate', $value); + } + + public function getPlace() + { + return $this->get('place'); + } + + public function setPlace($value): self + { + return $this->set('place', $value); + } + + public function getPageCount() + { + return $this->get('pageCount'); + } + + public function setPageCount($value): self + { + return $this->set('pageCount', $value); + } + + public function getPageBreakdown() + { + return $this->get('pageBreakdown'); + } + + public function setPageBreakdown($value): self + { + return $this->set('pageBreakdown', $value); + } + + public function getImageCount() + { + return $this->get('imageCount'); + } + + public function setImageCount($value): self + { + return $this->set('imageCount', $value); + } + + public function getTableCount() + { + return $this->get('tableCount'); + } + + public function setTableCount($value): self + { + return $this->set('tableCount', $value); + } + + public function getAudioCount() + { + return $this->get('audioCount'); + } + + public function setAudioCount($value): self + { + return $this->set('audioCount', $value); + } + + public function getVideoCount() + { + return $this->get('videoCount'); + } + + public function setVideoCount($value): self + { + return $this->set('videoCount', $value); + } + + public function getLicense() + { + return $this->get('license'); + } + + public function setLicense($value): self + { + return $this->set('license', $value); + } + + public function getCopyrightHolder() + { + return $this->get('copyrightHolder'); + } + + public function setCopyrightHolder($value): self + { + return $this->set('copyrightHolder', $value); + } + + public function getLandingPage() + { + return $this->get('landingPage'); + } + + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function getLccn() + { + return $this->get('lccn'); + } + + public function setLccn($value): self + { + return $this->set('lccn', $value); + } + + public function getOclc() + { + return $this->get('oclc'); + } + + public function setOclc($value): self + { + return $this->set('oclc', $value); + } + + public function getGeneralNote() + { + return $this->get('generalNote'); + } + + public function setGeneralNote($value): self + { + return $this->set('generalNote', $value); + } + + public function getBibliographyNote() + { + return $this->get('bibliographyNote'); + } + + public function setBibliographyNote($value): self + { + return $this->set('bibliographyNote', $value); + } + + public function getToc() + { + return $this->get('toc'); + } + + public function setToc($value): self + { + return $this->set('toc', $value); + } + + public function getResourcesDescription() + { + return $this->get('resourcesDescription'); + } + + public function setResourcesDescription($value): self + { + return $this->set('resourcesDescription', $value); + } + + public function getCoverUrl() + { + return $this->get('coverUrl'); + } + + public function setCoverUrl($value): self + { + return $this->set('coverUrl', $value); + } + + public function getCoverCaption() + { + return $this->get('coverCaption'); + } + + public function setCoverCaption($value): self + { + return $this->set('coverCaption', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getFirstPage() + { + return $this->get('firstPage'); + } + + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function getLastPage() + { + return $this->get('lastPage'); + } + + public function setLastPage($value): self + { + return $this->set('lastPage', $value); + } + + public function getPageInterval() + { + return $this->get('pageInterval'); + } + + public function setPageInterval($value): self + { + return $this->set('pageInterval', $value); + } + + public function getUpdatedAtWithRelations() + { + return $this->get('updatedAtWithRelations'); + } + + public function setUpdatedAtWithRelations($value): self + { + return $this->set('updatedAtWithRelations', $value); + } + + public function getImprint() + { + return $this->get('imprint'); + } + + public function setImprint($value): self + { + return $this->set('imprint', $value); + } + + public function getContributions() + { + return $this->get('contributions'); + } + + public function setContributions($value): self + { + return $this->set('contributions', $value); + } + + public function getLanguages() + { + return $this->get('languages'); + } + + public function setLanguages($value): self + { + return $this->set('languages', $value); + } + + public function getPublications() + { + return $this->get('publications'); + } + + public function setPublications($value): self + { + return $this->set('publications', $value); + } + + public function getSubjects() + { + return $this->get('subjects'); + } + + public function setSubjects($value): self + { + return $this->set('subjects', $value); + } + + public function getFundings() + { + return $this->get('fundings'); + } + + public function setFundings($value): self + { + return $this->set('fundings', $value); + } + + public function getIssues() + { + return $this->get('issues'); + } + + public function setIssues($value): self + { + return $this->set('issues', $value); + } + + public function getRelations() + { + return $this->get('relations'); + } + + public function setRelations($value): self + { + return $this->set('relations', $value); + } + + public function getFrontcover() + { + return $this->get('frontcover'); + } + + public function setFrontcover($value): self + { + return $this->set('frontcover', $value); + } + + public function getReferences() + { + return $this->get('references'); + } + + public function setReferences($value): self + { + return $this->set('references', $value); + } + + public function getAdditionalResources() + { + return $this->get('additionalResources'); + } + + public function setAdditionalResources($value): self + { + return $this->set('additionalResources', $value); + } + + public function getAwards() + { + return $this->get('awards'); + } + + public function setAwards($value): self + { + return $this->set('awards', $value); + } + + public function getEndorsements() + { + return $this->get('endorsements'); + } + + public function setEndorsements($value): self + { + return $this->set('endorsements', $value); + } + + public function getBookReviews() + { + return $this->get('bookReviews'); + } + + public function setBookReviews($value): self + { + return $this->set('bookReviews', $value); + } + + public function getFeaturedVideo() + { + return $this->get('featuredVideo'); + } + + public function setFeaturedVideo($value): self + { + return $this->set('featuredVideo', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Work', [ diff --git a/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php b/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php index d04aa40..0bc12e8 100644 --- a/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php +++ b/src/GraphQL/Generated/Schemas/WorkFeaturedVideo.php @@ -3,9 +3,110 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class WorkFeaturedVideo +final class WorkFeaturedVideo extends ObjectData { + public function getWorkFeaturedVideoId() + { + return $this->get('workFeaturedVideoId'); + } + + public function setWorkFeaturedVideoId($value): self + { + return $this->set('workFeaturedVideoId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getWidth() + { + return $this->get('width'); + } + + public function setWidth($value): self + { + return $this->set('width', $value); + } + + public function getHeight() + { + return $this->get('height'); + } + + public function setHeight($value): self + { + return $this->set('height', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getFile() + { + return $this->get('file'); + } + + public function setFile($value): self + { + return $this->set('file', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkFeaturedVideo', [ diff --git a/src/GraphQL/Generated/Schemas/WorkRelation.php b/src/GraphQL/Generated/Schemas/WorkRelation.php index 8e81c7c..ac7b585 100644 --- a/src/GraphQL/Generated/Schemas/WorkRelation.php +++ b/src/GraphQL/Generated/Schemas/WorkRelation.php @@ -3,9 +3,90 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class WorkRelation +final class WorkRelation extends ObjectData { + public function getWorkRelationId() + { + return $this->get('workRelationId'); + } + + public function setWorkRelationId($value): self + { + return $this->set('workRelationId', $value); + } + + public function getRelatorWorkId() + { + return $this->get('relatorWorkId'); + } + + public function setRelatorWorkId($value): self + { + return $this->set('relatorWorkId', $value); + } + + public function getRelatedWorkId() + { + return $this->get('relatedWorkId'); + } + + public function setRelatedWorkId($value): self + { + return $this->set('relatedWorkId', $value); + } + + public function getRelationType() + { + return $this->get('relationType'); + } + + public function setRelationType($value): self + { + return $this->set('relationType', $value); + } + + public function getRelationOrdinal() + { + return $this->get('relationOrdinal'); + } + + public function setRelationOrdinal($value): self + { + return $this->set('relationOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getRelatedWork() + { + return $this->get('relatedWork'); + } + + public function setRelatedWork($value): self + { + return $this->set('relatedWork', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkRelation', [ diff --git a/src/GraphQL/Generated/Schemas/WorkResource.php b/src/GraphQL/Generated/Schemas/WorkResource.php index ad5fdd4..7a5be17 100644 --- a/src/GraphQL/Generated/Schemas/WorkResource.php +++ b/src/GraphQL/Generated/Schemas/WorkResource.php @@ -3,9 +3,160 @@ namespace ThothApi\GraphQL\Generated\Schemas; use ThothApi\GraphQL\Definition\ObjectTypeDefinition; +use ThothApi\GraphQL\ObjectData; -final class WorkResource +final class WorkResource extends ObjectData { + public function getWorkResourceId() + { + return $this->get('workResourceId'); + } + + public function setWorkResourceId($value): self + { + return $this->set('workResourceId', $value); + } + + public function getWorkId() + { + return $this->get('workId'); + } + + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function getTitle() + { + return $this->get('title'); + } + + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function getDescription() + { + return $this->get('description'); + } + + public function setDescription($value): self + { + return $this->set('description', $value); + } + + public function getAttribution() + { + return $this->get('attribution'); + } + + public function setAttribution($value): self + { + return $this->set('attribution', $value); + } + + public function getResourceType() + { + return $this->get('resourceType'); + } + + public function setResourceType($value): self + { + return $this->set('resourceType', $value); + } + + public function getDoi() + { + return $this->get('doi'); + } + + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function getHandle() + { + return $this->get('handle'); + } + + public function setHandle($value): self + { + return $this->set('handle', $value); + } + + public function getUrl() + { + return $this->get('url'); + } + + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function getDate() + { + return $this->get('date'); + } + + public function setDate($value): self + { + return $this->set('date', $value); + } + + public function getResourceOrdinal() + { + return $this->get('resourceOrdinal'); + } + + public function setResourceOrdinal($value): self + { + return $this->set('resourceOrdinal', $value); + } + + public function getCreatedAt() + { + return $this->get('createdAt'); + } + + public function setCreatedAt($value): self + { + return $this->set('createdAt', $value); + } + + public function getUpdatedAt() + { + return $this->get('updatedAt'); + } + + public function setUpdatedAt($value): self + { + return $this->set('updatedAt', $value); + } + + public function getWork() + { + return $this->get('work'); + } + + public function setWork($value): self + { + return $this->set('work', $value); + } + + public function getFile() + { + return $this->get('file'); + } + + public function setFile($value): self + { + return $this->set('file', $value); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkResource', [ diff --git a/src/GraphQL/ObjectData.php b/src/GraphQL/ObjectData.php new file mode 100644 index 0000000..98d905a --- /dev/null +++ b/src/GraphQL/ObjectData.php @@ -0,0 +1,118 @@ +data = []; + + foreach ($data as $field => $value) { + $this->data[$field] = static::hydrateFieldValue((string) $field, $value); + } + } + + public static function fromArray(array $data): self + { + return new static($data); + } + + public function toArray(): array + { + return $this->normalizeArray($this->data); + } + + protected function get(string $field) + { + return $this->data[$field] ?? null; + } + + protected function set(string $field, $value): self + { + $this->data[$field] = static::hydrateFieldValue($field, $value); + return $this; + } + + private static function hydrateFieldValue(string $fieldName, $value) + { + $field = static::getFieldDefinition($fieldName); + + if ($field === null) { + return $value; + } + + return static::hydrateValue($field->getType(), $value); + } + + private static function getFieldDefinition(string $fieldName): ?FieldDefinition + { + foreach (static::definition()->getFields() as $field) { + if ($field->getName() === $fieldName) { + return $field; + } + } + + return null; + } + + private static function hydrateValue(TypeReference $type, $value) + { + if ($value === null) { + return null; + } + + if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return static::hydrateValue($type->getOfType(), $value); + } + + if ($type->getKind() === 'LIST' && $type->getOfType() !== null && is_array($value)) { + return array_map( + static function ($item) use ($type) { + return static::hydrateValue($type->getOfType(), $item); + }, + $value + ); + } + + if (!is_array($value)) { + return $value; + } + + $schemaClass = static::schemaClassForType($type->baseName()); + + if (!class_exists($schemaClass)) { + return $value; + } + + return $schemaClass::fromArray($value); + } + + private static function schemaClassForType(?string $typeName): string + { + return '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + } + + private function normalizeArray(array $data): array + { + return array_map( + function ($value) { + if ($value instanceof self) { + return $value->toArray(); + } + + if (is_array($value)) { + return $this->normalizeArray($value); + } + + return $value; + }, + $data + ); + } +} diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index 5d6bbd1..414fdfd 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -12,6 +12,9 @@ use ThothApi\GraphQL\Definition\TypeReference; use ThothApi\GraphQL\Generated\Inputs\NewPublicationFileUpload; use ThothApi\GraphQL\Generated\Inputs\NewWork; +use ThothApi\GraphQL\Generated\Schemas\Imprint; +use ThothApi\GraphQL\Generated\Schemas\Publisher; +use ThothApi\GraphQL\Generated\Schemas\Work; use ThothApi\GraphQL\OperationRequest; final class GenericClientTest extends TestCase @@ -117,7 +120,7 @@ public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void $this->assertSame('work-1', $client->createWork($newWork)); } - public function testItKeepsExplicitSelectionForGeneratedMutationWithOneInput(): void + public function testItHydratesGeneratedSchemaForExplicitObjectSelection(): void { $history = []; $mockHandler = new MockHandler([ @@ -139,10 +142,11 @@ public function testItKeepsExplicitSelectionForGeneratedMutationWithOneInput(): 'fullTitle' => 'Generated client', ]); - $this->assertSame([ - 'workId' => 'work-1', - 'fullTitle' => 'Generated client', - ], $client->createWork($newWork, ['workId', 'fullTitle'])); + $work = $client->createWork($newWork, ['workId', 'fullTitle']); + + $this->assertInstanceOf(Work::class, $work); + $this->assertSame('work-1', $work->getWorkId()); + $this->assertSame('Generated client', $work->getFullTitle()); $body = json_decode((string) $history[0]['request']->getBody(), true); @@ -150,6 +154,61 @@ public function testItKeepsExplicitSelectionForGeneratedMutationWithOneInput(): $this->assertStringContainsString('fullTitle', $body['query']); } + public function testItHydratesNestedGeneratedSchemas(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + 'imprint' => [ + 'imprintId' => 'imprint-1', + 'publisher' => [ + 'publisherId' => 'publisher-1', + 'publisherName' => 'ACME Press', + ], + ], + ], + ], + ])), + ]); + + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + $newWork = new NewWork([ + 'workType' => OperationRequest::enum('MONOGRAPH'), + 'workStatus' => OperationRequest::enum('ACTIVE'), + 'fullTitle' => 'Generated client', + ]); + $work = $client->createWork($newWork, [ + 'workId', + 'imprint' => [ + 'imprintId', + 'publisher' => [ + 'publisherId', + 'publisherName', + ], + ], + ]); + + $this->assertInstanceOf(Work::class, $work); + $this->assertInstanceOf(Imprint::class, $work->getImprint()); + $this->assertInstanceOf(Publisher::class, $work->getImprint()->getPublisher()); + $this->assertSame('ACME Press', $work->getImprint()->getPublisher()->getPublisherName()); + } + + public function testGeneratedSchemaObjectsExposeSettersAndArrayData(): void + { + $work = new Work(); + + $work->setWorkId('work-1')->setFullTitle('Generated client'); + + $this->assertSame('work-1', $work->getWorkId()); + $this->assertSame([ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], $work->toArray()); + } + public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): void { $mockHandler = new MockHandler([ @@ -260,4 +319,26 @@ public function testItAcceptsExplicitSelectionAfterOptionalPositionalArguments() $this->assertStringContainsString('works(limit: 5)', $body['query']); $this->assertStringContainsString('fullTitle', $body['query']); } + + public function testItHydratesGeneratedSchemasInListResults(): void + { + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'works' => [ + [ + 'workId' => 'work-1', + 'fullTitle' => 'Generated client', + ], + ], + ], + ])), + ]); + $client = new Client(['handler' => HandlerStack::create($mockHandler)]); + + $works = $client->works(5, ['workId', 'fullTitle']); + + $this->assertInstanceOf(Work::class, $works[0]); + $this->assertSame('Generated client', $works[0]->getFullTitle()); + } } diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 257826a..28510e5 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -110,12 +110,19 @@ public static function operation(array \$arguments = [], array \$selection = []) function generateObjectType(array $type, string $directory, string $namespacePart): void { $className = safeClassName(studly($type['name'])); + $methods = array_map( + static function (array $field): string { + return objectFieldMethods($field); + }, + $type['fields'] ?? [] + ); $fields = array_map( static function (array $field): string { return fieldCode($field, 3); }, $type['fields'] ?? [] ); + $methodsCode = implode("\n\n", array_filter($methods)); $fieldsCode = implode(",\n ", $fields); $contents = <<get({$fieldName}); + } + + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } +PHP; +} + function generateInputType(array $type, string $directory, string $namespacePart): void { $className = safeClassName(studly($type['name'])); From 9e57fdef5cb936547d8b358450fae7404e19999e Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 14:12:14 -0400 Subject: [PATCH 06/40] docs: update generated GraphQL client usage --- README.md | 140 +++++++++++++++++++++-------- docs/README-es.md | 210 ++++++++++++++++++++++++++++--------------- docs/README-pt_BR.md | 210 ++++++++++++++++++++++++++++--------------- 3 files changed, 376 insertions(+), 184 deletions(-) diff --git a/README.md b/README.md index 88974ea..3194e70 100644 --- a/README.md +++ b/README.md @@ -24,33 +24,83 @@ $client = new \ThothApi\GraphQL\Client(); #### Queries -The GraphQL client has a generic request executor. Query, mutation, schema, input, enum and scalar -classes are generated from the Thoth GraphQL introspection schema. +Query, mutation, schema, input, enum and scalar classes are generated from the Thoth GraphQL +introspection schema. The most convenient API is the dynamic client method named after the GraphQL +operation. ```php -use ThothApi\GraphQL\Generated\Queries\ContributorsQuery; +$works = $client->works(5, [ + 'workId', + 'fullTitle', +]); -$contributors = $client->execute(ContributorsQuery::operation([], [ - 'contributorId', - 'fullName', - 'orcid', -])); +echo $works[0]->getWorkId(); +echo $works[0]->getFullTitle(); ``` -Arguments must match the Thoth GraphQL schema. Enum values can be wrapped with `OperationRequest::enum()`. +Arguments can be passed positionally or by name. Enum values must be wrapped with the generated enum +class or `OperationRequest::enum()`. ```php -use ThothApi\GraphQL\Generated\Queries\WorksQuery; -use ThothApi\GraphQL\OperationRequest; +use ThothApi\GraphQL\Generated\Enums\Direction; +use ThothApi\GraphQL\Generated\Enums\WorkField; -$works = $client->execute(WorksQuery::operation([ +$works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, 'order' => [ - 'field' => OperationRequest::enum('PUBLICATION_DATE'), - 'direction' => OperationRequest::enum('DESC'), + 'field' => WorkField::value(WorkField::PUBLICATION_DATE), + 'direction' => Direction::value(Direction::DESC), + ], +], [ + 'workId', + 'fullTitle', + 'doi', +]); +``` + +Selections can include nested fields. Returned object fields and lists are hydrated into generated +schema classes. + +```php +$work = $client->work('5a5b0fe3-03a9-444b-b221-ecae5370ff30', [ + 'workId', + 'fullTitle', + 'titles' => [ + 'titleId', + 'fullTitle', ], -], ['workId', 'fullTitle', 'doi'])); + 'imprint' => [ + 'imprintId', + 'publisher' => [ + 'publisherId', + 'publisherName', + ], + ], +]); + +echo $work->getImprint()->getPublisher()->getPublisherName(); +echo $work->getTitles()[0]->getFullTitle(); +``` + +The generic executor is still available when you want to use the generated operation classes +directly. It returns raw arrays instead of hydrated schema objects. + +```php +use ThothApi\GraphQL\Generated\Queries\WorksQuery; + +$works = $client->execute(WorksQuery::operation([ + 'limit' => 5, +], [ + 'workId', + 'fullTitle', +])); +``` + +Raw GraphQL queries are supported and use the configured token. + +```php +$data = $client->rawQuery('query { workCount }'); ``` #### Mutations @@ -61,38 +111,53 @@ To execute mutations, provide a valid personal access token to the client. $client->setToken($token); ``` -Mutations use the generated mutation classes and return the selected fields from the GraphQL response. +Inputs are generated from the schema. They can be created from arrays, from DTOs that expose +`getAllData()`, or from `JsonSerializable` objects. ```php use ThothApi\GraphQL\Generated\Enums\SubjectType; use ThothApi\GraphQL\Generated\Inputs\NewSubject; -$subjectId = $client->createSubject(new NewSubject([ +$newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', 'subjectType' => SubjectType::value(SubjectType::BIC), 'subjectCode' => '1D', 'subjectOrdinal' => 3, -])); +]); + +$subjectId = $client->createSubject($newSubject); ``` -Generated schema classes can also be hydrated from explicit selections and expose getters, setters and -`toArray()`. +By default, mutations returning objects select the first `*Id` field and return that scalar value, so +existing calls stay short. ```php -$work = $client->createWork($newWork, [ - 'workId', - 'fullTitle', - 'imprint' => [ - 'imprintId', - 'publisher' => [ - 'publisherId', - 'publisherName', - ], - ], +$subjectId = $client->createSubject($newSubject); +``` + +Pass an explicit selection when you want a hydrated schema object with getters, setters and `toArray()`. + +```php +$subject = $client->createSubject($newSubject, [ + 'subjectId', + 'subjectCode', ]); -echo $work->getWorkId(); -echo $work->getImprint()->getPublisher()->getPublisherName(); +echo $subject->getSubjectId(); +echo $subject->getSubjectCode(); +print_r($subject->toArray()); +``` + +Generated schema objects can also be instantiated and populated manually. + +```php +use ThothApi\GraphQL\Generated\Schemas\Work; + +$work = (new Work()) + ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') + ->setFullTitle('Example title'); + +echo $work->getFullTitle(); print_r($work->toArray()); ``` @@ -200,14 +265,13 @@ The constructor of both Clients can receive an optional array to add custom [Guz $client = new Client([ 'allow_redirects' => false, 'connect_timeout' => 3.14, - 'timeout' => 3.14 + 'timeout' => 3.14, 'proxy' => [ - 'http' => 'http://localhost:8125', // Use this proxy with "http" - 'https' => 'http://localhost:9124', // Use this proxy with "https", - 'no' => ['.mit.edu', 'foo.com'] // Don't use a proxy with these + 'http' => 'http://localhost:8125', + 'https' => 'http://localhost:9124', + 'no' => ['.mit.edu', 'foo.com'], ], - 'debug' => true - ... + 'debug' => true, ]); ``` diff --git a/docs/README-es.md b/docs/README-es.md index 41bdd3f..0f8b4f6 100644 --- a/docs/README-es.md +++ b/docs/README-es.md @@ -4,6 +4,14 @@ Cliente PHP para las API GraphQL y REST de Thoth. +## Instalación + +Esta biblioteca se puede instalar con Composer: + +```bash +composer require thoth-pub/thoth-client-php +``` + ## Uso ### GraphQL @@ -16,55 +24,85 @@ $client = new \ThothApi\GraphQL\Client(); #### Consultas -El cliente mapea todas las consultas de la API GraphQL de Thoth. Los métodos retornan datos en formato orientado a objetos, facilitando el uso y manipulación de la información. +Las clases de consultas, mutaciones, schemas, inputs, enums y scalars se generan a partir del schema +de introspección GraphQL de Thoth. La API más simple es llamar en el cliente al método con el mismo +nombre de la operación GraphQL. ```php -$contributors = $client->contributors(); +$works = $client->works(5, [ + 'workId', + 'fullTitle', +]); -echo print_r($contributors, true); -/** - * Array ( - * [0] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => e1de541c-e84b-4092-941f-dab9b5dac865 - * [firstName] => Aaron - * [lastName] => Ansell - * [fullName] => Aaron Ansell - * [orcid] => https://orcid.org/0000-0001-6365-5168 - * [website] => - * ) - * ) - * [1] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => 1c3aade6-6d48-41b4-8def-b435f4b43573 - * [firstName] => Aaron D. - * [lastName] => Hornkohl - * [fullName] => Aaron D. Hornkohl - * [orcid] => - * [website] => https://www.ames.cam.ac.uk/people/dr-aaron-d-hornkohl - * ) - * ) - * ... - * ) -*/ - -$contributor = array_shift($contributors); - -echo $contributor->getLastName(); // Ansell -echo $contributor->getOrcid(); // https://orcid.org/0000-0001-6365-5168 -``` - -Las consultas pueden aceptar un array con los argumentos necesarios, según lo especificado en el esquema GraphQL de Thoth. Es posible utilizar el argumento "order" especificando solo el campo y la dirección deseada. +echo $works[0]->getWorkId(); +echo $works[0]->getFullTitle(); +``` + +Los argumentos pueden pasarse por posición o por nombre. Los valores enum deben crearse con la clase +enum generada o con `OperationRequest::enum()`. ```php +use ThothApi\GraphQL\Generated\Enums\Direction; +use ThothApi\GraphQL\Generated\Enums\WorkField; + $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, - 'field' => 'PUBLICATION_DATE', - 'direction' => 'DESC' + 'order' => [ + 'field' => WorkField::value(WorkField::PUBLICATION_DATE), + 'direction' => Direction::value(Direction::DESC), + ], +], [ + 'workId', + 'fullTitle', + 'doi', ]); ``` +La selección puede incluir campos anidados. Los campos que devuelven objetos o listas se hidratan en +clases generadas de schema. + +```php +$work = $client->work('5a5b0fe3-03a9-444b-b221-ecae5370ff30', [ + 'workId', + 'fullTitle', + 'titles' => [ + 'titleId', + 'fullTitle', + ], + 'imprint' => [ + 'imprintId', + 'publisher' => [ + 'publisherId', + 'publisherName', + ], + ], +]); + +echo $work->getImprint()->getPublisher()->getPublisherName(); +echo $work->getTitles()[0]->getFullTitle(); +``` + +El ejecutor genérico sigue disponible cuando sea mejor usar directamente las clases generadas de +operación. Devuelve arrays sin hidratar objetos de schema. + +```php +use ThothApi\GraphQL\Generated\Queries\WorksQuery; + +$works = $client->execute(WorksQuery::operation([ + 'limit' => 5, +], [ + 'workId', + 'fullTitle', +])); +``` + +También es posible ejecutar GraphQL bruto. El token configurado con `setToken()` se usa en este camino. + +```php +$data = $client->rawQuery('query { workCount }'); +``` + #### Mutaciones Para ejecutar mutaciones, proporcione al cliente un personal access token valido. @@ -73,50 +111,77 @@ Para ejecutar mutaciones, proporcione al cliente un personal access token valido $client->setToken($token); ``` -Las mutaciones pueden ejecutarse proporcionando una instancia de la clase modelo correspondiente al tipo de mutación. Para las mutaciones de eliminación, solo es necesario proporcionar la ID del objeto. Cuando la operación se realiza con éxito, se devuelve la ID del objeto. +Los inputs se generan a partir del schema. Se pueden crear con arrays, a partir de DTOs que exponen +`getAllData()` o con objetos `JsonSerializable`. + +```php +use ThothApi\GraphQL\Generated\Enums\SubjectType; +use ThothApi\GraphQL\Generated\Inputs\NewSubject; + +$newSubject = new NewSubject([ + 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', + 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectCode' => '1D', + 'subjectOrdinal' => 3, +]); + +$subjectId = $client->createSubject($newSubject); +``` + +Por defecto, las mutaciones que devuelven objetos seleccionan el primer campo `*Id` y devuelven ese +valor escalar. ```php -use ThothApi\GraphQL\Models\Subject; +$subjectId = $client->createSubject($newSubject); +``` -$subject = new Subject(); -$subject->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30'); -$subject->setSubjectType(Subject::SUBJECT_TYPE_BIC); -$subject->setSubjectCode('1D'); -$subject->setSubjectOrdinal(3); +Indique una selección explícita cuando quiera recibir un objeto de schema hidratado con getters, +setters y `toArray()`. + +```php +$subject = $client->createSubject($newSubject, [ + 'subjectId', + 'subjectCode', +]); + +echo $subject->getSubjectId(); +echo $subject->getSubjectCode(); +print_r($subject->toArray()); +``` + +Las clases de schema también pueden instanciarse y poblarse manualmente. + +```php +use ThothApi\GraphQL\Generated\Schemas\Work; + +$work = (new Work()) + ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') + ->setFullTitle('Titulo de ejemplo'); + +echo $work->getFullTitle(); +print_r($work->toArray()); +``` -$subjectId = $client->createSubject($subject); // 1d5ae47b-9e0c-4fba-b2d4-a3a2cdd8860c +Regenera las clases GraphQL a partir del schema actual de Thoth: -$client->deleteSubject($subjectId); +```bash +composer generate-graphql-client ``` #### Excepciones -Se lanza una excepción del tipo *QueryException* en caso de error en la solicitud a la API GraphQL. Es posible recuperar el mensaje del error y una descripción más detallada a partir de la excepción. +Se lanza una excepción del tipo *QueryException* en caso de error en la solicitud a la API GraphQL. Es posible recuperar el mensaje, los detalles, la query y las variables enviadas. ```php try { - $work = new \ThothApi\GraphQL\Models\Work([ + $client->createWork(new \ThothApi\GraphQL\Generated\Inputs\NewWork([ 'doi' => 'https://doi.org/10.00000/00000000', - ]); - $workId = $client->createWork($work); + ])); } catch (\ThothApi\Exception\QueryException $exception) { echo $exception->getMessage(); - /** - * Invalid value for argument "data", reason: - * "NewWork" is missing fields: "imprintId", "workStatus", "workType" - */ - echo print_r($exception->getDetails()); - /** - * Array ( - * [message] => Invalid value for argument "data", reason: "NewWork" is missing fields: "imprintId", "workStatus", "workType" - * [locations] => Array ( - * [0] => Array ( - * [line] => 3 - * [column] => 15 - * ) - * ) - * ) - */ + echo print_r($exception->getDetails(), true); + echo $exception->getQuery(); + echo print_r($exception->getVariables(), true); } ``` @@ -184,14 +249,13 @@ El constructor de ambos Clientes puede recibir un array opcional para agregar co $client = new Client([ 'allow_redirects' => false, 'connect_timeout' => 3.14, - 'timeout' => 3.14 + 'timeout' => 3.14, 'proxy' => [ - 'http' => 'http://localhost:8125', // Use this proxy with "http" - 'https' => 'http://localhost:9124', // Use this proxy with "https", - 'no' => ['.mit.edu', 'foo.com'] // Don't use a proxy with these + 'http' => 'http://localhost:8125', + 'https' => 'http://localhost:9124', + 'no' => ['.mit.edu', 'foo.com'], ], - 'debug' => true - ... + 'debug' => true, ]); ``` diff --git a/docs/README-pt_BR.md b/docs/README-pt_BR.md index b339d1b..ac20530 100644 --- a/docs/README-pt_BR.md +++ b/docs/README-pt_BR.md @@ -4,6 +4,14 @@ Cliente PHP para as APIs GraphQL e REST do Thoth. +## Instalação + +Esta biblioteca pode ser instalada via Composer: + +```bash +composer require thoth-pub/thoth-client-php +``` + ## Uso ### GraphQL @@ -16,55 +24,85 @@ $client = new \ThothApi\GraphQL\Client(); #### Consultas -O cliente mapeia todas as consultas da API GraphQL do Thoth. Os métodos retornam dados no formato orientado a objetos, facilitando o uso e manipulação das informações. +As classes de consultas, mutações, schemas, inputs, enums e scalars são geradas a partir do schema de +introspecção GraphQL do Thoth. A API mais simples é chamar no cliente o método com o mesmo nome da +operação GraphQL. ```php -$contributors = $client->contributors(); +$works = $client->works(5, [ + 'workId', + 'fullTitle', +]); -echo print_r($contributors, true); -/** - * Array ( - * [0] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => e1de541c-e84b-4092-941f-dab9b5dac865 - * [firstName] => Aaron - * [lastName] => Ansell - * [fullName] => Aaron Ansell - * [orcid] => https://orcid.org/0000-0001-6365-5168 - * [website] => - * ) - * ) - * [1] => ThothApi\GraphQL\Models\Contributor Object ( - * [data] => Array ( - * [contributorId] => 1c3aade6-6d48-41b4-8def-b435f4b43573 - * [firstName] => Aaron D. - * [lastName] => Hornkohl - * [fullName] => Aaron D. Hornkohl - * [orcid] => - * [website] => https://www.ames.cam.ac.uk/people/dr-aaron-d-hornkohl - * ) - * ) - * ... - * ) -*/ - -$contributor = array_shift($contributors); - -echo $contributor->getLastName(); // Ansell -echo $contributor->getOrcid(); // https://orcid.org/0000-0001-6365-5168 -``` - -As consultas podem aceitar um array com os argumentos necessários, conforme especificado no esquema GraphQL da Thoth. É possível utilizar o argumento "order" especificando apenas o campo e a direção desejada. +echo $works[0]->getWorkId(); +echo $works[0]->getFullTitle(); +``` + +Os argumentos podem ser passados por posição ou por nome. Valores de enum devem ser criados pela +classe de enum gerada ou por `OperationRequest::enum()`. ```php +use ThothApi\GraphQL\Generated\Enums\Direction; +use ThothApi\GraphQL\Generated\Enums\WorkField; + $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, - 'field' => 'PUBLICATION_DATE', - 'direction' => 'DESC' + 'order' => [ + 'field' => WorkField::value(WorkField::PUBLICATION_DATE), + 'direction' => Direction::value(Direction::DESC), + ], +], [ + 'workId', + 'fullTitle', + 'doi', ]); ``` +A seleção pode incluir campos aninhados. Campos que retornam objetos ou listas são hidratados em +classes geradas de schema. + +```php +$work = $client->work('5a5b0fe3-03a9-444b-b221-ecae5370ff30', [ + 'workId', + 'fullTitle', + 'titles' => [ + 'titleId', + 'fullTitle', + ], + 'imprint' => [ + 'imprintId', + 'publisher' => [ + 'publisherId', + 'publisherName', + ], + ], +]); + +echo $work->getImprint()->getPublisher()->getPublisherName(); +echo $work->getTitles()[0]->getFullTitle(); +``` + +O executor genérico continua disponível quando for melhor usar diretamente as classes geradas de +operação. Ele retorna arrays brutos, sem hidratar objetos de schema. + +```php +use ThothApi\GraphQL\Generated\Queries\WorksQuery; + +$works = $client->execute(WorksQuery::operation([ + 'limit' => 5, +], [ + 'workId', + 'fullTitle', +])); +``` + +Também é possível executar GraphQL bruto. O token configurado com `setToken()` é usado nesse caminho. + +```php +$data = $client->rawQuery('query { workCount }'); +``` + #### Mutações Para executar mutações, forneça ao cliente um personal access token válido. @@ -73,50 +111,77 @@ Para executar mutações, forneça ao cliente um personal access token válido. $client->setToken($token); ``` -Mutações podem ser executadas fornecendo uma instância da classe modelo correspondente ao tipo da mutação. Para mutações de exclusão, é necessário apenas fornecer o ID do objeto. Quando a operação é bem-sucedida, o ID do objeto é retornado. +Inputs são gerados a partir do schema. Eles podem ser criados com arrays, a partir de DTOs que expõem +`getAllData()` ou de objetos `JsonSerializable`. + +```php +use ThothApi\GraphQL\Generated\Enums\SubjectType; +use ThothApi\GraphQL\Generated\Inputs\NewSubject; + +$newSubject = new NewSubject([ + 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', + 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectCode' => '1D', + 'subjectOrdinal' => 3, +]); + +$subjectId = $client->createSubject($newSubject); +``` + +Por padrão, mutações que retornam objetos selecionam o primeiro campo `*Id` e retornam esse valor +escalar. ```php -use ThothApi\GraphQL\Models\Subject; +$subjectId = $client->createSubject($newSubject); +``` -$subject = new Subject(); -$subject->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30'); -$subject->setSubjectType(Subject::SUBJECT_TYPE_BIC); -$subject->setSubjectCode('1D'); -$subject->setSubjectOrdinal(3); +Informe uma seleção explícita quando quiser receber um objeto de schema hidratado com getters, +setters e `toArray()`. + +```php +$subject = $client->createSubject($newSubject, [ + 'subjectId', + 'subjectCode', +]); + +echo $subject->getSubjectId(); +echo $subject->getSubjectCode(); +print_r($subject->toArray()); +``` + +As classes de schema também podem ser instanciadas e populadas manualmente. + +```php +use ThothApi\GraphQL\Generated\Schemas\Work; + +$work = (new Work()) + ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') + ->setFullTitle('Titulo de exemplo'); + +echo $work->getFullTitle(); +print_r($work->toArray()); +``` -$subjectId = $client->createSubject($subject); // 1d5ae47b-9e0c-4fba-b2d4-a3a2cdd8860c +Regere as classes GraphQL a partir do schema atual do Thoth: -$client->deleteSubject($subjectId); +```bash +composer generate-graphql-client ``` #### Exceções -Uma exceção do tipo *QueryException* é lançada em caso de erro na solicitação à API GraphQL. É possível recuperar a mensagem do erro e uma descrição mais detalhada a partir da exceção. +Uma exceção do tipo *QueryException* é lançada em caso de erro na solicitação à API GraphQL. É possível recuperar a mensagem do erro, os detalhes, a query e as variáveis enviadas. ```php try { - $work = new \ThothApi\GraphQL\Models\Work([ + $client->createWork(new \ThothApi\GraphQL\Generated\Inputs\NewWork([ 'doi' => 'https://doi.org/10.00000/00000000', - ]); - $workId = $client->createWork($work); + ])); } catch (\ThothApi\Exception\QueryException $exception) { echo $exception->getMessage(); - /** - * Invalid value for argument "data", reason: - * "NewWork" is missing fields: "imprintId", "workStatus", "workType" - */ - echo print_r($exception->getDetails()); - /** - * Array ( - * [message] => Invalid value for argument "data", reason: "NewWork" is missing fields: "imprintId", "workStatus", "workType" - * [locations] => Array ( - * [0] => Array ( - * [line] => 3 - * [column] => 15 - * ) - * ) - * ) - */ + echo print_r($exception->getDetails(), true); + echo $exception->getQuery(); + echo print_r($exception->getVariables(), true); } ``` @@ -184,14 +249,13 @@ O construtor de ambos os Clientes pode receber um array opcional para adicionar $client = new Client([ 'allow_redirects' => false, 'connect_timeout' => 3.14, - 'timeout' => 3.14 + 'timeout' => 3.14, 'proxy' => [ - 'http' => 'http://localhost:8125', // Use this proxy with "http" - 'https' => 'http://localhost:9124', // Use this proxy with "https", - 'no' => ['.mit.edu', 'foo.com'] // Don't use a proxy with these + 'http' => 'http://localhost:8125', + 'https' => 'http://localhost:9124', + 'no' => ['.mit.edu', 'foo.com'], ], - 'debug' => true - ... + 'debug' => true, ]); ``` From 80b8e41f73d24f09c79bb477c935c65cb9e7a911 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 14:50:39 -0400 Subject: [PATCH 07/40] feat: simplify generated enum usage --- README.md | 10 +-- docs/README-es.md | 11 ++-- docs/README-pt_BR.md | 11 ++-- src/GraphQL/OperationRequest.php | 84 +++++++++++++++++++++++-- tests/GraphQL/GenericClientTest.php | 20 +++--- tests/GraphQL/OperationRequestTest.php | 86 ++++++++++++++++++++++++++ 6 files changed, 195 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 3194e70..822090d 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ echo $works[0]->getWorkId(); echo $works[0]->getFullTitle(); ``` -Arguments can be passed positionally or by name. Enum values must be wrapped with the generated enum -class or `OperationRequest::enum()`. +Arguments can be passed positionally or by name. Enum values can be passed directly using generated +enum constants. `OperationRequest::enum()` is still supported for custom operations. ```php use ThothApi\GraphQL\Generated\Enums\Direction; @@ -49,8 +49,8 @@ $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, 'order' => [ - 'field' => WorkField::value(WorkField::PUBLICATION_DATE), - 'direction' => Direction::value(Direction::DESC), + 'field' => WorkField::PUBLICATION_DATE, + 'direction' => Direction::DESC, ], ], [ 'workId', @@ -120,7 +120,7 @@ use ThothApi\GraphQL\Generated\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', - 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectType' => SubjectType::BIC, 'subjectCode' => '1D', 'subjectOrdinal' => 3, ]); diff --git a/docs/README-es.md b/docs/README-es.md index 0f8b4f6..ca4eb17 100644 --- a/docs/README-es.md +++ b/docs/README-es.md @@ -38,8 +38,9 @@ echo $works[0]->getWorkId(); echo $works[0]->getFullTitle(); ``` -Los argumentos pueden pasarse por posición o por nombre. Los valores enum deben crearse con la clase -enum generada o con `OperationRequest::enum()`. +Los argumentos pueden pasarse por posición o por nombre. Los valores enum pueden pasarse directamente +con constantes de las clases enum generadas. `OperationRequest::enum()` sigue disponible para +operaciones personalizadas. ```php use ThothApi\GraphQL\Generated\Enums\Direction; @@ -49,8 +50,8 @@ $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, 'order' => [ - 'field' => WorkField::value(WorkField::PUBLICATION_DATE), - 'direction' => Direction::value(Direction::DESC), + 'field' => WorkField::PUBLICATION_DATE, + 'direction' => Direction::DESC, ], ], [ 'workId', @@ -120,7 +121,7 @@ use ThothApi\GraphQL\Generated\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', - 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectType' => SubjectType::BIC, 'subjectCode' => '1D', 'subjectOrdinal' => 3, ]); diff --git a/docs/README-pt_BR.md b/docs/README-pt_BR.md index ac20530..4409782 100644 --- a/docs/README-pt_BR.md +++ b/docs/README-pt_BR.md @@ -38,8 +38,9 @@ echo $works[0]->getWorkId(); echo $works[0]->getFullTitle(); ``` -Os argumentos podem ser passados por posição ou por nome. Valores de enum devem ser criados pela -classe de enum gerada ou por `OperationRequest::enum()`. +Os argumentos podem ser passados por posição ou por nome. Valores de enum podem ser passados +diretamente com constantes das classes de enum geradas. `OperationRequest::enum()` continua disponível +para operações customizadas. ```php use ThothApi\GraphQL\Generated\Enums\Direction; @@ -49,8 +50,8 @@ $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], 'limit' => 5, 'order' => [ - 'field' => WorkField::value(WorkField::PUBLICATION_DATE), - 'direction' => Direction::value(Direction::DESC), + 'field' => WorkField::PUBLICATION_DATE, + 'direction' => Direction::DESC, ], ], [ 'workId', @@ -120,7 +121,7 @@ use ThothApi\GraphQL\Generated\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', - 'subjectType' => SubjectType::value(SubjectType::BIC), + 'subjectType' => SubjectType::BIC, 'subjectCode' => '1D', 'subjectOrdinal' => 3, ]); diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 2b8d493..177b389 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -3,6 +3,7 @@ namespace ThothApi\GraphQL; use ThothApi\GraphQL\Definition\FieldDefinition; +use ThothApi\GraphQL\Definition\TypeReference; final class OperationRequest { @@ -58,6 +59,7 @@ public function toGraphQL(): string private function formatArguments(array $arguments): string { $formatted = []; + $schemaArguments = $this->getSchemaArgumentsByName(); foreach ($arguments as $name => $value) { if ($value === null) { @@ -65,7 +67,7 @@ private function formatArguments(array $arguments): string } $this->assertIdentifier((string) $name); - $formatted[] = $name . ': ' . $this->formatValue($value); + $formatted[] = $name . ': ' . $this->formatValue($value, $schemaArguments[$name] ?? null); } return implode(', ', $formatted); @@ -89,7 +91,7 @@ private function formatSelection(array $selection): string return implode("\n", $lines); } - private function formatValue($value): string + private function formatValue($value, ?TypeReference $type = null): string { if ($value instanceof EnumValue) { $this->assertIdentifier((string) $value); @@ -98,14 +100,20 @@ private function formatValue($value): string if (is_array($value)) { if ($this->isList($value)) { - return '[' . implode(', ', array_map([$this, 'formatValue'], $value)) . ']'; + $listType = $this->getListItemType($type); + return '[' . implode(', ', array_map(function ($item) use ($listType) { + return $this->formatValue($item, $listType); + }, $value)) . ']'; } $fields = []; foreach ($value as $field => $fieldValue) { if ($fieldValue !== null) { $this->assertIdentifier((string) $field); - $fields[] = $field . ': ' . $this->formatValue($fieldValue); + $fields[] = $field . ': ' . $this->formatValue( + $fieldValue, + $this->getInputFieldType($type, (string) $field) + ); } } @@ -120,6 +128,11 @@ private function formatValue($value): string return (string) $value; } + if ($this->isEnumType($type)) { + $this->assertIdentifier((string) $value); + return (string) $value; + } + return json_encode((string) $value, JSON_UNESCAPED_UNICODE); } @@ -143,4 +156,67 @@ private function assertIdentifier(string $value): void throw new \InvalidArgumentException("Invalid GraphQL identifier '{$value}'."); } } + + private function getSchemaArgumentsByName(): array + { + $arguments = []; + + foreach ($this->field->getArguments() as $argument) { + $arguments[$argument->getName()] = $argument->getType(); + } + + return $arguments; + } + + private function getListItemType(?TypeReference $type): ?TypeReference + { + if ($type === null) { + return null; + } + + if ($type->getKind() === 'NON_NULL') { + return $this->getListItemType($type->getOfType()); + } + + if ($type->getKind() === 'LIST') { + return $type->getOfType(); + } + + return null; + } + + private function getInputFieldType(?TypeReference $type, string $fieldName): ?TypeReference + { + $inputClass = $this->getGeneratedClassName('Inputs', $type ? $type->baseName() : null); + + if (!class_exists($inputClass)) { + return null; + } + + foreach ($inputClass::definition()->getFields() as $field) { + if ($field->getName() === $fieldName) { + return $field->getType(); + } + } + + return null; + } + + private function isEnumType(?TypeReference $type): bool + { + if ($type === null) { + return false; + } + + if ($type->getKind() === 'NON_NULL') { + return $this->isEnumType($type->getOfType()); + } + + return class_exists($this->getGeneratedClassName('Enums', $type->baseName())); + } + + private function getGeneratedClassName(string $namespacePart, ?string $typeName): string + { + return '\\ThothApi\\GraphQL\\Generated\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + } } diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index 414fdfd..b246655 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -10,6 +10,10 @@ use ThothApi\GraphQL\Client; use ThothApi\GraphQL\Definition\FieldDefinition; use ThothApi\GraphQL\Definition\TypeReference; +use ThothApi\GraphQL\Generated\Enums\Direction; +use ThothApi\GraphQL\Generated\Enums\WorkField; +use ThothApi\GraphQL\Generated\Enums\WorkStatus; +use ThothApi\GraphQL\Generated\Enums\WorkType; use ThothApi\GraphQL\Generated\Inputs\NewPublicationFileUpload; use ThothApi\GraphQL\Generated\Inputs\NewWork; use ThothApi\GraphQL\Generated\Schemas\Imprint; @@ -112,8 +116,8 @@ public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void $client = new Client(['handler' => HandlerStack::create($mockHandler)]); $newWork = new NewWork([ - 'workType' => OperationRequest::enum('MONOGRAPH'), - 'workStatus' => OperationRequest::enum('ACTIVE'), + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, 'fullTitle' => 'Generated client', ]); @@ -137,8 +141,8 @@ public function testItHydratesGeneratedSchemaForExplicitObjectSelection(): void $handlerStack->push(Middleware::history($history)); $client = new Client(['handler' => $handlerStack]); $newWork = new NewWork([ - 'workType' => OperationRequest::enum('MONOGRAPH'), - 'workStatus' => OperationRequest::enum('ACTIVE'), + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, 'fullTitle' => 'Generated client', ]); @@ -175,8 +179,8 @@ public function testItHydratesNestedGeneratedSchemas(): void $client = new Client(['handler' => HandlerStack::create($mockHandler)]); $newWork = new NewWork([ - 'workType' => OperationRequest::enum('MONOGRAPH'), - 'workStatus' => OperationRequest::enum('ACTIVE'), + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, 'fullTitle' => 'Generated client', ]); $work = $client->createWork($newWork, [ @@ -283,8 +287,8 @@ public function testItKeepsArrayArgumentsWhenNoExplicitSelectionIsProvided(): vo $client = new Client(['handler' => $handlerStack]); $client->works(100, 0, '', [ - 'field' => OperationRequest::enum('FULL_TITLE'), - 'direction' => OperationRequest::enum('ASC'), + 'field' => WorkField::FULL_TITLE, + 'direction' => Direction::ASC, ]); $body = json_decode((string) $history[0]['request']->getBody(), true); diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 51f71fb..2ef3dc0 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -6,6 +6,10 @@ use ThothApi\GraphQL\Definition\ArgumentDefinition; use ThothApi\GraphQL\Definition\FieldDefinition; use ThothApi\GraphQL\Definition\TypeReference; +use ThothApi\GraphQL\Generated\Enums\Direction; +use ThothApi\GraphQL\Generated\Enums\WorkField; +use ThothApi\GraphQL\Generated\Enums\WorkStatus; +use ThothApi\GraphQL\Generated\Enums\WorkType; use ThothApi\GraphQL\OperationRequest; final class OperationRequestTest extends TestCase @@ -154,4 +158,86 @@ public function testItRejectsInvalidEnumValues(): void $operation->toGraphQL(); } + + public function testItFormatsGeneratedEnumConstantsFromInputSchema(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition('order', TypeReference::named('WorkOrderBy')), + ] + ), + [ + 'order' => [ + 'field' => WorkField::PUBLICATION_DATE, + 'direction' => Direction::DESC, + ], + ], + ['workId'] + ); + + $this->assertStringContainsString( + 'order: {field: PUBLICATION_DATE, direction: DESC}', + $operation->toGraphQL() + ); + } + + public function testItFormatsGeneratedEnumConstantsFromInputLists(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition( + 'workTypes', + TypeReference::listOf(TypeReference::nonNull(TypeReference::named('WorkType'))) + ), + ] + ), + [ + 'workTypes' => [ + WorkType::MONOGRAPH, + WorkType::EDITED_BOOK, + ], + ], + ['workId'] + ); + + $this->assertStringContainsString( + 'workTypes: [MONOGRAPH, EDITED_BOOK]', + $operation->toGraphQL() + ); + } + + public function testItKeepsStringValuesQuotedWhenSchemaTypeIsString(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createWork', + TypeReference::named('Work'), + [ + new ArgumentDefinition('data', TypeReference::named('NewWork')), + ] + ), + [ + 'data' => [ + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, + 'fullTitle' => 'MONOGRAPH', + ], + ], + ['workId'] + ); + + $this->assertStringContainsString( + 'data: {workType: MONOGRAPH, workStatus: ACTIVE, fullTitle: "MONOGRAPH"}', + $operation->toGraphQL() + ); + } } From 5a1612dee86751b2fa500fe8a800b0fff693eb5e Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 15:01:15 -0400 Subject: [PATCH 08/40] docs: align REST usage examples --- README.md | 47 ++++++++++---------------------------------- docs/README-es.md | 47 ++++++++++---------------------------------- docs/README-pt_BR.md | 47 ++++++++++---------------------------------- 3 files changed, 30 insertions(+), 111 deletions(-) diff --git a/README.md b/README.md index 822090d..e3cf446 100644 --- a/README.md +++ b/README.md @@ -207,44 +207,17 @@ API Documentation: https://export.thoth.pub/ ```php $client = new \ThothApi\Rest\Client(); +``` + +The REST client exports metadata in the formats exposed by the Thoth export API. + +```php +$formats = $client->formats(); -echo(print_r($client->work('doideposit::crossref', 'e0f748b2-984f-45cc-8b9e-13989c31dda4'), true)); -/** - * - * - * - * e0f748b2-984f-45cc-8b9e-13989c31dda4_20241010195624 - * 20241010195624 - * - * Thoth - * distribution@thoth.pub - * - * Thoth - * - * - * - * - * - * - * Ammiel - * Alcalay - * - * - * Queens College, CUNY - * https://ror.org/03v8adn41 - * - * - * The Graduate Center, CUNY - * https://ror.org/00awd9g61 - * - * - * - * - * - * A Bibliography for After Jews and Arabs - * - * ... - */ +$metadata = $client->work( + 'doideposit::crossref', + 'e0f748b2-984f-45cc-8b9e-13989c31dda4' +); ``` #### Exceptions diff --git a/docs/README-es.md b/docs/README-es.md index ca4eb17..72bee95 100644 --- a/docs/README-es.md +++ b/docs/README-es.md @@ -192,44 +192,17 @@ Documentación de la API: https://export.thoth.pub/ ```php $client = new \ThothApi\Rest\Client(); +``` + +El cliente REST exporta metadatos en los formatos expuestos por la API de exportación de Thoth. + +```php +$formats = $client->formats(); -echo(print_r($client->work('doideposit::crossref', 'e0f748b2-984f-45cc-8b9e-13989c31dda4'), true)); -/** - * - * - * - * e0f748b2-984f-45cc-8b9e-13989c31dda4_20241010195624 - * 20241010195624 - * - * Thoth - * distribution@thoth.pub - * - * Thoth - * - * - * - * - * - * - * Ammiel - * Alcalay - * - * - * Queens College, CUNY - * https://ror.org/03v8adn41 - * - * - * The Graduate Center, CUNY - * https://ror.org/00awd9g61 - * - * - * - * - * - * A Bibliography for After Jews and Arabs - * - * ... - */ +$metadata = $client->work( + 'doideposit::crossref', + 'e0f748b2-984f-45cc-8b9e-13989c31dda4' +); ``` #### Excepciones diff --git a/docs/README-pt_BR.md b/docs/README-pt_BR.md index 4409782..3970883 100644 --- a/docs/README-pt_BR.md +++ b/docs/README-pt_BR.md @@ -192,44 +192,17 @@ Documentação da API: https://export.thoth.pub/ ```php $client = new \ThothApi\Rest\Client(); +``` + +O client REST exporta metadados nos formatos disponibilizados pela API de exportação do Thoth. + +```php +$formats = $client->formats(); -echo(print_r($client->work('doideposit::crossref', 'e0f748b2-984f-45cc-8b9e-13989c31dda4'), true)); -/** - * - * - * - * e0f748b2-984f-45cc-8b9e-13989c31dda4_20241010195624 - * 20241010195624 - * - * Thoth - * distribution@thoth.pub - * - * Thoth - * - * - * - * - * - * - * Ammiel - * Alcalay - * - * - * Queens College, CUNY - * https://ror.org/03v8adn41 - * - * - * The Graduate Center, CUNY - * https://ror.org/00awd9g61 - * - * - * - * - * - * A Bibliography for After Jews and Arabs - * - * ... - */ +$metadata = $client->work( + 'doideposit::crossref', + 'e0f748b2-984f-45cc-8b9e-13989c31dda4' +); ``` #### Exceções From 60061823935c3e9910cb2b819a85bf5b088887fc Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Mon, 15 Jun 2026 17:02:13 -0400 Subject: [PATCH 09/40] refactor: remove generated GraphQL namespace --- README.md | 16 ++++++++-------- docs/README-es.md | 14 +++++++------- docs/README-pt_BR.md | 14 +++++++------- src/GraphQL/Client.php | 8 ++++---- .../{Generated => }/Enums/AbstractField.php | 2 +- .../{Generated => }/Enums/AbstractType.php | 2 +- .../Enums/AccessibilityException.php | 2 +- .../Enums/AccessibilityStandard.php | 2 +- .../Enums/AdditionalResourceField.php | 2 +- .../{Generated => }/Enums/AffiliationField.php | 2 +- .../{Generated => }/Enums/AwardField.php | 2 +- .../{Generated => }/Enums/AwardRole.php | 2 +- .../{Generated => }/Enums/BiographyField.php | 2 +- .../{Generated => }/Enums/BookReviewField.php | 2 +- .../Enums/ChecksumAlgorithm.php | 2 +- .../{Generated => }/Enums/ContactField.php | 2 +- .../{Generated => }/Enums/ContactType.php | 2 +- .../Enums/ContributionField.php | 2 +- .../{Generated => }/Enums/ContributionType.php | 2 +- .../{Generated => }/Enums/ContributorField.php | 2 +- .../{Generated => }/Enums/CountryCode.php | 2 +- .../{Generated => }/Enums/CurrencyCode.php | 2 +- .../{Generated => }/Enums/Direction.php | 2 +- .../{Generated => }/Enums/EndorsementField.php | 2 +- .../{Generated => }/Enums/Expression.php | 2 +- src/GraphQL/{Generated => }/Enums/FileType.php | 2 +- .../{Generated => }/Enums/FundingField.php | 2 +- .../{Generated => }/Enums/ImprintField.php | 2 +- .../{Generated => }/Enums/InstitutionField.php | 2 +- .../{Generated => }/Enums/IssueField.php | 2 +- .../{Generated => }/Enums/LanguageCode.php | 2 +- .../{Generated => }/Enums/LanguageField.php | 2 +- .../{Generated => }/Enums/LanguageRelation.php | 2 +- .../{Generated => }/Enums/LengthUnit.php | 2 +- .../{Generated => }/Enums/LocaleCode.php | 2 +- .../{Generated => }/Enums/LocationField.php | 2 +- .../{Generated => }/Enums/LocationPlatform.php | 2 +- .../{Generated => }/Enums/MarkupFormat.php | 2 +- .../{Generated => }/Enums/PriceField.php | 2 +- .../{Generated => }/Enums/PublicationField.php | 2 +- .../{Generated => }/Enums/PublicationType.php | 2 +- .../{Generated => }/Enums/PublisherField.php | 2 +- .../{Generated => }/Enums/ReferenceField.php | 2 +- .../{Generated => }/Enums/RelationType.php | 2 +- .../{Generated => }/Enums/ResourceType.php | 2 +- .../{Generated => }/Enums/SeriesField.php | 2 +- .../{Generated => }/Enums/SeriesType.php | 2 +- .../{Generated => }/Enums/SubjectField.php | 2 +- .../{Generated => }/Enums/SubjectType.php | 2 +- .../{Generated => }/Enums/TitleField.php | 2 +- .../{Generated => }/Enums/WeightUnit.php | 2 +- .../Enums/WorkFeaturedVideoField.php | 2 +- .../{Generated => }/Enums/WorkField.php | 2 +- .../Enums/WorkRelationField.php | 2 +- .../{Generated => }/Enums/WorkStatus.php | 2 +- src/GraphQL/{Generated => }/Enums/WorkType.php | 2 +- .../{Generated => }/Inputs/AbstractOrderBy.php | 2 +- .../Inputs/AdditionalResourceOrderBy.php | 2 +- .../Inputs/AffiliationOrderBy.php | 2 +- .../{Generated => }/Inputs/AwardOrderBy.php | 2 +- .../Inputs/BiographyOrderBy.php | 2 +- .../Inputs/BookReviewOrderBy.php | 2 +- .../Inputs/CompleteFileUpload.php | 2 +- .../{Generated => }/Inputs/ContactOrderBy.php | 2 +- .../Inputs/ContributionOrderBy.php | 2 +- .../Inputs/ContributorOrderBy.php | 2 +- .../Inputs/EndorsementOrderBy.php | 2 +- .../{Generated => }/Inputs/FundingOrderBy.php | 2 +- .../{Generated => }/Inputs/ImprintOrderBy.php | 2 +- .../Inputs/InstitutionOrderBy.php | 2 +- .../{Generated => }/Inputs/IssueOrderBy.php | 2 +- .../{Generated => }/Inputs/LanguageOrderBy.php | 2 +- .../{Generated => }/Inputs/LocationOrderBy.php | 2 +- .../{Generated => }/Inputs/NewAbstract.php | 2 +- .../Inputs/NewAdditionalResource.php | 2 +- .../Inputs/NewAdditionalResourceFileUpload.php | 2 +- .../{Generated => }/Inputs/NewAffiliation.php | 2 +- .../{Generated => }/Inputs/NewAward.php | 2 +- .../{Generated => }/Inputs/NewBiography.php | 2 +- .../{Generated => }/Inputs/NewBookReview.php | 2 +- .../{Generated => }/Inputs/NewContact.php | 2 +- .../{Generated => }/Inputs/NewContribution.php | 2 +- .../{Generated => }/Inputs/NewContributor.php | 2 +- .../{Generated => }/Inputs/NewEndorsement.php | 2 +- .../Inputs/NewFrontcoverFileUpload.php | 2 +- .../{Generated => }/Inputs/NewFunding.php | 2 +- .../{Generated => }/Inputs/NewImprint.php | 2 +- .../{Generated => }/Inputs/NewInstitution.php | 2 +- .../{Generated => }/Inputs/NewIssue.php | 2 +- .../{Generated => }/Inputs/NewLanguage.php | 2 +- .../{Generated => }/Inputs/NewLocation.php | 2 +- .../{Generated => }/Inputs/NewPrice.php | 2 +- .../{Generated => }/Inputs/NewPublication.php | 2 +- .../Inputs/NewPublicationFileUpload.php | 2 +- .../{Generated => }/Inputs/NewPublisher.php | 2 +- .../{Generated => }/Inputs/NewReference.php | 2 +- .../{Generated => }/Inputs/NewSeries.php | 2 +- .../{Generated => }/Inputs/NewSubject.php | 2 +- .../{Generated => }/Inputs/NewTitle.php | 2 +- src/GraphQL/{Generated => }/Inputs/NewWork.php | 2 +- .../Inputs/NewWorkFeaturedVideo.php | 2 +- .../Inputs/NewWorkFeaturedVideoFileUpload.php | 2 +- .../{Generated => }/Inputs/NewWorkRelation.php | 2 +- .../{Generated => }/Inputs/PatchAbstract.php | 2 +- .../Inputs/PatchAdditionalResource.php | 2 +- .../Inputs/PatchAffiliation.php | 2 +- .../{Generated => }/Inputs/PatchAward.php | 2 +- .../{Generated => }/Inputs/PatchBiography.php | 2 +- .../{Generated => }/Inputs/PatchBookReview.php | 2 +- .../{Generated => }/Inputs/PatchContact.php | 2 +- .../Inputs/PatchContribution.php | 2 +- .../Inputs/PatchContributor.php | 2 +- .../Inputs/PatchEndorsement.php | 2 +- .../{Generated => }/Inputs/PatchFunding.php | 2 +- .../{Generated => }/Inputs/PatchImprint.php | 2 +- .../Inputs/PatchInstitution.php | 2 +- .../{Generated => }/Inputs/PatchIssue.php | 2 +- .../{Generated => }/Inputs/PatchLanguage.php | 2 +- .../{Generated => }/Inputs/PatchLocation.php | 2 +- .../{Generated => }/Inputs/PatchPrice.php | 2 +- .../Inputs/PatchPublication.php | 2 +- .../{Generated => }/Inputs/PatchPublisher.php | 2 +- .../{Generated => }/Inputs/PatchReference.php | 2 +- .../{Generated => }/Inputs/PatchSeries.php | 2 +- .../{Generated => }/Inputs/PatchSubject.php | 2 +- .../{Generated => }/Inputs/PatchTitle.php | 2 +- .../{Generated => }/Inputs/PatchWork.php | 2 +- .../Inputs/PatchWorkFeaturedVideo.php | 2 +- .../Inputs/PatchWorkRelation.php | 2 +- .../{Generated => }/Inputs/PriceOrderBy.php | 2 +- .../Inputs/PublicationOrderBy.php | 2 +- .../Inputs/PublisherOrderBy.php | 2 +- .../Inputs/ReferenceOrderBy.php | 2 +- .../{Generated => }/Inputs/SeriesOrderBy.php | 2 +- .../{Generated => }/Inputs/SubjectOrderBy.php | 2 +- .../{Generated => }/Inputs/TimeExpression.php | 2 +- .../{Generated => }/Inputs/TitleOrderBy.php | 2 +- .../Inputs/WorkFeaturedVideoOrderBy.php | 2 +- .../{Generated => }/Inputs/WorkOrderBy.php | 2 +- .../Inputs/WorkRelationOrderBy.php | 2 +- .../Mutations/CompleteFileUploadMutation.php | 2 +- .../Mutations/CreateAbstractMutation.php | 2 +- .../CreateAdditionalResourceMutation.php | 2 +- .../Mutations/CreateAffiliationMutation.php | 2 +- .../Mutations/CreateAwardMutation.php | 2 +- .../Mutations/CreateBiographyMutation.php | 2 +- .../Mutations/CreateBookReviewMutation.php | 2 +- .../Mutations/CreateContactMutation.php | 2 +- .../Mutations/CreateContributionMutation.php | 2 +- .../Mutations/CreateContributorMutation.php | 2 +- .../Mutations/CreateEndorsementMutation.php | 2 +- .../Mutations/CreateFundingMutation.php | 2 +- .../Mutations/CreateImprintMutation.php | 2 +- .../Mutations/CreateInstitutionMutation.php | 2 +- .../Mutations/CreateIssueMutation.php | 2 +- .../Mutations/CreateLanguageMutation.php | 2 +- .../Mutations/CreateLocationMutation.php | 2 +- .../Mutations/CreatePriceMutation.php | 2 +- .../Mutations/CreatePublicationMutation.php | 2 +- .../Mutations/CreatePublisherMutation.php | 2 +- .../Mutations/CreateReferenceMutation.php | 2 +- .../Mutations/CreateSeriesMutation.php | 2 +- .../Mutations/CreateSubjectMutation.php | 2 +- .../Mutations/CreateTitleMutation.php | 2 +- .../CreateWorkFeaturedVideoMutation.php | 2 +- .../Mutations/CreateWorkMutation.php | 2 +- .../Mutations/CreateWorkRelationMutation.php | 2 +- .../Mutations/DeleteAbstractMutation.php | 2 +- .../DeleteAdditionalResourceMutation.php | 2 +- .../Mutations/DeleteAffiliationMutation.php | 2 +- .../Mutations/DeleteAwardMutation.php | 2 +- .../Mutations/DeleteBiographyMutation.php | 2 +- .../Mutations/DeleteBookReviewMutation.php | 2 +- .../Mutations/DeleteContactMutation.php | 2 +- .../Mutations/DeleteContributionMutation.php | 2 +- .../Mutations/DeleteContributorMutation.php | 2 +- .../Mutations/DeleteEndorsementMutation.php | 2 +- .../Mutations/DeleteFundingMutation.php | 2 +- .../Mutations/DeleteImprintMutation.php | 2 +- .../Mutations/DeleteInstitutionMutation.php | 2 +- .../Mutations/DeleteIssueMutation.php | 2 +- .../Mutations/DeleteLanguageMutation.php | 2 +- .../Mutations/DeleteLocationMutation.php | 2 +- .../Mutations/DeletePriceMutation.php | 2 +- .../Mutations/DeletePublicationMutation.php | 2 +- .../Mutations/DeletePublisherMutation.php | 2 +- .../Mutations/DeleteReferenceMutation.php | 2 +- .../Mutations/DeleteSeriesMutation.php | 2 +- .../Mutations/DeleteSubjectMutation.php | 2 +- .../Mutations/DeleteTitleMutation.php | 2 +- .../DeleteWorkFeaturedVideoMutation.php | 2 +- .../Mutations/DeleteWorkMutation.php | 2 +- .../Mutations/DeleteWorkRelationMutation.php | 2 +- ...nitAdditionalResourceFileUploadMutation.php | 2 +- .../InitFrontcoverFileUploadMutation.php | 2 +- .../InitPublicationFileUploadMutation.php | 2 +- ...InitWorkFeaturedVideoFileUploadMutation.php | 2 +- .../MoveAdditionalResourceMutation.php | 2 +- .../Mutations/MoveAffiliationMutation.php | 2 +- .../Mutations/MoveAwardMutation.php | 2 +- .../Mutations/MoveBookReviewMutation.php | 2 +- .../Mutations/MoveContributionMutation.php | 2 +- .../Mutations/MoveEndorsementMutation.php | 2 +- .../Mutations/MoveIssueMutation.php | 2 +- .../Mutations/MoveReferenceMutation.php | 2 +- .../Mutations/MoveSubjectMutation.php | 2 +- .../Mutations/MoveWorkRelationMutation.php | 2 +- .../Mutations/UpdateAbstractMutation.php | 2 +- .../UpdateAdditionalResourceMutation.php | 2 +- .../Mutations/UpdateAffiliationMutation.php | 2 +- .../Mutations/UpdateAwardMutation.php | 2 +- .../Mutations/UpdateBiographyMutation.php | 2 +- .../Mutations/UpdateBookReviewMutation.php | 2 +- .../Mutations/UpdateContactMutation.php | 2 +- .../Mutations/UpdateContributionMutation.php | 2 +- .../Mutations/UpdateContributorMutation.php | 2 +- .../Mutations/UpdateEndorsementMutation.php | 2 +- .../Mutations/UpdateFundingMutation.php | 2 +- .../Mutations/UpdateImprintMutation.php | 2 +- .../Mutations/UpdateInstitutionMutation.php | 2 +- .../Mutations/UpdateIssueMutation.php | 2 +- .../Mutations/UpdateLanguageMutation.php | 2 +- .../Mutations/UpdateLocationMutation.php | 2 +- .../Mutations/UpdatePriceMutation.php | 2 +- .../Mutations/UpdatePublicationMutation.php | 2 +- .../Mutations/UpdatePublisherMutation.php | 2 +- .../Mutations/UpdateReferenceMutation.php | 2 +- .../Mutations/UpdateSeriesMutation.php | 2 +- .../Mutations/UpdateSubjectMutation.php | 2 +- .../Mutations/UpdateTitleMutation.php | 2 +- .../UpdateWorkFeaturedVideoMutation.php | 2 +- .../Mutations/UpdateWorkMutation.php | 2 +- .../Mutations/UpdateWorkRelationMutation.php | 2 +- src/GraphQL/ObjectData.php | 2 +- src/GraphQL/OperationRequest.php | 8 ++++---- .../{Generated => }/Queries/AbstractQuery.php | 2 +- .../{Generated => }/Queries/AbstractsQuery.php | 2 +- .../Queries/AdditionalResourceCountQuery.php | 2 +- .../Queries/AdditionalResourceQuery.php | 2 +- .../Queries/AdditionalResourcesQuery.php | 2 +- .../Queries/AffiliationCountQuery.php | 2 +- .../Queries/AffiliationQuery.php | 2 +- .../Queries/AffiliationsQuery.php | 2 +- .../Queries/AwardCountQuery.php | 2 +- .../{Generated => }/Queries/AwardQuery.php | 2 +- .../{Generated => }/Queries/AwardsQuery.php | 2 +- .../Queries/BiographiesQuery.php | 2 +- .../{Generated => }/Queries/BiographyQuery.php | 2 +- .../{Generated => }/Queries/BookByDoiQuery.php | 2 +- .../{Generated => }/Queries/BookCountQuery.php | 2 +- .../Queries/BookReviewCountQuery.php | 2 +- .../Queries/BookReviewQuery.php | 2 +- .../Queries/BookReviewsQuery.php | 2 +- .../{Generated => }/Queries/BooksQuery.php | 2 +- .../Queries/ChapterByDoiQuery.php | 2 +- .../Queries/ChapterCountQuery.php | 2 +- .../{Generated => }/Queries/ChaptersQuery.php | 2 +- .../Queries/ContactCountQuery.php | 2 +- .../{Generated => }/Queries/ContactQuery.php | 2 +- .../{Generated => }/Queries/ContactsQuery.php | 2 +- .../Queries/ContributionCountQuery.php | 2 +- .../Queries/ContributionQuery.php | 2 +- .../Queries/ContributionsQuery.php | 2 +- .../Queries/ContributorCountQuery.php | 2 +- .../Queries/ContributorQuery.php | 2 +- .../Queries/ContributorsQuery.php | 2 +- .../Queries/EndorsementCountQuery.php | 2 +- .../Queries/EndorsementQuery.php | 2 +- .../Queries/EndorsementsQuery.php | 2 +- .../{Generated => }/Queries/FileQuery.php | 2 +- .../Queries/FundingCountQuery.php | 2 +- .../{Generated => }/Queries/FundingQuery.php | 2 +- .../{Generated => }/Queries/FundingsQuery.php | 2 +- .../Queries/ImprintCountQuery.php | 2 +- .../{Generated => }/Queries/ImprintQuery.php | 2 +- .../{Generated => }/Queries/ImprintsQuery.php | 2 +- .../Queries/InstitutionCountQuery.php | 2 +- .../Queries/InstitutionQuery.php | 2 +- .../Queries/InstitutionsQuery.php | 2 +- .../Queries/IssueCountQuery.php | 2 +- .../{Generated => }/Queries/IssueQuery.php | 2 +- .../{Generated => }/Queries/IssuesQuery.php | 2 +- .../Queries/LanguageCountQuery.php | 2 +- .../{Generated => }/Queries/LanguageQuery.php | 2 +- .../{Generated => }/Queries/LanguagesQuery.php | 2 +- .../Queries/LocationCountQuery.php | 2 +- .../{Generated => }/Queries/LocationQuery.php | 2 +- .../{Generated => }/Queries/LocationsQuery.php | 2 +- .../{Generated => }/Queries/MeQuery.php | 2 +- .../Queries/PriceCountQuery.php | 2 +- .../{Generated => }/Queries/PriceQuery.php | 2 +- .../{Generated => }/Queries/PricesQuery.php | 2 +- .../Queries/PublicationCountQuery.php | 2 +- .../Queries/PublicationQuery.php | 2 +- .../Queries/PublicationsQuery.php | 2 +- .../Queries/PublisherCountQuery.php | 2 +- .../{Generated => }/Queries/PublisherQuery.php | 2 +- .../Queries/PublishersQuery.php | 2 +- .../Queries/ReferenceCountQuery.php | 2 +- .../{Generated => }/Queries/ReferenceQuery.php | 2 +- .../Queries/ReferencesQuery.php | 2 +- .../Queries/SeriesCountQuery.php | 2 +- .../{Generated => }/Queries/SeriesQuery.php | 2 +- .../{Generated => }/Queries/SeriesesQuery.php | 2 +- .../Queries/SubjectCountQuery.php | 2 +- .../{Generated => }/Queries/SubjectQuery.php | 2 +- .../{Generated => }/Queries/SubjectsQuery.php | 2 +- .../{Generated => }/Queries/TitleQuery.php | 2 +- .../{Generated => }/Queries/TitlesQuery.php | 2 +- .../{Generated => }/Queries/WorkByDoiQuery.php | 2 +- .../{Generated => }/Queries/WorkCountQuery.php | 2 +- .../Queries/WorkFeaturedVideoCountQuery.php | 2 +- .../Queries/WorkFeaturedVideoQuery.php | 2 +- .../Queries/WorkFeaturedVideosQuery.php | 2 +- .../{Generated => }/Queries/WorkQuery.php | 2 +- .../{Generated => }/Queries/WorksQuery.php | 2 +- .../{Generated => }/Scalars/BooleanScalar.php | 2 +- .../{Generated => }/Scalars/DateScalar.php | 2 +- .../{Generated => }/Scalars/DoiScalar.php | 2 +- .../{Generated => }/Scalars/FloatScalar.php | 2 +- .../{Generated => }/Scalars/IntScalar.php | 2 +- .../{Generated => }/Scalars/IsbnScalar.php | 2 +- .../{Generated => }/Scalars/OrcidScalar.php | 2 +- .../{Generated => }/Scalars/RorScalar.php | 2 +- .../{Generated => }/Scalars/StringScalar.php | 2 +- .../Scalars/TimestampScalar.php | 2 +- .../{Generated => }/Scalars/UuidScalar.php | 2 +- .../{Generated => }/Schemas/Affiliation.php | 2 +- src/GraphQL/{Generated => }/Schemas/Award.php | 2 +- .../{Generated => }/Schemas/Biography.php | 2 +- .../{Generated => }/Schemas/BookReview.php | 2 +- .../{Generated => }/Schemas/Contact.php | 2 +- .../{Generated => }/Schemas/Contribution.php | 2 +- .../{Generated => }/Schemas/Contributor.php | 2 +- .../{Generated => }/Schemas/Endorsement.php | 2 +- src/GraphQL/{Generated => }/Schemas/File.php | 2 +- .../Schemas/FileUploadResponse.php | 2 +- .../{Generated => }/Schemas/Funding.php | 2 +- .../Schemas/GraphQLAbstract.php | 2 +- .../{Generated => }/Schemas/Imprint.php | 2 +- .../{Generated => }/Schemas/Institution.php | 2 +- src/GraphQL/{Generated => }/Schemas/Issue.php | 2 +- .../{Generated => }/Schemas/Language.php | 2 +- .../{Generated => }/Schemas/Location.php | 2 +- src/GraphQL/{Generated => }/Schemas/Me.php | 2 +- .../{Generated => }/Schemas/MutationRoot.php | 2 +- src/GraphQL/{Generated => }/Schemas/Price.php | 2 +- .../{Generated => }/Schemas/Publication.php | 2 +- .../{Generated => }/Schemas/Publisher.php | 2 +- .../Schemas/PublisherContext.php | 2 +- .../Schemas/PublisherPermissions.php | 2 +- .../{Generated => }/Schemas/QueryRoot.php | 2 +- .../{Generated => }/Schemas/Reference.php | 2 +- src/GraphQL/{Generated => }/Schemas/Series.php | 2 +- .../{Generated => }/Schemas/Subject.php | 2 +- src/GraphQL/{Generated => }/Schemas/Title.php | 2 +- .../Schemas/UploadRequestHeader.php | 2 +- src/GraphQL/{Generated => }/Schemas/Work.php | 2 +- .../Schemas/WorkFeaturedVideo.php | 2 +- .../{Generated => }/Schemas/WorkRelation.php | 2 +- .../{Generated => }/Schemas/WorkResource.php | 2 +- tests/GraphQL/GenericClientTest.php | 18 +++++++++--------- ...perationTest.php => OperationClassTest.php} | 10 +++++----- tests/GraphQL/OperationRequestTest.php | 8 ++++---- tools/generate-graphql-client.php | 18 +++++++++--------- 365 files changed, 413 insertions(+), 413 deletions(-) rename src/GraphQL/{Generated => }/Enums/AbstractField.php (94%) rename src/GraphQL/{Generated => }/Enums/AbstractType.php (91%) rename src/GraphQL/{Generated => }/Enums/AccessibilityException.php (94%) rename src/GraphQL/{Generated => }/Enums/AccessibilityStandard.php (96%) rename src/GraphQL/{Generated => }/Enums/AdditionalResourceField.php (96%) rename src/GraphQL/{Generated => }/Enums/AffiliationField.php (95%) rename src/GraphQL/{Generated => }/Enums/AwardField.php (96%) rename src/GraphQL/{Generated => }/Enums/AwardRole.php (95%) rename src/GraphQL/{Generated => }/Enums/BiographyField.php (94%) rename src/GraphQL/{Generated => }/Enums/BookReviewField.php (95%) rename src/GraphQL/{Generated => }/Enums/ChecksumAlgorithm.php (92%) rename src/GraphQL/{Generated => }/Enums/ContactField.php (94%) rename src/GraphQL/{Generated => }/Enums/ContactType.php (91%) rename src/GraphQL/{Generated => }/Enums/ContributionField.php (96%) rename src/GraphQL/{Generated => }/Enums/ContributionType.php (96%) rename src/GraphQL/{Generated => }/Enums/ContributorField.php (95%) rename src/GraphQL/{Generated => }/Enums/CountryCode.php (99%) rename src/GraphQL/{Generated => }/Enums/CurrencyCode.php (99%) rename src/GraphQL/{Generated => }/Enums/Direction.php (91%) rename src/GraphQL/{Generated => }/Enums/EndorsementField.php (95%) rename src/GraphQL/{Generated => }/Enums/Expression.php (92%) rename src/GraphQL/{Generated => }/Enums/FileType.php (94%) rename src/GraphQL/{Generated => }/Enums/FundingField.php (95%) rename src/GraphQL/{Generated => }/Enums/ImprintField.php (96%) rename src/GraphQL/{Generated => }/Enums/InstitutionField.php (95%) rename src/GraphQL/{Generated => }/Enums/IssueField.php (95%) rename src/GraphQL/{Generated => }/Enums/LanguageCode.php (99%) rename src/GraphQL/{Generated => }/Enums/LanguageField.php (94%) rename src/GraphQL/{Generated => }/Enums/LanguageRelation.php (93%) rename src/GraphQL/{Generated => }/Enums/LengthUnit.php (92%) rename src/GraphQL/{Generated => }/Enums/LocaleCode.php (99%) rename src/GraphQL/{Generated => }/Enums/LocationField.php (96%) rename src/GraphQL/{Generated => }/Enums/LocationPlatform.php (97%) rename src/GraphQL/{Generated => }/Enums/MarkupFormat.php (93%) rename src/GraphQL/{Generated => }/Enums/PriceField.php (94%) rename src/GraphQL/{Generated => }/Enums/PublicationField.php (97%) rename src/GraphQL/{Generated => }/Enums/PublicationType.php (95%) rename src/GraphQL/{Generated => }/Enums/PublisherField.php (96%) rename src/GraphQL/{Generated => }/Enums/ReferenceField.php (98%) rename src/GraphQL/{Generated => }/Enums/RelationType.php (95%) rename src/GraphQL/{Generated => }/Enums/ResourceType.php (96%) rename src/GraphQL/{Generated => }/Enums/SeriesField.php (96%) rename src/GraphQL/{Generated => }/Enums/SeriesType.php (91%) rename src/GraphQL/{Generated => }/Enums/SubjectField.php (95%) rename src/GraphQL/{Generated => }/Enums/SubjectType.php (94%) rename src/GraphQL/{Generated => }/Enums/TitleField.php (94%) rename src/GraphQL/{Generated => }/Enums/WeightUnit.php (91%) rename src/GraphQL/{Generated => }/Enums/WorkFeaturedVideoField.php (95%) rename src/GraphQL/{Generated => }/Enums/WorkField.php (98%) rename src/GraphQL/{Generated => }/Enums/WorkRelationField.php (95%) rename src/GraphQL/{Generated => }/Enums/WorkStatus.php (94%) rename src/GraphQL/{Generated => }/Enums/WorkType.php (94%) rename src/GraphQL/{Generated => }/Inputs/AbstractOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/AdditionalResourceOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/AffiliationOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/AwardOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/BiographyOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/BookReviewOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/CompleteFileUpload.php (95%) rename src/GraphQL/{Generated => }/Inputs/ContactOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/ContributionOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/ContributorOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/EndorsementOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/FundingOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/ImprintOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/InstitutionOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/IssueOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/LanguageOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/LocationOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/NewAbstract.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewAdditionalResource.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewAdditionalResourceFileUpload.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewAffiliation.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewAward.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewBiography.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewBookReview.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewContact.php (97%) rename src/GraphQL/{Generated => }/Inputs/NewContribution.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewContributor.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewEndorsement.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewFrontcoverFileUpload.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewFunding.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewImprint.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewInstitution.php (97%) rename src/GraphQL/{Generated => }/Inputs/NewIssue.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewLanguage.php (97%) rename src/GraphQL/{Generated => }/Inputs/NewLocation.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewPrice.php (97%) rename src/GraphQL/{Generated => }/Inputs/NewPublication.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewPublicationFileUpload.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewPublisher.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewReference.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewSeries.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewSubject.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewTitle.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewWork.php (99%) rename src/GraphQL/{Generated => }/Inputs/NewWorkFeaturedVideo.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewWorkFeaturedVideoFileUpload.php (98%) rename src/GraphQL/{Generated => }/Inputs/NewWorkRelation.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchAbstract.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchAdditionalResource.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchAffiliation.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchAward.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchBiography.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchBookReview.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchContact.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchContribution.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchContributor.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchEndorsement.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchFunding.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchImprint.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchInstitution.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchIssue.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchLanguage.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchLocation.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchPrice.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchPublication.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchPublisher.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchReference.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchSeries.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchSubject.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchTitle.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchWork.php (99%) rename src/GraphQL/{Generated => }/Inputs/PatchWorkFeaturedVideo.php (98%) rename src/GraphQL/{Generated => }/Inputs/PatchWorkRelation.php (98%) rename src/GraphQL/{Generated => }/Inputs/PriceOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/PublicationOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/PublisherOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/ReferenceOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/SeriesOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/SubjectOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/TimeExpression.php (96%) rename src/GraphQL/{Generated => }/Inputs/TitleOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/WorkFeaturedVideoOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/WorkOrderBy.php (96%) rename src/GraphQL/{Generated => }/Inputs/WorkRelationOrderBy.php (96%) rename src/GraphQL/{Generated => }/Mutations/CompleteFileUploadMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateAbstractMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateAdditionalResourceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateAffiliationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateAwardMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateBiographyMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateBookReviewMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateContactMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateContributionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateContributorMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateEndorsementMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateFundingMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateImprintMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateInstitutionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateIssueMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/CreateLanguageMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateLocationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreatePriceMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/CreatePublicationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreatePublisherMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateReferenceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateSeriesMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateSubjectMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateTitleMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateWorkFeaturedVideoMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/CreateWorkMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/CreateWorkRelationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteAbstractMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteAdditionalResourceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteAffiliationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteAwardMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteBiographyMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteBookReviewMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteContactMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteContributionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteContributorMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteEndorsementMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteFundingMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteImprintMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteInstitutionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteIssueMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteLanguageMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteLocationMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeletePriceMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeletePublicationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeletePublisherMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteReferenceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteSeriesMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteSubjectMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteTitleMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteWorkFeaturedVideoMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/DeleteWorkMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/DeleteWorkRelationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/InitAdditionalResourceFileUploadMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/InitFrontcoverFileUploadMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/InitPublicationFileUploadMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/InitWorkFeaturedVideoFileUploadMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveAdditionalResourceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveAffiliationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveAwardMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveBookReviewMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveContributionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveEndorsementMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveIssueMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveReferenceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveSubjectMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/MoveWorkRelationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateAbstractMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateAdditionalResourceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateAffiliationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateAwardMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateBiographyMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateBookReviewMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateContactMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateContributionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateContributorMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateEndorsementMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateFundingMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateImprintMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateInstitutionMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateIssueMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateLanguageMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateLocationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdatePriceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdatePublicationMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdatePublisherMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateReferenceMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateSeriesMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateSubjectMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateTitleMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateWorkFeaturedVideoMutation.php (97%) rename src/GraphQL/{Generated => }/Mutations/UpdateWorkMutation.php (96%) rename src/GraphQL/{Generated => }/Mutations/UpdateWorkRelationMutation.php (97%) rename src/GraphQL/{Generated => }/Queries/AbstractQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/AbstractsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/AdditionalResourceCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/AdditionalResourceQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/AdditionalResourcesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/AffiliationCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/AffiliationQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/AffiliationsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/AwardCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/AwardQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/AwardsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/BiographiesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/BiographyQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/BookByDoiQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/BookCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/BookReviewCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/BookReviewQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/BookReviewsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/BooksQuery.php (99%) rename src/GraphQL/{Generated => }/Queries/ChapterByDoiQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ChapterCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/ChaptersQuery.php (99%) rename src/GraphQL/{Generated => }/Queries/ContactCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContactQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContactsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/ContributionCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContributionQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContributionsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/ContributorCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContributorQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ContributorsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/EndorsementCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/EndorsementQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/EndorsementsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/FileQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/FundingCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/FundingQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/FundingsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/ImprintCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ImprintQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ImprintsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/InstitutionCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/InstitutionQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/InstitutionsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/IssueCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/IssueQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/IssuesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/LanguageCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/LanguageQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/LanguagesQuery.php (99%) rename src/GraphQL/{Generated => }/Queries/LocationCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/LocationQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/LocationsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/MeQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/PriceCountQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/PriceQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/PricesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/PublicationCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/PublicationQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/PublicationsQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/PublisherCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/PublisherQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/PublishersQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/ReferenceCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/ReferenceQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/ReferencesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/SeriesCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/SeriesQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/SeriesesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/SubjectCountQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/SubjectQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/SubjectsQuery.php (99%) rename src/GraphQL/{Generated => }/Queries/TitleQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/TitlesQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/WorkByDoiQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/WorkCountQuery.php (99%) rename src/GraphQL/{Generated => }/Queries/WorkFeaturedVideoCountQuery.php (95%) rename src/GraphQL/{Generated => }/Queries/WorkFeaturedVideoQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/WorkFeaturedVideosQuery.php (98%) rename src/GraphQL/{Generated => }/Queries/WorkQuery.php (97%) rename src/GraphQL/{Generated => }/Queries/WorksQuery.php (99%) rename src/GraphQL/{Generated => }/Scalars/BooleanScalar.php (83%) rename src/GraphQL/{Generated => }/Scalars/DateScalar.php (92%) rename src/GraphQL/{Generated => }/Scalars/DoiScalar.php (87%) rename src/GraphQL/{Generated => }/Scalars/FloatScalar.php (82%) rename src/GraphQL/{Generated => }/Scalars/IntScalar.php (82%) rename src/GraphQL/{Generated => }/Scalars/IsbnScalar.php (86%) rename src/GraphQL/{Generated => }/Scalars/OrcidScalar.php (88%) rename src/GraphQL/{Generated => }/Scalars/RorScalar.php (87%) rename src/GraphQL/{Generated => }/Scalars/StringScalar.php (82%) rename src/GraphQL/{Generated => }/Scalars/TimestampScalar.php (86%) rename src/GraphQL/{Generated => }/Scalars/UuidScalar.php (82%) rename src/GraphQL/{Generated => }/Schemas/Affiliation.php (99%) rename src/GraphQL/{Generated => }/Schemas/Award.php (99%) rename src/GraphQL/{Generated => }/Schemas/Biography.php (99%) rename src/GraphQL/{Generated => }/Schemas/BookReview.php (99%) rename src/GraphQL/{Generated => }/Schemas/Contact.php (99%) rename src/GraphQL/{Generated => }/Schemas/Contribution.php (99%) rename src/GraphQL/{Generated => }/Schemas/Contributor.php (99%) rename src/GraphQL/{Generated => }/Schemas/Endorsement.php (99%) rename src/GraphQL/{Generated => }/Schemas/File.php (99%) rename src/GraphQL/{Generated => }/Schemas/FileUploadResponse.php (98%) rename src/GraphQL/{Generated => }/Schemas/Funding.php (99%) rename src/GraphQL/{Generated => }/Schemas/GraphQLAbstract.php (99%) rename src/GraphQL/{Generated => }/Schemas/Imprint.php (99%) rename src/GraphQL/{Generated => }/Schemas/Institution.php (99%) rename src/GraphQL/{Generated => }/Schemas/Issue.php (99%) rename src/GraphQL/{Generated => }/Schemas/Language.php (99%) rename src/GraphQL/{Generated => }/Schemas/Location.php (99%) rename src/GraphQL/{Generated => }/Schemas/Me.php (99%) rename src/GraphQL/{Generated => }/Schemas/MutationRoot.php (99%) rename src/GraphQL/{Generated => }/Schemas/Price.php (99%) rename src/GraphQL/{Generated => }/Schemas/Publication.php (99%) rename src/GraphQL/{Generated => }/Schemas/Publisher.php (99%) rename src/GraphQL/{Generated => }/Schemas/PublisherContext.php (97%) rename src/GraphQL/{Generated => }/Schemas/PublisherPermissions.php (98%) rename src/GraphQL/{Generated => }/Schemas/QueryRoot.php (99%) rename src/GraphQL/{Generated => }/Schemas/Reference.php (99%) rename src/GraphQL/{Generated => }/Schemas/Series.php (99%) rename src/GraphQL/{Generated => }/Schemas/Subject.php (99%) rename src/GraphQL/{Generated => }/Schemas/Title.php (99%) rename src/GraphQL/{Generated => }/Schemas/UploadRequestHeader.php (97%) rename src/GraphQL/{Generated => }/Schemas/Work.php (99%) rename src/GraphQL/{Generated => }/Schemas/WorkFeaturedVideo.php (99%) rename src/GraphQL/{Generated => }/Schemas/WorkRelation.php (99%) rename src/GraphQL/{Generated => }/Schemas/WorkResource.php (99%) rename tests/GraphQL/{GeneratedOperationTest.php => OperationClassTest.php} (74%) diff --git a/README.md b/README.md index e3cf446..38d1beb 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ Arguments can be passed positionally or by name. Enum values can be passed direc enum constants. `OperationRequest::enum()` is still supported for custom operations. ```php -use ThothApi\GraphQL\Generated\Enums\Direction; -use ThothApi\GraphQL\Generated\Enums\WorkField; +use ThothApi\GraphQL\Enums\Direction; +use ThothApi\GraphQL\Enums\WorkField; $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], @@ -87,7 +87,7 @@ The generic executor is still available when you want to use the generated opera directly. It returns raw arrays instead of hydrated schema objects. ```php -use ThothApi\GraphQL\Generated\Queries\WorksQuery; +use ThothApi\GraphQL\Queries\WorksQuery; $works = $client->execute(WorksQuery::operation([ 'limit' => 5, @@ -115,8 +115,8 @@ Inputs are generated from the schema. They can be created from arrays, from DTOs `getAllData()`, or from `JsonSerializable` objects. ```php -use ThothApi\GraphQL\Generated\Enums\SubjectType; -use ThothApi\GraphQL\Generated\Inputs\NewSubject; +use ThothApi\GraphQL\Enums\SubjectType; +use ThothApi\GraphQL\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', @@ -148,10 +148,10 @@ echo $subject->getSubjectCode(); print_r($subject->toArray()); ``` -Generated schema objects can also be instantiated and populated manually. +Schema objects can also be instantiated and populated manually. ```php -use ThothApi\GraphQL\Generated\Schemas\Work; +use ThothApi\GraphQL\Schemas\Work; $work = (new Work()) ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') @@ -173,7 +173,7 @@ A QueryException is thrown in case of an error in the request to the GraphQL API ```php try { - $client->execute(\ThothApi\GraphQL\Generated\Mutations\CreateWorkMutation::operation([ + $client->execute(\ThothApi\GraphQL\Mutations\CreateWorkMutation::operation([ 'data' => [ 'doi' => 'https://doi.org/10.00000/00000000', ], diff --git a/docs/README-es.md b/docs/README-es.md index 72bee95..c6fe919 100644 --- a/docs/README-es.md +++ b/docs/README-es.md @@ -43,8 +43,8 @@ con constantes de las clases enum generadas. `OperationRequest::enum()` sigue di operaciones personalizadas. ```php -use ThothApi\GraphQL\Generated\Enums\Direction; -use ThothApi\GraphQL\Generated\Enums\WorkField; +use ThothApi\GraphQL\Enums\Direction; +use ThothApi\GraphQL\Enums\WorkField; $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], @@ -88,7 +88,7 @@ El ejecutor genérico sigue disponible cuando sea mejor usar directamente las cl operación. Devuelve arrays sin hidratar objetos de schema. ```php -use ThothApi\GraphQL\Generated\Queries\WorksQuery; +use ThothApi\GraphQL\Queries\WorksQuery; $works = $client->execute(WorksQuery::operation([ 'limit' => 5, @@ -116,8 +116,8 @@ Los inputs se generan a partir del schema. Se pueden crear con arrays, a partir `getAllData()` o con objetos `JsonSerializable`. ```php -use ThothApi\GraphQL\Generated\Enums\SubjectType; -use ThothApi\GraphQL\Generated\Inputs\NewSubject; +use ThothApi\GraphQL\Enums\SubjectType; +use ThothApi\GraphQL\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', @@ -153,7 +153,7 @@ print_r($subject->toArray()); Las clases de schema también pueden instanciarse y poblarse manualmente. ```php -use ThothApi\GraphQL\Generated\Schemas\Work; +use ThothApi\GraphQL\Schemas\Work; $work = (new Work()) ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') @@ -175,7 +175,7 @@ Se lanza una excepción del tipo *QueryException* en caso de error en la solicit ```php try { - $client->createWork(new \ThothApi\GraphQL\Generated\Inputs\NewWork([ + $client->createWork(new \ThothApi\GraphQL\Inputs\NewWork([ 'doi' => 'https://doi.org/10.00000/00000000', ])); } catch (\ThothApi\Exception\QueryException $exception) { diff --git a/docs/README-pt_BR.md b/docs/README-pt_BR.md index 3970883..51e6412 100644 --- a/docs/README-pt_BR.md +++ b/docs/README-pt_BR.md @@ -43,8 +43,8 @@ diretamente com constantes das classes de enum geradas. `OperationRequest::enum( para operações customizadas. ```php -use ThothApi\GraphQL\Generated\Enums\Direction; -use ThothApi\GraphQL\Generated\Enums\WorkField; +use ThothApi\GraphQL\Enums\Direction; +use ThothApi\GraphQL\Enums\WorkField; $works = $client->works([ 'publishers' => ['71faf1c3-900a-4b8c-bca7-4f927699fb90'], @@ -88,7 +88,7 @@ O executor genérico continua disponível quando for melhor usar diretamente as operação. Ele retorna arrays brutos, sem hidratar objetos de schema. ```php -use ThothApi\GraphQL\Generated\Queries\WorksQuery; +use ThothApi\GraphQL\Queries\WorksQuery; $works = $client->execute(WorksQuery::operation([ 'limit' => 5, @@ -116,8 +116,8 @@ Inputs são gerados a partir do schema. Eles podem ser criados com arrays, a par `getAllData()` ou de objetos `JsonSerializable`. ```php -use ThothApi\GraphQL\Generated\Enums\SubjectType; -use ThothApi\GraphQL\Generated\Inputs\NewSubject; +use ThothApi\GraphQL\Enums\SubjectType; +use ThothApi\GraphQL\Inputs\NewSubject; $newSubject = new NewSubject([ 'workId' => '5a5b0fe3-03a9-444b-b221-ecae5370ff30', @@ -153,7 +153,7 @@ print_r($subject->toArray()); As classes de schema também podem ser instanciadas e populadas manualmente. ```php -use ThothApi\GraphQL\Generated\Schemas\Work; +use ThothApi\GraphQL\Schemas\Work; $work = (new Work()) ->setWorkId('5a5b0fe3-03a9-444b-b221-ecae5370ff30') @@ -175,7 +175,7 @@ Uma exceção do tipo *QueryException* é lançada em caso de erro na solicitaç ```php try { - $client->createWork(new \ThothApi\GraphQL\Generated\Inputs\NewWork([ + $client->createWork(new \ThothApi\GraphQL\Inputs\NewWork([ 'doi' => 'https://doi.org/10.00000/00000000', ])); } catch (\ThothApi\Exception\QueryException $exception) { diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 18cd81b..ef81104 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -66,13 +66,13 @@ public function __call(string $name, array $arguments) private function getOperationClass(string $name): string { $className = $this->studly($name); - $mutationClass = '\\ThothApi\\GraphQL\\Generated\\Mutations\\' . $className . 'Mutation'; + $mutationClass = '\\ThothApi\\GraphQL\\Mutations\\' . $className . 'Mutation'; if (class_exists($mutationClass)) { return $mutationClass; } - $queryClass = '\\ThothApi\\GraphQL\\Generated\\Queries\\' . $className . 'Query'; + $queryClass = '\\ThothApi\\GraphQL\\Queries\\' . $className . 'Query'; if (class_exists($queryClass)) { return $queryClass; @@ -175,7 +175,7 @@ private function getDefaultSelection(?string $typeName): array return self::$defaultSelections[$typeName]; } - $schemaClass = '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + $schemaClass = '\\ThothApi\\GraphQL\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); if (!class_exists($schemaClass)) { self::$defaultSelections[$typeName] = []; @@ -301,6 +301,6 @@ private function isScalarType($type): bool private function getSchemaClass(?string $typeName): string { - return '\\ThothApi\\GraphQL\\Generated\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + return '\\ThothApi\\GraphQL\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); } } diff --git a/src/GraphQL/Generated/Enums/AbstractField.php b/src/GraphQL/Enums/AbstractField.php similarity index 94% rename from src/GraphQL/Generated/Enums/AbstractField.php rename to src/GraphQL/Enums/AbstractField.php index 9dbbefa..7db3f66 100644 --- a/src/GraphQL/Generated/Enums/AbstractField.php +++ b/src/GraphQL/Enums/AbstractField.php @@ -1,6 +1,6 @@ getGeneratedClassName('Inputs', $type ? $type->baseName() : null); + $inputClass = $this->getSchemaClassName('Inputs', $type ? $type->baseName() : null); if (!class_exists($inputClass)) { return null; @@ -212,11 +212,11 @@ private function isEnumType(?TypeReference $type): bool return $this->isEnumType($type->getOfType()); } - return class_exists($this->getGeneratedClassName('Enums', $type->baseName())); + return class_exists($this->getSchemaClassName('Enums', $type->baseName())); } - private function getGeneratedClassName(string $namespacePart, ?string $typeName): string + private function getSchemaClassName(string $namespacePart, ?string $typeName): string { - return '\\ThothApi\\GraphQL\\Generated\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); } } diff --git a/src/GraphQL/Generated/Queries/AbstractQuery.php b/src/GraphQL/Queries/AbstractQuery.php similarity index 97% rename from src/GraphQL/Generated/Queries/AbstractQuery.php rename to src/GraphQL/Queries/AbstractQuery.php index f7e19b6..77b88b8 100644 --- a/src/GraphQL/Generated/Queries/AbstractQuery.php +++ b/src/GraphQL/Queries/AbstractQuery.php @@ -1,6 +1,6 @@ 1], ['workId']); @@ -18,7 +18,7 @@ public function testGeneratedQueryCreatesOperationRequest(): void $this->assertStringContainsString('books(limit: 1)', $operation->toGraphQL()); } - public function testGeneratedMutationCreatesOperationRequest(): void + public function testMutationClassCreatesOperationRequest(): void { $operation = CreatePublisherMutation::operation([ 'data' => [ diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 2ef3dc0..6ffcc4d 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -6,10 +6,10 @@ use ThothApi\GraphQL\Definition\ArgumentDefinition; use ThothApi\GraphQL\Definition\FieldDefinition; use ThothApi\GraphQL\Definition\TypeReference; -use ThothApi\GraphQL\Generated\Enums\Direction; -use ThothApi\GraphQL\Generated\Enums\WorkField; -use ThothApi\GraphQL\Generated\Enums\WorkStatus; -use ThothApi\GraphQL\Generated\Enums\WorkType; +use ThothApi\GraphQL\Enums\Direction; +use ThothApi\GraphQL\Enums\WorkField; +use ThothApi\GraphQL\Enums\WorkStatus; +use ThothApi\GraphQL\Enums\WorkType; use ThothApi\GraphQL\OperationRequest; final class OperationRequestTest extends TestCase diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 28510e5..cb47a4f 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -4,7 +4,8 @@ $root = dirname(__DIR__); $schemaSource = $argv[1] ?? null; -$target = $argv[2] ?? $root . '/src/GraphQL/Generated'; +$target = $argv[2] ?? $root . '/src/GraphQL'; +$generatedDirectories = ['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars']; $schema = $schemaSource ? loadSchemaFromFile($schemaSource) : fetchSchema('https://api.thoth.pub/graphql'); if (!isset($schema['data']['__schema'])) { @@ -20,9 +21,8 @@ } } -removeDirectory($target); - -foreach (['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars'] as $directory) { +foreach ($generatedDirectories as $directory) { + removeDirectory($target . '/' . $directory); mkdir($target . '/' . $directory, 0777, true); } @@ -85,7 +85,7 @@ function generateOperations(array $rootType, string $operationType, string $dire $contents = << Date: Mon, 15 Jun 2026 17:11:28 -0400 Subject: [PATCH 10/40] refactor: improve GraphQL generator readability --- tools/generate-graphql-client.php | 378 +++++++++++++++++++++--------- 1 file changed, 263 insertions(+), 115 deletions(-) diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index cb47a4f..8bf052c 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -2,52 +2,32 @@ declare(strict_types=1); -$root = dirname(__DIR__); -$schemaSource = $argv[1] ?? null; -$target = $argv[2] ?? $root . '/src/GraphQL'; -$generatedDirectories = ['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars']; - -$schema = $schemaSource ? loadSchemaFromFile($schemaSource) : fetchSchema('https://api.thoth.pub/graphql'); -if (!isset($schema['data']['__schema'])) { - fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); - exit(1); -} - -$schema = $schema['data']['__schema']; -$types = []; -foreach ($schema['types'] as $type) { - if (isset($type['name'])) { - $types[$type['name']] = $type; - } -} +const THOTH_GRAPHQL_ENDPOINT = 'https://api.thoth.pub/graphql'; +const GENERATED_DIRECTORIES = ['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars']; + +main($argv); + +function main(array $argv): void +{ + $target = $argv[2] ?? dirname(__DIR__) . '/src/GraphQL'; + $schema = loadIntrospectionSchema($argv[1] ?? null); + $types = indexTypesByName($schema['types'] ?? []); -foreach ($generatedDirectories as $directory) { - removeDirectory($target . '/' . $directory); - mkdir($target . '/' . $directory, 0777, true); + prepareGeneratedDirectories($target); + generateRootOperations($schema, $types, $target); + generateSchemaTypes($types, $target); } -generateOperations($types[$schema['queryType']['name']], 'query', $target . '/Queries', 'Queries'); -generateOperations($types[$schema['mutationType']['name']], 'mutation', $target . '/Mutations', 'Mutations'); +function loadIntrospectionSchema(?string $schemaSource): array +{ + $response = $schemaSource ? loadSchemaFromFile($schemaSource) : fetchSchema(THOTH_GRAPHQL_ENDPOINT); -foreach ($types as $type) { - if (strpos($type['name'], '__') === 0) { - continue; + if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { + fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); + exit(1); } - switch ($type['kind']) { - case 'OBJECT': - generateObjectType($type, $target . '/Schemas', 'Schemas'); - break; - case 'INPUT_OBJECT': - generateInputType($type, $target . '/Inputs', 'Inputs'); - break; - case 'ENUM': - generateEnumType($type, $target . '/Enums', 'Enums'); - break; - case 'SCALAR': - generateScalarType($type, $target . '/Scalars', 'Scalars'); - break; - } + return $response['data']['__schema']; } function loadSchemaFromFile(string $schemaPath): array @@ -77,12 +57,99 @@ function introspectionQuery(): string return 'query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }'; } +function indexTypesByName(array $schemaTypes): array +{ + $types = []; + + foreach ($schemaTypes as $type) { + if (isset($type['name'])) { + $types[$type['name']] = $type; + } + } + + return $types; +} + +function prepareGeneratedDirectories(string $target): void +{ + foreach (GENERATED_DIRECTORIES as $directory) { + removeDirectory($target . '/' . $directory); + mkdir($target . '/' . $directory, 0777, true); + } +} + +function generateRootOperations(array $schema, array $types, string $target): void +{ + generateOperations( + $types[$schema['queryType']['name']] ?? [], + 'query', + $target . '/Queries', + 'Queries' + ); + generateOperations( + $types[$schema['mutationType']['name']] ?? [], + 'mutation', + $target . '/Mutations', + 'Mutations' + ); +} + +function generateSchemaTypes(array $types, string $target): void +{ + foreach ($types as $type) { + if (isInternalType($type)) { + continue; + } + + generateSchemaType($type, $target); + } +} + +function isInternalType(array $type): bool +{ + return isset($type['name']) && strpos($type['name'], '__') === 0; +} + +function generateSchemaType(array $type, string $target): void +{ + switch ($type['kind'] ?? '') { + case 'OBJECT': + generateObjectType($type, $target . '/Schemas', 'Schemas'); + return; + case 'INPUT_OBJECT': + generateInputType($type, $target . '/Inputs', 'Inputs'); + return; + case 'ENUM': + generateEnumType($type, $target . '/Enums', 'Enums'); + return; + case 'SCALAR': + generateScalarType($type, $target . '/Scalars', 'Scalars'); + return; + } +} + function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void { foreach ($rootType['fields'] ?? [] as $field) { - $className = safeClassName(studly($field['name']) . ($operationType === 'query' ? 'Query' : 'Mutation')); - $fieldCode = fieldCode($field); - $contents = << $childValue) { - $prefix = $isList ? '' : exportPhpValue($key, 0) . ' => '; - $lines[] = $childIndent . $prefix . exportPhpValue($childValue, $level + 1) . ','; - } +function writeGeneratedClass(string $directory, string $className, string $contents): void +{ + file_put_contents($directory . '/' . $className . '.php', $contents . "\n"); +} - $lines[] = $indent . ']'; - return implode("\n", $lines); +function exportPhpValue($value, int $level = 0): string +{ + if (is_array($value)) { + return exportPhpArray($value, $level); } if ($value === null) { @@ -301,9 +425,30 @@ function exportPhpValue($value, int $level = 0): string return var_export($value, true); } +function exportPhpArray(array $value, int $level): string +{ + if ($value === []) { + return '[]'; + } + + $indent = str_repeat(' ', $level); + $childIndent = str_repeat(' ', $level + 1); + $isList = isSequentialArray($value); + $lines = ['[']; + + foreach ($value as $key => $childValue) { + $prefix = $isList ? '' : exportPhpValue($key, 0) . ' => '; + $lines[] = $childIndent . $prefix . exportPhpValue($childValue, $level + 1) . ','; + } + + $lines[] = $indent . ']'; + return implode("\n", $lines); +} + function isSequentialArray(array $value): bool { $expected = 0; + foreach ($value as $key => $_) { if ($key !== $expected) { return false; @@ -342,7 +487,16 @@ function sanitizeConstant(string $value): string function safeClassName(string $className): string { - $reserved = [ + if (in_array(strtolower($className), reservedWords(), true)) { + return 'GraphQL' . $className; + } + + return $className; +} + +function reservedWords(): array +{ + return [ 'abstract', 'and', 'array', 'as', 'break', 'callable', 'case', 'catch', 'class', 'clone', 'const', 'continue', 'declare', 'default', 'die', 'do', 'echo', 'else', 'elseif', 'empty', 'enddeclare', 'endfor', 'endforeach', 'endif', 'endswitch', 'endwhile', 'eval', 'exit', 'extends', 'final', @@ -352,12 +506,6 @@ function safeClassName(string $className): string 'return', 'static', 'switch', 'throw', 'trait', 'try', 'unset', 'use', 'var', 'while', 'xor', 'yield', ]; - - if (in_array(strtolower($className), $reserved, true)) { - return 'GraphQL' . $className; - } - - return $className; } function removeDirectory(string $directory): void From ebbd1f9cb578b56df293ef8d29829c01429679b5 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:46:40 -0400 Subject: [PATCH 11/40] feat(graphql): send operation arguments as variables --- src/GraphQL/Client.php | 2 +- src/GraphQL/OperationRequest.php | 88 ++++++++++++++++++++++++-- tests/GraphQL/ClientTest.php | 44 +++++++++++++ tests/GraphQL/GenericClientTest.php | 14 +++- tests/GraphQL/OperationClassTest.php | 10 ++- tests/GraphQL/OperationRequestTest.php | 57 ++++++++++++----- 6 files changed, 189 insertions(+), 26 deletions(-) diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index ef81104..8ca1c86 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -36,7 +36,7 @@ public function rawQuery(string $rawQuery, array $args = []): array public function execute(OperationRequest $operation) { - $response = $this->request->runQuery($operation->toGraphQL(), null, $this->token ?: null); + $response = $this->request->runQuery($operation->toGraphQL(), $operation->getVariables(), $this->token ?: null); $data = $response->getData(); return $data[$operation->getField()->getName()]; diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index cf4c372..8d980a4 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -42,10 +42,17 @@ public function getSelection(): array return $this->selection; } + public function getVariables(): array + { + return $this->normalizeVariables($this->arguments, $this->getSchemaArgumentsByName()); + } + public function toGraphQL(): string { $this->assertIdentifier($this->field->getName()); - $arguments = $this->formatArguments($this->arguments); + $this->getVariables(); + $variableDefinitions = $this->formatVariableDefinitions($this->arguments); + $arguments = $this->formatVariableArguments($this->arguments); $fieldLine = $this->field->getName() . ($arguments === '' ? '' : '(' . $arguments . ')'); $selection = $this->formatSelection($this->selection); @@ -53,10 +60,11 @@ public function toGraphQL(): string $fieldLine .= " {\n" . $selection . "\n }"; } - return $this->operationType . " {\n " . $fieldLine . "\n}"; + return $this->operationType . ($variableDefinitions === '' ? '' : ' (' . $variableDefinitions . ')') + . " {\n " . $fieldLine . "\n}"; } - private function formatArguments(array $arguments): string + private function formatVariableDefinitions(array $arguments): string { $formatted = []; $schemaArguments = $this->getSchemaArgumentsByName(); @@ -67,12 +75,84 @@ private function formatArguments(array $arguments): string } $this->assertIdentifier((string) $name); - $formatted[] = $name . ': ' . $this->formatValue($value, $schemaArguments[$name] ?? null); + if (isset($schemaArguments[$name])) { + $formatted[] = '$' . $name . ': ' . $schemaArguments[$name]->toGraphQL(); + } } return implode(', ', $formatted); } + private function formatVariableArguments(array $arguments): string + { + $formatted = []; + + foreach ($arguments as $name => $value) { + if ($value === null) { + continue; + } + + $this->assertIdentifier((string) $name); + $formatted[] = $name . ': $' . $name; + } + + return implode(', ', $formatted); + } + + private function normalizeVariables(array $variables, array $schemaArguments): array + { + $normalized = []; + + foreach ($variables as $name => $value) { + $this->assertIdentifier((string) $name); + + if ($value !== null) { + $normalized[$name] = $this->normalizeVariableValue($value, $schemaArguments[$name] ?? null); + } + } + + return $normalized; + } + + private function normalizeVariableValue($value, ?TypeReference $type = null) + { + if ($value instanceof EnumValue) { + $this->assertIdentifier((string) $value); + return (string) $value; + } + + if (is_array($value)) { + if ($this->isList($value)) { + $listType = $this->getListItemType($type); + + return array_map(function ($item) use ($listType) { + return $this->normalizeVariableValue($item, $listType); + }, $value); + } + + $normalized = []; + + foreach ($value as $field => $fieldValue) { + $this->assertIdentifier((string) $field); + + if ($fieldValue !== null) { + $normalized[$field] = $this->normalizeVariableValue( + $fieldValue, + $this->getInputFieldType($type, (string) $field) + ); + } + } + + return $normalized; + } + + if ($this->isEnumType($type)) { + $this->assertIdentifier((string) $value); + } + + return $value; + } + private function formatSelection(array $selection): string { $lines = []; diff --git a/tests/GraphQL/ClientTest.php b/tests/GraphQL/ClientTest.php index d8358d7..92fa56f 100644 --- a/tests/GraphQL/ClientTest.php +++ b/tests/GraphQL/ClientTest.php @@ -4,9 +4,13 @@ use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; +use GuzzleHttp\Middleware; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use ThothApi\GraphQL\Client; +use ThothApi\GraphQL\Enums\Direction; +use ThothApi\GraphQL\Enums\WorkField; +use ThothApi\GraphQL\Queries\WorksQuery; final class ClientTest extends TestCase { @@ -62,4 +66,44 @@ public function testRunRawQuery(): void ] ], $result); } + + public function testExecuteSendsOperationArgumentsAsVariables(): void + { + $container = []; + $handler = HandlerStack::create($this->mockHandler); + $handler->push(Middleware::history($container)); + $client = new Client(['handler' => $handler]); + + $this->mockHandler->append(new Response(200, [], json_encode([ + 'data' => [ + 'works' => [], + ], + ]))); + + $client->execute(WorksQuery::operation([ + 'limit' => 1, + 'order' => [ + 'field' => WorkField::PUBLICATION_DATE, + 'direction' => Direction::ASC, + ], + ], ['workId'])); + + $body = json_decode((string) $container[0]['request']->getBody(), true); + + $this->assertSame( + 'query ($limit: Int, $order: WorkOrderBy) {' . "\n" + . ' works(limit: $limit, order: $order) {' . "\n" + . ' workId' . "\n" + . ' }' . "\n" + . '}', + $body['query'] + ); + $this->assertSame([ + 'limit' => 1, + 'order' => [ + 'field' => 'PUBLICATION_DATE', + 'direction' => 'ASC', + ], + ], $body['variables']); + } } diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index cefd2ec..fcbe40c 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -293,8 +293,17 @@ public function testItKeepsArrayArgumentsWhenNoExplicitSelectionIsProvided(): vo $body = json_decode((string) $history[0]['request']->getBody(), true); - $this->assertStringContainsString('order: {field: FULL_TITLE, direction: ASC}', $body['query']); + $this->assertStringContainsString('order: $order', $body['query']); $this->assertStringContainsString('workId', $body['query']); + $this->assertSame([ + 'limit' => 100, + 'offset' => 0, + 'filter' => '', + 'order' => [ + 'field' => 'FULL_TITLE', + 'direction' => 'ASC', + ], + ], $body['variables']); } public function testItAcceptsExplicitSelectionAfterOptionalPositionalArguments(): void @@ -320,8 +329,9 @@ public function testItAcceptsExplicitSelectionAfterOptionalPositionalArguments() $body = json_decode((string) $history[0]['request']->getBody(), true); - $this->assertStringContainsString('works(limit: 5)', $body['query']); + $this->assertStringContainsString('works(limit: $limit)', $body['query']); $this->assertStringContainsString('fullTitle', $body['query']); + $this->assertSame(['limit' => 5], $body['variables']); } public function testItHydratesGeneratedSchemasInListResults(): void diff --git a/tests/GraphQL/OperationClassTest.php b/tests/GraphQL/OperationClassTest.php index d27f96a..4941800 100644 --- a/tests/GraphQL/OperationClassTest.php +++ b/tests/GraphQL/OperationClassTest.php @@ -15,7 +15,8 @@ public function testQueryClassCreatesOperationRequest(): void $this->assertInstanceOf(OperationRequest::class, $operation); $this->assertSame('books', BooksQuery::field()->getName()); - $this->assertStringContainsString('books(limit: 1)', $operation->toGraphQL()); + $this->assertStringContainsString('books(limit: $limit)', $operation->toGraphQL()); + $this->assertSame(['limit' => 1], $operation->getVariables()); } public function testMutationClassCreatesOperationRequest(): void @@ -28,6 +29,11 @@ public function testMutationClassCreatesOperationRequest(): void $this->assertInstanceOf(OperationRequest::class, $operation); $this->assertSame('createPublisher', CreatePublisherMutation::field()->getName()); - $this->assertStringContainsString('createPublisher(data: {publisherName: "ACME Press"})', $operation->toGraphQL()); + $this->assertStringContainsString('createPublisher(data: $data)', $operation->toGraphQL()); + $this->assertSame([ + 'data' => [ + 'publisherName' => 'ACME Press', + ], + ], $operation->getVariables()); } } diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 6ffcc4d..01e3858 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -14,7 +14,7 @@ final class OperationRequestTest extends TestCase { - public function testItBuildsAQueryWithArgumentsAndSelection(): void + public function testItBuildsAQueryWithVariablesAndSelection(): void { $operation = new OperationRequest( 'query', @@ -37,8 +37,8 @@ public function testItBuildsAQueryWithArgumentsAndSelection(): void ); $expected = <<assertSame($expected, $operation->toGraphQL()); + $this->assertSame([ + 'limit' => 1, + 'order' => [ + 'field' => 'PUBLICATION_DATE', + 'direction' => 'ASC', + ], + ], $operation->getVariables()); } public function testItBuildsAMutationWithInputDataAndSelection(): void @@ -69,14 +76,20 @@ public function testItBuildsAMutationWithInputDataAndSelection(): void ); $expected = <<assertSame($expected, $operation->toGraphQL()); + $this->assertSame([ + 'data' => [ + 'publisherName' => 'ACME Press', + 'publisherUrl' => 'https://example.test', + ], + ], $operation->getVariables()); } public function testItRejectsInvalidSelectionFields(): void @@ -179,10 +192,13 @@ public function testItFormatsGeneratedEnumConstantsFromInputSchema(): void ['workId'] ); - $this->assertStringContainsString( - 'order: {field: PUBLICATION_DATE, direction: DESC}', - $operation->toGraphQL() - ); + $this->assertStringContainsString('books(order: $order)', $operation->toGraphQL()); + $this->assertSame([ + 'order' => [ + 'field' => 'PUBLICATION_DATE', + 'direction' => 'DESC', + ], + ], $operation->getVariables()); } public function testItFormatsGeneratedEnumConstantsFromInputLists(): void @@ -208,10 +224,13 @@ public function testItFormatsGeneratedEnumConstantsFromInputLists(): void ['workId'] ); - $this->assertStringContainsString( - 'workTypes: [MONOGRAPH, EDITED_BOOK]', - $operation->toGraphQL() - ); + $this->assertStringContainsString('books(workTypes: $workTypes)', $operation->toGraphQL()); + $this->assertSame([ + 'workTypes' => [ + 'MONOGRAPH', + 'EDITED_BOOK', + ], + ], $operation->getVariables()); } public function testItKeepsStringValuesQuotedWhenSchemaTypeIsString(): void @@ -235,9 +254,13 @@ public function testItKeepsStringValuesQuotedWhenSchemaTypeIsString(): void ['workId'] ); - $this->assertStringContainsString( - 'data: {workType: MONOGRAPH, workStatus: ACTIVE, fullTitle: "MONOGRAPH"}', - $operation->toGraphQL() - ); + $this->assertStringContainsString('createWork(data: $data)', $operation->toGraphQL()); + $this->assertSame([ + 'data' => [ + 'workType' => 'MONOGRAPH', + 'workStatus' => 'ACTIVE', + 'fullTitle' => 'MONOGRAPH', + ], + ], $operation->getVariables()); } } From 1534016bf8313c8e2c5af409755c2d35a7735e4d Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:48:25 -0400 Subject: [PATCH 12/40] fix(graphql): preserve response error context --- src/Exception/QueryException.php | 25 +++++++++- src/GraphQL/Response.php | 68 +++++++++++++++++++++----- tests/Exception/QueryExceptionTest.php | 13 +++++ tests/GraphQL/ResponseTest.php | 39 +++++++++++++++ 4 files changed, 131 insertions(+), 14 deletions(-) diff --git a/src/Exception/QueryException.php b/src/Exception/QueryException.php index 68837b5..cded02b 100644 --- a/src/Exception/QueryException.php +++ b/src/Exception/QueryException.php @@ -6,13 +6,24 @@ class QueryException extends \RuntimeException { private array $details; + private array $errors; + + private ?int $statusCode; + private ?string $query; private ?array $variables; - public function __construct(array $error, ?string $query = null, ?array $variables = null) - { + public function __construct( + array $error, + ?string $query = null, + ?array $variables = null, + ?array $errors = null, + ?int $statusCode = null + ) { $this->details = $error; + $this->errors = $errors ?? [$error]; + $this->statusCode = $statusCode; $this->query = $query; $this->variables = $variables; parent::__construct($error['message']); @@ -23,6 +34,16 @@ public function getDetails(): array return $this->details; } + public function getErrors(): array + { + return $this->errors; + } + + public function getStatusCode(): ?int + { + return $this->statusCode; + } + public function getQuery(): ?string { return $this->query; diff --git a/src/GraphQL/Response.php b/src/GraphQL/Response.php index 4c09c5f..4630f52 100644 --- a/src/GraphQL/Response.php +++ b/src/GraphQL/Response.php @@ -2,7 +2,6 @@ namespace ThothApi\GraphQL; -use GuzzleHttp\Psr7\Response as GuzzleResponse; use Psr\Http\Message\ResponseInterface; use ThothApi\Exception\QueryException; @@ -10,7 +9,9 @@ class Response { private string $body; - private GuzzleResponse $previousResponse; + private ResponseInterface $previousResponse; + + private array $decodedBody; private ?string $query; @@ -22,22 +23,37 @@ public function __construct(ResponseInterface $guzzleResponse, ?string $query = $this->body = $guzzleResponse->getBody()->getContents(); $this->query = $query; $this->variables = $variables; + $this->decodedBody = $this->decodeBody(); if ($error = $this->getErrors()) { - throw new QueryException($error, $this->query, $this->variables); + throw new QueryException( + $error, + $this->query, + $this->variables, + $this->decodedBody['errors'], + $this->previousResponse->getStatusCode() + ); + } + + if (!array_key_exists('data', $this->decodedBody) || !is_array($this->decodedBody['data'])) { + throw new QueryException( + ['message' => 'GraphQL response does not contain data.'], + $this->query, + $this->variables, + null, + $this->previousResponse->getStatusCode() + ); } } public function getErrors(): ?array { - $decodedBody = json_decode($this->body, true); - - if (isset($decodedBody['errors'])) { - return array_shift($decodedBody['errors']); - } - - if (!isset($decodedBody['data']) && $this->previousResponse->getStatusCode() != 200) { - return ['message' => $this->body]; + if ( + isset($this->decodedBody['errors']) + && is_array($this->decodedBody['errors']) + && isset($this->decodedBody['errors'][0]) + ) { + return $this->decodedBody['errors'][0]; } return null; @@ -49,8 +65,36 @@ public function getBody(): string } public function getData(): array + { + return $this->decodedBody['data']; + } + + private function decodeBody(): array { $decodedBody = json_decode($this->body, true); - return $decodedBody['data']; + + if (json_last_error() !== JSON_ERROR_NONE || !is_array($decodedBody)) { + throw new QueryException( + ['message' => 'Invalid JSON response from GraphQL API.'], + $this->query, + $this->variables, + null, + $this->previousResponse->getStatusCode() + ); + } + + if (!isset($decodedBody['errors']) && !array_key_exists('data', $decodedBody)) { + if ($this->previousResponse->getStatusCode() !== 200) { + throw new QueryException( + ['message' => $this->body], + $this->query, + $this->variables, + null, + $this->previousResponse->getStatusCode() + ); + } + } + + return $decodedBody; } } diff --git a/tests/Exception/QueryExceptionTest.php b/tests/Exception/QueryExceptionTest.php index a9a0a0e..6f911b0 100644 --- a/tests/Exception/QueryExceptionTest.php +++ b/tests/Exception/QueryExceptionTest.php @@ -35,4 +35,17 @@ public function testGetQueryAndVariables(): void $this->assertSame($query, $queryException->getQuery()); $this->assertSame($variables, $queryException->getVariables()); } + + public function testGetErrorsAndStatusCode(): void + { + $errors = [ + ['message' => 'first error'], + ['message' => 'second error'], + ]; + + $queryException = new QueryException($errors[0], null, null, $errors, 400); + + $this->assertSame($errors, $queryException->getErrors()); + $this->assertSame(400, $queryException->getStatusCode()); + } } diff --git a/tests/GraphQL/ResponseTest.php b/tests/GraphQL/ResponseTest.php index e7dfaef..edb6d9b 100644 --- a/tests/GraphQL/ResponseTest.php +++ b/tests/GraphQL/ResponseTest.php @@ -66,4 +66,43 @@ public function testThrowQueryException() $this->expectException(QueryException::class); new Response($httpResponse); } + + public function testThrowQueryExceptionWithAllErrorsAndStatusCode(): void + { + $errors = [ + ['message' => 'first syntax error'], + ['message' => 'second syntax error'], + ]; + $httpResponse = new HttpResponse(400, [], json_encode(['errors' => $errors])); + + try { + new Response($httpResponse); + $this->fail('Expected query exception.'); + } catch (QueryException $exception) { + $this->assertSame('first syntax error', $exception->getMessage()); + $this->assertSame($errors[0], $exception->getDetails()); + $this->assertSame($errors, $exception->getErrors()); + $this->assertSame(400, $exception->getStatusCode()); + } + } + + public function testThrowQueryExceptionForInvalidJsonResponse(): void + { + $httpResponse = new HttpResponse(200, [], '{invalid'); + + $this->expectException(QueryException::class); + $this->expectExceptionMessage('Invalid JSON response from GraphQL API.'); + + new Response($httpResponse); + } + + public function testThrowQueryExceptionWhenResponseHasNoData(): void + { + $httpResponse = new HttpResponse(200, [], json_encode(['status' => 'ok'])); + + $this->expectException(QueryException::class); + $this->expectExceptionMessage('GraphQL response does not contain data.'); + + new Response($httpResponse); + } } From 96aa116be612e2dd07899cc44818d1ba25b72666 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:49:28 -0400 Subject: [PATCH 13/40] fix(graphql): wrap transport failures --- src/GraphQL/Request.php | 12 +++++++++-- tests/GraphQL/RequestTest.php | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/src/GraphQL/Request.php b/src/GraphQL/Request.php index 4770c80..1e1297f 100644 --- a/src/GraphQL/Request.php +++ b/src/GraphQL/Request.php @@ -3,7 +3,9 @@ namespace ThothApi\GraphQL; use GuzzleHttp\Client; -use GuzzleHttp\Exception\ClientException; +use GuzzleHttp\Exception\RequestException; +use GuzzleHttp\Exception\TransferException; +use ThothApi\Exception\QueryException; class Request { @@ -45,8 +47,14 @@ public function execute( ): Response { try { $httpResponse = $this->httpClient->request($method, $endpoint, $options); - } catch (ClientException $exception) { + } catch (RequestException $exception) { $httpResponse = $exception->getResponse(); + + if ($httpResponse === null) { + throw new QueryException(['message' => $exception->getMessage()], $query, $variables); + } + } catch (TransferException $exception) { + throw new QueryException(['message' => $exception->getMessage()], $query, $variables); } return new Response($httpResponse, $query, $variables); diff --git a/tests/GraphQL/RequestTest.php b/tests/GraphQL/RequestTest.php index 9c7f655..96fe16d 100644 --- a/tests/GraphQL/RequestTest.php +++ b/tests/GraphQL/RequestTest.php @@ -3,6 +3,8 @@ namespace ThothApi\Tests\GraphQL; use GuzzleHttp\Exception\ClientException; +use GuzzleHttp\Exception\ConnectException; +use GuzzleHttp\Exception\ServerException; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; use GuzzleHttp\Psr7\Request as GuzzleRequest; @@ -101,4 +103,40 @@ public function testInvalidQueryResponseWith400(): void $this->expectException(QueryException::class); $this->request->runQuery(''); } + + public function testInvalidQueryResponseWith500(): void + { + $this->mockHandler->append(new ServerException( + '', + new GuzzleRequest('post', ''), + new Response(500, [], json_encode([ + 'errors' => [ + [ + 'message' => 'server error', + ], + ], + ])) + )); + + try { + $this->request->runQuery(''); + $this->fail('Expected query exception.'); + } catch (QueryException $exception) { + $this->assertSame('server error', $exception->getMessage()); + $this->assertSame(500, $exception->getStatusCode()); + } + } + + public function testConnectionFailureThrowsQueryException(): void + { + $this->mockHandler->append(new ConnectException( + 'Connection refused', + new GuzzleRequest('post', '') + )); + + $this->expectException(QueryException::class); + $this->expectExceptionMessage('Connection refused'); + + $this->request->runQuery(''); + } } From 6798347b4b23813c4e79a4dbd7e78224cb116c19 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:51:48 -0400 Subject: [PATCH 14/40] fix(graphql): validate input object variables --- src/GraphQL/OperationRequest.php | 53 +++++++++++++++++++----- tests/GraphQL/GenericClientTest.php | 10 ++--- tests/GraphQL/OperationRequestTest.php | 57 +++++++++++++++++++++++++- 3 files changed, 103 insertions(+), 17 deletions(-) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 8d980a4..6ad6840 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -131,18 +131,35 @@ private function normalizeVariableValue($value, ?TypeReference $type = null) } $normalized = []; + $inputFields = $this->getInputFieldDefinitions($type); foreach ($value as $field => $fieldValue) { $this->assertIdentifier((string) $field); + if ($inputFields !== null && !array_key_exists($field, $inputFields)) { + throw new \InvalidArgumentException( + "Unknown GraphQL input field '{$field}' for '{$type->baseName()}'." + ); + } + if ($fieldValue !== null) { $normalized[$field] = $this->normalizeVariableValue( $fieldValue, - $this->getInputFieldType($type, (string) $field) + $inputFields[$field] ?? $this->getInputFieldType($type, (string) $field) ); } } + if ($inputFields !== null) { + foreach ($inputFields as $fieldName => $fieldType) { + if ($this->isNonNullType($fieldType) && !array_key_exists($fieldName, $normalized)) { + throw new \InvalidArgumentException( + "Missing required GraphQL input field '{$fieldName}' for '{$type->baseName()}'." + ); + } + } + } + return $normalized; } @@ -267,19 +284,13 @@ private function getListItemType(?TypeReference $type): ?TypeReference private function getInputFieldType(?TypeReference $type, string $fieldName): ?TypeReference { - $inputClass = $this->getSchemaClassName('Inputs', $type ? $type->baseName() : null); + $inputFields = $this->getInputFieldDefinitions($type); - if (!class_exists($inputClass)) { + if ($inputFields === null) { return null; } - foreach ($inputClass::definition()->getFields() as $field) { - if ($field->getName() === $fieldName) { - return $field->getType(); - } - } - - return null; + return $inputFields[$fieldName] ?? null; } private function isEnumType(?TypeReference $type): bool @@ -299,4 +310,26 @@ private function getSchemaClassName(string $namespacePart, ?string $typeName): s { return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); } + + private function getInputFieldDefinitions(?TypeReference $type): ?array + { + $inputClass = $this->getSchemaClassName('Inputs', $type ? $type->baseName() : null); + + if (!class_exists($inputClass)) { + return null; + } + + $fields = []; + + foreach ($inputClass::definition()->getFields() as $field) { + $fields[$field->getName()] = $field->getType(); + } + + return $fields; + } + + private function isNonNullType(TypeReference $type): bool + { + return $type->getKind() === 'NON_NULL'; + } } diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index fcbe40c..e36c71b 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -71,7 +71,7 @@ public function testItExecutesGeneratedMutationByMethodName(): void $this->assertSame('work-1', $client->createWork([ 'workType' => OperationRequest::enum('MONOGRAPH'), 'workStatus' => OperationRequest::enum('ACTIVE'), - 'fullTitle' => 'Generated client', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', ])); } @@ -94,7 +94,7 @@ public function getAllData(): array return [ 'workType' => OperationRequest::enum('MONOGRAPH'), 'workStatus' => OperationRequest::enum('ACTIVE'), - 'fullTitle' => 'Generated client', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', ]; } }; @@ -118,7 +118,7 @@ public function testItExecutesGeneratedMutationWithGeneratedInputClass(): void $newWork = new NewWork([ 'workType' => WorkType::MONOGRAPH, 'workStatus' => WorkStatus::ACTIVE, - 'fullTitle' => 'Generated client', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', ]); $this->assertSame('work-1', $client->createWork($newWork)); @@ -143,7 +143,7 @@ public function testItHydratesGeneratedSchemaForExplicitObjectSelection(): void $newWork = new NewWork([ 'workType' => WorkType::MONOGRAPH, 'workStatus' => WorkStatus::ACTIVE, - 'fullTitle' => 'Generated client', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', ]); $work = $client->createWork($newWork, ['workId', 'fullTitle']); @@ -181,7 +181,7 @@ public function testItHydratesNestedGeneratedSchemas(): void $newWork = new NewWork([ 'workType' => WorkType::MONOGRAPH, 'workStatus' => WorkStatus::ACTIVE, - 'fullTitle' => 'Generated client', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', ]); $work = $client->createWork($newWork, [ 'workId', diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 01e3858..9b252b7 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -147,6 +147,57 @@ public function testItRejectsInvalidInputFields(): void $operation->toGraphQL(); } + public function testItRejectsUnknownInputFields(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createPublisher', + TypeReference::named('Publisher'), + [ + new ArgumentDefinition('data', TypeReference::named('NewPublisher')), + ] + ), + [ + 'data' => [ + 'publisherName' => 'ACME Press', + 'unknownField' => 'value', + ], + ], + ['publisherId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Unknown GraphQL input field 'unknownField' for 'NewPublisher'."); + + $operation->toGraphQL(); + } + + public function testItRejectsMissingRequiredInputFields(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createPublisher', + TypeReference::named('Publisher'), + [ + new ArgumentDefinition('data', TypeReference::named('NewPublisher')), + ] + ), + [ + 'data' => [ + 'publisherUrl' => 'https://example.test', + ], + ], + ['publisherId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Missing required GraphQL input field 'publisherName' for 'NewPublisher'."); + + $operation->toGraphQL(); + } + public function testItRejectsInvalidEnumValues(): void { $operation = new OperationRequest( @@ -248,7 +299,8 @@ public function testItKeepsStringValuesQuotedWhenSchemaTypeIsString(): void 'data' => [ 'workType' => WorkType::MONOGRAPH, 'workStatus' => WorkStatus::ACTIVE, - 'fullTitle' => 'MONOGRAPH', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', + 'reference' => 'MONOGRAPH', ], ], ['workId'] @@ -259,7 +311,8 @@ public function testItKeepsStringValuesQuotedWhenSchemaTypeIsString(): void 'data' => [ 'workType' => 'MONOGRAPH', 'workStatus' => 'ACTIVE', - 'fullTitle' => 'MONOGRAPH', + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', + 'reference' => 'MONOGRAPH', ], ], $operation->getVariables()); } From 1334769b8e0adb97a15e37b637348bcf8e75eb1f Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:53:23 -0400 Subject: [PATCH 15/40] fix(graphql): validate selection fields --- src/GraphQL/OperationRequest.php | 43 ++++++++++++++++++++++++-- tests/GraphQL/OperationRequestTest.php | 35 +++++++++++++++++++++ 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 6ad6840..d8779ed 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -54,7 +54,7 @@ public function toGraphQL(): string $variableDefinitions = $this->formatVariableDefinitions($this->arguments); $arguments = $this->formatVariableArguments($this->arguments); $fieldLine = $this->field->getName() . ($arguments === '' ? '' : '(' . $arguments . ')'); - $selection = $this->formatSelection($this->selection); + $selection = $this->formatSelection($this->selection, $this->field->getType()); if ($selection !== '') { $fieldLine .= " {\n" . $selection . "\n }"; @@ -170,18 +170,23 @@ private function normalizeVariableValue($value, ?TypeReference $type = null) return $value; } - private function formatSelection(array $selection): string + private function formatSelection(array $selection, ?TypeReference $type = null): string { $lines = []; + $objectFields = $this->getObjectFieldDefinitions($type); foreach ($selection as $key => $value) { if (is_array($value)) { $this->assertIdentifier((string) $key); - $lines[] = ' ' . $key . " {\n" . $this->indent($this->formatSelection($value), 8) . "\n }"; + $fieldType = $this->getSelectionFieldType($objectFields, (string) $key, $type); + $lines[] = ' ' . $key . " {\n" + . $this->indent($this->formatSelection($value, $fieldType), 8) + . "\n }"; continue; } $this->assertIdentifier((string) $value); + $this->getSelectionFieldType($objectFields, (string) $value, $type); $lines[] = ' ' . $value; } @@ -311,6 +316,38 @@ private function getSchemaClassName(string $namespacePart, ?string $typeName): s return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); } + private function getSelectionFieldType(?array $objectFields, string $fieldName, ?TypeReference $parentType): ?TypeReference + { + if ($objectFields === null) { + return null; + } + + if (!array_key_exists($fieldName, $objectFields)) { + throw new \InvalidArgumentException( + "Unknown GraphQL field '{$fieldName}' for '{$parentType->baseName()}'." + ); + } + + return $objectFields[$fieldName]; + } + + private function getObjectFieldDefinitions(?TypeReference $type): ?array + { + $schemaClass = $this->getSchemaClassName('Schemas', $type ? $type->baseName() : null); + + if (!class_exists($schemaClass)) { + return null; + } + + $fields = []; + + foreach ($schemaClass::definition()->getFields() as $field) { + $fields[$field->getName()] = $field->getType(); + } + + return $fields; + } + private function getInputFieldDefinitions(?TypeReference $type): ?array { $inputClass = $this->getSchemaClassName('Inputs', $type ? $type->baseName() : null); diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 9b252b7..7a52dc4 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -107,6 +107,41 @@ public function testItRejectsInvalidSelectionFields(): void $operation->toGraphQL(); } + public function testItRejectsUnknownSelectionFields(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition('books', TypeReference::named('Work')), + [], + ['workId', 'unknownField'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Unknown GraphQL field 'unknownField' for 'Work'."); + + $operation->toGraphQL(); + } + + public function testItRejectsUnknownNestedSelectionFields(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition('books', TypeReference::named('Work')), + [], + [ + 'workId', + 'imprint' => [ + 'unknownField', + ], + ] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Unknown GraphQL field 'unknownField' for 'Imprint'."); + + $operation->toGraphQL(); + } + public function testItRejectsInvalidOperationFields(): void { $operation = new OperationRequest( From 5d9a73f13fb691d9e95104fac1cabac69863a9d7 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:55:09 -0400 Subject: [PATCH 16/40] feat(graphql): generate phpdoc for schema accessors --- tests/GraphQL/GeneratorTest.php | 64 ++++++++ .../fixtures/minimal-introspection.json | 153 ++++++++++++++++++ tools/generate-graphql-client.php | 63 ++++++++ 3 files changed, 280 insertions(+) create mode 100644 tests/GraphQL/GeneratorTest.php create mode 100644 tests/GraphQL/fixtures/minimal-introspection.json diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php new file mode 100644 index 0000000..a81c70f --- /dev/null +++ b/tests/GraphQL/GeneratorTest.php @@ -0,0 +1,64 @@ +temporaryDirectory !== null) { + $this->removeDirectory($this->temporaryDirectory); + } + } + + public function testItGeneratesPhpDocForObjectAccessors(): void + { + $this->temporaryDirectory = sys_get_temp_dir() . '/thoth-graphql-generator-' . uniqid('', true); + $target = $this->temporaryDirectory . '/GraphQL'; + mkdir($target, 0777, true); + + $schema = __DIR__ . '/fixtures/minimal-introspection.json'; + $script = dirname(__DIR__, 2) . '/tools/generate-graphql-client.php'; + $command = PHP_BINARY . ' ' . escapeshellarg($script) . ' ' . escapeshellarg($schema) . ' ' + . escapeshellarg($target); + + exec($command, $output, $exitCode); + + $this->assertSame(0, $exitCode, implode("\n", $output)); + + $workClass = file_get_contents($target . '/Schemas/Work.php'); + + $this->assertStringContainsString('@return string', $workClass); + $this->assertStringContainsString('@return string|null', $workClass); + $this->assertStringContainsString('@return Imprint|null', $workClass); + $this->assertStringContainsString('@return array|null', $workClass); + $this->assertStringContainsString('@param string $value', $workClass); + } + + private function removeDirectory(string $directory): void + { + if (!is_dir($directory)) { + return; + } + + $iterator = new \RecursiveIteratorIterator( + new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS), + \RecursiveIteratorIterator::CHILD_FIRST + ); + + foreach ($iterator as $file) { + if ($file->isDir()) { + rmdir($file->getPathname()); + continue; + } + + unlink($file->getPathname()); + } + + rmdir($directory); + } +} diff --git a/tests/GraphQL/fixtures/minimal-introspection.json b/tests/GraphQL/fixtures/minimal-introspection.json new file mode 100644 index 0000000..44c6f88 --- /dev/null +++ b/tests/GraphQL/fixtures/minimal-introspection.json @@ -0,0 +1,153 @@ +{ + "data": { + "__schema": { + "queryType": { + "name": "QueryRoot" + }, + "mutationType": { + "name": "MutationRoot" + }, + "subscriptionType": null, + "types": [ + { + "kind": "OBJECT", + "name": "QueryRoot", + "description": null, + "fields": [ + { + "name": "books", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Work", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "MutationRoot", + "description": null, + "fields": [], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Work", + "description": null, + "fields": [ + { + "name": "workId", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "imprint", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "Imprint", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "tags", + "description": null, + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "Imprint", + "description": null, + "fields": [ + { + "name": "imprintId", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "SCALAR", + "name": "String", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + } + ], + "directives": [] + } + } +} diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 8bf052c..6abd8b5 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -223,13 +223,20 @@ function objectFieldMethods(array $field): string { $methodName = studly($field['name']); $fieldName = exportPhpValue($field['name']); + $phpDocType = phpDocType($field['type']); return <<get({$fieldName}); } + /** + * @param {$phpDocType} \$value + */ public function set{$methodName}(\$value): self { return \$this->set({$fieldName}, \$value); @@ -485,6 +492,62 @@ function sanitizeConstant(string $value): string return $constant; } +function phpDocType(array $type): string +{ + $nullable = ($type['kind'] ?? null) !== 'NON_NULL'; + $baseType = phpDocBaseType($type); + + return $nullable ? $baseType . '|null' : $baseType; +} + +function phpDocBaseType(array $type): string +{ + if (($type['kind'] ?? null) === 'NON_NULL') { + return phpDocBaseType($type['ofType'] ?? []); + } + + if (($type['kind'] ?? null) === 'LIST') { + return 'array'; + } + + if (($type['kind'] ?? null) === 'ENUM') { + return 'string'; + } + + if (($type['kind'] ?? null) === 'OBJECT' && isset($type['name'])) { + return safeClassName(studly($type['name'])); + } + + if (($type['kind'] ?? null) === 'SCALAR') { + return phpDocScalarType((string) ($type['name'] ?? '')); + } + + return 'mixed'; +} + +function phpDocScalarType(string $typeName): string +{ + switch ($typeName) { + case 'Boolean': + return 'bool'; + case 'Float': + return 'float'; + case 'Int': + return 'int'; + case 'String': + case 'Date': + case 'Doi': + case 'Isbn': + case 'Orcid': + case 'Ror': + case 'Timestamp': + case 'Uuid': + return 'string'; + } + + return 'mixed'; +} + function safeClassName(string $className): string { if (in_array(strtolower($className), reservedWords(), true)) { From 3999bf28e1d8627b3cc48146c0e04881eff5030e Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 11:58:11 -0400 Subject: [PATCH 17/40] fix(graphql): validate enum variable values --- src/GraphQL/OperationRequest.php | 17 ++++++++++++++++ tests/GraphQL/OperationRequestTest.php | 28 ++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index d8779ed..8d47f87 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -118,6 +118,7 @@ private function normalizeVariableValue($value, ?TypeReference $type = null) { if ($value instanceof EnumValue) { $this->assertIdentifier((string) $value); + $this->assertEnumValue((string) $value, $type); return (string) $value; } @@ -165,6 +166,7 @@ private function normalizeVariableValue($value, ?TypeReference $type = null) if ($this->isEnumType($type)) { $this->assertIdentifier((string) $value); + $this->assertEnumValue((string) $value, $type); } return $value; @@ -311,6 +313,21 @@ private function isEnumType(?TypeReference $type): bool return class_exists($this->getSchemaClassName('Enums', $type->baseName())); } + private function assertEnumValue(string $value, ?TypeReference $type): void + { + if (!$this->isEnumType($type)) { + return; + } + + $enumClass = $this->getSchemaClassName('Enums', $type->baseName()); + + if (!in_array($value, $enumClass::definition()->getValues(), true)) { + throw new \InvalidArgumentException( + "Invalid GraphQL enum value '{$value}' for '{$type->baseName()}'." + ); + } + } + private function getSchemaClassName(string $namespacePart, ?string $typeName): string { return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 7a52dc4..0853345 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -258,6 +258,34 @@ public function testItRejectsInvalidEnumValues(): void $operation->toGraphQL(); } + public function testItRejectsUnknownEnumValues(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition( + 'workTypes', + TypeReference::listOf(TypeReference::nonNull(TypeReference::named('WorkType'))) + ), + ] + ), + [ + 'workTypes' => [ + \ThothApi\GraphQL\Enums\WorkType::value('NOT_A_WORK_TYPE'), + ], + ], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Invalid GraphQL enum value 'NOT_A_WORK_TYPE' for 'WorkType'."); + + $operation->toGraphQL(); + } + public function testItFormatsGeneratedEnumConstantsFromInputSchema(): void { $operation = new OperationRequest( From 2e8fb5753946622d9bd973f364a23e1d472e7b59 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:00:14 -0400 Subject: [PATCH 18/40] fix(graphql): validate variable value types --- src/GraphQL/OperationRequest.php | 61 ++++++++++++++++++++++++++ tests/GraphQL/OperationRequestTest.php | 45 +++++++++++++++++++ 2 files changed, 106 insertions(+) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 8d47f87..a54df1c 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -116,12 +116,22 @@ private function normalizeVariables(array $variables, array $schemaArguments): a private function normalizeVariableValue($value, ?TypeReference $type = null) { + if ($type !== null && $type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->normalizeVariableValue($value, $type->getOfType()); + } + if ($value instanceof EnumValue) { $this->assertIdentifier((string) $value); $this->assertEnumValue((string) $value, $type); return (string) $value; } + if ($type !== null && $type->getKind() === 'LIST' && !$this->isListValue($value)) { + throw new \InvalidArgumentException( + "Invalid GraphQL value for '{$type->toGraphQL()}'; expected list." + ); + } + if (is_array($value)) { if ($this->isList($value)) { $listType = $this->getListItemType($type); @@ -169,6 +179,8 @@ private function normalizeVariableValue($value, ?TypeReference $type = null) $this->assertEnumValue((string) $value, $type); } + $this->assertScalarValue($value, $type); + return $value; } @@ -313,6 +325,50 @@ private function isEnumType(?TypeReference $type): bool return class_exists($this->getSchemaClassName('Enums', $type->baseName())); } + private function assertScalarValue($value, ?TypeReference $type): void + { + if ($type === null || $type->getKind() !== 'NAMED') { + return; + } + + switch ($type->baseName()) { + case 'Boolean': + if (!is_bool($value)) { + $this->throwInvalidScalarValue($type, 'bool'); + } + return; + case 'Float': + if (!is_float($value) && !is_int($value)) { + $this->throwInvalidScalarValue($type, 'float'); + } + return; + case 'Int': + if (!is_int($value)) { + $this->throwInvalidScalarValue($type, 'int'); + } + return; + case 'String': + case 'Date': + case 'Doi': + case 'Isbn': + case 'Orcid': + case 'Ror': + case 'Timestamp': + case 'Uuid': + if (!is_string($value)) { + $this->throwInvalidScalarValue($type, 'string'); + } + return; + } + } + + private function throwInvalidScalarValue(TypeReference $type, string $expectedType): void + { + throw new \InvalidArgumentException( + "Invalid GraphQL value for '{$type->toGraphQL()}'; expected {$expectedType}." + ); + } + private function assertEnumValue(string $value, ?TypeReference $type): void { if (!$this->isEnumType($type)) { @@ -386,4 +442,9 @@ private function isNonNullType(TypeReference $type): bool { return $type->getKind() === 'NON_NULL'; } + + private function isListValue($value): bool + { + return is_array($value) && $this->isList($value); + } } diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 0853345..35aa0c2 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -286,6 +286,51 @@ public function testItRejectsUnknownEnumValues(): void $operation->toGraphQL(); } + public function testItRejectsInvalidScalarVariableTypes(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition('limit', TypeReference::named('Int')), + ] + ), + ['limit' => '1'], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Invalid GraphQL value for 'Int'; expected int."); + + $operation->toGraphQL(); + } + + public function testItRejectsInvalidListVariableTypes(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition( + 'workTypes', + TypeReference::listOf(TypeReference::nonNull(TypeReference::named('WorkType'))) + ), + ] + ), + ['workTypes' => WorkType::MONOGRAPH], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Invalid GraphQL value for '[WorkType!]'; expected list."); + + $operation->toGraphQL(); + } + public function testItFormatsGeneratedEnumConstantsFromInputSchema(): void { $operation = new OperationRequest( From 7bef1092f762d46f7eb0aeca24a96fc7dea57827 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:00:52 -0400 Subject: [PATCH 19/40] feat(graphql): generate list item phpdoc types --- tests/GraphQL/GeneratorTest.php | 2 +- tools/generate-graphql-client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index a81c70f..9f497d9 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -35,7 +35,7 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $this->assertStringContainsString('@return string', $workClass); $this->assertStringContainsString('@return string|null', $workClass); $this->assertStringContainsString('@return Imprint|null', $workClass); - $this->assertStringContainsString('@return array|null', $workClass); + $this->assertStringContainsString('@return string[]|null', $workClass); $this->assertStringContainsString('@param string $value', $workClass); } diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 6abd8b5..8801455 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -507,7 +507,7 @@ function phpDocBaseType(array $type): string } if (($type['kind'] ?? null) === 'LIST') { - return 'array'; + return phpDocBaseType($type['ofType'] ?? []) . '[]'; } if (($type['kind'] ?? null) === 'ENUM') { From fc748679366b8694f69c67be4fbf29abcd8c6923 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:01:41 -0400 Subject: [PATCH 20/40] fix(graphql): guard generated client target --- tests/GraphQL/GeneratorTest.php | 18 ++++++++++++++++++ tools/generate-graphql-client.php | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index 9f497d9..ff01cf2 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -39,6 +39,24 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $this->assertStringContainsString('@param string $value', $workClass); } + public function testItRejectsUnsafeTargets(): void + { + $this->temporaryDirectory = sys_get_temp_dir() . '/thoth-graphql-generator-' . uniqid('', true); + $target = $this->temporaryDirectory . '/not-graphql'; + mkdir($target, 0777, true); + + $schema = __DIR__ . '/fixtures/minimal-introspection.json'; + $script = dirname(__DIR__, 2) . '/tools/generate-graphql-client.php'; + $command = PHP_BINARY . ' ' . escapeshellarg($script) . ' ' . escapeshellarg($schema) . ' ' + . escapeshellarg($target) . ' 2>&1'; + + exec($command, $output, $exitCode); + + $this->assertSame(1, $exitCode); + $this->assertSame('Refusing to generate GraphQL client outside a GraphQL target directory.', $output[0]); + $this->assertDirectoryDoesNotExist($target . '/Queries'); + } + private function removeDirectory(string $directory): void { if (!is_dir($directory)) { diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 8801455..1ab0a4d 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -13,11 +13,20 @@ function main(array $argv): void $schema = loadIntrospectionSchema($argv[1] ?? null); $types = indexTypesByName($schema['types'] ?? []); + assertSafeGeneratedTarget($target); prepareGeneratedDirectories($target); generateRootOperations($schema, $types, $target); generateSchemaTypes($types, $target); } +function assertSafeGeneratedTarget(string $target): void +{ + if (basename($target) !== 'GraphQL') { + fwrite(STDERR, "Refusing to generate GraphQL client outside a GraphQL target directory.\n"); + exit(1); + } +} + function loadIntrospectionSchema(?string $schemaSource): array { $response = $schemaSource ? loadSchemaFromFile($schemaSource) : fetchSchema(THOTH_GRAPHQL_ENDPOINT); From 2ec1b3ff6ba147a69f02fdb1ca50a7d5ce5b9a60 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:02:31 -0400 Subject: [PATCH 21/40] chore(graphql): regenerate schema accessors --- src/GraphQL/Schemas/Affiliation.php | 54 ++ src/GraphQL/Schemas/Award.php | 84 +++ src/GraphQL/Schemas/Biography.php | 42 ++ src/GraphQL/Schemas/BookReview.php | 120 ++++ src/GraphQL/Schemas/Contact.php | 42 ++ src/GraphQL/Schemas/Contribution.php | 96 ++++ src/GraphQL/Schemas/Contributor.php | 54 ++ src/GraphQL/Schemas/Endorsement.php | 78 +++ src/GraphQL/Schemas/File.php | 78 +++ src/GraphQL/Schemas/FileUploadResponse.php | 24 + src/GraphQL/Schemas/Funding.php | 66 +++ src/GraphQL/Schemas/GraphQLAbstract.php | 42 ++ src/GraphQL/Schemas/Imprint.php | 90 +++ src/GraphQL/Schemas/Institution.php | 54 ++ src/GraphQL/Schemas/Issue.php | 54 ++ src/GraphQL/Schemas/Language.php | 42 ++ src/GraphQL/Schemas/Location.php | 66 +++ src/GraphQL/Schemas/Me.php | 36 ++ src/GraphQL/Schemas/MutationRoot.php | 558 +++++++++++++++++++ src/GraphQL/Schemas/Price.php | 42 ++ src/GraphQL/Schemas/Publication.php | 108 ++++ src/GraphQL/Schemas/Publisher.php | 66 +++ src/GraphQL/Schemas/PublisherContext.php | 12 + src/GraphQL/Schemas/PublisherPermissions.php | 18 + src/GraphQL/Schemas/QueryRoot.php | 486 ++++++++++++++++ src/GraphQL/Schemas/Reference.php | 156 ++++++ src/GraphQL/Schemas/Series.php | 78 +++ src/GraphQL/Schemas/Subject.php | 48 ++ src/GraphQL/Schemas/Title.php | 48 ++ src/GraphQL/Schemas/UploadRequestHeader.php | 12 + src/GraphQL/Schemas/Work.php | 330 +++++++++++ src/GraphQL/Schemas/WorkFeaturedVideo.php | 60 ++ src/GraphQL/Schemas/WorkRelation.php | 48 ++ src/GraphQL/Schemas/WorkResource.php | 90 +++ 34 files changed, 3282 insertions(+) diff --git a/src/GraphQL/Schemas/Affiliation.php b/src/GraphQL/Schemas/Affiliation.php index 9b90903..62ccab7 100644 --- a/src/GraphQL/Schemas/Affiliation.php +++ b/src/GraphQL/Schemas/Affiliation.php @@ -7,91 +7,145 @@ final class Affiliation extends ObjectData { + /** + * @return string + */ public function getAffiliationId() { return $this->get('affiliationId'); } + /** + * @param string $value + */ public function setAffiliationId($value): self { return $this->set('affiliationId', $value); } + /** + * @return string + */ public function getContributionId() { return $this->get('contributionId'); } + /** + * @param string $value + */ public function setContributionId($value): self { return $this->set('contributionId', $value); } + /** + * @return string + */ public function getInstitutionId() { return $this->get('institutionId'); } + /** + * @param string $value + */ public function setInstitutionId($value): self { return $this->set('institutionId', $value); } + /** + * @return int + */ public function getAffiliationOrdinal() { return $this->get('affiliationOrdinal'); } + /** + * @param int $value + */ public function setAffiliationOrdinal($value): self { return $this->set('affiliationOrdinal', $value); } + /** + * @return string|null + */ public function getPosition() { return $this->get('position'); } + /** + * @param string|null $value + */ public function setPosition($value): self { return $this->set('position', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Institution + */ public function getInstitution() { return $this->get('institution'); } + /** + * @param Institution $value + */ public function setInstitution($value): self { return $this->set('institution', $value); } + /** + * @return Contribution + */ public function getContribution() { return $this->get('contribution'); } + /** + * @param Contribution $value + */ public function setContribution($value): self { return $this->set('contribution', $value); diff --git a/src/GraphQL/Schemas/Award.php b/src/GraphQL/Schemas/Award.php index bf99998..402d633 100644 --- a/src/GraphQL/Schemas/Award.php +++ b/src/GraphQL/Schemas/Award.php @@ -7,141 +7,225 @@ final class Award extends ObjectData { + /** + * @return string + */ public function getAwardId() { return $this->get('awardId'); } + /** + * @param string $value + */ public function setAwardId($value): self { return $this->set('awardId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getTitle() { return $this->get('title'); } + /** + * @param string $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return string|null + */ public function getCategory() { return $this->get('category'); } + /** + * @param string|null $value + */ public function setCategory($value): self { return $this->set('category', $value); } + /** + * @return string|null + */ public function getYear() { return $this->get('year'); } + /** + * @param string|null $value + */ public function setYear($value): self { return $this->set('year', $value); } + /** + * @return string|null + */ public function getJury() { return $this->get('jury'); } + /** + * @param string|null $value + */ public function setJury($value): self { return $this->set('jury', $value); } + /** + * @return string|null + */ public function getCountry() { return $this->get('country'); } + /** + * @param string|null $value + */ public function setCountry($value): self { return $this->set('country', $value); } + /** + * @return string|null + */ public function getRole() { return $this->get('role'); } + /** + * @param string|null $value + */ public function setRole($value): self { return $this->set('role', $value); } + /** + * @return string|null + */ public function getPrizeStatement() { return $this->get('prizeStatement'); } + /** + * @param string|null $value + */ public function setPrizeStatement($value): self { return $this->set('prizeStatement', $value); } + /** + * @return int + */ public function getAwardOrdinal() { return $this->get('awardOrdinal'); } + /** + * @param int $value + */ public function setAwardOrdinal($value): self { return $this->set('awardOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Biography.php b/src/GraphQL/Schemas/Biography.php index 3bac7b6..8de0083 100644 --- a/src/GraphQL/Schemas/Biography.php +++ b/src/GraphQL/Schemas/Biography.php @@ -7,71 +7,113 @@ final class Biography extends ObjectData { + /** + * @return string + */ public function getBiographyId() { return $this->get('biographyId'); } + /** + * @param string $value + */ public function setBiographyId($value): self { return $this->set('biographyId', $value); } + /** + * @return string + */ public function getContributionId() { return $this->get('contributionId'); } + /** + * @param string $value + */ public function setContributionId($value): self { return $this->set('contributionId', $value); } + /** + * @return string + */ public function getLocaleCode() { return $this->get('localeCode'); } + /** + * @param string $value + */ public function setLocaleCode($value): self { return $this->set('localeCode', $value); } + /** + * @return string + */ public function getContent() { return $this->get('content'); } + /** + * @param string $value + */ public function setContent($value): self { return $this->set('content', $value); } + /** + * @return bool + */ public function getCanonical() { return $this->get('canonical'); } + /** + * @param bool $value + */ public function setCanonical($value): self { return $this->set('canonical', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Contribution + */ public function getContribution() { return $this->get('contribution'); } + /** + * @param Contribution $value + */ public function setContribution($value): self { return $this->set('contribution', $value); diff --git a/src/GraphQL/Schemas/BookReview.php b/src/GraphQL/Schemas/BookReview.php index fca6793..68c5c18 100644 --- a/src/GraphQL/Schemas/BookReview.php +++ b/src/GraphQL/Schemas/BookReview.php @@ -7,201 +7,321 @@ final class BookReview extends ObjectData { + /** + * @return string + */ public function getBookReviewId() { return $this->get('bookReviewId'); } + /** + * @param string $value + */ public function setBookReviewId($value): self { return $this->set('bookReviewId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string|null + */ public function getTitle() { return $this->get('title'); } + /** + * @param string|null $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getAuthorName() { return $this->get('authorName'); } + /** + * @param string|null $value + */ public function setAuthorName($value): self { return $this->set('authorName', $value); } + /** + * @return string|null + */ public function getReviewerOrcid() { return $this->get('reviewerOrcid'); } + /** + * @param string|null $value + */ public function setReviewerOrcid($value): self { return $this->set('reviewerOrcid', $value); } + /** + * @return string|null + */ public function getReviewerInstitutionId() { return $this->get('reviewerInstitutionId'); } + /** + * @param string|null $value + */ public function setReviewerInstitutionId($value): self { return $this->set('reviewerInstitutionId', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return string|null + */ public function getDoi() { return $this->get('doi'); } + /** + * @param string|null $value + */ public function setDoi($value): self { return $this->set('doi', $value); } + /** + * @return string|null + */ public function getReviewDate() { return $this->get('reviewDate'); } + /** + * @param string|null $value + */ public function setReviewDate($value): self { return $this->set('reviewDate', $value); } + /** + * @return string|null + */ public function getJournalName() { return $this->get('journalName'); } + /** + * @param string|null $value + */ public function setJournalName($value): self { return $this->set('journalName', $value); } + /** + * @return string|null + */ public function getJournalVolume() { return $this->get('journalVolume'); } + /** + * @param string|null $value + */ public function setJournalVolume($value): self { return $this->set('journalVolume', $value); } + /** + * @return string|null + */ public function getJournalNumber() { return $this->get('journalNumber'); } + /** + * @param string|null $value + */ public function setJournalNumber($value): self { return $this->set('journalNumber', $value); } + /** + * @return string|null + */ public function getJournalIssn() { return $this->get('journalIssn'); } + /** + * @param string|null $value + */ public function setJournalIssn($value): self { return $this->set('journalIssn', $value); } + /** + * @return string|null + */ public function getPageRange() { return $this->get('pageRange'); } + /** + * @param string|null $value + */ public function setPageRange($value): self { return $this->set('pageRange', $value); } + /** + * @return string|null + */ public function getText() { return $this->get('text'); } + /** + * @param string|null $value + */ public function setText($value): self { return $this->set('text', $value); } + /** + * @return int + */ public function getReviewOrdinal() { return $this->get('reviewOrdinal'); } + /** + * @param int $value + */ public function setReviewOrdinal($value): self { return $this->set('reviewOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Institution|null + */ public function getReviewerInstitution() { return $this->get('reviewerInstitution'); } + /** + * @param Institution|null $value + */ public function setReviewerInstitution($value): self { return $this->set('reviewerInstitution', $value); diff --git a/src/GraphQL/Schemas/Contact.php b/src/GraphQL/Schemas/Contact.php index 7fdfa45..3c1d0e7 100644 --- a/src/GraphQL/Schemas/Contact.php +++ b/src/GraphQL/Schemas/Contact.php @@ -7,71 +7,113 @@ final class Contact extends ObjectData { + /** + * @return string + */ public function getContactId() { return $this->get('contactId'); } + /** + * @param string $value + */ public function setContactId($value): self { return $this->set('contactId', $value); } + /** + * @return string + */ public function getPublisherId() { return $this->get('publisherId'); } + /** + * @param string $value + */ public function setPublisherId($value): self { return $this->set('publisherId', $value); } + /** + * @return string + */ public function getContactType() { return $this->get('contactType'); } + /** + * @param string $value + */ public function setContactType($value): self { return $this->set('contactType', $value); } + /** + * @return string + */ public function getEmail() { return $this->get('email'); } + /** + * @param string $value + */ public function setEmail($value): self { return $this->set('email', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Publisher + */ public function getPublisher() { return $this->get('publisher'); } + /** + * @param Publisher $value + */ public function setPublisher($value): self { return $this->set('publisher', $value); diff --git a/src/GraphQL/Schemas/Contribution.php b/src/GraphQL/Schemas/Contribution.php index 164f878..cdfade9 100644 --- a/src/GraphQL/Schemas/Contribution.php +++ b/src/GraphQL/Schemas/Contribution.php @@ -7,161 +7,257 @@ final class Contribution extends ObjectData { + /** + * @return string + */ public function getContributionId() { return $this->get('contributionId'); } + /** + * @param string $value + */ public function setContributionId($value): self { return $this->set('contributionId', $value); } + /** + * @return string + */ public function getContributorId() { return $this->get('contributorId'); } + /** + * @param string $value + */ public function setContributorId($value): self { return $this->set('contributorId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getContributionType() { return $this->get('contributionType'); } + /** + * @param string $value + */ public function setContributionType($value): self { return $this->set('contributionType', $value); } + /** + * @return bool + */ public function getMainContribution() { return $this->get('mainContribution'); } + /** + * @param bool $value + */ public function setMainContribution($value): self { return $this->set('mainContribution', $value); } + /** + * @return Biography[] + */ public function getBiographies() { return $this->get('biographies'); } + /** + * @param Biography[] $value + */ public function setBiographies($value): self { return $this->set('biographies', $value); } + /** + * @return string|null + */ public function getBiography() { return $this->get('biography'); } + /** + * @param string|null $value + */ public function setBiography($value): self { return $this->set('biography', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return string|null + */ public function getFirstName() { return $this->get('firstName'); } + /** + * @param string|null $value + */ public function setFirstName($value): self { return $this->set('firstName', $value); } + /** + * @return string + */ public function getLastName() { return $this->get('lastName'); } + /** + * @param string $value + */ public function setLastName($value): self { return $this->set('lastName', $value); } + /** + * @return string + */ public function getFullName() { return $this->get('fullName'); } + /** + * @param string $value + */ public function setFullName($value): self { return $this->set('fullName', $value); } + /** + * @return int + */ public function getContributionOrdinal() { return $this->get('contributionOrdinal'); } + /** + * @param int $value + */ public function setContributionOrdinal($value): self { return $this->set('contributionOrdinal', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Contributor + */ public function getContributor() { return $this->get('contributor'); } + /** + * @param Contributor $value + */ public function setContributor($value): self { return $this->set('contributor', $value); } + /** + * @return Affiliation[] + */ public function getAffiliations() { return $this->get('affiliations'); } + /** + * @param Affiliation[] $value + */ public function setAffiliations($value): self { return $this->set('affiliations', $value); diff --git a/src/GraphQL/Schemas/Contributor.php b/src/GraphQL/Schemas/Contributor.php index 6d6e0e5..4becbf6 100644 --- a/src/GraphQL/Schemas/Contributor.php +++ b/src/GraphQL/Schemas/Contributor.php @@ -7,91 +7,145 @@ final class Contributor extends ObjectData { + /** + * @return string + */ public function getContributorId() { return $this->get('contributorId'); } + /** + * @param string $value + */ public function setContributorId($value): self { return $this->set('contributorId', $value); } + /** + * @return string|null + */ public function getFirstName() { return $this->get('firstName'); } + /** + * @param string|null $value + */ public function setFirstName($value): self { return $this->set('firstName', $value); } + /** + * @return string + */ public function getLastName() { return $this->get('lastName'); } + /** + * @param string $value + */ public function setLastName($value): self { return $this->set('lastName', $value); } + /** + * @return string + */ public function getFullName() { return $this->get('fullName'); } + /** + * @param string $value + */ public function setFullName($value): self { return $this->set('fullName', $value); } + /** + * @return string|null + */ public function getOrcid() { return $this->get('orcid'); } + /** + * @param string|null $value + */ public function setOrcid($value): self { return $this->set('orcid', $value); } + /** + * @return string|null + */ public function getWebsite() { return $this->get('website'); } + /** + * @param string|null $value + */ public function setWebsite($value): self { return $this->set('website', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Contribution[] + */ public function getContributions() { return $this->get('contributions'); } + /** + * @param Contribution[] $value + */ public function setContributions($value): self { return $this->set('contributions', $value); diff --git a/src/GraphQL/Schemas/Endorsement.php b/src/GraphQL/Schemas/Endorsement.php index 43ded45..29ef237 100644 --- a/src/GraphQL/Schemas/Endorsement.php +++ b/src/GraphQL/Schemas/Endorsement.php @@ -7,131 +7,209 @@ final class Endorsement extends ObjectData { + /** + * @return string + */ public function getEndorsementId() { return $this->get('endorsementId'); } + /** + * @param string $value + */ public function setEndorsementId($value): self { return $this->set('endorsementId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getAuthorName() { return $this->get('authorName'); } + /** + * @param string $value + */ public function setAuthorName($value): self { return $this->set('authorName', $value); } + /** + * @return string|null + */ public function getAuthorRole() { return $this->get('authorRole'); } + /** + * @param string|null $value + */ public function setAuthorRole($value): self { return $this->set('authorRole', $value); } + /** + * @return string|null + */ public function getAuthorOrcid() { return $this->get('authorOrcid'); } + /** + * @param string|null $value + */ public function setAuthorOrcid($value): self { return $this->set('authorOrcid', $value); } + /** + * @return string|null + */ public function getAuthorInstitutionId() { return $this->get('authorInstitutionId'); } + /** + * @param string|null $value + */ public function setAuthorInstitutionId($value): self { return $this->set('authorInstitutionId', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return string|null + */ public function getText() { return $this->get('text'); } + /** + * @param string|null $value + */ public function setText($value): self { return $this->set('text', $value); } + /** + * @return int + */ public function getEndorsementOrdinal() { return $this->get('endorsementOrdinal'); } + /** + * @param int $value + */ public function setEndorsementOrdinal($value): self { return $this->set('endorsementOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Institution|null + */ public function getAuthorInstitution() { return $this->get('authorInstitution'); } + /** + * @param Institution|null $value + */ public function setAuthorInstitution($value): self { return $this->set('authorInstitution', $value); diff --git a/src/GraphQL/Schemas/File.php b/src/GraphQL/Schemas/File.php index 3db4c41..31776f2 100644 --- a/src/GraphQL/Schemas/File.php +++ b/src/GraphQL/Schemas/File.php @@ -7,131 +7,209 @@ final class File extends ObjectData { + /** + * @return string + */ public function getFileId() { return $this->get('fileId'); } + /** + * @param string $value + */ public function setFileId($value): self { return $this->set('fileId', $value); } + /** + * @return string + */ public function getFileType() { return $this->get('fileType'); } + /** + * @param string $value + */ public function setFileType($value): self { return $this->set('fileType', $value); } + /** + * @return string|null + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string|null $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string|null + */ public function getPublicationId() { return $this->get('publicationId'); } + /** + * @param string|null $value + */ public function setPublicationId($value): self { return $this->set('publicationId', $value); } + /** + * @return string|null + */ public function getAdditionalResourceId() { return $this->get('additionalResourceId'); } + /** + * @param string|null $value + */ public function setAdditionalResourceId($value): self { return $this->set('additionalResourceId', $value); } + /** + * @return string|null + */ public function getWorkFeaturedVideoId() { return $this->get('workFeaturedVideoId'); } + /** + * @param string|null $value + */ public function setWorkFeaturedVideoId($value): self { return $this->set('workFeaturedVideoId', $value); } + /** + * @return string + */ public function getObjectKey() { return $this->get('objectKey'); } + /** + * @param string $value + */ public function setObjectKey($value): self { return $this->set('objectKey', $value); } + /** + * @return string + */ public function getCdnUrl() { return $this->get('cdnUrl'); } + /** + * @param string $value + */ public function setCdnUrl($value): self { return $this->set('cdnUrl', $value); } + /** + * @return string + */ public function getMimeType() { return $this->get('mimeType'); } + /** + * @param string $value + */ public function setMimeType($value): self { return $this->set('mimeType', $value); } + /** + * @return int + */ public function getBytes() { return $this->get('bytes'); } + /** + * @param int $value + */ public function setBytes($value): self { return $this->set('bytes', $value); } + /** + * @return string + */ public function getSha256() { return $this->get('sha256'); } + /** + * @param string $value + */ public function setSha256($value): self { return $this->set('sha256', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); diff --git a/src/GraphQL/Schemas/FileUploadResponse.php b/src/GraphQL/Schemas/FileUploadResponse.php index 9ed6979..030af57 100644 --- a/src/GraphQL/Schemas/FileUploadResponse.php +++ b/src/GraphQL/Schemas/FileUploadResponse.php @@ -7,41 +7,65 @@ final class FileUploadResponse extends ObjectData { + /** + * @return string + */ public function getFileUploadId() { return $this->get('fileUploadId'); } + /** + * @param string $value + */ public function setFileUploadId($value): self { return $this->set('fileUploadId', $value); } + /** + * @return string + */ public function getUploadUrl() { return $this->get('uploadUrl'); } + /** + * @param string $value + */ public function setUploadUrl($value): self { return $this->set('uploadUrl', $value); } + /** + * @return UploadRequestHeader[] + */ public function getUploadHeaders() { return $this->get('uploadHeaders'); } + /** + * @param UploadRequestHeader[] $value + */ public function setUploadHeaders($value): self { return $this->set('uploadHeaders', $value); } + /** + * @return string + */ public function getExpiresAt() { return $this->get('expiresAt'); } + /** + * @param string $value + */ public function setExpiresAt($value): self { return $this->set('expiresAt', $value); diff --git a/src/GraphQL/Schemas/Funding.php b/src/GraphQL/Schemas/Funding.php index 75feb1c..656d638 100644 --- a/src/GraphQL/Schemas/Funding.php +++ b/src/GraphQL/Schemas/Funding.php @@ -7,111 +7,177 @@ final class Funding extends ObjectData { + /** + * @return string + */ public function getFundingId() { return $this->get('fundingId'); } + /** + * @param string $value + */ public function setFundingId($value): self { return $this->set('fundingId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getInstitutionId() { return $this->get('institutionId'); } + /** + * @param string $value + */ public function setInstitutionId($value): self { return $this->set('institutionId', $value); } + /** + * @return string|null + */ public function getProgram() { return $this->get('program'); } + /** + * @param string|null $value + */ public function setProgram($value): self { return $this->set('program', $value); } + /** + * @return string|null + */ public function getProjectName() { return $this->get('projectName'); } + /** + * @param string|null $value + */ public function setProjectName($value): self { return $this->set('projectName', $value); } + /** + * @return string|null + */ public function getProjectShortname() { return $this->get('projectShortname'); } + /** + * @param string|null $value + */ public function setProjectShortname($value): self { return $this->set('projectShortname', $value); } + /** + * @return string|null + */ public function getGrantNumber() { return $this->get('grantNumber'); } + /** + * @param string|null $value + */ public function setGrantNumber($value): self { return $this->set('grantNumber', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Institution + */ public function getInstitution() { return $this->get('institution'); } + /** + * @param Institution $value + */ public function setInstitution($value): self { return $this->set('institution', $value); diff --git a/src/GraphQL/Schemas/GraphQLAbstract.php b/src/GraphQL/Schemas/GraphQLAbstract.php index 9a3d9ca..f221721 100644 --- a/src/GraphQL/Schemas/GraphQLAbstract.php +++ b/src/GraphQL/Schemas/GraphQLAbstract.php @@ -7,71 +7,113 @@ final class GraphQLAbstract extends ObjectData { + /** + * @return string + */ public function getAbstractId() { return $this->get('abstractId'); } + /** + * @param string $value + */ public function setAbstractId($value): self { return $this->set('abstractId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getLocaleCode() { return $this->get('localeCode'); } + /** + * @param string $value + */ public function setLocaleCode($value): self { return $this->set('localeCode', $value); } + /** + * @return string + */ public function getContent() { return $this->get('content'); } + /** + * @param string $value + */ public function setContent($value): self { return $this->set('content', $value); } + /** + * @return bool + */ public function getCanonical() { return $this->get('canonical'); } + /** + * @param bool $value + */ public function setCanonical($value): self { return $this->set('canonical', $value); } + /** + * @return string + */ public function getAbstractType() { return $this->get('abstractType'); } + /** + * @param string $value + */ public function setAbstractType($value): self { return $this->set('abstractType', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Imprint.php b/src/GraphQL/Schemas/Imprint.php index 7e0543c..9d924ac 100644 --- a/src/GraphQL/Schemas/Imprint.php +++ b/src/GraphQL/Schemas/Imprint.php @@ -7,151 +7,241 @@ final class Imprint extends ObjectData { + /** + * @return string + */ public function getImprintId() { return $this->get('imprintId'); } + /** + * @param string $value + */ public function setImprintId($value): self { return $this->set('imprintId', $value); } + /** + * @return string + */ public function getPublisherId() { return $this->get('publisherId'); } + /** + * @param string $value + */ public function setPublisherId($value): self { return $this->set('publisherId', $value); } + /** + * @return string + */ public function getImprintName() { return $this->get('imprintName'); } + /** + * @param string $value + */ public function setImprintName($value): self { return $this->set('imprintName', $value); } + /** + * @return string|null + */ public function getImprintUrl() { return $this->get('imprintUrl'); } + /** + * @param string|null $value + */ public function setImprintUrl($value): self { return $this->set('imprintUrl', $value); } + /** + * @return string|null + */ public function getCrossmarkDoi() { return $this->get('crossmarkDoi'); } + /** + * @param string|null $value + */ public function setCrossmarkDoi($value): self { return $this->set('crossmarkDoi', $value); } + /** + * @return string|null + */ public function getS3Bucket() { return $this->get('s3Bucket'); } + /** + * @param string|null $value + */ public function setS3Bucket($value): self { return $this->set('s3Bucket', $value); } + /** + * @return string|null + */ public function getCdnDomain() { return $this->get('cdnDomain'); } + /** + * @param string|null $value + */ public function setCdnDomain($value): self { return $this->set('cdnDomain', $value); } + /** + * @return string|null + */ public function getCloudfrontDistId() { return $this->get('cloudfrontDistId'); } + /** + * @param string|null $value + */ public function setCloudfrontDistId($value): self { return $this->set('cloudfrontDistId', $value); } + /** + * @return string|null + */ public function getDefaultCurrency() { return $this->get('defaultCurrency'); } + /** + * @param string|null $value + */ public function setDefaultCurrency($value): self { return $this->set('defaultCurrency', $value); } + /** + * @return string|null + */ public function getDefaultPlace() { return $this->get('defaultPlace'); } + /** + * @param string|null $value + */ public function setDefaultPlace($value): self { return $this->set('defaultPlace', $value); } + /** + * @return string|null + */ public function getDefaultLocale() { return $this->get('defaultLocale'); } + /** + * @param string|null $value + */ public function setDefaultLocale($value): self { return $this->set('defaultLocale', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Publisher + */ public function getPublisher() { return $this->get('publisher'); } + /** + * @param Publisher $value + */ public function setPublisher($value): self { return $this->set('publisher', $value); } + /** + * @return Work[] + */ public function getWorks() { return $this->get('works'); } + /** + * @param Work[] $value + */ public function setWorks($value): self { return $this->set('works', $value); diff --git a/src/GraphQL/Schemas/Institution.php b/src/GraphQL/Schemas/Institution.php index b3e9fb2..c623d82 100644 --- a/src/GraphQL/Schemas/Institution.php +++ b/src/GraphQL/Schemas/Institution.php @@ -7,91 +7,145 @@ final class Institution extends ObjectData { + /** + * @return string + */ public function getInstitutionId() { return $this->get('institutionId'); } + /** + * @param string $value + */ public function setInstitutionId($value): self { return $this->set('institutionId', $value); } + /** + * @return string + */ public function getInstitutionName() { return $this->get('institutionName'); } + /** + * @param string $value + */ public function setInstitutionName($value): self { return $this->set('institutionName', $value); } + /** + * @return string|null + */ public function getInstitutionDoi() { return $this->get('institutionDoi'); } + /** + * @param string|null $value + */ public function setInstitutionDoi($value): self { return $this->set('institutionDoi', $value); } + /** + * @return string|null + */ public function getCountryCode() { return $this->get('countryCode'); } + /** + * @param string|null $value + */ public function setCountryCode($value): self { return $this->set('countryCode', $value); } + /** + * @return string|null + */ public function getRor() { return $this->get('ror'); } + /** + * @param string|null $value + */ public function setRor($value): self { return $this->set('ror', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Funding[] + */ public function getFundings() { return $this->get('fundings'); } + /** + * @param Funding[] $value + */ public function setFundings($value): self { return $this->set('fundings', $value); } + /** + * @return Affiliation[] + */ public function getAffiliations() { return $this->get('affiliations'); } + /** + * @param Affiliation[] $value + */ public function setAffiliations($value): self { return $this->set('affiliations', $value); diff --git a/src/GraphQL/Schemas/Issue.php b/src/GraphQL/Schemas/Issue.php index 06fc2a7..581c6ed 100644 --- a/src/GraphQL/Schemas/Issue.php +++ b/src/GraphQL/Schemas/Issue.php @@ -7,91 +7,145 @@ final class Issue extends ObjectData { + /** + * @return string + */ public function getIssueId() { return $this->get('issueId'); } + /** + * @param string $value + */ public function setIssueId($value): self { return $this->set('issueId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getSeriesId() { return $this->get('seriesId'); } + /** + * @param string $value + */ public function setSeriesId($value): self { return $this->set('seriesId', $value); } + /** + * @return int + */ public function getIssueOrdinal() { return $this->get('issueOrdinal'); } + /** + * @param int $value + */ public function setIssueOrdinal($value): self { return $this->set('issueOrdinal', $value); } + /** + * @return int|null + */ public function getIssueNumber() { return $this->get('issueNumber'); } + /** + * @param int|null $value + */ public function setIssueNumber($value): self { return $this->set('issueNumber', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Series + */ public function getSeries() { return $this->get('series'); } + /** + * @param Series $value + */ public function setSeries($value): self { return $this->set('series', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Language.php b/src/GraphQL/Schemas/Language.php index fdb5119..03dfdc2 100644 --- a/src/GraphQL/Schemas/Language.php +++ b/src/GraphQL/Schemas/Language.php @@ -7,71 +7,113 @@ final class Language extends ObjectData { + /** + * @return string + */ public function getLanguageId() { return $this->get('languageId'); } + /** + * @param string $value + */ public function setLanguageId($value): self { return $this->set('languageId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getLanguageCode() { return $this->get('languageCode'); } + /** + * @param string $value + */ public function setLanguageCode($value): self { return $this->set('languageCode', $value); } + /** + * @return string + */ public function getLanguageRelation() { return $this->get('languageRelation'); } + /** + * @param string $value + */ public function setLanguageRelation($value): self { return $this->set('languageRelation', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Location.php b/src/GraphQL/Schemas/Location.php index 095690b..fa44c08 100644 --- a/src/GraphQL/Schemas/Location.php +++ b/src/GraphQL/Schemas/Location.php @@ -7,111 +7,177 @@ final class Location extends ObjectData { + /** + * @return string + */ public function getLocationId() { return $this->get('locationId'); } + /** + * @param string $value + */ public function setLocationId($value): self { return $this->set('locationId', $value); } + /** + * @return string + */ public function getPublicationId() { return $this->get('publicationId'); } + /** + * @param string $value + */ public function setPublicationId($value): self { return $this->set('publicationId', $value); } + /** + * @return string|null + */ public function getLandingPage() { return $this->get('landingPage'); } + /** + * @param string|null $value + */ public function setLandingPage($value): self { return $this->set('landingPage', $value); } + /** + * @return string|null + */ public function getFullTextUrl() { return $this->get('fullTextUrl'); } + /** + * @param string|null $value + */ public function setFullTextUrl($value): self { return $this->set('fullTextUrl', $value); } + /** + * @return string + */ public function getLocationPlatform() { return $this->get('locationPlatform'); } + /** + * @param string $value + */ public function setLocationPlatform($value): self { return $this->set('locationPlatform', $value); } + /** + * @return bool + */ public function getCanonical() { return $this->get('canonical'); } + /** + * @param bool $value + */ public function setCanonical($value): self { return $this->set('canonical', $value); } + /** + * @return string|null + */ public function getChecksum() { return $this->get('checksum'); } + /** + * @param string|null $value + */ public function setChecksum($value): self { return $this->set('checksum', $value); } + /** + * @return string|null + */ public function getChecksumAlgorithm() { return $this->get('checksumAlgorithm'); } + /** + * @param string|null $value + */ public function setChecksumAlgorithm($value): self { return $this->set('checksumAlgorithm', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Publication + */ public function getPublication() { return $this->get('publication'); } + /** + * @param Publication $value + */ public function setPublication($value): self { return $this->set('publication', $value); diff --git a/src/GraphQL/Schemas/Me.php b/src/GraphQL/Schemas/Me.php index 3b2309b..c7a5a03 100644 --- a/src/GraphQL/Schemas/Me.php +++ b/src/GraphQL/Schemas/Me.php @@ -7,61 +7,97 @@ final class Me extends ObjectData { + /** + * @return string + */ public function getUserId() { return $this->get('userId'); } + /** + * @param string $value + */ public function setUserId($value): self { return $this->set('userId', $value); } + /** + * @return string|null + */ public function getEmail() { return $this->get('email'); } + /** + * @param string|null $value + */ public function setEmail($value): self { return $this->set('email', $value); } + /** + * @return string|null + */ public function getFirstName() { return $this->get('firstName'); } + /** + * @param string|null $value + */ public function setFirstName($value): self { return $this->set('firstName', $value); } + /** + * @return string|null + */ public function getLastName() { return $this->get('lastName'); } + /** + * @param string|null $value + */ public function setLastName($value): self { return $this->set('lastName', $value); } + /** + * @return bool + */ public function getIsSuperuser() { return $this->get('isSuperuser'); } + /** + * @param bool $value + */ public function setIsSuperuser($value): self { return $this->set('isSuperuser', $value); } + /** + * @return PublisherContext[] + */ public function getPublisherContexts() { return $this->get('publisherContexts'); } + /** + * @param PublisherContext[] $value + */ public function setPublisherContexts($value): self { return $this->set('publisherContexts', $value); diff --git a/src/GraphQL/Schemas/MutationRoot.php b/src/GraphQL/Schemas/MutationRoot.php index bd36972..88f5331 100644 --- a/src/GraphQL/Schemas/MutationRoot.php +++ b/src/GraphQL/Schemas/MutationRoot.php @@ -7,931 +7,1489 @@ final class MutationRoot extends ObjectData { + /** + * @return Work + */ public function getCreateWork() { return $this->get('createWork'); } + /** + * @param Work $value + */ public function setCreateWork($value): self { return $this->set('createWork', $value); } + /** + * @return Publisher + */ public function getCreatePublisher() { return $this->get('createPublisher'); } + /** + * @param Publisher $value + */ public function setCreatePublisher($value): self { return $this->set('createPublisher', $value); } + /** + * @return Imprint + */ public function getCreateImprint() { return $this->get('createImprint'); } + /** + * @param Imprint $value + */ public function setCreateImprint($value): self { return $this->set('createImprint', $value); } + /** + * @return Contributor + */ public function getCreateContributor() { return $this->get('createContributor'); } + /** + * @param Contributor $value + */ public function setCreateContributor($value): self { return $this->set('createContributor', $value); } + /** + * @return Contribution + */ public function getCreateContribution() { return $this->get('createContribution'); } + /** + * @param Contribution $value + */ public function setCreateContribution($value): self { return $this->set('createContribution', $value); } + /** + * @return Publication + */ public function getCreatePublication() { return $this->get('createPublication'); } + /** + * @param Publication $value + */ public function setCreatePublication($value): self { return $this->set('createPublication', $value); } + /** + * @return Series + */ public function getCreateSeries() { return $this->get('createSeries'); } + /** + * @param Series $value + */ public function setCreateSeries($value): self { return $this->set('createSeries', $value); } + /** + * @return Issue + */ public function getCreateIssue() { return $this->get('createIssue'); } + /** + * @param Issue $value + */ public function setCreateIssue($value): self { return $this->set('createIssue', $value); } + /** + * @return Language + */ public function getCreateLanguage() { return $this->get('createLanguage'); } + /** + * @param Language $value + */ public function setCreateLanguage($value): self { return $this->set('createLanguage', $value); } + /** + * @return Title + */ public function getCreateTitle() { return $this->get('createTitle'); } + /** + * @param Title $value + */ public function setCreateTitle($value): self { return $this->set('createTitle', $value); } + /** + * @return GraphQLAbstract + */ public function getCreateAbstract() { return $this->get('createAbstract'); } + /** + * @param GraphQLAbstract $value + */ public function setCreateAbstract($value): self { return $this->set('createAbstract', $value); } + /** + * @return Biography + */ public function getCreateBiography() { return $this->get('createBiography'); } + /** + * @param Biography $value + */ public function setCreateBiography($value): self { return $this->set('createBiography', $value); } + /** + * @return Institution + */ public function getCreateInstitution() { return $this->get('createInstitution'); } + /** + * @param Institution $value + */ public function setCreateInstitution($value): self { return $this->set('createInstitution', $value); } + /** + * @return Funding + */ public function getCreateFunding() { return $this->get('createFunding'); } + /** + * @param Funding $value + */ public function setCreateFunding($value): self { return $this->set('createFunding', $value); } + /** + * @return Location + */ public function getCreateLocation() { return $this->get('createLocation'); } + /** + * @param Location $value + */ public function setCreateLocation($value): self { return $this->set('createLocation', $value); } + /** + * @return Price + */ public function getCreatePrice() { return $this->get('createPrice'); } + /** + * @param Price $value + */ public function setCreatePrice($value): self { return $this->set('createPrice', $value); } + /** + * @return Subject + */ public function getCreateSubject() { return $this->get('createSubject'); } + /** + * @param Subject $value + */ public function setCreateSubject($value): self { return $this->set('createSubject', $value); } + /** + * @return Affiliation + */ public function getCreateAffiliation() { return $this->get('createAffiliation'); } + /** + * @param Affiliation $value + */ public function setCreateAffiliation($value): self { return $this->set('createAffiliation', $value); } + /** + * @return WorkRelation + */ public function getCreateWorkRelation() { return $this->get('createWorkRelation'); } + /** + * @param WorkRelation $value + */ public function setCreateWorkRelation($value): self { return $this->set('createWorkRelation', $value); } + /** + * @return Reference + */ public function getCreateReference() { return $this->get('createReference'); } + /** + * @param Reference $value + */ public function setCreateReference($value): self { return $this->set('createReference', $value); } + /** + * @return WorkResource + */ public function getCreateAdditionalResource() { return $this->get('createAdditionalResource'); } + /** + * @param WorkResource $value + */ public function setCreateAdditionalResource($value): self { return $this->set('createAdditionalResource', $value); } + /** + * @return Award + */ public function getCreateAward() { return $this->get('createAward'); } + /** + * @param Award $value + */ public function setCreateAward($value): self { return $this->set('createAward', $value); } + /** + * @return Endorsement + */ public function getCreateEndorsement() { return $this->get('createEndorsement'); } + /** + * @param Endorsement $value + */ public function setCreateEndorsement($value): self { return $this->set('createEndorsement', $value); } + /** + * @return BookReview + */ public function getCreateBookReview() { return $this->get('createBookReview'); } + /** + * @param BookReview $value + */ public function setCreateBookReview($value): self { return $this->set('createBookReview', $value); } + /** + * @return WorkFeaturedVideo + */ public function getCreateWorkFeaturedVideo() { return $this->get('createWorkFeaturedVideo'); } + /** + * @param WorkFeaturedVideo $value + */ public function setCreateWorkFeaturedVideo($value): self { return $this->set('createWorkFeaturedVideo', $value); } + /** + * @return Contact + */ public function getCreateContact() { return $this->get('createContact'); } + /** + * @param Contact $value + */ public function setCreateContact($value): self { return $this->set('createContact', $value); } + /** + * @return Work + */ public function getUpdateWork() { return $this->get('updateWork'); } + /** + * @param Work $value + */ public function setUpdateWork($value): self { return $this->set('updateWork', $value); } + /** + * @return Publisher + */ public function getUpdatePublisher() { return $this->get('updatePublisher'); } + /** + * @param Publisher $value + */ public function setUpdatePublisher($value): self { return $this->set('updatePublisher', $value); } + /** + * @return Imprint + */ public function getUpdateImprint() { return $this->get('updateImprint'); } + /** + * @param Imprint $value + */ public function setUpdateImprint($value): self { return $this->set('updateImprint', $value); } + /** + * @return Contributor + */ public function getUpdateContributor() { return $this->get('updateContributor'); } + /** + * @param Contributor $value + */ public function setUpdateContributor($value): self { return $this->set('updateContributor', $value); } + /** + * @return Contribution + */ public function getUpdateContribution() { return $this->get('updateContribution'); } + /** + * @param Contribution $value + */ public function setUpdateContribution($value): self { return $this->set('updateContribution', $value); } + /** + * @return Publication + */ public function getUpdatePublication() { return $this->get('updatePublication'); } + /** + * @param Publication $value + */ public function setUpdatePublication($value): self { return $this->set('updatePublication', $value); } + /** + * @return Series + */ public function getUpdateSeries() { return $this->get('updateSeries'); } + /** + * @param Series $value + */ public function setUpdateSeries($value): self { return $this->set('updateSeries', $value); } + /** + * @return Issue + */ public function getUpdateIssue() { return $this->get('updateIssue'); } + /** + * @param Issue $value + */ public function setUpdateIssue($value): self { return $this->set('updateIssue', $value); } + /** + * @return Language + */ public function getUpdateLanguage() { return $this->get('updateLanguage'); } + /** + * @param Language $value + */ public function setUpdateLanguage($value): self { return $this->set('updateLanguage', $value); } + /** + * @return Institution + */ public function getUpdateInstitution() { return $this->get('updateInstitution'); } + /** + * @param Institution $value + */ public function setUpdateInstitution($value): self { return $this->set('updateInstitution', $value); } + /** + * @return Funding + */ public function getUpdateFunding() { return $this->get('updateFunding'); } + /** + * @param Funding $value + */ public function setUpdateFunding($value): self { return $this->set('updateFunding', $value); } + /** + * @return Location + */ public function getUpdateLocation() { return $this->get('updateLocation'); } + /** + * @param Location $value + */ public function setUpdateLocation($value): self { return $this->set('updateLocation', $value); } + /** + * @return Price + */ public function getUpdatePrice() { return $this->get('updatePrice'); } + /** + * @param Price $value + */ public function setUpdatePrice($value): self { return $this->set('updatePrice', $value); } + /** + * @return Subject + */ public function getUpdateSubject() { return $this->get('updateSubject'); } + /** + * @param Subject $value + */ public function setUpdateSubject($value): self { return $this->set('updateSubject', $value); } + /** + * @return Affiliation + */ public function getUpdateAffiliation() { return $this->get('updateAffiliation'); } + /** + * @param Affiliation $value + */ public function setUpdateAffiliation($value): self { return $this->set('updateAffiliation', $value); } + /** + * @return WorkRelation + */ public function getUpdateWorkRelation() { return $this->get('updateWorkRelation'); } + /** + * @param WorkRelation $value + */ public function setUpdateWorkRelation($value): self { return $this->set('updateWorkRelation', $value); } + /** + * @return Reference + */ public function getUpdateReference() { return $this->get('updateReference'); } + /** + * @param Reference $value + */ public function setUpdateReference($value): self { return $this->set('updateReference', $value); } + /** + * @return WorkResource + */ public function getUpdateAdditionalResource() { return $this->get('updateAdditionalResource'); } + /** + * @param WorkResource $value + */ public function setUpdateAdditionalResource($value): self { return $this->set('updateAdditionalResource', $value); } + /** + * @return Award + */ public function getUpdateAward() { return $this->get('updateAward'); } + /** + * @param Award $value + */ public function setUpdateAward($value): self { return $this->set('updateAward', $value); } + /** + * @return Endorsement + */ public function getUpdateEndorsement() { return $this->get('updateEndorsement'); } + /** + * @param Endorsement $value + */ public function setUpdateEndorsement($value): self { return $this->set('updateEndorsement', $value); } + /** + * @return BookReview + */ public function getUpdateBookReview() { return $this->get('updateBookReview'); } + /** + * @param BookReview $value + */ public function setUpdateBookReview($value): self { return $this->set('updateBookReview', $value); } + /** + * @return WorkFeaturedVideo + */ public function getUpdateWorkFeaturedVideo() { return $this->get('updateWorkFeaturedVideo'); } + /** + * @param WorkFeaturedVideo $value + */ public function setUpdateWorkFeaturedVideo($value): self { return $this->set('updateWorkFeaturedVideo', $value); } + /** + * @return Contact + */ public function getUpdateContact() { return $this->get('updateContact'); } + /** + * @param Contact $value + */ public function setUpdateContact($value): self { return $this->set('updateContact', $value); } + /** + * @return Title + */ public function getUpdateTitle() { return $this->get('updateTitle'); } + /** + * @param Title $value + */ public function setUpdateTitle($value): self { return $this->set('updateTitle', $value); } + /** + * @return GraphQLAbstract + */ public function getUpdateAbstract() { return $this->get('updateAbstract'); } + /** + * @param GraphQLAbstract $value + */ public function setUpdateAbstract($value): self { return $this->set('updateAbstract', $value); } + /** + * @return Biography + */ public function getUpdateBiography() { return $this->get('updateBiography'); } + /** + * @param Biography $value + */ public function setUpdateBiography($value): self { return $this->set('updateBiography', $value); } + /** + * @return Work + */ public function getDeleteWork() { return $this->get('deleteWork'); } + /** + * @param Work $value + */ public function setDeleteWork($value): self { return $this->set('deleteWork', $value); } + /** + * @return Publisher + */ public function getDeletePublisher() { return $this->get('deletePublisher'); } + /** + * @param Publisher $value + */ public function setDeletePublisher($value): self { return $this->set('deletePublisher', $value); } + /** + * @return Imprint + */ public function getDeleteImprint() { return $this->get('deleteImprint'); } + /** + * @param Imprint $value + */ public function setDeleteImprint($value): self { return $this->set('deleteImprint', $value); } + /** + * @return Contributor + */ public function getDeleteContributor() { return $this->get('deleteContributor'); } + /** + * @param Contributor $value + */ public function setDeleteContributor($value): self { return $this->set('deleteContributor', $value); } + /** + * @return Contribution + */ public function getDeleteContribution() { return $this->get('deleteContribution'); } + /** + * @param Contribution $value + */ public function setDeleteContribution($value): self { return $this->set('deleteContribution', $value); } + /** + * @return Publication + */ public function getDeletePublication() { return $this->get('deletePublication'); } + /** + * @param Publication $value + */ public function setDeletePublication($value): self { return $this->set('deletePublication', $value); } + /** + * @return Series + */ public function getDeleteSeries() { return $this->get('deleteSeries'); } + /** + * @param Series $value + */ public function setDeleteSeries($value): self { return $this->set('deleteSeries', $value); } + /** + * @return Issue + */ public function getDeleteIssue() { return $this->get('deleteIssue'); } + /** + * @param Issue $value + */ public function setDeleteIssue($value): self { return $this->set('deleteIssue', $value); } + /** + * @return Language + */ public function getDeleteLanguage() { return $this->get('deleteLanguage'); } + /** + * @param Language $value + */ public function setDeleteLanguage($value): self { return $this->set('deleteLanguage', $value); } + /** + * @return Title + */ public function getDeleteTitle() { return $this->get('deleteTitle'); } + /** + * @param Title $value + */ public function setDeleteTitle($value): self { return $this->set('deleteTitle', $value); } + /** + * @return Institution + */ public function getDeleteInstitution() { return $this->get('deleteInstitution'); } + /** + * @param Institution $value + */ public function setDeleteInstitution($value): self { return $this->set('deleteInstitution', $value); } + /** + * @return Funding + */ public function getDeleteFunding() { return $this->get('deleteFunding'); } + /** + * @param Funding $value + */ public function setDeleteFunding($value): self { return $this->set('deleteFunding', $value); } + /** + * @return Location + */ public function getDeleteLocation() { return $this->get('deleteLocation'); } + /** + * @param Location $value + */ public function setDeleteLocation($value): self { return $this->set('deleteLocation', $value); } + /** + * @return Price + */ public function getDeletePrice() { return $this->get('deletePrice'); } + /** + * @param Price $value + */ public function setDeletePrice($value): self { return $this->set('deletePrice', $value); } + /** + * @return Subject + */ public function getDeleteSubject() { return $this->get('deleteSubject'); } + /** + * @param Subject $value + */ public function setDeleteSubject($value): self { return $this->set('deleteSubject', $value); } + /** + * @return Affiliation + */ public function getDeleteAffiliation() { return $this->get('deleteAffiliation'); } + /** + * @param Affiliation $value + */ public function setDeleteAffiliation($value): self { return $this->set('deleteAffiliation', $value); } + /** + * @return WorkRelation + */ public function getDeleteWorkRelation() { return $this->get('deleteWorkRelation'); } + /** + * @param WorkRelation $value + */ public function setDeleteWorkRelation($value): self { return $this->set('deleteWorkRelation', $value); } + /** + * @return Reference + */ public function getDeleteReference() { return $this->get('deleteReference'); } + /** + * @param Reference $value + */ public function setDeleteReference($value): self { return $this->set('deleteReference', $value); } + /** + * @return WorkResource + */ public function getDeleteAdditionalResource() { return $this->get('deleteAdditionalResource'); } + /** + * @param WorkResource $value + */ public function setDeleteAdditionalResource($value): self { return $this->set('deleteAdditionalResource', $value); } + /** + * @return Award + */ public function getDeleteAward() { return $this->get('deleteAward'); } + /** + * @param Award $value + */ public function setDeleteAward($value): self { return $this->set('deleteAward', $value); } + /** + * @return Endorsement + */ public function getDeleteEndorsement() { return $this->get('deleteEndorsement'); } + /** + * @param Endorsement $value + */ public function setDeleteEndorsement($value): self { return $this->set('deleteEndorsement', $value); } + /** + * @return BookReview + */ public function getDeleteBookReview() { return $this->get('deleteBookReview'); } + /** + * @param BookReview $value + */ public function setDeleteBookReview($value): self { return $this->set('deleteBookReview', $value); } + /** + * @return WorkFeaturedVideo + */ public function getDeleteWorkFeaturedVideo() { return $this->get('deleteWorkFeaturedVideo'); } + /** + * @param WorkFeaturedVideo $value + */ public function setDeleteWorkFeaturedVideo($value): self { return $this->set('deleteWorkFeaturedVideo', $value); } + /** + * @return GraphQLAbstract + */ public function getDeleteAbstract() { return $this->get('deleteAbstract'); } + /** + * @param GraphQLAbstract $value + */ public function setDeleteAbstract($value): self { return $this->set('deleteAbstract', $value); } + /** + * @return Biography + */ public function getDeleteBiography() { return $this->get('deleteBiography'); } + /** + * @param Biography $value + */ public function setDeleteBiography($value): self { return $this->set('deleteBiography', $value); } + /** + * @return Affiliation + */ public function getMoveAffiliation() { return $this->get('moveAffiliation'); } + /** + * @param Affiliation $value + */ public function setMoveAffiliation($value): self { return $this->set('moveAffiliation', $value); } + /** + * @return Contribution + */ public function getMoveContribution() { return $this->get('moveContribution'); } + /** + * @param Contribution $value + */ public function setMoveContribution($value): self { return $this->set('moveContribution', $value); } + /** + * @return Issue + */ public function getMoveIssue() { return $this->get('moveIssue'); } + /** + * @param Issue $value + */ public function setMoveIssue($value): self { return $this->set('moveIssue', $value); } + /** + * @return Reference + */ public function getMoveReference() { return $this->get('moveReference'); } + /** + * @param Reference $value + */ public function setMoveReference($value): self { return $this->set('moveReference', $value); } + /** + * @return WorkResource + */ public function getMoveAdditionalResource() { return $this->get('moveAdditionalResource'); } + /** + * @param WorkResource $value + */ public function setMoveAdditionalResource($value): self { return $this->set('moveAdditionalResource', $value); } + /** + * @return Award + */ public function getMoveAward() { return $this->get('moveAward'); } + /** + * @param Award $value + */ public function setMoveAward($value): self { return $this->set('moveAward', $value); } + /** + * @return Endorsement + */ public function getMoveEndorsement() { return $this->get('moveEndorsement'); } + /** + * @param Endorsement $value + */ public function setMoveEndorsement($value): self { return $this->set('moveEndorsement', $value); } + /** + * @return BookReview + */ public function getMoveBookReview() { return $this->get('moveBookReview'); } + /** + * @param BookReview $value + */ public function setMoveBookReview($value): self { return $this->set('moveBookReview', $value); } + /** + * @return Subject + */ public function getMoveSubject() { return $this->get('moveSubject'); } + /** + * @param Subject $value + */ public function setMoveSubject($value): self { return $this->set('moveSubject', $value); } + /** + * @return WorkRelation + */ public function getMoveWorkRelation() { return $this->get('moveWorkRelation'); } + /** + * @param WorkRelation $value + */ public function setMoveWorkRelation($value): self { return $this->set('moveWorkRelation', $value); } + /** + * @return FileUploadResponse + */ public function getInitPublicationFileUpload() { return $this->get('initPublicationFileUpload'); } + /** + * @param FileUploadResponse $value + */ public function setInitPublicationFileUpload($value): self { return $this->set('initPublicationFileUpload', $value); } + /** + * @return FileUploadResponse + */ public function getInitFrontcoverFileUpload() { return $this->get('initFrontcoverFileUpload'); } + /** + * @param FileUploadResponse $value + */ public function setInitFrontcoverFileUpload($value): self { return $this->set('initFrontcoverFileUpload', $value); } + /** + * @return FileUploadResponse + */ public function getInitAdditionalResourceFileUpload() { return $this->get('initAdditionalResourceFileUpload'); } + /** + * @param FileUploadResponse $value + */ public function setInitAdditionalResourceFileUpload($value): self { return $this->set('initAdditionalResourceFileUpload', $value); } + /** + * @return FileUploadResponse + */ public function getInitWorkFeaturedVideoFileUpload() { return $this->get('initWorkFeaturedVideoFileUpload'); } + /** + * @param FileUploadResponse $value + */ public function setInitWorkFeaturedVideoFileUpload($value): self { return $this->set('initWorkFeaturedVideoFileUpload', $value); } + /** + * @return File + */ public function getCompleteFileUpload() { return $this->get('completeFileUpload'); } + /** + * @param File $value + */ public function setCompleteFileUpload($value): self { return $this->set('completeFileUpload', $value); } + /** + * @return Contact + */ public function getDeleteContact() { return $this->get('deleteContact'); } + /** + * @param Contact $value + */ public function setDeleteContact($value): self { return $this->set('deleteContact', $value); diff --git a/src/GraphQL/Schemas/Price.php b/src/GraphQL/Schemas/Price.php index 6b3878c..7b49dda 100644 --- a/src/GraphQL/Schemas/Price.php +++ b/src/GraphQL/Schemas/Price.php @@ -7,71 +7,113 @@ final class Price extends ObjectData { + /** + * @return string + */ public function getPriceId() { return $this->get('priceId'); } + /** + * @param string $value + */ public function setPriceId($value): self { return $this->set('priceId', $value); } + /** + * @return string + */ public function getPublicationId() { return $this->get('publicationId'); } + /** + * @param string $value + */ public function setPublicationId($value): self { return $this->set('publicationId', $value); } + /** + * @return string + */ public function getCurrencyCode() { return $this->get('currencyCode'); } + /** + * @param string $value + */ public function setCurrencyCode($value): self { return $this->set('currencyCode', $value); } + /** + * @return float + */ public function getUnitPrice() { return $this->get('unitPrice'); } + /** + * @param float $value + */ public function setUnitPrice($value): self { return $this->set('unitPrice', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Publication + */ public function getPublication() { return $this->get('publication'); } + /** + * @param Publication $value + */ public function setPublication($value): self { return $this->set('publication', $value); diff --git a/src/GraphQL/Schemas/Publication.php b/src/GraphQL/Schemas/Publication.php index 98c3079..9dcf8e5 100644 --- a/src/GraphQL/Schemas/Publication.php +++ b/src/GraphQL/Schemas/Publication.php @@ -7,181 +7,289 @@ final class Publication extends ObjectData { + /** + * @return string + */ public function getPublicationId() { return $this->get('publicationId'); } + /** + * @param string $value + */ public function setPublicationId($value): self { return $this->set('publicationId', $value); } + /** + * @return string + */ public function getPublicationType() { return $this->get('publicationType'); } + /** + * @param string $value + */ public function setPublicationType($value): self { return $this->set('publicationType', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string|null + */ public function getIsbn() { return $this->get('isbn'); } + /** + * @param string|null $value + */ public function setIsbn($value): self { return $this->set('isbn', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return float|null + */ public function getWidth() { return $this->get('width'); } + /** + * @param float|null $value + */ public function setWidth($value): self { return $this->set('width', $value); } + /** + * @return float|null + */ public function getHeight() { return $this->get('height'); } + /** + * @param float|null $value + */ public function setHeight($value): self { return $this->set('height', $value); } + /** + * @return float|null + */ public function getDepth() { return $this->get('depth'); } + /** + * @param float|null $value + */ public function setDepth($value): self { return $this->set('depth', $value); } + /** + * @return float|null + */ public function getWeight() { return $this->get('weight'); } + /** + * @param float|null $value + */ public function setWeight($value): self { return $this->set('weight', $value); } + /** + * @return string|null + */ public function getAccessibilityStandard() { return $this->get('accessibilityStandard'); } + /** + * @param string|null $value + */ public function setAccessibilityStandard($value): self { return $this->set('accessibilityStandard', $value); } + /** + * @return string|null + */ public function getAccessibilityAdditionalStandard() { return $this->get('accessibilityAdditionalStandard'); } + /** + * @param string|null $value + */ public function setAccessibilityAdditionalStandard($value): self { return $this->set('accessibilityAdditionalStandard', $value); } + /** + * @return string|null + */ public function getAccessibilityException() { return $this->get('accessibilityException'); } + /** + * @param string|null $value + */ public function setAccessibilityException($value): self { return $this->set('accessibilityException', $value); } + /** + * @return string|null + */ public function getAccessibilityReportUrl() { return $this->get('accessibilityReportUrl'); } + /** + * @param string|null $value + */ public function setAccessibilityReportUrl($value): self { return $this->set('accessibilityReportUrl', $value); } + /** + * @return Price[] + */ public function getPrices() { return $this->get('prices'); } + /** + * @param Price[] $value + */ public function setPrices($value): self { return $this->set('prices', $value); } + /** + * @return Location[] + */ public function getLocations() { return $this->get('locations'); } + /** + * @param Location[] $value + */ public function setLocations($value): self { return $this->set('locations', $value); } + /** + * @return File|null + */ public function getFile() { return $this->get('file'); } + /** + * @param File|null $value + */ public function setFile($value): self { return $this->set('file', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Publisher.php b/src/GraphQL/Schemas/Publisher.php index 3a9a542..eaeaaba 100644 --- a/src/GraphQL/Schemas/Publisher.php +++ b/src/GraphQL/Schemas/Publisher.php @@ -7,111 +7,177 @@ final class Publisher extends ObjectData { + /** + * @return string + */ public function getPublisherId() { return $this->get('publisherId'); } + /** + * @param string $value + */ public function setPublisherId($value): self { return $this->set('publisherId', $value); } + /** + * @return string + */ public function getPublisherName() { return $this->get('publisherName'); } + /** + * @param string $value + */ public function setPublisherName($value): self { return $this->set('publisherName', $value); } + /** + * @return string|null + */ public function getPublisherShortname() { return $this->get('publisherShortname'); } + /** + * @param string|null $value + */ public function setPublisherShortname($value): self { return $this->set('publisherShortname', $value); } + /** + * @return string|null + */ public function getPublisherUrl() { return $this->get('publisherUrl'); } + /** + * @param string|null $value + */ public function setPublisherUrl($value): self { return $this->set('publisherUrl', $value); } + /** + * @return string|null + */ public function getZitadelId() { return $this->get('zitadelId'); } + /** + * @param string|null $value + */ public function setZitadelId($value): self { return $this->set('zitadelId', $value); } + /** + * @return string|null + */ public function getAccessibilityStatement() { return $this->get('accessibilityStatement'); } + /** + * @param string|null $value + */ public function setAccessibilityStatement($value): self { return $this->set('accessibilityStatement', $value); } + /** + * @return string|null + */ public function getAccessibilityReportUrl() { return $this->get('accessibilityReportUrl'); } + /** + * @param string|null $value + */ public function setAccessibilityReportUrl($value): self { return $this->set('accessibilityReportUrl', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Imprint[] + */ public function getImprints() { return $this->get('imprints'); } + /** + * @param Imprint[] $value + */ public function setImprints($value): self { return $this->set('imprints', $value); } + /** + * @return Contact[] + */ public function getContacts() { return $this->get('contacts'); } + /** + * @param Contact[] $value + */ public function setContacts($value): self { return $this->set('contacts', $value); diff --git a/src/GraphQL/Schemas/PublisherContext.php b/src/GraphQL/Schemas/PublisherContext.php index 6287a80..8b2a075 100644 --- a/src/GraphQL/Schemas/PublisherContext.php +++ b/src/GraphQL/Schemas/PublisherContext.php @@ -7,21 +7,33 @@ final class PublisherContext extends ObjectData { + /** + * @return Publisher + */ public function getPublisher() { return $this->get('publisher'); } + /** + * @param Publisher $value + */ public function setPublisher($value): self { return $this->set('publisher', $value); } + /** + * @return PublisherPermissions + */ public function getPermissions() { return $this->get('permissions'); } + /** + * @param PublisherPermissions $value + */ public function setPermissions($value): self { return $this->set('permissions', $value); diff --git a/src/GraphQL/Schemas/PublisherPermissions.php b/src/GraphQL/Schemas/PublisherPermissions.php index 3426bed..6ee83ab 100644 --- a/src/GraphQL/Schemas/PublisherPermissions.php +++ b/src/GraphQL/Schemas/PublisherPermissions.php @@ -7,31 +7,49 @@ final class PublisherPermissions extends ObjectData { + /** + * @return bool + */ public function getPublisherAdmin() { return $this->get('publisherAdmin'); } + /** + * @param bool $value + */ public function setPublisherAdmin($value): self { return $this->set('publisherAdmin', $value); } + /** + * @return bool + */ public function getWorkLifecycle() { return $this->get('workLifecycle'); } + /** + * @param bool $value + */ public function setWorkLifecycle($value): self { return $this->set('workLifecycle', $value); } + /** + * @return bool + */ public function getCdnWrite() { return $this->get('cdnWrite'); } + /** + * @param bool $value + */ public function setCdnWrite($value): self { return $this->set('cdnWrite', $value); diff --git a/src/GraphQL/Schemas/QueryRoot.php b/src/GraphQL/Schemas/QueryRoot.php index a71e075..f7cc4d9 100644 --- a/src/GraphQL/Schemas/QueryRoot.php +++ b/src/GraphQL/Schemas/QueryRoot.php @@ -7,811 +7,1297 @@ final class QueryRoot extends ObjectData { + /** + * @return Work[] + */ public function getWorks() { return $this->get('works'); } + /** + * @param Work[] $value + */ public function setWorks($value): self { return $this->set('works', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return Work + */ public function getWorkByDoi() { return $this->get('workByDoi'); } + /** + * @param Work $value + */ public function setWorkByDoi($value): self { return $this->set('workByDoi', $value); } + /** + * @return int + */ public function getWorkCount() { return $this->get('workCount'); } + /** + * @param int $value + */ public function setWorkCount($value): self { return $this->set('workCount', $value); } + /** + * @return Work[] + */ public function getBooks() { return $this->get('books'); } + /** + * @param Work[] $value + */ public function setBooks($value): self { return $this->set('books', $value); } + /** + * @return Work + */ public function getBookByDoi() { return $this->get('bookByDoi'); } + /** + * @param Work $value + */ public function setBookByDoi($value): self { return $this->set('bookByDoi', $value); } + /** + * @return int + */ public function getBookCount() { return $this->get('bookCount'); } + /** + * @param int $value + */ public function setBookCount($value): self { return $this->set('bookCount', $value); } + /** + * @return Work[] + */ public function getChapters() { return $this->get('chapters'); } + /** + * @param Work[] $value + */ public function setChapters($value): self { return $this->set('chapters', $value); } + /** + * @return Work + */ public function getChapterByDoi() { return $this->get('chapterByDoi'); } + /** + * @param Work $value + */ public function setChapterByDoi($value): self { return $this->set('chapterByDoi', $value); } + /** + * @return int + */ public function getChapterCount() { return $this->get('chapterCount'); } + /** + * @param int $value + */ public function setChapterCount($value): self { return $this->set('chapterCount', $value); } + /** + * @return Publication[] + */ public function getPublications() { return $this->get('publications'); } + /** + * @param Publication[] $value + */ public function setPublications($value): self { return $this->set('publications', $value); } + /** + * @return Publication + */ public function getPublication() { return $this->get('publication'); } + /** + * @param Publication $value + */ public function setPublication($value): self { return $this->set('publication', $value); } + /** + * @return File + */ public function getFile() { return $this->get('file'); } + /** + * @param File $value + */ public function setFile($value): self { return $this->set('file', $value); } + /** + * @return int + */ public function getPublicationCount() { return $this->get('publicationCount'); } + /** + * @param int $value + */ public function setPublicationCount($value): self { return $this->set('publicationCount', $value); } + /** + * @return Publisher[] + */ public function getPublishers() { return $this->get('publishers'); } + /** + * @param Publisher[] $value + */ public function setPublishers($value): self { return $this->set('publishers', $value); } + /** + * @return Publisher + */ public function getPublisher() { return $this->get('publisher'); } + /** + * @param Publisher $value + */ public function setPublisher($value): self { return $this->set('publisher', $value); } + /** + * @return int + */ public function getPublisherCount() { return $this->get('publisherCount'); } + /** + * @param int $value + */ public function setPublisherCount($value): self { return $this->set('publisherCount', $value); } + /** + * @return Imprint[] + */ public function getImprints() { return $this->get('imprints'); } + /** + * @param Imprint[] $value + */ public function setImprints($value): self { return $this->set('imprints', $value); } + /** + * @return Imprint + */ public function getImprint() { return $this->get('imprint'); } + /** + * @param Imprint $value + */ public function setImprint($value): self { return $this->set('imprint', $value); } + /** + * @return int + */ public function getImprintCount() { return $this->get('imprintCount'); } + /** + * @param int $value + */ public function setImprintCount($value): self { return $this->set('imprintCount', $value); } + /** + * @return Contributor[] + */ public function getContributors() { return $this->get('contributors'); } + /** + * @param Contributor[] $value + */ public function setContributors($value): self { return $this->set('contributors', $value); } + /** + * @return Contributor + */ public function getContributor() { return $this->get('contributor'); } + /** + * @param Contributor $value + */ public function setContributor($value): self { return $this->set('contributor', $value); } + /** + * @return int + */ public function getContributorCount() { return $this->get('contributorCount'); } + /** + * @param int $value + */ public function setContributorCount($value): self { return $this->set('contributorCount', $value); } + /** + * @return Contribution[] + */ public function getContributions() { return $this->get('contributions'); } + /** + * @param Contribution[] $value + */ public function setContributions($value): self { return $this->set('contributions', $value); } + /** + * @return Contribution + */ public function getContribution() { return $this->get('contribution'); } + /** + * @param Contribution $value + */ public function setContribution($value): self { return $this->set('contribution', $value); } + /** + * @return int + */ public function getContributionCount() { return $this->get('contributionCount'); } + /** + * @param int $value + */ public function setContributionCount($value): self { return $this->set('contributionCount', $value); } + /** + * @return Series[] + */ public function getSerieses() { return $this->get('serieses'); } + /** + * @param Series[] $value + */ public function setSerieses($value): self { return $this->set('serieses', $value); } + /** + * @return Series + */ public function getSeries() { return $this->get('series'); } + /** + * @param Series $value + */ public function setSeries($value): self { return $this->set('series', $value); } + /** + * @return int + */ public function getSeriesCount() { return $this->get('seriesCount'); } + /** + * @param int $value + */ public function setSeriesCount($value): self { return $this->set('seriesCount', $value); } + /** + * @return Issue[] + */ public function getIssues() { return $this->get('issues'); } + /** + * @param Issue[] $value + */ public function setIssues($value): self { return $this->set('issues', $value); } + /** + * @return Issue + */ public function getIssue() { return $this->get('issue'); } + /** + * @param Issue $value + */ public function setIssue($value): self { return $this->set('issue', $value); } + /** + * @return int + */ public function getIssueCount() { return $this->get('issueCount'); } + /** + * @param int $value + */ public function setIssueCount($value): self { return $this->set('issueCount', $value); } + /** + * @return Language[] + */ public function getLanguages() { return $this->get('languages'); } + /** + * @param Language[] $value + */ public function setLanguages($value): self { return $this->set('languages', $value); } + /** + * @return Language + */ public function getLanguage() { return $this->get('language'); } + /** + * @param Language $value + */ public function setLanguage($value): self { return $this->set('language', $value); } + /** + * @return int + */ public function getLanguageCount() { return $this->get('languageCount'); } + /** + * @param int $value + */ public function setLanguageCount($value): self { return $this->set('languageCount', $value); } + /** + * @return Location[] + */ public function getLocations() { return $this->get('locations'); } + /** + * @param Location[] $value + */ public function setLocations($value): self { return $this->set('locations', $value); } + /** + * @return Location + */ public function getLocation() { return $this->get('location'); } + /** + * @param Location $value + */ public function setLocation($value): self { return $this->set('location', $value); } + /** + * @return int + */ public function getLocationCount() { return $this->get('locationCount'); } + /** + * @param int $value + */ public function setLocationCount($value): self { return $this->set('locationCount', $value); } + /** + * @return Price[] + */ public function getPrices() { return $this->get('prices'); } + /** + * @param Price[] $value + */ public function setPrices($value): self { return $this->set('prices', $value); } + /** + * @return Price + */ public function getPrice() { return $this->get('price'); } + /** + * @param Price $value + */ public function setPrice($value): self { return $this->set('price', $value); } + /** + * @return int + */ public function getPriceCount() { return $this->get('priceCount'); } + /** + * @param int $value + */ public function setPriceCount($value): self { return $this->set('priceCount', $value); } + /** + * @return Subject[] + */ public function getSubjects() { return $this->get('subjects'); } + /** + * @param Subject[] $value + */ public function setSubjects($value): self { return $this->set('subjects', $value); } + /** + * @return Subject + */ public function getSubject() { return $this->get('subject'); } + /** + * @param Subject $value + */ public function setSubject($value): self { return $this->set('subject', $value); } + /** + * @return int + */ public function getSubjectCount() { return $this->get('subjectCount'); } + /** + * @param int $value + */ public function setSubjectCount($value): self { return $this->set('subjectCount', $value); } + /** + * @return Institution[] + */ public function getInstitutions() { return $this->get('institutions'); } + /** + * @param Institution[] $value + */ public function setInstitutions($value): self { return $this->set('institutions', $value); } + /** + * @return Institution + */ public function getInstitution() { return $this->get('institution'); } + /** + * @param Institution $value + */ public function setInstitution($value): self { return $this->set('institution', $value); } + /** + * @return int + */ public function getInstitutionCount() { return $this->get('institutionCount'); } + /** + * @param int $value + */ public function setInstitutionCount($value): self { return $this->set('institutionCount', $value); } + /** + * @return Funding[] + */ public function getFundings() { return $this->get('fundings'); } + /** + * @param Funding[] $value + */ public function setFundings($value): self { return $this->set('fundings', $value); } + /** + * @return Funding + */ public function getFunding() { return $this->get('funding'); } + /** + * @param Funding $value + */ public function setFunding($value): self { return $this->set('funding', $value); } + /** + * @return int + */ public function getFundingCount() { return $this->get('fundingCount'); } + /** + * @param int $value + */ public function setFundingCount($value): self { return $this->set('fundingCount', $value); } + /** + * @return Affiliation[] + */ public function getAffiliations() { return $this->get('affiliations'); } + /** + * @param Affiliation[] $value + */ public function setAffiliations($value): self { return $this->set('affiliations', $value); } + /** + * @return Affiliation + */ public function getAffiliation() { return $this->get('affiliation'); } + /** + * @param Affiliation $value + */ public function setAffiliation($value): self { return $this->set('affiliation', $value); } + /** + * @return int + */ public function getAffiliationCount() { return $this->get('affiliationCount'); } + /** + * @param int $value + */ public function setAffiliationCount($value): self { return $this->set('affiliationCount', $value); } + /** + * @return Reference[] + */ public function getReferences() { return $this->get('references'); } + /** + * @param Reference[] $value + */ public function setReferences($value): self { return $this->set('references', $value); } + /** + * @return Reference + */ public function getReference() { return $this->get('reference'); } + /** + * @param Reference $value + */ public function setReference($value): self { return $this->set('reference', $value); } + /** + * @return int + */ public function getReferenceCount() { return $this->get('referenceCount'); } + /** + * @param int $value + */ public function setReferenceCount($value): self { return $this->set('referenceCount', $value); } + /** + * @return WorkResource[] + */ public function getAdditionalResources() { return $this->get('additionalResources'); } + /** + * @param WorkResource[] $value + */ public function setAdditionalResources($value): self { return $this->set('additionalResources', $value); } + /** + * @return WorkResource + */ public function getAdditionalResource() { return $this->get('additionalResource'); } + /** + * @param WorkResource $value + */ public function setAdditionalResource($value): self { return $this->set('additionalResource', $value); } + /** + * @return int + */ public function getAdditionalResourceCount() { return $this->get('additionalResourceCount'); } + /** + * @param int $value + */ public function setAdditionalResourceCount($value): self { return $this->set('additionalResourceCount', $value); } + /** + * @return Award[] + */ public function getAwards() { return $this->get('awards'); } + /** + * @param Award[] $value + */ public function setAwards($value): self { return $this->set('awards', $value); } + /** + * @return Award + */ public function getAward() { return $this->get('award'); } + /** + * @param Award $value + */ public function setAward($value): self { return $this->set('award', $value); } + /** + * @return int + */ public function getAwardCount() { return $this->get('awardCount'); } + /** + * @param int $value + */ public function setAwardCount($value): self { return $this->set('awardCount', $value); } + /** + * @return Endorsement[] + */ public function getEndorsements() { return $this->get('endorsements'); } + /** + * @param Endorsement[] $value + */ public function setEndorsements($value): self { return $this->set('endorsements', $value); } + /** + * @return Endorsement + */ public function getEndorsement() { return $this->get('endorsement'); } + /** + * @param Endorsement $value + */ public function setEndorsement($value): self { return $this->set('endorsement', $value); } + /** + * @return int + */ public function getEndorsementCount() { return $this->get('endorsementCount'); } + /** + * @param int $value + */ public function setEndorsementCount($value): self { return $this->set('endorsementCount', $value); } + /** + * @return BookReview[] + */ public function getBookReviews() { return $this->get('bookReviews'); } + /** + * @param BookReview[] $value + */ public function setBookReviews($value): self { return $this->set('bookReviews', $value); } + /** + * @return BookReview + */ public function getBookReview() { return $this->get('bookReview'); } + /** + * @param BookReview $value + */ public function setBookReview($value): self { return $this->set('bookReview', $value); } + /** + * @return int + */ public function getBookReviewCount() { return $this->get('bookReviewCount'); } + /** + * @param int $value + */ public function setBookReviewCount($value): self { return $this->set('bookReviewCount', $value); } + /** + * @return WorkFeaturedVideo[] + */ public function getWorkFeaturedVideos() { return $this->get('workFeaturedVideos'); } + /** + * @param WorkFeaturedVideo[] $value + */ public function setWorkFeaturedVideos($value): self { return $this->set('workFeaturedVideos', $value); } + /** + * @return WorkFeaturedVideo + */ public function getWorkFeaturedVideo() { return $this->get('workFeaturedVideo'); } + /** + * @param WorkFeaturedVideo $value + */ public function setWorkFeaturedVideo($value): self { return $this->set('workFeaturedVideo', $value); } + /** + * @return int + */ public function getWorkFeaturedVideoCount() { return $this->get('workFeaturedVideoCount'); } + /** + * @param int $value + */ public function setWorkFeaturedVideoCount($value): self { return $this->set('workFeaturedVideoCount', $value); } + /** + * @return Title + */ public function getTitle() { return $this->get('title'); } + /** + * @param Title $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return Title[] + */ public function getTitles() { return $this->get('titles'); } + /** + * @param Title[] $value + */ public function setTitles($value): self { return $this->set('titles', $value); } + /** + * @return GraphQLAbstract + */ public function getAbstract() { return $this->get('abstract'); } + /** + * @param GraphQLAbstract $value + */ public function setAbstract($value): self { return $this->set('abstract', $value); } + /** + * @return GraphQLAbstract[] + */ public function getAbstracts() { return $this->get('abstracts'); } + /** + * @param GraphQLAbstract[] $value + */ public function setAbstracts($value): self { return $this->set('abstracts', $value); } + /** + * @return Biography + */ public function getBiography() { return $this->get('biography'); } + /** + * @param Biography $value + */ public function setBiography($value): self { return $this->set('biography', $value); } + /** + * @return Biography[] + */ public function getBiographies() { return $this->get('biographies'); } + /** + * @param Biography[] $value + */ public function setBiographies($value): self { return $this->set('biographies', $value); } + /** + * @return Contact[] + */ public function getContacts() { return $this->get('contacts'); } + /** + * @param Contact[] $value + */ public function setContacts($value): self { return $this->set('contacts', $value); } + /** + * @return Contact + */ public function getContact() { return $this->get('contact'); } + /** + * @param Contact $value + */ public function setContact($value): self { return $this->set('contact', $value); } + /** + * @return int + */ public function getContactCount() { return $this->get('contactCount'); } + /** + * @param int $value + */ public function setContactCount($value): self { return $this->set('contactCount', $value); } + /** + * @return Me + */ public function getMe() { return $this->get('me'); } + /** + * @param Me $value + */ public function setMe($value): self { return $this->set('me', $value); diff --git a/src/GraphQL/Schemas/Reference.php b/src/GraphQL/Schemas/Reference.php index eac3135..a7ce441 100644 --- a/src/GraphQL/Schemas/Reference.php +++ b/src/GraphQL/Schemas/Reference.php @@ -7,261 +7,417 @@ final class Reference extends ObjectData { + /** + * @return string + */ public function getReferenceId() { return $this->get('referenceId'); } + /** + * @param string $value + */ public function setReferenceId($value): self { return $this->set('referenceId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return int + */ public function getReferenceOrdinal() { return $this->get('referenceOrdinal'); } + /** + * @param int $value + */ public function setReferenceOrdinal($value): self { return $this->set('referenceOrdinal', $value); } + /** + * @return string|null + */ public function getDoi() { return $this->get('doi'); } + /** + * @param string|null $value + */ public function setDoi($value): self { return $this->set('doi', $value); } + /** + * @return string|null + */ public function getUnstructuredCitation() { return $this->get('unstructuredCitation'); } + /** + * @param string|null $value + */ public function setUnstructuredCitation($value): self { return $this->set('unstructuredCitation', $value); } + /** + * @return string|null + */ public function getIssn() { return $this->get('issn'); } + /** + * @param string|null $value + */ public function setIssn($value): self { return $this->set('issn', $value); } + /** + * @return string|null + */ public function getIsbn() { return $this->get('isbn'); } + /** + * @param string|null $value + */ public function setIsbn($value): self { return $this->set('isbn', $value); } + /** + * @return string|null + */ public function getJournalTitle() { return $this->get('journalTitle'); } + /** + * @param string|null $value + */ public function setJournalTitle($value): self { return $this->set('journalTitle', $value); } + /** + * @return string|null + */ public function getArticleTitle() { return $this->get('articleTitle'); } + /** + * @param string|null $value + */ public function setArticleTitle($value): self { return $this->set('articleTitle', $value); } + /** + * @return string|null + */ public function getSeriesTitle() { return $this->get('seriesTitle'); } + /** + * @param string|null $value + */ public function setSeriesTitle($value): self { return $this->set('seriesTitle', $value); } + /** + * @return string|null + */ public function getVolumeTitle() { return $this->get('volumeTitle'); } + /** + * @param string|null $value + */ public function setVolumeTitle($value): self { return $this->set('volumeTitle', $value); } + /** + * @return int|null + */ public function getEdition() { return $this->get('edition'); } + /** + * @param int|null $value + */ public function setEdition($value): self { return $this->set('edition', $value); } + /** + * @return string|null + */ public function getAuthor() { return $this->get('author'); } + /** + * @param string|null $value + */ public function setAuthor($value): self { return $this->set('author', $value); } + /** + * @return string|null + */ public function getVolume() { return $this->get('volume'); } + /** + * @param string|null $value + */ public function setVolume($value): self { return $this->set('volume', $value); } + /** + * @return string|null + */ public function getIssue() { return $this->get('issue'); } + /** + * @param string|null $value + */ public function setIssue($value): self { return $this->set('issue', $value); } + /** + * @return string|null + */ public function getFirstPage() { return $this->get('firstPage'); } + /** + * @param string|null $value + */ public function setFirstPage($value): self { return $this->set('firstPage', $value); } + /** + * @return string|null + */ public function getComponentNumber() { return $this->get('componentNumber'); } + /** + * @param string|null $value + */ public function setComponentNumber($value): self { return $this->set('componentNumber', $value); } + /** + * @return string|null + */ public function getStandardDesignator() { return $this->get('standardDesignator'); } + /** + * @param string|null $value + */ public function setStandardDesignator($value): self { return $this->set('standardDesignator', $value); } + /** + * @return string|null + */ public function getStandardsBodyName() { return $this->get('standardsBodyName'); } + /** + * @param string|null $value + */ public function setStandardsBodyName($value): self { return $this->set('standardsBodyName', $value); } + /** + * @return string|null + */ public function getStandardsBodyAcronym() { return $this->get('standardsBodyAcronym'); } + /** + * @param string|null $value + */ public function setStandardsBodyAcronym($value): self { return $this->set('standardsBodyAcronym', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return string|null + */ public function getPublicationDate() { return $this->get('publicationDate'); } + /** + * @param string|null $value + */ public function setPublicationDate($value): self { return $this->set('publicationDate', $value); } + /** + * @return string|null + */ public function getRetrievalDate() { return $this->get('retrievalDate'); } + /** + * @param string|null $value + */ public function setRetrievalDate($value): self { return $this->set('retrievalDate', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Series.php b/src/GraphQL/Schemas/Series.php index 55853c3..0ea3186 100644 --- a/src/GraphQL/Schemas/Series.php +++ b/src/GraphQL/Schemas/Series.php @@ -7,131 +7,209 @@ final class Series extends ObjectData { + /** + * @return string + */ public function getSeriesId() { return $this->get('seriesId'); } + /** + * @param string $value + */ public function setSeriesId($value): self { return $this->set('seriesId', $value); } + /** + * @return string + */ public function getSeriesType() { return $this->get('seriesType'); } + /** + * @param string $value + */ public function setSeriesType($value): self { return $this->set('seriesType', $value); } + /** + * @return string + */ public function getSeriesName() { return $this->get('seriesName'); } + /** + * @param string $value + */ public function setSeriesName($value): self { return $this->set('seriesName', $value); } + /** + * @return string|null + */ public function getIssnPrint() { return $this->get('issnPrint'); } + /** + * @param string|null $value + */ public function setIssnPrint($value): self { return $this->set('issnPrint', $value); } + /** + * @return string|null + */ public function getIssnDigital() { return $this->get('issnDigital'); } + /** + * @param string|null $value + */ public function setIssnDigital($value): self { return $this->set('issnDigital', $value); } + /** + * @return string|null + */ public function getSeriesUrl() { return $this->get('seriesUrl'); } + /** + * @param string|null $value + */ public function setSeriesUrl($value): self { return $this->set('seriesUrl', $value); } + /** + * @return string|null + */ public function getSeriesDescription() { return $this->get('seriesDescription'); } + /** + * @param string|null $value + */ public function setSeriesDescription($value): self { return $this->set('seriesDescription', $value); } + /** + * @return string|null + */ public function getSeriesCfpUrl() { return $this->get('seriesCfpUrl'); } + /** + * @param string|null $value + */ public function setSeriesCfpUrl($value): self { return $this->set('seriesCfpUrl', $value); } + /** + * @return string + */ public function getImprintId() { return $this->get('imprintId'); } + /** + * @param string $value + */ public function setImprintId($value): self { return $this->set('imprintId', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Imprint + */ public function getImprint() { return $this->get('imprint'); } + /** + * @param Imprint $value + */ public function setImprint($value): self { return $this->set('imprint', $value); } + /** + * @return Issue[] + */ public function getIssues() { return $this->get('issues'); } + /** + * @param Issue[] $value + */ public function setIssues($value): self { return $this->set('issues', $value); diff --git a/src/GraphQL/Schemas/Subject.php b/src/GraphQL/Schemas/Subject.php index 6a36903..f225243 100644 --- a/src/GraphQL/Schemas/Subject.php +++ b/src/GraphQL/Schemas/Subject.php @@ -7,81 +7,129 @@ final class Subject extends ObjectData { + /** + * @return string + */ public function getSubjectId() { return $this->get('subjectId'); } + /** + * @param string $value + */ public function setSubjectId($value): self { return $this->set('subjectId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getSubjectType() { return $this->get('subjectType'); } + /** + * @param string $value + */ public function setSubjectType($value): self { return $this->set('subjectType', $value); } + /** + * @return string + */ public function getSubjectCode() { return $this->get('subjectCode'); } + /** + * @param string $value + */ public function setSubjectCode($value): self { return $this->set('subjectCode', $value); } + /** + * @return int + */ public function getSubjectOrdinal() { return $this->get('subjectOrdinal'); } + /** + * @param int $value + */ public function setSubjectOrdinal($value): self { return $this->set('subjectOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/Title.php b/src/GraphQL/Schemas/Title.php index faf0dae..fffb34c 100644 --- a/src/GraphQL/Schemas/Title.php +++ b/src/GraphQL/Schemas/Title.php @@ -7,81 +7,129 @@ final class Title extends ObjectData { + /** + * @return string + */ public function getTitleId() { return $this->get('titleId'); } + /** + * @param string $value + */ public function setTitleId($value): self { return $this->set('titleId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getLocaleCode() { return $this->get('localeCode'); } + /** + * @param string $value + */ public function setLocaleCode($value): self { return $this->set('localeCode', $value); } + /** + * @return string + */ public function getFullTitle() { return $this->get('fullTitle'); } + /** + * @param string $value + */ public function setFullTitle($value): self { return $this->set('fullTitle', $value); } + /** + * @return string + */ public function getTitle() { return $this->get('title'); } + /** + * @param string $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getSubtitle() { return $this->get('subtitle'); } + /** + * @param string|null $value + */ public function setSubtitle($value): self { return $this->set('subtitle', $value); } + /** + * @return bool + */ public function getCanonical() { return $this->get('canonical'); } + /** + * @param bool $value + */ public function setCanonical($value): self { return $this->set('canonical', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); diff --git a/src/GraphQL/Schemas/UploadRequestHeader.php b/src/GraphQL/Schemas/UploadRequestHeader.php index e3e324a..3ac2677 100644 --- a/src/GraphQL/Schemas/UploadRequestHeader.php +++ b/src/GraphQL/Schemas/UploadRequestHeader.php @@ -7,21 +7,33 @@ final class UploadRequestHeader extends ObjectData { + /** + * @return string + */ public function getName() { return $this->get('name'); } + /** + * @param string $value + */ public function setName($value): self { return $this->set('name', $value); } + /** + * @return string + */ public function getValue() { return $this->get('value'); } + /** + * @param string $value + */ public function setValue($value): self { return $this->set('value', $value); diff --git a/src/GraphQL/Schemas/Work.php b/src/GraphQL/Schemas/Work.php index ffd562b..7cd3ddb 100644 --- a/src/GraphQL/Schemas/Work.php +++ b/src/GraphQL/Schemas/Work.php @@ -7,551 +7,881 @@ final class Work extends ObjectData { + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getWorkType() { return $this->get('workType'); } + /** + * @param string $value + */ public function setWorkType($value): self { return $this->set('workType', $value); } + /** + * @return string + */ public function getWorkStatus() { return $this->get('workStatus'); } + /** + * @param string $value + */ public function setWorkStatus($value): self { return $this->set('workStatus', $value); } + /** + * @return string + */ public function getFullTitle() { return $this->get('fullTitle'); } + /** + * @param string $value + */ public function setFullTitle($value): self { return $this->set('fullTitle', $value); } + /** + * @return string + */ public function getTitle() { return $this->get('title'); } + /** + * @param string $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getSubtitle() { return $this->get('subtitle'); } + /** + * @param string|null $value + */ public function setSubtitle($value): self { return $this->set('subtitle', $value); } + /** + * @return string|null + */ public function getShortAbstract() { return $this->get('shortAbstract'); } + /** + * @param string|null $value + */ public function setShortAbstract($value): self { return $this->set('shortAbstract', $value); } + /** + * @return string|null + */ public function getLongAbstract() { return $this->get('longAbstract'); } + /** + * @param string|null $value + */ public function setLongAbstract($value): self { return $this->set('longAbstract', $value); } + /** + * @return Title[] + */ public function getTitles() { return $this->get('titles'); } + /** + * @param Title[] $value + */ public function setTitles($value): self { return $this->set('titles', $value); } + /** + * @return GraphQLAbstract[] + */ public function getAbstracts() { return $this->get('abstracts'); } + /** + * @param GraphQLAbstract[] $value + */ public function setAbstracts($value): self { return $this->set('abstracts', $value); } + /** + * @return string|null + */ public function getReference() { return $this->get('reference'); } + /** + * @param string|null $value + */ public function setReference($value): self { return $this->set('reference', $value); } + /** + * @return int|null + */ public function getEdition() { return $this->get('edition'); } + /** + * @param int|null $value + */ public function setEdition($value): self { return $this->set('edition', $value); } + /** + * @return string + */ public function getImprintId() { return $this->get('imprintId'); } + /** + * @param string $value + */ public function setImprintId($value): self { return $this->set('imprintId', $value); } + /** + * @return string|null + */ public function getDoi() { return $this->get('doi'); } + /** + * @param string|null $value + */ public function setDoi($value): self { return $this->set('doi', $value); } + /** + * @return string|null + */ public function getPublicationDate() { return $this->get('publicationDate'); } + /** + * @param string|null $value + */ public function setPublicationDate($value): self { return $this->set('publicationDate', $value); } + /** + * @return string|null + */ public function getWithdrawnDate() { return $this->get('withdrawnDate'); } + /** + * @param string|null $value + */ public function setWithdrawnDate($value): self { return $this->set('withdrawnDate', $value); } + /** + * @return string|null + */ public function getPlace() { return $this->get('place'); } + /** + * @param string|null $value + */ public function setPlace($value): self { return $this->set('place', $value); } + /** + * @return int|null + */ public function getPageCount() { return $this->get('pageCount'); } + /** + * @param int|null $value + */ public function setPageCount($value): self { return $this->set('pageCount', $value); } + /** + * @return string|null + */ public function getPageBreakdown() { return $this->get('pageBreakdown'); } + /** + * @param string|null $value + */ public function setPageBreakdown($value): self { return $this->set('pageBreakdown', $value); } + /** + * @return int|null + */ public function getImageCount() { return $this->get('imageCount'); } + /** + * @param int|null $value + */ public function setImageCount($value): self { return $this->set('imageCount', $value); } + /** + * @return int|null + */ public function getTableCount() { return $this->get('tableCount'); } + /** + * @param int|null $value + */ public function setTableCount($value): self { return $this->set('tableCount', $value); } + /** + * @return int|null + */ public function getAudioCount() { return $this->get('audioCount'); } + /** + * @param int|null $value + */ public function setAudioCount($value): self { return $this->set('audioCount', $value); } + /** + * @return int|null + */ public function getVideoCount() { return $this->get('videoCount'); } + /** + * @param int|null $value + */ public function setVideoCount($value): self { return $this->set('videoCount', $value); } + /** + * @return string|null + */ public function getLicense() { return $this->get('license'); } + /** + * @param string|null $value + */ public function setLicense($value): self { return $this->set('license', $value); } + /** + * @return string|null + */ public function getCopyrightHolder() { return $this->get('copyrightHolder'); } + /** + * @param string|null $value + */ public function setCopyrightHolder($value): self { return $this->set('copyrightHolder', $value); } + /** + * @return string|null + */ public function getLandingPage() { return $this->get('landingPage'); } + /** + * @param string|null $value + */ public function setLandingPage($value): self { return $this->set('landingPage', $value); } + /** + * @return string|null + */ public function getLccn() { return $this->get('lccn'); } + /** + * @param string|null $value + */ public function setLccn($value): self { return $this->set('lccn', $value); } + /** + * @return string|null + */ public function getOclc() { return $this->get('oclc'); } + /** + * @param string|null $value + */ public function setOclc($value): self { return $this->set('oclc', $value); } + /** + * @return string|null + */ public function getGeneralNote() { return $this->get('generalNote'); } + /** + * @param string|null $value + */ public function setGeneralNote($value): self { return $this->set('generalNote', $value); } + /** + * @return string|null + */ public function getBibliographyNote() { return $this->get('bibliographyNote'); } + /** + * @param string|null $value + */ public function setBibliographyNote($value): self { return $this->set('bibliographyNote', $value); } + /** + * @return string|null + */ public function getToc() { return $this->get('toc'); } + /** + * @param string|null $value + */ public function setToc($value): self { return $this->set('toc', $value); } + /** + * @return string|null + */ public function getResourcesDescription() { return $this->get('resourcesDescription'); } + /** + * @param string|null $value + */ public function setResourcesDescription($value): self { return $this->set('resourcesDescription', $value); } + /** + * @return string|null + */ public function getCoverUrl() { return $this->get('coverUrl'); } + /** + * @param string|null $value + */ public function setCoverUrl($value): self { return $this->set('coverUrl', $value); } + /** + * @return string|null + */ public function getCoverCaption() { return $this->get('coverCaption'); } + /** + * @param string|null $value + */ public function setCoverCaption($value): self { return $this->set('coverCaption', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return string|null + */ public function getFirstPage() { return $this->get('firstPage'); } + /** + * @param string|null $value + */ public function setFirstPage($value): self { return $this->set('firstPage', $value); } + /** + * @return string|null + */ public function getLastPage() { return $this->get('lastPage'); } + /** + * @param string|null $value + */ public function setLastPage($value): self { return $this->set('lastPage', $value); } + /** + * @return string|null + */ public function getPageInterval() { return $this->get('pageInterval'); } + /** + * @param string|null $value + */ public function setPageInterval($value): self { return $this->set('pageInterval', $value); } + /** + * @return string + */ public function getUpdatedAtWithRelations() { return $this->get('updatedAtWithRelations'); } + /** + * @param string $value + */ public function setUpdatedAtWithRelations($value): self { return $this->set('updatedAtWithRelations', $value); } + /** + * @return Imprint + */ public function getImprint() { return $this->get('imprint'); } + /** + * @param Imprint $value + */ public function setImprint($value): self { return $this->set('imprint', $value); } + /** + * @return Contribution[] + */ public function getContributions() { return $this->get('contributions'); } + /** + * @param Contribution[] $value + */ public function setContributions($value): self { return $this->set('contributions', $value); } + /** + * @return Language[] + */ public function getLanguages() { return $this->get('languages'); } + /** + * @param Language[] $value + */ public function setLanguages($value): self { return $this->set('languages', $value); } + /** + * @return Publication[] + */ public function getPublications() { return $this->get('publications'); } + /** + * @param Publication[] $value + */ public function setPublications($value): self { return $this->set('publications', $value); } + /** + * @return Subject[] + */ public function getSubjects() { return $this->get('subjects'); } + /** + * @param Subject[] $value + */ public function setSubjects($value): self { return $this->set('subjects', $value); } + /** + * @return Funding[] + */ public function getFundings() { return $this->get('fundings'); } + /** + * @param Funding[] $value + */ public function setFundings($value): self { return $this->set('fundings', $value); } + /** + * @return Issue[] + */ public function getIssues() { return $this->get('issues'); } + /** + * @param Issue[] $value + */ public function setIssues($value): self { return $this->set('issues', $value); } + /** + * @return WorkRelation[] + */ public function getRelations() { return $this->get('relations'); } + /** + * @param WorkRelation[] $value + */ public function setRelations($value): self { return $this->set('relations', $value); } + /** + * @return File|null + */ public function getFrontcover() { return $this->get('frontcover'); } + /** + * @param File|null $value + */ public function setFrontcover($value): self { return $this->set('frontcover', $value); } + /** + * @return Reference[] + */ public function getReferences() { return $this->get('references'); } + /** + * @param Reference[] $value + */ public function setReferences($value): self { return $this->set('references', $value); } + /** + * @return WorkResource[] + */ public function getAdditionalResources() { return $this->get('additionalResources'); } + /** + * @param WorkResource[] $value + */ public function setAdditionalResources($value): self { return $this->set('additionalResources', $value); } + /** + * @return Award[] + */ public function getAwards() { return $this->get('awards'); } + /** + * @param Award[] $value + */ public function setAwards($value): self { return $this->set('awards', $value); } + /** + * @return Endorsement[] + */ public function getEndorsements() { return $this->get('endorsements'); } + /** + * @param Endorsement[] $value + */ public function setEndorsements($value): self { return $this->set('endorsements', $value); } + /** + * @return BookReview[] + */ public function getBookReviews() { return $this->get('bookReviews'); } + /** + * @param BookReview[] $value + */ public function setBookReviews($value): self { return $this->set('bookReviews', $value); } + /** + * @return WorkFeaturedVideo|null + */ public function getFeaturedVideo() { return $this->get('featuredVideo'); } + /** + * @param WorkFeaturedVideo|null $value + */ public function setFeaturedVideo($value): self { return $this->set('featuredVideo', $value); diff --git a/src/GraphQL/Schemas/WorkFeaturedVideo.php b/src/GraphQL/Schemas/WorkFeaturedVideo.php index d9a4e8e..55ac98a 100644 --- a/src/GraphQL/Schemas/WorkFeaturedVideo.php +++ b/src/GraphQL/Schemas/WorkFeaturedVideo.php @@ -7,101 +7,161 @@ final class WorkFeaturedVideo extends ObjectData { + /** + * @return string + */ public function getWorkFeaturedVideoId() { return $this->get('workFeaturedVideoId'); } + /** + * @param string $value + */ public function setWorkFeaturedVideoId($value): self { return $this->set('workFeaturedVideoId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getTitle() { return $this->get('title'); } + /** + * @param string $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return int + */ public function getWidth() { return $this->get('width'); } + /** + * @param int $value + */ public function setWidth($value): self { return $this->set('width', $value); } + /** + * @return int + */ public function getHeight() { return $this->get('height'); } + /** + * @param int $value + */ public function setHeight($value): self { return $this->set('height', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return File|null + */ public function getFile() { return $this->get('file'); } + /** + * @param File|null $value + */ public function setFile($value): self { return $this->set('file', $value); diff --git a/src/GraphQL/Schemas/WorkRelation.php b/src/GraphQL/Schemas/WorkRelation.php index c0bd928..f9c67e6 100644 --- a/src/GraphQL/Schemas/WorkRelation.php +++ b/src/GraphQL/Schemas/WorkRelation.php @@ -7,81 +7,129 @@ final class WorkRelation extends ObjectData { + /** + * @return string + */ public function getWorkRelationId() { return $this->get('workRelationId'); } + /** + * @param string $value + */ public function setWorkRelationId($value): self { return $this->set('workRelationId', $value); } + /** + * @return string + */ public function getRelatorWorkId() { return $this->get('relatorWorkId'); } + /** + * @param string $value + */ public function setRelatorWorkId($value): self { return $this->set('relatorWorkId', $value); } + /** + * @return string + */ public function getRelatedWorkId() { return $this->get('relatedWorkId'); } + /** + * @param string $value + */ public function setRelatedWorkId($value): self { return $this->set('relatedWorkId', $value); } + /** + * @return string + */ public function getRelationType() { return $this->get('relationType'); } + /** + * @param string $value + */ public function setRelationType($value): self { return $this->set('relationType', $value); } + /** + * @return int + */ public function getRelationOrdinal() { return $this->get('relationOrdinal'); } + /** + * @param int $value + */ public function setRelationOrdinal($value): self { return $this->set('relationOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getRelatedWork() { return $this->get('relatedWork'); } + /** + * @param Work $value + */ public function setRelatedWork($value): self { return $this->set('relatedWork', $value); diff --git a/src/GraphQL/Schemas/WorkResource.php b/src/GraphQL/Schemas/WorkResource.php index 6cd8ffc..ef6f24c 100644 --- a/src/GraphQL/Schemas/WorkResource.php +++ b/src/GraphQL/Schemas/WorkResource.php @@ -7,151 +7,241 @@ final class WorkResource extends ObjectData { + /** + * @return string + */ public function getWorkResourceId() { return $this->get('workResourceId'); } + /** + * @param string $value + */ public function setWorkResourceId($value): self { return $this->set('workResourceId', $value); } + /** + * @return string + */ public function getWorkId() { return $this->get('workId'); } + /** + * @param string $value + */ public function setWorkId($value): self { return $this->set('workId', $value); } + /** + * @return string + */ public function getTitle() { return $this->get('title'); } + /** + * @param string $value + */ public function setTitle($value): self { return $this->set('title', $value); } + /** + * @return string|null + */ public function getDescription() { return $this->get('description'); } + /** + * @param string|null $value + */ public function setDescription($value): self { return $this->set('description', $value); } + /** + * @return string|null + */ public function getAttribution() { return $this->get('attribution'); } + /** + * @param string|null $value + */ public function setAttribution($value): self { return $this->set('attribution', $value); } + /** + * @return string + */ public function getResourceType() { return $this->get('resourceType'); } + /** + * @param string $value + */ public function setResourceType($value): self { return $this->set('resourceType', $value); } + /** + * @return string|null + */ public function getDoi() { return $this->get('doi'); } + /** + * @param string|null $value + */ public function setDoi($value): self { return $this->set('doi', $value); } + /** + * @return string|null + */ public function getHandle() { return $this->get('handle'); } + /** + * @param string|null $value + */ public function setHandle($value): self { return $this->set('handle', $value); } + /** + * @return string|null + */ public function getUrl() { return $this->get('url'); } + /** + * @param string|null $value + */ public function setUrl($value): self { return $this->set('url', $value); } + /** + * @return string|null + */ public function getDate() { return $this->get('date'); } + /** + * @param string|null $value + */ public function setDate($value): self { return $this->set('date', $value); } + /** + * @return int + */ public function getResourceOrdinal() { return $this->get('resourceOrdinal'); } + /** + * @param int $value + */ public function setResourceOrdinal($value): self { return $this->set('resourceOrdinal', $value); } + /** + * @return string + */ public function getCreatedAt() { return $this->get('createdAt'); } + /** + * @param string $value + */ public function setCreatedAt($value): self { return $this->set('createdAt', $value); } + /** + * @return string + */ public function getUpdatedAt() { return $this->get('updatedAt'); } + /** + * @param string $value + */ public function setUpdatedAt($value): self { return $this->set('updatedAt', $value); } + /** + * @return Work + */ public function getWork() { return $this->get('work'); } + /** + * @param Work $value + */ public function setWork($value): self { return $this->set('work', $value); } + /** + * @return File|null + */ public function getFile() { return $this->get('file'); } + /** + * @param File|null $value + */ public function setFile($value): self { return $this->set('file', $value); From 4856e2ed6f8e6fe692a09078977395e98cf9041f Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:03:18 -0400 Subject: [PATCH 22/40] fix(graphql): validate required operation arguments --- src/GraphQL/OperationRequest.php | 6 ++++++ tests/GraphQL/OperationRequestTest.php | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index a54df1c..03e6ddb 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -103,6 +103,12 @@ private function normalizeVariables(array $variables, array $schemaArguments): a { $normalized = []; + foreach ($schemaArguments as $name => $type) { + if ($this->isNonNullType($type) && (!array_key_exists($name, $variables) || $variables[$name] === null)) { + throw new \InvalidArgumentException("Missing required GraphQL argument '{$name}'."); + } + } + foreach ($variables as $name => $value) { $this->assertIdentifier((string) $name); diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 35aa0c2..857dac0 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -233,6 +233,27 @@ public function testItRejectsMissingRequiredInputFields(): void $operation->toGraphQL(); } + public function testItRejectsMissingRequiredOperationArguments(): void + { + $operation = new OperationRequest( + 'mutation', + new FieldDefinition( + 'createPublisher', + TypeReference::named('Publisher'), + [ + new ArgumentDefinition('data', TypeReference::nonNull(TypeReference::named('NewPublisher'))), + ] + ), + [], + ['publisherId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Missing required GraphQL argument 'data'."); + + $operation->toGraphQL(); + } + public function testItRejectsInvalidEnumValues(): void { $operation = new OperationRequest( From 91beab8db152a996b0322432bdfd717bf80c6c96 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:04:43 -0400 Subject: [PATCH 23/40] fix(graphql): validate operation argument names --- src/GraphQL/OperationRequest.php | 6 ++++++ tests/GraphQL/OperationRequestTest.php | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index 03e6ddb..ce632ba 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -112,6 +112,12 @@ private function normalizeVariables(array $variables, array $schemaArguments): a foreach ($variables as $name => $value) { $this->assertIdentifier((string) $name); + if (!array_key_exists($name, $schemaArguments)) { + throw new \InvalidArgumentException( + "Unknown GraphQL argument '{$name}' for '{$this->field->getName()}'." + ); + } + if ($value !== null) { $normalized[$name] = $this->normalizeVariableValue($value, $schemaArguments[$name] ?? null); } diff --git a/tests/GraphQL/OperationRequestTest.php b/tests/GraphQL/OperationRequestTest.php index 857dac0..f1fade6 100644 --- a/tests/GraphQL/OperationRequestTest.php +++ b/tests/GraphQL/OperationRequestTest.php @@ -254,6 +254,27 @@ public function testItRejectsMissingRequiredOperationArguments(): void $operation->toGraphQL(); } + public function testItRejectsUnknownOperationArguments(): void + { + $operation = new OperationRequest( + 'query', + new FieldDefinition( + 'books', + TypeReference::named('Work'), + [ + new ArgumentDefinition('limit', TypeReference::named('Int')), + ] + ), + ['unknownArgument' => 1], + ['workId'] + ); + + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("Unknown GraphQL argument 'unknownArgument' for 'books'."); + + $operation->toGraphQL(); + } + public function testItRejectsInvalidEnumValues(): void { $operation = new OperationRequest( From dea4ba0fbeca8879f8073f6aeb562c77b057b502 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:10:44 -0400 Subject: [PATCH 24/40] refactor(graphql): split operation request responsibilities --- src/GraphQL/Operation/Identifier.php | 13 + .../Operation/SchemaDefinitionResolver.php | 77 ++++ src/GraphQL/Operation/SelectionFormatter.php | 58 +++ src/GraphQL/Operation/VariableFormatter.php | 40 ++ src/GraphQL/Operation/VariableNormalizer.php | 215 ++++++++++ src/GraphQL/OperationRequest.php | 401 +----------------- 6 files changed, 413 insertions(+), 391 deletions(-) create mode 100644 src/GraphQL/Operation/Identifier.php create mode 100644 src/GraphQL/Operation/SchemaDefinitionResolver.php create mode 100644 src/GraphQL/Operation/SelectionFormatter.php create mode 100644 src/GraphQL/Operation/VariableFormatter.php create mode 100644 src/GraphQL/Operation/VariableNormalizer.php diff --git a/src/GraphQL/Operation/Identifier.php b/src/GraphQL/Operation/Identifier.php new file mode 100644 index 0000000..f42558f --- /dev/null +++ b/src/GraphQL/Operation/Identifier.php @@ -0,0 +1,13 @@ +getSchemaClassName('Inputs', $type ? $type->baseName() : null); + + if (!class_exists($inputClass)) { + return null; + } + + return $this->getFieldDefinitions($inputClass); + } + + public function getObjectFieldDefinitions(?TypeReference $type): ?array + { + $schemaClass = $this->getSchemaClassName('Schemas', $type ? $type->baseName() : null); + + if (!class_exists($schemaClass)) { + return null; + } + + return $this->getFieldDefinitions($schemaClass); + } + + public function getInputFieldType(?TypeReference $type, string $fieldName): ?TypeReference + { + $inputFields = $this->getInputFieldDefinitions($type); + + if ($inputFields === null) { + return null; + } + + return $inputFields[$fieldName] ?? null; + } + + public function isEnumType(?TypeReference $type): bool + { + if ($type === null) { + return false; + } + + if ($type->getKind() === 'NON_NULL') { + return $this->isEnumType($type->getOfType()); + } + + return class_exists($this->getSchemaClassName('Enums', $type->baseName())); + } + + public function getEnumValues(TypeReference $type): array + { + $enumClass = $this->getSchemaClassName('Enums', $type->baseName()); + + return $enumClass::definition()->getValues(); + } + + private function getSchemaClassName(string $namespacePart, ?string $typeName): string + { + return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + } + + private function getFieldDefinitions(string $className): array + { + $fields = []; + + foreach ($className::definition()->getFields() as $field) { + $fields[$field->getName()] = $field->getType(); + } + + return $fields; + } +} diff --git a/src/GraphQL/Operation/SelectionFormatter.php b/src/GraphQL/Operation/SelectionFormatter.php new file mode 100644 index 0000000..30b2584 --- /dev/null +++ b/src/GraphQL/Operation/SelectionFormatter.php @@ -0,0 +1,58 @@ +schemaDefinitions = $schemaDefinitions ?: new SchemaDefinitionResolver(); + } + + public function format(array $selection, ?TypeReference $type = null): string + { + $lines = []; + $objectFields = $this->schemaDefinitions->getObjectFieldDefinitions($type); + + foreach ($selection as $key => $value) { + if (is_array($value)) { + Identifier::assert((string) $key); + $fieldType = $this->getSelectionFieldType($objectFields, (string) $key, $type); + $lines[] = ' ' . $key . " {\n" + . $this->indent($this->format($value, $fieldType), 8) + . "\n }"; + continue; + } + + Identifier::assert((string) $value); + $this->getSelectionFieldType($objectFields, (string) $value, $type); + $lines[] = ' ' . $value; + } + + return implode("\n", $lines); + } + + private function getSelectionFieldType(?array $objectFields, string $fieldName, ?TypeReference $parentType): ?TypeReference + { + if ($objectFields === null) { + return null; + } + + if (!array_key_exists($fieldName, $objectFields)) { + throw new \InvalidArgumentException( + "Unknown GraphQL field '{$fieldName}' for '{$parentType->baseName()}'." + ); + } + + return $objectFields[$fieldName]; + } + + private function indent(string $value, int $spaces): string + { + return str_replace("\n", "\n" . str_repeat(' ', $spaces), $value); + } +} diff --git a/src/GraphQL/Operation/VariableFormatter.php b/src/GraphQL/Operation/VariableFormatter.php new file mode 100644 index 0000000..9fb0b9d --- /dev/null +++ b/src/GraphQL/Operation/VariableFormatter.php @@ -0,0 +1,40 @@ + $value) { + if ($value === null) { + continue; + } + + Identifier::assert((string) $name); + if (isset($schemaArguments[$name])) { + $formatted[] = '$' . $name . ': ' . $schemaArguments[$name]->toGraphQL(); + } + } + + return implode(', ', $formatted); + } + + public function formatArguments(array $arguments): string + { + $formatted = []; + + foreach ($arguments as $name => $value) { + if ($value === null) { + continue; + } + + Identifier::assert((string) $name); + $formatted[] = $name . ': $' . $name; + } + + return implode(', ', $formatted); + } +} diff --git a/src/GraphQL/Operation/VariableNormalizer.php b/src/GraphQL/Operation/VariableNormalizer.php new file mode 100644 index 0000000..6de1180 --- /dev/null +++ b/src/GraphQL/Operation/VariableNormalizer.php @@ -0,0 +1,215 @@ +field = $field; + $this->schemaDefinitions = $schemaDefinitions ?: new SchemaDefinitionResolver(); + } + + public function normalize(array $variables, array $schemaArguments): array + { + $normalized = []; + + foreach ($schemaArguments as $name => $type) { + if ($this->isNonNullType($type) && (!array_key_exists($name, $variables) || $variables[$name] === null)) { + throw new \InvalidArgumentException("Missing required GraphQL argument '{$name}'."); + } + } + + foreach ($variables as $name => $value) { + Identifier::assert((string) $name); + + if (!array_key_exists($name, $schemaArguments)) { + throw new \InvalidArgumentException( + "Unknown GraphQL argument '{$name}' for '{$this->field->getName()}'." + ); + } + + if ($value !== null) { + $normalized[$name] = $this->normalizeValue($value, $schemaArguments[$name] ?? null); + } + } + + return $normalized; + } + + private function normalizeValue($value, ?TypeReference $type = null) + { + if ($type !== null && $type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->normalizeValue($value, $type->getOfType()); + } + + if ($value instanceof EnumValue) { + Identifier::assert((string) $value); + $this->assertEnumValue((string) $value, $type); + return (string) $value; + } + + if ($type !== null && $type->getKind() === 'LIST' && !$this->isListValue($value)) { + throw new \InvalidArgumentException( + "Invalid GraphQL value for '{$type->toGraphQL()}'; expected list." + ); + } + + if (is_array($value)) { + return $this->normalizeArrayValue($value, $type); + } + + if ($this->schemaDefinitions->isEnumType($type)) { + Identifier::assert((string) $value); + $this->assertEnumValue((string) $value, $type); + } + + $this->assertScalarValue($value, $type); + + return $value; + } + + private function normalizeArrayValue(array $value, ?TypeReference $type): array + { + if ($this->isList($value)) { + $listType = $this->getListItemType($type); + + return array_map(function ($item) use ($listType) { + return $this->normalizeValue($item, $listType); + }, $value); + } + + $normalized = []; + $inputFields = $this->schemaDefinitions->getInputFieldDefinitions($type); + + foreach ($value as $field => $fieldValue) { + Identifier::assert((string) $field); + + if ($inputFields !== null && !array_key_exists($field, $inputFields)) { + throw new \InvalidArgumentException( + "Unknown GraphQL input field '{$field}' for '{$type->baseName()}'." + ); + } + + if ($fieldValue !== null) { + $normalized[$field] = $this->normalizeValue( + $fieldValue, + $inputFields[$field] ?? $this->schemaDefinitions->getInputFieldType($type, (string) $field) + ); + } + } + + if ($inputFields !== null) { + foreach ($inputFields as $fieldName => $fieldType) { + if ($this->isNonNullType($fieldType) && !array_key_exists($fieldName, $normalized)) { + throw new \InvalidArgumentException( + "Missing required GraphQL input field '{$fieldName}' for '{$type->baseName()}'." + ); + } + } + } + + return $normalized; + } + + private function assertScalarValue($value, ?TypeReference $type): void + { + if ($type === null || $type->getKind() !== 'NAMED') { + return; + } + + switch ($type->baseName()) { + case 'Boolean': + if (!is_bool($value)) { + $this->throwInvalidScalarValue($type, 'bool'); + } + return; + case 'Float': + if (!is_float($value) && !is_int($value)) { + $this->throwInvalidScalarValue($type, 'float'); + } + return; + case 'Int': + if (!is_int($value)) { + $this->throwInvalidScalarValue($type, 'int'); + } + return; + case 'String': + case 'Date': + case 'Doi': + case 'Isbn': + case 'Orcid': + case 'Ror': + case 'Timestamp': + case 'Uuid': + if (!is_string($value)) { + $this->throwInvalidScalarValue($type, 'string'); + } + return; + } + } + + private function throwInvalidScalarValue(TypeReference $type, string $expectedType): void + { + throw new \InvalidArgumentException( + "Invalid GraphQL value for '{$type->toGraphQL()}'; expected {$expectedType}." + ); + } + + private function assertEnumValue(string $value, ?TypeReference $type): void + { + if (!$this->schemaDefinitions->isEnumType($type)) { + return; + } + + if (!in_array($value, $this->schemaDefinitions->getEnumValues($type), true)) { + throw new \InvalidArgumentException( + "Invalid GraphQL enum value '{$value}' for '{$type->baseName()}'." + ); + } + } + + private function getListItemType(?TypeReference $type): ?TypeReference + { + if ($type === null) { + return null; + } + + if ($type->getKind() === 'NON_NULL') { + return $this->getListItemType($type->getOfType()); + } + + if ($type->getKind() === 'LIST') { + return $type->getOfType(); + } + + return null; + } + + private function isNonNullType(TypeReference $type): bool + { + return $type->getKind() === 'NON_NULL'; + } + + private function isListValue($value): bool + { + return is_array($value) && $this->isList($value); + } + + private function isList(array $value): bool + { + if ($value === []) { + return true; + } + + return array_keys($value) === range(0, count($value) - 1); + } +} diff --git a/src/GraphQL/OperationRequest.php b/src/GraphQL/OperationRequest.php index ce632ba..2c679de 100644 --- a/src/GraphQL/OperationRequest.php +++ b/src/GraphQL/OperationRequest.php @@ -3,7 +3,10 @@ namespace ThothApi\GraphQL; use ThothApi\GraphQL\Definition\FieldDefinition; -use ThothApi\GraphQL\Definition\TypeReference; +use ThothApi\GraphQL\Operation\Identifier; +use ThothApi\GraphQL\Operation\SelectionFormatter; +use ThothApi\GraphQL\Operation\VariableFormatter; +use ThothApi\GraphQL\Operation\VariableNormalizer; final class OperationRequest { @@ -44,17 +47,18 @@ public function getSelection(): array public function getVariables(): array { - return $this->normalizeVariables($this->arguments, $this->getSchemaArgumentsByName()); + return (new VariableNormalizer($this->field))->normalize($this->arguments, $this->getSchemaArgumentsByName()); } public function toGraphQL(): string { - $this->assertIdentifier($this->field->getName()); + Identifier::assert($this->field->getName()); $this->getVariables(); - $variableDefinitions = $this->formatVariableDefinitions($this->arguments); - $arguments = $this->formatVariableArguments($this->arguments); + $variableFormatter = new VariableFormatter(); + $variableDefinitions = $variableFormatter->formatDefinitions($this->arguments, $this->getSchemaArgumentsByName()); + $arguments = $variableFormatter->formatArguments($this->arguments); $fieldLine = $this->field->getName() . ($arguments === '' ? '' : '(' . $arguments . ')'); - $selection = $this->formatSelection($this->selection, $this->field->getType()); + $selection = (new SelectionFormatter())->format($this->selection, $this->field->getType()); if ($selection !== '') { $fieldLine .= " {\n" . $selection . "\n }"; @@ -64,227 +68,6 @@ public function toGraphQL(): string . " {\n " . $fieldLine . "\n}"; } - private function formatVariableDefinitions(array $arguments): string - { - $formatted = []; - $schemaArguments = $this->getSchemaArgumentsByName(); - - foreach ($arguments as $name => $value) { - if ($value === null) { - continue; - } - - $this->assertIdentifier((string) $name); - if (isset($schemaArguments[$name])) { - $formatted[] = '$' . $name . ': ' . $schemaArguments[$name]->toGraphQL(); - } - } - - return implode(', ', $formatted); - } - - private function formatVariableArguments(array $arguments): string - { - $formatted = []; - - foreach ($arguments as $name => $value) { - if ($value === null) { - continue; - } - - $this->assertIdentifier((string) $name); - $formatted[] = $name . ': $' . $name; - } - - return implode(', ', $formatted); - } - - private function normalizeVariables(array $variables, array $schemaArguments): array - { - $normalized = []; - - foreach ($schemaArguments as $name => $type) { - if ($this->isNonNullType($type) && (!array_key_exists($name, $variables) || $variables[$name] === null)) { - throw new \InvalidArgumentException("Missing required GraphQL argument '{$name}'."); - } - } - - foreach ($variables as $name => $value) { - $this->assertIdentifier((string) $name); - - if (!array_key_exists($name, $schemaArguments)) { - throw new \InvalidArgumentException( - "Unknown GraphQL argument '{$name}' for '{$this->field->getName()}'." - ); - } - - if ($value !== null) { - $normalized[$name] = $this->normalizeVariableValue($value, $schemaArguments[$name] ?? null); - } - } - - return $normalized; - } - - private function normalizeVariableValue($value, ?TypeReference $type = null) - { - if ($type !== null && $type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { - return $this->normalizeVariableValue($value, $type->getOfType()); - } - - if ($value instanceof EnumValue) { - $this->assertIdentifier((string) $value); - $this->assertEnumValue((string) $value, $type); - return (string) $value; - } - - if ($type !== null && $type->getKind() === 'LIST' && !$this->isListValue($value)) { - throw new \InvalidArgumentException( - "Invalid GraphQL value for '{$type->toGraphQL()}'; expected list." - ); - } - - if (is_array($value)) { - if ($this->isList($value)) { - $listType = $this->getListItemType($type); - - return array_map(function ($item) use ($listType) { - return $this->normalizeVariableValue($item, $listType); - }, $value); - } - - $normalized = []; - $inputFields = $this->getInputFieldDefinitions($type); - - foreach ($value as $field => $fieldValue) { - $this->assertIdentifier((string) $field); - - if ($inputFields !== null && !array_key_exists($field, $inputFields)) { - throw new \InvalidArgumentException( - "Unknown GraphQL input field '{$field}' for '{$type->baseName()}'." - ); - } - - if ($fieldValue !== null) { - $normalized[$field] = $this->normalizeVariableValue( - $fieldValue, - $inputFields[$field] ?? $this->getInputFieldType($type, (string) $field) - ); - } - } - - if ($inputFields !== null) { - foreach ($inputFields as $fieldName => $fieldType) { - if ($this->isNonNullType($fieldType) && !array_key_exists($fieldName, $normalized)) { - throw new \InvalidArgumentException( - "Missing required GraphQL input field '{$fieldName}' for '{$type->baseName()}'." - ); - } - } - } - - return $normalized; - } - - if ($this->isEnumType($type)) { - $this->assertIdentifier((string) $value); - $this->assertEnumValue((string) $value, $type); - } - - $this->assertScalarValue($value, $type); - - return $value; - } - - private function formatSelection(array $selection, ?TypeReference $type = null): string - { - $lines = []; - $objectFields = $this->getObjectFieldDefinitions($type); - - foreach ($selection as $key => $value) { - if (is_array($value)) { - $this->assertIdentifier((string) $key); - $fieldType = $this->getSelectionFieldType($objectFields, (string) $key, $type); - $lines[] = ' ' . $key . " {\n" - . $this->indent($this->formatSelection($value, $fieldType), 8) - . "\n }"; - continue; - } - - $this->assertIdentifier((string) $value); - $this->getSelectionFieldType($objectFields, (string) $value, $type); - $lines[] = ' ' . $value; - } - - return implode("\n", $lines); - } - - private function formatValue($value, ?TypeReference $type = null): string - { - if ($value instanceof EnumValue) { - $this->assertIdentifier((string) $value); - return (string) $value; - } - - if (is_array($value)) { - if ($this->isList($value)) { - $listType = $this->getListItemType($type); - return '[' . implode(', ', array_map(function ($item) use ($listType) { - return $this->formatValue($item, $listType); - }, $value)) . ']'; - } - - $fields = []; - foreach ($value as $field => $fieldValue) { - if ($fieldValue !== null) { - $this->assertIdentifier((string) $field); - $fields[] = $field . ': ' . $this->formatValue( - $fieldValue, - $this->getInputFieldType($type, (string) $field) - ); - } - } - - return '{' . implode(', ', $fields) . '}'; - } - - if (is_bool($value)) { - return $value ? 'true' : 'false'; - } - - if (is_int($value) || is_float($value)) { - return (string) $value; - } - - if ($this->isEnumType($type)) { - $this->assertIdentifier((string) $value); - return (string) $value; - } - - return json_encode((string) $value, JSON_UNESCAPED_UNICODE); - } - - private function isList(array $value): bool - { - if ($value === []) { - return true; - } - - return array_keys($value) === range(0, count($value) - 1); - } - - private function indent(string $value, int $spaces): string - { - return str_replace("\n", "\n" . str_repeat(' ', $spaces), $value); - } - - private function assertIdentifier(string $value): void - { - if (!preg_match('/^[_A-Za-z][_0-9A-Za-z]*$/', $value)) { - throw new \InvalidArgumentException("Invalid GraphQL identifier '{$value}'."); - } - } - private function getSchemaArgumentsByName(): array { $arguments = []; @@ -295,168 +78,4 @@ private function getSchemaArgumentsByName(): array return $arguments; } - - private function getListItemType(?TypeReference $type): ?TypeReference - { - if ($type === null) { - return null; - } - - if ($type->getKind() === 'NON_NULL') { - return $this->getListItemType($type->getOfType()); - } - - if ($type->getKind() === 'LIST') { - return $type->getOfType(); - } - - return null; - } - - private function getInputFieldType(?TypeReference $type, string $fieldName): ?TypeReference - { - $inputFields = $this->getInputFieldDefinitions($type); - - if ($inputFields === null) { - return null; - } - - return $inputFields[$fieldName] ?? null; - } - - private function isEnumType(?TypeReference $type): bool - { - if ($type === null) { - return false; - } - - if ($type->getKind() === 'NON_NULL') { - return $this->isEnumType($type->getOfType()); - } - - return class_exists($this->getSchemaClassName('Enums', $type->baseName())); - } - - private function assertScalarValue($value, ?TypeReference $type): void - { - if ($type === null || $type->getKind() !== 'NAMED') { - return; - } - - switch ($type->baseName()) { - case 'Boolean': - if (!is_bool($value)) { - $this->throwInvalidScalarValue($type, 'bool'); - } - return; - case 'Float': - if (!is_float($value) && !is_int($value)) { - $this->throwInvalidScalarValue($type, 'float'); - } - return; - case 'Int': - if (!is_int($value)) { - $this->throwInvalidScalarValue($type, 'int'); - } - return; - case 'String': - case 'Date': - case 'Doi': - case 'Isbn': - case 'Orcid': - case 'Ror': - case 'Timestamp': - case 'Uuid': - if (!is_string($value)) { - $this->throwInvalidScalarValue($type, 'string'); - } - return; - } - } - - private function throwInvalidScalarValue(TypeReference $type, string $expectedType): void - { - throw new \InvalidArgumentException( - "Invalid GraphQL value for '{$type->toGraphQL()}'; expected {$expectedType}." - ); - } - - private function assertEnumValue(string $value, ?TypeReference $type): void - { - if (!$this->isEnumType($type)) { - return; - } - - $enumClass = $this->getSchemaClassName('Enums', $type->baseName()); - - if (!in_array($value, $enumClass::definition()->getValues(), true)) { - throw new \InvalidArgumentException( - "Invalid GraphQL enum value '{$value}' for '{$type->baseName()}'." - ); - } - } - - private function getSchemaClassName(string $namespacePart, ?string $typeName): string - { - return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); - } - - private function getSelectionFieldType(?array $objectFields, string $fieldName, ?TypeReference $parentType): ?TypeReference - { - if ($objectFields === null) { - return null; - } - - if (!array_key_exists($fieldName, $objectFields)) { - throw new \InvalidArgumentException( - "Unknown GraphQL field '{$fieldName}' for '{$parentType->baseName()}'." - ); - } - - return $objectFields[$fieldName]; - } - - private function getObjectFieldDefinitions(?TypeReference $type): ?array - { - $schemaClass = $this->getSchemaClassName('Schemas', $type ? $type->baseName() : null); - - if (!class_exists($schemaClass)) { - return null; - } - - $fields = []; - - foreach ($schemaClass::definition()->getFields() as $field) { - $fields[$field->getName()] = $field->getType(); - } - - return $fields; - } - - private function getInputFieldDefinitions(?TypeReference $type): ?array - { - $inputClass = $this->getSchemaClassName('Inputs', $type ? $type->baseName() : null); - - if (!class_exists($inputClass)) { - return null; - } - - $fields = []; - - foreach ($inputClass::definition()->getFields() as $field) { - $fields[$field->getName()] = $field->getType(); - } - - return $fields; - } - - private function isNonNullType(TypeReference $type): bool - { - return $type->getKind() === 'NON_NULL'; - } - - private function isListValue($value): bool - { - return is_array($value) && $this->isList($value); - } } From 87b24dfa01224649897b4d090f0dec152661c3ae Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 12:47:04 -0400 Subject: [PATCH 25/40] refactor(graphql): share schema value hydration --- src/GraphQL/Client.php | 38 +---------------------------- src/GraphQL/ObjectData.php | 40 +------------------------------ src/GraphQL/ValueHydrator.php | 45 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 76 deletions(-) create mode 100644 src/GraphQL/ValueHydrator.php diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 8ca1c86..e39c84d 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -60,7 +60,7 @@ public function __call(string $name, array $arguments) return $unwrappedResult; } - return $this->hydrateResult($result, $field->getType()); + return (new ValueHydrator())->hydrate($result, $field->getType()); } private function getOperationClass(string $name): string @@ -202,38 +202,6 @@ private function unwrapSingleSelection($result, array $selection) return array_key_exists($selection[0], $result) ? $result[$selection[0]] : $result; } - private function hydrateResult($result, $type) - { - if ($result === null) { - return null; - } - - if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { - return $this->hydrateResult($result, $type->getOfType()); - } - - if ($type->getKind() === 'LIST' && $type->getOfType() !== null && is_array($result)) { - return array_map( - function ($item) use ($type) { - return $this->hydrateResult($item, $type->getOfType()); - }, - $result - ); - } - - if (!is_array($result)) { - return $result; - } - - $schemaClass = $this->getSchemaClass($type->baseName()); - - if (!class_exists($schemaClass)) { - return $result; - } - - return $schemaClass::fromArray($result); - } - private function studly(string $value): string { $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); @@ -299,8 +267,4 @@ private function isScalarType($type): bool return in_array($type->baseName(), self::SCALAR_TYPES, true); } - private function getSchemaClass(?string $typeName): string - { - return '\\ThothApi\\GraphQL\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); - } } diff --git a/src/GraphQL/ObjectData.php b/src/GraphQL/ObjectData.php index abbdbc4..da11991 100644 --- a/src/GraphQL/ObjectData.php +++ b/src/GraphQL/ObjectData.php @@ -3,7 +3,6 @@ namespace ThothApi\GraphQL; use ThothApi\GraphQL\Definition\FieldDefinition; -use ThothApi\GraphQL\Definition\TypeReference; class ObjectData { @@ -47,7 +46,7 @@ private static function hydrateFieldValue(string $fieldName, $value) return $value; } - return static::hydrateValue($field->getType(), $value); + return (new ValueHydrator())->hydrate($value, $field->getType()); } private static function getFieldDefinition(string $fieldName): ?FieldDefinition @@ -61,43 +60,6 @@ private static function getFieldDefinition(string $fieldName): ?FieldDefinition return null; } - private static function hydrateValue(TypeReference $type, $value) - { - if ($value === null) { - return null; - } - - if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { - return static::hydrateValue($type->getOfType(), $value); - } - - if ($type->getKind() === 'LIST' && $type->getOfType() !== null && is_array($value)) { - return array_map( - static function ($item) use ($type) { - return static::hydrateValue($type->getOfType(), $item); - }, - $value - ); - } - - if (!is_array($value)) { - return $value; - } - - $schemaClass = static::schemaClassForType($type->baseName()); - - if (!class_exists($schemaClass)) { - return $value; - } - - return $schemaClass::fromArray($value); - } - - private static function schemaClassForType(?string $typeName): string - { - return '\\ThothApi\\GraphQL\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); - } - private function normalizeArray(array $data): array { return array_map( diff --git a/src/GraphQL/ValueHydrator.php b/src/GraphQL/ValueHydrator.php new file mode 100644 index 0000000..6e893c0 --- /dev/null +++ b/src/GraphQL/ValueHydrator.php @@ -0,0 +1,45 @@ +getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->hydrate($value, $type->getOfType()); + } + + if ($type->getKind() === 'LIST' && $type->getOfType() !== null && is_array($value)) { + return array_map( + function ($item) use ($type) { + return $this->hydrate($item, $type->getOfType()); + }, + $value + ); + } + + if (!is_array($value)) { + return $value; + } + + $schemaClass = $this->schemaClassForType($type->baseName()); + + if (!class_exists($schemaClass)) { + return $value; + } + + return $schemaClass::fromArray($value); + } + + private function schemaClassForType(?string $typeName): string + { + return '\\ThothApi\\GraphQL\\Schemas\\' . ($typeName === 'Abstract' ? 'GraphQLAbstract' : $typeName); + } +} From 418f0f30647f5826fd7456f8a7c2e1148d8b76cd Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 13:34:54 -0400 Subject: [PATCH 26/40] refactor(graphql): extract dynamic call argument parsing --- src/GraphQL/Client.php | 144 +--------------- .../Operation/OperationCallArguments.php | 156 ++++++++++++++++++ 2 files changed, 161 insertions(+), 139 deletions(-) create mode 100644 src/GraphQL/Operation/OperationCallArguments.php diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index e39c84d..1a6fd1e 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -2,6 +2,8 @@ namespace ThothApi\GraphQL; +use ThothApi\GraphQL\Operation\OperationCallArguments; + class Client { private const SCALAR_TYPES = ['Boolean', 'Date', 'Doi', 'Float', 'Int', 'Isbn', 'Orcid', 'Ror', 'String', 'Timestamp', 'Uuid']; @@ -46,10 +48,10 @@ public function __call(string $name, array $arguments) { $operationClass = $this->getOperationClass($name); $field = $operationClass::field(); - $schemaArguments = $field->getArguments(); - $selection = $this->getSelectionArgument($arguments, $schemaArguments); + $operationCall = (new OperationCallArguments())->build($field->getArguments(), $arguments); + $selection = $operationCall['selection']; $operation = $operationClass::operation( - $this->getOperationArguments($schemaArguments, $arguments), + $operationCall['arguments'], $selection ?: $this->getDefaultSelection($field->getType()->baseName()) ); @@ -81,90 +83,6 @@ private function getOperationClass(string $name): string throw new \BadMethodCallException("Operation '{$name}' not found."); } - private function getSelectionArgument(array &$arguments, array $schemaArguments): array - { - $lastArgument = count($arguments) - 1; - - if ($lastArgument < 0 || !is_array($arguments[$lastArgument])) { - return []; - } - - if (count($arguments) > count($schemaArguments) && $this->isSelectionArray($arguments[$lastArgument])) { - return array_pop($arguments); - } - - if ( - isset($schemaArguments[$lastArgument]) - && $this->isScalarType($schemaArguments[$lastArgument]->getType()) - && $this->isSelectionArray($arguments[$lastArgument]) - ) { - return array_pop($arguments); - } - - if ( - count($arguments) === 2 - && is_array($arguments[0]) - && $this->hasSchemaNamedArguments($arguments[0], $schemaArguments) - && $this->isSelectionArray($arguments[$lastArgument]) - ) { - return array_pop($arguments); - } - - return []; - } - - private function getOperationArguments(array $schemaArguments, array $arguments): array - { - if ($schemaArguments === []) { - return []; - } - - if (count($arguments) === 1 && is_array($arguments[0]) && $this->isAssociativeArray($arguments[0])) { - if (count($schemaArguments) !== 1 || array_key_exists($schemaArguments[0]->getName(), $arguments[0])) { - return $this->normalizeValue($arguments[0]); - } - } - - if (count($schemaArguments) === 1) { - return [$schemaArguments[0]->getName() => $this->normalizeValue($arguments[0] ?? null)]; - } - - $operationArguments = []; - - foreach ($schemaArguments as $index => $schemaArgument) { - if (array_key_exists($index, $arguments)) { - $operationArguments[$schemaArgument->getName()] = $this->normalizeValue($arguments[$index]); - } - } - - return $operationArguments; - } - - private function normalizeValue($value) - { - if ($value instanceof EnumValue) { - return $value; - } - - if (is_array($value)) { - return array_map([$this, 'normalizeValue'], $value); - } - - if (is_object($value)) { - if (method_exists($value, 'getAllData')) { - return $this->normalizeValue($value->getAllData()); - } - - if ($value instanceof \JsonSerializable) { - return $this->normalizeValue($value->jsonSerialize()); - } - - return $this->normalizeValue(get_object_vars($value)); - } - - return $value; - } - private function getDefaultSelection(?string $typeName): array { if ($typeName === null || in_array($typeName, self::SCALAR_TYPES, true)) { @@ -215,56 +133,4 @@ private function studly(string $value): string return $value; } - private function isAssociativeArray(array $value): bool - { - return $value !== [] && array_keys($value) !== range(0, count($value) - 1); - } - - private function isSelectionArray(array $value): bool - { - foreach ($value as $field => $selection) { - if (is_array($selection)) { - if (!is_string($field) || !$this->isSelectionArray($selection)) { - return false; - } - - continue; - } - - if (!is_string($selection)) { - return false; - } - } - - return true; - } - - private function hasSchemaNamedArguments(array $arguments, array $schemaArguments): bool - { - if (!$this->isAssociativeArray($arguments)) { - return false; - } - - foreach ($schemaArguments as $schemaArgument) { - if (array_key_exists($schemaArgument->getName(), $arguments)) { - return true; - } - } - - return false; - } - - private function isScalarType($type): bool - { - if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { - return $this->isScalarType($type->getOfType()); - } - - if ($type->getKind() === 'LIST') { - return false; - } - - return in_array($type->baseName(), self::SCALAR_TYPES, true); - } - } diff --git a/src/GraphQL/Operation/OperationCallArguments.php b/src/GraphQL/Operation/OperationCallArguments.php new file mode 100644 index 0000000..582df0a --- /dev/null +++ b/src/GraphQL/Operation/OperationCallArguments.php @@ -0,0 +1,156 @@ +getSelectionArgument($arguments, $schemaArguments); + + return [ + 'arguments' => $this->getOperationArguments($schemaArguments, $arguments), + 'selection' => $selection, + ]; + } + + private function getSelectionArgument(array &$arguments, array $schemaArguments): array + { + $lastArgument = count($arguments) - 1; + + if ($lastArgument < 0 || !is_array($arguments[$lastArgument])) { + return []; + } + + if (count($arguments) > count($schemaArguments) && $this->isSelectionArray($arguments[$lastArgument])) { + return array_pop($arguments); + } + + if ( + isset($schemaArguments[$lastArgument]) + && $this->isScalarType($schemaArguments[$lastArgument]->getType()) + && $this->isSelectionArray($arguments[$lastArgument]) + ) { + return array_pop($arguments); + } + + if ( + count($arguments) === 2 + && is_array($arguments[0]) + && $this->hasSchemaNamedArguments($arguments[0], $schemaArguments) + && $this->isSelectionArray($arguments[$lastArgument]) + ) { + return array_pop($arguments); + } + + return []; + } + + private function getOperationArguments(array $schemaArguments, array $arguments): array + { + if ($schemaArguments === []) { + return []; + } + + if (count($arguments) === 1 && is_array($arguments[0]) && $this->isAssociativeArray($arguments[0])) { + if (count($schemaArguments) !== 1 || array_key_exists($schemaArguments[0]->getName(), $arguments[0])) { + return $this->normalizeValue($arguments[0]); + } + } + + if (count($schemaArguments) === 1) { + return [$schemaArguments[0]->getName() => $this->normalizeValue($arguments[0] ?? null)]; + } + + $operationArguments = []; + + foreach ($schemaArguments as $index => $schemaArgument) { + if (array_key_exists($index, $arguments)) { + $operationArguments[$schemaArgument->getName()] = $this->normalizeValue($arguments[$index]); + } + } + + return $operationArguments; + } + + private function normalizeValue($value) + { + if ($value instanceof EnumValue) { + return $value; + } + + if (is_array($value)) { + return array_map([$this, 'normalizeValue'], $value); + } + + if (is_object($value)) { + if (method_exists($value, 'getAllData')) { + return $this->normalizeValue($value->getAllData()); + } + + if ($value instanceof \JsonSerializable) { + return $this->normalizeValue($value->jsonSerialize()); + } + + return $this->normalizeValue(get_object_vars($value)); + } + + return $value; + } + + private function isAssociativeArray(array $value): bool + { + return $value !== [] && array_keys($value) !== range(0, count($value) - 1); + } + + private function isSelectionArray(array $value): bool + { + foreach ($value as $field => $selection) { + if (is_array($selection)) { + if (!is_string($field) || !$this->isSelectionArray($selection)) { + return false; + } + + continue; + } + + if (!is_string($selection)) { + return false; + } + } + + return true; + } + + private function hasSchemaNamedArguments(array $arguments, array $schemaArguments): bool + { + if (!$this->isAssociativeArray($arguments)) { + return false; + } + + foreach ($schemaArguments as $schemaArgument) { + if (array_key_exists($schemaArgument->getName(), $arguments)) { + return true; + } + } + + return false; + } + + private function isScalarType($type): bool + { + if ($type->getKind() === 'NON_NULL' && $type->getOfType() !== null) { + return $this->isScalarType($type->getOfType()); + } + + if ($type->getKind() === 'LIST') { + return false; + } + + return in_array($type->baseName(), self::SCALAR_TYPES, true); + } +} From 2af53bad9cf57593e8bf69561788b97fa9a0b652 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 13:38:47 -0400 Subject: [PATCH 27/40] test(graphql): remove redundant raw query passthrough test --- tests/GraphQL/ClientTest.php | 58 ++---------------------------------- 1 file changed, 3 insertions(+), 55 deletions(-) diff --git a/tests/GraphQL/ClientTest.php b/tests/GraphQL/ClientTest.php index 92fa56f..b4d2b00 100644 --- a/tests/GraphQL/ClientTest.php +++ b/tests/GraphQL/ClientTest.php @@ -14,67 +14,15 @@ final class ClientTest extends TestCase { - private MockHandler $mockHandler; - - private Client $client; - - protected function setUp(): void - { - $this->mockHandler = new MockHandler(); - $handler = HandlerStack::create($this->mockHandler); - $this->client = new Client(['handler' => $handler]); - } - - public function testRunRawQuery(): void - { - $this->mockHandler->append(new Response(200, [], json_encode([ - 'data' => [ - 'books' => [ - 'fullTitle' => 'My book title', - 'doi' => 'https://doi.org/10.123435/12345678', - 'publications' => [], - 'contributions' => [] - ] - ] - ]))); - - $query = <<client->rawQuery($query, $args); - - $this->assertSame([ - 'books' => [ - 'fullTitle' => 'My book title', - 'doi' => 'https://doi.org/10.123435/12345678', - 'publications' => [], - 'contributions' => [] - ] - ], $result); - } - public function testExecuteSendsOperationArgumentsAsVariables(): void { + $mockHandler = new MockHandler(); $container = []; - $handler = HandlerStack::create($this->mockHandler); + $handler = HandlerStack::create($mockHandler); $handler->push(Middleware::history($container)); $client = new Client(['handler' => $handler]); - $this->mockHandler->append(new Response(200, [], json_encode([ + $mockHandler->append(new Response(200, [], json_encode([ 'data' => [ 'works' => [], ], From acd24fbdccf7dd0437f500f5b0b841949b486d1f Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 14:48:41 -0400 Subject: [PATCH 28/40] feat(graphql): add generated accessors to inputs --- src/GraphQL/InputObject.php | 22 + src/GraphQL/Inputs/AbstractOrderBy.php | 52 + .../Inputs/AdditionalResourceOrderBy.php | 52 + src/GraphQL/Inputs/AffiliationOrderBy.php | 52 + src/GraphQL/Inputs/AwardOrderBy.php | 52 + src/GraphQL/Inputs/BiographyOrderBy.php | 52 + src/GraphQL/Inputs/BookReviewOrderBy.php | 52 + src/GraphQL/Inputs/CompleteFileUpload.php | 26 + src/GraphQL/Inputs/ContactOrderBy.php | 52 + src/GraphQL/Inputs/ContributionOrderBy.php | 52 + src/GraphQL/Inputs/ContributorOrderBy.php | 52 + src/GraphQL/Inputs/EndorsementOrderBy.php | 52 + src/GraphQL/Inputs/FundingOrderBy.php | 52 + src/GraphQL/Inputs/ImprintOrderBy.php | 52 + src/GraphQL/Inputs/InstitutionOrderBy.php | 52 + src/GraphQL/Inputs/IssueOrderBy.php | 52 + src/GraphQL/Inputs/LanguageOrderBy.php | 52 + src/GraphQL/Inputs/LocationOrderBy.php | 52 + src/GraphQL/Inputs/NewAbstract.php | 130 +++ src/GraphQL/Inputs/NewAdditionalResource.php | 260 +++++ .../NewAdditionalResourceFileUpload.php | 104 ++ src/GraphQL/Inputs/NewAffiliation.php | 104 ++ src/GraphQL/Inputs/NewAward.php | 260 +++++ src/GraphQL/Inputs/NewBiography.php | 104 ++ src/GraphQL/Inputs/NewBookReview.php | 390 ++++++++ src/GraphQL/Inputs/NewContact.php | 78 ++ src/GraphQL/Inputs/NewContribution.php | 208 ++++ src/GraphQL/Inputs/NewContributor.php | 130 +++ src/GraphQL/Inputs/NewEndorsement.php | 208 ++++ .../Inputs/NewFrontcoverFileUpload.php | 104 ++ src/GraphQL/Inputs/NewFunding.php | 156 +++ src/GraphQL/Inputs/NewImprint.php | 260 +++++ src/GraphQL/Inputs/NewInstitution.php | 104 ++ src/GraphQL/Inputs/NewIssue.php | 104 ++ src/GraphQL/Inputs/NewLanguage.php | 78 ++ src/GraphQL/Inputs/NewLocation.php | 182 ++++ src/GraphQL/Inputs/NewPrice.php | 78 ++ src/GraphQL/Inputs/NewPublication.php | 390 ++++++++ .../Inputs/NewPublicationFileUpload.php | 104 ++ src/GraphQL/Inputs/NewPublisher.php | 156 +++ src/GraphQL/Inputs/NewReference.php | 572 +++++++++++ src/GraphQL/Inputs/NewSeries.php | 208 ++++ src/GraphQL/Inputs/NewSubject.php | 104 ++ src/GraphQL/Inputs/NewTitle.php | 156 +++ src/GraphQL/Inputs/NewWork.php | 754 ++++++++++++++ src/GraphQL/Inputs/NewWorkFeaturedVideo.php | 130 +++ .../Inputs/NewWorkFeaturedVideoFileUpload.php | 104 ++ src/GraphQL/Inputs/NewWorkRelation.php | 104 ++ src/GraphQL/Inputs/PatchAbstract.php | 156 +++ .../Inputs/PatchAdditionalResource.php | 286 ++++++ src/GraphQL/Inputs/PatchAffiliation.php | 130 +++ src/GraphQL/Inputs/PatchAward.php | 286 ++++++ src/GraphQL/Inputs/PatchBiography.php | 130 +++ src/GraphQL/Inputs/PatchBookReview.php | 416 ++++++++ src/GraphQL/Inputs/PatchContact.php | 104 ++ src/GraphQL/Inputs/PatchContribution.php | 234 +++++ src/GraphQL/Inputs/PatchContributor.php | 156 +++ src/GraphQL/Inputs/PatchEndorsement.php | 234 +++++ src/GraphQL/Inputs/PatchFunding.php | 182 ++++ src/GraphQL/Inputs/PatchImprint.php | 286 ++++++ src/GraphQL/Inputs/PatchInstitution.php | 130 +++ src/GraphQL/Inputs/PatchIssue.php | 130 +++ src/GraphQL/Inputs/PatchLanguage.php | 104 ++ src/GraphQL/Inputs/PatchLocation.php | 208 ++++ src/GraphQL/Inputs/PatchPrice.php | 104 ++ src/GraphQL/Inputs/PatchPublication.php | 416 ++++++++ src/GraphQL/Inputs/PatchPublisher.php | 182 ++++ src/GraphQL/Inputs/PatchReference.php | 598 +++++++++++ src/GraphQL/Inputs/PatchSeries.php | 234 +++++ src/GraphQL/Inputs/PatchSubject.php | 130 +++ src/GraphQL/Inputs/PatchTitle.php | 182 ++++ src/GraphQL/Inputs/PatchWork.php | 780 +++++++++++++++ src/GraphQL/Inputs/PatchWorkFeaturedVideo.php | 156 +++ src/GraphQL/Inputs/PatchWorkRelation.php | 130 +++ src/GraphQL/Inputs/PriceOrderBy.php | 52 + src/GraphQL/Inputs/PublicationOrderBy.php | 52 + src/GraphQL/Inputs/PublisherOrderBy.php | 52 + src/GraphQL/Inputs/ReferenceOrderBy.php | 52 + src/GraphQL/Inputs/SeriesOrderBy.php | 52 + src/GraphQL/Inputs/SubjectOrderBy.php | 52 + src/GraphQL/Inputs/TimeExpression.php | 52 + src/GraphQL/Inputs/TitleOrderBy.php | 52 + .../Inputs/WorkFeaturedVideoOrderBy.php | 52 + src/GraphQL/Inputs/WorkOrderBy.php | 52 + src/GraphQL/Inputs/WorkRelationOrderBy.php | 52 + src/GraphQL/ObjectData.php | 11 + src/GraphQL/Operation/VariableNormalizer.php | 11 +- src/GraphQL/Schemas/Affiliation.php | 90 ++ src/GraphQL/Schemas/Award.php | 140 +++ src/GraphQL/Schemas/Biography.php | 70 ++ src/GraphQL/Schemas/BookReview.php | 200 ++++ src/GraphQL/Schemas/Contact.php | 70 ++ src/GraphQL/Schemas/Contribution.php | 160 +++ src/GraphQL/Schemas/Contributor.php | 90 ++ src/GraphQL/Schemas/Endorsement.php | 130 +++ src/GraphQL/Schemas/File.php | 130 +++ src/GraphQL/Schemas/FileUploadResponse.php | 40 + src/GraphQL/Schemas/Funding.php | 110 +++ src/GraphQL/Schemas/GraphQLAbstract.php | 70 ++ src/GraphQL/Schemas/Imprint.php | 150 +++ src/GraphQL/Schemas/Institution.php | 90 ++ src/GraphQL/Schemas/Issue.php | 90 ++ src/GraphQL/Schemas/Language.php | 70 ++ src/GraphQL/Schemas/Location.php | 110 +++ src/GraphQL/Schemas/Me.php | 60 ++ src/GraphQL/Schemas/MutationRoot.php | 932 +++++++++++++++++- src/GraphQL/Schemas/Price.php | 70 ++ src/GraphQL/Schemas/Publication.php | 180 ++++ src/GraphQL/Schemas/Publisher.php | 110 +++ src/GraphQL/Schemas/PublisherContext.php | 20 + src/GraphQL/Schemas/PublisherPermissions.php | 30 + src/GraphQL/Schemas/QueryRoot.php | 810 +++++++++++++++ src/GraphQL/Schemas/Reference.php | 260 +++++ src/GraphQL/Schemas/Series.php | 130 +++ src/GraphQL/Schemas/Subject.php | 80 ++ src/GraphQL/Schemas/Title.php | 80 ++ src/GraphQL/Schemas/UploadRequestHeader.php | 20 + src/GraphQL/Schemas/Work.php | 550 +++++++++++ src/GraphQL/Schemas/WorkFeaturedVideo.php | 100 ++ src/GraphQL/Schemas/WorkRelation.php | 80 ++ src/GraphQL/Schemas/WorkResource.php | 150 +++ tests/GraphQL/GeneratorTest.php | 2 + tests/GraphQL/GenericClientTest.php | 75 ++ tools/generate-graphql-client.php | 62 +- 124 files changed, 18986 insertions(+), 7 deletions(-) diff --git a/src/GraphQL/InputObject.php b/src/GraphQL/InputObject.php index 21f3bf9..e8005eb 100644 --- a/src/GraphQL/InputObject.php +++ b/src/GraphQL/InputObject.php @@ -15,4 +15,26 @@ public function getAllData(): array { return $this->data; } + + protected function get(string $field) + { + return $this->data[$field] ?? null; + } + + protected function set(string $field, $value): self + { + $this->data[$field] = $value; + return $this; + } + + protected function has(string $field): bool + { + return array_key_exists($field, $this->data); + } + + protected function remove(string $field): self + { + unset($this->data[$field]); + return $this; + } } diff --git a/src/GraphQL/Inputs/AbstractOrderBy.php b/src/GraphQL/Inputs/AbstractOrderBy.php index e0d5bbd..3bbb1b4 100644 --- a/src/GraphQL/Inputs/AbstractOrderBy.php +++ b/src/GraphQL/Inputs/AbstractOrderBy.php @@ -7,6 +7,58 @@ final class AbstractOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AbstractOrderBy', [ diff --git a/src/GraphQL/Inputs/AdditionalResourceOrderBy.php b/src/GraphQL/Inputs/AdditionalResourceOrderBy.php index cb4e193..1fec28a 100644 --- a/src/GraphQL/Inputs/AdditionalResourceOrderBy.php +++ b/src/GraphQL/Inputs/AdditionalResourceOrderBy.php @@ -7,6 +7,58 @@ final class AdditionalResourceOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AdditionalResourceOrderBy', [ diff --git a/src/GraphQL/Inputs/AffiliationOrderBy.php b/src/GraphQL/Inputs/AffiliationOrderBy.php index 2a62ae3..fc27438 100644 --- a/src/GraphQL/Inputs/AffiliationOrderBy.php +++ b/src/GraphQL/Inputs/AffiliationOrderBy.php @@ -7,6 +7,58 @@ final class AffiliationOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AffiliationOrderBy', [ diff --git a/src/GraphQL/Inputs/AwardOrderBy.php b/src/GraphQL/Inputs/AwardOrderBy.php index 5e03f6e..65b5ec4 100644 --- a/src/GraphQL/Inputs/AwardOrderBy.php +++ b/src/GraphQL/Inputs/AwardOrderBy.php @@ -7,6 +7,58 @@ final class AwardOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('AwardOrderBy', [ diff --git a/src/GraphQL/Inputs/BiographyOrderBy.php b/src/GraphQL/Inputs/BiographyOrderBy.php index 7a0d880..7bf37ac 100644 --- a/src/GraphQL/Inputs/BiographyOrderBy.php +++ b/src/GraphQL/Inputs/BiographyOrderBy.php @@ -7,6 +7,58 @@ final class BiographyOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('BiographyOrderBy', [ diff --git a/src/GraphQL/Inputs/BookReviewOrderBy.php b/src/GraphQL/Inputs/BookReviewOrderBy.php index 5c7a468..c6a821f 100644 --- a/src/GraphQL/Inputs/BookReviewOrderBy.php +++ b/src/GraphQL/Inputs/BookReviewOrderBy.php @@ -7,6 +7,58 @@ final class BookReviewOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('BookReviewOrderBy', [ diff --git a/src/GraphQL/Inputs/CompleteFileUpload.php b/src/GraphQL/Inputs/CompleteFileUpload.php index f15f55f..9c4de73 100644 --- a/src/GraphQL/Inputs/CompleteFileUpload.php +++ b/src/GraphQL/Inputs/CompleteFileUpload.php @@ -7,6 +7,32 @@ final class CompleteFileUpload extends InputObject { + /** + * @return string + */ + public function getFileUploadId() + { + return $this->get('fileUploadId'); + } + + /** + * @param string $value + */ + public function setFileUploadId($value): self + { + return $this->set('fileUploadId', $value); + } + + public function hasFileUploadId(): bool + { + return $this->has('fileUploadId'); + } + + public function unsetFileUploadId(): self + { + return $this->remove('fileUploadId'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('CompleteFileUpload', [ diff --git a/src/GraphQL/Inputs/ContactOrderBy.php b/src/GraphQL/Inputs/ContactOrderBy.php index a71c9a6..ffda007 100644 --- a/src/GraphQL/Inputs/ContactOrderBy.php +++ b/src/GraphQL/Inputs/ContactOrderBy.php @@ -7,6 +7,58 @@ final class ContactOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContactOrderBy', [ diff --git a/src/GraphQL/Inputs/ContributionOrderBy.php b/src/GraphQL/Inputs/ContributionOrderBy.php index 6363d06..0003aec 100644 --- a/src/GraphQL/Inputs/ContributionOrderBy.php +++ b/src/GraphQL/Inputs/ContributionOrderBy.php @@ -7,6 +7,58 @@ final class ContributionOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContributionOrderBy', [ diff --git a/src/GraphQL/Inputs/ContributorOrderBy.php b/src/GraphQL/Inputs/ContributorOrderBy.php index 42fd621..6606015 100644 --- a/src/GraphQL/Inputs/ContributorOrderBy.php +++ b/src/GraphQL/Inputs/ContributorOrderBy.php @@ -7,6 +7,58 @@ final class ContributorOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ContributorOrderBy', [ diff --git a/src/GraphQL/Inputs/EndorsementOrderBy.php b/src/GraphQL/Inputs/EndorsementOrderBy.php index cc8437a..d2e594d 100644 --- a/src/GraphQL/Inputs/EndorsementOrderBy.php +++ b/src/GraphQL/Inputs/EndorsementOrderBy.php @@ -7,6 +7,58 @@ final class EndorsementOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('EndorsementOrderBy', [ diff --git a/src/GraphQL/Inputs/FundingOrderBy.php b/src/GraphQL/Inputs/FundingOrderBy.php index 04b8f72..648f7cd 100644 --- a/src/GraphQL/Inputs/FundingOrderBy.php +++ b/src/GraphQL/Inputs/FundingOrderBy.php @@ -7,6 +7,58 @@ final class FundingOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('FundingOrderBy', [ diff --git a/src/GraphQL/Inputs/ImprintOrderBy.php b/src/GraphQL/Inputs/ImprintOrderBy.php index 40b0620..68f513a 100644 --- a/src/GraphQL/Inputs/ImprintOrderBy.php +++ b/src/GraphQL/Inputs/ImprintOrderBy.php @@ -7,6 +7,58 @@ final class ImprintOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ImprintOrderBy', [ diff --git a/src/GraphQL/Inputs/InstitutionOrderBy.php b/src/GraphQL/Inputs/InstitutionOrderBy.php index a85f8dc..235f290 100644 --- a/src/GraphQL/Inputs/InstitutionOrderBy.php +++ b/src/GraphQL/Inputs/InstitutionOrderBy.php @@ -7,6 +7,58 @@ final class InstitutionOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('InstitutionOrderBy', [ diff --git a/src/GraphQL/Inputs/IssueOrderBy.php b/src/GraphQL/Inputs/IssueOrderBy.php index fa68696..145beb5 100644 --- a/src/GraphQL/Inputs/IssueOrderBy.php +++ b/src/GraphQL/Inputs/IssueOrderBy.php @@ -7,6 +7,58 @@ final class IssueOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('IssueOrderBy', [ diff --git a/src/GraphQL/Inputs/LanguageOrderBy.php b/src/GraphQL/Inputs/LanguageOrderBy.php index 16c7be9..9f5aa97 100644 --- a/src/GraphQL/Inputs/LanguageOrderBy.php +++ b/src/GraphQL/Inputs/LanguageOrderBy.php @@ -7,6 +7,58 @@ final class LanguageOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('LanguageOrderBy', [ diff --git a/src/GraphQL/Inputs/LocationOrderBy.php b/src/GraphQL/Inputs/LocationOrderBy.php index c9e7209..a769c57 100644 --- a/src/GraphQL/Inputs/LocationOrderBy.php +++ b/src/GraphQL/Inputs/LocationOrderBy.php @@ -7,6 +7,58 @@ final class LocationOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('LocationOrderBy', [ diff --git a/src/GraphQL/Inputs/NewAbstract.php b/src/GraphQL/Inputs/NewAbstract.php index b1139ce..1ed6ac9 100644 --- a/src/GraphQL/Inputs/NewAbstract.php +++ b/src/GraphQL/Inputs/NewAbstract.php @@ -7,6 +7,136 @@ final class NewAbstract extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getContent() + { + return $this->get('content'); + } + + /** + * @param string $value + */ + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + + /** + * @return string + */ + public function getAbstractType() + { + return $this->get('abstractType'); + } + + /** + * @param string $value + */ + public function setAbstractType($value): self + { + return $this->set('abstractType', $value); + } + + public function hasAbstractType(): bool + { + return $this->has('abstractType'); + } + + public function unsetAbstractType(): self + { + return $this->remove('abstractType'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAbstract', [ diff --git a/src/GraphQL/Inputs/NewAdditionalResource.php b/src/GraphQL/Inputs/NewAdditionalResource.php index 7deb092..363a070 100644 --- a/src/GraphQL/Inputs/NewAdditionalResource.php +++ b/src/GraphQL/Inputs/NewAdditionalResource.php @@ -7,6 +7,266 @@ final class NewAdditionalResource extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getDescription() + { + return $this->get('description'); + } + + /** + * @param string|null $value + */ + public function setDescription($value): self + { + return $this->set('description', $value); + } + + public function hasDescription(): bool + { + return $this->has('description'); + } + + public function unsetDescription(): self + { + return $this->remove('description'); + } + + /** + * @return string|null + */ + public function getAttribution() + { + return $this->get('attribution'); + } + + /** + * @param string|null $value + */ + public function setAttribution($value): self + { + return $this->set('attribution', $value); + } + + public function hasAttribution(): bool + { + return $this->has('attribution'); + } + + public function unsetAttribution(): self + { + return $this->remove('attribution'); + } + + /** + * @return string + */ + public function getResourceType() + { + return $this->get('resourceType'); + } + + /** + * @param string $value + */ + public function setResourceType($value): self + { + return $this->set('resourceType', $value); + } + + public function hasResourceType(): bool + { + return $this->has('resourceType'); + } + + public function unsetResourceType(): self + { + return $this->remove('resourceType'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getHandle() + { + return $this->get('handle'); + } + + /** + * @param string|null $value + */ + public function setHandle($value): self + { + return $this->set('handle', $value); + } + + public function hasHandle(): bool + { + return $this->has('handle'); + } + + public function unsetHandle(): self + { + return $this->remove('handle'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getDate() + { + return $this->get('date'); + } + + /** + * @param string|null $value + */ + public function setDate($value): self + { + return $this->set('date', $value); + } + + public function hasDate(): bool + { + return $this->has('date'); + } + + public function unsetDate(): self + { + return $this->remove('date'); + } + + /** + * @return int + */ + public function getResourceOrdinal() + { + return $this->get('resourceOrdinal'); + } + + /** + * @param int $value + */ + public function setResourceOrdinal($value): self + { + return $this->set('resourceOrdinal', $value); + } + + public function hasResourceOrdinal(): bool + { + return $this->has('resourceOrdinal'); + } + + public function unsetResourceOrdinal(): self + { + return $this->remove('resourceOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAdditionalResource', [ diff --git a/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php b/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php index 0f7e921..d50ff1a 100644 --- a/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php +++ b/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php @@ -7,6 +7,110 @@ final class NewAdditionalResourceFileUpload extends InputObject { + /** + * @return string + */ + public function getAdditionalResourceId() + { + return $this->get('additionalResourceId'); + } + + /** + * @param string $value + */ + public function setAdditionalResourceId($value): self + { + return $this->set('additionalResourceId', $value); + } + + public function hasAdditionalResourceId(): bool + { + return $this->has('additionalResourceId'); + } + + public function unsetAdditionalResourceId(): self + { + return $this->remove('additionalResourceId'); + } + + /** + * @return string + */ + public function getDeclaredMimeType() + { + return $this->get('declaredMimeType'); + } + + /** + * @param string $value + */ + public function setDeclaredMimeType($value): self + { + return $this->set('declaredMimeType', $value); + } + + public function hasDeclaredMimeType(): bool + { + return $this->has('declaredMimeType'); + } + + public function unsetDeclaredMimeType(): self + { + return $this->remove('declaredMimeType'); + } + + /** + * @return string + */ + public function getDeclaredExtension() + { + return $this->get('declaredExtension'); + } + + /** + * @param string $value + */ + public function setDeclaredExtension($value): self + { + return $this->set('declaredExtension', $value); + } + + public function hasDeclaredExtension(): bool + { + return $this->has('declaredExtension'); + } + + public function unsetDeclaredExtension(): self + { + return $this->remove('declaredExtension'); + } + + /** + * @return string + */ + public function getDeclaredSha256() + { + return $this->get('declaredSha256'); + } + + /** + * @param string $value + */ + public function setDeclaredSha256($value): self + { + return $this->set('declaredSha256', $value); + } + + public function hasDeclaredSha256(): bool + { + return $this->has('declaredSha256'); + } + + public function unsetDeclaredSha256(): self + { + return $this->remove('declaredSha256'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAdditionalResourceFileUpload', [ diff --git a/src/GraphQL/Inputs/NewAffiliation.php b/src/GraphQL/Inputs/NewAffiliation.php index 40040a9..922edb0 100644 --- a/src/GraphQL/Inputs/NewAffiliation.php +++ b/src/GraphQL/Inputs/NewAffiliation.php @@ -7,6 +7,110 @@ final class NewAffiliation extends InputObject { + /** + * @return string + */ + public function getContributionId() + { + return $this->get('contributionId'); + } + + /** + * @param string $value + */ + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + + /** + * @return string + */ + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + /** + * @param string $value + */ + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + + /** + * @return int + */ + public function getAffiliationOrdinal() + { + return $this->get('affiliationOrdinal'); + } + + /** + * @param int $value + */ + public function setAffiliationOrdinal($value): self + { + return $this->set('affiliationOrdinal', $value); + } + + public function hasAffiliationOrdinal(): bool + { + return $this->has('affiliationOrdinal'); + } + + public function unsetAffiliationOrdinal(): self + { + return $this->remove('affiliationOrdinal'); + } + + /** + * @return string|null + */ + public function getPosition() + { + return $this->get('position'); + } + + /** + * @param string|null $value + */ + public function setPosition($value): self + { + return $this->set('position', $value); + } + + public function hasPosition(): bool + { + return $this->has('position'); + } + + public function unsetPosition(): self + { + return $this->remove('position'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAffiliation', [ diff --git a/src/GraphQL/Inputs/NewAward.php b/src/GraphQL/Inputs/NewAward.php index a92e59b..b692451 100644 --- a/src/GraphQL/Inputs/NewAward.php +++ b/src/GraphQL/Inputs/NewAward.php @@ -7,6 +7,266 @@ final class NewAward extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getCategory() + { + return $this->get('category'); + } + + /** + * @param string|null $value + */ + public function setCategory($value): self + { + return $this->set('category', $value); + } + + public function hasCategory(): bool + { + return $this->has('category'); + } + + public function unsetCategory(): self + { + return $this->remove('category'); + } + + /** + * @return string|null + */ + public function getYear() + { + return $this->get('year'); + } + + /** + * @param string|null $value + */ + public function setYear($value): self + { + return $this->set('year', $value); + } + + public function hasYear(): bool + { + return $this->has('year'); + } + + public function unsetYear(): self + { + return $this->remove('year'); + } + + /** + * @return string|null + */ + public function getJury() + { + return $this->get('jury'); + } + + /** + * @param string|null $value + */ + public function setJury($value): self + { + return $this->set('jury', $value); + } + + public function hasJury(): bool + { + return $this->has('jury'); + } + + public function unsetJury(): self + { + return $this->remove('jury'); + } + + /** + * @return string|null + */ + public function getCountry() + { + return $this->get('country'); + } + + /** + * @param string|null $value + */ + public function setCountry($value): self + { + return $this->set('country', $value); + } + + public function hasCountry(): bool + { + return $this->has('country'); + } + + public function unsetCountry(): self + { + return $this->remove('country'); + } + + /** + * @return string|null + */ + public function getPrizeStatement() + { + return $this->get('prizeStatement'); + } + + /** + * @param string|null $value + */ + public function setPrizeStatement($value): self + { + return $this->set('prizeStatement', $value); + } + + public function hasPrizeStatement(): bool + { + return $this->has('prizeStatement'); + } + + public function unsetPrizeStatement(): self + { + return $this->remove('prizeStatement'); + } + + /** + * @return string|null + */ + public function getRole() + { + return $this->get('role'); + } + + /** + * @param string|null $value + */ + public function setRole($value): self + { + return $this->set('role', $value); + } + + public function hasRole(): bool + { + return $this->has('role'); + } + + public function unsetRole(): self + { + return $this->remove('role'); + } + + /** + * @return int + */ + public function getAwardOrdinal() + { + return $this->get('awardOrdinal'); + } + + /** + * @param int $value + */ + public function setAwardOrdinal($value): self + { + return $this->set('awardOrdinal', $value); + } + + public function hasAwardOrdinal(): bool + { + return $this->has('awardOrdinal'); + } + + public function unsetAwardOrdinal(): self + { + return $this->remove('awardOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewAward', [ diff --git a/src/GraphQL/Inputs/NewBiography.php b/src/GraphQL/Inputs/NewBiography.php index 87d6f49..94d9c55 100644 --- a/src/GraphQL/Inputs/NewBiography.php +++ b/src/GraphQL/Inputs/NewBiography.php @@ -7,6 +7,110 @@ final class NewBiography extends InputObject { + /** + * @return string + */ + public function getContributionId() + { + return $this->get('contributionId'); + } + + /** + * @param string $value + */ + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + + /** + * @return string + */ + public function getContent() + { + return $this->get('content'); + } + + /** + * @param string $value + */ + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewBiography', [ diff --git a/src/GraphQL/Inputs/NewBookReview.php b/src/GraphQL/Inputs/NewBookReview.php index fb26a85..86bad9c 100644 --- a/src/GraphQL/Inputs/NewBookReview.php +++ b/src/GraphQL/Inputs/NewBookReview.php @@ -7,6 +7,396 @@ final class NewBookReview extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string|null + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string|null $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getAuthorName() + { + return $this->get('authorName'); + } + + /** + * @param string|null $value + */ + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + + /** + * @return string|null + */ + public function getReviewerOrcid() + { + return $this->get('reviewerOrcid'); + } + + /** + * @param string|null $value + */ + public function setReviewerOrcid($value): self + { + return $this->set('reviewerOrcid', $value); + } + + public function hasReviewerOrcid(): bool + { + return $this->has('reviewerOrcid'); + } + + public function unsetReviewerOrcid(): self + { + return $this->remove('reviewerOrcid'); + } + + /** + * @return string|null + */ + public function getReviewerInstitutionId() + { + return $this->get('reviewerInstitutionId'); + } + + /** + * @param string|null $value + */ + public function setReviewerInstitutionId($value): self + { + return $this->set('reviewerInstitutionId', $value); + } + + public function hasReviewerInstitutionId(): bool + { + return $this->has('reviewerInstitutionId'); + } + + public function unsetReviewerInstitutionId(): self + { + return $this->remove('reviewerInstitutionId'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getReviewDate() + { + return $this->get('reviewDate'); + } + + /** + * @param string|null $value + */ + public function setReviewDate($value): self + { + return $this->set('reviewDate', $value); + } + + public function hasReviewDate(): bool + { + return $this->has('reviewDate'); + } + + public function unsetReviewDate(): self + { + return $this->remove('reviewDate'); + } + + /** + * @return string|null + */ + public function getJournalName() + { + return $this->get('journalName'); + } + + /** + * @param string|null $value + */ + public function setJournalName($value): self + { + return $this->set('journalName', $value); + } + + public function hasJournalName(): bool + { + return $this->has('journalName'); + } + + public function unsetJournalName(): self + { + return $this->remove('journalName'); + } + + /** + * @return string|null + */ + public function getJournalVolume() + { + return $this->get('journalVolume'); + } + + /** + * @param string|null $value + */ + public function setJournalVolume($value): self + { + return $this->set('journalVolume', $value); + } + + public function hasJournalVolume(): bool + { + return $this->has('journalVolume'); + } + + public function unsetJournalVolume(): self + { + return $this->remove('journalVolume'); + } + + /** + * @return string|null + */ + public function getJournalNumber() + { + return $this->get('journalNumber'); + } + + /** + * @param string|null $value + */ + public function setJournalNumber($value): self + { + return $this->set('journalNumber', $value); + } + + public function hasJournalNumber(): bool + { + return $this->has('journalNumber'); + } + + public function unsetJournalNumber(): self + { + return $this->remove('journalNumber'); + } + + /** + * @return string|null + */ + public function getJournalIssn() + { + return $this->get('journalIssn'); + } + + /** + * @param string|null $value + */ + public function setJournalIssn($value): self + { + return $this->set('journalIssn', $value); + } + + public function hasJournalIssn(): bool + { + return $this->has('journalIssn'); + } + + public function unsetJournalIssn(): self + { + return $this->remove('journalIssn'); + } + + /** + * @return string|null + */ + public function getPageRange() + { + return $this->get('pageRange'); + } + + /** + * @param string|null $value + */ + public function setPageRange($value): self + { + return $this->set('pageRange', $value); + } + + public function hasPageRange(): bool + { + return $this->has('pageRange'); + } + + public function unsetPageRange(): self + { + return $this->remove('pageRange'); + } + + /** + * @return string|null + */ + public function getText() + { + return $this->get('text'); + } + + /** + * @param string|null $value + */ + public function setText($value): self + { + return $this->set('text', $value); + } + + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + + /** + * @return int + */ + public function getReviewOrdinal() + { + return $this->get('reviewOrdinal'); + } + + /** + * @param int $value + */ + public function setReviewOrdinal($value): self + { + return $this->set('reviewOrdinal', $value); + } + + public function hasReviewOrdinal(): bool + { + return $this->has('reviewOrdinal'); + } + + public function unsetReviewOrdinal(): self + { + return $this->remove('reviewOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewBookReview', [ diff --git a/src/GraphQL/Inputs/NewContact.php b/src/GraphQL/Inputs/NewContact.php index 2a11b2d..318fadf 100644 --- a/src/GraphQL/Inputs/NewContact.php +++ b/src/GraphQL/Inputs/NewContact.php @@ -7,6 +7,84 @@ final class NewContact extends InputObject { + /** + * @return string + */ + public function getPublisherId() + { + return $this->get('publisherId'); + } + + /** + * @param string $value + */ + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + + /** + * @return string + */ + public function getContactType() + { + return $this->get('contactType'); + } + + /** + * @param string $value + */ + public function setContactType($value): self + { + return $this->set('contactType', $value); + } + + public function hasContactType(): bool + { + return $this->has('contactType'); + } + + public function unsetContactType(): self + { + return $this->remove('contactType'); + } + + /** + * @return string + */ + public function getEmail() + { + return $this->get('email'); + } + + /** + * @param string $value + */ + public function setEmail($value): self + { + return $this->set('email', $value); + } + + public function hasEmail(): bool + { + return $this->has('email'); + } + + public function unsetEmail(): self + { + return $this->remove('email'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContact', [ diff --git a/src/GraphQL/Inputs/NewContribution.php b/src/GraphQL/Inputs/NewContribution.php index 8f2479a..497d9ac 100644 --- a/src/GraphQL/Inputs/NewContribution.php +++ b/src/GraphQL/Inputs/NewContribution.php @@ -7,6 +7,214 @@ final class NewContribution extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getContributorId() + { + return $this->get('contributorId'); + } + + /** + * @param string $value + */ + public function setContributorId($value): self + { + return $this->set('contributorId', $value); + } + + public function hasContributorId(): bool + { + return $this->has('contributorId'); + } + + public function unsetContributorId(): self + { + return $this->remove('contributorId'); + } + + /** + * @return string + */ + public function getContributionType() + { + return $this->get('contributionType'); + } + + /** + * @param string $value + */ + public function setContributionType($value): self + { + return $this->set('contributionType', $value); + } + + public function hasContributionType(): bool + { + return $this->has('contributionType'); + } + + public function unsetContributionType(): self + { + return $this->remove('contributionType'); + } + + /** + * @return bool + */ + public function getMainContribution() + { + return $this->get('mainContribution'); + } + + /** + * @param bool $value + */ + public function setMainContribution($value): self + { + return $this->set('mainContribution', $value); + } + + public function hasMainContribution(): bool + { + return $this->has('mainContribution'); + } + + public function unsetMainContribution(): self + { + return $this->remove('mainContribution'); + } + + /** + * @return string|null + */ + public function getFirstName() + { + return $this->get('firstName'); + } + + /** + * @param string|null $value + */ + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + + /** + * @return string + */ + public function getLastName() + { + return $this->get('lastName'); + } + + /** + * @param string $value + */ + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + + /** + * @return string + */ + public function getFullName() + { + return $this->get('fullName'); + } + + /** + * @param string $value + */ + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + + /** + * @return int + */ + public function getContributionOrdinal() + { + return $this->get('contributionOrdinal'); + } + + /** + * @param int $value + */ + public function setContributionOrdinal($value): self + { + return $this->set('contributionOrdinal', $value); + } + + public function hasContributionOrdinal(): bool + { + return $this->has('contributionOrdinal'); + } + + public function unsetContributionOrdinal(): self + { + return $this->remove('contributionOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContribution', [ diff --git a/src/GraphQL/Inputs/NewContributor.php b/src/GraphQL/Inputs/NewContributor.php index baeb69b..6dc0a37 100644 --- a/src/GraphQL/Inputs/NewContributor.php +++ b/src/GraphQL/Inputs/NewContributor.php @@ -7,6 +7,136 @@ final class NewContributor extends InputObject { + /** + * @return string|null + */ + public function getFirstName() + { + return $this->get('firstName'); + } + + /** + * @param string|null $value + */ + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + + /** + * @return string + */ + public function getLastName() + { + return $this->get('lastName'); + } + + /** + * @param string $value + */ + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + + /** + * @return string + */ + public function getFullName() + { + return $this->get('fullName'); + } + + /** + * @param string $value + */ + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + + /** + * @return string|null + */ + public function getOrcid() + { + return $this->get('orcid'); + } + + /** + * @param string|null $value + */ + public function setOrcid($value): self + { + return $this->set('orcid', $value); + } + + public function hasOrcid(): bool + { + return $this->has('orcid'); + } + + public function unsetOrcid(): self + { + return $this->remove('orcid'); + } + + /** + * @return string|null + */ + public function getWebsite() + { + return $this->get('website'); + } + + /** + * @param string|null $value + */ + public function setWebsite($value): self + { + return $this->set('website', $value); + } + + public function hasWebsite(): bool + { + return $this->has('website'); + } + + public function unsetWebsite(): self + { + return $this->remove('website'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewContributor', [ diff --git a/src/GraphQL/Inputs/NewEndorsement.php b/src/GraphQL/Inputs/NewEndorsement.php index 67a0960..5f5a564 100644 --- a/src/GraphQL/Inputs/NewEndorsement.php +++ b/src/GraphQL/Inputs/NewEndorsement.php @@ -7,6 +7,214 @@ final class NewEndorsement extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getAuthorName() + { + return $this->get('authorName'); + } + + /** + * @param string $value + */ + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + + /** + * @return string|null + */ + public function getAuthorRole() + { + return $this->get('authorRole'); + } + + /** + * @param string|null $value + */ + public function setAuthorRole($value): self + { + return $this->set('authorRole', $value); + } + + public function hasAuthorRole(): bool + { + return $this->has('authorRole'); + } + + public function unsetAuthorRole(): self + { + return $this->remove('authorRole'); + } + + /** + * @return string|null + */ + public function getAuthorOrcid() + { + return $this->get('authorOrcid'); + } + + /** + * @param string|null $value + */ + public function setAuthorOrcid($value): self + { + return $this->set('authorOrcid', $value); + } + + public function hasAuthorOrcid(): bool + { + return $this->has('authorOrcid'); + } + + public function unsetAuthorOrcid(): self + { + return $this->remove('authorOrcid'); + } + + /** + * @return string|null + */ + public function getAuthorInstitutionId() + { + return $this->get('authorInstitutionId'); + } + + /** + * @param string|null $value + */ + public function setAuthorInstitutionId($value): self + { + return $this->set('authorInstitutionId', $value); + } + + public function hasAuthorInstitutionId(): bool + { + return $this->has('authorInstitutionId'); + } + + public function unsetAuthorInstitutionId(): self + { + return $this->remove('authorInstitutionId'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getText() + { + return $this->get('text'); + } + + /** + * @param string|null $value + */ + public function setText($value): self + { + return $this->set('text', $value); + } + + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + + /** + * @return int + */ + public function getEndorsementOrdinal() + { + return $this->get('endorsementOrdinal'); + } + + /** + * @param int $value + */ + public function setEndorsementOrdinal($value): self + { + return $this->set('endorsementOrdinal', $value); + } + + public function hasEndorsementOrdinal(): bool + { + return $this->has('endorsementOrdinal'); + } + + public function unsetEndorsementOrdinal(): self + { + return $this->remove('endorsementOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewEndorsement', [ diff --git a/src/GraphQL/Inputs/NewFrontcoverFileUpload.php b/src/GraphQL/Inputs/NewFrontcoverFileUpload.php index c8c0250..0ec90b5 100644 --- a/src/GraphQL/Inputs/NewFrontcoverFileUpload.php +++ b/src/GraphQL/Inputs/NewFrontcoverFileUpload.php @@ -7,6 +7,110 @@ final class NewFrontcoverFileUpload extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getDeclaredMimeType() + { + return $this->get('declaredMimeType'); + } + + /** + * @param string $value + */ + public function setDeclaredMimeType($value): self + { + return $this->set('declaredMimeType', $value); + } + + public function hasDeclaredMimeType(): bool + { + return $this->has('declaredMimeType'); + } + + public function unsetDeclaredMimeType(): self + { + return $this->remove('declaredMimeType'); + } + + /** + * @return string + */ + public function getDeclaredExtension() + { + return $this->get('declaredExtension'); + } + + /** + * @param string $value + */ + public function setDeclaredExtension($value): self + { + return $this->set('declaredExtension', $value); + } + + public function hasDeclaredExtension(): bool + { + return $this->has('declaredExtension'); + } + + public function unsetDeclaredExtension(): self + { + return $this->remove('declaredExtension'); + } + + /** + * @return string + */ + public function getDeclaredSha256() + { + return $this->get('declaredSha256'); + } + + /** + * @param string $value + */ + public function setDeclaredSha256($value): self + { + return $this->set('declaredSha256', $value); + } + + public function hasDeclaredSha256(): bool + { + return $this->has('declaredSha256'); + } + + public function unsetDeclaredSha256(): self + { + return $this->remove('declaredSha256'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewFrontcoverFileUpload', [ diff --git a/src/GraphQL/Inputs/NewFunding.php b/src/GraphQL/Inputs/NewFunding.php index f0c2256..8798489 100644 --- a/src/GraphQL/Inputs/NewFunding.php +++ b/src/GraphQL/Inputs/NewFunding.php @@ -7,6 +7,162 @@ final class NewFunding extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + /** + * @param string $value + */ + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + + /** + * @return string|null + */ + public function getProgram() + { + return $this->get('program'); + } + + /** + * @param string|null $value + */ + public function setProgram($value): self + { + return $this->set('program', $value); + } + + public function hasProgram(): bool + { + return $this->has('program'); + } + + public function unsetProgram(): self + { + return $this->remove('program'); + } + + /** + * @return string|null + */ + public function getProjectName() + { + return $this->get('projectName'); + } + + /** + * @param string|null $value + */ + public function setProjectName($value): self + { + return $this->set('projectName', $value); + } + + public function hasProjectName(): bool + { + return $this->has('projectName'); + } + + public function unsetProjectName(): self + { + return $this->remove('projectName'); + } + + /** + * @return string|null + */ + public function getProjectShortname() + { + return $this->get('projectShortname'); + } + + /** + * @param string|null $value + */ + public function setProjectShortname($value): self + { + return $this->set('projectShortname', $value); + } + + public function hasProjectShortname(): bool + { + return $this->has('projectShortname'); + } + + public function unsetProjectShortname(): self + { + return $this->remove('projectShortname'); + } + + /** + * @return string|null + */ + public function getGrantNumber() + { + return $this->get('grantNumber'); + } + + /** + * @param string|null $value + */ + public function setGrantNumber($value): self + { + return $this->set('grantNumber', $value); + } + + public function hasGrantNumber(): bool + { + return $this->has('grantNumber'); + } + + public function unsetGrantNumber(): self + { + return $this->remove('grantNumber'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewFunding', [ diff --git a/src/GraphQL/Inputs/NewImprint.php b/src/GraphQL/Inputs/NewImprint.php index 209d962..261c1bc 100644 --- a/src/GraphQL/Inputs/NewImprint.php +++ b/src/GraphQL/Inputs/NewImprint.php @@ -7,6 +7,266 @@ final class NewImprint extends InputObject { + /** + * @return string + */ + public function getPublisherId() + { + return $this->get('publisherId'); + } + + /** + * @param string $value + */ + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + + /** + * @return string + */ + public function getImprintName() + { + return $this->get('imprintName'); + } + + /** + * @param string $value + */ + public function setImprintName($value): self + { + return $this->set('imprintName', $value); + } + + public function hasImprintName(): bool + { + return $this->has('imprintName'); + } + + public function unsetImprintName(): self + { + return $this->remove('imprintName'); + } + + /** + * @return string|null + */ + public function getImprintUrl() + { + return $this->get('imprintUrl'); + } + + /** + * @param string|null $value + */ + public function setImprintUrl($value): self + { + return $this->set('imprintUrl', $value); + } + + public function hasImprintUrl(): bool + { + return $this->has('imprintUrl'); + } + + public function unsetImprintUrl(): self + { + return $this->remove('imprintUrl'); + } + + /** + * @return string|null + */ + public function getCrossmarkDoi() + { + return $this->get('crossmarkDoi'); + } + + /** + * @param string|null $value + */ + public function setCrossmarkDoi($value): self + { + return $this->set('crossmarkDoi', $value); + } + + public function hasCrossmarkDoi(): bool + { + return $this->has('crossmarkDoi'); + } + + public function unsetCrossmarkDoi(): self + { + return $this->remove('crossmarkDoi'); + } + + /** + * @return string|null + */ + public function getS3Bucket() + { + return $this->get('s3Bucket'); + } + + /** + * @param string|null $value + */ + public function setS3Bucket($value): self + { + return $this->set('s3Bucket', $value); + } + + public function hasS3Bucket(): bool + { + return $this->has('s3Bucket'); + } + + public function unsetS3Bucket(): self + { + return $this->remove('s3Bucket'); + } + + /** + * @return string|null + */ + public function getCdnDomain() + { + return $this->get('cdnDomain'); + } + + /** + * @param string|null $value + */ + public function setCdnDomain($value): self + { + return $this->set('cdnDomain', $value); + } + + public function hasCdnDomain(): bool + { + return $this->has('cdnDomain'); + } + + public function unsetCdnDomain(): self + { + return $this->remove('cdnDomain'); + } + + /** + * @return string|null + */ + public function getCloudfrontDistId() + { + return $this->get('cloudfrontDistId'); + } + + /** + * @param string|null $value + */ + public function setCloudfrontDistId($value): self + { + return $this->set('cloudfrontDistId', $value); + } + + public function hasCloudfrontDistId(): bool + { + return $this->has('cloudfrontDistId'); + } + + public function unsetCloudfrontDistId(): self + { + return $this->remove('cloudfrontDistId'); + } + + /** + * @return string|null + */ + public function getDefaultCurrency() + { + return $this->get('defaultCurrency'); + } + + /** + * @param string|null $value + */ + public function setDefaultCurrency($value): self + { + return $this->set('defaultCurrency', $value); + } + + public function hasDefaultCurrency(): bool + { + return $this->has('defaultCurrency'); + } + + public function unsetDefaultCurrency(): self + { + return $this->remove('defaultCurrency'); + } + + /** + * @return string|null + */ + public function getDefaultPlace() + { + return $this->get('defaultPlace'); + } + + /** + * @param string|null $value + */ + public function setDefaultPlace($value): self + { + return $this->set('defaultPlace', $value); + } + + public function hasDefaultPlace(): bool + { + return $this->has('defaultPlace'); + } + + public function unsetDefaultPlace(): self + { + return $this->remove('defaultPlace'); + } + + /** + * @return string|null + */ + public function getDefaultLocale() + { + return $this->get('defaultLocale'); + } + + /** + * @param string|null $value + */ + public function setDefaultLocale($value): self + { + return $this->set('defaultLocale', $value); + } + + public function hasDefaultLocale(): bool + { + return $this->has('defaultLocale'); + } + + public function unsetDefaultLocale(): self + { + return $this->remove('defaultLocale'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewImprint', [ diff --git a/src/GraphQL/Inputs/NewInstitution.php b/src/GraphQL/Inputs/NewInstitution.php index 085ea9f..dd60afb 100644 --- a/src/GraphQL/Inputs/NewInstitution.php +++ b/src/GraphQL/Inputs/NewInstitution.php @@ -7,6 +7,110 @@ final class NewInstitution extends InputObject { + /** + * @return string + */ + public function getInstitutionName() + { + return $this->get('institutionName'); + } + + /** + * @param string $value + */ + public function setInstitutionName($value): self + { + return $this->set('institutionName', $value); + } + + public function hasInstitutionName(): bool + { + return $this->has('institutionName'); + } + + public function unsetInstitutionName(): self + { + return $this->remove('institutionName'); + } + + /** + * @return string|null + */ + public function getInstitutionDoi() + { + return $this->get('institutionDoi'); + } + + /** + * @param string|null $value + */ + public function setInstitutionDoi($value): self + { + return $this->set('institutionDoi', $value); + } + + public function hasInstitutionDoi(): bool + { + return $this->has('institutionDoi'); + } + + public function unsetInstitutionDoi(): self + { + return $this->remove('institutionDoi'); + } + + /** + * @return string|null + */ + public function getRor() + { + return $this->get('ror'); + } + + /** + * @param string|null $value + */ + public function setRor($value): self + { + return $this->set('ror', $value); + } + + public function hasRor(): bool + { + return $this->has('ror'); + } + + public function unsetRor(): self + { + return $this->remove('ror'); + } + + /** + * @return string|null + */ + public function getCountryCode() + { + return $this->get('countryCode'); + } + + /** + * @param string|null $value + */ + public function setCountryCode($value): self + { + return $this->set('countryCode', $value); + } + + public function hasCountryCode(): bool + { + return $this->has('countryCode'); + } + + public function unsetCountryCode(): self + { + return $this->remove('countryCode'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewInstitution', [ diff --git a/src/GraphQL/Inputs/NewIssue.php b/src/GraphQL/Inputs/NewIssue.php index 04b08c2..80c8527 100644 --- a/src/GraphQL/Inputs/NewIssue.php +++ b/src/GraphQL/Inputs/NewIssue.php @@ -7,6 +7,110 @@ final class NewIssue extends InputObject { + /** + * @return string + */ + public function getSeriesId() + { + return $this->get('seriesId'); + } + + /** + * @param string $value + */ + public function setSeriesId($value): self + { + return $this->set('seriesId', $value); + } + + public function hasSeriesId(): bool + { + return $this->has('seriesId'); + } + + public function unsetSeriesId(): self + { + return $this->remove('seriesId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return int + */ + public function getIssueOrdinal() + { + return $this->get('issueOrdinal'); + } + + /** + * @param int $value + */ + public function setIssueOrdinal($value): self + { + return $this->set('issueOrdinal', $value); + } + + public function hasIssueOrdinal(): bool + { + return $this->has('issueOrdinal'); + } + + public function unsetIssueOrdinal(): self + { + return $this->remove('issueOrdinal'); + } + + /** + * @return int|null + */ + public function getIssueNumber() + { + return $this->get('issueNumber'); + } + + /** + * @param int|null $value + */ + public function setIssueNumber($value): self + { + return $this->set('issueNumber', $value); + } + + public function hasIssueNumber(): bool + { + return $this->has('issueNumber'); + } + + public function unsetIssueNumber(): self + { + return $this->remove('issueNumber'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewIssue', [ diff --git a/src/GraphQL/Inputs/NewLanguage.php b/src/GraphQL/Inputs/NewLanguage.php index 7cc19fc..05c8f02 100644 --- a/src/GraphQL/Inputs/NewLanguage.php +++ b/src/GraphQL/Inputs/NewLanguage.php @@ -7,6 +7,84 @@ final class NewLanguage extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getLanguageCode() + { + return $this->get('languageCode'); + } + + /** + * @param string $value + */ + public function setLanguageCode($value): self + { + return $this->set('languageCode', $value); + } + + public function hasLanguageCode(): bool + { + return $this->has('languageCode'); + } + + public function unsetLanguageCode(): self + { + return $this->remove('languageCode'); + } + + /** + * @return string + */ + public function getLanguageRelation() + { + return $this->get('languageRelation'); + } + + /** + * @param string $value + */ + public function setLanguageRelation($value): self + { + return $this->set('languageRelation', $value); + } + + public function hasLanguageRelation(): bool + { + return $this->has('languageRelation'); + } + + public function unsetLanguageRelation(): self + { + return $this->remove('languageRelation'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewLanguage', [ diff --git a/src/GraphQL/Inputs/NewLocation.php b/src/GraphQL/Inputs/NewLocation.php index 70eba37..bfff528 100644 --- a/src/GraphQL/Inputs/NewLocation.php +++ b/src/GraphQL/Inputs/NewLocation.php @@ -7,6 +7,188 @@ final class NewLocation extends InputObject { + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string|null + */ + public function getLandingPage() + { + return $this->get('landingPage'); + } + + /** + * @param string|null $value + */ + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + + /** + * @return string|null + */ + public function getFullTextUrl() + { + return $this->get('fullTextUrl'); + } + + /** + * @param string|null $value + */ + public function setFullTextUrl($value): self + { + return $this->set('fullTextUrl', $value); + } + + public function hasFullTextUrl(): bool + { + return $this->has('fullTextUrl'); + } + + public function unsetFullTextUrl(): self + { + return $this->remove('fullTextUrl'); + } + + /** + * @return string + */ + public function getLocationPlatform() + { + return $this->get('locationPlatform'); + } + + /** + * @param string $value + */ + public function setLocationPlatform($value): self + { + return $this->set('locationPlatform', $value); + } + + public function hasLocationPlatform(): bool + { + return $this->has('locationPlatform'); + } + + public function unsetLocationPlatform(): self + { + return $this->remove('locationPlatform'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + + /** + * @return string|null + */ + public function getChecksum() + { + return $this->get('checksum'); + } + + /** + * @param string|null $value + */ + public function setChecksum($value): self + { + return $this->set('checksum', $value); + } + + public function hasChecksum(): bool + { + return $this->has('checksum'); + } + + public function unsetChecksum(): self + { + return $this->remove('checksum'); + } + + /** + * @return string|null + */ + public function getChecksumAlgorithm() + { + return $this->get('checksumAlgorithm'); + } + + /** + * @param string|null $value + */ + public function setChecksumAlgorithm($value): self + { + return $this->set('checksumAlgorithm', $value); + } + + public function hasChecksumAlgorithm(): bool + { + return $this->has('checksumAlgorithm'); + } + + public function unsetChecksumAlgorithm(): self + { + return $this->remove('checksumAlgorithm'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewLocation', [ diff --git a/src/GraphQL/Inputs/NewPrice.php b/src/GraphQL/Inputs/NewPrice.php index 6d49dbc..d7ec10a 100644 --- a/src/GraphQL/Inputs/NewPrice.php +++ b/src/GraphQL/Inputs/NewPrice.php @@ -7,6 +7,84 @@ final class NewPrice extends InputObject { + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string + */ + public function getCurrencyCode() + { + return $this->get('currencyCode'); + } + + /** + * @param string $value + */ + public function setCurrencyCode($value): self + { + return $this->set('currencyCode', $value); + } + + public function hasCurrencyCode(): bool + { + return $this->has('currencyCode'); + } + + public function unsetCurrencyCode(): self + { + return $this->remove('currencyCode'); + } + + /** + * @return float + */ + public function getUnitPrice() + { + return $this->get('unitPrice'); + } + + /** + * @param float $value + */ + public function setUnitPrice($value): self + { + return $this->set('unitPrice', $value); + } + + public function hasUnitPrice(): bool + { + return $this->has('unitPrice'); + } + + public function unsetUnitPrice(): self + { + return $this->remove('unitPrice'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPrice', [ diff --git a/src/GraphQL/Inputs/NewPublication.php b/src/GraphQL/Inputs/NewPublication.php index fa19b84..aa72439 100644 --- a/src/GraphQL/Inputs/NewPublication.php +++ b/src/GraphQL/Inputs/NewPublication.php @@ -7,6 +7,396 @@ final class NewPublication extends InputObject { + /** + * @return string + */ + public function getPublicationType() + { + return $this->get('publicationType'); + } + + /** + * @param string $value + */ + public function setPublicationType($value): self + { + return $this->set('publicationType', $value); + } + + public function hasPublicationType(): bool + { + return $this->has('publicationType'); + } + + public function unsetPublicationType(): self + { + return $this->remove('publicationType'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string|null + */ + public function getIsbn() + { + return $this->get('isbn'); + } + + /** + * @param string|null $value + */ + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + + /** + * @return float|null + */ + public function getWidthMm() + { + return $this->get('widthMm'); + } + + /** + * @param float|null $value + */ + public function setWidthMm($value): self + { + return $this->set('widthMm', $value); + } + + public function hasWidthMm(): bool + { + return $this->has('widthMm'); + } + + public function unsetWidthMm(): self + { + return $this->remove('widthMm'); + } + + /** + * @return float|null + */ + public function getWidthIn() + { + return $this->get('widthIn'); + } + + /** + * @param float|null $value + */ + public function setWidthIn($value): self + { + return $this->set('widthIn', $value); + } + + public function hasWidthIn(): bool + { + return $this->has('widthIn'); + } + + public function unsetWidthIn(): self + { + return $this->remove('widthIn'); + } + + /** + * @return float|null + */ + public function getHeightMm() + { + return $this->get('heightMm'); + } + + /** + * @param float|null $value + */ + public function setHeightMm($value): self + { + return $this->set('heightMm', $value); + } + + public function hasHeightMm(): bool + { + return $this->has('heightMm'); + } + + public function unsetHeightMm(): self + { + return $this->remove('heightMm'); + } + + /** + * @return float|null + */ + public function getHeightIn() + { + return $this->get('heightIn'); + } + + /** + * @param float|null $value + */ + public function setHeightIn($value): self + { + return $this->set('heightIn', $value); + } + + public function hasHeightIn(): bool + { + return $this->has('heightIn'); + } + + public function unsetHeightIn(): self + { + return $this->remove('heightIn'); + } + + /** + * @return float|null + */ + public function getDepthMm() + { + return $this->get('depthMm'); + } + + /** + * @param float|null $value + */ + public function setDepthMm($value): self + { + return $this->set('depthMm', $value); + } + + public function hasDepthMm(): bool + { + return $this->has('depthMm'); + } + + public function unsetDepthMm(): self + { + return $this->remove('depthMm'); + } + + /** + * @return float|null + */ + public function getDepthIn() + { + return $this->get('depthIn'); + } + + /** + * @param float|null $value + */ + public function setDepthIn($value): self + { + return $this->set('depthIn', $value); + } + + public function hasDepthIn(): bool + { + return $this->has('depthIn'); + } + + public function unsetDepthIn(): self + { + return $this->remove('depthIn'); + } + + /** + * @return float|null + */ + public function getWeightG() + { + return $this->get('weightG'); + } + + /** + * @param float|null $value + */ + public function setWeightG($value): self + { + return $this->set('weightG', $value); + } + + public function hasWeightG(): bool + { + return $this->has('weightG'); + } + + public function unsetWeightG(): self + { + return $this->remove('weightG'); + } + + /** + * @return float|null + */ + public function getWeightOz() + { + return $this->get('weightOz'); + } + + /** + * @param float|null $value + */ + public function setWeightOz($value): self + { + return $this->set('weightOz', $value); + } + + public function hasWeightOz(): bool + { + return $this->has('weightOz'); + } + + public function unsetWeightOz(): self + { + return $this->remove('weightOz'); + } + + /** + * @return string|null + */ + public function getAccessibilityStandard() + { + return $this->get('accessibilityStandard'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityStandard($value): self + { + return $this->set('accessibilityStandard', $value); + } + + public function hasAccessibilityStandard(): bool + { + return $this->has('accessibilityStandard'); + } + + public function unsetAccessibilityStandard(): self + { + return $this->remove('accessibilityStandard'); + } + + /** + * @return string|null + */ + public function getAccessibilityAdditionalStandard() + { + return $this->get('accessibilityAdditionalStandard'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityAdditionalStandard($value): self + { + return $this->set('accessibilityAdditionalStandard', $value); + } + + public function hasAccessibilityAdditionalStandard(): bool + { + return $this->has('accessibilityAdditionalStandard'); + } + + public function unsetAccessibilityAdditionalStandard(): self + { + return $this->remove('accessibilityAdditionalStandard'); + } + + /** + * @return string|null + */ + public function getAccessibilityException() + { + return $this->get('accessibilityException'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityException($value): self + { + return $this->set('accessibilityException', $value); + } + + public function hasAccessibilityException(): bool + { + return $this->has('accessibilityException'); + } + + public function unsetAccessibilityException(): self + { + return $this->remove('accessibilityException'); + } + + /** + * @return string|null + */ + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublication', [ diff --git a/src/GraphQL/Inputs/NewPublicationFileUpload.php b/src/GraphQL/Inputs/NewPublicationFileUpload.php index bb93357..bdf4605 100644 --- a/src/GraphQL/Inputs/NewPublicationFileUpload.php +++ b/src/GraphQL/Inputs/NewPublicationFileUpload.php @@ -7,6 +7,110 @@ final class NewPublicationFileUpload extends InputObject { + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string + */ + public function getDeclaredMimeType() + { + return $this->get('declaredMimeType'); + } + + /** + * @param string $value + */ + public function setDeclaredMimeType($value): self + { + return $this->set('declaredMimeType', $value); + } + + public function hasDeclaredMimeType(): bool + { + return $this->has('declaredMimeType'); + } + + public function unsetDeclaredMimeType(): self + { + return $this->remove('declaredMimeType'); + } + + /** + * @return string + */ + public function getDeclaredExtension() + { + return $this->get('declaredExtension'); + } + + /** + * @param string $value + */ + public function setDeclaredExtension($value): self + { + return $this->set('declaredExtension', $value); + } + + public function hasDeclaredExtension(): bool + { + return $this->has('declaredExtension'); + } + + public function unsetDeclaredExtension(): self + { + return $this->remove('declaredExtension'); + } + + /** + * @return string + */ + public function getDeclaredSha256() + { + return $this->get('declaredSha256'); + } + + /** + * @param string $value + */ + public function setDeclaredSha256($value): self + { + return $this->set('declaredSha256', $value); + } + + public function hasDeclaredSha256(): bool + { + return $this->has('declaredSha256'); + } + + public function unsetDeclaredSha256(): self + { + return $this->remove('declaredSha256'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublicationFileUpload', [ diff --git a/src/GraphQL/Inputs/NewPublisher.php b/src/GraphQL/Inputs/NewPublisher.php index 0a81616..67e0536 100644 --- a/src/GraphQL/Inputs/NewPublisher.php +++ b/src/GraphQL/Inputs/NewPublisher.php @@ -7,6 +7,162 @@ final class NewPublisher extends InputObject { + /** + * @return string + */ + public function getPublisherName() + { + return $this->get('publisherName'); + } + + /** + * @param string $value + */ + public function setPublisherName($value): self + { + return $this->set('publisherName', $value); + } + + public function hasPublisherName(): bool + { + return $this->has('publisherName'); + } + + public function unsetPublisherName(): self + { + return $this->remove('publisherName'); + } + + /** + * @return string|null + */ + public function getPublisherShortname() + { + return $this->get('publisherShortname'); + } + + /** + * @param string|null $value + */ + public function setPublisherShortname($value): self + { + return $this->set('publisherShortname', $value); + } + + public function hasPublisherShortname(): bool + { + return $this->has('publisherShortname'); + } + + public function unsetPublisherShortname(): self + { + return $this->remove('publisherShortname'); + } + + /** + * @return string|null + */ + public function getPublisherUrl() + { + return $this->get('publisherUrl'); + } + + /** + * @param string|null $value + */ + public function setPublisherUrl($value): self + { + return $this->set('publisherUrl', $value); + } + + public function hasPublisherUrl(): bool + { + return $this->has('publisherUrl'); + } + + public function unsetPublisherUrl(): self + { + return $this->remove('publisherUrl'); + } + + /** + * @return string|null + */ + public function getZitadelId() + { + return $this->get('zitadelId'); + } + + /** + * @param string|null $value + */ + public function setZitadelId($value): self + { + return $this->set('zitadelId', $value); + } + + public function hasZitadelId(): bool + { + return $this->has('zitadelId'); + } + + public function unsetZitadelId(): self + { + return $this->remove('zitadelId'); + } + + /** + * @return string|null + */ + public function getAccessibilityStatement() + { + return $this->get('accessibilityStatement'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityStatement($value): self + { + return $this->set('accessibilityStatement', $value); + } + + public function hasAccessibilityStatement(): bool + { + return $this->has('accessibilityStatement'); + } + + public function unsetAccessibilityStatement(): self + { + return $this->remove('accessibilityStatement'); + } + + /** + * @return string|null + */ + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewPublisher', [ diff --git a/src/GraphQL/Inputs/NewReference.php b/src/GraphQL/Inputs/NewReference.php index 5632707..0067086 100644 --- a/src/GraphQL/Inputs/NewReference.php +++ b/src/GraphQL/Inputs/NewReference.php @@ -7,6 +7,578 @@ final class NewReference extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return int + */ + public function getReferenceOrdinal() + { + return $this->get('referenceOrdinal'); + } + + /** + * @param int $value + */ + public function setReferenceOrdinal($value): self + { + return $this->set('referenceOrdinal', $value); + } + + public function hasReferenceOrdinal(): bool + { + return $this->has('referenceOrdinal'); + } + + public function unsetReferenceOrdinal(): self + { + return $this->remove('referenceOrdinal'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getUnstructuredCitation() + { + return $this->get('unstructuredCitation'); + } + + /** + * @param string|null $value + */ + public function setUnstructuredCitation($value): self + { + return $this->set('unstructuredCitation', $value); + } + + public function hasUnstructuredCitation(): bool + { + return $this->has('unstructuredCitation'); + } + + public function unsetUnstructuredCitation(): self + { + return $this->remove('unstructuredCitation'); + } + + /** + * @return string|null + */ + public function getIssn() + { + return $this->get('issn'); + } + + /** + * @param string|null $value + */ + public function setIssn($value): self + { + return $this->set('issn', $value); + } + + public function hasIssn(): bool + { + return $this->has('issn'); + } + + public function unsetIssn(): self + { + return $this->remove('issn'); + } + + /** + * @return string|null + */ + public function getIsbn() + { + return $this->get('isbn'); + } + + /** + * @param string|null $value + */ + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + + /** + * @return string|null + */ + public function getJournalTitle() + { + return $this->get('journalTitle'); + } + + /** + * @param string|null $value + */ + public function setJournalTitle($value): self + { + return $this->set('journalTitle', $value); + } + + public function hasJournalTitle(): bool + { + return $this->has('journalTitle'); + } + + public function unsetJournalTitle(): self + { + return $this->remove('journalTitle'); + } + + /** + * @return string|null + */ + public function getArticleTitle() + { + return $this->get('articleTitle'); + } + + /** + * @param string|null $value + */ + public function setArticleTitle($value): self + { + return $this->set('articleTitle', $value); + } + + public function hasArticleTitle(): bool + { + return $this->has('articleTitle'); + } + + public function unsetArticleTitle(): self + { + return $this->remove('articleTitle'); + } + + /** + * @return string|null + */ + public function getSeriesTitle() + { + return $this->get('seriesTitle'); + } + + /** + * @param string|null $value + */ + public function setSeriesTitle($value): self + { + return $this->set('seriesTitle', $value); + } + + public function hasSeriesTitle(): bool + { + return $this->has('seriesTitle'); + } + + public function unsetSeriesTitle(): self + { + return $this->remove('seriesTitle'); + } + + /** + * @return string|null + */ + public function getVolumeTitle() + { + return $this->get('volumeTitle'); + } + + /** + * @param string|null $value + */ + public function setVolumeTitle($value): self + { + return $this->set('volumeTitle', $value); + } + + public function hasVolumeTitle(): bool + { + return $this->has('volumeTitle'); + } + + public function unsetVolumeTitle(): self + { + return $this->remove('volumeTitle'); + } + + /** + * @return int|null + */ + public function getEdition() + { + return $this->get('edition'); + } + + /** + * @param int|null $value + */ + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + + /** + * @return string|null + */ + public function getAuthor() + { + return $this->get('author'); + } + + /** + * @param string|null $value + */ + public function setAuthor($value): self + { + return $this->set('author', $value); + } + + public function hasAuthor(): bool + { + return $this->has('author'); + } + + public function unsetAuthor(): self + { + return $this->remove('author'); + } + + /** + * @return string|null + */ + public function getVolume() + { + return $this->get('volume'); + } + + /** + * @param string|null $value + */ + public function setVolume($value): self + { + return $this->set('volume', $value); + } + + public function hasVolume(): bool + { + return $this->has('volume'); + } + + public function unsetVolume(): self + { + return $this->remove('volume'); + } + + /** + * @return string|null + */ + public function getIssue() + { + return $this->get('issue'); + } + + /** + * @param string|null $value + */ + public function setIssue($value): self + { + return $this->set('issue', $value); + } + + public function hasIssue(): bool + { + return $this->has('issue'); + } + + public function unsetIssue(): self + { + return $this->remove('issue'); + } + + /** + * @return string|null + */ + public function getFirstPage() + { + return $this->get('firstPage'); + } + + /** + * @param string|null $value + */ + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + + /** + * @return string|null + */ + public function getComponentNumber() + { + return $this->get('componentNumber'); + } + + /** + * @param string|null $value + */ + public function setComponentNumber($value): self + { + return $this->set('componentNumber', $value); + } + + public function hasComponentNumber(): bool + { + return $this->has('componentNumber'); + } + + public function unsetComponentNumber(): self + { + return $this->remove('componentNumber'); + } + + /** + * @return string|null + */ + public function getStandardDesignator() + { + return $this->get('standardDesignator'); + } + + /** + * @param string|null $value + */ + public function setStandardDesignator($value): self + { + return $this->set('standardDesignator', $value); + } + + public function hasStandardDesignator(): bool + { + return $this->has('standardDesignator'); + } + + public function unsetStandardDesignator(): self + { + return $this->remove('standardDesignator'); + } + + /** + * @return string|null + */ + public function getStandardsBodyName() + { + return $this->get('standardsBodyName'); + } + + /** + * @param string|null $value + */ + public function setStandardsBodyName($value): self + { + return $this->set('standardsBodyName', $value); + } + + public function hasStandardsBodyName(): bool + { + return $this->has('standardsBodyName'); + } + + public function unsetStandardsBodyName(): self + { + return $this->remove('standardsBodyName'); + } + + /** + * @return string|null + */ + public function getStandardsBodyAcronym() + { + return $this->get('standardsBodyAcronym'); + } + + /** + * @param string|null $value + */ + public function setStandardsBodyAcronym($value): self + { + return $this->set('standardsBodyAcronym', $value); + } + + public function hasStandardsBodyAcronym(): bool + { + return $this->has('standardsBodyAcronym'); + } + + public function unsetStandardsBodyAcronym(): self + { + return $this->remove('standardsBodyAcronym'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + /** + * @param string|null $value + */ + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + + /** + * @return string|null + */ + public function getRetrievalDate() + { + return $this->get('retrievalDate'); + } + + /** + * @param string|null $value + */ + public function setRetrievalDate($value): self + { + return $this->set('retrievalDate', $value); + } + + public function hasRetrievalDate(): bool + { + return $this->has('retrievalDate'); + } + + public function unsetRetrievalDate(): self + { + return $this->remove('retrievalDate'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewReference', [ diff --git a/src/GraphQL/Inputs/NewSeries.php b/src/GraphQL/Inputs/NewSeries.php index 3680359..5e5878e 100644 --- a/src/GraphQL/Inputs/NewSeries.php +++ b/src/GraphQL/Inputs/NewSeries.php @@ -7,6 +7,214 @@ final class NewSeries extends InputObject { + /** + * @return string + */ + public function getSeriesType() + { + return $this->get('seriesType'); + } + + /** + * @param string $value + */ + public function setSeriesType($value): self + { + return $this->set('seriesType', $value); + } + + public function hasSeriesType(): bool + { + return $this->has('seriesType'); + } + + public function unsetSeriesType(): self + { + return $this->remove('seriesType'); + } + + /** + * @return string + */ + public function getSeriesName() + { + return $this->get('seriesName'); + } + + /** + * @param string $value + */ + public function setSeriesName($value): self + { + return $this->set('seriesName', $value); + } + + public function hasSeriesName(): bool + { + return $this->has('seriesName'); + } + + public function unsetSeriesName(): self + { + return $this->remove('seriesName'); + } + + /** + * @return string|null + */ + public function getIssnPrint() + { + return $this->get('issnPrint'); + } + + /** + * @param string|null $value + */ + public function setIssnPrint($value): self + { + return $this->set('issnPrint', $value); + } + + public function hasIssnPrint(): bool + { + return $this->has('issnPrint'); + } + + public function unsetIssnPrint(): self + { + return $this->remove('issnPrint'); + } + + /** + * @return string|null + */ + public function getIssnDigital() + { + return $this->get('issnDigital'); + } + + /** + * @param string|null $value + */ + public function setIssnDigital($value): self + { + return $this->set('issnDigital', $value); + } + + public function hasIssnDigital(): bool + { + return $this->has('issnDigital'); + } + + public function unsetIssnDigital(): self + { + return $this->remove('issnDigital'); + } + + /** + * @return string|null + */ + public function getSeriesUrl() + { + return $this->get('seriesUrl'); + } + + /** + * @param string|null $value + */ + public function setSeriesUrl($value): self + { + return $this->set('seriesUrl', $value); + } + + public function hasSeriesUrl(): bool + { + return $this->has('seriesUrl'); + } + + public function unsetSeriesUrl(): self + { + return $this->remove('seriesUrl'); + } + + /** + * @return string|null + */ + public function getSeriesDescription() + { + return $this->get('seriesDescription'); + } + + /** + * @param string|null $value + */ + public function setSeriesDescription($value): self + { + return $this->set('seriesDescription', $value); + } + + public function hasSeriesDescription(): bool + { + return $this->has('seriesDescription'); + } + + public function unsetSeriesDescription(): self + { + return $this->remove('seriesDescription'); + } + + /** + * @return string|null + */ + public function getSeriesCfpUrl() + { + return $this->get('seriesCfpUrl'); + } + + /** + * @param string|null $value + */ + public function setSeriesCfpUrl($value): self + { + return $this->set('seriesCfpUrl', $value); + } + + public function hasSeriesCfpUrl(): bool + { + return $this->has('seriesCfpUrl'); + } + + public function unsetSeriesCfpUrl(): self + { + return $this->remove('seriesCfpUrl'); + } + + /** + * @return string + */ + public function getImprintId() + { + return $this->get('imprintId'); + } + + /** + * @param string $value + */ + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewSeries', [ diff --git a/src/GraphQL/Inputs/NewSubject.php b/src/GraphQL/Inputs/NewSubject.php index 6b7f12f..7113de8 100644 --- a/src/GraphQL/Inputs/NewSubject.php +++ b/src/GraphQL/Inputs/NewSubject.php @@ -7,6 +7,110 @@ final class NewSubject extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getSubjectType() + { + return $this->get('subjectType'); + } + + /** + * @param string $value + */ + public function setSubjectType($value): self + { + return $this->set('subjectType', $value); + } + + public function hasSubjectType(): bool + { + return $this->has('subjectType'); + } + + public function unsetSubjectType(): self + { + return $this->remove('subjectType'); + } + + /** + * @return string + */ + public function getSubjectCode() + { + return $this->get('subjectCode'); + } + + /** + * @param string $value + */ + public function setSubjectCode($value): self + { + return $this->set('subjectCode', $value); + } + + public function hasSubjectCode(): bool + { + return $this->has('subjectCode'); + } + + public function unsetSubjectCode(): self + { + return $this->remove('subjectCode'); + } + + /** + * @return int + */ + public function getSubjectOrdinal() + { + return $this->get('subjectOrdinal'); + } + + /** + * @param int $value + */ + public function setSubjectOrdinal($value): self + { + return $this->set('subjectOrdinal', $value); + } + + public function hasSubjectOrdinal(): bool + { + return $this->has('subjectOrdinal'); + } + + public function unsetSubjectOrdinal(): self + { + return $this->remove('subjectOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewSubject', [ diff --git a/src/GraphQL/Inputs/NewTitle.php b/src/GraphQL/Inputs/NewTitle.php index 1650cc7..934d75f 100644 --- a/src/GraphQL/Inputs/NewTitle.php +++ b/src/GraphQL/Inputs/NewTitle.php @@ -7,6 +7,162 @@ final class NewTitle extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + + /** + * @return string + */ + public function getFullTitle() + { + return $this->get('fullTitle'); + } + + /** + * @param string $value + */ + public function setFullTitle($value): self + { + return $this->set('fullTitle', $value); + } + + public function hasFullTitle(): bool + { + return $this->has('fullTitle'); + } + + public function unsetFullTitle(): self + { + return $this->remove('fullTitle'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getSubtitle() + { + return $this->get('subtitle'); + } + + /** + * @param string|null $value + */ + public function setSubtitle($value): self + { + return $this->set('subtitle', $value); + } + + public function hasSubtitle(): bool + { + return $this->has('subtitle'); + } + + public function unsetSubtitle(): self + { + return $this->remove('subtitle'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewTitle', [ diff --git a/src/GraphQL/Inputs/NewWork.php b/src/GraphQL/Inputs/NewWork.php index a71b7d3..4090fb2 100644 --- a/src/GraphQL/Inputs/NewWork.php +++ b/src/GraphQL/Inputs/NewWork.php @@ -7,6 +7,760 @@ final class NewWork extends InputObject { + /** + * @return string + */ + public function getWorkType() + { + return $this->get('workType'); + } + + /** + * @param string $value + */ + public function setWorkType($value): self + { + return $this->set('workType', $value); + } + + public function hasWorkType(): bool + { + return $this->has('workType'); + } + + public function unsetWorkType(): self + { + return $this->remove('workType'); + } + + /** + * @return string + */ + public function getWorkStatus() + { + return $this->get('workStatus'); + } + + /** + * @param string $value + */ + public function setWorkStatus($value): self + { + return $this->set('workStatus', $value); + } + + public function hasWorkStatus(): bool + { + return $this->has('workStatus'); + } + + public function unsetWorkStatus(): self + { + return $this->remove('workStatus'); + } + + /** + * @return string|null + */ + public function getReference() + { + return $this->get('reference'); + } + + /** + * @param string|null $value + */ + public function setReference($value): self + { + return $this->set('reference', $value); + } + + public function hasReference(): bool + { + return $this->has('reference'); + } + + public function unsetReference(): self + { + return $this->remove('reference'); + } + + /** + * @return int|null + */ + public function getEdition() + { + return $this->get('edition'); + } + + /** + * @param int|null $value + */ + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + + /** + * @return string + */ + public function getImprintId() + { + return $this->get('imprintId'); + } + + /** + * @param string $value + */ + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + /** + * @param string|null $value + */ + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + + /** + * @return string|null + */ + public function getWithdrawnDate() + { + return $this->get('withdrawnDate'); + } + + /** + * @param string|null $value + */ + public function setWithdrawnDate($value): self + { + return $this->set('withdrawnDate', $value); + } + + public function hasWithdrawnDate(): bool + { + return $this->has('withdrawnDate'); + } + + public function unsetWithdrawnDate(): self + { + return $this->remove('withdrawnDate'); + } + + /** + * @return string|null + */ + public function getPlace() + { + return $this->get('place'); + } + + /** + * @param string|null $value + */ + public function setPlace($value): self + { + return $this->set('place', $value); + } + + public function hasPlace(): bool + { + return $this->has('place'); + } + + public function unsetPlace(): self + { + return $this->remove('place'); + } + + /** + * @return int|null + */ + public function getPageCount() + { + return $this->get('pageCount'); + } + + /** + * @param int|null $value + */ + public function setPageCount($value): self + { + return $this->set('pageCount', $value); + } + + public function hasPageCount(): bool + { + return $this->has('pageCount'); + } + + public function unsetPageCount(): self + { + return $this->remove('pageCount'); + } + + /** + * @return string|null + */ + public function getPageBreakdown() + { + return $this->get('pageBreakdown'); + } + + /** + * @param string|null $value + */ + public function setPageBreakdown($value): self + { + return $this->set('pageBreakdown', $value); + } + + public function hasPageBreakdown(): bool + { + return $this->has('pageBreakdown'); + } + + public function unsetPageBreakdown(): self + { + return $this->remove('pageBreakdown'); + } + + /** + * @return int|null + */ + public function getImageCount() + { + return $this->get('imageCount'); + } + + /** + * @param int|null $value + */ + public function setImageCount($value): self + { + return $this->set('imageCount', $value); + } + + public function hasImageCount(): bool + { + return $this->has('imageCount'); + } + + public function unsetImageCount(): self + { + return $this->remove('imageCount'); + } + + /** + * @return int|null + */ + public function getTableCount() + { + return $this->get('tableCount'); + } + + /** + * @param int|null $value + */ + public function setTableCount($value): self + { + return $this->set('tableCount', $value); + } + + public function hasTableCount(): bool + { + return $this->has('tableCount'); + } + + public function unsetTableCount(): self + { + return $this->remove('tableCount'); + } + + /** + * @return int|null + */ + public function getAudioCount() + { + return $this->get('audioCount'); + } + + /** + * @param int|null $value + */ + public function setAudioCount($value): self + { + return $this->set('audioCount', $value); + } + + public function hasAudioCount(): bool + { + return $this->has('audioCount'); + } + + public function unsetAudioCount(): self + { + return $this->remove('audioCount'); + } + + /** + * @return int|null + */ + public function getVideoCount() + { + return $this->get('videoCount'); + } + + /** + * @param int|null $value + */ + public function setVideoCount($value): self + { + return $this->set('videoCount', $value); + } + + public function hasVideoCount(): bool + { + return $this->has('videoCount'); + } + + public function unsetVideoCount(): self + { + return $this->remove('videoCount'); + } + + /** + * @return string|null + */ + public function getLicense() + { + return $this->get('license'); + } + + /** + * @param string|null $value + */ + public function setLicense($value): self + { + return $this->set('license', $value); + } + + public function hasLicense(): bool + { + return $this->has('license'); + } + + public function unsetLicense(): self + { + return $this->remove('license'); + } + + /** + * @return string|null + */ + public function getCopyrightHolder() + { + return $this->get('copyrightHolder'); + } + + /** + * @param string|null $value + */ + public function setCopyrightHolder($value): self + { + return $this->set('copyrightHolder', $value); + } + + public function hasCopyrightHolder(): bool + { + return $this->has('copyrightHolder'); + } + + public function unsetCopyrightHolder(): self + { + return $this->remove('copyrightHolder'); + } + + /** + * @return string|null + */ + public function getLandingPage() + { + return $this->get('landingPage'); + } + + /** + * @param string|null $value + */ + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + + /** + * @return string|null + */ + public function getLccn() + { + return $this->get('lccn'); + } + + /** + * @param string|null $value + */ + public function setLccn($value): self + { + return $this->set('lccn', $value); + } + + public function hasLccn(): bool + { + return $this->has('lccn'); + } + + public function unsetLccn(): self + { + return $this->remove('lccn'); + } + + /** + * @return string|null + */ + public function getOclc() + { + return $this->get('oclc'); + } + + /** + * @param string|null $value + */ + public function setOclc($value): self + { + return $this->set('oclc', $value); + } + + public function hasOclc(): bool + { + return $this->has('oclc'); + } + + public function unsetOclc(): self + { + return $this->remove('oclc'); + } + + /** + * @return string|null + */ + public function getGeneralNote() + { + return $this->get('generalNote'); + } + + /** + * @param string|null $value + */ + public function setGeneralNote($value): self + { + return $this->set('generalNote', $value); + } + + public function hasGeneralNote(): bool + { + return $this->has('generalNote'); + } + + public function unsetGeneralNote(): self + { + return $this->remove('generalNote'); + } + + /** + * @return string|null + */ + public function getBibliographyNote() + { + return $this->get('bibliographyNote'); + } + + /** + * @param string|null $value + */ + public function setBibliographyNote($value): self + { + return $this->set('bibliographyNote', $value); + } + + public function hasBibliographyNote(): bool + { + return $this->has('bibliographyNote'); + } + + public function unsetBibliographyNote(): self + { + return $this->remove('bibliographyNote'); + } + + /** + * @return string|null + */ + public function getToc() + { + return $this->get('toc'); + } + + /** + * @param string|null $value + */ + public function setToc($value): self + { + return $this->set('toc', $value); + } + + public function hasToc(): bool + { + return $this->has('toc'); + } + + public function unsetToc(): self + { + return $this->remove('toc'); + } + + /** + * @return string|null + */ + public function getResourcesDescription() + { + return $this->get('resourcesDescription'); + } + + /** + * @param string|null $value + */ + public function setResourcesDescription($value): self + { + return $this->set('resourcesDescription', $value); + } + + public function hasResourcesDescription(): bool + { + return $this->has('resourcesDescription'); + } + + public function unsetResourcesDescription(): self + { + return $this->remove('resourcesDescription'); + } + + /** + * @return string|null + */ + public function getCoverUrl() + { + return $this->get('coverUrl'); + } + + /** + * @param string|null $value + */ + public function setCoverUrl($value): self + { + return $this->set('coverUrl', $value); + } + + public function hasCoverUrl(): bool + { + return $this->has('coverUrl'); + } + + public function unsetCoverUrl(): self + { + return $this->remove('coverUrl'); + } + + /** + * @return string|null + */ + public function getCoverCaption() + { + return $this->get('coverCaption'); + } + + /** + * @param string|null $value + */ + public function setCoverCaption($value): self + { + return $this->set('coverCaption', $value); + } + + public function hasCoverCaption(): bool + { + return $this->has('coverCaption'); + } + + public function unsetCoverCaption(): self + { + return $this->remove('coverCaption'); + } + + /** + * @return string|null + */ + public function getFirstPage() + { + return $this->get('firstPage'); + } + + /** + * @param string|null $value + */ + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + + /** + * @return string|null + */ + public function getLastPage() + { + return $this->get('lastPage'); + } + + /** + * @param string|null $value + */ + public function setLastPage($value): self + { + return $this->set('lastPage', $value); + } + + public function hasLastPage(): bool + { + return $this->has('lastPage'); + } + + public function unsetLastPage(): self + { + return $this->remove('lastPage'); + } + + /** + * @return string|null + */ + public function getPageInterval() + { + return $this->get('pageInterval'); + } + + /** + * @param string|null $value + */ + public function setPageInterval($value): self + { + return $this->set('pageInterval', $value); + } + + public function hasPageInterval(): bool + { + return $this->has('pageInterval'); + } + + public function unsetPageInterval(): self + { + return $this->remove('pageInterval'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWork', [ diff --git a/src/GraphQL/Inputs/NewWorkFeaturedVideo.php b/src/GraphQL/Inputs/NewWorkFeaturedVideo.php index bf28b1d..f0e9dbf 100644 --- a/src/GraphQL/Inputs/NewWorkFeaturedVideo.php +++ b/src/GraphQL/Inputs/NewWorkFeaturedVideo.php @@ -7,6 +7,136 @@ final class NewWorkFeaturedVideo extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return int + */ + public function getWidth() + { + return $this->get('width'); + } + + /** + * @param int $value + */ + public function setWidth($value): self + { + return $this->set('width', $value); + } + + public function hasWidth(): bool + { + return $this->has('width'); + } + + public function unsetWidth(): self + { + return $this->remove('width'); + } + + /** + * @return int + */ + public function getHeight() + { + return $this->get('height'); + } + + /** + * @param int $value + */ + public function setHeight($value): self + { + return $this->set('height', $value); + } + + public function hasHeight(): bool + { + return $this->has('height'); + } + + public function unsetHeight(): self + { + return $this->remove('height'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkFeaturedVideo', [ diff --git a/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php b/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php index dbff1da..fb0ebc6 100644 --- a/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php +++ b/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php @@ -7,6 +7,110 @@ final class NewWorkFeaturedVideoFileUpload extends InputObject { + /** + * @return string + */ + public function getWorkFeaturedVideoId() + { + return $this->get('workFeaturedVideoId'); + } + + /** + * @param string $value + */ + public function setWorkFeaturedVideoId($value): self + { + return $this->set('workFeaturedVideoId', $value); + } + + public function hasWorkFeaturedVideoId(): bool + { + return $this->has('workFeaturedVideoId'); + } + + public function unsetWorkFeaturedVideoId(): self + { + return $this->remove('workFeaturedVideoId'); + } + + /** + * @return string + */ + public function getDeclaredMimeType() + { + return $this->get('declaredMimeType'); + } + + /** + * @param string $value + */ + public function setDeclaredMimeType($value): self + { + return $this->set('declaredMimeType', $value); + } + + public function hasDeclaredMimeType(): bool + { + return $this->has('declaredMimeType'); + } + + public function unsetDeclaredMimeType(): self + { + return $this->remove('declaredMimeType'); + } + + /** + * @return string + */ + public function getDeclaredExtension() + { + return $this->get('declaredExtension'); + } + + /** + * @param string $value + */ + public function setDeclaredExtension($value): self + { + return $this->set('declaredExtension', $value); + } + + public function hasDeclaredExtension(): bool + { + return $this->has('declaredExtension'); + } + + public function unsetDeclaredExtension(): self + { + return $this->remove('declaredExtension'); + } + + /** + * @return string + */ + public function getDeclaredSha256() + { + return $this->get('declaredSha256'); + } + + /** + * @param string $value + */ + public function setDeclaredSha256($value): self + { + return $this->set('declaredSha256', $value); + } + + public function hasDeclaredSha256(): bool + { + return $this->has('declaredSha256'); + } + + public function unsetDeclaredSha256(): self + { + return $this->remove('declaredSha256'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkFeaturedVideoFileUpload', [ diff --git a/src/GraphQL/Inputs/NewWorkRelation.php b/src/GraphQL/Inputs/NewWorkRelation.php index 21f0f99..05756f7 100644 --- a/src/GraphQL/Inputs/NewWorkRelation.php +++ b/src/GraphQL/Inputs/NewWorkRelation.php @@ -7,6 +7,110 @@ final class NewWorkRelation extends InputObject { + /** + * @return string + */ + public function getRelatorWorkId() + { + return $this->get('relatorWorkId'); + } + + /** + * @param string $value + */ + public function setRelatorWorkId($value): self + { + return $this->set('relatorWorkId', $value); + } + + public function hasRelatorWorkId(): bool + { + return $this->has('relatorWorkId'); + } + + public function unsetRelatorWorkId(): self + { + return $this->remove('relatorWorkId'); + } + + /** + * @return string + */ + public function getRelatedWorkId() + { + return $this->get('relatedWorkId'); + } + + /** + * @param string $value + */ + public function setRelatedWorkId($value): self + { + return $this->set('relatedWorkId', $value); + } + + public function hasRelatedWorkId(): bool + { + return $this->has('relatedWorkId'); + } + + public function unsetRelatedWorkId(): self + { + return $this->remove('relatedWorkId'); + } + + /** + * @return string + */ + public function getRelationType() + { + return $this->get('relationType'); + } + + /** + * @param string $value + */ + public function setRelationType($value): self + { + return $this->set('relationType', $value); + } + + public function hasRelationType(): bool + { + return $this->has('relationType'); + } + + public function unsetRelationType(): self + { + return $this->remove('relationType'); + } + + /** + * @return int + */ + public function getRelationOrdinal() + { + return $this->get('relationOrdinal'); + } + + /** + * @param int $value + */ + public function setRelationOrdinal($value): self + { + return $this->set('relationOrdinal', $value); + } + + public function hasRelationOrdinal(): bool + { + return $this->has('relationOrdinal'); + } + + public function unsetRelationOrdinal(): self + { + return $this->remove('relationOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('NewWorkRelation', [ diff --git a/src/GraphQL/Inputs/PatchAbstract.php b/src/GraphQL/Inputs/PatchAbstract.php index 9250996..b456f84 100644 --- a/src/GraphQL/Inputs/PatchAbstract.php +++ b/src/GraphQL/Inputs/PatchAbstract.php @@ -7,6 +7,162 @@ final class PatchAbstract extends InputObject { + /** + * @return string + */ + public function getAbstractId() + { + return $this->get('abstractId'); + } + + /** + * @param string $value + */ + public function setAbstractId($value): self + { + return $this->set('abstractId', $value); + } + + public function hasAbstractId(): bool + { + return $this->has('abstractId'); + } + + public function unsetAbstractId(): self + { + return $this->remove('abstractId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getContent() + { + return $this->get('content'); + } + + /** + * @param string $value + */ + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + + /** + * @return string + */ + public function getAbstractType() + { + return $this->get('abstractType'); + } + + /** + * @param string $value + */ + public function setAbstractType($value): self + { + return $this->set('abstractType', $value); + } + + public function hasAbstractType(): bool + { + return $this->has('abstractType'); + } + + public function unsetAbstractType(): self + { + return $this->remove('abstractType'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAbstract', [ diff --git a/src/GraphQL/Inputs/PatchAdditionalResource.php b/src/GraphQL/Inputs/PatchAdditionalResource.php index 428e127..04fef62 100644 --- a/src/GraphQL/Inputs/PatchAdditionalResource.php +++ b/src/GraphQL/Inputs/PatchAdditionalResource.php @@ -7,6 +7,292 @@ final class PatchAdditionalResource extends InputObject { + /** + * @return string + */ + public function getAdditionalResourceId() + { + return $this->get('additionalResourceId'); + } + + /** + * @param string $value + */ + public function setAdditionalResourceId($value): self + { + return $this->set('additionalResourceId', $value); + } + + public function hasAdditionalResourceId(): bool + { + return $this->has('additionalResourceId'); + } + + public function unsetAdditionalResourceId(): self + { + return $this->remove('additionalResourceId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getDescription() + { + return $this->get('description'); + } + + /** + * @param string|null $value + */ + public function setDescription($value): self + { + return $this->set('description', $value); + } + + public function hasDescription(): bool + { + return $this->has('description'); + } + + public function unsetDescription(): self + { + return $this->remove('description'); + } + + /** + * @return string|null + */ + public function getAttribution() + { + return $this->get('attribution'); + } + + /** + * @param string|null $value + */ + public function setAttribution($value): self + { + return $this->set('attribution', $value); + } + + public function hasAttribution(): bool + { + return $this->has('attribution'); + } + + public function unsetAttribution(): self + { + return $this->remove('attribution'); + } + + /** + * @return string + */ + public function getResourceType() + { + return $this->get('resourceType'); + } + + /** + * @param string $value + */ + public function setResourceType($value): self + { + return $this->set('resourceType', $value); + } + + public function hasResourceType(): bool + { + return $this->has('resourceType'); + } + + public function unsetResourceType(): self + { + return $this->remove('resourceType'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getHandle() + { + return $this->get('handle'); + } + + /** + * @param string|null $value + */ + public function setHandle($value): self + { + return $this->set('handle', $value); + } + + public function hasHandle(): bool + { + return $this->has('handle'); + } + + public function unsetHandle(): self + { + return $this->remove('handle'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getDate() + { + return $this->get('date'); + } + + /** + * @param string|null $value + */ + public function setDate($value): self + { + return $this->set('date', $value); + } + + public function hasDate(): bool + { + return $this->has('date'); + } + + public function unsetDate(): self + { + return $this->remove('date'); + } + + /** + * @return int + */ + public function getResourceOrdinal() + { + return $this->get('resourceOrdinal'); + } + + /** + * @param int $value + */ + public function setResourceOrdinal($value): self + { + return $this->set('resourceOrdinal', $value); + } + + public function hasResourceOrdinal(): bool + { + return $this->has('resourceOrdinal'); + } + + public function unsetResourceOrdinal(): self + { + return $this->remove('resourceOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAdditionalResource', [ diff --git a/src/GraphQL/Inputs/PatchAffiliation.php b/src/GraphQL/Inputs/PatchAffiliation.php index 0ac83c3..6dc76ce 100644 --- a/src/GraphQL/Inputs/PatchAffiliation.php +++ b/src/GraphQL/Inputs/PatchAffiliation.php @@ -7,6 +7,136 @@ final class PatchAffiliation extends InputObject { + /** + * @return string + */ + public function getAffiliationId() + { + return $this->get('affiliationId'); + } + + /** + * @param string $value + */ + public function setAffiliationId($value): self + { + return $this->set('affiliationId', $value); + } + + public function hasAffiliationId(): bool + { + return $this->has('affiliationId'); + } + + public function unsetAffiliationId(): self + { + return $this->remove('affiliationId'); + } + + /** + * @return string + */ + public function getContributionId() + { + return $this->get('contributionId'); + } + + /** + * @param string $value + */ + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + + /** + * @return string + */ + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + /** + * @param string $value + */ + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + + /** + * @return int + */ + public function getAffiliationOrdinal() + { + return $this->get('affiliationOrdinal'); + } + + /** + * @param int $value + */ + public function setAffiliationOrdinal($value): self + { + return $this->set('affiliationOrdinal', $value); + } + + public function hasAffiliationOrdinal(): bool + { + return $this->has('affiliationOrdinal'); + } + + public function unsetAffiliationOrdinal(): self + { + return $this->remove('affiliationOrdinal'); + } + + /** + * @return string|null + */ + public function getPosition() + { + return $this->get('position'); + } + + /** + * @param string|null $value + */ + public function setPosition($value): self + { + return $this->set('position', $value); + } + + public function hasPosition(): bool + { + return $this->has('position'); + } + + public function unsetPosition(): self + { + return $this->remove('position'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAffiliation', [ diff --git a/src/GraphQL/Inputs/PatchAward.php b/src/GraphQL/Inputs/PatchAward.php index 78ed492..92abd66 100644 --- a/src/GraphQL/Inputs/PatchAward.php +++ b/src/GraphQL/Inputs/PatchAward.php @@ -7,6 +7,292 @@ final class PatchAward extends InputObject { + /** + * @return string + */ + public function getAwardId() + { + return $this->get('awardId'); + } + + /** + * @param string $value + */ + public function setAwardId($value): self + { + return $this->set('awardId', $value); + } + + public function hasAwardId(): bool + { + return $this->has('awardId'); + } + + public function unsetAwardId(): self + { + return $this->remove('awardId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getCategory() + { + return $this->get('category'); + } + + /** + * @param string|null $value + */ + public function setCategory($value): self + { + return $this->set('category', $value); + } + + public function hasCategory(): bool + { + return $this->has('category'); + } + + public function unsetCategory(): self + { + return $this->remove('category'); + } + + /** + * @return string|null + */ + public function getYear() + { + return $this->get('year'); + } + + /** + * @param string|null $value + */ + public function setYear($value): self + { + return $this->set('year', $value); + } + + public function hasYear(): bool + { + return $this->has('year'); + } + + public function unsetYear(): self + { + return $this->remove('year'); + } + + /** + * @return string|null + */ + public function getJury() + { + return $this->get('jury'); + } + + /** + * @param string|null $value + */ + public function setJury($value): self + { + return $this->set('jury', $value); + } + + public function hasJury(): bool + { + return $this->has('jury'); + } + + public function unsetJury(): self + { + return $this->remove('jury'); + } + + /** + * @return string|null + */ + public function getCountry() + { + return $this->get('country'); + } + + /** + * @param string|null $value + */ + public function setCountry($value): self + { + return $this->set('country', $value); + } + + public function hasCountry(): bool + { + return $this->has('country'); + } + + public function unsetCountry(): self + { + return $this->remove('country'); + } + + /** + * @return string|null + */ + public function getPrizeStatement() + { + return $this->get('prizeStatement'); + } + + /** + * @param string|null $value + */ + public function setPrizeStatement($value): self + { + return $this->set('prizeStatement', $value); + } + + public function hasPrizeStatement(): bool + { + return $this->has('prizeStatement'); + } + + public function unsetPrizeStatement(): self + { + return $this->remove('prizeStatement'); + } + + /** + * @return string|null + */ + public function getRole() + { + return $this->get('role'); + } + + /** + * @param string|null $value + */ + public function setRole($value): self + { + return $this->set('role', $value); + } + + public function hasRole(): bool + { + return $this->has('role'); + } + + public function unsetRole(): self + { + return $this->remove('role'); + } + + /** + * @return int + */ + public function getAwardOrdinal() + { + return $this->get('awardOrdinal'); + } + + /** + * @param int $value + */ + public function setAwardOrdinal($value): self + { + return $this->set('awardOrdinal', $value); + } + + public function hasAwardOrdinal(): bool + { + return $this->has('awardOrdinal'); + } + + public function unsetAwardOrdinal(): self + { + return $this->remove('awardOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchAward', [ diff --git a/src/GraphQL/Inputs/PatchBiography.php b/src/GraphQL/Inputs/PatchBiography.php index 3df3c51..3bab681 100644 --- a/src/GraphQL/Inputs/PatchBiography.php +++ b/src/GraphQL/Inputs/PatchBiography.php @@ -7,6 +7,136 @@ final class PatchBiography extends InputObject { + /** + * @return string + */ + public function getBiographyId() + { + return $this->get('biographyId'); + } + + /** + * @param string $value + */ + public function setBiographyId($value): self + { + return $this->set('biographyId', $value); + } + + public function hasBiographyId(): bool + { + return $this->has('biographyId'); + } + + public function unsetBiographyId(): self + { + return $this->remove('biographyId'); + } + + /** + * @return string + */ + public function getContributionId() + { + return $this->get('contributionId'); + } + + /** + * @param string $value + */ + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + + /** + * @return string + */ + public function getContent() + { + return $this->get('content'); + } + + /** + * @param string $value + */ + public function setContent($value): self + { + return $this->set('content', $value); + } + + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchBiography', [ diff --git a/src/GraphQL/Inputs/PatchBookReview.php b/src/GraphQL/Inputs/PatchBookReview.php index 31b7e56..1043c13 100644 --- a/src/GraphQL/Inputs/PatchBookReview.php +++ b/src/GraphQL/Inputs/PatchBookReview.php @@ -7,6 +7,422 @@ final class PatchBookReview extends InputObject { + /** + * @return string + */ + public function getBookReviewId() + { + return $this->get('bookReviewId'); + } + + /** + * @param string $value + */ + public function setBookReviewId($value): self + { + return $this->set('bookReviewId', $value); + } + + public function hasBookReviewId(): bool + { + return $this->has('bookReviewId'); + } + + public function unsetBookReviewId(): self + { + return $this->remove('bookReviewId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string|null + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string|null $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getAuthorName() + { + return $this->get('authorName'); + } + + /** + * @param string|null $value + */ + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + + /** + * @return string|null + */ + public function getReviewerOrcid() + { + return $this->get('reviewerOrcid'); + } + + /** + * @param string|null $value + */ + public function setReviewerOrcid($value): self + { + return $this->set('reviewerOrcid', $value); + } + + public function hasReviewerOrcid(): bool + { + return $this->has('reviewerOrcid'); + } + + public function unsetReviewerOrcid(): self + { + return $this->remove('reviewerOrcid'); + } + + /** + * @return string|null + */ + public function getReviewerInstitutionId() + { + return $this->get('reviewerInstitutionId'); + } + + /** + * @param string|null $value + */ + public function setReviewerInstitutionId($value): self + { + return $this->set('reviewerInstitutionId', $value); + } + + public function hasReviewerInstitutionId(): bool + { + return $this->has('reviewerInstitutionId'); + } + + public function unsetReviewerInstitutionId(): self + { + return $this->remove('reviewerInstitutionId'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getReviewDate() + { + return $this->get('reviewDate'); + } + + /** + * @param string|null $value + */ + public function setReviewDate($value): self + { + return $this->set('reviewDate', $value); + } + + public function hasReviewDate(): bool + { + return $this->has('reviewDate'); + } + + public function unsetReviewDate(): self + { + return $this->remove('reviewDate'); + } + + /** + * @return string|null + */ + public function getJournalName() + { + return $this->get('journalName'); + } + + /** + * @param string|null $value + */ + public function setJournalName($value): self + { + return $this->set('journalName', $value); + } + + public function hasJournalName(): bool + { + return $this->has('journalName'); + } + + public function unsetJournalName(): self + { + return $this->remove('journalName'); + } + + /** + * @return string|null + */ + public function getJournalVolume() + { + return $this->get('journalVolume'); + } + + /** + * @param string|null $value + */ + public function setJournalVolume($value): self + { + return $this->set('journalVolume', $value); + } + + public function hasJournalVolume(): bool + { + return $this->has('journalVolume'); + } + + public function unsetJournalVolume(): self + { + return $this->remove('journalVolume'); + } + + /** + * @return string|null + */ + public function getJournalNumber() + { + return $this->get('journalNumber'); + } + + /** + * @param string|null $value + */ + public function setJournalNumber($value): self + { + return $this->set('journalNumber', $value); + } + + public function hasJournalNumber(): bool + { + return $this->has('journalNumber'); + } + + public function unsetJournalNumber(): self + { + return $this->remove('journalNumber'); + } + + /** + * @return string|null + */ + public function getJournalIssn() + { + return $this->get('journalIssn'); + } + + /** + * @param string|null $value + */ + public function setJournalIssn($value): self + { + return $this->set('journalIssn', $value); + } + + public function hasJournalIssn(): bool + { + return $this->has('journalIssn'); + } + + public function unsetJournalIssn(): self + { + return $this->remove('journalIssn'); + } + + /** + * @return string|null + */ + public function getPageRange() + { + return $this->get('pageRange'); + } + + /** + * @param string|null $value + */ + public function setPageRange($value): self + { + return $this->set('pageRange', $value); + } + + public function hasPageRange(): bool + { + return $this->has('pageRange'); + } + + public function unsetPageRange(): self + { + return $this->remove('pageRange'); + } + + /** + * @return string|null + */ + public function getText() + { + return $this->get('text'); + } + + /** + * @param string|null $value + */ + public function setText($value): self + { + return $this->set('text', $value); + } + + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + + /** + * @return int + */ + public function getReviewOrdinal() + { + return $this->get('reviewOrdinal'); + } + + /** + * @param int $value + */ + public function setReviewOrdinal($value): self + { + return $this->set('reviewOrdinal', $value); + } + + public function hasReviewOrdinal(): bool + { + return $this->has('reviewOrdinal'); + } + + public function unsetReviewOrdinal(): self + { + return $this->remove('reviewOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchBookReview', [ diff --git a/src/GraphQL/Inputs/PatchContact.php b/src/GraphQL/Inputs/PatchContact.php index c00fed2..328c336 100644 --- a/src/GraphQL/Inputs/PatchContact.php +++ b/src/GraphQL/Inputs/PatchContact.php @@ -7,6 +7,110 @@ final class PatchContact extends InputObject { + /** + * @return string + */ + public function getContactId() + { + return $this->get('contactId'); + } + + /** + * @param string $value + */ + public function setContactId($value): self + { + return $this->set('contactId', $value); + } + + public function hasContactId(): bool + { + return $this->has('contactId'); + } + + public function unsetContactId(): self + { + return $this->remove('contactId'); + } + + /** + * @return string + */ + public function getPublisherId() + { + return $this->get('publisherId'); + } + + /** + * @param string $value + */ + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + + /** + * @return string + */ + public function getContactType() + { + return $this->get('contactType'); + } + + /** + * @param string $value + */ + public function setContactType($value): self + { + return $this->set('contactType', $value); + } + + public function hasContactType(): bool + { + return $this->has('contactType'); + } + + public function unsetContactType(): self + { + return $this->remove('contactType'); + } + + /** + * @return string + */ + public function getEmail() + { + return $this->get('email'); + } + + /** + * @param string $value + */ + public function setEmail($value): self + { + return $this->set('email', $value); + } + + public function hasEmail(): bool + { + return $this->has('email'); + } + + public function unsetEmail(): self + { + return $this->remove('email'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContact', [ diff --git a/src/GraphQL/Inputs/PatchContribution.php b/src/GraphQL/Inputs/PatchContribution.php index 348aa82..329910c 100644 --- a/src/GraphQL/Inputs/PatchContribution.php +++ b/src/GraphQL/Inputs/PatchContribution.php @@ -7,6 +7,240 @@ final class PatchContribution extends InputObject { + /** + * @return string + */ + public function getContributionId() + { + return $this->get('contributionId'); + } + + /** + * @param string $value + */ + public function setContributionId($value): self + { + return $this->set('contributionId', $value); + } + + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getContributorId() + { + return $this->get('contributorId'); + } + + /** + * @param string $value + */ + public function setContributorId($value): self + { + return $this->set('contributorId', $value); + } + + public function hasContributorId(): bool + { + return $this->has('contributorId'); + } + + public function unsetContributorId(): self + { + return $this->remove('contributorId'); + } + + /** + * @return string + */ + public function getContributionType() + { + return $this->get('contributionType'); + } + + /** + * @param string $value + */ + public function setContributionType($value): self + { + return $this->set('contributionType', $value); + } + + public function hasContributionType(): bool + { + return $this->has('contributionType'); + } + + public function unsetContributionType(): self + { + return $this->remove('contributionType'); + } + + /** + * @return bool + */ + public function getMainContribution() + { + return $this->get('mainContribution'); + } + + /** + * @param bool $value + */ + public function setMainContribution($value): self + { + return $this->set('mainContribution', $value); + } + + public function hasMainContribution(): bool + { + return $this->has('mainContribution'); + } + + public function unsetMainContribution(): self + { + return $this->remove('mainContribution'); + } + + /** + * @return string|null + */ + public function getFirstName() + { + return $this->get('firstName'); + } + + /** + * @param string|null $value + */ + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + + /** + * @return string + */ + public function getLastName() + { + return $this->get('lastName'); + } + + /** + * @param string $value + */ + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + + /** + * @return string + */ + public function getFullName() + { + return $this->get('fullName'); + } + + /** + * @param string $value + */ + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + + /** + * @return int + */ + public function getContributionOrdinal() + { + return $this->get('contributionOrdinal'); + } + + /** + * @param int $value + */ + public function setContributionOrdinal($value): self + { + return $this->set('contributionOrdinal', $value); + } + + public function hasContributionOrdinal(): bool + { + return $this->has('contributionOrdinal'); + } + + public function unsetContributionOrdinal(): self + { + return $this->remove('contributionOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContribution', [ diff --git a/src/GraphQL/Inputs/PatchContributor.php b/src/GraphQL/Inputs/PatchContributor.php index d4056af..5fb9179 100644 --- a/src/GraphQL/Inputs/PatchContributor.php +++ b/src/GraphQL/Inputs/PatchContributor.php @@ -7,6 +7,162 @@ final class PatchContributor extends InputObject { + /** + * @return string + */ + public function getContributorId() + { + return $this->get('contributorId'); + } + + /** + * @param string $value + */ + public function setContributorId($value): self + { + return $this->set('contributorId', $value); + } + + public function hasContributorId(): bool + { + return $this->has('contributorId'); + } + + public function unsetContributorId(): self + { + return $this->remove('contributorId'); + } + + /** + * @return string|null + */ + public function getFirstName() + { + return $this->get('firstName'); + } + + /** + * @param string|null $value + */ + public function setFirstName($value): self + { + return $this->set('firstName', $value); + } + + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + + /** + * @return string + */ + public function getLastName() + { + return $this->get('lastName'); + } + + /** + * @param string $value + */ + public function setLastName($value): self + { + return $this->set('lastName', $value); + } + + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + + /** + * @return string + */ + public function getFullName() + { + return $this->get('fullName'); + } + + /** + * @param string $value + */ + public function setFullName($value): self + { + return $this->set('fullName', $value); + } + + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + + /** + * @return string|null + */ + public function getOrcid() + { + return $this->get('orcid'); + } + + /** + * @param string|null $value + */ + public function setOrcid($value): self + { + return $this->set('orcid', $value); + } + + public function hasOrcid(): bool + { + return $this->has('orcid'); + } + + public function unsetOrcid(): self + { + return $this->remove('orcid'); + } + + /** + * @return string|null + */ + public function getWebsite() + { + return $this->get('website'); + } + + /** + * @param string|null $value + */ + public function setWebsite($value): self + { + return $this->set('website', $value); + } + + public function hasWebsite(): bool + { + return $this->has('website'); + } + + public function unsetWebsite(): self + { + return $this->remove('website'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchContributor', [ diff --git a/src/GraphQL/Inputs/PatchEndorsement.php b/src/GraphQL/Inputs/PatchEndorsement.php index f1a68e7..c43bf7b 100644 --- a/src/GraphQL/Inputs/PatchEndorsement.php +++ b/src/GraphQL/Inputs/PatchEndorsement.php @@ -7,6 +7,240 @@ final class PatchEndorsement extends InputObject { + /** + * @return string + */ + public function getEndorsementId() + { + return $this->get('endorsementId'); + } + + /** + * @param string $value + */ + public function setEndorsementId($value): self + { + return $this->set('endorsementId', $value); + } + + public function hasEndorsementId(): bool + { + return $this->has('endorsementId'); + } + + public function unsetEndorsementId(): self + { + return $this->remove('endorsementId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getAuthorName() + { + return $this->get('authorName'); + } + + /** + * @param string $value + */ + public function setAuthorName($value): self + { + return $this->set('authorName', $value); + } + + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + + /** + * @return string|null + */ + public function getAuthorRole() + { + return $this->get('authorRole'); + } + + /** + * @param string|null $value + */ + public function setAuthorRole($value): self + { + return $this->set('authorRole', $value); + } + + public function hasAuthorRole(): bool + { + return $this->has('authorRole'); + } + + public function unsetAuthorRole(): self + { + return $this->remove('authorRole'); + } + + /** + * @return string|null + */ + public function getAuthorOrcid() + { + return $this->get('authorOrcid'); + } + + /** + * @param string|null $value + */ + public function setAuthorOrcid($value): self + { + return $this->set('authorOrcid', $value); + } + + public function hasAuthorOrcid(): bool + { + return $this->has('authorOrcid'); + } + + public function unsetAuthorOrcid(): self + { + return $this->remove('authorOrcid'); + } + + /** + * @return string|null + */ + public function getAuthorInstitutionId() + { + return $this->get('authorInstitutionId'); + } + + /** + * @param string|null $value + */ + public function setAuthorInstitutionId($value): self + { + return $this->set('authorInstitutionId', $value); + } + + public function hasAuthorInstitutionId(): bool + { + return $this->has('authorInstitutionId'); + } + + public function unsetAuthorInstitutionId(): self + { + return $this->remove('authorInstitutionId'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getText() + { + return $this->get('text'); + } + + /** + * @param string|null $value + */ + public function setText($value): self + { + return $this->set('text', $value); + } + + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + + /** + * @return int + */ + public function getEndorsementOrdinal() + { + return $this->get('endorsementOrdinal'); + } + + /** + * @param int $value + */ + public function setEndorsementOrdinal($value): self + { + return $this->set('endorsementOrdinal', $value); + } + + public function hasEndorsementOrdinal(): bool + { + return $this->has('endorsementOrdinal'); + } + + public function unsetEndorsementOrdinal(): self + { + return $this->remove('endorsementOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchEndorsement', [ diff --git a/src/GraphQL/Inputs/PatchFunding.php b/src/GraphQL/Inputs/PatchFunding.php index 916453e..eff713c 100644 --- a/src/GraphQL/Inputs/PatchFunding.php +++ b/src/GraphQL/Inputs/PatchFunding.php @@ -7,6 +7,188 @@ final class PatchFunding extends InputObject { + /** + * @return string + */ + public function getFundingId() + { + return $this->get('fundingId'); + } + + /** + * @param string $value + */ + public function setFundingId($value): self + { + return $this->set('fundingId', $value); + } + + public function hasFundingId(): bool + { + return $this->has('fundingId'); + } + + public function unsetFundingId(): self + { + return $this->remove('fundingId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + /** + * @param string $value + */ + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + + /** + * @return string|null + */ + public function getProgram() + { + return $this->get('program'); + } + + /** + * @param string|null $value + */ + public function setProgram($value): self + { + return $this->set('program', $value); + } + + public function hasProgram(): bool + { + return $this->has('program'); + } + + public function unsetProgram(): self + { + return $this->remove('program'); + } + + /** + * @return string|null + */ + public function getProjectName() + { + return $this->get('projectName'); + } + + /** + * @param string|null $value + */ + public function setProjectName($value): self + { + return $this->set('projectName', $value); + } + + public function hasProjectName(): bool + { + return $this->has('projectName'); + } + + public function unsetProjectName(): self + { + return $this->remove('projectName'); + } + + /** + * @return string|null + */ + public function getProjectShortname() + { + return $this->get('projectShortname'); + } + + /** + * @param string|null $value + */ + public function setProjectShortname($value): self + { + return $this->set('projectShortname', $value); + } + + public function hasProjectShortname(): bool + { + return $this->has('projectShortname'); + } + + public function unsetProjectShortname(): self + { + return $this->remove('projectShortname'); + } + + /** + * @return string|null + */ + public function getGrantNumber() + { + return $this->get('grantNumber'); + } + + /** + * @param string|null $value + */ + public function setGrantNumber($value): self + { + return $this->set('grantNumber', $value); + } + + public function hasGrantNumber(): bool + { + return $this->has('grantNumber'); + } + + public function unsetGrantNumber(): self + { + return $this->remove('grantNumber'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchFunding', [ diff --git a/src/GraphQL/Inputs/PatchImprint.php b/src/GraphQL/Inputs/PatchImprint.php index f04a6cc..3af9585 100644 --- a/src/GraphQL/Inputs/PatchImprint.php +++ b/src/GraphQL/Inputs/PatchImprint.php @@ -7,6 +7,292 @@ final class PatchImprint extends InputObject { + /** + * @return string + */ + public function getImprintId() + { + return $this->get('imprintId'); + } + + /** + * @param string $value + */ + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + + /** + * @return string + */ + public function getPublisherId() + { + return $this->get('publisherId'); + } + + /** + * @param string $value + */ + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + + /** + * @return string + */ + public function getImprintName() + { + return $this->get('imprintName'); + } + + /** + * @param string $value + */ + public function setImprintName($value): self + { + return $this->set('imprintName', $value); + } + + public function hasImprintName(): bool + { + return $this->has('imprintName'); + } + + public function unsetImprintName(): self + { + return $this->remove('imprintName'); + } + + /** + * @return string|null + */ + public function getImprintUrl() + { + return $this->get('imprintUrl'); + } + + /** + * @param string|null $value + */ + public function setImprintUrl($value): self + { + return $this->set('imprintUrl', $value); + } + + public function hasImprintUrl(): bool + { + return $this->has('imprintUrl'); + } + + public function unsetImprintUrl(): self + { + return $this->remove('imprintUrl'); + } + + /** + * @return string|null + */ + public function getCrossmarkDoi() + { + return $this->get('crossmarkDoi'); + } + + /** + * @param string|null $value + */ + public function setCrossmarkDoi($value): self + { + return $this->set('crossmarkDoi', $value); + } + + public function hasCrossmarkDoi(): bool + { + return $this->has('crossmarkDoi'); + } + + public function unsetCrossmarkDoi(): self + { + return $this->remove('crossmarkDoi'); + } + + /** + * @return string|null + */ + public function getS3Bucket() + { + return $this->get('s3Bucket'); + } + + /** + * @param string|null $value + */ + public function setS3Bucket($value): self + { + return $this->set('s3Bucket', $value); + } + + public function hasS3Bucket(): bool + { + return $this->has('s3Bucket'); + } + + public function unsetS3Bucket(): self + { + return $this->remove('s3Bucket'); + } + + /** + * @return string|null + */ + public function getCdnDomain() + { + return $this->get('cdnDomain'); + } + + /** + * @param string|null $value + */ + public function setCdnDomain($value): self + { + return $this->set('cdnDomain', $value); + } + + public function hasCdnDomain(): bool + { + return $this->has('cdnDomain'); + } + + public function unsetCdnDomain(): self + { + return $this->remove('cdnDomain'); + } + + /** + * @return string|null + */ + public function getCloudfrontDistId() + { + return $this->get('cloudfrontDistId'); + } + + /** + * @param string|null $value + */ + public function setCloudfrontDistId($value): self + { + return $this->set('cloudfrontDistId', $value); + } + + public function hasCloudfrontDistId(): bool + { + return $this->has('cloudfrontDistId'); + } + + public function unsetCloudfrontDistId(): self + { + return $this->remove('cloudfrontDistId'); + } + + /** + * @return string|null + */ + public function getDefaultCurrency() + { + return $this->get('defaultCurrency'); + } + + /** + * @param string|null $value + */ + public function setDefaultCurrency($value): self + { + return $this->set('defaultCurrency', $value); + } + + public function hasDefaultCurrency(): bool + { + return $this->has('defaultCurrency'); + } + + public function unsetDefaultCurrency(): self + { + return $this->remove('defaultCurrency'); + } + + /** + * @return string|null + */ + public function getDefaultPlace() + { + return $this->get('defaultPlace'); + } + + /** + * @param string|null $value + */ + public function setDefaultPlace($value): self + { + return $this->set('defaultPlace', $value); + } + + public function hasDefaultPlace(): bool + { + return $this->has('defaultPlace'); + } + + public function unsetDefaultPlace(): self + { + return $this->remove('defaultPlace'); + } + + /** + * @return string|null + */ + public function getDefaultLocale() + { + return $this->get('defaultLocale'); + } + + /** + * @param string|null $value + */ + public function setDefaultLocale($value): self + { + return $this->set('defaultLocale', $value); + } + + public function hasDefaultLocale(): bool + { + return $this->has('defaultLocale'); + } + + public function unsetDefaultLocale(): self + { + return $this->remove('defaultLocale'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchImprint', [ diff --git a/src/GraphQL/Inputs/PatchInstitution.php b/src/GraphQL/Inputs/PatchInstitution.php index 5c25744..39a648b 100644 --- a/src/GraphQL/Inputs/PatchInstitution.php +++ b/src/GraphQL/Inputs/PatchInstitution.php @@ -7,6 +7,136 @@ final class PatchInstitution extends InputObject { + /** + * @return string + */ + public function getInstitutionId() + { + return $this->get('institutionId'); + } + + /** + * @param string $value + */ + public function setInstitutionId($value): self + { + return $this->set('institutionId', $value); + } + + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + + /** + * @return string + */ + public function getInstitutionName() + { + return $this->get('institutionName'); + } + + /** + * @param string $value + */ + public function setInstitutionName($value): self + { + return $this->set('institutionName', $value); + } + + public function hasInstitutionName(): bool + { + return $this->has('institutionName'); + } + + public function unsetInstitutionName(): self + { + return $this->remove('institutionName'); + } + + /** + * @return string|null + */ + public function getInstitutionDoi() + { + return $this->get('institutionDoi'); + } + + /** + * @param string|null $value + */ + public function setInstitutionDoi($value): self + { + return $this->set('institutionDoi', $value); + } + + public function hasInstitutionDoi(): bool + { + return $this->has('institutionDoi'); + } + + public function unsetInstitutionDoi(): self + { + return $this->remove('institutionDoi'); + } + + /** + * @return string|null + */ + public function getRor() + { + return $this->get('ror'); + } + + /** + * @param string|null $value + */ + public function setRor($value): self + { + return $this->set('ror', $value); + } + + public function hasRor(): bool + { + return $this->has('ror'); + } + + public function unsetRor(): self + { + return $this->remove('ror'); + } + + /** + * @return string|null + */ + public function getCountryCode() + { + return $this->get('countryCode'); + } + + /** + * @param string|null $value + */ + public function setCountryCode($value): self + { + return $this->set('countryCode', $value); + } + + public function hasCountryCode(): bool + { + return $this->has('countryCode'); + } + + public function unsetCountryCode(): self + { + return $this->remove('countryCode'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchInstitution', [ diff --git a/src/GraphQL/Inputs/PatchIssue.php b/src/GraphQL/Inputs/PatchIssue.php index 329418e..90303cf 100644 --- a/src/GraphQL/Inputs/PatchIssue.php +++ b/src/GraphQL/Inputs/PatchIssue.php @@ -7,6 +7,136 @@ final class PatchIssue extends InputObject { + /** + * @return string + */ + public function getIssueId() + { + return $this->get('issueId'); + } + + /** + * @param string $value + */ + public function setIssueId($value): self + { + return $this->set('issueId', $value); + } + + public function hasIssueId(): bool + { + return $this->has('issueId'); + } + + public function unsetIssueId(): self + { + return $this->remove('issueId'); + } + + /** + * @return string + */ + public function getSeriesId() + { + return $this->get('seriesId'); + } + + /** + * @param string $value + */ + public function setSeriesId($value): self + { + return $this->set('seriesId', $value); + } + + public function hasSeriesId(): bool + { + return $this->has('seriesId'); + } + + public function unsetSeriesId(): self + { + return $this->remove('seriesId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return int + */ + public function getIssueOrdinal() + { + return $this->get('issueOrdinal'); + } + + /** + * @param int $value + */ + public function setIssueOrdinal($value): self + { + return $this->set('issueOrdinal', $value); + } + + public function hasIssueOrdinal(): bool + { + return $this->has('issueOrdinal'); + } + + public function unsetIssueOrdinal(): self + { + return $this->remove('issueOrdinal'); + } + + /** + * @return int|null + */ + public function getIssueNumber() + { + return $this->get('issueNumber'); + } + + /** + * @param int|null $value + */ + public function setIssueNumber($value): self + { + return $this->set('issueNumber', $value); + } + + public function hasIssueNumber(): bool + { + return $this->has('issueNumber'); + } + + public function unsetIssueNumber(): self + { + return $this->remove('issueNumber'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchIssue', [ diff --git a/src/GraphQL/Inputs/PatchLanguage.php b/src/GraphQL/Inputs/PatchLanguage.php index b637873..c42b344 100644 --- a/src/GraphQL/Inputs/PatchLanguage.php +++ b/src/GraphQL/Inputs/PatchLanguage.php @@ -7,6 +7,110 @@ final class PatchLanguage extends InputObject { + /** + * @return string + */ + public function getLanguageId() + { + return $this->get('languageId'); + } + + /** + * @param string $value + */ + public function setLanguageId($value): self + { + return $this->set('languageId', $value); + } + + public function hasLanguageId(): bool + { + return $this->has('languageId'); + } + + public function unsetLanguageId(): self + { + return $this->remove('languageId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getLanguageCode() + { + return $this->get('languageCode'); + } + + /** + * @param string $value + */ + public function setLanguageCode($value): self + { + return $this->set('languageCode', $value); + } + + public function hasLanguageCode(): bool + { + return $this->has('languageCode'); + } + + public function unsetLanguageCode(): self + { + return $this->remove('languageCode'); + } + + /** + * @return string + */ + public function getLanguageRelation() + { + return $this->get('languageRelation'); + } + + /** + * @param string $value + */ + public function setLanguageRelation($value): self + { + return $this->set('languageRelation', $value); + } + + public function hasLanguageRelation(): bool + { + return $this->has('languageRelation'); + } + + public function unsetLanguageRelation(): self + { + return $this->remove('languageRelation'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchLanguage', [ diff --git a/src/GraphQL/Inputs/PatchLocation.php b/src/GraphQL/Inputs/PatchLocation.php index 2db4e34..4f7f980 100644 --- a/src/GraphQL/Inputs/PatchLocation.php +++ b/src/GraphQL/Inputs/PatchLocation.php @@ -7,6 +7,214 @@ final class PatchLocation extends InputObject { + /** + * @return string + */ + public function getLocationId() + { + return $this->get('locationId'); + } + + /** + * @param string $value + */ + public function setLocationId($value): self + { + return $this->set('locationId', $value); + } + + public function hasLocationId(): bool + { + return $this->has('locationId'); + } + + public function unsetLocationId(): self + { + return $this->remove('locationId'); + } + + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string|null + */ + public function getLandingPage() + { + return $this->get('landingPage'); + } + + /** + * @param string|null $value + */ + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + + /** + * @return string|null + */ + public function getFullTextUrl() + { + return $this->get('fullTextUrl'); + } + + /** + * @param string|null $value + */ + public function setFullTextUrl($value): self + { + return $this->set('fullTextUrl', $value); + } + + public function hasFullTextUrl(): bool + { + return $this->has('fullTextUrl'); + } + + public function unsetFullTextUrl(): self + { + return $this->remove('fullTextUrl'); + } + + /** + * @return string + */ + public function getLocationPlatform() + { + return $this->get('locationPlatform'); + } + + /** + * @param string $value + */ + public function setLocationPlatform($value): self + { + return $this->set('locationPlatform', $value); + } + + public function hasLocationPlatform(): bool + { + return $this->has('locationPlatform'); + } + + public function unsetLocationPlatform(): self + { + return $this->remove('locationPlatform'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + + /** + * @return string|null + */ + public function getChecksum() + { + return $this->get('checksum'); + } + + /** + * @param string|null $value + */ + public function setChecksum($value): self + { + return $this->set('checksum', $value); + } + + public function hasChecksum(): bool + { + return $this->has('checksum'); + } + + public function unsetChecksum(): self + { + return $this->remove('checksum'); + } + + /** + * @return string|null + */ + public function getChecksumAlgorithm() + { + return $this->get('checksumAlgorithm'); + } + + /** + * @param string|null $value + */ + public function setChecksumAlgorithm($value): self + { + return $this->set('checksumAlgorithm', $value); + } + + public function hasChecksumAlgorithm(): bool + { + return $this->has('checksumAlgorithm'); + } + + public function unsetChecksumAlgorithm(): self + { + return $this->remove('checksumAlgorithm'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchLocation', [ diff --git a/src/GraphQL/Inputs/PatchPrice.php b/src/GraphQL/Inputs/PatchPrice.php index ef53794..37c1163 100644 --- a/src/GraphQL/Inputs/PatchPrice.php +++ b/src/GraphQL/Inputs/PatchPrice.php @@ -7,6 +7,110 @@ final class PatchPrice extends InputObject { + /** + * @return string + */ + public function getPriceId() + { + return $this->get('priceId'); + } + + /** + * @param string $value + */ + public function setPriceId($value): self + { + return $this->set('priceId', $value); + } + + public function hasPriceId(): bool + { + return $this->has('priceId'); + } + + public function unsetPriceId(): self + { + return $this->remove('priceId'); + } + + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string + */ + public function getCurrencyCode() + { + return $this->get('currencyCode'); + } + + /** + * @param string $value + */ + public function setCurrencyCode($value): self + { + return $this->set('currencyCode', $value); + } + + public function hasCurrencyCode(): bool + { + return $this->has('currencyCode'); + } + + public function unsetCurrencyCode(): self + { + return $this->remove('currencyCode'); + } + + /** + * @return float + */ + public function getUnitPrice() + { + return $this->get('unitPrice'); + } + + /** + * @param float $value + */ + public function setUnitPrice($value): self + { + return $this->set('unitPrice', $value); + } + + public function hasUnitPrice(): bool + { + return $this->has('unitPrice'); + } + + public function unsetUnitPrice(): self + { + return $this->remove('unitPrice'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPrice', [ diff --git a/src/GraphQL/Inputs/PatchPublication.php b/src/GraphQL/Inputs/PatchPublication.php index 88aa13d..d82637a 100644 --- a/src/GraphQL/Inputs/PatchPublication.php +++ b/src/GraphQL/Inputs/PatchPublication.php @@ -7,6 +7,422 @@ final class PatchPublication extends InputObject { + /** + * @return string + */ + public function getPublicationId() + { + return $this->get('publicationId'); + } + + /** + * @param string $value + */ + public function setPublicationId($value): self + { + return $this->set('publicationId', $value); + } + + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + + /** + * @return string + */ + public function getPublicationType() + { + return $this->get('publicationType'); + } + + /** + * @param string $value + */ + public function setPublicationType($value): self + { + return $this->set('publicationType', $value); + } + + public function hasPublicationType(): bool + { + return $this->has('publicationType'); + } + + public function unsetPublicationType(): self + { + return $this->remove('publicationType'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string|null + */ + public function getIsbn() + { + return $this->get('isbn'); + } + + /** + * @param string|null $value + */ + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + + /** + * @return float|null + */ + public function getWidthMm() + { + return $this->get('widthMm'); + } + + /** + * @param float|null $value + */ + public function setWidthMm($value): self + { + return $this->set('widthMm', $value); + } + + public function hasWidthMm(): bool + { + return $this->has('widthMm'); + } + + public function unsetWidthMm(): self + { + return $this->remove('widthMm'); + } + + /** + * @return float|null + */ + public function getWidthIn() + { + return $this->get('widthIn'); + } + + /** + * @param float|null $value + */ + public function setWidthIn($value): self + { + return $this->set('widthIn', $value); + } + + public function hasWidthIn(): bool + { + return $this->has('widthIn'); + } + + public function unsetWidthIn(): self + { + return $this->remove('widthIn'); + } + + /** + * @return float|null + */ + public function getHeightMm() + { + return $this->get('heightMm'); + } + + /** + * @param float|null $value + */ + public function setHeightMm($value): self + { + return $this->set('heightMm', $value); + } + + public function hasHeightMm(): bool + { + return $this->has('heightMm'); + } + + public function unsetHeightMm(): self + { + return $this->remove('heightMm'); + } + + /** + * @return float|null + */ + public function getHeightIn() + { + return $this->get('heightIn'); + } + + /** + * @param float|null $value + */ + public function setHeightIn($value): self + { + return $this->set('heightIn', $value); + } + + public function hasHeightIn(): bool + { + return $this->has('heightIn'); + } + + public function unsetHeightIn(): self + { + return $this->remove('heightIn'); + } + + /** + * @return float|null + */ + public function getDepthMm() + { + return $this->get('depthMm'); + } + + /** + * @param float|null $value + */ + public function setDepthMm($value): self + { + return $this->set('depthMm', $value); + } + + public function hasDepthMm(): bool + { + return $this->has('depthMm'); + } + + public function unsetDepthMm(): self + { + return $this->remove('depthMm'); + } + + /** + * @return float|null + */ + public function getDepthIn() + { + return $this->get('depthIn'); + } + + /** + * @param float|null $value + */ + public function setDepthIn($value): self + { + return $this->set('depthIn', $value); + } + + public function hasDepthIn(): bool + { + return $this->has('depthIn'); + } + + public function unsetDepthIn(): self + { + return $this->remove('depthIn'); + } + + /** + * @return float|null + */ + public function getWeightG() + { + return $this->get('weightG'); + } + + /** + * @param float|null $value + */ + public function setWeightG($value): self + { + return $this->set('weightG', $value); + } + + public function hasWeightG(): bool + { + return $this->has('weightG'); + } + + public function unsetWeightG(): self + { + return $this->remove('weightG'); + } + + /** + * @return float|null + */ + public function getWeightOz() + { + return $this->get('weightOz'); + } + + /** + * @param float|null $value + */ + public function setWeightOz($value): self + { + return $this->set('weightOz', $value); + } + + public function hasWeightOz(): bool + { + return $this->has('weightOz'); + } + + public function unsetWeightOz(): self + { + return $this->remove('weightOz'); + } + + /** + * @return string|null + */ + public function getAccessibilityStandard() + { + return $this->get('accessibilityStandard'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityStandard($value): self + { + return $this->set('accessibilityStandard', $value); + } + + public function hasAccessibilityStandard(): bool + { + return $this->has('accessibilityStandard'); + } + + public function unsetAccessibilityStandard(): self + { + return $this->remove('accessibilityStandard'); + } + + /** + * @return string|null + */ + public function getAccessibilityAdditionalStandard() + { + return $this->get('accessibilityAdditionalStandard'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityAdditionalStandard($value): self + { + return $this->set('accessibilityAdditionalStandard', $value); + } + + public function hasAccessibilityAdditionalStandard(): bool + { + return $this->has('accessibilityAdditionalStandard'); + } + + public function unsetAccessibilityAdditionalStandard(): self + { + return $this->remove('accessibilityAdditionalStandard'); + } + + /** + * @return string|null + */ + public function getAccessibilityException() + { + return $this->get('accessibilityException'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityException($value): self + { + return $this->set('accessibilityException', $value); + } + + public function hasAccessibilityException(): bool + { + return $this->has('accessibilityException'); + } + + public function unsetAccessibilityException(): self + { + return $this->remove('accessibilityException'); + } + + /** + * @return string|null + */ + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPublication', [ diff --git a/src/GraphQL/Inputs/PatchPublisher.php b/src/GraphQL/Inputs/PatchPublisher.php index c199c05..38a67ce 100644 --- a/src/GraphQL/Inputs/PatchPublisher.php +++ b/src/GraphQL/Inputs/PatchPublisher.php @@ -7,6 +7,188 @@ final class PatchPublisher extends InputObject { + /** + * @return string + */ + public function getPublisherId() + { + return $this->get('publisherId'); + } + + /** + * @param string $value + */ + public function setPublisherId($value): self + { + return $this->set('publisherId', $value); + } + + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + + /** + * @return string + */ + public function getPublisherName() + { + return $this->get('publisherName'); + } + + /** + * @param string $value + */ + public function setPublisherName($value): self + { + return $this->set('publisherName', $value); + } + + public function hasPublisherName(): bool + { + return $this->has('publisherName'); + } + + public function unsetPublisherName(): self + { + return $this->remove('publisherName'); + } + + /** + * @return string|null + */ + public function getPublisherShortname() + { + return $this->get('publisherShortname'); + } + + /** + * @param string|null $value + */ + public function setPublisherShortname($value): self + { + return $this->set('publisherShortname', $value); + } + + public function hasPublisherShortname(): bool + { + return $this->has('publisherShortname'); + } + + public function unsetPublisherShortname(): self + { + return $this->remove('publisherShortname'); + } + + /** + * @return string|null + */ + public function getPublisherUrl() + { + return $this->get('publisherUrl'); + } + + /** + * @param string|null $value + */ + public function setPublisherUrl($value): self + { + return $this->set('publisherUrl', $value); + } + + public function hasPublisherUrl(): bool + { + return $this->has('publisherUrl'); + } + + public function unsetPublisherUrl(): self + { + return $this->remove('publisherUrl'); + } + + /** + * @return string|null + */ + public function getZitadelId() + { + return $this->get('zitadelId'); + } + + /** + * @param string|null $value + */ + public function setZitadelId($value): self + { + return $this->set('zitadelId', $value); + } + + public function hasZitadelId(): bool + { + return $this->has('zitadelId'); + } + + public function unsetZitadelId(): self + { + return $this->remove('zitadelId'); + } + + /** + * @return string|null + */ + public function getAccessibilityStatement() + { + return $this->get('accessibilityStatement'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityStatement($value): self + { + return $this->set('accessibilityStatement', $value); + } + + public function hasAccessibilityStatement(): bool + { + return $this->has('accessibilityStatement'); + } + + public function unsetAccessibilityStatement(): self + { + return $this->remove('accessibilityStatement'); + } + + /** + * @return string|null + */ + public function getAccessibilityReportUrl() + { + return $this->get('accessibilityReportUrl'); + } + + /** + * @param string|null $value + */ + public function setAccessibilityReportUrl($value): self + { + return $this->set('accessibilityReportUrl', $value); + } + + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchPublisher', [ diff --git a/src/GraphQL/Inputs/PatchReference.php b/src/GraphQL/Inputs/PatchReference.php index f9b23e2..5799b67 100644 --- a/src/GraphQL/Inputs/PatchReference.php +++ b/src/GraphQL/Inputs/PatchReference.php @@ -7,6 +7,604 @@ final class PatchReference extends InputObject { + /** + * @return string + */ + public function getReferenceId() + { + return $this->get('referenceId'); + } + + /** + * @param string $value + */ + public function setReferenceId($value): self + { + return $this->set('referenceId', $value); + } + + public function hasReferenceId(): bool + { + return $this->has('referenceId'); + } + + public function unsetReferenceId(): self + { + return $this->remove('referenceId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return int + */ + public function getReferenceOrdinal() + { + return $this->get('referenceOrdinal'); + } + + /** + * @param int $value + */ + public function setReferenceOrdinal($value): self + { + return $this->set('referenceOrdinal', $value); + } + + public function hasReferenceOrdinal(): bool + { + return $this->has('referenceOrdinal'); + } + + public function unsetReferenceOrdinal(): self + { + return $this->remove('referenceOrdinal'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getUnstructuredCitation() + { + return $this->get('unstructuredCitation'); + } + + /** + * @param string|null $value + */ + public function setUnstructuredCitation($value): self + { + return $this->set('unstructuredCitation', $value); + } + + public function hasUnstructuredCitation(): bool + { + return $this->has('unstructuredCitation'); + } + + public function unsetUnstructuredCitation(): self + { + return $this->remove('unstructuredCitation'); + } + + /** + * @return string|null + */ + public function getIssn() + { + return $this->get('issn'); + } + + /** + * @param string|null $value + */ + public function setIssn($value): self + { + return $this->set('issn', $value); + } + + public function hasIssn(): bool + { + return $this->has('issn'); + } + + public function unsetIssn(): self + { + return $this->remove('issn'); + } + + /** + * @return string|null + */ + public function getIsbn() + { + return $this->get('isbn'); + } + + /** + * @param string|null $value + */ + public function setIsbn($value): self + { + return $this->set('isbn', $value); + } + + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + + /** + * @return string|null + */ + public function getJournalTitle() + { + return $this->get('journalTitle'); + } + + /** + * @param string|null $value + */ + public function setJournalTitle($value): self + { + return $this->set('journalTitle', $value); + } + + public function hasJournalTitle(): bool + { + return $this->has('journalTitle'); + } + + public function unsetJournalTitle(): self + { + return $this->remove('journalTitle'); + } + + /** + * @return string|null + */ + public function getArticleTitle() + { + return $this->get('articleTitle'); + } + + /** + * @param string|null $value + */ + public function setArticleTitle($value): self + { + return $this->set('articleTitle', $value); + } + + public function hasArticleTitle(): bool + { + return $this->has('articleTitle'); + } + + public function unsetArticleTitle(): self + { + return $this->remove('articleTitle'); + } + + /** + * @return string|null + */ + public function getSeriesTitle() + { + return $this->get('seriesTitle'); + } + + /** + * @param string|null $value + */ + public function setSeriesTitle($value): self + { + return $this->set('seriesTitle', $value); + } + + public function hasSeriesTitle(): bool + { + return $this->has('seriesTitle'); + } + + public function unsetSeriesTitle(): self + { + return $this->remove('seriesTitle'); + } + + /** + * @return string|null + */ + public function getVolumeTitle() + { + return $this->get('volumeTitle'); + } + + /** + * @param string|null $value + */ + public function setVolumeTitle($value): self + { + return $this->set('volumeTitle', $value); + } + + public function hasVolumeTitle(): bool + { + return $this->has('volumeTitle'); + } + + public function unsetVolumeTitle(): self + { + return $this->remove('volumeTitle'); + } + + /** + * @return int|null + */ + public function getEdition() + { + return $this->get('edition'); + } + + /** + * @param int|null $value + */ + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + + /** + * @return string|null + */ + public function getAuthor() + { + return $this->get('author'); + } + + /** + * @param string|null $value + */ + public function setAuthor($value): self + { + return $this->set('author', $value); + } + + public function hasAuthor(): bool + { + return $this->has('author'); + } + + public function unsetAuthor(): self + { + return $this->remove('author'); + } + + /** + * @return string|null + */ + public function getVolume() + { + return $this->get('volume'); + } + + /** + * @param string|null $value + */ + public function setVolume($value): self + { + return $this->set('volume', $value); + } + + public function hasVolume(): bool + { + return $this->has('volume'); + } + + public function unsetVolume(): self + { + return $this->remove('volume'); + } + + /** + * @return string|null + */ + public function getIssue() + { + return $this->get('issue'); + } + + /** + * @param string|null $value + */ + public function setIssue($value): self + { + return $this->set('issue', $value); + } + + public function hasIssue(): bool + { + return $this->has('issue'); + } + + public function unsetIssue(): self + { + return $this->remove('issue'); + } + + /** + * @return string|null + */ + public function getFirstPage() + { + return $this->get('firstPage'); + } + + /** + * @param string|null $value + */ + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + + /** + * @return string|null + */ + public function getComponentNumber() + { + return $this->get('componentNumber'); + } + + /** + * @param string|null $value + */ + public function setComponentNumber($value): self + { + return $this->set('componentNumber', $value); + } + + public function hasComponentNumber(): bool + { + return $this->has('componentNumber'); + } + + public function unsetComponentNumber(): self + { + return $this->remove('componentNumber'); + } + + /** + * @return string|null + */ + public function getStandardDesignator() + { + return $this->get('standardDesignator'); + } + + /** + * @param string|null $value + */ + public function setStandardDesignator($value): self + { + return $this->set('standardDesignator', $value); + } + + public function hasStandardDesignator(): bool + { + return $this->has('standardDesignator'); + } + + public function unsetStandardDesignator(): self + { + return $this->remove('standardDesignator'); + } + + /** + * @return string|null + */ + public function getStandardsBodyName() + { + return $this->get('standardsBodyName'); + } + + /** + * @param string|null $value + */ + public function setStandardsBodyName($value): self + { + return $this->set('standardsBodyName', $value); + } + + public function hasStandardsBodyName(): bool + { + return $this->has('standardsBodyName'); + } + + public function unsetStandardsBodyName(): self + { + return $this->remove('standardsBodyName'); + } + + /** + * @return string|null + */ + public function getStandardsBodyAcronym() + { + return $this->get('standardsBodyAcronym'); + } + + /** + * @param string|null $value + */ + public function setStandardsBodyAcronym($value): self + { + return $this->set('standardsBodyAcronym', $value); + } + + public function hasStandardsBodyAcronym(): bool + { + return $this->has('standardsBodyAcronym'); + } + + public function unsetStandardsBodyAcronym(): self + { + return $this->remove('standardsBodyAcronym'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return string|null + */ + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + /** + * @param string|null $value + */ + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + + /** + * @return string|null + */ + public function getRetrievalDate() + { + return $this->get('retrievalDate'); + } + + /** + * @param string|null $value + */ + public function setRetrievalDate($value): self + { + return $this->set('retrievalDate', $value); + } + + public function hasRetrievalDate(): bool + { + return $this->has('retrievalDate'); + } + + public function unsetRetrievalDate(): self + { + return $this->remove('retrievalDate'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchReference', [ diff --git a/src/GraphQL/Inputs/PatchSeries.php b/src/GraphQL/Inputs/PatchSeries.php index 3b153d7..c6d69b4 100644 --- a/src/GraphQL/Inputs/PatchSeries.php +++ b/src/GraphQL/Inputs/PatchSeries.php @@ -7,6 +7,240 @@ final class PatchSeries extends InputObject { + /** + * @return string + */ + public function getSeriesId() + { + return $this->get('seriesId'); + } + + /** + * @param string $value + */ + public function setSeriesId($value): self + { + return $this->set('seriesId', $value); + } + + public function hasSeriesId(): bool + { + return $this->has('seriesId'); + } + + public function unsetSeriesId(): self + { + return $this->remove('seriesId'); + } + + /** + * @return string + */ + public function getSeriesType() + { + return $this->get('seriesType'); + } + + /** + * @param string $value + */ + public function setSeriesType($value): self + { + return $this->set('seriesType', $value); + } + + public function hasSeriesType(): bool + { + return $this->has('seriesType'); + } + + public function unsetSeriesType(): self + { + return $this->remove('seriesType'); + } + + /** + * @return string + */ + public function getSeriesName() + { + return $this->get('seriesName'); + } + + /** + * @param string $value + */ + public function setSeriesName($value): self + { + return $this->set('seriesName', $value); + } + + public function hasSeriesName(): bool + { + return $this->has('seriesName'); + } + + public function unsetSeriesName(): self + { + return $this->remove('seriesName'); + } + + /** + * @return string|null + */ + public function getIssnPrint() + { + return $this->get('issnPrint'); + } + + /** + * @param string|null $value + */ + public function setIssnPrint($value): self + { + return $this->set('issnPrint', $value); + } + + public function hasIssnPrint(): bool + { + return $this->has('issnPrint'); + } + + public function unsetIssnPrint(): self + { + return $this->remove('issnPrint'); + } + + /** + * @return string|null + */ + public function getIssnDigital() + { + return $this->get('issnDigital'); + } + + /** + * @param string|null $value + */ + public function setIssnDigital($value): self + { + return $this->set('issnDigital', $value); + } + + public function hasIssnDigital(): bool + { + return $this->has('issnDigital'); + } + + public function unsetIssnDigital(): self + { + return $this->remove('issnDigital'); + } + + /** + * @return string|null + */ + public function getSeriesUrl() + { + return $this->get('seriesUrl'); + } + + /** + * @param string|null $value + */ + public function setSeriesUrl($value): self + { + return $this->set('seriesUrl', $value); + } + + public function hasSeriesUrl(): bool + { + return $this->has('seriesUrl'); + } + + public function unsetSeriesUrl(): self + { + return $this->remove('seriesUrl'); + } + + /** + * @return string|null + */ + public function getSeriesDescription() + { + return $this->get('seriesDescription'); + } + + /** + * @param string|null $value + */ + public function setSeriesDescription($value): self + { + return $this->set('seriesDescription', $value); + } + + public function hasSeriesDescription(): bool + { + return $this->has('seriesDescription'); + } + + public function unsetSeriesDescription(): self + { + return $this->remove('seriesDescription'); + } + + /** + * @return string|null + */ + public function getSeriesCfpUrl() + { + return $this->get('seriesCfpUrl'); + } + + /** + * @param string|null $value + */ + public function setSeriesCfpUrl($value): self + { + return $this->set('seriesCfpUrl', $value); + } + + public function hasSeriesCfpUrl(): bool + { + return $this->has('seriesCfpUrl'); + } + + public function unsetSeriesCfpUrl(): self + { + return $this->remove('seriesCfpUrl'); + } + + /** + * @return string + */ + public function getImprintId() + { + return $this->get('imprintId'); + } + + /** + * @param string $value + */ + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchSeries', [ diff --git a/src/GraphQL/Inputs/PatchSubject.php b/src/GraphQL/Inputs/PatchSubject.php index 65c6cac..e6ebf92 100644 --- a/src/GraphQL/Inputs/PatchSubject.php +++ b/src/GraphQL/Inputs/PatchSubject.php @@ -7,6 +7,136 @@ final class PatchSubject extends InputObject { + /** + * @return string + */ + public function getSubjectId() + { + return $this->get('subjectId'); + } + + /** + * @param string $value + */ + public function setSubjectId($value): self + { + return $this->set('subjectId', $value); + } + + public function hasSubjectId(): bool + { + return $this->has('subjectId'); + } + + public function unsetSubjectId(): self + { + return $this->remove('subjectId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getSubjectType() + { + return $this->get('subjectType'); + } + + /** + * @param string $value + */ + public function setSubjectType($value): self + { + return $this->set('subjectType', $value); + } + + public function hasSubjectType(): bool + { + return $this->has('subjectType'); + } + + public function unsetSubjectType(): self + { + return $this->remove('subjectType'); + } + + /** + * @return string + */ + public function getSubjectCode() + { + return $this->get('subjectCode'); + } + + /** + * @param string $value + */ + public function setSubjectCode($value): self + { + return $this->set('subjectCode', $value); + } + + public function hasSubjectCode(): bool + { + return $this->has('subjectCode'); + } + + public function unsetSubjectCode(): self + { + return $this->remove('subjectCode'); + } + + /** + * @return int + */ + public function getSubjectOrdinal() + { + return $this->get('subjectOrdinal'); + } + + /** + * @param int $value + */ + public function setSubjectOrdinal($value): self + { + return $this->set('subjectOrdinal', $value); + } + + public function hasSubjectOrdinal(): bool + { + return $this->has('subjectOrdinal'); + } + + public function unsetSubjectOrdinal(): self + { + return $this->remove('subjectOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchSubject', [ diff --git a/src/GraphQL/Inputs/PatchTitle.php b/src/GraphQL/Inputs/PatchTitle.php index 420a5a6..bf590a1 100644 --- a/src/GraphQL/Inputs/PatchTitle.php +++ b/src/GraphQL/Inputs/PatchTitle.php @@ -7,6 +7,188 @@ final class PatchTitle extends InputObject { + /** + * @return string + */ + public function getTitleId() + { + return $this->get('titleId'); + } + + /** + * @param string $value + */ + public function setTitleId($value): self + { + return $this->set('titleId', $value); + } + + public function hasTitleId(): bool + { + return $this->has('titleId'); + } + + public function unsetTitleId(): self + { + return $this->remove('titleId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getLocaleCode() + { + return $this->get('localeCode'); + } + + /** + * @param string $value + */ + public function setLocaleCode($value): self + { + return $this->set('localeCode', $value); + } + + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + + /** + * @return string + */ + public function getFullTitle() + { + return $this->get('fullTitle'); + } + + /** + * @param string $value + */ + public function setFullTitle($value): self + { + return $this->set('fullTitle', $value); + } + + public function hasFullTitle(): bool + { + return $this->has('fullTitle'); + } + + public function unsetFullTitle(): self + { + return $this->remove('fullTitle'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getSubtitle() + { + return $this->get('subtitle'); + } + + /** + * @param string|null $value + */ + public function setSubtitle($value): self + { + return $this->set('subtitle', $value); + } + + public function hasSubtitle(): bool + { + return $this->has('subtitle'); + } + + public function unsetSubtitle(): self + { + return $this->remove('subtitle'); + } + + /** + * @return bool + */ + public function getCanonical() + { + return $this->get('canonical'); + } + + /** + * @param bool $value + */ + public function setCanonical($value): self + { + return $this->set('canonical', $value); + } + + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchTitle', [ diff --git a/src/GraphQL/Inputs/PatchWork.php b/src/GraphQL/Inputs/PatchWork.php index f365f76..c23ca79 100644 --- a/src/GraphQL/Inputs/PatchWork.php +++ b/src/GraphQL/Inputs/PatchWork.php @@ -7,6 +7,786 @@ final class PatchWork extends InputObject { + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getWorkType() + { + return $this->get('workType'); + } + + /** + * @param string $value + */ + public function setWorkType($value): self + { + return $this->set('workType', $value); + } + + public function hasWorkType(): bool + { + return $this->has('workType'); + } + + public function unsetWorkType(): self + { + return $this->remove('workType'); + } + + /** + * @return string + */ + public function getWorkStatus() + { + return $this->get('workStatus'); + } + + /** + * @param string $value + */ + public function setWorkStatus($value): self + { + return $this->set('workStatus', $value); + } + + public function hasWorkStatus(): bool + { + return $this->has('workStatus'); + } + + public function unsetWorkStatus(): self + { + return $this->remove('workStatus'); + } + + /** + * @return string|null + */ + public function getReference() + { + return $this->get('reference'); + } + + /** + * @param string|null $value + */ + public function setReference($value): self + { + return $this->set('reference', $value); + } + + public function hasReference(): bool + { + return $this->has('reference'); + } + + public function unsetReference(): self + { + return $this->remove('reference'); + } + + /** + * @return int|null + */ + public function getEdition() + { + return $this->get('edition'); + } + + /** + * @param int|null $value + */ + public function setEdition($value): self + { + return $this->set('edition', $value); + } + + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + + /** + * @return string + */ + public function getImprintId() + { + return $this->get('imprintId'); + } + + /** + * @param string $value + */ + public function setImprintId($value): self + { + return $this->set('imprintId', $value); + } + + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + + /** + * @return string|null + */ + public function getDoi() + { + return $this->get('doi'); + } + + /** + * @param string|null $value + */ + public function setDoi($value): self + { + return $this->set('doi', $value); + } + + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + + /** + * @return string|null + */ + public function getPublicationDate() + { + return $this->get('publicationDate'); + } + + /** + * @param string|null $value + */ + public function setPublicationDate($value): self + { + return $this->set('publicationDate', $value); + } + + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + + /** + * @return string|null + */ + public function getWithdrawnDate() + { + return $this->get('withdrawnDate'); + } + + /** + * @param string|null $value + */ + public function setWithdrawnDate($value): self + { + return $this->set('withdrawnDate', $value); + } + + public function hasWithdrawnDate(): bool + { + return $this->has('withdrawnDate'); + } + + public function unsetWithdrawnDate(): self + { + return $this->remove('withdrawnDate'); + } + + /** + * @return string|null + */ + public function getPlace() + { + return $this->get('place'); + } + + /** + * @param string|null $value + */ + public function setPlace($value): self + { + return $this->set('place', $value); + } + + public function hasPlace(): bool + { + return $this->has('place'); + } + + public function unsetPlace(): self + { + return $this->remove('place'); + } + + /** + * @return int|null + */ + public function getPageCount() + { + return $this->get('pageCount'); + } + + /** + * @param int|null $value + */ + public function setPageCount($value): self + { + return $this->set('pageCount', $value); + } + + public function hasPageCount(): bool + { + return $this->has('pageCount'); + } + + public function unsetPageCount(): self + { + return $this->remove('pageCount'); + } + + /** + * @return string|null + */ + public function getPageBreakdown() + { + return $this->get('pageBreakdown'); + } + + /** + * @param string|null $value + */ + public function setPageBreakdown($value): self + { + return $this->set('pageBreakdown', $value); + } + + public function hasPageBreakdown(): bool + { + return $this->has('pageBreakdown'); + } + + public function unsetPageBreakdown(): self + { + return $this->remove('pageBreakdown'); + } + + /** + * @return int|null + */ + public function getImageCount() + { + return $this->get('imageCount'); + } + + /** + * @param int|null $value + */ + public function setImageCount($value): self + { + return $this->set('imageCount', $value); + } + + public function hasImageCount(): bool + { + return $this->has('imageCount'); + } + + public function unsetImageCount(): self + { + return $this->remove('imageCount'); + } + + /** + * @return int|null + */ + public function getTableCount() + { + return $this->get('tableCount'); + } + + /** + * @param int|null $value + */ + public function setTableCount($value): self + { + return $this->set('tableCount', $value); + } + + public function hasTableCount(): bool + { + return $this->has('tableCount'); + } + + public function unsetTableCount(): self + { + return $this->remove('tableCount'); + } + + /** + * @return int|null + */ + public function getAudioCount() + { + return $this->get('audioCount'); + } + + /** + * @param int|null $value + */ + public function setAudioCount($value): self + { + return $this->set('audioCount', $value); + } + + public function hasAudioCount(): bool + { + return $this->has('audioCount'); + } + + public function unsetAudioCount(): self + { + return $this->remove('audioCount'); + } + + /** + * @return int|null + */ + public function getVideoCount() + { + return $this->get('videoCount'); + } + + /** + * @param int|null $value + */ + public function setVideoCount($value): self + { + return $this->set('videoCount', $value); + } + + public function hasVideoCount(): bool + { + return $this->has('videoCount'); + } + + public function unsetVideoCount(): self + { + return $this->remove('videoCount'); + } + + /** + * @return string|null + */ + public function getLicense() + { + return $this->get('license'); + } + + /** + * @param string|null $value + */ + public function setLicense($value): self + { + return $this->set('license', $value); + } + + public function hasLicense(): bool + { + return $this->has('license'); + } + + public function unsetLicense(): self + { + return $this->remove('license'); + } + + /** + * @return string|null + */ + public function getCopyrightHolder() + { + return $this->get('copyrightHolder'); + } + + /** + * @param string|null $value + */ + public function setCopyrightHolder($value): self + { + return $this->set('copyrightHolder', $value); + } + + public function hasCopyrightHolder(): bool + { + return $this->has('copyrightHolder'); + } + + public function unsetCopyrightHolder(): self + { + return $this->remove('copyrightHolder'); + } + + /** + * @return string|null + */ + public function getLandingPage() + { + return $this->get('landingPage'); + } + + /** + * @param string|null $value + */ + public function setLandingPage($value): self + { + return $this->set('landingPage', $value); + } + + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + + /** + * @return string|null + */ + public function getLccn() + { + return $this->get('lccn'); + } + + /** + * @param string|null $value + */ + public function setLccn($value): self + { + return $this->set('lccn', $value); + } + + public function hasLccn(): bool + { + return $this->has('lccn'); + } + + public function unsetLccn(): self + { + return $this->remove('lccn'); + } + + /** + * @return string|null + */ + public function getOclc() + { + return $this->get('oclc'); + } + + /** + * @param string|null $value + */ + public function setOclc($value): self + { + return $this->set('oclc', $value); + } + + public function hasOclc(): bool + { + return $this->has('oclc'); + } + + public function unsetOclc(): self + { + return $this->remove('oclc'); + } + + /** + * @return string|null + */ + public function getGeneralNote() + { + return $this->get('generalNote'); + } + + /** + * @param string|null $value + */ + public function setGeneralNote($value): self + { + return $this->set('generalNote', $value); + } + + public function hasGeneralNote(): bool + { + return $this->has('generalNote'); + } + + public function unsetGeneralNote(): self + { + return $this->remove('generalNote'); + } + + /** + * @return string|null + */ + public function getBibliographyNote() + { + return $this->get('bibliographyNote'); + } + + /** + * @param string|null $value + */ + public function setBibliographyNote($value): self + { + return $this->set('bibliographyNote', $value); + } + + public function hasBibliographyNote(): bool + { + return $this->has('bibliographyNote'); + } + + public function unsetBibliographyNote(): self + { + return $this->remove('bibliographyNote'); + } + + /** + * @return string|null + */ + public function getToc() + { + return $this->get('toc'); + } + + /** + * @param string|null $value + */ + public function setToc($value): self + { + return $this->set('toc', $value); + } + + public function hasToc(): bool + { + return $this->has('toc'); + } + + public function unsetToc(): self + { + return $this->remove('toc'); + } + + /** + * @return string|null + */ + public function getResourcesDescription() + { + return $this->get('resourcesDescription'); + } + + /** + * @param string|null $value + */ + public function setResourcesDescription($value): self + { + return $this->set('resourcesDescription', $value); + } + + public function hasResourcesDescription(): bool + { + return $this->has('resourcesDescription'); + } + + public function unsetResourcesDescription(): self + { + return $this->remove('resourcesDescription'); + } + + /** + * @return string|null + */ + public function getCoverUrl() + { + return $this->get('coverUrl'); + } + + /** + * @param string|null $value + */ + public function setCoverUrl($value): self + { + return $this->set('coverUrl', $value); + } + + public function hasCoverUrl(): bool + { + return $this->has('coverUrl'); + } + + public function unsetCoverUrl(): self + { + return $this->remove('coverUrl'); + } + + /** + * @return string|null + */ + public function getCoverCaption() + { + return $this->get('coverCaption'); + } + + /** + * @param string|null $value + */ + public function setCoverCaption($value): self + { + return $this->set('coverCaption', $value); + } + + public function hasCoverCaption(): bool + { + return $this->has('coverCaption'); + } + + public function unsetCoverCaption(): self + { + return $this->remove('coverCaption'); + } + + /** + * @return string|null + */ + public function getFirstPage() + { + return $this->get('firstPage'); + } + + /** + * @param string|null $value + */ + public function setFirstPage($value): self + { + return $this->set('firstPage', $value); + } + + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + + /** + * @return string|null + */ + public function getLastPage() + { + return $this->get('lastPage'); + } + + /** + * @param string|null $value + */ + public function setLastPage($value): self + { + return $this->set('lastPage', $value); + } + + public function hasLastPage(): bool + { + return $this->has('lastPage'); + } + + public function unsetLastPage(): self + { + return $this->remove('lastPage'); + } + + /** + * @return string|null + */ + public function getPageInterval() + { + return $this->get('pageInterval'); + } + + /** + * @param string|null $value + */ + public function setPageInterval($value): self + { + return $this->set('pageInterval', $value); + } + + public function hasPageInterval(): bool + { + return $this->has('pageInterval'); + } + + public function unsetPageInterval(): self + { + return $this->remove('pageInterval'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWork', [ diff --git a/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php b/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php index 236d004..35e023d 100644 --- a/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php +++ b/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php @@ -7,6 +7,162 @@ final class PatchWorkFeaturedVideo extends InputObject { + /** + * @return string + */ + public function getWorkFeaturedVideoId() + { + return $this->get('workFeaturedVideoId'); + } + + /** + * @param string $value + */ + public function setWorkFeaturedVideoId($value): self + { + return $this->set('workFeaturedVideoId', $value); + } + + public function hasWorkFeaturedVideoId(): bool + { + return $this->has('workFeaturedVideoId'); + } + + public function unsetWorkFeaturedVideoId(): self + { + return $this->remove('workFeaturedVideoId'); + } + + /** + * @return string + */ + public function getWorkId() + { + return $this->get('workId'); + } + + /** + * @param string $value + */ + public function setWorkId($value): self + { + return $this->set('workId', $value); + } + + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + + /** + * @return string + */ + public function getTitle() + { + return $this->get('title'); + } + + /** + * @param string $value + */ + public function setTitle($value): self + { + return $this->set('title', $value); + } + + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + + /** + * @return string|null + */ + public function getUrl() + { + return $this->get('url'); + } + + /** + * @param string|null $value + */ + public function setUrl($value): self + { + return $this->set('url', $value); + } + + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + + /** + * @return int + */ + public function getWidth() + { + return $this->get('width'); + } + + /** + * @param int $value + */ + public function setWidth($value): self + { + return $this->set('width', $value); + } + + public function hasWidth(): bool + { + return $this->has('width'); + } + + public function unsetWidth(): self + { + return $this->remove('width'); + } + + /** + * @return int + */ + public function getHeight() + { + return $this->get('height'); + } + + /** + * @param int $value + */ + public function setHeight($value): self + { + return $this->set('height', $value); + } + + public function hasHeight(): bool + { + return $this->has('height'); + } + + public function unsetHeight(): self + { + return $this->remove('height'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWorkFeaturedVideo', [ diff --git a/src/GraphQL/Inputs/PatchWorkRelation.php b/src/GraphQL/Inputs/PatchWorkRelation.php index 41b1248..5ec6d26 100644 --- a/src/GraphQL/Inputs/PatchWorkRelation.php +++ b/src/GraphQL/Inputs/PatchWorkRelation.php @@ -7,6 +7,136 @@ final class PatchWorkRelation extends InputObject { + /** + * @return string + */ + public function getWorkRelationId() + { + return $this->get('workRelationId'); + } + + /** + * @param string $value + */ + public function setWorkRelationId($value): self + { + return $this->set('workRelationId', $value); + } + + public function hasWorkRelationId(): bool + { + return $this->has('workRelationId'); + } + + public function unsetWorkRelationId(): self + { + return $this->remove('workRelationId'); + } + + /** + * @return string + */ + public function getRelatorWorkId() + { + return $this->get('relatorWorkId'); + } + + /** + * @param string $value + */ + public function setRelatorWorkId($value): self + { + return $this->set('relatorWorkId', $value); + } + + public function hasRelatorWorkId(): bool + { + return $this->has('relatorWorkId'); + } + + public function unsetRelatorWorkId(): self + { + return $this->remove('relatorWorkId'); + } + + /** + * @return string + */ + public function getRelatedWorkId() + { + return $this->get('relatedWorkId'); + } + + /** + * @param string $value + */ + public function setRelatedWorkId($value): self + { + return $this->set('relatedWorkId', $value); + } + + public function hasRelatedWorkId(): bool + { + return $this->has('relatedWorkId'); + } + + public function unsetRelatedWorkId(): self + { + return $this->remove('relatedWorkId'); + } + + /** + * @return string + */ + public function getRelationType() + { + return $this->get('relationType'); + } + + /** + * @param string $value + */ + public function setRelationType($value): self + { + return $this->set('relationType', $value); + } + + public function hasRelationType(): bool + { + return $this->has('relationType'); + } + + public function unsetRelationType(): self + { + return $this->remove('relationType'); + } + + /** + * @return int + */ + public function getRelationOrdinal() + { + return $this->get('relationOrdinal'); + } + + /** + * @param int $value + */ + public function setRelationOrdinal($value): self + { + return $this->set('relationOrdinal', $value); + } + + public function hasRelationOrdinal(): bool + { + return $this->has('relationOrdinal'); + } + + public function unsetRelationOrdinal(): self + { + return $this->remove('relationOrdinal'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PatchWorkRelation', [ diff --git a/src/GraphQL/Inputs/PriceOrderBy.php b/src/GraphQL/Inputs/PriceOrderBy.php index fcf5a5a..bc436dd 100644 --- a/src/GraphQL/Inputs/PriceOrderBy.php +++ b/src/GraphQL/Inputs/PriceOrderBy.php @@ -7,6 +7,58 @@ final class PriceOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PriceOrderBy', [ diff --git a/src/GraphQL/Inputs/PublicationOrderBy.php b/src/GraphQL/Inputs/PublicationOrderBy.php index f5402c9..cc41820 100644 --- a/src/GraphQL/Inputs/PublicationOrderBy.php +++ b/src/GraphQL/Inputs/PublicationOrderBy.php @@ -7,6 +7,58 @@ final class PublicationOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PublicationOrderBy', [ diff --git a/src/GraphQL/Inputs/PublisherOrderBy.php b/src/GraphQL/Inputs/PublisherOrderBy.php index 60e8101..56e2562 100644 --- a/src/GraphQL/Inputs/PublisherOrderBy.php +++ b/src/GraphQL/Inputs/PublisherOrderBy.php @@ -7,6 +7,58 @@ final class PublisherOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('PublisherOrderBy', [ diff --git a/src/GraphQL/Inputs/ReferenceOrderBy.php b/src/GraphQL/Inputs/ReferenceOrderBy.php index 9125f99..1c9c559 100644 --- a/src/GraphQL/Inputs/ReferenceOrderBy.php +++ b/src/GraphQL/Inputs/ReferenceOrderBy.php @@ -7,6 +7,58 @@ final class ReferenceOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('ReferenceOrderBy', [ diff --git a/src/GraphQL/Inputs/SeriesOrderBy.php b/src/GraphQL/Inputs/SeriesOrderBy.php index 2b1002d..c7b5307 100644 --- a/src/GraphQL/Inputs/SeriesOrderBy.php +++ b/src/GraphQL/Inputs/SeriesOrderBy.php @@ -7,6 +7,58 @@ final class SeriesOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('SeriesOrderBy', [ diff --git a/src/GraphQL/Inputs/SubjectOrderBy.php b/src/GraphQL/Inputs/SubjectOrderBy.php index 4312954..cadc4fa 100644 --- a/src/GraphQL/Inputs/SubjectOrderBy.php +++ b/src/GraphQL/Inputs/SubjectOrderBy.php @@ -7,6 +7,58 @@ final class SubjectOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('SubjectOrderBy', [ diff --git a/src/GraphQL/Inputs/TimeExpression.php b/src/GraphQL/Inputs/TimeExpression.php index 287fd00..c0ba65b 100644 --- a/src/GraphQL/Inputs/TimeExpression.php +++ b/src/GraphQL/Inputs/TimeExpression.php @@ -7,6 +7,58 @@ final class TimeExpression extends InputObject { + /** + * @return string + */ + public function getTimestamp() + { + return $this->get('timestamp'); + } + + /** + * @param string $value + */ + public function setTimestamp($value): self + { + return $this->set('timestamp', $value); + } + + public function hasTimestamp(): bool + { + return $this->has('timestamp'); + } + + public function unsetTimestamp(): self + { + return $this->remove('timestamp'); + } + + /** + * @return string + */ + public function getExpression() + { + return $this->get('expression'); + } + + /** + * @param string $value + */ + public function setExpression($value): self + { + return $this->set('expression', $value); + } + + public function hasExpression(): bool + { + return $this->has('expression'); + } + + public function unsetExpression(): self + { + return $this->remove('expression'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('TimeExpression', [ diff --git a/src/GraphQL/Inputs/TitleOrderBy.php b/src/GraphQL/Inputs/TitleOrderBy.php index 2a43d4a..6a6251f 100644 --- a/src/GraphQL/Inputs/TitleOrderBy.php +++ b/src/GraphQL/Inputs/TitleOrderBy.php @@ -7,6 +7,58 @@ final class TitleOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('TitleOrderBy', [ diff --git a/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php b/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php index 19fb261..3250035 100644 --- a/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php +++ b/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php @@ -7,6 +7,58 @@ final class WorkFeaturedVideoOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkFeaturedVideoOrderBy', [ diff --git a/src/GraphQL/Inputs/WorkOrderBy.php b/src/GraphQL/Inputs/WorkOrderBy.php index 584f40b..6a6b326 100644 --- a/src/GraphQL/Inputs/WorkOrderBy.php +++ b/src/GraphQL/Inputs/WorkOrderBy.php @@ -7,6 +7,58 @@ final class WorkOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkOrderBy', [ diff --git a/src/GraphQL/Inputs/WorkRelationOrderBy.php b/src/GraphQL/Inputs/WorkRelationOrderBy.php index 09d1103..4aff8de 100644 --- a/src/GraphQL/Inputs/WorkRelationOrderBy.php +++ b/src/GraphQL/Inputs/WorkRelationOrderBy.php @@ -7,6 +7,58 @@ final class WorkRelationOrderBy extends InputObject { + /** + * @return string + */ + public function getField() + { + return $this->get('field'); + } + + /** + * @param string $value + */ + public function setField($value): self + { + return $this->set('field', $value); + } + + public function hasField(): bool + { + return $this->has('field'); + } + + public function unsetField(): self + { + return $this->remove('field'); + } + + /** + * @return string + */ + public function getDirection() + { + return $this->get('direction'); + } + + /** + * @param string $value + */ + public function setDirection($value): self + { + return $this->set('direction', $value); + } + + public function hasDirection(): bool + { + return $this->has('direction'); + } + + public function unsetDirection(): self + { + return $this->remove('direction'); + } + public static function definition(): InputObjectTypeDefinition { return new InputObjectTypeDefinition('WorkRelationOrderBy', [ diff --git a/src/GraphQL/ObjectData.php b/src/GraphQL/ObjectData.php index da11991..60a12be 100644 --- a/src/GraphQL/ObjectData.php +++ b/src/GraphQL/ObjectData.php @@ -38,6 +38,17 @@ protected function set(string $field, $value): self return $this; } + protected function has(string $field): bool + { + return array_key_exists($field, $this->data); + } + + protected function remove(string $field): self + { + unset($this->data[$field]); + return $this; + } + private static function hydrateFieldValue(string $fieldName, $value) { $field = static::getFieldDefinition($fieldName); diff --git a/src/GraphQL/Operation/VariableNormalizer.php b/src/GraphQL/Operation/VariableNormalizer.php index 6de1180..ec8237e 100644 --- a/src/GraphQL/Operation/VariableNormalizer.php +++ b/src/GraphQL/Operation/VariableNormalizer.php @@ -99,17 +99,20 @@ private function normalizeArrayValue(array $value, ?TypeReference $type): array ); } - if ($fieldValue !== null) { - $normalized[$field] = $this->normalizeValue( + $normalized[$field] = $fieldValue === null + ? null + : $this->normalizeValue( $fieldValue, $inputFields[$field] ?? $this->schemaDefinitions->getInputFieldType($type, (string) $field) ); - } } if ($inputFields !== null) { foreach ($inputFields as $fieldName => $fieldType) { - if ($this->isNonNullType($fieldType) && !array_key_exists($fieldName, $normalized)) { + if ( + $this->isNonNullType($fieldType) + && (!array_key_exists($fieldName, $normalized) || $normalized[$fieldName] === null) + ) { throw new \InvalidArgumentException( "Missing required GraphQL input field '{$fieldName}' for '{$type->baseName()}'." ); diff --git a/src/GraphQL/Schemas/Affiliation.php b/src/GraphQL/Schemas/Affiliation.php index 62ccab7..5c85669 100644 --- a/src/GraphQL/Schemas/Affiliation.php +++ b/src/GraphQL/Schemas/Affiliation.php @@ -23,6 +23,16 @@ public function setAffiliationId($value): self return $this->set('affiliationId', $value); } + public function hasAffiliationId(): bool + { + return $this->has('affiliationId'); + } + + public function unsetAffiliationId(): self + { + return $this->remove('affiliationId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setContributionId($value): self return $this->set('contributionId', $value); } + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setInstitutionId($value): self return $this->set('institutionId', $value); } + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + /** * @return int */ @@ -71,6 +101,16 @@ public function setAffiliationOrdinal($value): self return $this->set('affiliationOrdinal', $value); } + public function hasAffiliationOrdinal(): bool + { + return $this->has('affiliationOrdinal'); + } + + public function unsetAffiliationOrdinal(): self + { + return $this->remove('affiliationOrdinal'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setPosition($value): self return $this->set('position', $value); } + public function hasPosition(): bool + { + return $this->has('position'); + } + + public function unsetPosition(): self + { + return $this->remove('position'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Institution */ @@ -135,6 +205,16 @@ public function setInstitution($value): self return $this->set('institution', $value); } + public function hasInstitution(): bool + { + return $this->has('institution'); + } + + public function unsetInstitution(): self + { + return $this->remove('institution'); + } + /** * @return Contribution */ @@ -151,6 +231,16 @@ public function setContribution($value): self return $this->set('contribution', $value); } + public function hasContribution(): bool + { + return $this->has('contribution'); + } + + public function unsetContribution(): self + { + return $this->remove('contribution'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Affiliation', [ diff --git a/src/GraphQL/Schemas/Award.php b/src/GraphQL/Schemas/Award.php index 402d633..817b2ae 100644 --- a/src/GraphQL/Schemas/Award.php +++ b/src/GraphQL/Schemas/Award.php @@ -23,6 +23,16 @@ public function setAwardId($value): self return $this->set('awardId', $value); } + public function hasAwardId(): bool + { + return $this->has('awardId'); + } + + public function unsetAwardId(): self + { + return $this->remove('awardId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setCategory($value): self return $this->set('category', $value); } + public function hasCategory(): bool + { + return $this->has('category'); + } + + public function unsetCategory(): self + { + return $this->remove('category'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setYear($value): self return $this->set('year', $value); } + public function hasYear(): bool + { + return $this->has('year'); + } + + public function unsetYear(): self + { + return $this->remove('year'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setJury($value): self return $this->set('jury', $value); } + public function hasJury(): bool + { + return $this->has('jury'); + } + + public function unsetJury(): self + { + return $this->remove('jury'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setCountry($value): self return $this->set('country', $value); } + public function hasCountry(): bool + { + return $this->has('country'); + } + + public function unsetCountry(): self + { + return $this->remove('country'); + } + /** * @return string|null */ @@ -151,6 +231,16 @@ public function setRole($value): self return $this->set('role', $value); } + public function hasRole(): bool + { + return $this->has('role'); + } + + public function unsetRole(): self + { + return $this->remove('role'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setPrizeStatement($value): self return $this->set('prizeStatement', $value); } + public function hasPrizeStatement(): bool + { + return $this->has('prizeStatement'); + } + + public function unsetPrizeStatement(): self + { + return $this->remove('prizeStatement'); + } + /** * @return int */ @@ -183,6 +283,16 @@ public function setAwardOrdinal($value): self return $this->set('awardOrdinal', $value); } + public function hasAwardOrdinal(): bool + { + return $this->has('awardOrdinal'); + } + + public function unsetAwardOrdinal(): self + { + return $this->remove('awardOrdinal'); + } + /** * @return string */ @@ -199,6 +309,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -215,6 +335,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -231,6 +361,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Award', [ diff --git a/src/GraphQL/Schemas/Biography.php b/src/GraphQL/Schemas/Biography.php index 8de0083..bbfc523 100644 --- a/src/GraphQL/Schemas/Biography.php +++ b/src/GraphQL/Schemas/Biography.php @@ -23,6 +23,16 @@ public function setBiographyId($value): self return $this->set('biographyId', $value); } + public function hasBiographyId(): bool + { + return $this->has('biographyId'); + } + + public function unsetBiographyId(): self + { + return $this->remove('biographyId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setContributionId($value): self return $this->set('contributionId', $value); } + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setLocaleCode($value): self return $this->set('localeCode', $value); } + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setContent($value): self return $this->set('content', $value); } + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + /** * @return bool */ @@ -87,6 +127,16 @@ public function setCanonical($value): self return $this->set('canonical', $value); } + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + /** * @return Work */ @@ -103,6 +153,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Contribution */ @@ -119,6 +179,16 @@ public function setContribution($value): self return $this->set('contribution', $value); } + public function hasContribution(): bool + { + return $this->has('contribution'); + } + + public function unsetContribution(): self + { + return $this->remove('contribution'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Biography', [ diff --git a/src/GraphQL/Schemas/BookReview.php b/src/GraphQL/Schemas/BookReview.php index 68c5c18..b674719 100644 --- a/src/GraphQL/Schemas/BookReview.php +++ b/src/GraphQL/Schemas/BookReview.php @@ -23,6 +23,16 @@ public function setBookReviewId($value): self return $this->set('bookReviewId', $value); } + public function hasBookReviewId(): bool + { + return $this->has('bookReviewId'); + } + + public function unsetBookReviewId(): self + { + return $this->remove('bookReviewId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setAuthorName($value): self return $this->set('authorName', $value); } + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setReviewerOrcid($value): self return $this->set('reviewerOrcid', $value); } + public function hasReviewerOrcid(): bool + { + return $this->has('reviewerOrcid'); + } + + public function unsetReviewerOrcid(): self + { + return $this->remove('reviewerOrcid'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setReviewerInstitutionId($value): self return $this->set('reviewerInstitutionId', $value); } + public function hasReviewerInstitutionId(): bool + { + return $this->has('reviewerInstitutionId'); + } + + public function unsetReviewerInstitutionId(): self + { + return $this->remove('reviewerInstitutionId'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setDoi($value): self return $this->set('doi', $value); } + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + /** * @return string|null */ @@ -151,6 +231,16 @@ public function setReviewDate($value): self return $this->set('reviewDate', $value); } + public function hasReviewDate(): bool + { + return $this->has('reviewDate'); + } + + public function unsetReviewDate(): self + { + return $this->remove('reviewDate'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setJournalName($value): self return $this->set('journalName', $value); } + public function hasJournalName(): bool + { + return $this->has('journalName'); + } + + public function unsetJournalName(): self + { + return $this->remove('journalName'); + } + /** * @return string|null */ @@ -183,6 +283,16 @@ public function setJournalVolume($value): self return $this->set('journalVolume', $value); } + public function hasJournalVolume(): bool + { + return $this->has('journalVolume'); + } + + public function unsetJournalVolume(): self + { + return $this->remove('journalVolume'); + } + /** * @return string|null */ @@ -199,6 +309,16 @@ public function setJournalNumber($value): self return $this->set('journalNumber', $value); } + public function hasJournalNumber(): bool + { + return $this->has('journalNumber'); + } + + public function unsetJournalNumber(): self + { + return $this->remove('journalNumber'); + } + /** * @return string|null */ @@ -215,6 +335,16 @@ public function setJournalIssn($value): self return $this->set('journalIssn', $value); } + public function hasJournalIssn(): bool + { + return $this->has('journalIssn'); + } + + public function unsetJournalIssn(): self + { + return $this->remove('journalIssn'); + } + /** * @return string|null */ @@ -231,6 +361,16 @@ public function setPageRange($value): self return $this->set('pageRange', $value); } + public function hasPageRange(): bool + { + return $this->has('pageRange'); + } + + public function unsetPageRange(): self + { + return $this->remove('pageRange'); + } + /** * @return string|null */ @@ -247,6 +387,16 @@ public function setText($value): self return $this->set('text', $value); } + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + /** * @return int */ @@ -263,6 +413,16 @@ public function setReviewOrdinal($value): self return $this->set('reviewOrdinal', $value); } + public function hasReviewOrdinal(): bool + { + return $this->has('reviewOrdinal'); + } + + public function unsetReviewOrdinal(): self + { + return $this->remove('reviewOrdinal'); + } + /** * @return string */ @@ -279,6 +439,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -295,6 +465,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -311,6 +491,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Institution|null */ @@ -327,6 +517,16 @@ public function setReviewerInstitution($value): self return $this->set('reviewerInstitution', $value); } + public function hasReviewerInstitution(): bool + { + return $this->has('reviewerInstitution'); + } + + public function unsetReviewerInstitution(): self + { + return $this->remove('reviewerInstitution'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('BookReview', [ diff --git a/src/GraphQL/Schemas/Contact.php b/src/GraphQL/Schemas/Contact.php index 3c1d0e7..b02bd02 100644 --- a/src/GraphQL/Schemas/Contact.php +++ b/src/GraphQL/Schemas/Contact.php @@ -23,6 +23,16 @@ public function setContactId($value): self return $this->set('contactId', $value); } + public function hasContactId(): bool + { + return $this->has('contactId'); + } + + public function unsetContactId(): self + { + return $this->remove('contactId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublisherId($value): self return $this->set('publisherId', $value); } + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setContactType($value): self return $this->set('contactType', $value); } + public function hasContactType(): bool + { + return $this->has('contactType'); + } + + public function unsetContactType(): self + { + return $this->remove('contactType'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setEmail($value): self return $this->set('email', $value); } + public function hasEmail(): bool + { + return $this->has('email'); + } + + public function unsetEmail(): self + { + return $this->remove('email'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Publisher */ @@ -119,6 +179,16 @@ public function setPublisher($value): self return $this->set('publisher', $value); } + public function hasPublisher(): bool + { + return $this->has('publisher'); + } + + public function unsetPublisher(): self + { + return $this->remove('publisher'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contact', [ diff --git a/src/GraphQL/Schemas/Contribution.php b/src/GraphQL/Schemas/Contribution.php index cdfade9..7ceefee 100644 --- a/src/GraphQL/Schemas/Contribution.php +++ b/src/GraphQL/Schemas/Contribution.php @@ -23,6 +23,16 @@ public function setContributionId($value): self return $this->set('contributionId', $value); } + public function hasContributionId(): bool + { + return $this->has('contributionId'); + } + + public function unsetContributionId(): self + { + return $this->remove('contributionId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setContributorId($value): self return $this->set('contributorId', $value); } + public function hasContributorId(): bool + { + return $this->has('contributorId'); + } + + public function unsetContributorId(): self + { + return $this->remove('contributorId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setContributionType($value): self return $this->set('contributionType', $value); } + public function hasContributionType(): bool + { + return $this->has('contributionType'); + } + + public function unsetContributionType(): self + { + return $this->remove('contributionType'); + } + /** * @return bool */ @@ -87,6 +127,16 @@ public function setMainContribution($value): self return $this->set('mainContribution', $value); } + public function hasMainContribution(): bool + { + return $this->has('mainContribution'); + } + + public function unsetMainContribution(): self + { + return $this->remove('mainContribution'); + } + /** * @return Biography[] */ @@ -103,6 +153,16 @@ public function setBiographies($value): self return $this->set('biographies', $value); } + public function hasBiographies(): bool + { + return $this->has('biographies'); + } + + public function unsetBiographies(): self + { + return $this->remove('biographies'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setBiography($value): self return $this->set('biography', $value); } + public function hasBiography(): bool + { + return $this->has('biography'); + } + + public function unsetBiography(): self + { + return $this->remove('biography'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setFirstName($value): self return $this->set('firstName', $value); } + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + /** * @return string */ @@ -183,6 +283,16 @@ public function setLastName($value): self return $this->set('lastName', $value); } + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + /** * @return string */ @@ -199,6 +309,16 @@ public function setFullName($value): self return $this->set('fullName', $value); } + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + /** * @return int */ @@ -215,6 +335,16 @@ public function setContributionOrdinal($value): self return $this->set('contributionOrdinal', $value); } + public function hasContributionOrdinal(): bool + { + return $this->has('contributionOrdinal'); + } + + public function unsetContributionOrdinal(): self + { + return $this->remove('contributionOrdinal'); + } + /** * @return Work */ @@ -231,6 +361,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Contributor */ @@ -247,6 +387,16 @@ public function setContributor($value): self return $this->set('contributor', $value); } + public function hasContributor(): bool + { + return $this->has('contributor'); + } + + public function unsetContributor(): self + { + return $this->remove('contributor'); + } + /** * @return Affiliation[] */ @@ -263,6 +413,16 @@ public function setAffiliations($value): self return $this->set('affiliations', $value); } + public function hasAffiliations(): bool + { + return $this->has('affiliations'); + } + + public function unsetAffiliations(): self + { + return $this->remove('affiliations'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contribution', [ diff --git a/src/GraphQL/Schemas/Contributor.php b/src/GraphQL/Schemas/Contributor.php index 4becbf6..2339816 100644 --- a/src/GraphQL/Schemas/Contributor.php +++ b/src/GraphQL/Schemas/Contributor.php @@ -23,6 +23,16 @@ public function setContributorId($value): self return $this->set('contributorId', $value); } + public function hasContributorId(): bool + { + return $this->has('contributorId'); + } + + public function unsetContributorId(): self + { + return $this->remove('contributorId'); + } + /** * @return string|null */ @@ -39,6 +49,16 @@ public function setFirstName($value): self return $this->set('firstName', $value); } + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setLastName($value): self return $this->set('lastName', $value); } + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setFullName($value): self return $this->set('fullName', $value); } + public function hasFullName(): bool + { + return $this->has('fullName'); + } + + public function unsetFullName(): self + { + return $this->remove('fullName'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setOrcid($value): self return $this->set('orcid', $value); } + public function hasOrcid(): bool + { + return $this->has('orcid'); + } + + public function unsetOrcid(): self + { + return $this->remove('orcid'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setWebsite($value): self return $this->set('website', $value); } + public function hasWebsite(): bool + { + return $this->has('website'); + } + + public function unsetWebsite(): self + { + return $this->remove('website'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Contribution[] */ @@ -151,6 +231,16 @@ public function setContributions($value): self return $this->set('contributions', $value); } + public function hasContributions(): bool + { + return $this->has('contributions'); + } + + public function unsetContributions(): self + { + return $this->remove('contributions'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Contributor', [ diff --git a/src/GraphQL/Schemas/Endorsement.php b/src/GraphQL/Schemas/Endorsement.php index 29ef237..b1b61c5 100644 --- a/src/GraphQL/Schemas/Endorsement.php +++ b/src/GraphQL/Schemas/Endorsement.php @@ -23,6 +23,16 @@ public function setEndorsementId($value): self return $this->set('endorsementId', $value); } + public function hasEndorsementId(): bool + { + return $this->has('endorsementId'); + } + + public function unsetEndorsementId(): self + { + return $this->remove('endorsementId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setAuthorName($value): self return $this->set('authorName', $value); } + public function hasAuthorName(): bool + { + return $this->has('authorName'); + } + + public function unsetAuthorName(): self + { + return $this->remove('authorName'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setAuthorRole($value): self return $this->set('authorRole', $value); } + public function hasAuthorRole(): bool + { + return $this->has('authorRole'); + } + + public function unsetAuthorRole(): self + { + return $this->remove('authorRole'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setAuthorOrcid($value): self return $this->set('authorOrcid', $value); } + public function hasAuthorOrcid(): bool + { + return $this->has('authorOrcid'); + } + + public function unsetAuthorOrcid(): self + { + return $this->remove('authorOrcid'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setAuthorInstitutionId($value): self return $this->set('authorInstitutionId', $value); } + public function hasAuthorInstitutionId(): bool + { + return $this->has('authorInstitutionId'); + } + + public function unsetAuthorInstitutionId(): self + { + return $this->remove('authorInstitutionId'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setText($value): self return $this->set('text', $value); } + public function hasText(): bool + { + return $this->has('text'); + } + + public function unsetText(): self + { + return $this->remove('text'); + } + /** * @return int */ @@ -151,6 +231,16 @@ public function setEndorsementOrdinal($value): self return $this->set('endorsementOrdinal', $value); } + public function hasEndorsementOrdinal(): bool + { + return $this->has('endorsementOrdinal'); + } + + public function unsetEndorsementOrdinal(): self + { + return $this->remove('endorsementOrdinal'); + } + /** * @return string */ @@ -167,6 +257,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -183,6 +283,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -199,6 +309,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Institution|null */ @@ -215,6 +335,16 @@ public function setAuthorInstitution($value): self return $this->set('authorInstitution', $value); } + public function hasAuthorInstitution(): bool + { + return $this->has('authorInstitution'); + } + + public function unsetAuthorInstitution(): self + { + return $this->remove('authorInstitution'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Endorsement', [ diff --git a/src/GraphQL/Schemas/File.php b/src/GraphQL/Schemas/File.php index 31776f2..d04abc3 100644 --- a/src/GraphQL/Schemas/File.php +++ b/src/GraphQL/Schemas/File.php @@ -23,6 +23,16 @@ public function setFileId($value): self return $this->set('fileId', $value); } + public function hasFileId(): bool + { + return $this->has('fileId'); + } + + public function unsetFileId(): self + { + return $this->remove('fileId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setFileType($value): self return $this->set('fileType', $value); } + public function hasFileType(): bool + { + return $this->has('fileType'); + } + + public function unsetFileType(): self + { + return $this->remove('fileType'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setPublicationId($value): self return $this->set('publicationId', $value); } + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setAdditionalResourceId($value): self return $this->set('additionalResourceId', $value); } + public function hasAdditionalResourceId(): bool + { + return $this->has('additionalResourceId'); + } + + public function unsetAdditionalResourceId(): self + { + return $this->remove('additionalResourceId'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setWorkFeaturedVideoId($value): self return $this->set('workFeaturedVideoId', $value); } + public function hasWorkFeaturedVideoId(): bool + { + return $this->has('workFeaturedVideoId'); + } + + public function unsetWorkFeaturedVideoId(): self + { + return $this->remove('workFeaturedVideoId'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setObjectKey($value): self return $this->set('objectKey', $value); } + public function hasObjectKey(): bool + { + return $this->has('objectKey'); + } + + public function unsetObjectKey(): self + { + return $this->remove('objectKey'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setCdnUrl($value): self return $this->set('cdnUrl', $value); } + public function hasCdnUrl(): bool + { + return $this->has('cdnUrl'); + } + + public function unsetCdnUrl(): self + { + return $this->remove('cdnUrl'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setMimeType($value): self return $this->set('mimeType', $value); } + public function hasMimeType(): bool + { + return $this->has('mimeType'); + } + + public function unsetMimeType(): self + { + return $this->remove('mimeType'); + } + /** * @return int */ @@ -167,6 +257,16 @@ public function setBytes($value): self return $this->set('bytes', $value); } + public function hasBytes(): bool + { + return $this->has('bytes'); + } + + public function unsetBytes(): self + { + return $this->remove('bytes'); + } + /** * @return string */ @@ -183,6 +283,16 @@ public function setSha256($value): self return $this->set('sha256', $value); } + public function hasSha256(): bool + { + return $this->has('sha256'); + } + + public function unsetSha256(): self + { + return $this->remove('sha256'); + } + /** * @return string */ @@ -199,6 +309,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -215,6 +335,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('File', [ diff --git a/src/GraphQL/Schemas/FileUploadResponse.php b/src/GraphQL/Schemas/FileUploadResponse.php index 030af57..5ca189d 100644 --- a/src/GraphQL/Schemas/FileUploadResponse.php +++ b/src/GraphQL/Schemas/FileUploadResponse.php @@ -23,6 +23,16 @@ public function setFileUploadId($value): self return $this->set('fileUploadId', $value); } + public function hasFileUploadId(): bool + { + return $this->has('fileUploadId'); + } + + public function unsetFileUploadId(): self + { + return $this->remove('fileUploadId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setUploadUrl($value): self return $this->set('uploadUrl', $value); } + public function hasUploadUrl(): bool + { + return $this->has('uploadUrl'); + } + + public function unsetUploadUrl(): self + { + return $this->remove('uploadUrl'); + } + /** * @return UploadRequestHeader[] */ @@ -55,6 +75,16 @@ public function setUploadHeaders($value): self return $this->set('uploadHeaders', $value); } + public function hasUploadHeaders(): bool + { + return $this->has('uploadHeaders'); + } + + public function unsetUploadHeaders(): self + { + return $this->remove('uploadHeaders'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setExpiresAt($value): self return $this->set('expiresAt', $value); } + public function hasExpiresAt(): bool + { + return $this->has('expiresAt'); + } + + public function unsetExpiresAt(): self + { + return $this->remove('expiresAt'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('FileUploadResponse', [ diff --git a/src/GraphQL/Schemas/Funding.php b/src/GraphQL/Schemas/Funding.php index 656d638..c93157f 100644 --- a/src/GraphQL/Schemas/Funding.php +++ b/src/GraphQL/Schemas/Funding.php @@ -23,6 +23,16 @@ public function setFundingId($value): self return $this->set('fundingId', $value); } + public function hasFundingId(): bool + { + return $this->has('fundingId'); + } + + public function unsetFundingId(): self + { + return $this->remove('fundingId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setInstitutionId($value): self return $this->set('institutionId', $value); } + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setProgram($value): self return $this->set('program', $value); } + public function hasProgram(): bool + { + return $this->has('program'); + } + + public function unsetProgram(): self + { + return $this->remove('program'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setProjectName($value): self return $this->set('projectName', $value); } + public function hasProjectName(): bool + { + return $this->has('projectName'); + } + + public function unsetProjectName(): self + { + return $this->remove('projectName'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setProjectShortname($value): self return $this->set('projectShortname', $value); } + public function hasProjectShortname(): bool + { + return $this->has('projectShortname'); + } + + public function unsetProjectShortname(): self + { + return $this->remove('projectShortname'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setGrantNumber($value): self return $this->set('grantNumber', $value); } + public function hasGrantNumber(): bool + { + return $this->has('grantNumber'); + } + + public function unsetGrantNumber(): self + { + return $this->remove('grantNumber'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -167,6 +257,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Institution */ @@ -183,6 +283,16 @@ public function setInstitution($value): self return $this->set('institution', $value); } + public function hasInstitution(): bool + { + return $this->has('institution'); + } + + public function unsetInstitution(): self + { + return $this->remove('institution'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Funding', [ diff --git a/src/GraphQL/Schemas/GraphQLAbstract.php b/src/GraphQL/Schemas/GraphQLAbstract.php index f221721..2405c01 100644 --- a/src/GraphQL/Schemas/GraphQLAbstract.php +++ b/src/GraphQL/Schemas/GraphQLAbstract.php @@ -23,6 +23,16 @@ public function setAbstractId($value): self return $this->set('abstractId', $value); } + public function hasAbstractId(): bool + { + return $this->has('abstractId'); + } + + public function unsetAbstractId(): self + { + return $this->remove('abstractId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setLocaleCode($value): self return $this->set('localeCode', $value); } + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setContent($value): self return $this->set('content', $value); } + public function hasContent(): bool + { + return $this->has('content'); + } + + public function unsetContent(): self + { + return $this->remove('content'); + } + /** * @return bool */ @@ -87,6 +127,16 @@ public function setCanonical($value): self return $this->set('canonical', $value); } + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setAbstractType($value): self return $this->set('abstractType', $value); } + public function hasAbstractType(): bool + { + return $this->has('abstractType'); + } + + public function unsetAbstractType(): self + { + return $this->remove('abstractType'); + } + /** * @return Work */ @@ -119,6 +179,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Abstract', [ diff --git a/src/GraphQL/Schemas/Imprint.php b/src/GraphQL/Schemas/Imprint.php index 9d924ac..012c4b2 100644 --- a/src/GraphQL/Schemas/Imprint.php +++ b/src/GraphQL/Schemas/Imprint.php @@ -23,6 +23,16 @@ public function setImprintId($value): self return $this->set('imprintId', $value); } + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublisherId($value): self return $this->set('publisherId', $value); } + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setImprintName($value): self return $this->set('imprintName', $value); } + public function hasImprintName(): bool + { + return $this->has('imprintName'); + } + + public function unsetImprintName(): self + { + return $this->remove('imprintName'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setImprintUrl($value): self return $this->set('imprintUrl', $value); } + public function hasImprintUrl(): bool + { + return $this->has('imprintUrl'); + } + + public function unsetImprintUrl(): self + { + return $this->remove('imprintUrl'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setCrossmarkDoi($value): self return $this->set('crossmarkDoi', $value); } + public function hasCrossmarkDoi(): bool + { + return $this->has('crossmarkDoi'); + } + + public function unsetCrossmarkDoi(): self + { + return $this->remove('crossmarkDoi'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setS3Bucket($value): self return $this->set('s3Bucket', $value); } + public function hasS3Bucket(): bool + { + return $this->has('s3Bucket'); + } + + public function unsetS3Bucket(): self + { + return $this->remove('s3Bucket'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setCdnDomain($value): self return $this->set('cdnDomain', $value); } + public function hasCdnDomain(): bool + { + return $this->has('cdnDomain'); + } + + public function unsetCdnDomain(): self + { + return $this->remove('cdnDomain'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setCloudfrontDistId($value): self return $this->set('cloudfrontDistId', $value); } + public function hasCloudfrontDistId(): bool + { + return $this->has('cloudfrontDistId'); + } + + public function unsetCloudfrontDistId(): self + { + return $this->remove('cloudfrontDistId'); + } + /** * @return string|null */ @@ -151,6 +231,16 @@ public function setDefaultCurrency($value): self return $this->set('defaultCurrency', $value); } + public function hasDefaultCurrency(): bool + { + return $this->has('defaultCurrency'); + } + + public function unsetDefaultCurrency(): self + { + return $this->remove('defaultCurrency'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setDefaultPlace($value): self return $this->set('defaultPlace', $value); } + public function hasDefaultPlace(): bool + { + return $this->has('defaultPlace'); + } + + public function unsetDefaultPlace(): self + { + return $this->remove('defaultPlace'); + } + /** * @return string|null */ @@ -183,6 +283,16 @@ public function setDefaultLocale($value): self return $this->set('defaultLocale', $value); } + public function hasDefaultLocale(): bool + { + return $this->has('defaultLocale'); + } + + public function unsetDefaultLocale(): self + { + return $this->remove('defaultLocale'); + } + /** * @return string */ @@ -199,6 +309,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -215,6 +335,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Publisher */ @@ -231,6 +361,16 @@ public function setPublisher($value): self return $this->set('publisher', $value); } + public function hasPublisher(): bool + { + return $this->has('publisher'); + } + + public function unsetPublisher(): self + { + return $this->remove('publisher'); + } + /** * @return Work[] */ @@ -247,6 +387,16 @@ public function setWorks($value): self return $this->set('works', $value); } + public function hasWorks(): bool + { + return $this->has('works'); + } + + public function unsetWorks(): self + { + return $this->remove('works'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Imprint', [ diff --git a/src/GraphQL/Schemas/Institution.php b/src/GraphQL/Schemas/Institution.php index c623d82..ad130a2 100644 --- a/src/GraphQL/Schemas/Institution.php +++ b/src/GraphQL/Schemas/Institution.php @@ -23,6 +23,16 @@ public function setInstitutionId($value): self return $this->set('institutionId', $value); } + public function hasInstitutionId(): bool + { + return $this->has('institutionId'); + } + + public function unsetInstitutionId(): self + { + return $this->remove('institutionId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setInstitutionName($value): self return $this->set('institutionName', $value); } + public function hasInstitutionName(): bool + { + return $this->has('institutionName'); + } + + public function unsetInstitutionName(): self + { + return $this->remove('institutionName'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setInstitutionDoi($value): self return $this->set('institutionDoi', $value); } + public function hasInstitutionDoi(): bool + { + return $this->has('institutionDoi'); + } + + public function unsetInstitutionDoi(): self + { + return $this->remove('institutionDoi'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setCountryCode($value): self return $this->set('countryCode', $value); } + public function hasCountryCode(): bool + { + return $this->has('countryCode'); + } + + public function unsetCountryCode(): self + { + return $this->remove('countryCode'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setRor($value): self return $this->set('ror', $value); } + public function hasRor(): bool + { + return $this->has('ror'); + } + + public function unsetRor(): self + { + return $this->remove('ror'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Funding[] */ @@ -135,6 +205,16 @@ public function setFundings($value): self return $this->set('fundings', $value); } + public function hasFundings(): bool + { + return $this->has('fundings'); + } + + public function unsetFundings(): self + { + return $this->remove('fundings'); + } + /** * @return Affiliation[] */ @@ -151,6 +231,16 @@ public function setAffiliations($value): self return $this->set('affiliations', $value); } + public function hasAffiliations(): bool + { + return $this->has('affiliations'); + } + + public function unsetAffiliations(): self + { + return $this->remove('affiliations'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Institution', [ diff --git a/src/GraphQL/Schemas/Issue.php b/src/GraphQL/Schemas/Issue.php index 581c6ed..31b9b7f 100644 --- a/src/GraphQL/Schemas/Issue.php +++ b/src/GraphQL/Schemas/Issue.php @@ -23,6 +23,16 @@ public function setIssueId($value): self return $this->set('issueId', $value); } + public function hasIssueId(): bool + { + return $this->has('issueId'); + } + + public function unsetIssueId(): self + { + return $this->remove('issueId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setSeriesId($value): self return $this->set('seriesId', $value); } + public function hasSeriesId(): bool + { + return $this->has('seriesId'); + } + + public function unsetSeriesId(): self + { + return $this->remove('seriesId'); + } + /** * @return int */ @@ -71,6 +101,16 @@ public function setIssueOrdinal($value): self return $this->set('issueOrdinal', $value); } + public function hasIssueOrdinal(): bool + { + return $this->has('issueOrdinal'); + } + + public function unsetIssueOrdinal(): self + { + return $this->remove('issueOrdinal'); + } + /** * @return int|null */ @@ -87,6 +127,16 @@ public function setIssueNumber($value): self return $this->set('issueNumber', $value); } + public function hasIssueNumber(): bool + { + return $this->has('issueNumber'); + } + + public function unsetIssueNumber(): self + { + return $this->remove('issueNumber'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Series */ @@ -135,6 +205,16 @@ public function setSeries($value): self return $this->set('series', $value); } + public function hasSeries(): bool + { + return $this->has('series'); + } + + public function unsetSeries(): self + { + return $this->remove('series'); + } + /** * @return Work */ @@ -151,6 +231,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Issue', [ diff --git a/src/GraphQL/Schemas/Language.php b/src/GraphQL/Schemas/Language.php index 03dfdc2..11cd620 100644 --- a/src/GraphQL/Schemas/Language.php +++ b/src/GraphQL/Schemas/Language.php @@ -23,6 +23,16 @@ public function setLanguageId($value): self return $this->set('languageId', $value); } + public function hasLanguageId(): bool + { + return $this->has('languageId'); + } + + public function unsetLanguageId(): self + { + return $this->remove('languageId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setLanguageCode($value): self return $this->set('languageCode', $value); } + public function hasLanguageCode(): bool + { + return $this->has('languageCode'); + } + + public function unsetLanguageCode(): self + { + return $this->remove('languageCode'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setLanguageRelation($value): self return $this->set('languageRelation', $value); } + public function hasLanguageRelation(): bool + { + return $this->has('languageRelation'); + } + + public function unsetLanguageRelation(): self + { + return $this->remove('languageRelation'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -119,6 +179,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Language', [ diff --git a/src/GraphQL/Schemas/Location.php b/src/GraphQL/Schemas/Location.php index fa44c08..945aca1 100644 --- a/src/GraphQL/Schemas/Location.php +++ b/src/GraphQL/Schemas/Location.php @@ -23,6 +23,16 @@ public function setLocationId($value): self return $this->set('locationId', $value); } + public function hasLocationId(): bool + { + return $this->has('locationId'); + } + + public function unsetLocationId(): self + { + return $this->remove('locationId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublicationId($value): self return $this->set('publicationId', $value); } + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setLandingPage($value): self return $this->set('landingPage', $value); } + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setFullTextUrl($value): self return $this->set('fullTextUrl', $value); } + public function hasFullTextUrl(): bool + { + return $this->has('fullTextUrl'); + } + + public function unsetFullTextUrl(): self + { + return $this->remove('fullTextUrl'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setLocationPlatform($value): self return $this->set('locationPlatform', $value); } + public function hasLocationPlatform(): bool + { + return $this->has('locationPlatform'); + } + + public function unsetLocationPlatform(): self + { + return $this->remove('locationPlatform'); + } + /** * @return bool */ @@ -103,6 +153,16 @@ public function setCanonical($value): self return $this->set('canonical', $value); } + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setChecksum($value): self return $this->set('checksum', $value); } + public function hasChecksum(): bool + { + return $this->has('checksum'); + } + + public function unsetChecksum(): self + { + return $this->remove('checksum'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setChecksumAlgorithm($value): self return $this->set('checksumAlgorithm', $value); } + public function hasChecksumAlgorithm(): bool + { + return $this->has('checksumAlgorithm'); + } + + public function unsetChecksumAlgorithm(): self + { + return $this->remove('checksumAlgorithm'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -167,6 +257,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Publication */ @@ -183,6 +283,16 @@ public function setPublication($value): self return $this->set('publication', $value); } + public function hasPublication(): bool + { + return $this->has('publication'); + } + + public function unsetPublication(): self + { + return $this->remove('publication'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Location', [ diff --git a/src/GraphQL/Schemas/Me.php b/src/GraphQL/Schemas/Me.php index c7a5a03..4ead8e0 100644 --- a/src/GraphQL/Schemas/Me.php +++ b/src/GraphQL/Schemas/Me.php @@ -23,6 +23,16 @@ public function setUserId($value): self return $this->set('userId', $value); } + public function hasUserId(): bool + { + return $this->has('userId'); + } + + public function unsetUserId(): self + { + return $this->remove('userId'); + } + /** * @return string|null */ @@ -39,6 +49,16 @@ public function setEmail($value): self return $this->set('email', $value); } + public function hasEmail(): bool + { + return $this->has('email'); + } + + public function unsetEmail(): self + { + return $this->remove('email'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setFirstName($value): self return $this->set('firstName', $value); } + public function hasFirstName(): bool + { + return $this->has('firstName'); + } + + public function unsetFirstName(): self + { + return $this->remove('firstName'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setLastName($value): self return $this->set('lastName', $value); } + public function hasLastName(): bool + { + return $this->has('lastName'); + } + + public function unsetLastName(): self + { + return $this->remove('lastName'); + } + /** * @return bool */ @@ -87,6 +127,16 @@ public function setIsSuperuser($value): self return $this->set('isSuperuser', $value); } + public function hasIsSuperuser(): bool + { + return $this->has('isSuperuser'); + } + + public function unsetIsSuperuser(): self + { + return $this->remove('isSuperuser'); + } + /** * @return PublisherContext[] */ @@ -103,6 +153,16 @@ public function setPublisherContexts($value): self return $this->set('publisherContexts', $value); } + public function hasPublisherContexts(): bool + { + return $this->has('publisherContexts'); + } + + public function unsetPublisherContexts(): self + { + return $this->remove('publisherContexts'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Me', [ diff --git a/src/GraphQL/Schemas/MutationRoot.php b/src/GraphQL/Schemas/MutationRoot.php index 88f5331..a47a575 100644 --- a/src/GraphQL/Schemas/MutationRoot.php +++ b/src/GraphQL/Schemas/MutationRoot.php @@ -23,6 +23,16 @@ public function setCreateWork($value): self return $this->set('createWork', $value); } + public function hasCreateWork(): bool + { + return $this->has('createWork'); + } + + public function unsetCreateWork(): self + { + return $this->remove('createWork'); + } + /** * @return Publisher */ @@ -39,6 +49,16 @@ public function setCreatePublisher($value): self return $this->set('createPublisher', $value); } + public function hasCreatePublisher(): bool + { + return $this->has('createPublisher'); + } + + public function unsetCreatePublisher(): self + { + return $this->remove('createPublisher'); + } + /** * @return Imprint */ @@ -55,6 +75,16 @@ public function setCreateImprint($value): self return $this->set('createImprint', $value); } + public function hasCreateImprint(): bool + { + return $this->has('createImprint'); + } + + public function unsetCreateImprint(): self + { + return $this->remove('createImprint'); + } + /** * @return Contributor */ @@ -71,6 +101,16 @@ public function setCreateContributor($value): self return $this->set('createContributor', $value); } + public function hasCreateContributor(): bool + { + return $this->has('createContributor'); + } + + public function unsetCreateContributor(): self + { + return $this->remove('createContributor'); + } + /** * @return Contribution */ @@ -87,6 +127,16 @@ public function setCreateContribution($value): self return $this->set('createContribution', $value); } + public function hasCreateContribution(): bool + { + return $this->has('createContribution'); + } + + public function unsetCreateContribution(): self + { + return $this->remove('createContribution'); + } + /** * @return Publication */ @@ -103,6 +153,16 @@ public function setCreatePublication($value): self return $this->set('createPublication', $value); } + public function hasCreatePublication(): bool + { + return $this->has('createPublication'); + } + + public function unsetCreatePublication(): self + { + return $this->remove('createPublication'); + } + /** * @return Series */ @@ -119,6 +179,16 @@ public function setCreateSeries($value): self return $this->set('createSeries', $value); } + public function hasCreateSeries(): bool + { + return $this->has('createSeries'); + } + + public function unsetCreateSeries(): self + { + return $this->remove('createSeries'); + } + /** * @return Issue */ @@ -135,6 +205,16 @@ public function setCreateIssue($value): self return $this->set('createIssue', $value); } + public function hasCreateIssue(): bool + { + return $this->has('createIssue'); + } + + public function unsetCreateIssue(): self + { + return $this->remove('createIssue'); + } + /** * @return Language */ @@ -151,6 +231,16 @@ public function setCreateLanguage($value): self return $this->set('createLanguage', $value); } + public function hasCreateLanguage(): bool + { + return $this->has('createLanguage'); + } + + public function unsetCreateLanguage(): self + { + return $this->remove('createLanguage'); + } + /** * @return Title */ @@ -167,6 +257,16 @@ public function setCreateTitle($value): self return $this->set('createTitle', $value); } + public function hasCreateTitle(): bool + { + return $this->has('createTitle'); + } + + public function unsetCreateTitle(): self + { + return $this->remove('createTitle'); + } + /** * @return GraphQLAbstract */ @@ -183,6 +283,16 @@ public function setCreateAbstract($value): self return $this->set('createAbstract', $value); } + public function hasCreateAbstract(): bool + { + return $this->has('createAbstract'); + } + + public function unsetCreateAbstract(): self + { + return $this->remove('createAbstract'); + } + /** * @return Biography */ @@ -199,6 +309,16 @@ public function setCreateBiography($value): self return $this->set('createBiography', $value); } + public function hasCreateBiography(): bool + { + return $this->has('createBiography'); + } + + public function unsetCreateBiography(): self + { + return $this->remove('createBiography'); + } + /** * @return Institution */ @@ -215,6 +335,16 @@ public function setCreateInstitution($value): self return $this->set('createInstitution', $value); } + public function hasCreateInstitution(): bool + { + return $this->has('createInstitution'); + } + + public function unsetCreateInstitution(): self + { + return $this->remove('createInstitution'); + } + /** * @return Funding */ @@ -231,6 +361,16 @@ public function setCreateFunding($value): self return $this->set('createFunding', $value); } + public function hasCreateFunding(): bool + { + return $this->has('createFunding'); + } + + public function unsetCreateFunding(): self + { + return $this->remove('createFunding'); + } + /** * @return Location */ @@ -247,6 +387,16 @@ public function setCreateLocation($value): self return $this->set('createLocation', $value); } + public function hasCreateLocation(): bool + { + return $this->has('createLocation'); + } + + public function unsetCreateLocation(): self + { + return $this->remove('createLocation'); + } + /** * @return Price */ @@ -263,6 +413,16 @@ public function setCreatePrice($value): self return $this->set('createPrice', $value); } + public function hasCreatePrice(): bool + { + return $this->has('createPrice'); + } + + public function unsetCreatePrice(): self + { + return $this->remove('createPrice'); + } + /** * @return Subject */ @@ -279,6 +439,16 @@ public function setCreateSubject($value): self return $this->set('createSubject', $value); } + public function hasCreateSubject(): bool + { + return $this->has('createSubject'); + } + + public function unsetCreateSubject(): self + { + return $this->remove('createSubject'); + } + /** * @return Affiliation */ @@ -295,6 +465,16 @@ public function setCreateAffiliation($value): self return $this->set('createAffiliation', $value); } + public function hasCreateAffiliation(): bool + { + return $this->has('createAffiliation'); + } + + public function unsetCreateAffiliation(): self + { + return $this->remove('createAffiliation'); + } + /** * @return WorkRelation */ @@ -311,6 +491,16 @@ public function setCreateWorkRelation($value): self return $this->set('createWorkRelation', $value); } + public function hasCreateWorkRelation(): bool + { + return $this->has('createWorkRelation'); + } + + public function unsetCreateWorkRelation(): self + { + return $this->remove('createWorkRelation'); + } + /** * @return Reference */ @@ -327,6 +517,16 @@ public function setCreateReference($value): self return $this->set('createReference', $value); } + public function hasCreateReference(): bool + { + return $this->has('createReference'); + } + + public function unsetCreateReference(): self + { + return $this->remove('createReference'); + } + /** * @return WorkResource */ @@ -343,6 +543,16 @@ public function setCreateAdditionalResource($value): self return $this->set('createAdditionalResource', $value); } + public function hasCreateAdditionalResource(): bool + { + return $this->has('createAdditionalResource'); + } + + public function unsetCreateAdditionalResource(): self + { + return $this->remove('createAdditionalResource'); + } + /** * @return Award */ @@ -359,6 +569,16 @@ public function setCreateAward($value): self return $this->set('createAward', $value); } + public function hasCreateAward(): bool + { + return $this->has('createAward'); + } + + public function unsetCreateAward(): self + { + return $this->remove('createAward'); + } + /** * @return Endorsement */ @@ -375,6 +595,16 @@ public function setCreateEndorsement($value): self return $this->set('createEndorsement', $value); } + public function hasCreateEndorsement(): bool + { + return $this->has('createEndorsement'); + } + + public function unsetCreateEndorsement(): self + { + return $this->remove('createEndorsement'); + } + /** * @return BookReview */ @@ -391,6 +621,16 @@ public function setCreateBookReview($value): self return $this->set('createBookReview', $value); } + public function hasCreateBookReview(): bool + { + return $this->has('createBookReview'); + } + + public function unsetCreateBookReview(): self + { + return $this->remove('createBookReview'); + } + /** * @return WorkFeaturedVideo */ @@ -407,6 +647,16 @@ public function setCreateWorkFeaturedVideo($value): self return $this->set('createWorkFeaturedVideo', $value); } + public function hasCreateWorkFeaturedVideo(): bool + { + return $this->has('createWorkFeaturedVideo'); + } + + public function unsetCreateWorkFeaturedVideo(): self + { + return $this->remove('createWorkFeaturedVideo'); + } + /** * @return Contact */ @@ -423,6 +673,16 @@ public function setCreateContact($value): self return $this->set('createContact', $value); } + public function hasCreateContact(): bool + { + return $this->has('createContact'); + } + + public function unsetCreateContact(): self + { + return $this->remove('createContact'); + } + /** * @return Work */ @@ -439,6 +699,16 @@ public function setUpdateWork($value): self return $this->set('updateWork', $value); } + public function hasUpdateWork(): bool + { + return $this->has('updateWork'); + } + + public function unsetUpdateWork(): self + { + return $this->remove('updateWork'); + } + /** * @return Publisher */ @@ -455,6 +725,16 @@ public function setUpdatePublisher($value): self return $this->set('updatePublisher', $value); } + public function hasUpdatePublisher(): bool + { + return $this->has('updatePublisher'); + } + + public function unsetUpdatePublisher(): self + { + return $this->remove('updatePublisher'); + } + /** * @return Imprint */ @@ -471,6 +751,16 @@ public function setUpdateImprint($value): self return $this->set('updateImprint', $value); } + public function hasUpdateImprint(): bool + { + return $this->has('updateImprint'); + } + + public function unsetUpdateImprint(): self + { + return $this->remove('updateImprint'); + } + /** * @return Contributor */ @@ -487,6 +777,16 @@ public function setUpdateContributor($value): self return $this->set('updateContributor', $value); } + public function hasUpdateContributor(): bool + { + return $this->has('updateContributor'); + } + + public function unsetUpdateContributor(): self + { + return $this->remove('updateContributor'); + } + /** * @return Contribution */ @@ -503,6 +803,16 @@ public function setUpdateContribution($value): self return $this->set('updateContribution', $value); } + public function hasUpdateContribution(): bool + { + return $this->has('updateContribution'); + } + + public function unsetUpdateContribution(): self + { + return $this->remove('updateContribution'); + } + /** * @return Publication */ @@ -519,6 +829,16 @@ public function setUpdatePublication($value): self return $this->set('updatePublication', $value); } + public function hasUpdatePublication(): bool + { + return $this->has('updatePublication'); + } + + public function unsetUpdatePublication(): self + { + return $this->remove('updatePublication'); + } + /** * @return Series */ @@ -535,6 +855,16 @@ public function setUpdateSeries($value): self return $this->set('updateSeries', $value); } + public function hasUpdateSeries(): bool + { + return $this->has('updateSeries'); + } + + public function unsetUpdateSeries(): self + { + return $this->remove('updateSeries'); + } + /** * @return Issue */ @@ -551,6 +881,16 @@ public function setUpdateIssue($value): self return $this->set('updateIssue', $value); } + public function hasUpdateIssue(): bool + { + return $this->has('updateIssue'); + } + + public function unsetUpdateIssue(): self + { + return $this->remove('updateIssue'); + } + /** * @return Language */ @@ -567,6 +907,16 @@ public function setUpdateLanguage($value): self return $this->set('updateLanguage', $value); } + public function hasUpdateLanguage(): bool + { + return $this->has('updateLanguage'); + } + + public function unsetUpdateLanguage(): self + { + return $this->remove('updateLanguage'); + } + /** * @return Institution */ @@ -583,6 +933,16 @@ public function setUpdateInstitution($value): self return $this->set('updateInstitution', $value); } + public function hasUpdateInstitution(): bool + { + return $this->has('updateInstitution'); + } + + public function unsetUpdateInstitution(): self + { + return $this->remove('updateInstitution'); + } + /** * @return Funding */ @@ -599,6 +959,16 @@ public function setUpdateFunding($value): self return $this->set('updateFunding', $value); } + public function hasUpdateFunding(): bool + { + return $this->has('updateFunding'); + } + + public function unsetUpdateFunding(): self + { + return $this->remove('updateFunding'); + } + /** * @return Location */ @@ -615,6 +985,16 @@ public function setUpdateLocation($value): self return $this->set('updateLocation', $value); } + public function hasUpdateLocation(): bool + { + return $this->has('updateLocation'); + } + + public function unsetUpdateLocation(): self + { + return $this->remove('updateLocation'); + } + /** * @return Price */ @@ -631,6 +1011,16 @@ public function setUpdatePrice($value): self return $this->set('updatePrice', $value); } + public function hasUpdatePrice(): bool + { + return $this->has('updatePrice'); + } + + public function unsetUpdatePrice(): self + { + return $this->remove('updatePrice'); + } + /** * @return Subject */ @@ -647,6 +1037,16 @@ public function setUpdateSubject($value): self return $this->set('updateSubject', $value); } + public function hasUpdateSubject(): bool + { + return $this->has('updateSubject'); + } + + public function unsetUpdateSubject(): self + { + return $this->remove('updateSubject'); + } + /** * @return Affiliation */ @@ -663,6 +1063,16 @@ public function setUpdateAffiliation($value): self return $this->set('updateAffiliation', $value); } + public function hasUpdateAffiliation(): bool + { + return $this->has('updateAffiliation'); + } + + public function unsetUpdateAffiliation(): self + { + return $this->remove('updateAffiliation'); + } + /** * @return WorkRelation */ @@ -679,6 +1089,16 @@ public function setUpdateWorkRelation($value): self return $this->set('updateWorkRelation', $value); } + public function hasUpdateWorkRelation(): bool + { + return $this->has('updateWorkRelation'); + } + + public function unsetUpdateWorkRelation(): self + { + return $this->remove('updateWorkRelation'); + } + /** * @return Reference */ @@ -695,6 +1115,16 @@ public function setUpdateReference($value): self return $this->set('updateReference', $value); } + public function hasUpdateReference(): bool + { + return $this->has('updateReference'); + } + + public function unsetUpdateReference(): self + { + return $this->remove('updateReference'); + } + /** * @return WorkResource */ @@ -711,6 +1141,16 @@ public function setUpdateAdditionalResource($value): self return $this->set('updateAdditionalResource', $value); } + public function hasUpdateAdditionalResource(): bool + { + return $this->has('updateAdditionalResource'); + } + + public function unsetUpdateAdditionalResource(): self + { + return $this->remove('updateAdditionalResource'); + } + /** * @return Award */ @@ -727,6 +1167,16 @@ public function setUpdateAward($value): self return $this->set('updateAward', $value); } + public function hasUpdateAward(): bool + { + return $this->has('updateAward'); + } + + public function unsetUpdateAward(): self + { + return $this->remove('updateAward'); + } + /** * @return Endorsement */ @@ -743,6 +1193,16 @@ public function setUpdateEndorsement($value): self return $this->set('updateEndorsement', $value); } + public function hasUpdateEndorsement(): bool + { + return $this->has('updateEndorsement'); + } + + public function unsetUpdateEndorsement(): self + { + return $this->remove('updateEndorsement'); + } + /** * @return BookReview */ @@ -759,6 +1219,16 @@ public function setUpdateBookReview($value): self return $this->set('updateBookReview', $value); } + public function hasUpdateBookReview(): bool + { + return $this->has('updateBookReview'); + } + + public function unsetUpdateBookReview(): self + { + return $this->remove('updateBookReview'); + } + /** * @return WorkFeaturedVideo */ @@ -775,6 +1245,16 @@ public function setUpdateWorkFeaturedVideo($value): self return $this->set('updateWorkFeaturedVideo', $value); } + public function hasUpdateWorkFeaturedVideo(): bool + { + return $this->has('updateWorkFeaturedVideo'); + } + + public function unsetUpdateWorkFeaturedVideo(): self + { + return $this->remove('updateWorkFeaturedVideo'); + } + /** * @return Contact */ @@ -791,6 +1271,16 @@ public function setUpdateContact($value): self return $this->set('updateContact', $value); } + public function hasUpdateContact(): bool + { + return $this->has('updateContact'); + } + + public function unsetUpdateContact(): self + { + return $this->remove('updateContact'); + } + /** * @return Title */ @@ -807,6 +1297,16 @@ public function setUpdateTitle($value): self return $this->set('updateTitle', $value); } + public function hasUpdateTitle(): bool + { + return $this->has('updateTitle'); + } + + public function unsetUpdateTitle(): self + { + return $this->remove('updateTitle'); + } + /** * @return GraphQLAbstract */ @@ -820,7 +1320,17 @@ public function getUpdateAbstract() */ public function setUpdateAbstract($value): self { - return $this->set('updateAbstract', $value); + return $this->set('updateAbstract', $value); + } + + public function hasUpdateAbstract(): bool + { + return $this->has('updateAbstract'); + } + + public function unsetUpdateAbstract(): self + { + return $this->remove('updateAbstract'); } /** @@ -839,6 +1349,16 @@ public function setUpdateBiography($value): self return $this->set('updateBiography', $value); } + public function hasUpdateBiography(): bool + { + return $this->has('updateBiography'); + } + + public function unsetUpdateBiography(): self + { + return $this->remove('updateBiography'); + } + /** * @return Work */ @@ -855,6 +1375,16 @@ public function setDeleteWork($value): self return $this->set('deleteWork', $value); } + public function hasDeleteWork(): bool + { + return $this->has('deleteWork'); + } + + public function unsetDeleteWork(): self + { + return $this->remove('deleteWork'); + } + /** * @return Publisher */ @@ -871,6 +1401,16 @@ public function setDeletePublisher($value): self return $this->set('deletePublisher', $value); } + public function hasDeletePublisher(): bool + { + return $this->has('deletePublisher'); + } + + public function unsetDeletePublisher(): self + { + return $this->remove('deletePublisher'); + } + /** * @return Imprint */ @@ -887,6 +1427,16 @@ public function setDeleteImprint($value): self return $this->set('deleteImprint', $value); } + public function hasDeleteImprint(): bool + { + return $this->has('deleteImprint'); + } + + public function unsetDeleteImprint(): self + { + return $this->remove('deleteImprint'); + } + /** * @return Contributor */ @@ -903,6 +1453,16 @@ public function setDeleteContributor($value): self return $this->set('deleteContributor', $value); } + public function hasDeleteContributor(): bool + { + return $this->has('deleteContributor'); + } + + public function unsetDeleteContributor(): self + { + return $this->remove('deleteContributor'); + } + /** * @return Contribution */ @@ -919,6 +1479,16 @@ public function setDeleteContribution($value): self return $this->set('deleteContribution', $value); } + public function hasDeleteContribution(): bool + { + return $this->has('deleteContribution'); + } + + public function unsetDeleteContribution(): self + { + return $this->remove('deleteContribution'); + } + /** * @return Publication */ @@ -935,6 +1505,16 @@ public function setDeletePublication($value): self return $this->set('deletePublication', $value); } + public function hasDeletePublication(): bool + { + return $this->has('deletePublication'); + } + + public function unsetDeletePublication(): self + { + return $this->remove('deletePublication'); + } + /** * @return Series */ @@ -951,6 +1531,16 @@ public function setDeleteSeries($value): self return $this->set('deleteSeries', $value); } + public function hasDeleteSeries(): bool + { + return $this->has('deleteSeries'); + } + + public function unsetDeleteSeries(): self + { + return $this->remove('deleteSeries'); + } + /** * @return Issue */ @@ -967,6 +1557,16 @@ public function setDeleteIssue($value): self return $this->set('deleteIssue', $value); } + public function hasDeleteIssue(): bool + { + return $this->has('deleteIssue'); + } + + public function unsetDeleteIssue(): self + { + return $this->remove('deleteIssue'); + } + /** * @return Language */ @@ -983,6 +1583,16 @@ public function setDeleteLanguage($value): self return $this->set('deleteLanguage', $value); } + public function hasDeleteLanguage(): bool + { + return $this->has('deleteLanguage'); + } + + public function unsetDeleteLanguage(): self + { + return $this->remove('deleteLanguage'); + } + /** * @return Title */ @@ -999,6 +1609,16 @@ public function setDeleteTitle($value): self return $this->set('deleteTitle', $value); } + public function hasDeleteTitle(): bool + { + return $this->has('deleteTitle'); + } + + public function unsetDeleteTitle(): self + { + return $this->remove('deleteTitle'); + } + /** * @return Institution */ @@ -1015,6 +1635,16 @@ public function setDeleteInstitution($value): self return $this->set('deleteInstitution', $value); } + public function hasDeleteInstitution(): bool + { + return $this->has('deleteInstitution'); + } + + public function unsetDeleteInstitution(): self + { + return $this->remove('deleteInstitution'); + } + /** * @return Funding */ @@ -1031,6 +1661,16 @@ public function setDeleteFunding($value): self return $this->set('deleteFunding', $value); } + public function hasDeleteFunding(): bool + { + return $this->has('deleteFunding'); + } + + public function unsetDeleteFunding(): self + { + return $this->remove('deleteFunding'); + } + /** * @return Location */ @@ -1047,6 +1687,16 @@ public function setDeleteLocation($value): self return $this->set('deleteLocation', $value); } + public function hasDeleteLocation(): bool + { + return $this->has('deleteLocation'); + } + + public function unsetDeleteLocation(): self + { + return $this->remove('deleteLocation'); + } + /** * @return Price */ @@ -1063,6 +1713,16 @@ public function setDeletePrice($value): self return $this->set('deletePrice', $value); } + public function hasDeletePrice(): bool + { + return $this->has('deletePrice'); + } + + public function unsetDeletePrice(): self + { + return $this->remove('deletePrice'); + } + /** * @return Subject */ @@ -1079,6 +1739,16 @@ public function setDeleteSubject($value): self return $this->set('deleteSubject', $value); } + public function hasDeleteSubject(): bool + { + return $this->has('deleteSubject'); + } + + public function unsetDeleteSubject(): self + { + return $this->remove('deleteSubject'); + } + /** * @return Affiliation */ @@ -1095,6 +1765,16 @@ public function setDeleteAffiliation($value): self return $this->set('deleteAffiliation', $value); } + public function hasDeleteAffiliation(): bool + { + return $this->has('deleteAffiliation'); + } + + public function unsetDeleteAffiliation(): self + { + return $this->remove('deleteAffiliation'); + } + /** * @return WorkRelation */ @@ -1111,6 +1791,16 @@ public function setDeleteWorkRelation($value): self return $this->set('deleteWorkRelation', $value); } + public function hasDeleteWorkRelation(): bool + { + return $this->has('deleteWorkRelation'); + } + + public function unsetDeleteWorkRelation(): self + { + return $this->remove('deleteWorkRelation'); + } + /** * @return Reference */ @@ -1127,6 +1817,16 @@ public function setDeleteReference($value): self return $this->set('deleteReference', $value); } + public function hasDeleteReference(): bool + { + return $this->has('deleteReference'); + } + + public function unsetDeleteReference(): self + { + return $this->remove('deleteReference'); + } + /** * @return WorkResource */ @@ -1143,6 +1843,16 @@ public function setDeleteAdditionalResource($value): self return $this->set('deleteAdditionalResource', $value); } + public function hasDeleteAdditionalResource(): bool + { + return $this->has('deleteAdditionalResource'); + } + + public function unsetDeleteAdditionalResource(): self + { + return $this->remove('deleteAdditionalResource'); + } + /** * @return Award */ @@ -1159,6 +1869,16 @@ public function setDeleteAward($value): self return $this->set('deleteAward', $value); } + public function hasDeleteAward(): bool + { + return $this->has('deleteAward'); + } + + public function unsetDeleteAward(): self + { + return $this->remove('deleteAward'); + } + /** * @return Endorsement */ @@ -1175,6 +1895,16 @@ public function setDeleteEndorsement($value): self return $this->set('deleteEndorsement', $value); } + public function hasDeleteEndorsement(): bool + { + return $this->has('deleteEndorsement'); + } + + public function unsetDeleteEndorsement(): self + { + return $this->remove('deleteEndorsement'); + } + /** * @return BookReview */ @@ -1191,6 +1921,16 @@ public function setDeleteBookReview($value): self return $this->set('deleteBookReview', $value); } + public function hasDeleteBookReview(): bool + { + return $this->has('deleteBookReview'); + } + + public function unsetDeleteBookReview(): self + { + return $this->remove('deleteBookReview'); + } + /** * @return WorkFeaturedVideo */ @@ -1207,6 +1947,16 @@ public function setDeleteWorkFeaturedVideo($value): self return $this->set('deleteWorkFeaturedVideo', $value); } + public function hasDeleteWorkFeaturedVideo(): bool + { + return $this->has('deleteWorkFeaturedVideo'); + } + + public function unsetDeleteWorkFeaturedVideo(): self + { + return $this->remove('deleteWorkFeaturedVideo'); + } + /** * @return GraphQLAbstract */ @@ -1223,6 +1973,16 @@ public function setDeleteAbstract($value): self return $this->set('deleteAbstract', $value); } + public function hasDeleteAbstract(): bool + { + return $this->has('deleteAbstract'); + } + + public function unsetDeleteAbstract(): self + { + return $this->remove('deleteAbstract'); + } + /** * @return Biography */ @@ -1239,6 +1999,16 @@ public function setDeleteBiography($value): self return $this->set('deleteBiography', $value); } + public function hasDeleteBiography(): bool + { + return $this->has('deleteBiography'); + } + + public function unsetDeleteBiography(): self + { + return $this->remove('deleteBiography'); + } + /** * @return Affiliation */ @@ -1255,6 +2025,16 @@ public function setMoveAffiliation($value): self return $this->set('moveAffiliation', $value); } + public function hasMoveAffiliation(): bool + { + return $this->has('moveAffiliation'); + } + + public function unsetMoveAffiliation(): self + { + return $this->remove('moveAffiliation'); + } + /** * @return Contribution */ @@ -1271,6 +2051,16 @@ public function setMoveContribution($value): self return $this->set('moveContribution', $value); } + public function hasMoveContribution(): bool + { + return $this->has('moveContribution'); + } + + public function unsetMoveContribution(): self + { + return $this->remove('moveContribution'); + } + /** * @return Issue */ @@ -1287,6 +2077,16 @@ public function setMoveIssue($value): self return $this->set('moveIssue', $value); } + public function hasMoveIssue(): bool + { + return $this->has('moveIssue'); + } + + public function unsetMoveIssue(): self + { + return $this->remove('moveIssue'); + } + /** * @return Reference */ @@ -1303,6 +2103,16 @@ public function setMoveReference($value): self return $this->set('moveReference', $value); } + public function hasMoveReference(): bool + { + return $this->has('moveReference'); + } + + public function unsetMoveReference(): self + { + return $this->remove('moveReference'); + } + /** * @return WorkResource */ @@ -1319,6 +2129,16 @@ public function setMoveAdditionalResource($value): self return $this->set('moveAdditionalResource', $value); } + public function hasMoveAdditionalResource(): bool + { + return $this->has('moveAdditionalResource'); + } + + public function unsetMoveAdditionalResource(): self + { + return $this->remove('moveAdditionalResource'); + } + /** * @return Award */ @@ -1335,6 +2155,16 @@ public function setMoveAward($value): self return $this->set('moveAward', $value); } + public function hasMoveAward(): bool + { + return $this->has('moveAward'); + } + + public function unsetMoveAward(): self + { + return $this->remove('moveAward'); + } + /** * @return Endorsement */ @@ -1351,6 +2181,16 @@ public function setMoveEndorsement($value): self return $this->set('moveEndorsement', $value); } + public function hasMoveEndorsement(): bool + { + return $this->has('moveEndorsement'); + } + + public function unsetMoveEndorsement(): self + { + return $this->remove('moveEndorsement'); + } + /** * @return BookReview */ @@ -1367,6 +2207,16 @@ public function setMoveBookReview($value): self return $this->set('moveBookReview', $value); } + public function hasMoveBookReview(): bool + { + return $this->has('moveBookReview'); + } + + public function unsetMoveBookReview(): self + { + return $this->remove('moveBookReview'); + } + /** * @return Subject */ @@ -1383,6 +2233,16 @@ public function setMoveSubject($value): self return $this->set('moveSubject', $value); } + public function hasMoveSubject(): bool + { + return $this->has('moveSubject'); + } + + public function unsetMoveSubject(): self + { + return $this->remove('moveSubject'); + } + /** * @return WorkRelation */ @@ -1399,6 +2259,16 @@ public function setMoveWorkRelation($value): self return $this->set('moveWorkRelation', $value); } + public function hasMoveWorkRelation(): bool + { + return $this->has('moveWorkRelation'); + } + + public function unsetMoveWorkRelation(): self + { + return $this->remove('moveWorkRelation'); + } + /** * @return FileUploadResponse */ @@ -1415,6 +2285,16 @@ public function setInitPublicationFileUpload($value): self return $this->set('initPublicationFileUpload', $value); } + public function hasInitPublicationFileUpload(): bool + { + return $this->has('initPublicationFileUpload'); + } + + public function unsetInitPublicationFileUpload(): self + { + return $this->remove('initPublicationFileUpload'); + } + /** * @return FileUploadResponse */ @@ -1431,6 +2311,16 @@ public function setInitFrontcoverFileUpload($value): self return $this->set('initFrontcoverFileUpload', $value); } + public function hasInitFrontcoverFileUpload(): bool + { + return $this->has('initFrontcoverFileUpload'); + } + + public function unsetInitFrontcoverFileUpload(): self + { + return $this->remove('initFrontcoverFileUpload'); + } + /** * @return FileUploadResponse */ @@ -1447,6 +2337,16 @@ public function setInitAdditionalResourceFileUpload($value): self return $this->set('initAdditionalResourceFileUpload', $value); } + public function hasInitAdditionalResourceFileUpload(): bool + { + return $this->has('initAdditionalResourceFileUpload'); + } + + public function unsetInitAdditionalResourceFileUpload(): self + { + return $this->remove('initAdditionalResourceFileUpload'); + } + /** * @return FileUploadResponse */ @@ -1463,6 +2363,16 @@ public function setInitWorkFeaturedVideoFileUpload($value): self return $this->set('initWorkFeaturedVideoFileUpload', $value); } + public function hasInitWorkFeaturedVideoFileUpload(): bool + { + return $this->has('initWorkFeaturedVideoFileUpload'); + } + + public function unsetInitWorkFeaturedVideoFileUpload(): self + { + return $this->remove('initWorkFeaturedVideoFileUpload'); + } + /** * @return File */ @@ -1479,6 +2389,16 @@ public function setCompleteFileUpload($value): self return $this->set('completeFileUpload', $value); } + public function hasCompleteFileUpload(): bool + { + return $this->has('completeFileUpload'); + } + + public function unsetCompleteFileUpload(): self + { + return $this->remove('completeFileUpload'); + } + /** * @return Contact */ @@ -1495,6 +2415,16 @@ public function setDeleteContact($value): self return $this->set('deleteContact', $value); } + public function hasDeleteContact(): bool + { + return $this->has('deleteContact'); + } + + public function unsetDeleteContact(): self + { + return $this->remove('deleteContact'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('MutationRoot', [ diff --git a/src/GraphQL/Schemas/Price.php b/src/GraphQL/Schemas/Price.php index 7b49dda..554f9f5 100644 --- a/src/GraphQL/Schemas/Price.php +++ b/src/GraphQL/Schemas/Price.php @@ -23,6 +23,16 @@ public function setPriceId($value): self return $this->set('priceId', $value); } + public function hasPriceId(): bool + { + return $this->has('priceId'); + } + + public function unsetPriceId(): self + { + return $this->remove('priceId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublicationId($value): self return $this->set('publicationId', $value); } + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setCurrencyCode($value): self return $this->set('currencyCode', $value); } + public function hasCurrencyCode(): bool + { + return $this->has('currencyCode'); + } + + public function unsetCurrencyCode(): self + { + return $this->remove('currencyCode'); + } + /** * @return float */ @@ -71,6 +101,16 @@ public function setUnitPrice($value): self return $this->set('unitPrice', $value); } + public function hasUnitPrice(): bool + { + return $this->has('unitPrice'); + } + + public function unsetUnitPrice(): self + { + return $this->remove('unitPrice'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Publication */ @@ -119,6 +179,16 @@ public function setPublication($value): self return $this->set('publication', $value); } + public function hasPublication(): bool + { + return $this->has('publication'); + } + + public function unsetPublication(): self + { + return $this->remove('publication'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Price', [ diff --git a/src/GraphQL/Schemas/Publication.php b/src/GraphQL/Schemas/Publication.php index 9dcf8e5..d93e5f8 100644 --- a/src/GraphQL/Schemas/Publication.php +++ b/src/GraphQL/Schemas/Publication.php @@ -23,6 +23,16 @@ public function setPublicationId($value): self return $this->set('publicationId', $value); } + public function hasPublicationId(): bool + { + return $this->has('publicationId'); + } + + public function unsetPublicationId(): self + { + return $this->remove('publicationId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublicationType($value): self return $this->set('publicationType', $value); } + public function hasPublicationType(): bool + { + return $this->has('publicationType'); + } + + public function unsetPublicationType(): self + { + return $this->remove('publicationType'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setIsbn($value): self return $this->set('isbn', $value); } + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return float|null */ @@ -119,6 +179,16 @@ public function setWidth($value): self return $this->set('width', $value); } + public function hasWidth(): bool + { + return $this->has('width'); + } + + public function unsetWidth(): self + { + return $this->remove('width'); + } + /** * @return float|null */ @@ -135,6 +205,16 @@ public function setHeight($value): self return $this->set('height', $value); } + public function hasHeight(): bool + { + return $this->has('height'); + } + + public function unsetHeight(): self + { + return $this->remove('height'); + } + /** * @return float|null */ @@ -151,6 +231,16 @@ public function setDepth($value): self return $this->set('depth', $value); } + public function hasDepth(): bool + { + return $this->has('depth'); + } + + public function unsetDepth(): self + { + return $this->remove('depth'); + } + /** * @return float|null */ @@ -167,6 +257,16 @@ public function setWeight($value): self return $this->set('weight', $value); } + public function hasWeight(): bool + { + return $this->has('weight'); + } + + public function unsetWeight(): self + { + return $this->remove('weight'); + } + /** * @return string|null */ @@ -183,6 +283,16 @@ public function setAccessibilityStandard($value): self return $this->set('accessibilityStandard', $value); } + public function hasAccessibilityStandard(): bool + { + return $this->has('accessibilityStandard'); + } + + public function unsetAccessibilityStandard(): self + { + return $this->remove('accessibilityStandard'); + } + /** * @return string|null */ @@ -199,6 +309,16 @@ public function setAccessibilityAdditionalStandard($value): self return $this->set('accessibilityAdditionalStandard', $value); } + public function hasAccessibilityAdditionalStandard(): bool + { + return $this->has('accessibilityAdditionalStandard'); + } + + public function unsetAccessibilityAdditionalStandard(): self + { + return $this->remove('accessibilityAdditionalStandard'); + } + /** * @return string|null */ @@ -215,6 +335,16 @@ public function setAccessibilityException($value): self return $this->set('accessibilityException', $value); } + public function hasAccessibilityException(): bool + { + return $this->has('accessibilityException'); + } + + public function unsetAccessibilityException(): self + { + return $this->remove('accessibilityException'); + } + /** * @return string|null */ @@ -231,6 +361,16 @@ public function setAccessibilityReportUrl($value): self return $this->set('accessibilityReportUrl', $value); } + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + /** * @return Price[] */ @@ -247,6 +387,16 @@ public function setPrices($value): self return $this->set('prices', $value); } + public function hasPrices(): bool + { + return $this->has('prices'); + } + + public function unsetPrices(): self + { + return $this->remove('prices'); + } + /** * @return Location[] */ @@ -263,6 +413,16 @@ public function setLocations($value): self return $this->set('locations', $value); } + public function hasLocations(): bool + { + return $this->has('locations'); + } + + public function unsetLocations(): self + { + return $this->remove('locations'); + } + /** * @return File|null */ @@ -279,6 +439,16 @@ public function setFile($value): self return $this->set('file', $value); } + public function hasFile(): bool + { + return $this->has('file'); + } + + public function unsetFile(): self + { + return $this->remove('file'); + } + /** * @return Work */ @@ -295,6 +465,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Publication', [ diff --git a/src/GraphQL/Schemas/Publisher.php b/src/GraphQL/Schemas/Publisher.php index eaeaaba..e1ee60b 100644 --- a/src/GraphQL/Schemas/Publisher.php +++ b/src/GraphQL/Schemas/Publisher.php @@ -23,6 +23,16 @@ public function setPublisherId($value): self return $this->set('publisherId', $value); } + public function hasPublisherId(): bool + { + return $this->has('publisherId'); + } + + public function unsetPublisherId(): self + { + return $this->remove('publisherId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setPublisherName($value): self return $this->set('publisherName', $value); } + public function hasPublisherName(): bool + { + return $this->has('publisherName'); + } + + public function unsetPublisherName(): self + { + return $this->remove('publisherName'); + } + /** * @return string|null */ @@ -55,6 +75,16 @@ public function setPublisherShortname($value): self return $this->set('publisherShortname', $value); } + public function hasPublisherShortname(): bool + { + return $this->has('publisherShortname'); + } + + public function unsetPublisherShortname(): self + { + return $this->remove('publisherShortname'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setPublisherUrl($value): self return $this->set('publisherUrl', $value); } + public function hasPublisherUrl(): bool + { + return $this->has('publisherUrl'); + } + + public function unsetPublisherUrl(): self + { + return $this->remove('publisherUrl'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setZitadelId($value): self return $this->set('zitadelId', $value); } + public function hasZitadelId(): bool + { + return $this->has('zitadelId'); + } + + public function unsetZitadelId(): self + { + return $this->remove('zitadelId'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setAccessibilityStatement($value): self return $this->set('accessibilityStatement', $value); } + public function hasAccessibilityStatement(): bool + { + return $this->has('accessibilityStatement'); + } + + public function unsetAccessibilityStatement(): self + { + return $this->remove('accessibilityStatement'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setAccessibilityReportUrl($value): self return $this->set('accessibilityReportUrl', $value); } + public function hasAccessibilityReportUrl(): bool + { + return $this->has('accessibilityReportUrl'); + } + + public function unsetAccessibilityReportUrl(): self + { + return $this->remove('accessibilityReportUrl'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Imprint[] */ @@ -167,6 +257,16 @@ public function setImprints($value): self return $this->set('imprints', $value); } + public function hasImprints(): bool + { + return $this->has('imprints'); + } + + public function unsetImprints(): self + { + return $this->remove('imprints'); + } + /** * @return Contact[] */ @@ -183,6 +283,16 @@ public function setContacts($value): self return $this->set('contacts', $value); } + public function hasContacts(): bool + { + return $this->has('contacts'); + } + + public function unsetContacts(): self + { + return $this->remove('contacts'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Publisher', [ diff --git a/src/GraphQL/Schemas/PublisherContext.php b/src/GraphQL/Schemas/PublisherContext.php index 8b2a075..8758ea2 100644 --- a/src/GraphQL/Schemas/PublisherContext.php +++ b/src/GraphQL/Schemas/PublisherContext.php @@ -23,6 +23,16 @@ public function setPublisher($value): self return $this->set('publisher', $value); } + public function hasPublisher(): bool + { + return $this->has('publisher'); + } + + public function unsetPublisher(): self + { + return $this->remove('publisher'); + } + /** * @return PublisherPermissions */ @@ -39,6 +49,16 @@ public function setPermissions($value): self return $this->set('permissions', $value); } + public function hasPermissions(): bool + { + return $this->has('permissions'); + } + + public function unsetPermissions(): self + { + return $this->remove('permissions'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('PublisherContext', [ diff --git a/src/GraphQL/Schemas/PublisherPermissions.php b/src/GraphQL/Schemas/PublisherPermissions.php index 6ee83ab..a5e66cb 100644 --- a/src/GraphQL/Schemas/PublisherPermissions.php +++ b/src/GraphQL/Schemas/PublisherPermissions.php @@ -23,6 +23,16 @@ public function setPublisherAdmin($value): self return $this->set('publisherAdmin', $value); } + public function hasPublisherAdmin(): bool + { + return $this->has('publisherAdmin'); + } + + public function unsetPublisherAdmin(): self + { + return $this->remove('publisherAdmin'); + } + /** * @return bool */ @@ -39,6 +49,16 @@ public function setWorkLifecycle($value): self return $this->set('workLifecycle', $value); } + public function hasWorkLifecycle(): bool + { + return $this->has('workLifecycle'); + } + + public function unsetWorkLifecycle(): self + { + return $this->remove('workLifecycle'); + } + /** * @return bool */ @@ -55,6 +75,16 @@ public function setCdnWrite($value): self return $this->set('cdnWrite', $value); } + public function hasCdnWrite(): bool + { + return $this->has('cdnWrite'); + } + + public function unsetCdnWrite(): self + { + return $this->remove('cdnWrite'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('PublisherPermissions', [ diff --git a/src/GraphQL/Schemas/QueryRoot.php b/src/GraphQL/Schemas/QueryRoot.php index f7cc4d9..c7dbdba 100644 --- a/src/GraphQL/Schemas/QueryRoot.php +++ b/src/GraphQL/Schemas/QueryRoot.php @@ -23,6 +23,16 @@ public function setWorks($value): self return $this->set('works', $value); } + public function hasWorks(): bool + { + return $this->has('works'); + } + + public function unsetWorks(): self + { + return $this->remove('works'); + } + /** * @return Work */ @@ -39,6 +49,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return Work */ @@ -55,6 +75,16 @@ public function setWorkByDoi($value): self return $this->set('workByDoi', $value); } + public function hasWorkByDoi(): bool + { + return $this->has('workByDoi'); + } + + public function unsetWorkByDoi(): self + { + return $this->remove('workByDoi'); + } + /** * @return int */ @@ -71,6 +101,16 @@ public function setWorkCount($value): self return $this->set('workCount', $value); } + public function hasWorkCount(): bool + { + return $this->has('workCount'); + } + + public function unsetWorkCount(): self + { + return $this->remove('workCount'); + } + /** * @return Work[] */ @@ -87,6 +127,16 @@ public function setBooks($value): self return $this->set('books', $value); } + public function hasBooks(): bool + { + return $this->has('books'); + } + + public function unsetBooks(): self + { + return $this->remove('books'); + } + /** * @return Work */ @@ -103,6 +153,16 @@ public function setBookByDoi($value): self return $this->set('bookByDoi', $value); } + public function hasBookByDoi(): bool + { + return $this->has('bookByDoi'); + } + + public function unsetBookByDoi(): self + { + return $this->remove('bookByDoi'); + } + /** * @return int */ @@ -119,6 +179,16 @@ public function setBookCount($value): self return $this->set('bookCount', $value); } + public function hasBookCount(): bool + { + return $this->has('bookCount'); + } + + public function unsetBookCount(): self + { + return $this->remove('bookCount'); + } + /** * @return Work[] */ @@ -135,6 +205,16 @@ public function setChapters($value): self return $this->set('chapters', $value); } + public function hasChapters(): bool + { + return $this->has('chapters'); + } + + public function unsetChapters(): self + { + return $this->remove('chapters'); + } + /** * @return Work */ @@ -151,6 +231,16 @@ public function setChapterByDoi($value): self return $this->set('chapterByDoi', $value); } + public function hasChapterByDoi(): bool + { + return $this->has('chapterByDoi'); + } + + public function unsetChapterByDoi(): self + { + return $this->remove('chapterByDoi'); + } + /** * @return int */ @@ -167,6 +257,16 @@ public function setChapterCount($value): self return $this->set('chapterCount', $value); } + public function hasChapterCount(): bool + { + return $this->has('chapterCount'); + } + + public function unsetChapterCount(): self + { + return $this->remove('chapterCount'); + } + /** * @return Publication[] */ @@ -183,6 +283,16 @@ public function setPublications($value): self return $this->set('publications', $value); } + public function hasPublications(): bool + { + return $this->has('publications'); + } + + public function unsetPublications(): self + { + return $this->remove('publications'); + } + /** * @return Publication */ @@ -199,6 +309,16 @@ public function setPublication($value): self return $this->set('publication', $value); } + public function hasPublication(): bool + { + return $this->has('publication'); + } + + public function unsetPublication(): self + { + return $this->remove('publication'); + } + /** * @return File */ @@ -215,6 +335,16 @@ public function setFile($value): self return $this->set('file', $value); } + public function hasFile(): bool + { + return $this->has('file'); + } + + public function unsetFile(): self + { + return $this->remove('file'); + } + /** * @return int */ @@ -231,6 +361,16 @@ public function setPublicationCount($value): self return $this->set('publicationCount', $value); } + public function hasPublicationCount(): bool + { + return $this->has('publicationCount'); + } + + public function unsetPublicationCount(): self + { + return $this->remove('publicationCount'); + } + /** * @return Publisher[] */ @@ -247,6 +387,16 @@ public function setPublishers($value): self return $this->set('publishers', $value); } + public function hasPublishers(): bool + { + return $this->has('publishers'); + } + + public function unsetPublishers(): self + { + return $this->remove('publishers'); + } + /** * @return Publisher */ @@ -263,6 +413,16 @@ public function setPublisher($value): self return $this->set('publisher', $value); } + public function hasPublisher(): bool + { + return $this->has('publisher'); + } + + public function unsetPublisher(): self + { + return $this->remove('publisher'); + } + /** * @return int */ @@ -279,6 +439,16 @@ public function setPublisherCount($value): self return $this->set('publisherCount', $value); } + public function hasPublisherCount(): bool + { + return $this->has('publisherCount'); + } + + public function unsetPublisherCount(): self + { + return $this->remove('publisherCount'); + } + /** * @return Imprint[] */ @@ -295,6 +465,16 @@ public function setImprints($value): self return $this->set('imprints', $value); } + public function hasImprints(): bool + { + return $this->has('imprints'); + } + + public function unsetImprints(): self + { + return $this->remove('imprints'); + } + /** * @return Imprint */ @@ -311,6 +491,16 @@ public function setImprint($value): self return $this->set('imprint', $value); } + public function hasImprint(): bool + { + return $this->has('imprint'); + } + + public function unsetImprint(): self + { + return $this->remove('imprint'); + } + /** * @return int */ @@ -327,6 +517,16 @@ public function setImprintCount($value): self return $this->set('imprintCount', $value); } + public function hasImprintCount(): bool + { + return $this->has('imprintCount'); + } + + public function unsetImprintCount(): self + { + return $this->remove('imprintCount'); + } + /** * @return Contributor[] */ @@ -343,6 +543,16 @@ public function setContributors($value): self return $this->set('contributors', $value); } + public function hasContributors(): bool + { + return $this->has('contributors'); + } + + public function unsetContributors(): self + { + return $this->remove('contributors'); + } + /** * @return Contributor */ @@ -359,6 +569,16 @@ public function setContributor($value): self return $this->set('contributor', $value); } + public function hasContributor(): bool + { + return $this->has('contributor'); + } + + public function unsetContributor(): self + { + return $this->remove('contributor'); + } + /** * @return int */ @@ -375,6 +595,16 @@ public function setContributorCount($value): self return $this->set('contributorCount', $value); } + public function hasContributorCount(): bool + { + return $this->has('contributorCount'); + } + + public function unsetContributorCount(): self + { + return $this->remove('contributorCount'); + } + /** * @return Contribution[] */ @@ -391,6 +621,16 @@ public function setContributions($value): self return $this->set('contributions', $value); } + public function hasContributions(): bool + { + return $this->has('contributions'); + } + + public function unsetContributions(): self + { + return $this->remove('contributions'); + } + /** * @return Contribution */ @@ -407,6 +647,16 @@ public function setContribution($value): self return $this->set('contribution', $value); } + public function hasContribution(): bool + { + return $this->has('contribution'); + } + + public function unsetContribution(): self + { + return $this->remove('contribution'); + } + /** * @return int */ @@ -423,6 +673,16 @@ public function setContributionCount($value): self return $this->set('contributionCount', $value); } + public function hasContributionCount(): bool + { + return $this->has('contributionCount'); + } + + public function unsetContributionCount(): self + { + return $this->remove('contributionCount'); + } + /** * @return Series[] */ @@ -439,6 +699,16 @@ public function setSerieses($value): self return $this->set('serieses', $value); } + public function hasSerieses(): bool + { + return $this->has('serieses'); + } + + public function unsetSerieses(): self + { + return $this->remove('serieses'); + } + /** * @return Series */ @@ -455,6 +725,16 @@ public function setSeries($value): self return $this->set('series', $value); } + public function hasSeries(): bool + { + return $this->has('series'); + } + + public function unsetSeries(): self + { + return $this->remove('series'); + } + /** * @return int */ @@ -471,6 +751,16 @@ public function setSeriesCount($value): self return $this->set('seriesCount', $value); } + public function hasSeriesCount(): bool + { + return $this->has('seriesCount'); + } + + public function unsetSeriesCount(): self + { + return $this->remove('seriesCount'); + } + /** * @return Issue[] */ @@ -487,6 +777,16 @@ public function setIssues($value): self return $this->set('issues', $value); } + public function hasIssues(): bool + { + return $this->has('issues'); + } + + public function unsetIssues(): self + { + return $this->remove('issues'); + } + /** * @return Issue */ @@ -503,6 +803,16 @@ public function setIssue($value): self return $this->set('issue', $value); } + public function hasIssue(): bool + { + return $this->has('issue'); + } + + public function unsetIssue(): self + { + return $this->remove('issue'); + } + /** * @return int */ @@ -519,6 +829,16 @@ public function setIssueCount($value): self return $this->set('issueCount', $value); } + public function hasIssueCount(): bool + { + return $this->has('issueCount'); + } + + public function unsetIssueCount(): self + { + return $this->remove('issueCount'); + } + /** * @return Language[] */ @@ -535,6 +855,16 @@ public function setLanguages($value): self return $this->set('languages', $value); } + public function hasLanguages(): bool + { + return $this->has('languages'); + } + + public function unsetLanguages(): self + { + return $this->remove('languages'); + } + /** * @return Language */ @@ -551,6 +881,16 @@ public function setLanguage($value): self return $this->set('language', $value); } + public function hasLanguage(): bool + { + return $this->has('language'); + } + + public function unsetLanguage(): self + { + return $this->remove('language'); + } + /** * @return int */ @@ -567,6 +907,16 @@ public function setLanguageCount($value): self return $this->set('languageCount', $value); } + public function hasLanguageCount(): bool + { + return $this->has('languageCount'); + } + + public function unsetLanguageCount(): self + { + return $this->remove('languageCount'); + } + /** * @return Location[] */ @@ -583,6 +933,16 @@ public function setLocations($value): self return $this->set('locations', $value); } + public function hasLocations(): bool + { + return $this->has('locations'); + } + + public function unsetLocations(): self + { + return $this->remove('locations'); + } + /** * @return Location */ @@ -599,6 +959,16 @@ public function setLocation($value): self return $this->set('location', $value); } + public function hasLocation(): bool + { + return $this->has('location'); + } + + public function unsetLocation(): self + { + return $this->remove('location'); + } + /** * @return int */ @@ -615,6 +985,16 @@ public function setLocationCount($value): self return $this->set('locationCount', $value); } + public function hasLocationCount(): bool + { + return $this->has('locationCount'); + } + + public function unsetLocationCount(): self + { + return $this->remove('locationCount'); + } + /** * @return Price[] */ @@ -631,6 +1011,16 @@ public function setPrices($value): self return $this->set('prices', $value); } + public function hasPrices(): bool + { + return $this->has('prices'); + } + + public function unsetPrices(): self + { + return $this->remove('prices'); + } + /** * @return Price */ @@ -647,6 +1037,16 @@ public function setPrice($value): self return $this->set('price', $value); } + public function hasPrice(): bool + { + return $this->has('price'); + } + + public function unsetPrice(): self + { + return $this->remove('price'); + } + /** * @return int */ @@ -663,6 +1063,16 @@ public function setPriceCount($value): self return $this->set('priceCount', $value); } + public function hasPriceCount(): bool + { + return $this->has('priceCount'); + } + + public function unsetPriceCount(): self + { + return $this->remove('priceCount'); + } + /** * @return Subject[] */ @@ -679,6 +1089,16 @@ public function setSubjects($value): self return $this->set('subjects', $value); } + public function hasSubjects(): bool + { + return $this->has('subjects'); + } + + public function unsetSubjects(): self + { + return $this->remove('subjects'); + } + /** * @return Subject */ @@ -695,6 +1115,16 @@ public function setSubject($value): self return $this->set('subject', $value); } + public function hasSubject(): bool + { + return $this->has('subject'); + } + + public function unsetSubject(): self + { + return $this->remove('subject'); + } + /** * @return int */ @@ -711,6 +1141,16 @@ public function setSubjectCount($value): self return $this->set('subjectCount', $value); } + public function hasSubjectCount(): bool + { + return $this->has('subjectCount'); + } + + public function unsetSubjectCount(): self + { + return $this->remove('subjectCount'); + } + /** * @return Institution[] */ @@ -727,6 +1167,16 @@ public function setInstitutions($value): self return $this->set('institutions', $value); } + public function hasInstitutions(): bool + { + return $this->has('institutions'); + } + + public function unsetInstitutions(): self + { + return $this->remove('institutions'); + } + /** * @return Institution */ @@ -743,6 +1193,16 @@ public function setInstitution($value): self return $this->set('institution', $value); } + public function hasInstitution(): bool + { + return $this->has('institution'); + } + + public function unsetInstitution(): self + { + return $this->remove('institution'); + } + /** * @return int */ @@ -759,6 +1219,16 @@ public function setInstitutionCount($value): self return $this->set('institutionCount', $value); } + public function hasInstitutionCount(): bool + { + return $this->has('institutionCount'); + } + + public function unsetInstitutionCount(): self + { + return $this->remove('institutionCount'); + } + /** * @return Funding[] */ @@ -775,6 +1245,16 @@ public function setFundings($value): self return $this->set('fundings', $value); } + public function hasFundings(): bool + { + return $this->has('fundings'); + } + + public function unsetFundings(): self + { + return $this->remove('fundings'); + } + /** * @return Funding */ @@ -791,6 +1271,16 @@ public function setFunding($value): self return $this->set('funding', $value); } + public function hasFunding(): bool + { + return $this->has('funding'); + } + + public function unsetFunding(): self + { + return $this->remove('funding'); + } + /** * @return int */ @@ -807,6 +1297,16 @@ public function setFundingCount($value): self return $this->set('fundingCount', $value); } + public function hasFundingCount(): bool + { + return $this->has('fundingCount'); + } + + public function unsetFundingCount(): self + { + return $this->remove('fundingCount'); + } + /** * @return Affiliation[] */ @@ -823,6 +1323,16 @@ public function setAffiliations($value): self return $this->set('affiliations', $value); } + public function hasAffiliations(): bool + { + return $this->has('affiliations'); + } + + public function unsetAffiliations(): self + { + return $this->remove('affiliations'); + } + /** * @return Affiliation */ @@ -839,6 +1349,16 @@ public function setAffiliation($value): self return $this->set('affiliation', $value); } + public function hasAffiliation(): bool + { + return $this->has('affiliation'); + } + + public function unsetAffiliation(): self + { + return $this->remove('affiliation'); + } + /** * @return int */ @@ -855,6 +1375,16 @@ public function setAffiliationCount($value): self return $this->set('affiliationCount', $value); } + public function hasAffiliationCount(): bool + { + return $this->has('affiliationCount'); + } + + public function unsetAffiliationCount(): self + { + return $this->remove('affiliationCount'); + } + /** * @return Reference[] */ @@ -871,6 +1401,16 @@ public function setReferences($value): self return $this->set('references', $value); } + public function hasReferences(): bool + { + return $this->has('references'); + } + + public function unsetReferences(): self + { + return $this->remove('references'); + } + /** * @return Reference */ @@ -887,6 +1427,16 @@ public function setReference($value): self return $this->set('reference', $value); } + public function hasReference(): bool + { + return $this->has('reference'); + } + + public function unsetReference(): self + { + return $this->remove('reference'); + } + /** * @return int */ @@ -903,6 +1453,16 @@ public function setReferenceCount($value): self return $this->set('referenceCount', $value); } + public function hasReferenceCount(): bool + { + return $this->has('referenceCount'); + } + + public function unsetReferenceCount(): self + { + return $this->remove('referenceCount'); + } + /** * @return WorkResource[] */ @@ -919,6 +1479,16 @@ public function setAdditionalResources($value): self return $this->set('additionalResources', $value); } + public function hasAdditionalResources(): bool + { + return $this->has('additionalResources'); + } + + public function unsetAdditionalResources(): self + { + return $this->remove('additionalResources'); + } + /** * @return WorkResource */ @@ -935,6 +1505,16 @@ public function setAdditionalResource($value): self return $this->set('additionalResource', $value); } + public function hasAdditionalResource(): bool + { + return $this->has('additionalResource'); + } + + public function unsetAdditionalResource(): self + { + return $this->remove('additionalResource'); + } + /** * @return int */ @@ -951,6 +1531,16 @@ public function setAdditionalResourceCount($value): self return $this->set('additionalResourceCount', $value); } + public function hasAdditionalResourceCount(): bool + { + return $this->has('additionalResourceCount'); + } + + public function unsetAdditionalResourceCount(): self + { + return $this->remove('additionalResourceCount'); + } + /** * @return Award[] */ @@ -967,6 +1557,16 @@ public function setAwards($value): self return $this->set('awards', $value); } + public function hasAwards(): bool + { + return $this->has('awards'); + } + + public function unsetAwards(): self + { + return $this->remove('awards'); + } + /** * @return Award */ @@ -983,6 +1583,16 @@ public function setAward($value): self return $this->set('award', $value); } + public function hasAward(): bool + { + return $this->has('award'); + } + + public function unsetAward(): self + { + return $this->remove('award'); + } + /** * @return int */ @@ -999,6 +1609,16 @@ public function setAwardCount($value): self return $this->set('awardCount', $value); } + public function hasAwardCount(): bool + { + return $this->has('awardCount'); + } + + public function unsetAwardCount(): self + { + return $this->remove('awardCount'); + } + /** * @return Endorsement[] */ @@ -1015,6 +1635,16 @@ public function setEndorsements($value): self return $this->set('endorsements', $value); } + public function hasEndorsements(): bool + { + return $this->has('endorsements'); + } + + public function unsetEndorsements(): self + { + return $this->remove('endorsements'); + } + /** * @return Endorsement */ @@ -1031,6 +1661,16 @@ public function setEndorsement($value): self return $this->set('endorsement', $value); } + public function hasEndorsement(): bool + { + return $this->has('endorsement'); + } + + public function unsetEndorsement(): self + { + return $this->remove('endorsement'); + } + /** * @return int */ @@ -1047,6 +1687,16 @@ public function setEndorsementCount($value): self return $this->set('endorsementCount', $value); } + public function hasEndorsementCount(): bool + { + return $this->has('endorsementCount'); + } + + public function unsetEndorsementCount(): self + { + return $this->remove('endorsementCount'); + } + /** * @return BookReview[] */ @@ -1063,6 +1713,16 @@ public function setBookReviews($value): self return $this->set('bookReviews', $value); } + public function hasBookReviews(): bool + { + return $this->has('bookReviews'); + } + + public function unsetBookReviews(): self + { + return $this->remove('bookReviews'); + } + /** * @return BookReview */ @@ -1079,6 +1739,16 @@ public function setBookReview($value): self return $this->set('bookReview', $value); } + public function hasBookReview(): bool + { + return $this->has('bookReview'); + } + + public function unsetBookReview(): self + { + return $this->remove('bookReview'); + } + /** * @return int */ @@ -1095,6 +1765,16 @@ public function setBookReviewCount($value): self return $this->set('bookReviewCount', $value); } + public function hasBookReviewCount(): bool + { + return $this->has('bookReviewCount'); + } + + public function unsetBookReviewCount(): self + { + return $this->remove('bookReviewCount'); + } + /** * @return WorkFeaturedVideo[] */ @@ -1111,6 +1791,16 @@ public function setWorkFeaturedVideos($value): self return $this->set('workFeaturedVideos', $value); } + public function hasWorkFeaturedVideos(): bool + { + return $this->has('workFeaturedVideos'); + } + + public function unsetWorkFeaturedVideos(): self + { + return $this->remove('workFeaturedVideos'); + } + /** * @return WorkFeaturedVideo */ @@ -1127,6 +1817,16 @@ public function setWorkFeaturedVideo($value): self return $this->set('workFeaturedVideo', $value); } + public function hasWorkFeaturedVideo(): bool + { + return $this->has('workFeaturedVideo'); + } + + public function unsetWorkFeaturedVideo(): self + { + return $this->remove('workFeaturedVideo'); + } + /** * @return int */ @@ -1143,6 +1843,16 @@ public function setWorkFeaturedVideoCount($value): self return $this->set('workFeaturedVideoCount', $value); } + public function hasWorkFeaturedVideoCount(): bool + { + return $this->has('workFeaturedVideoCount'); + } + + public function unsetWorkFeaturedVideoCount(): self + { + return $this->remove('workFeaturedVideoCount'); + } + /** * @return Title */ @@ -1159,6 +1869,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return Title[] */ @@ -1175,6 +1895,16 @@ public function setTitles($value): self return $this->set('titles', $value); } + public function hasTitles(): bool + { + return $this->has('titles'); + } + + public function unsetTitles(): self + { + return $this->remove('titles'); + } + /** * @return GraphQLAbstract */ @@ -1191,6 +1921,16 @@ public function setAbstract($value): self return $this->set('abstract', $value); } + public function hasAbstract(): bool + { + return $this->has('abstract'); + } + + public function unsetAbstract(): self + { + return $this->remove('abstract'); + } + /** * @return GraphQLAbstract[] */ @@ -1207,6 +1947,16 @@ public function setAbstracts($value): self return $this->set('abstracts', $value); } + public function hasAbstracts(): bool + { + return $this->has('abstracts'); + } + + public function unsetAbstracts(): self + { + return $this->remove('abstracts'); + } + /** * @return Biography */ @@ -1223,6 +1973,16 @@ public function setBiography($value): self return $this->set('biography', $value); } + public function hasBiography(): bool + { + return $this->has('biography'); + } + + public function unsetBiography(): self + { + return $this->remove('biography'); + } + /** * @return Biography[] */ @@ -1239,6 +1999,16 @@ public function setBiographies($value): self return $this->set('biographies', $value); } + public function hasBiographies(): bool + { + return $this->has('biographies'); + } + + public function unsetBiographies(): self + { + return $this->remove('biographies'); + } + /** * @return Contact[] */ @@ -1255,6 +2025,16 @@ public function setContacts($value): self return $this->set('contacts', $value); } + public function hasContacts(): bool + { + return $this->has('contacts'); + } + + public function unsetContacts(): self + { + return $this->remove('contacts'); + } + /** * @return Contact */ @@ -1271,6 +2051,16 @@ public function setContact($value): self return $this->set('contact', $value); } + public function hasContact(): bool + { + return $this->has('contact'); + } + + public function unsetContact(): self + { + return $this->remove('contact'); + } + /** * @return int */ @@ -1287,6 +2077,16 @@ public function setContactCount($value): self return $this->set('contactCount', $value); } + public function hasContactCount(): bool + { + return $this->has('contactCount'); + } + + public function unsetContactCount(): self + { + return $this->remove('contactCount'); + } + /** * @return Me */ @@ -1303,6 +2103,16 @@ public function setMe($value): self return $this->set('me', $value); } + public function hasMe(): bool + { + return $this->has('me'); + } + + public function unsetMe(): self + { + return $this->remove('me'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('QueryRoot', [ diff --git a/src/GraphQL/Schemas/Reference.php b/src/GraphQL/Schemas/Reference.php index a7ce441..ffe88d3 100644 --- a/src/GraphQL/Schemas/Reference.php +++ b/src/GraphQL/Schemas/Reference.php @@ -23,6 +23,16 @@ public function setReferenceId($value): self return $this->set('referenceId', $value); } + public function hasReferenceId(): bool + { + return $this->has('referenceId'); + } + + public function unsetReferenceId(): self + { + return $this->remove('referenceId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return int */ @@ -55,6 +75,16 @@ public function setReferenceOrdinal($value): self return $this->set('referenceOrdinal', $value); } + public function hasReferenceOrdinal(): bool + { + return $this->has('referenceOrdinal'); + } + + public function unsetReferenceOrdinal(): self + { + return $this->remove('referenceOrdinal'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setDoi($value): self return $this->set('doi', $value); } + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setUnstructuredCitation($value): self return $this->set('unstructuredCitation', $value); } + public function hasUnstructuredCitation(): bool + { + return $this->has('unstructuredCitation'); + } + + public function unsetUnstructuredCitation(): self + { + return $this->remove('unstructuredCitation'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setIssn($value): self return $this->set('issn', $value); } + public function hasIssn(): bool + { + return $this->has('issn'); + } + + public function unsetIssn(): self + { + return $this->remove('issn'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setIsbn($value): self return $this->set('isbn', $value); } + public function hasIsbn(): bool + { + return $this->has('isbn'); + } + + public function unsetIsbn(): self + { + return $this->remove('isbn'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setJournalTitle($value): self return $this->set('journalTitle', $value); } + public function hasJournalTitle(): bool + { + return $this->has('journalTitle'); + } + + public function unsetJournalTitle(): self + { + return $this->remove('journalTitle'); + } + /** * @return string|null */ @@ -151,6 +231,16 @@ public function setArticleTitle($value): self return $this->set('articleTitle', $value); } + public function hasArticleTitle(): bool + { + return $this->has('articleTitle'); + } + + public function unsetArticleTitle(): self + { + return $this->remove('articleTitle'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setSeriesTitle($value): self return $this->set('seriesTitle', $value); } + public function hasSeriesTitle(): bool + { + return $this->has('seriesTitle'); + } + + public function unsetSeriesTitle(): self + { + return $this->remove('seriesTitle'); + } + /** * @return string|null */ @@ -183,6 +283,16 @@ public function setVolumeTitle($value): self return $this->set('volumeTitle', $value); } + public function hasVolumeTitle(): bool + { + return $this->has('volumeTitle'); + } + + public function unsetVolumeTitle(): self + { + return $this->remove('volumeTitle'); + } + /** * @return int|null */ @@ -199,6 +309,16 @@ public function setEdition($value): self return $this->set('edition', $value); } + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + /** * @return string|null */ @@ -215,6 +335,16 @@ public function setAuthor($value): self return $this->set('author', $value); } + public function hasAuthor(): bool + { + return $this->has('author'); + } + + public function unsetAuthor(): self + { + return $this->remove('author'); + } + /** * @return string|null */ @@ -231,6 +361,16 @@ public function setVolume($value): self return $this->set('volume', $value); } + public function hasVolume(): bool + { + return $this->has('volume'); + } + + public function unsetVolume(): self + { + return $this->remove('volume'); + } + /** * @return string|null */ @@ -247,6 +387,16 @@ public function setIssue($value): self return $this->set('issue', $value); } + public function hasIssue(): bool + { + return $this->has('issue'); + } + + public function unsetIssue(): self + { + return $this->remove('issue'); + } + /** * @return string|null */ @@ -263,6 +413,16 @@ public function setFirstPage($value): self return $this->set('firstPage', $value); } + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + /** * @return string|null */ @@ -279,6 +439,16 @@ public function setComponentNumber($value): self return $this->set('componentNumber', $value); } + public function hasComponentNumber(): bool + { + return $this->has('componentNumber'); + } + + public function unsetComponentNumber(): self + { + return $this->remove('componentNumber'); + } + /** * @return string|null */ @@ -295,6 +465,16 @@ public function setStandardDesignator($value): self return $this->set('standardDesignator', $value); } + public function hasStandardDesignator(): bool + { + return $this->has('standardDesignator'); + } + + public function unsetStandardDesignator(): self + { + return $this->remove('standardDesignator'); + } + /** * @return string|null */ @@ -311,6 +491,16 @@ public function setStandardsBodyName($value): self return $this->set('standardsBodyName', $value); } + public function hasStandardsBodyName(): bool + { + return $this->has('standardsBodyName'); + } + + public function unsetStandardsBodyName(): self + { + return $this->remove('standardsBodyName'); + } + /** * @return string|null */ @@ -327,6 +517,16 @@ public function setStandardsBodyAcronym($value): self return $this->set('standardsBodyAcronym', $value); } + public function hasStandardsBodyAcronym(): bool + { + return $this->has('standardsBodyAcronym'); + } + + public function unsetStandardsBodyAcronym(): self + { + return $this->remove('standardsBodyAcronym'); + } + /** * @return string|null */ @@ -343,6 +543,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return string|null */ @@ -359,6 +569,16 @@ public function setPublicationDate($value): self return $this->set('publicationDate', $value); } + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + /** * @return string|null */ @@ -375,6 +595,16 @@ public function setRetrievalDate($value): self return $this->set('retrievalDate', $value); } + public function hasRetrievalDate(): bool + { + return $this->has('retrievalDate'); + } + + public function unsetRetrievalDate(): self + { + return $this->remove('retrievalDate'); + } + /** * @return string */ @@ -391,6 +621,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -407,6 +647,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -423,6 +673,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Reference', [ diff --git a/src/GraphQL/Schemas/Series.php b/src/GraphQL/Schemas/Series.php index 0ea3186..6cae9e2 100644 --- a/src/GraphQL/Schemas/Series.php +++ b/src/GraphQL/Schemas/Series.php @@ -23,6 +23,16 @@ public function setSeriesId($value): self return $this->set('seriesId', $value); } + public function hasSeriesId(): bool + { + return $this->has('seriesId'); + } + + public function unsetSeriesId(): self + { + return $this->remove('seriesId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setSeriesType($value): self return $this->set('seriesType', $value); } + public function hasSeriesType(): bool + { + return $this->has('seriesType'); + } + + public function unsetSeriesType(): self + { + return $this->remove('seriesType'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setSeriesName($value): self return $this->set('seriesName', $value); } + public function hasSeriesName(): bool + { + return $this->has('seriesName'); + } + + public function unsetSeriesName(): self + { + return $this->remove('seriesName'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setIssnPrint($value): self return $this->set('issnPrint', $value); } + public function hasIssnPrint(): bool + { + return $this->has('issnPrint'); + } + + public function unsetIssnPrint(): self + { + return $this->remove('issnPrint'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setIssnDigital($value): self return $this->set('issnDigital', $value); } + public function hasIssnDigital(): bool + { + return $this->has('issnDigital'); + } + + public function unsetIssnDigital(): self + { + return $this->remove('issnDigital'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setSeriesUrl($value): self return $this->set('seriesUrl', $value); } + public function hasSeriesUrl(): bool + { + return $this->has('seriesUrl'); + } + + public function unsetSeriesUrl(): self + { + return $this->remove('seriesUrl'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setSeriesDescription($value): self return $this->set('seriesDescription', $value); } + public function hasSeriesDescription(): bool + { + return $this->has('seriesDescription'); + } + + public function unsetSeriesDescription(): self + { + return $this->remove('seriesDescription'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setSeriesCfpUrl($value): self return $this->set('seriesCfpUrl', $value); } + public function hasSeriesCfpUrl(): bool + { + return $this->has('seriesCfpUrl'); + } + + public function unsetSeriesCfpUrl(): self + { + return $this->remove('seriesCfpUrl'); + } + /** * @return string */ @@ -151,6 +231,16 @@ public function setImprintId($value): self return $this->set('imprintId', $value); } + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + /** * @return string */ @@ -167,6 +257,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -183,6 +283,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Imprint */ @@ -199,6 +309,16 @@ public function setImprint($value): self return $this->set('imprint', $value); } + public function hasImprint(): bool + { + return $this->has('imprint'); + } + + public function unsetImprint(): self + { + return $this->remove('imprint'); + } + /** * @return Issue[] */ @@ -215,6 +335,16 @@ public function setIssues($value): self return $this->set('issues', $value); } + public function hasIssues(): bool + { + return $this->has('issues'); + } + + public function unsetIssues(): self + { + return $this->remove('issues'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Series', [ diff --git a/src/GraphQL/Schemas/Subject.php b/src/GraphQL/Schemas/Subject.php index f225243..c9330c5 100644 --- a/src/GraphQL/Schemas/Subject.php +++ b/src/GraphQL/Schemas/Subject.php @@ -23,6 +23,16 @@ public function setSubjectId($value): self return $this->set('subjectId', $value); } + public function hasSubjectId(): bool + { + return $this->has('subjectId'); + } + + public function unsetSubjectId(): self + { + return $this->remove('subjectId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setSubjectType($value): self return $this->set('subjectType', $value); } + public function hasSubjectType(): bool + { + return $this->has('subjectType'); + } + + public function unsetSubjectType(): self + { + return $this->remove('subjectType'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setSubjectCode($value): self return $this->set('subjectCode', $value); } + public function hasSubjectCode(): bool + { + return $this->has('subjectCode'); + } + + public function unsetSubjectCode(): self + { + return $this->remove('subjectCode'); + } + /** * @return int */ @@ -87,6 +127,16 @@ public function setSubjectOrdinal($value): self return $this->set('subjectOrdinal', $value); } + public function hasSubjectOrdinal(): bool + { + return $this->has('subjectOrdinal'); + } + + public function unsetSubjectOrdinal(): self + { + return $this->remove('subjectOrdinal'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -135,6 +205,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Subject', [ diff --git a/src/GraphQL/Schemas/Title.php b/src/GraphQL/Schemas/Title.php index fffb34c..9132401 100644 --- a/src/GraphQL/Schemas/Title.php +++ b/src/GraphQL/Schemas/Title.php @@ -23,6 +23,16 @@ public function setTitleId($value): self return $this->set('titleId', $value); } + public function hasTitleId(): bool + { + return $this->has('titleId'); + } + + public function unsetTitleId(): self + { + return $this->remove('titleId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setLocaleCode($value): self return $this->set('localeCode', $value); } + public function hasLocaleCode(): bool + { + return $this->has('localeCode'); + } + + public function unsetLocaleCode(): self + { + return $this->remove('localeCode'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setFullTitle($value): self return $this->set('fullTitle', $value); } + public function hasFullTitle(): bool + { + return $this->has('fullTitle'); + } + + public function unsetFullTitle(): self + { + return $this->remove('fullTitle'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setSubtitle($value): self return $this->set('subtitle', $value); } + public function hasSubtitle(): bool + { + return $this->has('subtitle'); + } + + public function unsetSubtitle(): self + { + return $this->remove('subtitle'); + } + /** * @return bool */ @@ -119,6 +179,16 @@ public function setCanonical($value): self return $this->set('canonical', $value); } + public function hasCanonical(): bool + { + return $this->has('canonical'); + } + + public function unsetCanonical(): self + { + return $this->remove('canonical'); + } + /** * @return Work */ @@ -135,6 +205,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Title', [ diff --git a/src/GraphQL/Schemas/UploadRequestHeader.php b/src/GraphQL/Schemas/UploadRequestHeader.php index 3ac2677..a733a86 100644 --- a/src/GraphQL/Schemas/UploadRequestHeader.php +++ b/src/GraphQL/Schemas/UploadRequestHeader.php @@ -23,6 +23,16 @@ public function setName($value): self return $this->set('name', $value); } + public function hasName(): bool + { + return $this->has('name'); + } + + public function unsetName(): self + { + return $this->remove('name'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setValue($value): self return $this->set('value', $value); } + public function hasValue(): bool + { + return $this->has('value'); + } + + public function unsetValue(): self + { + return $this->remove('value'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('UploadRequestHeader', [ diff --git a/src/GraphQL/Schemas/Work.php b/src/GraphQL/Schemas/Work.php index 7cd3ddb..7b2eead 100644 --- a/src/GraphQL/Schemas/Work.php +++ b/src/GraphQL/Schemas/Work.php @@ -23,6 +23,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkType($value): self return $this->set('workType', $value); } + public function hasWorkType(): bool + { + return $this->has('workType'); + } + + public function unsetWorkType(): self + { + return $this->remove('workType'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setWorkStatus($value): self return $this->set('workStatus', $value); } + public function hasWorkStatus(): bool + { + return $this->has('workStatus'); + } + + public function unsetWorkStatus(): self + { + return $this->remove('workStatus'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setFullTitle($value): self return $this->set('fullTitle', $value); } + public function hasFullTitle(): bool + { + return $this->has('fullTitle'); + } + + public function unsetFullTitle(): self + { + return $this->remove('fullTitle'); + } + /** * @return string */ @@ -87,6 +127,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -103,6 +153,16 @@ public function setSubtitle($value): self return $this->set('subtitle', $value); } + public function hasSubtitle(): bool + { + return $this->has('subtitle'); + } + + public function unsetSubtitle(): self + { + return $this->remove('subtitle'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setShortAbstract($value): self return $this->set('shortAbstract', $value); } + public function hasShortAbstract(): bool + { + return $this->has('shortAbstract'); + } + + public function unsetShortAbstract(): self + { + return $this->remove('shortAbstract'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setLongAbstract($value): self return $this->set('longAbstract', $value); } + public function hasLongAbstract(): bool + { + return $this->has('longAbstract'); + } + + public function unsetLongAbstract(): self + { + return $this->remove('longAbstract'); + } + /** * @return Title[] */ @@ -151,6 +231,16 @@ public function setTitles($value): self return $this->set('titles', $value); } + public function hasTitles(): bool + { + return $this->has('titles'); + } + + public function unsetTitles(): self + { + return $this->remove('titles'); + } + /** * @return GraphQLAbstract[] */ @@ -167,6 +257,16 @@ public function setAbstracts($value): self return $this->set('abstracts', $value); } + public function hasAbstracts(): bool + { + return $this->has('abstracts'); + } + + public function unsetAbstracts(): self + { + return $this->remove('abstracts'); + } + /** * @return string|null */ @@ -183,6 +283,16 @@ public function setReference($value): self return $this->set('reference', $value); } + public function hasReference(): bool + { + return $this->has('reference'); + } + + public function unsetReference(): self + { + return $this->remove('reference'); + } + /** * @return int|null */ @@ -199,6 +309,16 @@ public function setEdition($value): self return $this->set('edition', $value); } + public function hasEdition(): bool + { + return $this->has('edition'); + } + + public function unsetEdition(): self + { + return $this->remove('edition'); + } + /** * @return string */ @@ -215,6 +335,16 @@ public function setImprintId($value): self return $this->set('imprintId', $value); } + public function hasImprintId(): bool + { + return $this->has('imprintId'); + } + + public function unsetImprintId(): self + { + return $this->remove('imprintId'); + } + /** * @return string|null */ @@ -231,6 +361,16 @@ public function setDoi($value): self return $this->set('doi', $value); } + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + /** * @return string|null */ @@ -247,6 +387,16 @@ public function setPublicationDate($value): self return $this->set('publicationDate', $value); } + public function hasPublicationDate(): bool + { + return $this->has('publicationDate'); + } + + public function unsetPublicationDate(): self + { + return $this->remove('publicationDate'); + } + /** * @return string|null */ @@ -263,6 +413,16 @@ public function setWithdrawnDate($value): self return $this->set('withdrawnDate', $value); } + public function hasWithdrawnDate(): bool + { + return $this->has('withdrawnDate'); + } + + public function unsetWithdrawnDate(): self + { + return $this->remove('withdrawnDate'); + } + /** * @return string|null */ @@ -279,6 +439,16 @@ public function setPlace($value): self return $this->set('place', $value); } + public function hasPlace(): bool + { + return $this->has('place'); + } + + public function unsetPlace(): self + { + return $this->remove('place'); + } + /** * @return int|null */ @@ -295,6 +465,16 @@ public function setPageCount($value): self return $this->set('pageCount', $value); } + public function hasPageCount(): bool + { + return $this->has('pageCount'); + } + + public function unsetPageCount(): self + { + return $this->remove('pageCount'); + } + /** * @return string|null */ @@ -311,6 +491,16 @@ public function setPageBreakdown($value): self return $this->set('pageBreakdown', $value); } + public function hasPageBreakdown(): bool + { + return $this->has('pageBreakdown'); + } + + public function unsetPageBreakdown(): self + { + return $this->remove('pageBreakdown'); + } + /** * @return int|null */ @@ -327,6 +517,16 @@ public function setImageCount($value): self return $this->set('imageCount', $value); } + public function hasImageCount(): bool + { + return $this->has('imageCount'); + } + + public function unsetImageCount(): self + { + return $this->remove('imageCount'); + } + /** * @return int|null */ @@ -343,6 +543,16 @@ public function setTableCount($value): self return $this->set('tableCount', $value); } + public function hasTableCount(): bool + { + return $this->has('tableCount'); + } + + public function unsetTableCount(): self + { + return $this->remove('tableCount'); + } + /** * @return int|null */ @@ -359,6 +569,16 @@ public function setAudioCount($value): self return $this->set('audioCount', $value); } + public function hasAudioCount(): bool + { + return $this->has('audioCount'); + } + + public function unsetAudioCount(): self + { + return $this->remove('audioCount'); + } + /** * @return int|null */ @@ -375,6 +595,16 @@ public function setVideoCount($value): self return $this->set('videoCount', $value); } + public function hasVideoCount(): bool + { + return $this->has('videoCount'); + } + + public function unsetVideoCount(): self + { + return $this->remove('videoCount'); + } + /** * @return string|null */ @@ -391,6 +621,16 @@ public function setLicense($value): self return $this->set('license', $value); } + public function hasLicense(): bool + { + return $this->has('license'); + } + + public function unsetLicense(): self + { + return $this->remove('license'); + } + /** * @return string|null */ @@ -407,6 +647,16 @@ public function setCopyrightHolder($value): self return $this->set('copyrightHolder', $value); } + public function hasCopyrightHolder(): bool + { + return $this->has('copyrightHolder'); + } + + public function unsetCopyrightHolder(): self + { + return $this->remove('copyrightHolder'); + } + /** * @return string|null */ @@ -423,6 +673,16 @@ public function setLandingPage($value): self return $this->set('landingPage', $value); } + public function hasLandingPage(): bool + { + return $this->has('landingPage'); + } + + public function unsetLandingPage(): self + { + return $this->remove('landingPage'); + } + /** * @return string|null */ @@ -439,6 +699,16 @@ public function setLccn($value): self return $this->set('lccn', $value); } + public function hasLccn(): bool + { + return $this->has('lccn'); + } + + public function unsetLccn(): self + { + return $this->remove('lccn'); + } + /** * @return string|null */ @@ -455,6 +725,16 @@ public function setOclc($value): self return $this->set('oclc', $value); } + public function hasOclc(): bool + { + return $this->has('oclc'); + } + + public function unsetOclc(): self + { + return $this->remove('oclc'); + } + /** * @return string|null */ @@ -471,6 +751,16 @@ public function setGeneralNote($value): self return $this->set('generalNote', $value); } + public function hasGeneralNote(): bool + { + return $this->has('generalNote'); + } + + public function unsetGeneralNote(): self + { + return $this->remove('generalNote'); + } + /** * @return string|null */ @@ -487,6 +777,16 @@ public function setBibliographyNote($value): self return $this->set('bibliographyNote', $value); } + public function hasBibliographyNote(): bool + { + return $this->has('bibliographyNote'); + } + + public function unsetBibliographyNote(): self + { + return $this->remove('bibliographyNote'); + } + /** * @return string|null */ @@ -503,6 +803,16 @@ public function setToc($value): self return $this->set('toc', $value); } + public function hasToc(): bool + { + return $this->has('toc'); + } + + public function unsetToc(): self + { + return $this->remove('toc'); + } + /** * @return string|null */ @@ -519,6 +829,16 @@ public function setResourcesDescription($value): self return $this->set('resourcesDescription', $value); } + public function hasResourcesDescription(): bool + { + return $this->has('resourcesDescription'); + } + + public function unsetResourcesDescription(): self + { + return $this->remove('resourcesDescription'); + } + /** * @return string|null */ @@ -535,6 +855,16 @@ public function setCoverUrl($value): self return $this->set('coverUrl', $value); } + public function hasCoverUrl(): bool + { + return $this->has('coverUrl'); + } + + public function unsetCoverUrl(): self + { + return $this->remove('coverUrl'); + } + /** * @return string|null */ @@ -551,6 +881,16 @@ public function setCoverCaption($value): self return $this->set('coverCaption', $value); } + public function hasCoverCaption(): bool + { + return $this->has('coverCaption'); + } + + public function unsetCoverCaption(): self + { + return $this->remove('coverCaption'); + } + /** * @return string */ @@ -567,6 +907,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -583,6 +933,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return string|null */ @@ -599,6 +959,16 @@ public function setFirstPage($value): self return $this->set('firstPage', $value); } + public function hasFirstPage(): bool + { + return $this->has('firstPage'); + } + + public function unsetFirstPage(): self + { + return $this->remove('firstPage'); + } + /** * @return string|null */ @@ -615,6 +985,16 @@ public function setLastPage($value): self return $this->set('lastPage', $value); } + public function hasLastPage(): bool + { + return $this->has('lastPage'); + } + + public function unsetLastPage(): self + { + return $this->remove('lastPage'); + } + /** * @return string|null */ @@ -631,6 +1011,16 @@ public function setPageInterval($value): self return $this->set('pageInterval', $value); } + public function hasPageInterval(): bool + { + return $this->has('pageInterval'); + } + + public function unsetPageInterval(): self + { + return $this->remove('pageInterval'); + } + /** * @return string */ @@ -647,6 +1037,16 @@ public function setUpdatedAtWithRelations($value): self return $this->set('updatedAtWithRelations', $value); } + public function hasUpdatedAtWithRelations(): bool + { + return $this->has('updatedAtWithRelations'); + } + + public function unsetUpdatedAtWithRelations(): self + { + return $this->remove('updatedAtWithRelations'); + } + /** * @return Imprint */ @@ -663,6 +1063,16 @@ public function setImprint($value): self return $this->set('imprint', $value); } + public function hasImprint(): bool + { + return $this->has('imprint'); + } + + public function unsetImprint(): self + { + return $this->remove('imprint'); + } + /** * @return Contribution[] */ @@ -679,6 +1089,16 @@ public function setContributions($value): self return $this->set('contributions', $value); } + public function hasContributions(): bool + { + return $this->has('contributions'); + } + + public function unsetContributions(): self + { + return $this->remove('contributions'); + } + /** * @return Language[] */ @@ -695,6 +1115,16 @@ public function setLanguages($value): self return $this->set('languages', $value); } + public function hasLanguages(): bool + { + return $this->has('languages'); + } + + public function unsetLanguages(): self + { + return $this->remove('languages'); + } + /** * @return Publication[] */ @@ -711,6 +1141,16 @@ public function setPublications($value): self return $this->set('publications', $value); } + public function hasPublications(): bool + { + return $this->has('publications'); + } + + public function unsetPublications(): self + { + return $this->remove('publications'); + } + /** * @return Subject[] */ @@ -727,6 +1167,16 @@ public function setSubjects($value): self return $this->set('subjects', $value); } + public function hasSubjects(): bool + { + return $this->has('subjects'); + } + + public function unsetSubjects(): self + { + return $this->remove('subjects'); + } + /** * @return Funding[] */ @@ -743,6 +1193,16 @@ public function setFundings($value): self return $this->set('fundings', $value); } + public function hasFundings(): bool + { + return $this->has('fundings'); + } + + public function unsetFundings(): self + { + return $this->remove('fundings'); + } + /** * @return Issue[] */ @@ -759,6 +1219,16 @@ public function setIssues($value): self return $this->set('issues', $value); } + public function hasIssues(): bool + { + return $this->has('issues'); + } + + public function unsetIssues(): self + { + return $this->remove('issues'); + } + /** * @return WorkRelation[] */ @@ -775,6 +1245,16 @@ public function setRelations($value): self return $this->set('relations', $value); } + public function hasRelations(): bool + { + return $this->has('relations'); + } + + public function unsetRelations(): self + { + return $this->remove('relations'); + } + /** * @return File|null */ @@ -791,6 +1271,16 @@ public function setFrontcover($value): self return $this->set('frontcover', $value); } + public function hasFrontcover(): bool + { + return $this->has('frontcover'); + } + + public function unsetFrontcover(): self + { + return $this->remove('frontcover'); + } + /** * @return Reference[] */ @@ -807,6 +1297,16 @@ public function setReferences($value): self return $this->set('references', $value); } + public function hasReferences(): bool + { + return $this->has('references'); + } + + public function unsetReferences(): self + { + return $this->remove('references'); + } + /** * @return WorkResource[] */ @@ -823,6 +1323,16 @@ public function setAdditionalResources($value): self return $this->set('additionalResources', $value); } + public function hasAdditionalResources(): bool + { + return $this->has('additionalResources'); + } + + public function unsetAdditionalResources(): self + { + return $this->remove('additionalResources'); + } + /** * @return Award[] */ @@ -839,6 +1349,16 @@ public function setAwards($value): self return $this->set('awards', $value); } + public function hasAwards(): bool + { + return $this->has('awards'); + } + + public function unsetAwards(): self + { + return $this->remove('awards'); + } + /** * @return Endorsement[] */ @@ -855,6 +1375,16 @@ public function setEndorsements($value): self return $this->set('endorsements', $value); } + public function hasEndorsements(): bool + { + return $this->has('endorsements'); + } + + public function unsetEndorsements(): self + { + return $this->remove('endorsements'); + } + /** * @return BookReview[] */ @@ -871,6 +1401,16 @@ public function setBookReviews($value): self return $this->set('bookReviews', $value); } + public function hasBookReviews(): bool + { + return $this->has('bookReviews'); + } + + public function unsetBookReviews(): self + { + return $this->remove('bookReviews'); + } + /** * @return WorkFeaturedVideo|null */ @@ -887,6 +1427,16 @@ public function setFeaturedVideo($value): self return $this->set('featuredVideo', $value); } + public function hasFeaturedVideo(): bool + { + return $this->has('featuredVideo'); + } + + public function unsetFeaturedVideo(): self + { + return $this->remove('featuredVideo'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('Work', [ diff --git a/src/GraphQL/Schemas/WorkFeaturedVideo.php b/src/GraphQL/Schemas/WorkFeaturedVideo.php index 55ac98a..ced58a6 100644 --- a/src/GraphQL/Schemas/WorkFeaturedVideo.php +++ b/src/GraphQL/Schemas/WorkFeaturedVideo.php @@ -23,6 +23,16 @@ public function setWorkFeaturedVideoId($value): self return $this->set('workFeaturedVideoId', $value); } + public function hasWorkFeaturedVideoId(): bool + { + return $this->has('workFeaturedVideoId'); + } + + public function unsetWorkFeaturedVideoId(): self + { + return $this->remove('workFeaturedVideoId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return int */ @@ -87,6 +127,16 @@ public function setWidth($value): self return $this->set('width', $value); } + public function hasWidth(): bool + { + return $this->has('width'); + } + + public function unsetWidth(): self + { + return $this->remove('width'); + } + /** * @return int */ @@ -103,6 +153,16 @@ public function setHeight($value): self return $this->set('height', $value); } + public function hasHeight(): bool + { + return $this->has('height'); + } + + public function unsetHeight(): self + { + return $this->remove('height'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -135,6 +205,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -151,6 +231,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return File|null */ @@ -167,6 +257,16 @@ public function setFile($value): self return $this->set('file', $value); } + public function hasFile(): bool + { + return $this->has('file'); + } + + public function unsetFile(): self + { + return $this->remove('file'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkFeaturedVideo', [ diff --git a/src/GraphQL/Schemas/WorkRelation.php b/src/GraphQL/Schemas/WorkRelation.php index f9c67e6..6fb7796 100644 --- a/src/GraphQL/Schemas/WorkRelation.php +++ b/src/GraphQL/Schemas/WorkRelation.php @@ -23,6 +23,16 @@ public function setWorkRelationId($value): self return $this->set('workRelationId', $value); } + public function hasWorkRelationId(): bool + { + return $this->has('workRelationId'); + } + + public function unsetWorkRelationId(): self + { + return $this->remove('workRelationId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setRelatorWorkId($value): self return $this->set('relatorWorkId', $value); } + public function hasRelatorWorkId(): bool + { + return $this->has('relatorWorkId'); + } + + public function unsetRelatorWorkId(): self + { + return $this->remove('relatorWorkId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setRelatedWorkId($value): self return $this->set('relatedWorkId', $value); } + public function hasRelatedWorkId(): bool + { + return $this->has('relatedWorkId'); + } + + public function unsetRelatedWorkId(): self + { + return $this->remove('relatedWorkId'); + } + /** * @return string */ @@ -71,6 +101,16 @@ public function setRelationType($value): self return $this->set('relationType', $value); } + public function hasRelationType(): bool + { + return $this->has('relationType'); + } + + public function unsetRelationType(): self + { + return $this->remove('relationType'); + } + /** * @return int */ @@ -87,6 +127,16 @@ public function setRelationOrdinal($value): self return $this->set('relationOrdinal', $value); } + public function hasRelationOrdinal(): bool + { + return $this->has('relationOrdinal'); + } + + public function unsetRelationOrdinal(): self + { + return $this->remove('relationOrdinal'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -119,6 +179,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -135,6 +205,16 @@ public function setRelatedWork($value): self return $this->set('relatedWork', $value); } + public function hasRelatedWork(): bool + { + return $this->has('relatedWork'); + } + + public function unsetRelatedWork(): self + { + return $this->remove('relatedWork'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkRelation', [ diff --git a/src/GraphQL/Schemas/WorkResource.php b/src/GraphQL/Schemas/WorkResource.php index ef6f24c..443ff39 100644 --- a/src/GraphQL/Schemas/WorkResource.php +++ b/src/GraphQL/Schemas/WorkResource.php @@ -23,6 +23,16 @@ public function setWorkResourceId($value): self return $this->set('workResourceId', $value); } + public function hasWorkResourceId(): bool + { + return $this->has('workResourceId'); + } + + public function unsetWorkResourceId(): self + { + return $this->remove('workResourceId'); + } + /** * @return string */ @@ -39,6 +49,16 @@ public function setWorkId($value): self return $this->set('workId', $value); } + public function hasWorkId(): bool + { + return $this->has('workId'); + } + + public function unsetWorkId(): self + { + return $this->remove('workId'); + } + /** * @return string */ @@ -55,6 +75,16 @@ public function setTitle($value): self return $this->set('title', $value); } + public function hasTitle(): bool + { + return $this->has('title'); + } + + public function unsetTitle(): self + { + return $this->remove('title'); + } + /** * @return string|null */ @@ -71,6 +101,16 @@ public function setDescription($value): self return $this->set('description', $value); } + public function hasDescription(): bool + { + return $this->has('description'); + } + + public function unsetDescription(): self + { + return $this->remove('description'); + } + /** * @return string|null */ @@ -87,6 +127,16 @@ public function setAttribution($value): self return $this->set('attribution', $value); } + public function hasAttribution(): bool + { + return $this->has('attribution'); + } + + public function unsetAttribution(): self + { + return $this->remove('attribution'); + } + /** * @return string */ @@ -103,6 +153,16 @@ public function setResourceType($value): self return $this->set('resourceType', $value); } + public function hasResourceType(): bool + { + return $this->has('resourceType'); + } + + public function unsetResourceType(): self + { + return $this->remove('resourceType'); + } + /** * @return string|null */ @@ -119,6 +179,16 @@ public function setDoi($value): self return $this->set('doi', $value); } + public function hasDoi(): bool + { + return $this->has('doi'); + } + + public function unsetDoi(): self + { + return $this->remove('doi'); + } + /** * @return string|null */ @@ -135,6 +205,16 @@ public function setHandle($value): self return $this->set('handle', $value); } + public function hasHandle(): bool + { + return $this->has('handle'); + } + + public function unsetHandle(): self + { + return $this->remove('handle'); + } + /** * @return string|null */ @@ -151,6 +231,16 @@ public function setUrl($value): self return $this->set('url', $value); } + public function hasUrl(): bool + { + return $this->has('url'); + } + + public function unsetUrl(): self + { + return $this->remove('url'); + } + /** * @return string|null */ @@ -167,6 +257,16 @@ public function setDate($value): self return $this->set('date', $value); } + public function hasDate(): bool + { + return $this->has('date'); + } + + public function unsetDate(): self + { + return $this->remove('date'); + } + /** * @return int */ @@ -183,6 +283,16 @@ public function setResourceOrdinal($value): self return $this->set('resourceOrdinal', $value); } + public function hasResourceOrdinal(): bool + { + return $this->has('resourceOrdinal'); + } + + public function unsetResourceOrdinal(): self + { + return $this->remove('resourceOrdinal'); + } + /** * @return string */ @@ -199,6 +309,16 @@ public function setCreatedAt($value): self return $this->set('createdAt', $value); } + public function hasCreatedAt(): bool + { + return $this->has('createdAt'); + } + + public function unsetCreatedAt(): self + { + return $this->remove('createdAt'); + } + /** * @return string */ @@ -215,6 +335,16 @@ public function setUpdatedAt($value): self return $this->set('updatedAt', $value); } + public function hasUpdatedAt(): bool + { + return $this->has('updatedAt'); + } + + public function unsetUpdatedAt(): self + { + return $this->remove('updatedAt'); + } + /** * @return Work */ @@ -231,6 +361,16 @@ public function setWork($value): self return $this->set('work', $value); } + public function hasWork(): bool + { + return $this->has('work'); + } + + public function unsetWork(): self + { + return $this->remove('work'); + } + /** * @return File|null */ @@ -247,6 +387,16 @@ public function setFile($value): self return $this->set('file', $value); } + public function hasFile(): bool + { + return $this->has('file'); + } + + public function unsetFile(): self + { + return $this->remove('file'); + } + public static function definition(): ObjectTypeDefinition { return new ObjectTypeDefinition('WorkResource', [ diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index ff01cf2..a0f73e7 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -37,6 +37,8 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $this->assertStringContainsString('@return Imprint|null', $workClass); $this->assertStringContainsString('@return string[]|null', $workClass); $this->assertStringContainsString('@param string $value', $workClass); + $this->assertStringContainsString('public function hasTitle(): bool', $workClass); + $this->assertStringContainsString('public function unsetTitle(): self', $workClass); } public function testItRejectsUnsafeTargets(): void diff --git a/tests/GraphQL/GenericClientTest.php b/tests/GraphQL/GenericClientTest.php index e36c71b..dbb8cbd 100644 --- a/tests/GraphQL/GenericClientTest.php +++ b/tests/GraphQL/GenericClientTest.php @@ -213,6 +213,51 @@ public function testGeneratedSchemaObjectsExposeSettersAndArrayData(): void ], $work->toArray()); } + public function testGeneratedSchemaObjectsDistinguishNullFromMissingFields(): void + { + $work = new Work(); + + $this->assertFalse($work->hasSubtitle()); + + $work->setSubtitle(null); + + $this->assertTrue($work->hasSubtitle()); + $this->assertNull($work->getSubtitle()); + $this->assertSame(['subtitle' => null], $work->toArray()); + + $work->unsetSubtitle(); + + $this->assertFalse($work->hasSubtitle()); + $this->assertSame([], $work->toArray()); + } + + public function testGeneratedInputObjectsExposeSettersAndPresenceMethods(): void + { + $newWork = (new NewWork()) + ->setWorkType(WorkType::MONOGRAPH) + ->setWorkStatus(WorkStatus::ACTIVE) + ->setImprintId('71faf1c3-900a-4b8c-bca7-4f927699fb90') + ->setReference(null); + + $this->assertTrue($newWork->hasReference()); + $this->assertNull($newWork->getReference()); + $this->assertSame([ + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', + 'reference' => null, + ], $newWork->getAllData()); + + $newWork->unsetReference(); + + $this->assertFalse($newWork->hasReference()); + $this->assertSame([ + 'workType' => WorkType::MONOGRAPH, + 'workStatus' => WorkStatus::ACTIVE, + 'imprintId' => '71faf1c3-900a-4b8c-bca7-4f927699fb90', + ], $newWork->getAllData()); + } + public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): void { $mockHandler = new MockHandler([ @@ -236,6 +281,36 @@ public function testItUsesFirstIdFieldFromGeneratedSchemaAsDefaultSelection(): v $this->assertSame('upload-1', $client->initPublicationFileUpload($input)); } + public function testGeneratedInputObjectsPreserveExplicitNullVariables(): void + { + $history = []; + $mockHandler = new MockHandler([ + new Response(200, [], json_encode([ + 'data' => [ + 'createWork' => [ + 'workId' => 'work-1', + ], + ], + ])), + ]); + $handlerStack = HandlerStack::create($mockHandler); + $handlerStack->push(Middleware::history($history)); + $client = new Client(['handler' => $handlerStack]); + + $newWork = (new NewWork()) + ->setWorkType(WorkType::MONOGRAPH) + ->setWorkStatus(WorkStatus::ACTIVE) + ->setImprintId('71faf1c3-900a-4b8c-bca7-4f927699fb90') + ->setReference(null); + + $client->createWork($newWork); + + $body = json_decode((string) $history[0]['request']->getBody(), true); + + $this->assertArrayHasKey('reference', $body['variables']['data']); + $this->assertNull($body['variables']['data']['reference']); + } + public function testItReturnsScalarOperationResults(): void { $mockHandler = new MockHandler([ diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 1ab0a4d..cbf7d8a 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -250,6 +250,16 @@ public function set{$methodName}(\$value): self { return \$this->set({$fieldName}, \$value); } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } PHP; } @@ -261,12 +271,18 @@ function generateInputType(array $type, string $directory, string $namespacePart $namespacePart, $className, $type['name'], + inputFieldMethodsCode($type['inputFields'] ?? []), argumentDefinitionListCode($type['inputFields'] ?? [], 3) )); } -function inputClassCode(string $namespacePart, string $className, string $typeName, string $fieldsCode): string -{ +function inputClassCode( + string $namespacePart, + string $className, + string $typeName, + string $methodsCode, + string $fieldsCode +): string { return <<get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; +} + function generateEnumType(array $type, string $directory, string $namespacePart): void { $className = safeClassName(studly($type['name'])); From c6a794128d93e5d57fa2d5e85a460c8463add7b5 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 14:59:49 -0400 Subject: [PATCH 29/40] refactor(graphql): split generator into components --- tools/generate-graphql-client.php | 294 ++++++++++++++++++------------ 1 file changed, 175 insertions(+), 119 deletions(-) diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index cbf7d8a..d1c9b0a 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -10,147 +10,225 @@ function main(array $argv): void { $target = $argv[2] ?? dirname(__DIR__) . '/src/GraphQL'; - $schema = loadIntrospectionSchema($argv[1] ?? null); - $types = indexTypesByName($schema['types'] ?? []); - assertSafeGeneratedTarget($target); - prepareGeneratedDirectories($target); - generateRootOperations($schema, $types, $target); - generateSchemaTypes($types, $target); + (new GraphQLClientGenerator())->generate($argv[1] ?? null, $target); } -function assertSafeGeneratedTarget(string $target): void +final class GraphQLClientGenerator { - if (basename($target) !== 'GraphQL') { - fwrite(STDERR, "Refusing to generate GraphQL client outside a GraphQL target directory.\n"); - exit(1); - } -} + private SchemaLoader $schemaLoader; -function loadIntrospectionSchema(?string $schemaSource): array -{ - $response = $schemaSource ? loadSchemaFromFile($schemaSource) : fetchSchema(THOTH_GRAPHQL_ENDPOINT); + private TypeIndexer $typeIndexer; - if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { - fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); - exit(1); - } + private TargetDirectoryGuard $targetDirectoryGuard; - return $response['data']['__schema']; -} + private GeneratedDirectoryPreparer $directoryPreparer; -function loadSchemaFromFile(string $schemaPath): array -{ - $schema = json_decode((string) file_get_contents($schemaPath), true); + private RootOperationGenerator $rootOperationGenerator; - return is_array($schema) ? $schema : []; -} + private SchemaTypeGenerator $schemaTypeGenerator; -function fetchSchema(string $endpoint): array -{ - $payload = json_encode(['query' => introspectionQuery()]); - $context = stream_context_create([ - 'http' => [ - 'method' => 'POST', - 'header' => "Content-Type: application/json\r\n", - 'content' => $payload, - ], - ]); - $schema = json_decode((string) file_get_contents($endpoint, false, $context), true); + public function __construct( + ?SchemaLoader $schemaLoader = null, + ?TypeIndexer $typeIndexer = null, + ?TargetDirectoryGuard $targetDirectoryGuard = null, + ?GeneratedDirectoryPreparer $directoryPreparer = null, + ?RootOperationGenerator $rootOperationGenerator = null, + ?SchemaTypeGenerator $schemaTypeGenerator = null + ) { + $this->schemaLoader = $schemaLoader ?: new SchemaLoader(); + $this->typeIndexer = $typeIndexer ?: new TypeIndexer(); + $this->targetDirectoryGuard = $targetDirectoryGuard ?: new TargetDirectoryGuard(); + $this->directoryPreparer = $directoryPreparer ?: new GeneratedDirectoryPreparer(); + $this->rootOperationGenerator = $rootOperationGenerator ?: new RootOperationGenerator(); + $this->schemaTypeGenerator = $schemaTypeGenerator ?: new SchemaTypeGenerator(); + } - return is_array($schema) ? $schema : []; + public function generate(?string $schemaSource, string $target): void + { + $this->targetDirectoryGuard->assertSafe($target); + + $schema = $this->schemaLoader->load($schemaSource); + $types = $this->typeIndexer->indexByName($schema['types'] ?? []); + + $this->directoryPreparer->prepare($target); + $this->rootOperationGenerator->generate($schema, $types, $target); + $this->schemaTypeGenerator->generate($types, $target); + } } -function introspectionQuery(): string +final class TargetDirectoryGuard { - return 'query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }'; + public function assertSafe(string $target): void + { + if (basename($target) !== 'GraphQL') { + fwrite(STDERR, "Refusing to generate GraphQL client outside a GraphQL target directory.\n"); + exit(1); + } + } } -function indexTypesByName(array $schemaTypes): array +final class SchemaLoader { - $types = []; + public function load(?string $schemaSource): array + { + $response = $schemaSource ? $this->loadFromFile($schemaSource) : $this->fetch(THOTH_GRAPHQL_ENDPOINT); - foreach ($schemaTypes as $type) { - if (isset($type['name'])) { - $types[$type['name']] = $type; + if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { + fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); + exit(1); } + + return $response['data']['__schema']; } - return $types; -} + private function loadFromFile(string $schemaPath): array + { + $schema = json_decode((string) file_get_contents($schemaPath), true); -function prepareGeneratedDirectories(string $target): void -{ - foreach (GENERATED_DIRECTORIES as $directory) { - removeDirectory($target . '/' . $directory); - mkdir($target . '/' . $directory, 0777, true); + return is_array($schema) ? $schema : []; } -} -function generateRootOperations(array $schema, array $types, string $target): void -{ - generateOperations( - $types[$schema['queryType']['name']] ?? [], - 'query', - $target . '/Queries', - 'Queries' - ); - generateOperations( - $types[$schema['mutationType']['name']] ?? [], - 'mutation', - $target . '/Mutations', - 'Mutations' - ); + private function fetch(string $endpoint): array + { + $payload = json_encode(['query' => introspectionQuery()]); + $context = stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'header' => "Content-Type: application/json\r\n", + 'content' => $payload, + ], + ]); + $schema = json_decode((string) file_get_contents($endpoint, false, $context), true); + + return is_array($schema) ? $schema : []; + } } -function generateSchemaTypes(array $types, string $target): void +final class TypeIndexer { - foreach ($types as $type) { - if (isInternalType($type)) { - continue; + public function indexByName(array $schemaTypes): array + { + $types = []; + + foreach ($schemaTypes as $type) { + if (isset($type['name'])) { + $types[$type['name']] = $type; + } } - generateSchemaType($type, $target); + return $types; } } -function isInternalType(array $type): bool +final class GeneratedDirectoryPreparer { - return isset($type['name']) && strpos($type['name'], '__') === 0; + public function prepare(string $target): void + { + foreach (GENERATED_DIRECTORIES as $directory) { + $this->removeDirectory($target . '/' . $directory); + mkdir($target . '/' . $directory, 0777, true); + } + } + + private function removeDirectory(string $directory): void + { + if (!is_dir($directory)) { + return; + } + + $iterator = new RecursiveIteratorIterator( + new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS), + RecursiveIteratorIterator::CHILD_FIRST + ); + + foreach ($iterator as $file) { + if ($file->isDir()) { + rmdir($file->getPathname()); + } else { + unlink($file->getPathname()); + } + } + + rmdir($directory); + } } -function generateSchemaType(array $type, string $target): void +final class RootOperationGenerator { - switch ($type['kind'] ?? '') { - case 'OBJECT': - generateObjectType($type, $target . '/Schemas', 'Schemas'); - return; - case 'INPUT_OBJECT': - generateInputType($type, $target . '/Inputs', 'Inputs'); - return; - case 'ENUM': - generateEnumType($type, $target . '/Enums', 'Enums'); - return; - case 'SCALAR': - generateScalarType($type, $target . '/Scalars', 'Scalars'); - return; + public function generate(array $schema, array $types, string $target): void + { + $this->generateOperations( + $types[$schema['queryType']['name']] ?? [], + 'query', + $target . '/Queries', + 'Queries' + ); + $this->generateOperations( + $types[$schema['mutationType']['name']] ?? [], + 'mutation', + $target . '/Mutations', + 'Mutations' + ); + } + + private function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void + { + foreach ($rootType['fields'] ?? [] as $field) { + $className = safeClassName(studly($field['name']) . operationClassSuffix($operationType)); + + writeGeneratedClass($directory, $className, operationClassCode( + $namespacePart, + $className, + $operationType, + fieldCode($field) + )); + } } } -function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void +final class SchemaTypeGenerator { - foreach ($rootType['fields'] ?? [] as $field) { - $className = safeClassName(studly($field['name']) . operationClassSuffix($operationType)); + public function generate(array $types, string $target): void + { + foreach ($types as $type) { + if ($this->isInternalType($type)) { + continue; + } - writeGeneratedClass($directory, $className, operationClassCode( - $namespacePart, - $className, - $operationType, - fieldCode($field) - )); + $this->generateType($type, $target); + } + } + + private function isInternalType(array $type): bool + { + return isset($type['name']) && strpos($type['name'], '__') === 0; + } + + private function generateType(array $type, string $target): void + { + switch ($type['kind'] ?? '') { + case 'OBJECT': + generateObjectType($type, $target . '/Schemas', 'Schemas'); + return; + case 'INPUT_OBJECT': + generateInputType($type, $target . '/Inputs', 'Inputs'); + return; + case 'ENUM': + generateEnumType($type, $target . '/Enums', 'Enums'); + return; + case 'SCALAR': + generateScalarType($type, $target . '/Scalars', 'Scalars'); + return; + } } } +function introspectionQuery(): string +{ + return 'query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }'; +} + function operationClassSuffix(string $operationType): string { return $operationType === 'query' ? 'Query' : 'Mutation'; @@ -637,25 +715,3 @@ function reservedWords(): array 'yield', ]; } - -function removeDirectory(string $directory): void -{ - if (!is_dir($directory)) { - return; - } - - $iterator = new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS), - RecursiveIteratorIterator::CHILD_FIRST - ); - - foreach ($iterator as $file) { - if ($file->isDir()) { - rmdir($file->getPathname()); - } else { - unlink($file->getPathname()); - } - } - - rmdir($directory); -} From c6f0109f539ed02f5840172d0585cad774c618ce Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 15:28:08 -0400 Subject: [PATCH 30/40] refactor(graphql): move generator components out of entrypoint --- tests/GraphQL/GeneratorTest.php | 10 + tools/GraphQLGenerator/CodeGeneration.php | 495 ++++++++++++ .../GeneratedDirectoryPreparer.php | 36 + .../GraphQLClientGenerator.php | 46 ++ .../RootOperationGenerator.php | 36 + tools/GraphQLGenerator/SchemaLoader.php | 40 + .../GraphQLGenerator/SchemaTypeGenerator.php | 40 + .../GraphQLGenerator/TargetDirectoryGuard.php | 14 + tools/GraphQLGenerator/TypeIndexer.php | 19 + tools/GraphQLGenerator/bootstrap.php | 15 + tools/generate-graphql-client.php | 705 +----------------- 11 files changed, 752 insertions(+), 704 deletions(-) create mode 100644 tools/GraphQLGenerator/CodeGeneration.php create mode 100644 tools/GraphQLGenerator/GeneratedDirectoryPreparer.php create mode 100644 tools/GraphQLGenerator/GraphQLClientGenerator.php create mode 100644 tools/GraphQLGenerator/RootOperationGenerator.php create mode 100644 tools/GraphQLGenerator/SchemaLoader.php create mode 100644 tools/GraphQLGenerator/SchemaTypeGenerator.php create mode 100644 tools/GraphQLGenerator/TargetDirectoryGuard.php create mode 100644 tools/GraphQLGenerator/TypeIndexer.php create mode 100644 tools/GraphQLGenerator/bootstrap.php diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index a0f73e7..dc5e8ec 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -59,6 +59,16 @@ public function testItRejectsUnsafeTargets(): void $this->assertDirectoryDoesNotExist($target . '/Queries'); } + public function testGeneratorEntrypointLoadsSeparateComponents(): void + { + $projectRoot = dirname(__DIR__, 2); + $script = file_get_contents($projectRoot . '/tools/generate-graphql-client.php'); + + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/GraphQLClientGenerator.php'); + $this->assertStringContainsString("require_once __DIR__ . '/GraphQLGenerator/bootstrap.php';", $script); + $this->assertStringNotContainsString('final class GraphQLClientGenerator', $script); + } + private function removeDirectory(string $directory): void { if (!is_dir($directory)) { diff --git a/tools/GraphQLGenerator/CodeGeneration.php b/tools/GraphQLGenerator/CodeGeneration.php new file mode 100644 index 0000000..09af880 --- /dev/null +++ b/tools/GraphQLGenerator/CodeGeneration.php @@ -0,0 +1,495 @@ +get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; +} + +function generateInputType(array $type, string $directory, string $namespacePart): void +{ + $className = safeClassName(studly($type['name'])); + + writeGeneratedClass($directory, $className, inputClassCode( + $namespacePart, + $className, + $type['name'], + inputFieldMethodsCode($type['inputFields'] ?? []), + argumentDefinitionListCode($type['inputFields'] ?? [], 3) + )); +} + +function inputClassCode( + string $namespacePart, + string $className, + string $typeName, + string $methodsCode, + string $fieldsCode +): string { + return <<get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; +} + +function generateEnumType(array $type, string $directory, string $namespacePart): void +{ + $className = safeClassName(studly($type['name'])); + $values = enumValueNames($type['enumValues'] ?? []); + + writeGeneratedClass($directory, $className, enumClassCode( + $namespacePart, + $className, + $type['name'], + enumConstantsCode($values), + exportPhpValue($values, 2) + )); +} + +function enumValueNames(array $enumValues): array +{ + return array_map( + static function (array $value): string { + return $value['name']; + }, + $enumValues + ); +} + +function enumConstantsCode(array $values): string +{ + return implode("\n", array_map( + static function (string $value): string { + return ' public const ' . sanitizeConstant($value) . ' = ' . exportPhpValue($value) . ';'; + }, + $values + )); +} + +function enumClassCode( + string $namespacePart, + string $className, + string $typeName, + string $constantsCode, + string $valuesCode +): string { + return << $childValue) { + $prefix = $isList ? '' : exportPhpValue($key, 0) . ' => '; + $lines[] = $childIndent . $prefix . exportPhpValue($childValue, $level + 1) . ','; + } + + $lines[] = $indent . ']'; + return implode("\n", $lines); +} + +function isSequentialArray(array $value): bool +{ + $expected = 0; + + foreach ($value as $key => $_) { + if ($key !== $expected) { + return false; + } + + $expected++; + } + + return true; +} + +function studly(string $value): string +{ + $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); + $value = preg_replace('/(?removeDirectory($target . '/' . $directory); + mkdir($target . '/' . $directory, 0777, true); + } + } + + private function removeDirectory(string $directory): void + { + if (!is_dir($directory)) { + return; + } + + $iterator = new RecursiveIteratorIterator( + new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS), + RecursiveIteratorIterator::CHILD_FIRST + ); + + foreach ($iterator as $file) { + if ($file->isDir()) { + rmdir($file->getPathname()); + } else { + unlink($file->getPathname()); + } + } + + rmdir($directory); + } +} diff --git a/tools/GraphQLGenerator/GraphQLClientGenerator.php b/tools/GraphQLGenerator/GraphQLClientGenerator.php new file mode 100644 index 0000000..cbbb1e9 --- /dev/null +++ b/tools/GraphQLGenerator/GraphQLClientGenerator.php @@ -0,0 +1,46 @@ +schemaLoader = $schemaLoader ?: new SchemaLoader(); + $this->typeIndexer = $typeIndexer ?: new TypeIndexer(); + $this->targetDirectoryGuard = $targetDirectoryGuard ?: new TargetDirectoryGuard(); + $this->directoryPreparer = $directoryPreparer ?: new GeneratedDirectoryPreparer(); + $this->rootOperationGenerator = $rootOperationGenerator ?: new RootOperationGenerator(); + $this->schemaTypeGenerator = $schemaTypeGenerator ?: new SchemaTypeGenerator(); + } + + public function generate(?string $schemaSource, string $target): void + { + $this->targetDirectoryGuard->assertSafe($target); + + $schema = $this->schemaLoader->load($schemaSource); + $types = $this->typeIndexer->indexByName($schema['types'] ?? []); + + $this->directoryPreparer->prepare($target); + $this->rootOperationGenerator->generate($schema, $types, $target); + $this->schemaTypeGenerator->generate($types, $target); + } +} diff --git a/tools/GraphQLGenerator/RootOperationGenerator.php b/tools/GraphQLGenerator/RootOperationGenerator.php new file mode 100644 index 0000000..75837a6 --- /dev/null +++ b/tools/GraphQLGenerator/RootOperationGenerator.php @@ -0,0 +1,36 @@ +generateOperations( + $types[$schema['queryType']['name']] ?? [], + 'query', + $target . '/Queries', + 'Queries' + ); + $this->generateOperations( + $types[$schema['mutationType']['name']] ?? [], + 'mutation', + $target . '/Mutations', + 'Mutations' + ); + } + + private function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void + { + foreach ($rootType['fields'] ?? [] as $field) { + $className = safeClassName(studly($field['name']) . operationClassSuffix($operationType)); + + writeGeneratedClass($directory, $className, operationClassCode( + $namespacePart, + $className, + $operationType, + fieldCode($field) + )); + } + } +} diff --git a/tools/GraphQLGenerator/SchemaLoader.php b/tools/GraphQLGenerator/SchemaLoader.php new file mode 100644 index 0000000..38a5afe --- /dev/null +++ b/tools/GraphQLGenerator/SchemaLoader.php @@ -0,0 +1,40 @@ +loadFromFile($schemaSource) : $this->fetch(THOTH_GRAPHQL_ENDPOINT); + + if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { + fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); + exit(1); + } + + return $response['data']['__schema']; + } + + private function loadFromFile(string $schemaPath): array + { + $schema = json_decode((string) file_get_contents($schemaPath), true); + + return is_array($schema) ? $schema : []; + } + + private function fetch(string $endpoint): array + { + $payload = json_encode(['query' => introspectionQuery()]); + $context = stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'header' => "Content-Type: application/json\r\n", + 'content' => $payload, + ], + ]); + $schema = json_decode((string) file_get_contents($endpoint, false, $context), true); + + return is_array($schema) ? $schema : []; + } +} diff --git a/tools/GraphQLGenerator/SchemaTypeGenerator.php b/tools/GraphQLGenerator/SchemaTypeGenerator.php new file mode 100644 index 0000000..57f8efb --- /dev/null +++ b/tools/GraphQLGenerator/SchemaTypeGenerator.php @@ -0,0 +1,40 @@ +isInternalType($type)) { + continue; + } + + $this->generateType($type, $target); + } + } + + private function isInternalType(array $type): bool + { + return isset($type['name']) && strpos($type['name'], '__') === 0; + } + + private function generateType(array $type, string $target): void + { + switch ($type['kind'] ?? '') { + case 'OBJECT': + generateObjectType($type, $target . '/Schemas', 'Schemas'); + return; + case 'INPUT_OBJECT': + generateInputType($type, $target . '/Inputs', 'Inputs'); + return; + case 'ENUM': + generateEnumType($type, $target . '/Enums', 'Enums'); + return; + case 'SCALAR': + generateScalarType($type, $target . '/Scalars', 'Scalars'); + return; + } + } +} diff --git a/tools/GraphQLGenerator/TargetDirectoryGuard.php b/tools/GraphQLGenerator/TargetDirectoryGuard.php new file mode 100644 index 0000000..fe3eef8 --- /dev/null +++ b/tools/GraphQLGenerator/TargetDirectoryGuard.php @@ -0,0 +1,14 @@ +generate($argv[1] ?? null, $target); } - -final class GraphQLClientGenerator -{ - private SchemaLoader $schemaLoader; - - private TypeIndexer $typeIndexer; - - private TargetDirectoryGuard $targetDirectoryGuard; - - private GeneratedDirectoryPreparer $directoryPreparer; - - private RootOperationGenerator $rootOperationGenerator; - - private SchemaTypeGenerator $schemaTypeGenerator; - - public function __construct( - ?SchemaLoader $schemaLoader = null, - ?TypeIndexer $typeIndexer = null, - ?TargetDirectoryGuard $targetDirectoryGuard = null, - ?GeneratedDirectoryPreparer $directoryPreparer = null, - ?RootOperationGenerator $rootOperationGenerator = null, - ?SchemaTypeGenerator $schemaTypeGenerator = null - ) { - $this->schemaLoader = $schemaLoader ?: new SchemaLoader(); - $this->typeIndexer = $typeIndexer ?: new TypeIndexer(); - $this->targetDirectoryGuard = $targetDirectoryGuard ?: new TargetDirectoryGuard(); - $this->directoryPreparer = $directoryPreparer ?: new GeneratedDirectoryPreparer(); - $this->rootOperationGenerator = $rootOperationGenerator ?: new RootOperationGenerator(); - $this->schemaTypeGenerator = $schemaTypeGenerator ?: new SchemaTypeGenerator(); - } - - public function generate(?string $schemaSource, string $target): void - { - $this->targetDirectoryGuard->assertSafe($target); - - $schema = $this->schemaLoader->load($schemaSource); - $types = $this->typeIndexer->indexByName($schema['types'] ?? []); - - $this->directoryPreparer->prepare($target); - $this->rootOperationGenerator->generate($schema, $types, $target); - $this->schemaTypeGenerator->generate($types, $target); - } -} - -final class TargetDirectoryGuard -{ - public function assertSafe(string $target): void - { - if (basename($target) !== 'GraphQL') { - fwrite(STDERR, "Refusing to generate GraphQL client outside a GraphQL target directory.\n"); - exit(1); - } - } -} - -final class SchemaLoader -{ - public function load(?string $schemaSource): array - { - $response = $schemaSource ? $this->loadFromFile($schemaSource) : $this->fetch(THOTH_GRAPHQL_ENDPOINT); - - if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { - fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); - exit(1); - } - - return $response['data']['__schema']; - } - - private function loadFromFile(string $schemaPath): array - { - $schema = json_decode((string) file_get_contents($schemaPath), true); - - return is_array($schema) ? $schema : []; - } - - private function fetch(string $endpoint): array - { - $payload = json_encode(['query' => introspectionQuery()]); - $context = stream_context_create([ - 'http' => [ - 'method' => 'POST', - 'header' => "Content-Type: application/json\r\n", - 'content' => $payload, - ], - ]); - $schema = json_decode((string) file_get_contents($endpoint, false, $context), true); - - return is_array($schema) ? $schema : []; - } -} - -final class TypeIndexer -{ - public function indexByName(array $schemaTypes): array - { - $types = []; - - foreach ($schemaTypes as $type) { - if (isset($type['name'])) { - $types[$type['name']] = $type; - } - } - - return $types; - } -} - -final class GeneratedDirectoryPreparer -{ - public function prepare(string $target): void - { - foreach (GENERATED_DIRECTORIES as $directory) { - $this->removeDirectory($target . '/' . $directory); - mkdir($target . '/' . $directory, 0777, true); - } - } - - private function removeDirectory(string $directory): void - { - if (!is_dir($directory)) { - return; - } - - $iterator = new RecursiveIteratorIterator( - new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS), - RecursiveIteratorIterator::CHILD_FIRST - ); - - foreach ($iterator as $file) { - if ($file->isDir()) { - rmdir($file->getPathname()); - } else { - unlink($file->getPathname()); - } - } - - rmdir($directory); - } -} - -final class RootOperationGenerator -{ - public function generate(array $schema, array $types, string $target): void - { - $this->generateOperations( - $types[$schema['queryType']['name']] ?? [], - 'query', - $target . '/Queries', - 'Queries' - ); - $this->generateOperations( - $types[$schema['mutationType']['name']] ?? [], - 'mutation', - $target . '/Mutations', - 'Mutations' - ); - } - - private function generateOperations(array $rootType, string $operationType, string $directory, string $namespacePart): void - { - foreach ($rootType['fields'] ?? [] as $field) { - $className = safeClassName(studly($field['name']) . operationClassSuffix($operationType)); - - writeGeneratedClass($directory, $className, operationClassCode( - $namespacePart, - $className, - $operationType, - fieldCode($field) - )); - } - } -} - -final class SchemaTypeGenerator -{ - public function generate(array $types, string $target): void - { - foreach ($types as $type) { - if ($this->isInternalType($type)) { - continue; - } - - $this->generateType($type, $target); - } - } - - private function isInternalType(array $type): bool - { - return isset($type['name']) && strpos($type['name'], '__') === 0; - } - - private function generateType(array $type, string $target): void - { - switch ($type['kind'] ?? '') { - case 'OBJECT': - generateObjectType($type, $target . '/Schemas', 'Schemas'); - return; - case 'INPUT_OBJECT': - generateInputType($type, $target . '/Inputs', 'Inputs'); - return; - case 'ENUM': - generateEnumType($type, $target . '/Enums', 'Enums'); - return; - case 'SCALAR': - generateScalarType($type, $target . '/Scalars', 'Scalars'); - return; - } - } -} - -function introspectionQuery(): string -{ - return 'query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }'; -} - -function operationClassSuffix(string $operationType): string -{ - return $operationType === 'query' ? 'Query' : 'Mutation'; -} - -function operationClassCode(string $namespacePart, string $className, string $operationType, string $fieldCode): string -{ - return <<get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } -PHP; -} - -function generateInputType(array $type, string $directory, string $namespacePart): void -{ - $className = safeClassName(studly($type['name'])); - - writeGeneratedClass($directory, $className, inputClassCode( - $namespacePart, - $className, - $type['name'], - inputFieldMethodsCode($type['inputFields'] ?? []), - argumentDefinitionListCode($type['inputFields'] ?? [], 3) - )); -} - -function inputClassCode( - string $namespacePart, - string $className, - string $typeName, - string $methodsCode, - string $fieldsCode -): string { - return <<get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } -PHP; -} - -function generateEnumType(array $type, string $directory, string $namespacePart): void -{ - $className = safeClassName(studly($type['name'])); - $values = enumValueNames($type['enumValues'] ?? []); - - writeGeneratedClass($directory, $className, enumClassCode( - $namespacePart, - $className, - $type['name'], - enumConstantsCode($values), - exportPhpValue($values, 2) - )); -} - -function enumValueNames(array $enumValues): array -{ - return array_map( - static function (array $value): string { - return $value['name']; - }, - $enumValues - ); -} - -function enumConstantsCode(array $values): string -{ - return implode("\n", array_map( - static function (string $value): string { - return ' public const ' . sanitizeConstant($value) . ' = ' . exportPhpValue($value) . ';'; - }, - $values - )); -} - -function enumClassCode( - string $namespacePart, - string $className, - string $typeName, - string $constantsCode, - string $valuesCode -): string { - return << $childValue) { - $prefix = $isList ? '' : exportPhpValue($key, 0) . ' => '; - $lines[] = $childIndent . $prefix . exportPhpValue($childValue, $level + 1) . ','; - } - - $lines[] = $indent . ']'; - return implode("\n", $lines); -} - -function isSequentialArray(array $value): bool -{ - $expected = 0; - - foreach ($value as $key => $_) { - if ($key !== $expected) { - return false; - } - - $expected++; - } - - return true; -} - -function studly(string $value): string -{ - $value = preg_replace('/[^A-Za-z0-9]+/', ' ', $value); - $value = preg_replace('/(? Date: Tue, 16 Jun 2026 15:31:55 -0400 Subject: [PATCH 31/40] refactor(graphql): report generator failures with exceptions --- tests/GraphQL/GeneratorTest.php | 13 +++++++++++++ tools/GraphQLGenerator/GeneratorException.php | 7 +++++++ tools/GraphQLGenerator/SchemaLoader.php | 3 +-- tools/GraphQLGenerator/TargetDirectoryGuard.php | 3 +-- tools/GraphQLGenerator/bootstrap.php | 1 + tools/generate-graphql-client.php | 7 ++++++- 6 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 tools/GraphQLGenerator/GeneratorException.php diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index dc5e8ec..7696d20 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -69,6 +69,19 @@ public function testGeneratorEntrypointLoadsSeparateComponents(): void $this->assertStringNotContainsString('final class GraphQLClientGenerator', $script); } + public function testGeneratorEntrypointHandlesComponentExceptions(): void + { + $projectRoot = dirname(__DIR__, 2); + $script = file_get_contents($projectRoot . '/tools/generate-graphql-client.php'); + $guard = file_get_contents($projectRoot . '/tools/GraphQLGenerator/TargetDirectoryGuard.php'); + $loader = file_get_contents($projectRoot . '/tools/GraphQLGenerator/SchemaLoader.php'); + + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/GeneratorException.php'); + $this->assertStringContainsString('catch (GeneratorException $exception)', $script); + $this->assertStringNotContainsString('exit(1)', $guard); + $this->assertStringNotContainsString('exit(1)', $loader); + } + private function removeDirectory(string $directory): void { if (!is_dir($directory)) { diff --git a/tools/GraphQLGenerator/GeneratorException.php b/tools/GraphQLGenerator/GeneratorException.php new file mode 100644 index 0000000..e267f87 --- /dev/null +++ b/tools/GraphQLGenerator/GeneratorException.php @@ -0,0 +1,7 @@ +loadFromFile($schemaSource) : $this->fetch(THOTH_GRAPHQL_ENDPOINT); if (!isset($response['data']['__schema']) || !is_array($response['data']['__schema'])) { - fwrite(STDERR, "Invalid GraphQL introspection schema.\n"); - exit(1); + throw new GeneratorException('Invalid GraphQL introspection schema.'); } return $response['data']['__schema']; diff --git a/tools/GraphQLGenerator/TargetDirectoryGuard.php b/tools/GraphQLGenerator/TargetDirectoryGuard.php index fe3eef8..653921f 100644 --- a/tools/GraphQLGenerator/TargetDirectoryGuard.php +++ b/tools/GraphQLGenerator/TargetDirectoryGuard.php @@ -7,8 +7,7 @@ final class TargetDirectoryGuard public function assertSafe(string $target): void { if (basename($target) !== 'GraphQL') { - fwrite(STDERR, "Refusing to generate GraphQL client outside a GraphQL target directory.\n"); - exit(1); + throw new GeneratorException('Refusing to generate GraphQL client outside a GraphQL target directory.'); } } } diff --git a/tools/GraphQLGenerator/bootstrap.php b/tools/GraphQLGenerator/bootstrap.php index 6129b77..5a177f3 100644 --- a/tools/GraphQLGenerator/bootstrap.php +++ b/tools/GraphQLGenerator/bootstrap.php @@ -5,6 +5,7 @@ const THOTH_GRAPHQL_ENDPOINT = 'https://api.thoth.pub/graphql'; const GENERATED_DIRECTORIES = ['Queries', 'Mutations', 'Schemas', 'Inputs', 'Enums', 'Scalars']; +require_once __DIR__ . '/GeneratorException.php'; require_once __DIR__ . '/CodeGeneration.php'; require_once __DIR__ . '/GeneratedDirectoryPreparer.php'; require_once __DIR__ . '/RootOperationGenerator.php'; diff --git a/tools/generate-graphql-client.php b/tools/generate-graphql-client.php index 2cb7deb..492bc9e 100644 --- a/tools/generate-graphql-client.php +++ b/tools/generate-graphql-client.php @@ -10,5 +10,10 @@ function main(array $argv): void { $target = $argv[2] ?? dirname(__DIR__) . '/src/GraphQL'; - (new GraphQLClientGenerator())->generate($argv[1] ?? null, $target); + try { + (new GraphQLClientGenerator())->generate($argv[1] ?? null, $target); + } catch (GeneratorException $exception) { + fwrite(STDERR, $exception->getMessage() . "\n"); + exit(1); + } } From d5acf7652426f30a7b9c06ac634aa1d7baab2520 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 15:32:54 -0400 Subject: [PATCH 32/40] fix(graphql): report schema loading failures clearly --- tests/GraphQL/GeneratorTest.php | 36 +++++++++++++++++++++++++ tools/GraphQLGenerator/SchemaLoader.php | 16 ++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index 7696d20..60fc963 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -59,6 +59,42 @@ public function testItRejectsUnsafeTargets(): void $this->assertDirectoryDoesNotExist($target . '/Queries'); } + public function testItReportsMissingSchemaFile(): void + { + $this->temporaryDirectory = sys_get_temp_dir() . '/thoth-graphql-generator-' . uniqid('', true); + $target = $this->temporaryDirectory . '/GraphQL'; + mkdir($target, 0777, true); + + $schema = $this->temporaryDirectory . '/missing-schema.json'; + $script = dirname(__DIR__, 2) . '/tools/generate-graphql-client.php'; + $command = PHP_BINARY . ' ' . escapeshellarg($script) . ' ' . escapeshellarg($schema) . ' ' + . escapeshellarg($target) . ' 2>&1'; + + exec($command, $output, $exitCode); + + $this->assertSame(1, $exitCode); + $this->assertSame('Unable to read GraphQL introspection schema file: ' . $schema, $output[0]); + } + + public function testItReportsInvalidSchemaJson(): void + { + $this->temporaryDirectory = sys_get_temp_dir() . '/thoth-graphql-generator-' . uniqid('', true); + $target = $this->temporaryDirectory . '/GraphQL'; + mkdir($target, 0777, true); + + $schema = $this->temporaryDirectory . '/invalid-schema.json'; + file_put_contents($schema, '{invalid json'); + + $script = dirname(__DIR__, 2) . '/tools/generate-graphql-client.php'; + $command = PHP_BINARY . ' ' . escapeshellarg($script) . ' ' . escapeshellarg($schema) . ' ' + . escapeshellarg($target) . ' 2>&1'; + + exec($command, $output, $exitCode); + + $this->assertSame(1, $exitCode); + $this->assertSame('Invalid GraphQL introspection schema JSON: Syntax error', $output[0]); + } + public function testGeneratorEntrypointLoadsSeparateComponents(): void { $projectRoot = dirname(__DIR__, 2); diff --git a/tools/GraphQLGenerator/SchemaLoader.php b/tools/GraphQLGenerator/SchemaLoader.php index 438cff0..cecc6fe 100644 --- a/tools/GraphQLGenerator/SchemaLoader.php +++ b/tools/GraphQLGenerator/SchemaLoader.php @@ -17,7 +17,21 @@ public function load(?string $schemaSource): array private function loadFromFile(string $schemaPath): array { - $schema = json_decode((string) file_get_contents($schemaPath), true); + if (!is_file($schemaPath) || !is_readable($schemaPath)) { + throw new GeneratorException('Unable to read GraphQL introspection schema file: ' . $schemaPath); + } + + $contents = file_get_contents($schemaPath); + + if ($contents === false) { + throw new GeneratorException('Unable to read GraphQL introspection schema file: ' . $schemaPath); + } + + $schema = json_decode($contents, true); + + if (json_last_error() !== JSON_ERROR_NONE) { + throw new GeneratorException('Invalid GraphQL introspection schema JSON: ' . json_last_error_msg()); + } return is_array($schema) ? $schema : []; } From 9693bebb8fe6e5402241e20aa8e355c1538f4fc8 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 15:35:48 -0400 Subject: [PATCH 33/40] refactor(graphql): extract generated type class builders --- tests/GraphQL/GeneratorTest.php | 15 + tools/GraphQLGenerator/ClassFileWriter.php | 11 + tools/GraphQLGenerator/CodeGeneration.php | 266 ------------------ .../GraphQLGenerator/EnumTypeClassBuilder.php | 76 +++++ .../InputTypeClassBuilder.php | 91 ++++++ .../ObjectTypeClassBuilder.php | 91 ++++++ .../RootOperationGenerator.php | 9 +- .../ScalarTypeClassBuilder.php | 40 +++ .../GraphQLGenerator/SchemaTypeGenerator.php | 41 ++- tools/GraphQLGenerator/TypeClassBuilder.php | 10 + tools/GraphQLGenerator/bootstrap.php | 6 + 11 files changed, 385 insertions(+), 271 deletions(-) create mode 100644 tools/GraphQLGenerator/ClassFileWriter.php create mode 100644 tools/GraphQLGenerator/EnumTypeClassBuilder.php create mode 100644 tools/GraphQLGenerator/InputTypeClassBuilder.php create mode 100644 tools/GraphQLGenerator/ObjectTypeClassBuilder.php create mode 100644 tools/GraphQLGenerator/ScalarTypeClassBuilder.php create mode 100644 tools/GraphQLGenerator/TypeClassBuilder.php diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index 60fc963..a934107 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -118,6 +118,21 @@ public function testGeneratorEntrypointHandlesComponentExceptions(): void $this->assertStringNotContainsString('exit(1)', $loader); } + public function testSchemaTypeGenerationUsesDedicatedBuilders(): void + { + $projectRoot = dirname(__DIR__, 2); + $schemaTypeGenerator = file_get_contents($projectRoot . '/tools/GraphQLGenerator/SchemaTypeGenerator.php'); + $codeGeneration = file_get_contents($projectRoot . '/tools/GraphQLGenerator/CodeGeneration.php'); + + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/ObjectTypeClassBuilder.php'); + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/InputTypeClassBuilder.php'); + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/EnumTypeClassBuilder.php'); + $this->assertFileExists($projectRoot . '/tools/GraphQLGenerator/ScalarTypeClassBuilder.php'); + $this->assertStringContainsString('private ObjectTypeClassBuilder $objectTypeBuilder;', $schemaTypeGenerator); + $this->assertStringNotContainsString('function generateObjectType', $codeGeneration); + $this->assertStringNotContainsString('function generateInputType', $codeGeneration); + } + private function removeDirectory(string $directory): void { if (!is_dir($directory)) { diff --git a/tools/GraphQLGenerator/ClassFileWriter.php b/tools/GraphQLGenerator/ClassFileWriter.php new file mode 100644 index 0000000..7260290 --- /dev/null +++ b/tools/GraphQLGenerator/ClassFileWriter.php @@ -0,0 +1,11 @@ +get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } -PHP; -} - -function generateInputType(array $type, string $directory, string $namespacePart): void -{ - $className = safeClassName(studly($type['name'])); - - writeGeneratedClass($directory, $className, inputClassCode( - $namespacePart, - $className, - $type['name'], - inputFieldMethodsCode($type['inputFields'] ?? []), - argumentDefinitionListCode($type['inputFields'] ?? [], 3) - )); -} - -function inputClassCode( - string $namespacePart, - string $className, - string $typeName, - string $methodsCode, - string $fieldsCode -): string { - return <<get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } -PHP; -} - -function generateEnumType(array $type, string $directory, string $namespacePart): void -{ - $className = safeClassName(studly($type['name'])); - $values = enumValueNames($type['enumValues'] ?? []); - - writeGeneratedClass($directory, $className, enumClassCode( - $namespacePart, - $className, - $type['name'], - enumConstantsCode($values), - exportPhpValue($values, 2) - )); -} - -function enumValueNames(array $enumValues): array -{ - return array_map( - static function (array $value): string { - return $value['name']; - }, - $enumValues - ); -} - -function enumConstantsCode(array $values): string -{ - return implode("\n", array_map( - static function (string $value): string { - return ' public const ' . sanitizeConstant($value) . ' = ' . exportPhpValue($value) . ';'; - }, - $values - )); -} - -function enumClassCode( - string $namespacePart, - string $className, - string $typeName, - string $constantsCode, - string $valuesCode -): string { - return <<valueNames($type['enumValues'] ?? []); + + return $this->classCode( + $namespacePart, + $this->className($type), + $type['name'], + $this->constantsCode($values), + exportPhpValue($values, 2) + ); + } + + private function valueNames(array $enumValues): array + { + return array_map( + static function (array $value): string { + return $value['name']; + }, + $enumValues + ); + } + + private function constantsCode(array $values): string + { + return implode("\n", array_map( + static function (string $value): string { + return ' public const ' . sanitizeConstant($value) . ' = ' . exportPhpValue($value) . ';'; + }, + $values + )); + } + + private function classCode( + string $namespacePart, + string $className, + string $typeName, + string $constantsCode, + string $valuesCode + ): string { + return <<classCode( + $namespacePart, + $this->className($type), + $type['name'], + $this->fieldMethodsCode($type['inputFields'] ?? []), + argumentDefinitionListCode($type['inputFields'] ?? [], 3) + ); + } + + private function classCode( + string $namespacePart, + string $className, + string $typeName, + string $methodsCode, + string $fieldsCode + ): string { + return <<get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; + } +} diff --git a/tools/GraphQLGenerator/ObjectTypeClassBuilder.php b/tools/GraphQLGenerator/ObjectTypeClassBuilder.php new file mode 100644 index 0000000..999284a --- /dev/null +++ b/tools/GraphQLGenerator/ObjectTypeClassBuilder.php @@ -0,0 +1,91 @@ +classCode( + $namespacePart, + $this->className($type), + $type['name'], + $this->fieldMethodsCode($type['fields'] ?? []), + fieldDefinitionListCode($type['fields'] ?? [], 3) + ); + } + + private function classCode( + string $namespacePart, + string $className, + string $typeName, + string $methodsCode, + string $fieldsCode + ): string { + return <<get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; + } +} diff --git a/tools/GraphQLGenerator/RootOperationGenerator.php b/tools/GraphQLGenerator/RootOperationGenerator.php index 75837a6..7390001 100644 --- a/tools/GraphQLGenerator/RootOperationGenerator.php +++ b/tools/GraphQLGenerator/RootOperationGenerator.php @@ -4,6 +4,13 @@ final class RootOperationGenerator { + private ClassFileWriter $classFileWriter; + + public function __construct(?ClassFileWriter $classFileWriter = null) + { + $this->classFileWriter = $classFileWriter ?: new ClassFileWriter(); + } + public function generate(array $schema, array $types, string $target): void { $this->generateOperations( @@ -25,7 +32,7 @@ private function generateOperations(array $rootType, string $operationType, stri foreach ($rootType['fields'] ?? [] as $field) { $className = safeClassName(studly($field['name']) . operationClassSuffix($operationType)); - writeGeneratedClass($directory, $className, operationClassCode( + $this->classFileWriter->write($directory, $className, operationClassCode( $namespacePart, $className, $operationType, diff --git a/tools/GraphQLGenerator/ScalarTypeClassBuilder.php b/tools/GraphQLGenerator/ScalarTypeClassBuilder.php new file mode 100644 index 0000000..181fed4 --- /dev/null +++ b/tools/GraphQLGenerator/ScalarTypeClassBuilder.php @@ -0,0 +1,40 @@ +classCode( + $namespacePart, + $this->className($type), + $type['name'], + exportPhpValue($type['description'] ?? null, 2) + ); + } + + private function classCode(string $namespacePart, string $className, string $typeName, string $description): string + { + return <<classFileWriter = $classFileWriter ?: new ClassFileWriter(); + $this->objectTypeBuilder = $objectTypeBuilder ?: new ObjectTypeClassBuilder(); + $this->inputTypeBuilder = $inputTypeBuilder ?: new InputTypeClassBuilder(); + $this->enumTypeBuilder = $enumTypeBuilder ?: new EnumTypeClassBuilder(); + $this->scalarTypeBuilder = $scalarTypeBuilder ?: new ScalarTypeClassBuilder(); + } + public function generate(array $types, string $target): void { foreach ($types as $type) { @@ -24,17 +48,26 @@ private function generateType(array $type, string $target): void { switch ($type['kind'] ?? '') { case 'OBJECT': - generateObjectType($type, $target . '/Schemas', 'Schemas'); + $this->writeClass($this->objectTypeBuilder, $type, $target . '/Schemas', 'Schemas'); return; case 'INPUT_OBJECT': - generateInputType($type, $target . '/Inputs', 'Inputs'); + $this->writeClass($this->inputTypeBuilder, $type, $target . '/Inputs', 'Inputs'); return; case 'ENUM': - generateEnumType($type, $target . '/Enums', 'Enums'); + $this->writeClass($this->enumTypeBuilder, $type, $target . '/Enums', 'Enums'); return; case 'SCALAR': - generateScalarType($type, $target . '/Scalars', 'Scalars'); + $this->writeClass($this->scalarTypeBuilder, $type, $target . '/Scalars', 'Scalars'); return; } } + + private function writeClass(TypeClassBuilder $builder, array $type, string $directory, string $namespacePart): void + { + $this->classFileWriter->write( + $directory, + $builder->className($type), + $builder->code($type, $namespacePart) + ); + } } diff --git a/tools/GraphQLGenerator/TypeClassBuilder.php b/tools/GraphQLGenerator/TypeClassBuilder.php new file mode 100644 index 0000000..719669c --- /dev/null +++ b/tools/GraphQLGenerator/TypeClassBuilder.php @@ -0,0 +1,10 @@ + Date: Tue, 16 Jun 2026 15:38:02 -0400 Subject: [PATCH 34/40] refactor(graphql): share generated accessor method builder --- .../AccessorMethodsBuilder.php | 46 +++++++++++++++++ .../InputTypeClassBuilder.php | 49 +++---------------- .../ObjectTypeClassBuilder.php | 49 +++---------------- tools/GraphQLGenerator/bootstrap.php | 1 + 4 files changed, 63 insertions(+), 82 deletions(-) create mode 100644 tools/GraphQLGenerator/AccessorMethodsBuilder.php diff --git a/tools/GraphQLGenerator/AccessorMethodsBuilder.php b/tools/GraphQLGenerator/AccessorMethodsBuilder.php new file mode 100644 index 0000000..5c22e3a --- /dev/null +++ b/tools/GraphQLGenerator/AccessorMethodsBuilder.php @@ -0,0 +1,46 @@ +get({$fieldName}); + } + + /** + * @param {$phpDocType} \$value + */ + public function set{$methodName}(\$value): self + { + return \$this->set({$fieldName}, \$value); + } + + public function has{$methodName}(): bool + { + return \$this->has({$fieldName}); + } + + public function unset{$methodName}(): self + { + return \$this->remove({$fieldName}); + } +PHP; + } +} diff --git a/tools/GraphQLGenerator/InputTypeClassBuilder.php b/tools/GraphQLGenerator/InputTypeClassBuilder.php index f57a5b4..09e0d7d 100644 --- a/tools/GraphQLGenerator/InputTypeClassBuilder.php +++ b/tools/GraphQLGenerator/InputTypeClassBuilder.php @@ -4,6 +4,13 @@ final class InputTypeClassBuilder implements TypeClassBuilder { + private AccessorMethodsBuilder $accessorMethodsBuilder; + + public function __construct(?AccessorMethodsBuilder $accessorMethodsBuilder = null) + { + $this->accessorMethodsBuilder = $accessorMethodsBuilder ?: new AccessorMethodsBuilder(); + } + public function className(array $type): string { return safeClassName(studly($type['name'])); @@ -15,7 +22,7 @@ public function code(array $type, string $namespacePart): string $namespacePart, $this->className($type), $type['name'], - $this->fieldMethodsCode($type['inputFields'] ?? []), + $this->accessorMethodsBuilder->code($type['inputFields'] ?? []), argumentDefinitionListCode($type['inputFields'] ?? [], 3) ); } @@ -46,46 +53,6 @@ public static function definition(): InputObjectTypeDefinition ]); } } -PHP; - } - - private function fieldMethodsCode(array $fields): string - { - return implode("\n\n", array_map([$this, 'fieldMethods'], $fields)); - } - - private function fieldMethods(array $field): string - { - $methodName = studly($field['name']); - $fieldName = exportPhpValue($field['name']); - $phpDocType = phpDocType($field['type']); - - return <<get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } PHP; } } diff --git a/tools/GraphQLGenerator/ObjectTypeClassBuilder.php b/tools/GraphQLGenerator/ObjectTypeClassBuilder.php index 999284a..fbd8a99 100644 --- a/tools/GraphQLGenerator/ObjectTypeClassBuilder.php +++ b/tools/GraphQLGenerator/ObjectTypeClassBuilder.php @@ -4,6 +4,13 @@ final class ObjectTypeClassBuilder implements TypeClassBuilder { + private AccessorMethodsBuilder $accessorMethodsBuilder; + + public function __construct(?AccessorMethodsBuilder $accessorMethodsBuilder = null) + { + $this->accessorMethodsBuilder = $accessorMethodsBuilder ?: new AccessorMethodsBuilder(); + } + public function className(array $type): string { return safeClassName(studly($type['name'])); @@ -15,7 +22,7 @@ public function code(array $type, string $namespacePart): string $namespacePart, $this->className($type), $type['name'], - $this->fieldMethodsCode($type['fields'] ?? []), + $this->accessorMethodsBuilder->code($type['fields'] ?? []), fieldDefinitionListCode($type['fields'] ?? [], 3) ); } @@ -46,46 +53,6 @@ public static function definition(): ObjectTypeDefinition ]); } } -PHP; - } - - private function fieldMethodsCode(array $fields): string - { - return implode("\n\n", array_map([$this, 'fieldMethods'], $fields)); - } - - private function fieldMethods(array $field): string - { - $methodName = studly($field['name']); - $fieldName = exportPhpValue($field['name']); - $phpDocType = phpDocType($field['type']); - - return <<get({$fieldName}); - } - - /** - * @param {$phpDocType} \$value - */ - public function set{$methodName}(\$value): self - { - return \$this->set({$fieldName}, \$value); - } - - public function has{$methodName}(): bool - { - return \$this->has({$fieldName}); - } - - public function unset{$methodName}(): self - { - return \$this->remove({$fieldName}); - } PHP; } } diff --git a/tools/GraphQLGenerator/bootstrap.php b/tools/GraphQLGenerator/bootstrap.php index 2192951..a770850 100644 --- a/tools/GraphQLGenerator/bootstrap.php +++ b/tools/GraphQLGenerator/bootstrap.php @@ -7,6 +7,7 @@ require_once __DIR__ . '/GeneratorException.php'; require_once __DIR__ . '/CodeGeneration.php'; +require_once __DIR__ . '/AccessorMethodsBuilder.php'; require_once __DIR__ . '/ClassFileWriter.php'; require_once __DIR__ . '/TypeClassBuilder.php'; require_once __DIR__ . '/EnumTypeClassBuilder.php'; From fe071b01415211b299fb6b91966d508a70c1fc36 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 15:43:14 -0400 Subject: [PATCH 35/40] chore: add PHPStan analysis --- .gitignore | 3 +- composer.json | 4 +- composer.lock | 66 ++- phpstan.neon | 6 + src/GraphQL/Inputs/AbstractOrderBy.php | 12 +- .../Inputs/AdditionalResourceOrderBy.php | 12 +- src/GraphQL/Inputs/AffiliationOrderBy.php | 12 +- src/GraphQL/Inputs/AwardOrderBy.php | 12 +- src/GraphQL/Inputs/BiographyOrderBy.php | 12 +- src/GraphQL/Inputs/BookReviewOrderBy.php | 12 +- src/GraphQL/Inputs/CompleteFileUpload.php | 6 +- src/GraphQL/Inputs/ContactOrderBy.php | 12 +- src/GraphQL/Inputs/ContributionOrderBy.php | 12 +- src/GraphQL/Inputs/ContributorOrderBy.php | 12 +- src/GraphQL/Inputs/EndorsementOrderBy.php | 12 +- src/GraphQL/Inputs/FundingOrderBy.php | 12 +- src/GraphQL/Inputs/ImprintOrderBy.php | 12 +- src/GraphQL/Inputs/InstitutionOrderBy.php | 12 +- src/GraphQL/Inputs/IssueOrderBy.php | 12 +- src/GraphQL/Inputs/LanguageOrderBy.php | 12 +- src/GraphQL/Inputs/LocationOrderBy.php | 12 +- src/GraphQL/Inputs/NewAbstract.php | 30 +- src/GraphQL/Inputs/NewAdditionalResource.php | 60 +- .../NewAdditionalResourceFileUpload.php | 24 +- src/GraphQL/Inputs/NewAffiliation.php | 24 +- src/GraphQL/Inputs/NewAward.php | 60 +- src/GraphQL/Inputs/NewBiography.php | 24 +- src/GraphQL/Inputs/NewBookReview.php | 90 ++- src/GraphQL/Inputs/NewContact.php | 18 +- src/GraphQL/Inputs/NewContribution.php | 48 +- src/GraphQL/Inputs/NewContributor.php | 30 +- src/GraphQL/Inputs/NewEndorsement.php | 48 +- .../Inputs/NewFrontcoverFileUpload.php | 24 +- src/GraphQL/Inputs/NewFunding.php | 36 +- src/GraphQL/Inputs/NewImprint.php | 60 +- src/GraphQL/Inputs/NewInstitution.php | 24 +- src/GraphQL/Inputs/NewIssue.php | 24 +- src/GraphQL/Inputs/NewLanguage.php | 18 +- src/GraphQL/Inputs/NewLocation.php | 42 +- src/GraphQL/Inputs/NewPrice.php | 18 +- src/GraphQL/Inputs/NewPublication.php | 90 ++- .../Inputs/NewPublicationFileUpload.php | 24 +- src/GraphQL/Inputs/NewPublisher.php | 36 +- src/GraphQL/Inputs/NewReference.php | 132 +++-- src/GraphQL/Inputs/NewSeries.php | 48 +- src/GraphQL/Inputs/NewSubject.php | 24 +- src/GraphQL/Inputs/NewTitle.php | 36 +- src/GraphQL/Inputs/NewWork.php | 174 ++++-- src/GraphQL/Inputs/NewWorkFeaturedVideo.php | 30 +- .../Inputs/NewWorkFeaturedVideoFileUpload.php | 24 +- src/GraphQL/Inputs/NewWorkRelation.php | 24 +- src/GraphQL/Inputs/PatchAbstract.php | 36 +- .../Inputs/PatchAdditionalResource.php | 66 ++- src/GraphQL/Inputs/PatchAffiliation.php | 30 +- src/GraphQL/Inputs/PatchAward.php | 66 ++- src/GraphQL/Inputs/PatchBiography.php | 30 +- src/GraphQL/Inputs/PatchBookReview.php | 96 ++- src/GraphQL/Inputs/PatchContact.php | 24 +- src/GraphQL/Inputs/PatchContribution.php | 54 +- src/GraphQL/Inputs/PatchContributor.php | 36 +- src/GraphQL/Inputs/PatchEndorsement.php | 54 +- src/GraphQL/Inputs/PatchFunding.php | 42 +- src/GraphQL/Inputs/PatchImprint.php | 66 ++- src/GraphQL/Inputs/PatchInstitution.php | 30 +- src/GraphQL/Inputs/PatchIssue.php | 30 +- src/GraphQL/Inputs/PatchLanguage.php | 24 +- src/GraphQL/Inputs/PatchLocation.php | 48 +- src/GraphQL/Inputs/PatchPrice.php | 24 +- src/GraphQL/Inputs/PatchPublication.php | 96 ++- src/GraphQL/Inputs/PatchPublisher.php | 42 +- src/GraphQL/Inputs/PatchReference.php | 138 +++-- src/GraphQL/Inputs/PatchSeries.php | 54 +- src/GraphQL/Inputs/PatchSubject.php | 30 +- src/GraphQL/Inputs/PatchTitle.php | 42 +- src/GraphQL/Inputs/PatchWork.php | 180 ++++-- src/GraphQL/Inputs/PatchWorkFeaturedVideo.php | 36 +- src/GraphQL/Inputs/PatchWorkRelation.php | 30 +- src/GraphQL/Inputs/PriceOrderBy.php | 12 +- src/GraphQL/Inputs/PublicationOrderBy.php | 12 +- src/GraphQL/Inputs/PublisherOrderBy.php | 12 +- src/GraphQL/Inputs/ReferenceOrderBy.php | 12 +- src/GraphQL/Inputs/SeriesOrderBy.php | 12 +- src/GraphQL/Inputs/SubjectOrderBy.php | 12 +- src/GraphQL/Inputs/TimeExpression.php | 12 +- src/GraphQL/Inputs/TitleOrderBy.php | 12 +- .../Inputs/WorkFeaturedVideoOrderBy.php | 12 +- src/GraphQL/Inputs/WorkOrderBy.php | 12 +- src/GraphQL/Inputs/WorkRelationOrderBy.php | 12 +- src/GraphQL/ObjectData.php | 14 +- src/GraphQL/Schemas/Affiliation.php | 54 +- src/GraphQL/Schemas/Award.php | 84 ++- src/GraphQL/Schemas/Biography.php | 42 +- src/GraphQL/Schemas/BookReview.php | 120 ++-- src/GraphQL/Schemas/Contact.php | 42 +- src/GraphQL/Schemas/Contribution.php | 96 ++- src/GraphQL/Schemas/Contributor.php | 54 +- src/GraphQL/Schemas/Endorsement.php | 78 ++- src/GraphQL/Schemas/File.php | 78 ++- src/GraphQL/Schemas/FileUploadResponse.php | 24 +- src/GraphQL/Schemas/Funding.php | 66 ++- src/GraphQL/Schemas/GraphQLAbstract.php | 42 +- src/GraphQL/Schemas/Imprint.php | 90 ++- src/GraphQL/Schemas/Institution.php | 54 +- src/GraphQL/Schemas/Issue.php | 54 +- src/GraphQL/Schemas/Language.php | 42 +- src/GraphQL/Schemas/Location.php | 66 ++- src/GraphQL/Schemas/Me.php | 36 +- src/GraphQL/Schemas/MutationRoot.php | 558 ++++++++++++------ src/GraphQL/Schemas/Price.php | 42 +- src/GraphQL/Schemas/Publication.php | 108 ++-- src/GraphQL/Schemas/Publisher.php | 66 ++- src/GraphQL/Schemas/PublisherContext.php | 12 +- src/GraphQL/Schemas/PublisherPermissions.php | 18 +- src/GraphQL/Schemas/QueryRoot.php | 486 ++++++++++----- src/GraphQL/Schemas/Reference.php | 156 +++-- src/GraphQL/Schemas/Series.php | 78 ++- src/GraphQL/Schemas/Subject.php | 48 +- src/GraphQL/Schemas/Title.php | 48 +- src/GraphQL/Schemas/UploadRequestHeader.php | 12 +- src/GraphQL/Schemas/Work.php | 330 +++++++---- src/GraphQL/Schemas/WorkFeaturedVideo.php | 60 +- src/GraphQL/Schemas/WorkRelation.php | 48 +- src/GraphQL/Schemas/WorkResource.php | 90 ++- .../AccessorMethodsBuilder.php | 6 +- 124 files changed, 4330 insertions(+), 2129 deletions(-) create mode 100644 phpstan.neon diff --git a/.gitignore b/.gitignore index a4bb621..2b9cb1d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ -/.php-cs-fixer.cache \ No newline at end of file +/.php-cs-fixer.cache +/tmp/ diff --git a/composer.json b/composer.json index fffe987..1434b57 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,8 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "friendsofphp/php-cs-fixer": "^3.64" + "friendsofphp/php-cs-fixer": "^3.64", + "phpstan/phpstan": "^2.2" }, "license": "Apache-2.0", "autoload": { @@ -23,6 +24,7 @@ }, "scripts" : { "test": "vendor/bin/phpunit --colors --testdox tests/", + "analyse": "vendor/bin/phpstan analyse --debug --memory-limit=1G", "lint": "vendor/bin/php-cs-fixer fix -v --diff --allow-risky=yes --config=.php-cs-fixer.php", "generate-graphql-client": "php tools/generate-graphql-client.php" } diff --git a/composer.lock b/composer.lock index 4ae247e..25b04b3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5b40a8131540e685fa85043392b74191", + "content-hash": "9c9e89f2d9ce4b9dcac23cdd574deba4", "packages": [ { "name": "guzzlehttp/guzzle", @@ -1411,6 +1411,70 @@ }, "time": "2022-02-21T01:04:05+00:00" }, + { + "name": "phpstan/phpstan", + "version": "2.2.2", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e5cc34d491a90e79c216d824f60fe21fd4d93bd6", + "reference": "e5cc34d491a90e79c216d824f60fe21fd4d93bd6", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ondřej Mirtes" + }, + { + "name": "Markus Staab" + }, + { + "name": "Vincent Langlet" + } + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2026-06-05T09:00:01+00:00" + }, { "name": "phpunit/php-code-coverage", "version": "9.2.32", diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..2c6bf2f --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,6 @@ +parameters: + level: 5 + paths: + - src + - tools + tmpDir: tmp/phpstan diff --git a/src/GraphQL/Inputs/AbstractOrderBy.php b/src/GraphQL/Inputs/AbstractOrderBy.php index 3bbb1b4..2dc4765 100644 --- a/src/GraphQL/Inputs/AbstractOrderBy.php +++ b/src/GraphQL/Inputs/AbstractOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/AdditionalResourceOrderBy.php b/src/GraphQL/Inputs/AdditionalResourceOrderBy.php index 1fec28a..9e9a808 100644 --- a/src/GraphQL/Inputs/AdditionalResourceOrderBy.php +++ b/src/GraphQL/Inputs/AdditionalResourceOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/AffiliationOrderBy.php b/src/GraphQL/Inputs/AffiliationOrderBy.php index fc27438..428933d 100644 --- a/src/GraphQL/Inputs/AffiliationOrderBy.php +++ b/src/GraphQL/Inputs/AffiliationOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/AwardOrderBy.php b/src/GraphQL/Inputs/AwardOrderBy.php index 65b5ec4..a42facc 100644 --- a/src/GraphQL/Inputs/AwardOrderBy.php +++ b/src/GraphQL/Inputs/AwardOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/BiographyOrderBy.php b/src/GraphQL/Inputs/BiographyOrderBy.php index 7bf37ac..1b9573a 100644 --- a/src/GraphQL/Inputs/BiographyOrderBy.php +++ b/src/GraphQL/Inputs/BiographyOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/BookReviewOrderBy.php b/src/GraphQL/Inputs/BookReviewOrderBy.php index c6a821f..a3ff507 100644 --- a/src/GraphQL/Inputs/BookReviewOrderBy.php +++ b/src/GraphQL/Inputs/BookReviewOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/CompleteFileUpload.php b/src/GraphQL/Inputs/CompleteFileUpload.php index 9c4de73..8cdbf93 100644 --- a/src/GraphQL/Inputs/CompleteFileUpload.php +++ b/src/GraphQL/Inputs/CompleteFileUpload.php @@ -20,7 +20,8 @@ public function getFileUploadId() */ public function setFileUploadId($value): self { - return $this->set('fileUploadId', $value); + $this->set('fileUploadId', $value); + return $this; } public function hasFileUploadId(): bool @@ -30,7 +31,8 @@ public function hasFileUploadId(): bool public function unsetFileUploadId(): self { - return $this->remove('fileUploadId'); + $this->remove('fileUploadId'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/ContactOrderBy.php b/src/GraphQL/Inputs/ContactOrderBy.php index ffda007..7937c25 100644 --- a/src/GraphQL/Inputs/ContactOrderBy.php +++ b/src/GraphQL/Inputs/ContactOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/ContributionOrderBy.php b/src/GraphQL/Inputs/ContributionOrderBy.php index 0003aec..4fa3509 100644 --- a/src/GraphQL/Inputs/ContributionOrderBy.php +++ b/src/GraphQL/Inputs/ContributionOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/ContributorOrderBy.php b/src/GraphQL/Inputs/ContributorOrderBy.php index 6606015..2a77e9b 100644 --- a/src/GraphQL/Inputs/ContributorOrderBy.php +++ b/src/GraphQL/Inputs/ContributorOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/EndorsementOrderBy.php b/src/GraphQL/Inputs/EndorsementOrderBy.php index d2e594d..f021d96 100644 --- a/src/GraphQL/Inputs/EndorsementOrderBy.php +++ b/src/GraphQL/Inputs/EndorsementOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/FundingOrderBy.php b/src/GraphQL/Inputs/FundingOrderBy.php index 648f7cd..d0bcbab 100644 --- a/src/GraphQL/Inputs/FundingOrderBy.php +++ b/src/GraphQL/Inputs/FundingOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/ImprintOrderBy.php b/src/GraphQL/Inputs/ImprintOrderBy.php index 68f513a..8eeeaaa 100644 --- a/src/GraphQL/Inputs/ImprintOrderBy.php +++ b/src/GraphQL/Inputs/ImprintOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/InstitutionOrderBy.php b/src/GraphQL/Inputs/InstitutionOrderBy.php index 235f290..5983529 100644 --- a/src/GraphQL/Inputs/InstitutionOrderBy.php +++ b/src/GraphQL/Inputs/InstitutionOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/IssueOrderBy.php b/src/GraphQL/Inputs/IssueOrderBy.php index 145beb5..a806805 100644 --- a/src/GraphQL/Inputs/IssueOrderBy.php +++ b/src/GraphQL/Inputs/IssueOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/LanguageOrderBy.php b/src/GraphQL/Inputs/LanguageOrderBy.php index 9f5aa97..1ed65c9 100644 --- a/src/GraphQL/Inputs/LanguageOrderBy.php +++ b/src/GraphQL/Inputs/LanguageOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/LocationOrderBy.php b/src/GraphQL/Inputs/LocationOrderBy.php index a769c57..2fddb1c 100644 --- a/src/GraphQL/Inputs/LocationOrderBy.php +++ b/src/GraphQL/Inputs/LocationOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewAbstract.php b/src/GraphQL/Inputs/NewAbstract.php index 1ed6ac9..549dd06 100644 --- a/src/GraphQL/Inputs/NewAbstract.php +++ b/src/GraphQL/Inputs/NewAbstract.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -56,7 +59,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -82,7 +87,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAbstractType() */ public function setAbstractType($value): self { - return $this->set('abstractType', $value); + $this->set('abstractType', $value); + return $this; } public function hasAbstractType(): bool @@ -108,7 +115,8 @@ public function hasAbstractType(): bool public function unsetAbstractType(): self { - return $this->remove('abstractType'); + $this->remove('abstractType'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -134,7 +143,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewAdditionalResource.php b/src/GraphQL/Inputs/NewAdditionalResource.php index 363a070..74312ec 100644 --- a/src/GraphQL/Inputs/NewAdditionalResource.php +++ b/src/GraphQL/Inputs/NewAdditionalResource.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -56,7 +59,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDescription() */ public function setDescription($value): self { - return $this->set('description', $value); + $this->set('description', $value); + return $this; } public function hasDescription(): bool @@ -82,7 +87,8 @@ public function hasDescription(): bool public function unsetDescription(): self { - return $this->remove('description'); + $this->remove('description'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAttribution() */ public function setAttribution($value): self { - return $this->set('attribution', $value); + $this->set('attribution', $value); + return $this; } public function hasAttribution(): bool @@ -108,7 +115,8 @@ public function hasAttribution(): bool public function unsetAttribution(): self { - return $this->remove('attribution'); + $this->remove('attribution'); + return $this; } /** @@ -124,7 +132,8 @@ public function getResourceType() */ public function setResourceType($value): self { - return $this->set('resourceType', $value); + $this->set('resourceType', $value); + return $this; } public function hasResourceType(): bool @@ -134,7 +143,8 @@ public function hasResourceType(): bool public function unsetResourceType(): self { - return $this->remove('resourceType'); + $this->remove('resourceType'); + return $this; } /** @@ -150,7 +160,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -160,7 +171,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -176,7 +188,8 @@ public function getHandle() */ public function setHandle($value): self { - return $this->set('handle', $value); + $this->set('handle', $value); + return $this; } public function hasHandle(): bool @@ -186,7 +199,8 @@ public function hasHandle(): bool public function unsetHandle(): self { - return $this->remove('handle'); + $this->remove('handle'); + return $this; } /** @@ -202,7 +216,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -212,7 +227,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDate() */ public function setDate($value): self { - return $this->set('date', $value); + $this->set('date', $value); + return $this; } public function hasDate(): bool @@ -238,7 +255,8 @@ public function hasDate(): bool public function unsetDate(): self { - return $this->remove('date'); + $this->remove('date'); + return $this; } /** @@ -254,7 +272,8 @@ public function getResourceOrdinal() */ public function setResourceOrdinal($value): self { - return $this->set('resourceOrdinal', $value); + $this->set('resourceOrdinal', $value); + return $this; } public function hasResourceOrdinal(): bool @@ -264,7 +283,8 @@ public function hasResourceOrdinal(): bool public function unsetResourceOrdinal(): self { - return $this->remove('resourceOrdinal'); + $this->remove('resourceOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php b/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php index d50ff1a..a5d894e 100644 --- a/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php +++ b/src/GraphQL/Inputs/NewAdditionalResourceFileUpload.php @@ -20,7 +20,8 @@ public function getAdditionalResourceId() */ public function setAdditionalResourceId($value): self { - return $this->set('additionalResourceId', $value); + $this->set('additionalResourceId', $value); + return $this; } public function hasAdditionalResourceId(): bool @@ -30,7 +31,8 @@ public function hasAdditionalResourceId(): bool public function unsetAdditionalResourceId(): self { - return $this->remove('additionalResourceId'); + $this->remove('additionalResourceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDeclaredMimeType() */ public function setDeclaredMimeType($value): self { - return $this->set('declaredMimeType', $value); + $this->set('declaredMimeType', $value); + return $this; } public function hasDeclaredMimeType(): bool @@ -56,7 +59,8 @@ public function hasDeclaredMimeType(): bool public function unsetDeclaredMimeType(): self { - return $this->remove('declaredMimeType'); + $this->remove('declaredMimeType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDeclaredExtension() */ public function setDeclaredExtension($value): self { - return $this->set('declaredExtension', $value); + $this->set('declaredExtension', $value); + return $this; } public function hasDeclaredExtension(): bool @@ -82,7 +87,8 @@ public function hasDeclaredExtension(): bool public function unsetDeclaredExtension(): self { - return $this->remove('declaredExtension'); + $this->remove('declaredExtension'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDeclaredSha256() */ public function setDeclaredSha256($value): self { - return $this->set('declaredSha256', $value); + $this->set('declaredSha256', $value); + return $this; } public function hasDeclaredSha256(): bool @@ -108,7 +115,8 @@ public function hasDeclaredSha256(): bool public function unsetDeclaredSha256(): self { - return $this->remove('declaredSha256'); + $this->remove('declaredSha256'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewAffiliation.php b/src/GraphQL/Inputs/NewAffiliation.php index 922edb0..fb80a39 100644 --- a/src/GraphQL/Inputs/NewAffiliation.php +++ b/src/GraphQL/Inputs/NewAffiliation.php @@ -20,7 +20,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -30,7 +31,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -56,7 +59,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getAffiliationOrdinal() */ public function setAffiliationOrdinal($value): self { - return $this->set('affiliationOrdinal', $value); + $this->set('affiliationOrdinal', $value); + return $this; } public function hasAffiliationOrdinal(): bool @@ -82,7 +87,8 @@ public function hasAffiliationOrdinal(): bool public function unsetAffiliationOrdinal(): self { - return $this->remove('affiliationOrdinal'); + $this->remove('affiliationOrdinal'); + return $this; } /** @@ -98,7 +104,8 @@ public function getPosition() */ public function setPosition($value): self { - return $this->set('position', $value); + $this->set('position', $value); + return $this; } public function hasPosition(): bool @@ -108,7 +115,8 @@ public function hasPosition(): bool public function unsetPosition(): self { - return $this->remove('position'); + $this->remove('position'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewAward.php b/src/GraphQL/Inputs/NewAward.php index b692451..2b46876 100644 --- a/src/GraphQL/Inputs/NewAward.php +++ b/src/GraphQL/Inputs/NewAward.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -56,7 +59,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -72,7 +76,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -82,7 +87,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCategory() */ public function setCategory($value): self { - return $this->set('category', $value); + $this->set('category', $value); + return $this; } public function hasCategory(): bool @@ -108,7 +115,8 @@ public function hasCategory(): bool public function unsetCategory(): self { - return $this->remove('category'); + $this->remove('category'); + return $this; } /** @@ -124,7 +132,8 @@ public function getYear() */ public function setYear($value): self { - return $this->set('year', $value); + $this->set('year', $value); + return $this; } public function hasYear(): bool @@ -134,7 +143,8 @@ public function hasYear(): bool public function unsetYear(): self { - return $this->remove('year'); + $this->remove('year'); + return $this; } /** @@ -150,7 +160,8 @@ public function getJury() */ public function setJury($value): self { - return $this->set('jury', $value); + $this->set('jury', $value); + return $this; } public function hasJury(): bool @@ -160,7 +171,8 @@ public function hasJury(): bool public function unsetJury(): self { - return $this->remove('jury'); + $this->remove('jury'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCountry() */ public function setCountry($value): self { - return $this->set('country', $value); + $this->set('country', $value); + return $this; } public function hasCountry(): bool @@ -186,7 +199,8 @@ public function hasCountry(): bool public function unsetCountry(): self { - return $this->remove('country'); + $this->remove('country'); + return $this; } /** @@ -202,7 +216,8 @@ public function getPrizeStatement() */ public function setPrizeStatement($value): self { - return $this->set('prizeStatement', $value); + $this->set('prizeStatement', $value); + return $this; } public function hasPrizeStatement(): bool @@ -212,7 +227,8 @@ public function hasPrizeStatement(): bool public function unsetPrizeStatement(): self { - return $this->remove('prizeStatement'); + $this->remove('prizeStatement'); + return $this; } /** @@ -228,7 +244,8 @@ public function getRole() */ public function setRole($value): self { - return $this->set('role', $value); + $this->set('role', $value); + return $this; } public function hasRole(): bool @@ -238,7 +255,8 @@ public function hasRole(): bool public function unsetRole(): self { - return $this->remove('role'); + $this->remove('role'); + return $this; } /** @@ -254,7 +272,8 @@ public function getAwardOrdinal() */ public function setAwardOrdinal($value): self { - return $this->set('awardOrdinal', $value); + $this->set('awardOrdinal', $value); + return $this; } public function hasAwardOrdinal(): bool @@ -264,7 +283,8 @@ public function hasAwardOrdinal(): bool public function unsetAwardOrdinal(): self { - return $this->remove('awardOrdinal'); + $this->remove('awardOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewBiography.php b/src/GraphQL/Inputs/NewBiography.php index 94d9c55..19b7010 100644 --- a/src/GraphQL/Inputs/NewBiography.php +++ b/src/GraphQL/Inputs/NewBiography.php @@ -20,7 +20,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -30,7 +31,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -56,7 +59,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -72,7 +76,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -82,7 +87,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -108,7 +115,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewBookReview.php b/src/GraphQL/Inputs/NewBookReview.php index 86bad9c..6416907 100644 --- a/src/GraphQL/Inputs/NewBookReview.php +++ b/src/GraphQL/Inputs/NewBookReview.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -56,7 +59,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -72,7 +76,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -82,7 +87,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getReviewerOrcid() */ public function setReviewerOrcid($value): self { - return $this->set('reviewerOrcid', $value); + $this->set('reviewerOrcid', $value); + return $this; } public function hasReviewerOrcid(): bool @@ -108,7 +115,8 @@ public function hasReviewerOrcid(): bool public function unsetReviewerOrcid(): self { - return $this->remove('reviewerOrcid'); + $this->remove('reviewerOrcid'); + return $this; } /** @@ -124,7 +132,8 @@ public function getReviewerInstitutionId() */ public function setReviewerInstitutionId($value): self { - return $this->set('reviewerInstitutionId', $value); + $this->set('reviewerInstitutionId', $value); + return $this; } public function hasReviewerInstitutionId(): bool @@ -134,7 +143,8 @@ public function hasReviewerInstitutionId(): bool public function unsetReviewerInstitutionId(): self { - return $this->remove('reviewerInstitutionId'); + $this->remove('reviewerInstitutionId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -160,7 +171,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -176,7 +188,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -186,7 +199,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -202,7 +216,8 @@ public function getReviewDate() */ public function setReviewDate($value): self { - return $this->set('reviewDate', $value); + $this->set('reviewDate', $value); + return $this; } public function hasReviewDate(): bool @@ -212,7 +227,8 @@ public function hasReviewDate(): bool public function unsetReviewDate(): self { - return $this->remove('reviewDate'); + $this->remove('reviewDate'); + return $this; } /** @@ -228,7 +244,8 @@ public function getJournalName() */ public function setJournalName($value): self { - return $this->set('journalName', $value); + $this->set('journalName', $value); + return $this; } public function hasJournalName(): bool @@ -238,7 +255,8 @@ public function hasJournalName(): bool public function unsetJournalName(): self { - return $this->remove('journalName'); + $this->remove('journalName'); + return $this; } /** @@ -254,7 +272,8 @@ public function getJournalVolume() */ public function setJournalVolume($value): self { - return $this->set('journalVolume', $value); + $this->set('journalVolume', $value); + return $this; } public function hasJournalVolume(): bool @@ -264,7 +283,8 @@ public function hasJournalVolume(): bool public function unsetJournalVolume(): self { - return $this->remove('journalVolume'); + $this->remove('journalVolume'); + return $this; } /** @@ -280,7 +300,8 @@ public function getJournalNumber() */ public function setJournalNumber($value): self { - return $this->set('journalNumber', $value); + $this->set('journalNumber', $value); + return $this; } public function hasJournalNumber(): bool @@ -290,7 +311,8 @@ public function hasJournalNumber(): bool public function unsetJournalNumber(): self { - return $this->remove('journalNumber'); + $this->remove('journalNumber'); + return $this; } /** @@ -306,7 +328,8 @@ public function getJournalIssn() */ public function setJournalIssn($value): self { - return $this->set('journalIssn', $value); + $this->set('journalIssn', $value); + return $this; } public function hasJournalIssn(): bool @@ -316,7 +339,8 @@ public function hasJournalIssn(): bool public function unsetJournalIssn(): self { - return $this->remove('journalIssn'); + $this->remove('journalIssn'); + return $this; } /** @@ -332,7 +356,8 @@ public function getPageRange() */ public function setPageRange($value): self { - return $this->set('pageRange', $value); + $this->set('pageRange', $value); + return $this; } public function hasPageRange(): bool @@ -342,7 +367,8 @@ public function hasPageRange(): bool public function unsetPageRange(): self { - return $this->remove('pageRange'); + $this->remove('pageRange'); + return $this; } /** @@ -358,7 +384,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -368,7 +395,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -384,7 +412,8 @@ public function getReviewOrdinal() */ public function setReviewOrdinal($value): self { - return $this->set('reviewOrdinal', $value); + $this->set('reviewOrdinal', $value); + return $this; } public function hasReviewOrdinal(): bool @@ -394,7 +423,8 @@ public function hasReviewOrdinal(): bool public function unsetReviewOrdinal(): self { - return $this->remove('reviewOrdinal'); + $this->remove('reviewOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewContact.php b/src/GraphQL/Inputs/NewContact.php index 318fadf..bf82e03 100644 --- a/src/GraphQL/Inputs/NewContact.php +++ b/src/GraphQL/Inputs/NewContact.php @@ -20,7 +20,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -30,7 +31,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContactType() */ public function setContactType($value): self { - return $this->set('contactType', $value); + $this->set('contactType', $value); + return $this; } public function hasContactType(): bool @@ -56,7 +59,8 @@ public function hasContactType(): bool public function unsetContactType(): self { - return $this->remove('contactType'); + $this->remove('contactType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getEmail() */ public function setEmail($value): self { - return $this->set('email', $value); + $this->set('email', $value); + return $this; } public function hasEmail(): bool @@ -82,7 +87,8 @@ public function hasEmail(): bool public function unsetEmail(): self { - return $this->remove('email'); + $this->remove('email'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewContribution.php b/src/GraphQL/Inputs/NewContribution.php index 497d9ac..28393ef 100644 --- a/src/GraphQL/Inputs/NewContribution.php +++ b/src/GraphQL/Inputs/NewContribution.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributorId() */ public function setContributorId($value): self { - return $this->set('contributorId', $value); + $this->set('contributorId', $value); + return $this; } public function hasContributorId(): bool @@ -56,7 +59,8 @@ public function hasContributorId(): bool public function unsetContributorId(): self { - return $this->remove('contributorId'); + $this->remove('contributorId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContributionType() */ public function setContributionType($value): self { - return $this->set('contributionType', $value); + $this->set('contributionType', $value); + return $this; } public function hasContributionType(): bool @@ -82,7 +87,8 @@ public function hasContributionType(): bool public function unsetContributionType(): self { - return $this->remove('contributionType'); + $this->remove('contributionType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getMainContribution() */ public function setMainContribution($value): self { - return $this->set('mainContribution', $value); + $this->set('mainContribution', $value); + return $this; } public function hasMainContribution(): bool @@ -108,7 +115,8 @@ public function hasMainContribution(): bool public function unsetMainContribution(): self { - return $this->remove('mainContribution'); + $this->remove('mainContribution'); + return $this; } /** @@ -124,7 +132,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -134,7 +143,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -150,7 +160,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -160,7 +171,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -176,7 +188,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -186,7 +199,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -202,7 +216,8 @@ public function getContributionOrdinal() */ public function setContributionOrdinal($value): self { - return $this->set('contributionOrdinal', $value); + $this->set('contributionOrdinal', $value); + return $this; } public function hasContributionOrdinal(): bool @@ -212,7 +227,8 @@ public function hasContributionOrdinal(): bool public function unsetContributionOrdinal(): self { - return $this->remove('contributionOrdinal'); + $this->remove('contributionOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewContributor.php b/src/GraphQL/Inputs/NewContributor.php index 6dc0a37..1401e2f 100644 --- a/src/GraphQL/Inputs/NewContributor.php +++ b/src/GraphQL/Inputs/NewContributor.php @@ -20,7 +20,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -30,7 +31,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -46,7 +48,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -56,7 +59,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -82,7 +87,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getOrcid() */ public function setOrcid($value): self { - return $this->set('orcid', $value); + $this->set('orcid', $value); + return $this; } public function hasOrcid(): bool @@ -108,7 +115,8 @@ public function hasOrcid(): bool public function unsetOrcid(): self { - return $this->remove('orcid'); + $this->remove('orcid'); + return $this; } /** @@ -124,7 +132,8 @@ public function getWebsite() */ public function setWebsite($value): self { - return $this->set('website', $value); + $this->set('website', $value); + return $this; } public function hasWebsite(): bool @@ -134,7 +143,8 @@ public function hasWebsite(): bool public function unsetWebsite(): self { - return $this->remove('website'); + $this->remove('website'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewEndorsement.php b/src/GraphQL/Inputs/NewEndorsement.php index 5f5a564..e5c506c 100644 --- a/src/GraphQL/Inputs/NewEndorsement.php +++ b/src/GraphQL/Inputs/NewEndorsement.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -56,7 +59,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getAuthorRole() */ public function setAuthorRole($value): self { - return $this->set('authorRole', $value); + $this->set('authorRole', $value); + return $this; } public function hasAuthorRole(): bool @@ -82,7 +87,8 @@ public function hasAuthorRole(): bool public function unsetAuthorRole(): self { - return $this->remove('authorRole'); + $this->remove('authorRole'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAuthorOrcid() */ public function setAuthorOrcid($value): self { - return $this->set('authorOrcid', $value); + $this->set('authorOrcid', $value); + return $this; } public function hasAuthorOrcid(): bool @@ -108,7 +115,8 @@ public function hasAuthorOrcid(): bool public function unsetAuthorOrcid(): self { - return $this->remove('authorOrcid'); + $this->remove('authorOrcid'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAuthorInstitutionId() */ public function setAuthorInstitutionId($value): self { - return $this->set('authorInstitutionId', $value); + $this->set('authorInstitutionId', $value); + return $this; } public function hasAuthorInstitutionId(): bool @@ -134,7 +143,8 @@ public function hasAuthorInstitutionId(): bool public function unsetAuthorInstitutionId(): self { - return $this->remove('authorInstitutionId'); + $this->remove('authorInstitutionId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -160,7 +171,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -176,7 +188,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -186,7 +199,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -202,7 +216,8 @@ public function getEndorsementOrdinal() */ public function setEndorsementOrdinal($value): self { - return $this->set('endorsementOrdinal', $value); + $this->set('endorsementOrdinal', $value); + return $this; } public function hasEndorsementOrdinal(): bool @@ -212,7 +227,8 @@ public function hasEndorsementOrdinal(): bool public function unsetEndorsementOrdinal(): self { - return $this->remove('endorsementOrdinal'); + $this->remove('endorsementOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewFrontcoverFileUpload.php b/src/GraphQL/Inputs/NewFrontcoverFileUpload.php index 0ec90b5..7dfcaef 100644 --- a/src/GraphQL/Inputs/NewFrontcoverFileUpload.php +++ b/src/GraphQL/Inputs/NewFrontcoverFileUpload.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDeclaredMimeType() */ public function setDeclaredMimeType($value): self { - return $this->set('declaredMimeType', $value); + $this->set('declaredMimeType', $value); + return $this; } public function hasDeclaredMimeType(): bool @@ -56,7 +59,8 @@ public function hasDeclaredMimeType(): bool public function unsetDeclaredMimeType(): self { - return $this->remove('declaredMimeType'); + $this->remove('declaredMimeType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDeclaredExtension() */ public function setDeclaredExtension($value): self { - return $this->set('declaredExtension', $value); + $this->set('declaredExtension', $value); + return $this; } public function hasDeclaredExtension(): bool @@ -82,7 +87,8 @@ public function hasDeclaredExtension(): bool public function unsetDeclaredExtension(): self { - return $this->remove('declaredExtension'); + $this->remove('declaredExtension'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDeclaredSha256() */ public function setDeclaredSha256($value): self { - return $this->set('declaredSha256', $value); + $this->set('declaredSha256', $value); + return $this; } public function hasDeclaredSha256(): bool @@ -108,7 +115,8 @@ public function hasDeclaredSha256(): bool public function unsetDeclaredSha256(): self { - return $this->remove('declaredSha256'); + $this->remove('declaredSha256'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewFunding.php b/src/GraphQL/Inputs/NewFunding.php index 8798489..e54c59c 100644 --- a/src/GraphQL/Inputs/NewFunding.php +++ b/src/GraphQL/Inputs/NewFunding.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -56,7 +59,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getProgram() */ public function setProgram($value): self { - return $this->set('program', $value); + $this->set('program', $value); + return $this; } public function hasProgram(): bool @@ -82,7 +87,8 @@ public function hasProgram(): bool public function unsetProgram(): self { - return $this->remove('program'); + $this->remove('program'); + return $this; } /** @@ -98,7 +104,8 @@ public function getProjectName() */ public function setProjectName($value): self { - return $this->set('projectName', $value); + $this->set('projectName', $value); + return $this; } public function hasProjectName(): bool @@ -108,7 +115,8 @@ public function hasProjectName(): bool public function unsetProjectName(): self { - return $this->remove('projectName'); + $this->remove('projectName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getProjectShortname() */ public function setProjectShortname($value): self { - return $this->set('projectShortname', $value); + $this->set('projectShortname', $value); + return $this; } public function hasProjectShortname(): bool @@ -134,7 +143,8 @@ public function hasProjectShortname(): bool public function unsetProjectShortname(): self { - return $this->remove('projectShortname'); + $this->remove('projectShortname'); + return $this; } /** @@ -150,7 +160,8 @@ public function getGrantNumber() */ public function setGrantNumber($value): self { - return $this->set('grantNumber', $value); + $this->set('grantNumber', $value); + return $this; } public function hasGrantNumber(): bool @@ -160,7 +171,8 @@ public function hasGrantNumber(): bool public function unsetGrantNumber(): self { - return $this->remove('grantNumber'); + $this->remove('grantNumber'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewImprint.php b/src/GraphQL/Inputs/NewImprint.php index 261c1bc..8b167a1 100644 --- a/src/GraphQL/Inputs/NewImprint.php +++ b/src/GraphQL/Inputs/NewImprint.php @@ -20,7 +20,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -30,7 +31,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getImprintName() */ public function setImprintName($value): self { - return $this->set('imprintName', $value); + $this->set('imprintName', $value); + return $this; } public function hasImprintName(): bool @@ -56,7 +59,8 @@ public function hasImprintName(): bool public function unsetImprintName(): self { - return $this->remove('imprintName'); + $this->remove('imprintName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getImprintUrl() */ public function setImprintUrl($value): self { - return $this->set('imprintUrl', $value); + $this->set('imprintUrl', $value); + return $this; } public function hasImprintUrl(): bool @@ -82,7 +87,8 @@ public function hasImprintUrl(): bool public function unsetImprintUrl(): self { - return $this->remove('imprintUrl'); + $this->remove('imprintUrl'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCrossmarkDoi() */ public function setCrossmarkDoi($value): self { - return $this->set('crossmarkDoi', $value); + $this->set('crossmarkDoi', $value); + return $this; } public function hasCrossmarkDoi(): bool @@ -108,7 +115,8 @@ public function hasCrossmarkDoi(): bool public function unsetCrossmarkDoi(): self { - return $this->remove('crossmarkDoi'); + $this->remove('crossmarkDoi'); + return $this; } /** @@ -124,7 +132,8 @@ public function getS3Bucket() */ public function setS3Bucket($value): self { - return $this->set('s3Bucket', $value); + $this->set('s3Bucket', $value); + return $this; } public function hasS3Bucket(): bool @@ -134,7 +143,8 @@ public function hasS3Bucket(): bool public function unsetS3Bucket(): self { - return $this->remove('s3Bucket'); + $this->remove('s3Bucket'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCdnDomain() */ public function setCdnDomain($value): self { - return $this->set('cdnDomain', $value); + $this->set('cdnDomain', $value); + return $this; } public function hasCdnDomain(): bool @@ -160,7 +171,8 @@ public function hasCdnDomain(): bool public function unsetCdnDomain(): self { - return $this->remove('cdnDomain'); + $this->remove('cdnDomain'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCloudfrontDistId() */ public function setCloudfrontDistId($value): self { - return $this->set('cloudfrontDistId', $value); + $this->set('cloudfrontDistId', $value); + return $this; } public function hasCloudfrontDistId(): bool @@ -186,7 +199,8 @@ public function hasCloudfrontDistId(): bool public function unsetCloudfrontDistId(): self { - return $this->remove('cloudfrontDistId'); + $this->remove('cloudfrontDistId'); + return $this; } /** @@ -202,7 +216,8 @@ public function getDefaultCurrency() */ public function setDefaultCurrency($value): self { - return $this->set('defaultCurrency', $value); + $this->set('defaultCurrency', $value); + return $this; } public function hasDefaultCurrency(): bool @@ -212,7 +227,8 @@ public function hasDefaultCurrency(): bool public function unsetDefaultCurrency(): self { - return $this->remove('defaultCurrency'); + $this->remove('defaultCurrency'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDefaultPlace() */ public function setDefaultPlace($value): self { - return $this->set('defaultPlace', $value); + $this->set('defaultPlace', $value); + return $this; } public function hasDefaultPlace(): bool @@ -238,7 +255,8 @@ public function hasDefaultPlace(): bool public function unsetDefaultPlace(): self { - return $this->remove('defaultPlace'); + $this->remove('defaultPlace'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDefaultLocale() */ public function setDefaultLocale($value): self { - return $this->set('defaultLocale', $value); + $this->set('defaultLocale', $value); + return $this; } public function hasDefaultLocale(): bool @@ -264,7 +283,8 @@ public function hasDefaultLocale(): bool public function unsetDefaultLocale(): self { - return $this->remove('defaultLocale'); + $this->remove('defaultLocale'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewInstitution.php b/src/GraphQL/Inputs/NewInstitution.php index dd60afb..9e8faac 100644 --- a/src/GraphQL/Inputs/NewInstitution.php +++ b/src/GraphQL/Inputs/NewInstitution.php @@ -20,7 +20,8 @@ public function getInstitutionName() */ public function setInstitutionName($value): self { - return $this->set('institutionName', $value); + $this->set('institutionName', $value); + return $this; } public function hasInstitutionName(): bool @@ -30,7 +31,8 @@ public function hasInstitutionName(): bool public function unsetInstitutionName(): self { - return $this->remove('institutionName'); + $this->remove('institutionName'); + return $this; } /** @@ -46,7 +48,8 @@ public function getInstitutionDoi() */ public function setInstitutionDoi($value): self { - return $this->set('institutionDoi', $value); + $this->set('institutionDoi', $value); + return $this; } public function hasInstitutionDoi(): bool @@ -56,7 +59,8 @@ public function hasInstitutionDoi(): bool public function unsetInstitutionDoi(): self { - return $this->remove('institutionDoi'); + $this->remove('institutionDoi'); + return $this; } /** @@ -72,7 +76,8 @@ public function getRor() */ public function setRor($value): self { - return $this->set('ror', $value); + $this->set('ror', $value); + return $this; } public function hasRor(): bool @@ -82,7 +87,8 @@ public function hasRor(): bool public function unsetRor(): self { - return $this->remove('ror'); + $this->remove('ror'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCountryCode() */ public function setCountryCode($value): self { - return $this->set('countryCode', $value); + $this->set('countryCode', $value); + return $this; } public function hasCountryCode(): bool @@ -108,7 +115,8 @@ public function hasCountryCode(): bool public function unsetCountryCode(): self { - return $this->remove('countryCode'); + $this->remove('countryCode'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewIssue.php b/src/GraphQL/Inputs/NewIssue.php index 80c8527..957100d 100644 --- a/src/GraphQL/Inputs/NewIssue.php +++ b/src/GraphQL/Inputs/NewIssue.php @@ -20,7 +20,8 @@ public function getSeriesId() */ public function setSeriesId($value): self { - return $this->set('seriesId', $value); + $this->set('seriesId', $value); + return $this; } public function hasSeriesId(): bool @@ -30,7 +31,8 @@ public function hasSeriesId(): bool public function unsetSeriesId(): self { - return $this->remove('seriesId'); + $this->remove('seriesId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getIssueOrdinal() */ public function setIssueOrdinal($value): self { - return $this->set('issueOrdinal', $value); + $this->set('issueOrdinal', $value); + return $this; } public function hasIssueOrdinal(): bool @@ -82,7 +87,8 @@ public function hasIssueOrdinal(): bool public function unsetIssueOrdinal(): self { - return $this->remove('issueOrdinal'); + $this->remove('issueOrdinal'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssueNumber() */ public function setIssueNumber($value): self { - return $this->set('issueNumber', $value); + $this->set('issueNumber', $value); + return $this; } public function hasIssueNumber(): bool @@ -108,7 +115,8 @@ public function hasIssueNumber(): bool public function unsetIssueNumber(): self { - return $this->remove('issueNumber'); + $this->remove('issueNumber'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewLanguage.php b/src/GraphQL/Inputs/NewLanguage.php index 05c8f02..d10bd6d 100644 --- a/src/GraphQL/Inputs/NewLanguage.php +++ b/src/GraphQL/Inputs/NewLanguage.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getLanguageCode() */ public function setLanguageCode($value): self { - return $this->set('languageCode', $value); + $this->set('languageCode', $value); + return $this; } public function hasLanguageCode(): bool @@ -56,7 +59,8 @@ public function hasLanguageCode(): bool public function unsetLanguageCode(): self { - return $this->remove('languageCode'); + $this->remove('languageCode'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLanguageRelation() */ public function setLanguageRelation($value): self { - return $this->set('languageRelation', $value); + $this->set('languageRelation', $value); + return $this; } public function hasLanguageRelation(): bool @@ -82,7 +87,8 @@ public function hasLanguageRelation(): bool public function unsetLanguageRelation(): self { - return $this->remove('languageRelation'); + $this->remove('languageRelation'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewLocation.php b/src/GraphQL/Inputs/NewLocation.php index bfff528..ea996da 100644 --- a/src/GraphQL/Inputs/NewLocation.php +++ b/src/GraphQL/Inputs/NewLocation.php @@ -20,7 +20,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -30,7 +31,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -56,7 +59,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -72,7 +76,8 @@ public function getFullTextUrl() */ public function setFullTextUrl($value): self { - return $this->set('fullTextUrl', $value); + $this->set('fullTextUrl', $value); + return $this; } public function hasFullTextUrl(): bool @@ -82,7 +87,8 @@ public function hasFullTextUrl(): bool public function unsetFullTextUrl(): self { - return $this->remove('fullTextUrl'); + $this->remove('fullTextUrl'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLocationPlatform() */ public function setLocationPlatform($value): self { - return $this->set('locationPlatform', $value); + $this->set('locationPlatform', $value); + return $this; } public function hasLocationPlatform(): bool @@ -108,7 +115,8 @@ public function hasLocationPlatform(): bool public function unsetLocationPlatform(): self { - return $this->remove('locationPlatform'); + $this->remove('locationPlatform'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -134,7 +143,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -150,7 +160,8 @@ public function getChecksum() */ public function setChecksum($value): self { - return $this->set('checksum', $value); + $this->set('checksum', $value); + return $this; } public function hasChecksum(): bool @@ -160,7 +171,8 @@ public function hasChecksum(): bool public function unsetChecksum(): self { - return $this->remove('checksum'); + $this->remove('checksum'); + return $this; } /** @@ -176,7 +188,8 @@ public function getChecksumAlgorithm() */ public function setChecksumAlgorithm($value): self { - return $this->set('checksumAlgorithm', $value); + $this->set('checksumAlgorithm', $value); + return $this; } public function hasChecksumAlgorithm(): bool @@ -186,7 +199,8 @@ public function hasChecksumAlgorithm(): bool public function unsetChecksumAlgorithm(): self { - return $this->remove('checksumAlgorithm'); + $this->remove('checksumAlgorithm'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewPrice.php b/src/GraphQL/Inputs/NewPrice.php index d7ec10a..fd17227 100644 --- a/src/GraphQL/Inputs/NewPrice.php +++ b/src/GraphQL/Inputs/NewPrice.php @@ -20,7 +20,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -30,7 +31,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getCurrencyCode() */ public function setCurrencyCode($value): self { - return $this->set('currencyCode', $value); + $this->set('currencyCode', $value); + return $this; } public function hasCurrencyCode(): bool @@ -56,7 +59,8 @@ public function hasCurrencyCode(): bool public function unsetCurrencyCode(): self { - return $this->remove('currencyCode'); + $this->remove('currencyCode'); + return $this; } /** @@ -72,7 +76,8 @@ public function getUnitPrice() */ public function setUnitPrice($value): self { - return $this->set('unitPrice', $value); + $this->set('unitPrice', $value); + return $this; } public function hasUnitPrice(): bool @@ -82,7 +87,8 @@ public function hasUnitPrice(): bool public function unsetUnitPrice(): self { - return $this->remove('unitPrice'); + $this->remove('unitPrice'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewPublication.php b/src/GraphQL/Inputs/NewPublication.php index aa72439..d9509bb 100644 --- a/src/GraphQL/Inputs/NewPublication.php +++ b/src/GraphQL/Inputs/NewPublication.php @@ -20,7 +20,8 @@ public function getPublicationType() */ public function setPublicationType($value): self { - return $this->set('publicationType', $value); + $this->set('publicationType', $value); + return $this; } public function hasPublicationType(): bool @@ -30,7 +31,8 @@ public function hasPublicationType(): bool public function unsetPublicationType(): self { - return $this->remove('publicationType'); + $this->remove('publicationType'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -82,7 +87,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -98,7 +104,8 @@ public function getWidthMm() */ public function setWidthMm($value): self { - return $this->set('widthMm', $value); + $this->set('widthMm', $value); + return $this; } public function hasWidthMm(): bool @@ -108,7 +115,8 @@ public function hasWidthMm(): bool public function unsetWidthMm(): self { - return $this->remove('widthMm'); + $this->remove('widthMm'); + return $this; } /** @@ -124,7 +132,8 @@ public function getWidthIn() */ public function setWidthIn($value): self { - return $this->set('widthIn', $value); + $this->set('widthIn', $value); + return $this; } public function hasWidthIn(): bool @@ -134,7 +143,8 @@ public function hasWidthIn(): bool public function unsetWidthIn(): self { - return $this->remove('widthIn'); + $this->remove('widthIn'); + return $this; } /** @@ -150,7 +160,8 @@ public function getHeightMm() */ public function setHeightMm($value): self { - return $this->set('heightMm', $value); + $this->set('heightMm', $value); + return $this; } public function hasHeightMm(): bool @@ -160,7 +171,8 @@ public function hasHeightMm(): bool public function unsetHeightMm(): self { - return $this->remove('heightMm'); + $this->remove('heightMm'); + return $this; } /** @@ -176,7 +188,8 @@ public function getHeightIn() */ public function setHeightIn($value): self { - return $this->set('heightIn', $value); + $this->set('heightIn', $value); + return $this; } public function hasHeightIn(): bool @@ -186,7 +199,8 @@ public function hasHeightIn(): bool public function unsetHeightIn(): self { - return $this->remove('heightIn'); + $this->remove('heightIn'); + return $this; } /** @@ -202,7 +216,8 @@ public function getDepthMm() */ public function setDepthMm($value): self { - return $this->set('depthMm', $value); + $this->set('depthMm', $value); + return $this; } public function hasDepthMm(): bool @@ -212,7 +227,8 @@ public function hasDepthMm(): bool public function unsetDepthMm(): self { - return $this->remove('depthMm'); + $this->remove('depthMm'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDepthIn() */ public function setDepthIn($value): self { - return $this->set('depthIn', $value); + $this->set('depthIn', $value); + return $this; } public function hasDepthIn(): bool @@ -238,7 +255,8 @@ public function hasDepthIn(): bool public function unsetDepthIn(): self { - return $this->remove('depthIn'); + $this->remove('depthIn'); + return $this; } /** @@ -254,7 +272,8 @@ public function getWeightG() */ public function setWeightG($value): self { - return $this->set('weightG', $value); + $this->set('weightG', $value); + return $this; } public function hasWeightG(): bool @@ -264,7 +283,8 @@ public function hasWeightG(): bool public function unsetWeightG(): self { - return $this->remove('weightG'); + $this->remove('weightG'); + return $this; } /** @@ -280,7 +300,8 @@ public function getWeightOz() */ public function setWeightOz($value): self { - return $this->set('weightOz', $value); + $this->set('weightOz', $value); + return $this; } public function hasWeightOz(): bool @@ -290,7 +311,8 @@ public function hasWeightOz(): bool public function unsetWeightOz(): self { - return $this->remove('weightOz'); + $this->remove('weightOz'); + return $this; } /** @@ -306,7 +328,8 @@ public function getAccessibilityStandard() */ public function setAccessibilityStandard($value): self { - return $this->set('accessibilityStandard', $value); + $this->set('accessibilityStandard', $value); + return $this; } public function hasAccessibilityStandard(): bool @@ -316,7 +339,8 @@ public function hasAccessibilityStandard(): bool public function unsetAccessibilityStandard(): self { - return $this->remove('accessibilityStandard'); + $this->remove('accessibilityStandard'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAccessibilityAdditionalStandard() */ public function setAccessibilityAdditionalStandard($value): self { - return $this->set('accessibilityAdditionalStandard', $value); + $this->set('accessibilityAdditionalStandard', $value); + return $this; } public function hasAccessibilityAdditionalStandard(): bool @@ -342,7 +367,8 @@ public function hasAccessibilityAdditionalStandard(): bool public function unsetAccessibilityAdditionalStandard(): self { - return $this->remove('accessibilityAdditionalStandard'); + $this->remove('accessibilityAdditionalStandard'); + return $this; } /** @@ -358,7 +384,8 @@ public function getAccessibilityException() */ public function setAccessibilityException($value): self { - return $this->set('accessibilityException', $value); + $this->set('accessibilityException', $value); + return $this; } public function hasAccessibilityException(): bool @@ -368,7 +395,8 @@ public function hasAccessibilityException(): bool public function unsetAccessibilityException(): self { - return $this->remove('accessibilityException'); + $this->remove('accessibilityException'); + return $this; } /** @@ -384,7 +412,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -394,7 +423,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewPublicationFileUpload.php b/src/GraphQL/Inputs/NewPublicationFileUpload.php index bdf4605..d86814a 100644 --- a/src/GraphQL/Inputs/NewPublicationFileUpload.php +++ b/src/GraphQL/Inputs/NewPublicationFileUpload.php @@ -20,7 +20,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -30,7 +31,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDeclaredMimeType() */ public function setDeclaredMimeType($value): self { - return $this->set('declaredMimeType', $value); + $this->set('declaredMimeType', $value); + return $this; } public function hasDeclaredMimeType(): bool @@ -56,7 +59,8 @@ public function hasDeclaredMimeType(): bool public function unsetDeclaredMimeType(): self { - return $this->remove('declaredMimeType'); + $this->remove('declaredMimeType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDeclaredExtension() */ public function setDeclaredExtension($value): self { - return $this->set('declaredExtension', $value); + $this->set('declaredExtension', $value); + return $this; } public function hasDeclaredExtension(): bool @@ -82,7 +87,8 @@ public function hasDeclaredExtension(): bool public function unsetDeclaredExtension(): self { - return $this->remove('declaredExtension'); + $this->remove('declaredExtension'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDeclaredSha256() */ public function setDeclaredSha256($value): self { - return $this->set('declaredSha256', $value); + $this->set('declaredSha256', $value); + return $this; } public function hasDeclaredSha256(): bool @@ -108,7 +115,8 @@ public function hasDeclaredSha256(): bool public function unsetDeclaredSha256(): self { - return $this->remove('declaredSha256'); + $this->remove('declaredSha256'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewPublisher.php b/src/GraphQL/Inputs/NewPublisher.php index 67e0536..364d8f0 100644 --- a/src/GraphQL/Inputs/NewPublisher.php +++ b/src/GraphQL/Inputs/NewPublisher.php @@ -20,7 +20,8 @@ public function getPublisherName() */ public function setPublisherName($value): self { - return $this->set('publisherName', $value); + $this->set('publisherName', $value); + return $this; } public function hasPublisherName(): bool @@ -30,7 +31,8 @@ public function hasPublisherName(): bool public function unsetPublisherName(): self { - return $this->remove('publisherName'); + $this->remove('publisherName'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherShortname() */ public function setPublisherShortname($value): self { - return $this->set('publisherShortname', $value); + $this->set('publisherShortname', $value); + return $this; } public function hasPublisherShortname(): bool @@ -56,7 +59,8 @@ public function hasPublisherShortname(): bool public function unsetPublisherShortname(): self { - return $this->remove('publisherShortname'); + $this->remove('publisherShortname'); + return $this; } /** @@ -72,7 +76,8 @@ public function getPublisherUrl() */ public function setPublisherUrl($value): self { - return $this->set('publisherUrl', $value); + $this->set('publisherUrl', $value); + return $this; } public function hasPublisherUrl(): bool @@ -82,7 +87,8 @@ public function hasPublisherUrl(): bool public function unsetPublisherUrl(): self { - return $this->remove('publisherUrl'); + $this->remove('publisherUrl'); + return $this; } /** @@ -98,7 +104,8 @@ public function getZitadelId() */ public function setZitadelId($value): self { - return $this->set('zitadelId', $value); + $this->set('zitadelId', $value); + return $this; } public function hasZitadelId(): bool @@ -108,7 +115,8 @@ public function hasZitadelId(): bool public function unsetZitadelId(): self { - return $this->remove('zitadelId'); + $this->remove('zitadelId'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAccessibilityStatement() */ public function setAccessibilityStatement($value): self { - return $this->set('accessibilityStatement', $value); + $this->set('accessibilityStatement', $value); + return $this; } public function hasAccessibilityStatement(): bool @@ -134,7 +143,8 @@ public function hasAccessibilityStatement(): bool public function unsetAccessibilityStatement(): self { - return $this->remove('accessibilityStatement'); + $this->remove('accessibilityStatement'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -160,7 +171,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewReference.php b/src/GraphQL/Inputs/NewReference.php index 0067086..0b68665 100644 --- a/src/GraphQL/Inputs/NewReference.php +++ b/src/GraphQL/Inputs/NewReference.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getReferenceOrdinal() */ public function setReferenceOrdinal($value): self { - return $this->set('referenceOrdinal', $value); + $this->set('referenceOrdinal', $value); + return $this; } public function hasReferenceOrdinal(): bool @@ -56,7 +59,8 @@ public function hasReferenceOrdinal(): bool public function unsetReferenceOrdinal(): self { - return $this->remove('referenceOrdinal'); + $this->remove('referenceOrdinal'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -82,7 +87,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUnstructuredCitation() */ public function setUnstructuredCitation($value): self { - return $this->set('unstructuredCitation', $value); + $this->set('unstructuredCitation', $value); + return $this; } public function hasUnstructuredCitation(): bool @@ -108,7 +115,8 @@ public function hasUnstructuredCitation(): bool public function unsetUnstructuredCitation(): self { - return $this->remove('unstructuredCitation'); + $this->remove('unstructuredCitation'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIssn() */ public function setIssn($value): self { - return $this->set('issn', $value); + $this->set('issn', $value); + return $this; } public function hasIssn(): bool @@ -134,7 +143,8 @@ public function hasIssn(): bool public function unsetIssn(): self { - return $this->remove('issn'); + $this->remove('issn'); + return $this; } /** @@ -150,7 +160,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -160,7 +171,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -176,7 +188,8 @@ public function getJournalTitle() */ public function setJournalTitle($value): self { - return $this->set('journalTitle', $value); + $this->set('journalTitle', $value); + return $this; } public function hasJournalTitle(): bool @@ -186,7 +199,8 @@ public function hasJournalTitle(): bool public function unsetJournalTitle(): self { - return $this->remove('journalTitle'); + $this->remove('journalTitle'); + return $this; } /** @@ -202,7 +216,8 @@ public function getArticleTitle() */ public function setArticleTitle($value): self { - return $this->set('articleTitle', $value); + $this->set('articleTitle', $value); + return $this; } public function hasArticleTitle(): bool @@ -212,7 +227,8 @@ public function hasArticleTitle(): bool public function unsetArticleTitle(): self { - return $this->remove('articleTitle'); + $this->remove('articleTitle'); + return $this; } /** @@ -228,7 +244,8 @@ public function getSeriesTitle() */ public function setSeriesTitle($value): self { - return $this->set('seriesTitle', $value); + $this->set('seriesTitle', $value); + return $this; } public function hasSeriesTitle(): bool @@ -238,7 +255,8 @@ public function hasSeriesTitle(): bool public function unsetSeriesTitle(): self { - return $this->remove('seriesTitle'); + $this->remove('seriesTitle'); + return $this; } /** @@ -254,7 +272,8 @@ public function getVolumeTitle() */ public function setVolumeTitle($value): self { - return $this->set('volumeTitle', $value); + $this->set('volumeTitle', $value); + return $this; } public function hasVolumeTitle(): bool @@ -264,7 +283,8 @@ public function hasVolumeTitle(): bool public function unsetVolumeTitle(): self { - return $this->remove('volumeTitle'); + $this->remove('volumeTitle'); + return $this; } /** @@ -280,7 +300,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -290,7 +311,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -306,7 +328,8 @@ public function getAuthor() */ public function setAuthor($value): self { - return $this->set('author', $value); + $this->set('author', $value); + return $this; } public function hasAuthor(): bool @@ -316,7 +339,8 @@ public function hasAuthor(): bool public function unsetAuthor(): self { - return $this->remove('author'); + $this->remove('author'); + return $this; } /** @@ -332,7 +356,8 @@ public function getVolume() */ public function setVolume($value): self { - return $this->set('volume', $value); + $this->set('volume', $value); + return $this; } public function hasVolume(): bool @@ -342,7 +367,8 @@ public function hasVolume(): bool public function unsetVolume(): self { - return $this->remove('volume'); + $this->remove('volume'); + return $this; } /** @@ -358,7 +384,8 @@ public function getIssue() */ public function setIssue($value): self { - return $this->set('issue', $value); + $this->set('issue', $value); + return $this; } public function hasIssue(): bool @@ -368,7 +395,8 @@ public function hasIssue(): bool public function unsetIssue(): self { - return $this->remove('issue'); + $this->remove('issue'); + return $this; } /** @@ -384,7 +412,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -394,7 +423,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -410,7 +440,8 @@ public function getComponentNumber() */ public function setComponentNumber($value): self { - return $this->set('componentNumber', $value); + $this->set('componentNumber', $value); + return $this; } public function hasComponentNumber(): bool @@ -420,7 +451,8 @@ public function hasComponentNumber(): bool public function unsetComponentNumber(): self { - return $this->remove('componentNumber'); + $this->remove('componentNumber'); + return $this; } /** @@ -436,7 +468,8 @@ public function getStandardDesignator() */ public function setStandardDesignator($value): self { - return $this->set('standardDesignator', $value); + $this->set('standardDesignator', $value); + return $this; } public function hasStandardDesignator(): bool @@ -446,7 +479,8 @@ public function hasStandardDesignator(): bool public function unsetStandardDesignator(): self { - return $this->remove('standardDesignator'); + $this->remove('standardDesignator'); + return $this; } /** @@ -462,7 +496,8 @@ public function getStandardsBodyName() */ public function setStandardsBodyName($value): self { - return $this->set('standardsBodyName', $value); + $this->set('standardsBodyName', $value); + return $this; } public function hasStandardsBodyName(): bool @@ -472,7 +507,8 @@ public function hasStandardsBodyName(): bool public function unsetStandardsBodyName(): self { - return $this->remove('standardsBodyName'); + $this->remove('standardsBodyName'); + return $this; } /** @@ -488,7 +524,8 @@ public function getStandardsBodyAcronym() */ public function setStandardsBodyAcronym($value): self { - return $this->set('standardsBodyAcronym', $value); + $this->set('standardsBodyAcronym', $value); + return $this; } public function hasStandardsBodyAcronym(): bool @@ -498,7 +535,8 @@ public function hasStandardsBodyAcronym(): bool public function unsetStandardsBodyAcronym(): self { - return $this->remove('standardsBodyAcronym'); + $this->remove('standardsBodyAcronym'); + return $this; } /** @@ -514,7 +552,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -524,7 +563,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -540,7 +580,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -550,7 +591,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -566,7 +608,8 @@ public function getRetrievalDate() */ public function setRetrievalDate($value): self { - return $this->set('retrievalDate', $value); + $this->set('retrievalDate', $value); + return $this; } public function hasRetrievalDate(): bool @@ -576,7 +619,8 @@ public function hasRetrievalDate(): bool public function unsetRetrievalDate(): self { - return $this->remove('retrievalDate'); + $this->remove('retrievalDate'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewSeries.php b/src/GraphQL/Inputs/NewSeries.php index 5e5878e..d1c0e50 100644 --- a/src/GraphQL/Inputs/NewSeries.php +++ b/src/GraphQL/Inputs/NewSeries.php @@ -20,7 +20,8 @@ public function getSeriesType() */ public function setSeriesType($value): self { - return $this->set('seriesType', $value); + $this->set('seriesType', $value); + return $this; } public function hasSeriesType(): bool @@ -30,7 +31,8 @@ public function hasSeriesType(): bool public function unsetSeriesType(): self { - return $this->remove('seriesType'); + $this->remove('seriesType'); + return $this; } /** @@ -46,7 +48,8 @@ public function getSeriesName() */ public function setSeriesName($value): self { - return $this->set('seriesName', $value); + $this->set('seriesName', $value); + return $this; } public function hasSeriesName(): bool @@ -56,7 +59,8 @@ public function hasSeriesName(): bool public function unsetSeriesName(): self { - return $this->remove('seriesName'); + $this->remove('seriesName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getIssnPrint() */ public function setIssnPrint($value): self { - return $this->set('issnPrint', $value); + $this->set('issnPrint', $value); + return $this; } public function hasIssnPrint(): bool @@ -82,7 +87,8 @@ public function hasIssnPrint(): bool public function unsetIssnPrint(): self { - return $this->remove('issnPrint'); + $this->remove('issnPrint'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssnDigital() */ public function setIssnDigital($value): self { - return $this->set('issnDigital', $value); + $this->set('issnDigital', $value); + return $this; } public function hasIssnDigital(): bool @@ -108,7 +115,8 @@ public function hasIssnDigital(): bool public function unsetIssnDigital(): self { - return $this->remove('issnDigital'); + $this->remove('issnDigital'); + return $this; } /** @@ -124,7 +132,8 @@ public function getSeriesUrl() */ public function setSeriesUrl($value): self { - return $this->set('seriesUrl', $value); + $this->set('seriesUrl', $value); + return $this; } public function hasSeriesUrl(): bool @@ -134,7 +143,8 @@ public function hasSeriesUrl(): bool public function unsetSeriesUrl(): self { - return $this->remove('seriesUrl'); + $this->remove('seriesUrl'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSeriesDescription() */ public function setSeriesDescription($value): self { - return $this->set('seriesDescription', $value); + $this->set('seriesDescription', $value); + return $this; } public function hasSeriesDescription(): bool @@ -160,7 +171,8 @@ public function hasSeriesDescription(): bool public function unsetSeriesDescription(): self { - return $this->remove('seriesDescription'); + $this->remove('seriesDescription'); + return $this; } /** @@ -176,7 +188,8 @@ public function getSeriesCfpUrl() */ public function setSeriesCfpUrl($value): self { - return $this->set('seriesCfpUrl', $value); + $this->set('seriesCfpUrl', $value); + return $this; } public function hasSeriesCfpUrl(): bool @@ -186,7 +199,8 @@ public function hasSeriesCfpUrl(): bool public function unsetSeriesCfpUrl(): self { - return $this->remove('seriesCfpUrl'); + $this->remove('seriesCfpUrl'); + return $this; } /** @@ -202,7 +216,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -212,7 +227,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewSubject.php b/src/GraphQL/Inputs/NewSubject.php index 7113de8..cc630f2 100644 --- a/src/GraphQL/Inputs/NewSubject.php +++ b/src/GraphQL/Inputs/NewSubject.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getSubjectType() */ public function setSubjectType($value): self { - return $this->set('subjectType', $value); + $this->set('subjectType', $value); + return $this; } public function hasSubjectType(): bool @@ -56,7 +59,8 @@ public function hasSubjectType(): bool public function unsetSubjectType(): self { - return $this->remove('subjectType'); + $this->remove('subjectType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSubjectCode() */ public function setSubjectCode($value): self { - return $this->set('subjectCode', $value); + $this->set('subjectCode', $value); + return $this; } public function hasSubjectCode(): bool @@ -82,7 +87,8 @@ public function hasSubjectCode(): bool public function unsetSubjectCode(): self { - return $this->remove('subjectCode'); + $this->remove('subjectCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getSubjectOrdinal() */ public function setSubjectOrdinal($value): self { - return $this->set('subjectOrdinal', $value); + $this->set('subjectOrdinal', $value); + return $this; } public function hasSubjectOrdinal(): bool @@ -108,7 +115,8 @@ public function hasSubjectOrdinal(): bool public function unsetSubjectOrdinal(): self { - return $this->remove('subjectOrdinal'); + $this->remove('subjectOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewTitle.php b/src/GraphQL/Inputs/NewTitle.php index 934d75f..b3e4da0 100644 --- a/src/GraphQL/Inputs/NewTitle.php +++ b/src/GraphQL/Inputs/NewTitle.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -56,7 +59,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -72,7 +76,8 @@ public function getFullTitle() */ public function setFullTitle($value): self { - return $this->set('fullTitle', $value); + $this->set('fullTitle', $value); + return $this; } public function hasFullTitle(): bool @@ -82,7 +87,8 @@ public function hasFullTitle(): bool public function unsetFullTitle(): self { - return $this->remove('fullTitle'); + $this->remove('fullTitle'); + return $this; } /** @@ -98,7 +104,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -108,7 +115,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -124,7 +132,8 @@ public function getSubtitle() */ public function setSubtitle($value): self { - return $this->set('subtitle', $value); + $this->set('subtitle', $value); + return $this; } public function hasSubtitle(): bool @@ -134,7 +143,8 @@ public function hasSubtitle(): bool public function unsetSubtitle(): self { - return $this->remove('subtitle'); + $this->remove('subtitle'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -160,7 +171,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewWork.php b/src/GraphQL/Inputs/NewWork.php index 4090fb2..7c90715 100644 --- a/src/GraphQL/Inputs/NewWork.php +++ b/src/GraphQL/Inputs/NewWork.php @@ -20,7 +20,8 @@ public function getWorkType() */ public function setWorkType($value): self { - return $this->set('workType', $value); + $this->set('workType', $value); + return $this; } public function hasWorkType(): bool @@ -30,7 +31,8 @@ public function hasWorkType(): bool public function unsetWorkType(): self { - return $this->remove('workType'); + $this->remove('workType'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkStatus() */ public function setWorkStatus($value): self { - return $this->set('workStatus', $value); + $this->set('workStatus', $value); + return $this; } public function hasWorkStatus(): bool @@ -56,7 +59,8 @@ public function hasWorkStatus(): bool public function unsetWorkStatus(): self { - return $this->remove('workStatus'); + $this->remove('workStatus'); + return $this; } /** @@ -72,7 +76,8 @@ public function getReference() */ public function setReference($value): self { - return $this->set('reference', $value); + $this->set('reference', $value); + return $this; } public function hasReference(): bool @@ -82,7 +87,8 @@ public function hasReference(): bool public function unsetReference(): self { - return $this->remove('reference'); + $this->remove('reference'); + return $this; } /** @@ -98,7 +104,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -108,7 +115,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -124,7 +132,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -134,7 +143,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -160,7 +171,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -176,7 +188,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -186,7 +199,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -202,7 +216,8 @@ public function getWithdrawnDate() */ public function setWithdrawnDate($value): self { - return $this->set('withdrawnDate', $value); + $this->set('withdrawnDate', $value); + return $this; } public function hasWithdrawnDate(): bool @@ -212,7 +227,8 @@ public function hasWithdrawnDate(): bool public function unsetWithdrawnDate(): self { - return $this->remove('withdrawnDate'); + $this->remove('withdrawnDate'); + return $this; } /** @@ -228,7 +244,8 @@ public function getPlace() */ public function setPlace($value): self { - return $this->set('place', $value); + $this->set('place', $value); + return $this; } public function hasPlace(): bool @@ -238,7 +255,8 @@ public function hasPlace(): bool public function unsetPlace(): self { - return $this->remove('place'); + $this->remove('place'); + return $this; } /** @@ -254,7 +272,8 @@ public function getPageCount() */ public function setPageCount($value): self { - return $this->set('pageCount', $value); + $this->set('pageCount', $value); + return $this; } public function hasPageCount(): bool @@ -264,7 +283,8 @@ public function hasPageCount(): bool public function unsetPageCount(): self { - return $this->remove('pageCount'); + $this->remove('pageCount'); + return $this; } /** @@ -280,7 +300,8 @@ public function getPageBreakdown() */ public function setPageBreakdown($value): self { - return $this->set('pageBreakdown', $value); + $this->set('pageBreakdown', $value); + return $this; } public function hasPageBreakdown(): bool @@ -290,7 +311,8 @@ public function hasPageBreakdown(): bool public function unsetPageBreakdown(): self { - return $this->remove('pageBreakdown'); + $this->remove('pageBreakdown'); + return $this; } /** @@ -306,7 +328,8 @@ public function getImageCount() */ public function setImageCount($value): self { - return $this->set('imageCount', $value); + $this->set('imageCount', $value); + return $this; } public function hasImageCount(): bool @@ -316,7 +339,8 @@ public function hasImageCount(): bool public function unsetImageCount(): self { - return $this->remove('imageCount'); + $this->remove('imageCount'); + return $this; } /** @@ -332,7 +356,8 @@ public function getTableCount() */ public function setTableCount($value): self { - return $this->set('tableCount', $value); + $this->set('tableCount', $value); + return $this; } public function hasTableCount(): bool @@ -342,7 +367,8 @@ public function hasTableCount(): bool public function unsetTableCount(): self { - return $this->remove('tableCount'); + $this->remove('tableCount'); + return $this; } /** @@ -358,7 +384,8 @@ public function getAudioCount() */ public function setAudioCount($value): self { - return $this->set('audioCount', $value); + $this->set('audioCount', $value); + return $this; } public function hasAudioCount(): bool @@ -368,7 +395,8 @@ public function hasAudioCount(): bool public function unsetAudioCount(): self { - return $this->remove('audioCount'); + $this->remove('audioCount'); + return $this; } /** @@ -384,7 +412,8 @@ public function getVideoCount() */ public function setVideoCount($value): self { - return $this->set('videoCount', $value); + $this->set('videoCount', $value); + return $this; } public function hasVideoCount(): bool @@ -394,7 +423,8 @@ public function hasVideoCount(): bool public function unsetVideoCount(): self { - return $this->remove('videoCount'); + $this->remove('videoCount'); + return $this; } /** @@ -410,7 +440,8 @@ public function getLicense() */ public function setLicense($value): self { - return $this->set('license', $value); + $this->set('license', $value); + return $this; } public function hasLicense(): bool @@ -420,7 +451,8 @@ public function hasLicense(): bool public function unsetLicense(): self { - return $this->remove('license'); + $this->remove('license'); + return $this; } /** @@ -436,7 +468,8 @@ public function getCopyrightHolder() */ public function setCopyrightHolder($value): self { - return $this->set('copyrightHolder', $value); + $this->set('copyrightHolder', $value); + return $this; } public function hasCopyrightHolder(): bool @@ -446,7 +479,8 @@ public function hasCopyrightHolder(): bool public function unsetCopyrightHolder(): self { - return $this->remove('copyrightHolder'); + $this->remove('copyrightHolder'); + return $this; } /** @@ -462,7 +496,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -472,7 +507,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -488,7 +524,8 @@ public function getLccn() */ public function setLccn($value): self { - return $this->set('lccn', $value); + $this->set('lccn', $value); + return $this; } public function hasLccn(): bool @@ -498,7 +535,8 @@ public function hasLccn(): bool public function unsetLccn(): self { - return $this->remove('lccn'); + $this->remove('lccn'); + return $this; } /** @@ -514,7 +552,8 @@ public function getOclc() */ public function setOclc($value): self { - return $this->set('oclc', $value); + $this->set('oclc', $value); + return $this; } public function hasOclc(): bool @@ -524,7 +563,8 @@ public function hasOclc(): bool public function unsetOclc(): self { - return $this->remove('oclc'); + $this->remove('oclc'); + return $this; } /** @@ -540,7 +580,8 @@ public function getGeneralNote() */ public function setGeneralNote($value): self { - return $this->set('generalNote', $value); + $this->set('generalNote', $value); + return $this; } public function hasGeneralNote(): bool @@ -550,7 +591,8 @@ public function hasGeneralNote(): bool public function unsetGeneralNote(): self { - return $this->remove('generalNote'); + $this->remove('generalNote'); + return $this; } /** @@ -566,7 +608,8 @@ public function getBibliographyNote() */ public function setBibliographyNote($value): self { - return $this->set('bibliographyNote', $value); + $this->set('bibliographyNote', $value); + return $this; } public function hasBibliographyNote(): bool @@ -576,7 +619,8 @@ public function hasBibliographyNote(): bool public function unsetBibliographyNote(): self { - return $this->remove('bibliographyNote'); + $this->remove('bibliographyNote'); + return $this; } /** @@ -592,7 +636,8 @@ public function getToc() */ public function setToc($value): self { - return $this->set('toc', $value); + $this->set('toc', $value); + return $this; } public function hasToc(): bool @@ -602,7 +647,8 @@ public function hasToc(): bool public function unsetToc(): self { - return $this->remove('toc'); + $this->remove('toc'); + return $this; } /** @@ -618,7 +664,8 @@ public function getResourcesDescription() */ public function setResourcesDescription($value): self { - return $this->set('resourcesDescription', $value); + $this->set('resourcesDescription', $value); + return $this; } public function hasResourcesDescription(): bool @@ -628,7 +675,8 @@ public function hasResourcesDescription(): bool public function unsetResourcesDescription(): self { - return $this->remove('resourcesDescription'); + $this->remove('resourcesDescription'); + return $this; } /** @@ -644,7 +692,8 @@ public function getCoverUrl() */ public function setCoverUrl($value): self { - return $this->set('coverUrl', $value); + $this->set('coverUrl', $value); + return $this; } public function hasCoverUrl(): bool @@ -654,7 +703,8 @@ public function hasCoverUrl(): bool public function unsetCoverUrl(): self { - return $this->remove('coverUrl'); + $this->remove('coverUrl'); + return $this; } /** @@ -670,7 +720,8 @@ public function getCoverCaption() */ public function setCoverCaption($value): self { - return $this->set('coverCaption', $value); + $this->set('coverCaption', $value); + return $this; } public function hasCoverCaption(): bool @@ -680,7 +731,8 @@ public function hasCoverCaption(): bool public function unsetCoverCaption(): self { - return $this->remove('coverCaption'); + $this->remove('coverCaption'); + return $this; } /** @@ -696,7 +748,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -706,7 +759,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -722,7 +776,8 @@ public function getLastPage() */ public function setLastPage($value): self { - return $this->set('lastPage', $value); + $this->set('lastPage', $value); + return $this; } public function hasLastPage(): bool @@ -732,7 +787,8 @@ public function hasLastPage(): bool public function unsetLastPage(): self { - return $this->remove('lastPage'); + $this->remove('lastPage'); + return $this; } /** @@ -748,7 +804,8 @@ public function getPageInterval() */ public function setPageInterval($value): self { - return $this->set('pageInterval', $value); + $this->set('pageInterval', $value); + return $this; } public function hasPageInterval(): bool @@ -758,7 +815,8 @@ public function hasPageInterval(): bool public function unsetPageInterval(): self { - return $this->remove('pageInterval'); + $this->remove('pageInterval'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewWorkFeaturedVideo.php b/src/GraphQL/Inputs/NewWorkFeaturedVideo.php index f0e9dbf..9ab83a3 100644 --- a/src/GraphQL/Inputs/NewWorkFeaturedVideo.php +++ b/src/GraphQL/Inputs/NewWorkFeaturedVideo.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -56,7 +59,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -72,7 +76,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -82,7 +87,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -98,7 +104,8 @@ public function getWidth() */ public function setWidth($value): self { - return $this->set('width', $value); + $this->set('width', $value); + return $this; } public function hasWidth(): bool @@ -108,7 +115,8 @@ public function hasWidth(): bool public function unsetWidth(): self { - return $this->remove('width'); + $this->remove('width'); + return $this; } /** @@ -124,7 +132,8 @@ public function getHeight() */ public function setHeight($value): self { - return $this->set('height', $value); + $this->set('height', $value); + return $this; } public function hasHeight(): bool @@ -134,7 +143,8 @@ public function hasHeight(): bool public function unsetHeight(): self { - return $this->remove('height'); + $this->remove('height'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php b/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php index fb0ebc6..55f0577 100644 --- a/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php +++ b/src/GraphQL/Inputs/NewWorkFeaturedVideoFileUpload.php @@ -20,7 +20,8 @@ public function getWorkFeaturedVideoId() */ public function setWorkFeaturedVideoId($value): self { - return $this->set('workFeaturedVideoId', $value); + $this->set('workFeaturedVideoId', $value); + return $this; } public function hasWorkFeaturedVideoId(): bool @@ -30,7 +31,8 @@ public function hasWorkFeaturedVideoId(): bool public function unsetWorkFeaturedVideoId(): self { - return $this->remove('workFeaturedVideoId'); + $this->remove('workFeaturedVideoId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDeclaredMimeType() */ public function setDeclaredMimeType($value): self { - return $this->set('declaredMimeType', $value); + $this->set('declaredMimeType', $value); + return $this; } public function hasDeclaredMimeType(): bool @@ -56,7 +59,8 @@ public function hasDeclaredMimeType(): bool public function unsetDeclaredMimeType(): self { - return $this->remove('declaredMimeType'); + $this->remove('declaredMimeType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getDeclaredExtension() */ public function setDeclaredExtension($value): self { - return $this->set('declaredExtension', $value); + $this->set('declaredExtension', $value); + return $this; } public function hasDeclaredExtension(): bool @@ -82,7 +87,8 @@ public function hasDeclaredExtension(): bool public function unsetDeclaredExtension(): self { - return $this->remove('declaredExtension'); + $this->remove('declaredExtension'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDeclaredSha256() */ public function setDeclaredSha256($value): self { - return $this->set('declaredSha256', $value); + $this->set('declaredSha256', $value); + return $this; } public function hasDeclaredSha256(): bool @@ -108,7 +115,8 @@ public function hasDeclaredSha256(): bool public function unsetDeclaredSha256(): self { - return $this->remove('declaredSha256'); + $this->remove('declaredSha256'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/NewWorkRelation.php b/src/GraphQL/Inputs/NewWorkRelation.php index 05756f7..237c576 100644 --- a/src/GraphQL/Inputs/NewWorkRelation.php +++ b/src/GraphQL/Inputs/NewWorkRelation.php @@ -20,7 +20,8 @@ public function getRelatorWorkId() */ public function setRelatorWorkId($value): self { - return $this->set('relatorWorkId', $value); + $this->set('relatorWorkId', $value); + return $this; } public function hasRelatorWorkId(): bool @@ -30,7 +31,8 @@ public function hasRelatorWorkId(): bool public function unsetRelatorWorkId(): self { - return $this->remove('relatorWorkId'); + $this->remove('relatorWorkId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getRelatedWorkId() */ public function setRelatedWorkId($value): self { - return $this->set('relatedWorkId', $value); + $this->set('relatedWorkId', $value); + return $this; } public function hasRelatedWorkId(): bool @@ -56,7 +59,8 @@ public function hasRelatedWorkId(): bool public function unsetRelatedWorkId(): self { - return $this->remove('relatedWorkId'); + $this->remove('relatedWorkId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getRelationType() */ public function setRelationType($value): self { - return $this->set('relationType', $value); + $this->set('relationType', $value); + return $this; } public function hasRelationType(): bool @@ -82,7 +87,8 @@ public function hasRelationType(): bool public function unsetRelationType(): self { - return $this->remove('relationType'); + $this->remove('relationType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getRelationOrdinal() */ public function setRelationOrdinal($value): self { - return $this->set('relationOrdinal', $value); + $this->set('relationOrdinal', $value); + return $this; } public function hasRelationOrdinal(): bool @@ -108,7 +115,8 @@ public function hasRelationOrdinal(): bool public function unsetRelationOrdinal(): self { - return $this->remove('relationOrdinal'); + $this->remove('relationOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchAbstract.php b/src/GraphQL/Inputs/PatchAbstract.php index b456f84..72dd4d6 100644 --- a/src/GraphQL/Inputs/PatchAbstract.php +++ b/src/GraphQL/Inputs/PatchAbstract.php @@ -20,7 +20,8 @@ public function getAbstractId() */ public function setAbstractId($value): self { - return $this->set('abstractId', $value); + $this->set('abstractId', $value); + return $this; } public function hasAbstractId(): bool @@ -30,7 +31,8 @@ public function hasAbstractId(): bool public function unsetAbstractId(): self { - return $this->remove('abstractId'); + $this->remove('abstractId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -82,7 +87,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -108,7 +115,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAbstractType() */ public function setAbstractType($value): self { - return $this->set('abstractType', $value); + $this->set('abstractType', $value); + return $this; } public function hasAbstractType(): bool @@ -134,7 +143,8 @@ public function hasAbstractType(): bool public function unsetAbstractType(): self { - return $this->remove('abstractType'); + $this->remove('abstractType'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -160,7 +171,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchAdditionalResource.php b/src/GraphQL/Inputs/PatchAdditionalResource.php index 04fef62..3c99c68 100644 --- a/src/GraphQL/Inputs/PatchAdditionalResource.php +++ b/src/GraphQL/Inputs/PatchAdditionalResource.php @@ -20,7 +20,8 @@ public function getAdditionalResourceId() */ public function setAdditionalResourceId($value): self { - return $this->set('additionalResourceId', $value); + $this->set('additionalResourceId', $value); + return $this; } public function hasAdditionalResourceId(): bool @@ -30,7 +31,8 @@ public function hasAdditionalResourceId(): bool public function unsetAdditionalResourceId(): self { - return $this->remove('additionalResourceId'); + $this->remove('additionalResourceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDescription() */ public function setDescription($value): self { - return $this->set('description', $value); + $this->set('description', $value); + return $this; } public function hasDescription(): bool @@ -108,7 +115,8 @@ public function hasDescription(): bool public function unsetDescription(): self { - return $this->remove('description'); + $this->remove('description'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAttribution() */ public function setAttribution($value): self { - return $this->set('attribution', $value); + $this->set('attribution', $value); + return $this; } public function hasAttribution(): bool @@ -134,7 +143,8 @@ public function hasAttribution(): bool public function unsetAttribution(): self { - return $this->remove('attribution'); + $this->remove('attribution'); + return $this; } /** @@ -150,7 +160,8 @@ public function getResourceType() */ public function setResourceType($value): self { - return $this->set('resourceType', $value); + $this->set('resourceType', $value); + return $this; } public function hasResourceType(): bool @@ -160,7 +171,8 @@ public function hasResourceType(): bool public function unsetResourceType(): self { - return $this->remove('resourceType'); + $this->remove('resourceType'); + return $this; } /** @@ -176,7 +188,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -186,7 +199,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -202,7 +216,8 @@ public function getHandle() */ public function setHandle($value): self { - return $this->set('handle', $value); + $this->set('handle', $value); + return $this; } public function hasHandle(): bool @@ -212,7 +227,8 @@ public function hasHandle(): bool public function unsetHandle(): self { - return $this->remove('handle'); + $this->remove('handle'); + return $this; } /** @@ -228,7 +244,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -238,7 +255,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDate() */ public function setDate($value): self { - return $this->set('date', $value); + $this->set('date', $value); + return $this; } public function hasDate(): bool @@ -264,7 +283,8 @@ public function hasDate(): bool public function unsetDate(): self { - return $this->remove('date'); + $this->remove('date'); + return $this; } /** @@ -280,7 +300,8 @@ public function getResourceOrdinal() */ public function setResourceOrdinal($value): self { - return $this->set('resourceOrdinal', $value); + $this->set('resourceOrdinal', $value); + return $this; } public function hasResourceOrdinal(): bool @@ -290,7 +311,8 @@ public function hasResourceOrdinal(): bool public function unsetResourceOrdinal(): self { - return $this->remove('resourceOrdinal'); + $this->remove('resourceOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchAffiliation.php b/src/GraphQL/Inputs/PatchAffiliation.php index 6dc76ce..86a01fd 100644 --- a/src/GraphQL/Inputs/PatchAffiliation.php +++ b/src/GraphQL/Inputs/PatchAffiliation.php @@ -20,7 +20,8 @@ public function getAffiliationId() */ public function setAffiliationId($value): self { - return $this->set('affiliationId', $value); + $this->set('affiliationId', $value); + return $this; } public function hasAffiliationId(): bool @@ -30,7 +31,8 @@ public function hasAffiliationId(): bool public function unsetAffiliationId(): self { - return $this->remove('affiliationId'); + $this->remove('affiliationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -56,7 +59,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -82,7 +87,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAffiliationOrdinal() */ public function setAffiliationOrdinal($value): self { - return $this->set('affiliationOrdinal', $value); + $this->set('affiliationOrdinal', $value); + return $this; } public function hasAffiliationOrdinal(): bool @@ -108,7 +115,8 @@ public function hasAffiliationOrdinal(): bool public function unsetAffiliationOrdinal(): self { - return $this->remove('affiliationOrdinal'); + $this->remove('affiliationOrdinal'); + return $this; } /** @@ -124,7 +132,8 @@ public function getPosition() */ public function setPosition($value): self { - return $this->set('position', $value); + $this->set('position', $value); + return $this; } public function hasPosition(): bool @@ -134,7 +143,8 @@ public function hasPosition(): bool public function unsetPosition(): self { - return $this->remove('position'); + $this->remove('position'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchAward.php b/src/GraphQL/Inputs/PatchAward.php index 92abd66..6c936c2 100644 --- a/src/GraphQL/Inputs/PatchAward.php +++ b/src/GraphQL/Inputs/PatchAward.php @@ -20,7 +20,8 @@ public function getAwardId() */ public function setAwardId($value): self { - return $this->set('awardId', $value); + $this->set('awardId', $value); + return $this; } public function hasAwardId(): bool @@ -30,7 +31,8 @@ public function hasAwardId(): bool public function unsetAwardId(): self { - return $this->remove('awardId'); + $this->remove('awardId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -108,7 +115,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCategory() */ public function setCategory($value): self { - return $this->set('category', $value); + $this->set('category', $value); + return $this; } public function hasCategory(): bool @@ -134,7 +143,8 @@ public function hasCategory(): bool public function unsetCategory(): self { - return $this->remove('category'); + $this->remove('category'); + return $this; } /** @@ -150,7 +160,8 @@ public function getYear() */ public function setYear($value): self { - return $this->set('year', $value); + $this->set('year', $value); + return $this; } public function hasYear(): bool @@ -160,7 +171,8 @@ public function hasYear(): bool public function unsetYear(): self { - return $this->remove('year'); + $this->remove('year'); + return $this; } /** @@ -176,7 +188,8 @@ public function getJury() */ public function setJury($value): self { - return $this->set('jury', $value); + $this->set('jury', $value); + return $this; } public function hasJury(): bool @@ -186,7 +199,8 @@ public function hasJury(): bool public function unsetJury(): self { - return $this->remove('jury'); + $this->remove('jury'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCountry() */ public function setCountry($value): self { - return $this->set('country', $value); + $this->set('country', $value); + return $this; } public function hasCountry(): bool @@ -212,7 +227,8 @@ public function hasCountry(): bool public function unsetCountry(): self { - return $this->remove('country'); + $this->remove('country'); + return $this; } /** @@ -228,7 +244,8 @@ public function getPrizeStatement() */ public function setPrizeStatement($value): self { - return $this->set('prizeStatement', $value); + $this->set('prizeStatement', $value); + return $this; } public function hasPrizeStatement(): bool @@ -238,7 +255,8 @@ public function hasPrizeStatement(): bool public function unsetPrizeStatement(): self { - return $this->remove('prizeStatement'); + $this->remove('prizeStatement'); + return $this; } /** @@ -254,7 +272,8 @@ public function getRole() */ public function setRole($value): self { - return $this->set('role', $value); + $this->set('role', $value); + return $this; } public function hasRole(): bool @@ -264,7 +283,8 @@ public function hasRole(): bool public function unsetRole(): self { - return $this->remove('role'); + $this->remove('role'); + return $this; } /** @@ -280,7 +300,8 @@ public function getAwardOrdinal() */ public function setAwardOrdinal($value): self { - return $this->set('awardOrdinal', $value); + $this->set('awardOrdinal', $value); + return $this; } public function hasAwardOrdinal(): bool @@ -290,7 +311,8 @@ public function hasAwardOrdinal(): bool public function unsetAwardOrdinal(): self { - return $this->remove('awardOrdinal'); + $this->remove('awardOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchBiography.php b/src/GraphQL/Inputs/PatchBiography.php index 3bab681..0b8f2fd 100644 --- a/src/GraphQL/Inputs/PatchBiography.php +++ b/src/GraphQL/Inputs/PatchBiography.php @@ -20,7 +20,8 @@ public function getBiographyId() */ public function setBiographyId($value): self { - return $this->set('biographyId', $value); + $this->set('biographyId', $value); + return $this; } public function hasBiographyId(): bool @@ -30,7 +31,8 @@ public function hasBiographyId(): bool public function unsetBiographyId(): self { - return $this->remove('biographyId'); + $this->remove('biographyId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -56,7 +59,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -82,7 +87,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -108,7 +115,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -124,7 +132,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -134,7 +143,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchBookReview.php b/src/GraphQL/Inputs/PatchBookReview.php index 1043c13..c4cb900 100644 --- a/src/GraphQL/Inputs/PatchBookReview.php +++ b/src/GraphQL/Inputs/PatchBookReview.php @@ -20,7 +20,8 @@ public function getBookReviewId() */ public function setBookReviewId($value): self { - return $this->set('bookReviewId', $value); + $this->set('bookReviewId', $value); + return $this; } public function hasBookReviewId(): bool @@ -30,7 +31,8 @@ public function hasBookReviewId(): bool public function unsetBookReviewId(): self { - return $this->remove('bookReviewId'); + $this->remove('bookReviewId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -108,7 +115,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getReviewerOrcid() */ public function setReviewerOrcid($value): self { - return $this->set('reviewerOrcid', $value); + $this->set('reviewerOrcid', $value); + return $this; } public function hasReviewerOrcid(): bool @@ -134,7 +143,8 @@ public function hasReviewerOrcid(): bool public function unsetReviewerOrcid(): self { - return $this->remove('reviewerOrcid'); + $this->remove('reviewerOrcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getReviewerInstitutionId() */ public function setReviewerInstitutionId($value): self { - return $this->set('reviewerInstitutionId', $value); + $this->set('reviewerInstitutionId', $value); + return $this; } public function hasReviewerInstitutionId(): bool @@ -160,7 +171,8 @@ public function hasReviewerInstitutionId(): bool public function unsetReviewerInstitutionId(): self { - return $this->remove('reviewerInstitutionId'); + $this->remove('reviewerInstitutionId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -186,7 +199,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -202,7 +216,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -212,7 +227,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -228,7 +244,8 @@ public function getReviewDate() */ public function setReviewDate($value): self { - return $this->set('reviewDate', $value); + $this->set('reviewDate', $value); + return $this; } public function hasReviewDate(): bool @@ -238,7 +255,8 @@ public function hasReviewDate(): bool public function unsetReviewDate(): self { - return $this->remove('reviewDate'); + $this->remove('reviewDate'); + return $this; } /** @@ -254,7 +272,8 @@ public function getJournalName() */ public function setJournalName($value): self { - return $this->set('journalName', $value); + $this->set('journalName', $value); + return $this; } public function hasJournalName(): bool @@ -264,7 +283,8 @@ public function hasJournalName(): bool public function unsetJournalName(): self { - return $this->remove('journalName'); + $this->remove('journalName'); + return $this; } /** @@ -280,7 +300,8 @@ public function getJournalVolume() */ public function setJournalVolume($value): self { - return $this->set('journalVolume', $value); + $this->set('journalVolume', $value); + return $this; } public function hasJournalVolume(): bool @@ -290,7 +311,8 @@ public function hasJournalVolume(): bool public function unsetJournalVolume(): self { - return $this->remove('journalVolume'); + $this->remove('journalVolume'); + return $this; } /** @@ -306,7 +328,8 @@ public function getJournalNumber() */ public function setJournalNumber($value): self { - return $this->set('journalNumber', $value); + $this->set('journalNumber', $value); + return $this; } public function hasJournalNumber(): bool @@ -316,7 +339,8 @@ public function hasJournalNumber(): bool public function unsetJournalNumber(): self { - return $this->remove('journalNumber'); + $this->remove('journalNumber'); + return $this; } /** @@ -332,7 +356,8 @@ public function getJournalIssn() */ public function setJournalIssn($value): self { - return $this->set('journalIssn', $value); + $this->set('journalIssn', $value); + return $this; } public function hasJournalIssn(): bool @@ -342,7 +367,8 @@ public function hasJournalIssn(): bool public function unsetJournalIssn(): self { - return $this->remove('journalIssn'); + $this->remove('journalIssn'); + return $this; } /** @@ -358,7 +384,8 @@ public function getPageRange() */ public function setPageRange($value): self { - return $this->set('pageRange', $value); + $this->set('pageRange', $value); + return $this; } public function hasPageRange(): bool @@ -368,7 +395,8 @@ public function hasPageRange(): bool public function unsetPageRange(): self { - return $this->remove('pageRange'); + $this->remove('pageRange'); + return $this; } /** @@ -384,7 +412,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -394,7 +423,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -410,7 +440,8 @@ public function getReviewOrdinal() */ public function setReviewOrdinal($value): self { - return $this->set('reviewOrdinal', $value); + $this->set('reviewOrdinal', $value); + return $this; } public function hasReviewOrdinal(): bool @@ -420,7 +451,8 @@ public function hasReviewOrdinal(): bool public function unsetReviewOrdinal(): self { - return $this->remove('reviewOrdinal'); + $this->remove('reviewOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchContact.php b/src/GraphQL/Inputs/PatchContact.php index 328c336..97832d3 100644 --- a/src/GraphQL/Inputs/PatchContact.php +++ b/src/GraphQL/Inputs/PatchContact.php @@ -20,7 +20,8 @@ public function getContactId() */ public function setContactId($value): self { - return $this->set('contactId', $value); + $this->set('contactId', $value); + return $this; } public function hasContactId(): bool @@ -30,7 +31,8 @@ public function hasContactId(): bool public function unsetContactId(): self { - return $this->remove('contactId'); + $this->remove('contactId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -56,7 +59,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContactType() */ public function setContactType($value): self { - return $this->set('contactType', $value); + $this->set('contactType', $value); + return $this; } public function hasContactType(): bool @@ -82,7 +87,8 @@ public function hasContactType(): bool public function unsetContactType(): self { - return $this->remove('contactType'); + $this->remove('contactType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getEmail() */ public function setEmail($value): self { - return $this->set('email', $value); + $this->set('email', $value); + return $this; } public function hasEmail(): bool @@ -108,7 +115,8 @@ public function hasEmail(): bool public function unsetEmail(): self { - return $this->remove('email'); + $this->remove('email'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchContribution.php b/src/GraphQL/Inputs/PatchContribution.php index 329910c..7209dd7 100644 --- a/src/GraphQL/Inputs/PatchContribution.php +++ b/src/GraphQL/Inputs/PatchContribution.php @@ -20,7 +20,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -30,7 +31,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContributorId() */ public function setContributorId($value): self { - return $this->set('contributorId', $value); + $this->set('contributorId', $value); + return $this; } public function hasContributorId(): bool @@ -82,7 +87,8 @@ public function hasContributorId(): bool public function unsetContributorId(): self { - return $this->remove('contributorId'); + $this->remove('contributorId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getContributionType() */ public function setContributionType($value): self { - return $this->set('contributionType', $value); + $this->set('contributionType', $value); + return $this; } public function hasContributionType(): bool @@ -108,7 +115,8 @@ public function hasContributionType(): bool public function unsetContributionType(): self { - return $this->remove('contributionType'); + $this->remove('contributionType'); + return $this; } /** @@ -124,7 +132,8 @@ public function getMainContribution() */ public function setMainContribution($value): self { - return $this->set('mainContribution', $value); + $this->set('mainContribution', $value); + return $this; } public function hasMainContribution(): bool @@ -134,7 +143,8 @@ public function hasMainContribution(): bool public function unsetMainContribution(): self { - return $this->remove('mainContribution'); + $this->remove('mainContribution'); + return $this; } /** @@ -150,7 +160,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -160,7 +171,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -176,7 +188,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -186,7 +199,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -202,7 +216,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -212,7 +227,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -228,7 +244,8 @@ public function getContributionOrdinal() */ public function setContributionOrdinal($value): self { - return $this->set('contributionOrdinal', $value); + $this->set('contributionOrdinal', $value); + return $this; } public function hasContributionOrdinal(): bool @@ -238,7 +255,8 @@ public function hasContributionOrdinal(): bool public function unsetContributionOrdinal(): self { - return $this->remove('contributionOrdinal'); + $this->remove('contributionOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchContributor.php b/src/GraphQL/Inputs/PatchContributor.php index 5fb9179..c0a79df 100644 --- a/src/GraphQL/Inputs/PatchContributor.php +++ b/src/GraphQL/Inputs/PatchContributor.php @@ -20,7 +20,8 @@ public function getContributorId() */ public function setContributorId($value): self { - return $this->set('contributorId', $value); + $this->set('contributorId', $value); + return $this; } public function hasContributorId(): bool @@ -30,7 +31,8 @@ public function hasContributorId(): bool public function unsetContributorId(): self { - return $this->remove('contributorId'); + $this->remove('contributorId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -56,7 +59,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -82,7 +87,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -108,7 +115,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getOrcid() */ public function setOrcid($value): self { - return $this->set('orcid', $value); + $this->set('orcid', $value); + return $this; } public function hasOrcid(): bool @@ -134,7 +143,8 @@ public function hasOrcid(): bool public function unsetOrcid(): self { - return $this->remove('orcid'); + $this->remove('orcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getWebsite() */ public function setWebsite($value): self { - return $this->set('website', $value); + $this->set('website', $value); + return $this; } public function hasWebsite(): bool @@ -160,7 +171,8 @@ public function hasWebsite(): bool public function unsetWebsite(): self { - return $this->remove('website'); + $this->remove('website'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchEndorsement.php b/src/GraphQL/Inputs/PatchEndorsement.php index c43bf7b..a50c787 100644 --- a/src/GraphQL/Inputs/PatchEndorsement.php +++ b/src/GraphQL/Inputs/PatchEndorsement.php @@ -20,7 +20,8 @@ public function getEndorsementId() */ public function setEndorsementId($value): self { - return $this->set('endorsementId', $value); + $this->set('endorsementId', $value); + return $this; } public function hasEndorsementId(): bool @@ -30,7 +31,8 @@ public function hasEndorsementId(): bool public function unsetEndorsementId(): self { - return $this->remove('endorsementId'); + $this->remove('endorsementId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -82,7 +87,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAuthorRole() */ public function setAuthorRole($value): self { - return $this->set('authorRole', $value); + $this->set('authorRole', $value); + return $this; } public function hasAuthorRole(): bool @@ -108,7 +115,8 @@ public function hasAuthorRole(): bool public function unsetAuthorRole(): self { - return $this->remove('authorRole'); + $this->remove('authorRole'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAuthorOrcid() */ public function setAuthorOrcid($value): self { - return $this->set('authorOrcid', $value); + $this->set('authorOrcid', $value); + return $this; } public function hasAuthorOrcid(): bool @@ -134,7 +143,8 @@ public function hasAuthorOrcid(): bool public function unsetAuthorOrcid(): self { - return $this->remove('authorOrcid'); + $this->remove('authorOrcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAuthorInstitutionId() */ public function setAuthorInstitutionId($value): self { - return $this->set('authorInstitutionId', $value); + $this->set('authorInstitutionId', $value); + return $this; } public function hasAuthorInstitutionId(): bool @@ -160,7 +171,8 @@ public function hasAuthorInstitutionId(): bool public function unsetAuthorInstitutionId(): self { - return $this->remove('authorInstitutionId'); + $this->remove('authorInstitutionId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -186,7 +199,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -202,7 +216,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -212,7 +227,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -228,7 +244,8 @@ public function getEndorsementOrdinal() */ public function setEndorsementOrdinal($value): self { - return $this->set('endorsementOrdinal', $value); + $this->set('endorsementOrdinal', $value); + return $this; } public function hasEndorsementOrdinal(): bool @@ -238,7 +255,8 @@ public function hasEndorsementOrdinal(): bool public function unsetEndorsementOrdinal(): self { - return $this->remove('endorsementOrdinal'); + $this->remove('endorsementOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchFunding.php b/src/GraphQL/Inputs/PatchFunding.php index eff713c..a12be48 100644 --- a/src/GraphQL/Inputs/PatchFunding.php +++ b/src/GraphQL/Inputs/PatchFunding.php @@ -20,7 +20,8 @@ public function getFundingId() */ public function setFundingId($value): self { - return $this->set('fundingId', $value); + $this->set('fundingId', $value); + return $this; } public function hasFundingId(): bool @@ -30,7 +31,8 @@ public function hasFundingId(): bool public function unsetFundingId(): self { - return $this->remove('fundingId'); + $this->remove('fundingId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -82,7 +87,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getProgram() */ public function setProgram($value): self { - return $this->set('program', $value); + $this->set('program', $value); + return $this; } public function hasProgram(): bool @@ -108,7 +115,8 @@ public function hasProgram(): bool public function unsetProgram(): self { - return $this->remove('program'); + $this->remove('program'); + return $this; } /** @@ -124,7 +132,8 @@ public function getProjectName() */ public function setProjectName($value): self { - return $this->set('projectName', $value); + $this->set('projectName', $value); + return $this; } public function hasProjectName(): bool @@ -134,7 +143,8 @@ public function hasProjectName(): bool public function unsetProjectName(): self { - return $this->remove('projectName'); + $this->remove('projectName'); + return $this; } /** @@ -150,7 +160,8 @@ public function getProjectShortname() */ public function setProjectShortname($value): self { - return $this->set('projectShortname', $value); + $this->set('projectShortname', $value); + return $this; } public function hasProjectShortname(): bool @@ -160,7 +171,8 @@ public function hasProjectShortname(): bool public function unsetProjectShortname(): self { - return $this->remove('projectShortname'); + $this->remove('projectShortname'); + return $this; } /** @@ -176,7 +188,8 @@ public function getGrantNumber() */ public function setGrantNumber($value): self { - return $this->set('grantNumber', $value); + $this->set('grantNumber', $value); + return $this; } public function hasGrantNumber(): bool @@ -186,7 +199,8 @@ public function hasGrantNumber(): bool public function unsetGrantNumber(): self { - return $this->remove('grantNumber'); + $this->remove('grantNumber'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchImprint.php b/src/GraphQL/Inputs/PatchImprint.php index 3af9585..69327f8 100644 --- a/src/GraphQL/Inputs/PatchImprint.php +++ b/src/GraphQL/Inputs/PatchImprint.php @@ -20,7 +20,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -30,7 +31,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -56,7 +59,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getImprintName() */ public function setImprintName($value): self { - return $this->set('imprintName', $value); + $this->set('imprintName', $value); + return $this; } public function hasImprintName(): bool @@ -82,7 +87,8 @@ public function hasImprintName(): bool public function unsetImprintName(): self { - return $this->remove('imprintName'); + $this->remove('imprintName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getImprintUrl() */ public function setImprintUrl($value): self { - return $this->set('imprintUrl', $value); + $this->set('imprintUrl', $value); + return $this; } public function hasImprintUrl(): bool @@ -108,7 +115,8 @@ public function hasImprintUrl(): bool public function unsetImprintUrl(): self { - return $this->remove('imprintUrl'); + $this->remove('imprintUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCrossmarkDoi() */ public function setCrossmarkDoi($value): self { - return $this->set('crossmarkDoi', $value); + $this->set('crossmarkDoi', $value); + return $this; } public function hasCrossmarkDoi(): bool @@ -134,7 +143,8 @@ public function hasCrossmarkDoi(): bool public function unsetCrossmarkDoi(): self { - return $this->remove('crossmarkDoi'); + $this->remove('crossmarkDoi'); + return $this; } /** @@ -150,7 +160,8 @@ public function getS3Bucket() */ public function setS3Bucket($value): self { - return $this->set('s3Bucket', $value); + $this->set('s3Bucket', $value); + return $this; } public function hasS3Bucket(): bool @@ -160,7 +171,8 @@ public function hasS3Bucket(): bool public function unsetS3Bucket(): self { - return $this->remove('s3Bucket'); + $this->remove('s3Bucket'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCdnDomain() */ public function setCdnDomain($value): self { - return $this->set('cdnDomain', $value); + $this->set('cdnDomain', $value); + return $this; } public function hasCdnDomain(): bool @@ -186,7 +199,8 @@ public function hasCdnDomain(): bool public function unsetCdnDomain(): self { - return $this->remove('cdnDomain'); + $this->remove('cdnDomain'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCloudfrontDistId() */ public function setCloudfrontDistId($value): self { - return $this->set('cloudfrontDistId', $value); + $this->set('cloudfrontDistId', $value); + return $this; } public function hasCloudfrontDistId(): bool @@ -212,7 +227,8 @@ public function hasCloudfrontDistId(): bool public function unsetCloudfrontDistId(): self { - return $this->remove('cloudfrontDistId'); + $this->remove('cloudfrontDistId'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDefaultCurrency() */ public function setDefaultCurrency($value): self { - return $this->set('defaultCurrency', $value); + $this->set('defaultCurrency', $value); + return $this; } public function hasDefaultCurrency(): bool @@ -238,7 +255,8 @@ public function hasDefaultCurrency(): bool public function unsetDefaultCurrency(): self { - return $this->remove('defaultCurrency'); + $this->remove('defaultCurrency'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDefaultPlace() */ public function setDefaultPlace($value): self { - return $this->set('defaultPlace', $value); + $this->set('defaultPlace', $value); + return $this; } public function hasDefaultPlace(): bool @@ -264,7 +283,8 @@ public function hasDefaultPlace(): bool public function unsetDefaultPlace(): self { - return $this->remove('defaultPlace'); + $this->remove('defaultPlace'); + return $this; } /** @@ -280,7 +300,8 @@ public function getDefaultLocale() */ public function setDefaultLocale($value): self { - return $this->set('defaultLocale', $value); + $this->set('defaultLocale', $value); + return $this; } public function hasDefaultLocale(): bool @@ -290,7 +311,8 @@ public function hasDefaultLocale(): bool public function unsetDefaultLocale(): self { - return $this->remove('defaultLocale'); + $this->remove('defaultLocale'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchInstitution.php b/src/GraphQL/Inputs/PatchInstitution.php index 39a648b..f96aaa9 100644 --- a/src/GraphQL/Inputs/PatchInstitution.php +++ b/src/GraphQL/Inputs/PatchInstitution.php @@ -20,7 +20,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -30,7 +31,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getInstitutionName() */ public function setInstitutionName($value): self { - return $this->set('institutionName', $value); + $this->set('institutionName', $value); + return $this; } public function hasInstitutionName(): bool @@ -56,7 +59,8 @@ public function hasInstitutionName(): bool public function unsetInstitutionName(): self { - return $this->remove('institutionName'); + $this->remove('institutionName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionDoi() */ public function setInstitutionDoi($value): self { - return $this->set('institutionDoi', $value); + $this->set('institutionDoi', $value); + return $this; } public function hasInstitutionDoi(): bool @@ -82,7 +87,8 @@ public function hasInstitutionDoi(): bool public function unsetInstitutionDoi(): self { - return $this->remove('institutionDoi'); + $this->remove('institutionDoi'); + return $this; } /** @@ -98,7 +104,8 @@ public function getRor() */ public function setRor($value): self { - return $this->set('ror', $value); + $this->set('ror', $value); + return $this; } public function hasRor(): bool @@ -108,7 +115,8 @@ public function hasRor(): bool public function unsetRor(): self { - return $this->remove('ror'); + $this->remove('ror'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCountryCode() */ public function setCountryCode($value): self { - return $this->set('countryCode', $value); + $this->set('countryCode', $value); + return $this; } public function hasCountryCode(): bool @@ -134,7 +143,8 @@ public function hasCountryCode(): bool public function unsetCountryCode(): self { - return $this->remove('countryCode'); + $this->remove('countryCode'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchIssue.php b/src/GraphQL/Inputs/PatchIssue.php index 90303cf..dc37698 100644 --- a/src/GraphQL/Inputs/PatchIssue.php +++ b/src/GraphQL/Inputs/PatchIssue.php @@ -20,7 +20,8 @@ public function getIssueId() */ public function setIssueId($value): self { - return $this->set('issueId', $value); + $this->set('issueId', $value); + return $this; } public function hasIssueId(): bool @@ -30,7 +31,8 @@ public function hasIssueId(): bool public function unsetIssueId(): self { - return $this->remove('issueId'); + $this->remove('issueId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getSeriesId() */ public function setSeriesId($value): self { - return $this->set('seriesId', $value); + $this->set('seriesId', $value); + return $this; } public function hasSeriesId(): bool @@ -56,7 +59,8 @@ public function hasSeriesId(): bool public function unsetSeriesId(): self { - return $this->remove('seriesId'); + $this->remove('seriesId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -82,7 +87,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssueOrdinal() */ public function setIssueOrdinal($value): self { - return $this->set('issueOrdinal', $value); + $this->set('issueOrdinal', $value); + return $this; } public function hasIssueOrdinal(): bool @@ -108,7 +115,8 @@ public function hasIssueOrdinal(): bool public function unsetIssueOrdinal(): self { - return $this->remove('issueOrdinal'); + $this->remove('issueOrdinal'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIssueNumber() */ public function setIssueNumber($value): self { - return $this->set('issueNumber', $value); + $this->set('issueNumber', $value); + return $this; } public function hasIssueNumber(): bool @@ -134,7 +143,8 @@ public function hasIssueNumber(): bool public function unsetIssueNumber(): self { - return $this->remove('issueNumber'); + $this->remove('issueNumber'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchLanguage.php b/src/GraphQL/Inputs/PatchLanguage.php index c42b344..43fc5dd 100644 --- a/src/GraphQL/Inputs/PatchLanguage.php +++ b/src/GraphQL/Inputs/PatchLanguage.php @@ -20,7 +20,8 @@ public function getLanguageId() */ public function setLanguageId($value): self { - return $this->set('languageId', $value); + $this->set('languageId', $value); + return $this; } public function hasLanguageId(): bool @@ -30,7 +31,8 @@ public function hasLanguageId(): bool public function unsetLanguageId(): self { - return $this->remove('languageId'); + $this->remove('languageId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLanguageCode() */ public function setLanguageCode($value): self { - return $this->set('languageCode', $value); + $this->set('languageCode', $value); + return $this; } public function hasLanguageCode(): bool @@ -82,7 +87,8 @@ public function hasLanguageCode(): bool public function unsetLanguageCode(): self { - return $this->remove('languageCode'); + $this->remove('languageCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLanguageRelation() */ public function setLanguageRelation($value): self { - return $this->set('languageRelation', $value); + $this->set('languageRelation', $value); + return $this; } public function hasLanguageRelation(): bool @@ -108,7 +115,8 @@ public function hasLanguageRelation(): bool public function unsetLanguageRelation(): self { - return $this->remove('languageRelation'); + $this->remove('languageRelation'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchLocation.php b/src/GraphQL/Inputs/PatchLocation.php index 4f7f980..2288b1f 100644 --- a/src/GraphQL/Inputs/PatchLocation.php +++ b/src/GraphQL/Inputs/PatchLocation.php @@ -20,7 +20,8 @@ public function getLocationId() */ public function setLocationId($value): self { - return $this->set('locationId', $value); + $this->set('locationId', $value); + return $this; } public function hasLocationId(): bool @@ -30,7 +31,8 @@ public function hasLocationId(): bool public function unsetLocationId(): self { - return $this->remove('locationId'); + $this->remove('locationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -56,7 +59,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -82,7 +87,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullTextUrl() */ public function setFullTextUrl($value): self { - return $this->set('fullTextUrl', $value); + $this->set('fullTextUrl', $value); + return $this; } public function hasFullTextUrl(): bool @@ -108,7 +115,8 @@ public function hasFullTextUrl(): bool public function unsetFullTextUrl(): self { - return $this->remove('fullTextUrl'); + $this->remove('fullTextUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getLocationPlatform() */ public function setLocationPlatform($value): self { - return $this->set('locationPlatform', $value); + $this->set('locationPlatform', $value); + return $this; } public function hasLocationPlatform(): bool @@ -134,7 +143,8 @@ public function hasLocationPlatform(): bool public function unsetLocationPlatform(): self { - return $this->remove('locationPlatform'); + $this->remove('locationPlatform'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -160,7 +171,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -176,7 +188,8 @@ public function getChecksum() */ public function setChecksum($value): self { - return $this->set('checksum', $value); + $this->set('checksum', $value); + return $this; } public function hasChecksum(): bool @@ -186,7 +199,8 @@ public function hasChecksum(): bool public function unsetChecksum(): self { - return $this->remove('checksum'); + $this->remove('checksum'); + return $this; } /** @@ -202,7 +216,8 @@ public function getChecksumAlgorithm() */ public function setChecksumAlgorithm($value): self { - return $this->set('checksumAlgorithm', $value); + $this->set('checksumAlgorithm', $value); + return $this; } public function hasChecksumAlgorithm(): bool @@ -212,7 +227,8 @@ public function hasChecksumAlgorithm(): bool public function unsetChecksumAlgorithm(): self { - return $this->remove('checksumAlgorithm'); + $this->remove('checksumAlgorithm'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchPrice.php b/src/GraphQL/Inputs/PatchPrice.php index 37c1163..b9b9720 100644 --- a/src/GraphQL/Inputs/PatchPrice.php +++ b/src/GraphQL/Inputs/PatchPrice.php @@ -20,7 +20,8 @@ public function getPriceId() */ public function setPriceId($value): self { - return $this->set('priceId', $value); + $this->set('priceId', $value); + return $this; } public function hasPriceId(): bool @@ -30,7 +31,8 @@ public function hasPriceId(): bool public function unsetPriceId(): self { - return $this->remove('priceId'); + $this->remove('priceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -56,7 +59,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getCurrencyCode() */ public function setCurrencyCode($value): self { - return $this->set('currencyCode', $value); + $this->set('currencyCode', $value); + return $this; } public function hasCurrencyCode(): bool @@ -82,7 +87,8 @@ public function hasCurrencyCode(): bool public function unsetCurrencyCode(): self { - return $this->remove('currencyCode'); + $this->remove('currencyCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUnitPrice() */ public function setUnitPrice($value): self { - return $this->set('unitPrice', $value); + $this->set('unitPrice', $value); + return $this; } public function hasUnitPrice(): bool @@ -108,7 +115,8 @@ public function hasUnitPrice(): bool public function unsetUnitPrice(): self { - return $this->remove('unitPrice'); + $this->remove('unitPrice'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchPublication.php b/src/GraphQL/Inputs/PatchPublication.php index d82637a..06109f2 100644 --- a/src/GraphQL/Inputs/PatchPublication.php +++ b/src/GraphQL/Inputs/PatchPublication.php @@ -20,7 +20,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -30,7 +31,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationType() */ public function setPublicationType($value): self { - return $this->set('publicationType', $value); + $this->set('publicationType', $value); + return $this; } public function hasPublicationType(): bool @@ -56,7 +59,8 @@ public function hasPublicationType(): bool public function unsetPublicationType(): self { - return $this->remove('publicationType'); + $this->remove('publicationType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -82,7 +87,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -108,7 +115,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -124,7 +132,8 @@ public function getWidthMm() */ public function setWidthMm($value): self { - return $this->set('widthMm', $value); + $this->set('widthMm', $value); + return $this; } public function hasWidthMm(): bool @@ -134,7 +143,8 @@ public function hasWidthMm(): bool public function unsetWidthMm(): self { - return $this->remove('widthMm'); + $this->remove('widthMm'); + return $this; } /** @@ -150,7 +160,8 @@ public function getWidthIn() */ public function setWidthIn($value): self { - return $this->set('widthIn', $value); + $this->set('widthIn', $value); + return $this; } public function hasWidthIn(): bool @@ -160,7 +171,8 @@ public function hasWidthIn(): bool public function unsetWidthIn(): self { - return $this->remove('widthIn'); + $this->remove('widthIn'); + return $this; } /** @@ -176,7 +188,8 @@ public function getHeightMm() */ public function setHeightMm($value): self { - return $this->set('heightMm', $value); + $this->set('heightMm', $value); + return $this; } public function hasHeightMm(): bool @@ -186,7 +199,8 @@ public function hasHeightMm(): bool public function unsetHeightMm(): self { - return $this->remove('heightMm'); + $this->remove('heightMm'); + return $this; } /** @@ -202,7 +216,8 @@ public function getHeightIn() */ public function setHeightIn($value): self { - return $this->set('heightIn', $value); + $this->set('heightIn', $value); + return $this; } public function hasHeightIn(): bool @@ -212,7 +227,8 @@ public function hasHeightIn(): bool public function unsetHeightIn(): self { - return $this->remove('heightIn'); + $this->remove('heightIn'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDepthMm() */ public function setDepthMm($value): self { - return $this->set('depthMm', $value); + $this->set('depthMm', $value); + return $this; } public function hasDepthMm(): bool @@ -238,7 +255,8 @@ public function hasDepthMm(): bool public function unsetDepthMm(): self { - return $this->remove('depthMm'); + $this->remove('depthMm'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDepthIn() */ public function setDepthIn($value): self { - return $this->set('depthIn', $value); + $this->set('depthIn', $value); + return $this; } public function hasDepthIn(): bool @@ -264,7 +283,8 @@ public function hasDepthIn(): bool public function unsetDepthIn(): self { - return $this->remove('depthIn'); + $this->remove('depthIn'); + return $this; } /** @@ -280,7 +300,8 @@ public function getWeightG() */ public function setWeightG($value): self { - return $this->set('weightG', $value); + $this->set('weightG', $value); + return $this; } public function hasWeightG(): bool @@ -290,7 +311,8 @@ public function hasWeightG(): bool public function unsetWeightG(): self { - return $this->remove('weightG'); + $this->remove('weightG'); + return $this; } /** @@ -306,7 +328,8 @@ public function getWeightOz() */ public function setWeightOz($value): self { - return $this->set('weightOz', $value); + $this->set('weightOz', $value); + return $this; } public function hasWeightOz(): bool @@ -316,7 +339,8 @@ public function hasWeightOz(): bool public function unsetWeightOz(): self { - return $this->remove('weightOz'); + $this->remove('weightOz'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAccessibilityStandard() */ public function setAccessibilityStandard($value): self { - return $this->set('accessibilityStandard', $value); + $this->set('accessibilityStandard', $value); + return $this; } public function hasAccessibilityStandard(): bool @@ -342,7 +367,8 @@ public function hasAccessibilityStandard(): bool public function unsetAccessibilityStandard(): self { - return $this->remove('accessibilityStandard'); + $this->remove('accessibilityStandard'); + return $this; } /** @@ -358,7 +384,8 @@ public function getAccessibilityAdditionalStandard() */ public function setAccessibilityAdditionalStandard($value): self { - return $this->set('accessibilityAdditionalStandard', $value); + $this->set('accessibilityAdditionalStandard', $value); + return $this; } public function hasAccessibilityAdditionalStandard(): bool @@ -368,7 +395,8 @@ public function hasAccessibilityAdditionalStandard(): bool public function unsetAccessibilityAdditionalStandard(): self { - return $this->remove('accessibilityAdditionalStandard'); + $this->remove('accessibilityAdditionalStandard'); + return $this; } /** @@ -384,7 +412,8 @@ public function getAccessibilityException() */ public function setAccessibilityException($value): self { - return $this->set('accessibilityException', $value); + $this->set('accessibilityException', $value); + return $this; } public function hasAccessibilityException(): bool @@ -394,7 +423,8 @@ public function hasAccessibilityException(): bool public function unsetAccessibilityException(): self { - return $this->remove('accessibilityException'); + $this->remove('accessibilityException'); + return $this; } /** @@ -410,7 +440,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -420,7 +451,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchPublisher.php b/src/GraphQL/Inputs/PatchPublisher.php index 38a67ce..d75e33b 100644 --- a/src/GraphQL/Inputs/PatchPublisher.php +++ b/src/GraphQL/Inputs/PatchPublisher.php @@ -20,7 +20,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -30,7 +31,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherName() */ public function setPublisherName($value): self { - return $this->set('publisherName', $value); + $this->set('publisherName', $value); + return $this; } public function hasPublisherName(): bool @@ -56,7 +59,8 @@ public function hasPublisherName(): bool public function unsetPublisherName(): self { - return $this->remove('publisherName'); + $this->remove('publisherName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getPublisherShortname() */ public function setPublisherShortname($value): self { - return $this->set('publisherShortname', $value); + $this->set('publisherShortname', $value); + return $this; } public function hasPublisherShortname(): bool @@ -82,7 +87,8 @@ public function hasPublisherShortname(): bool public function unsetPublisherShortname(): self { - return $this->remove('publisherShortname'); + $this->remove('publisherShortname'); + return $this; } /** @@ -98,7 +104,8 @@ public function getPublisherUrl() */ public function setPublisherUrl($value): self { - return $this->set('publisherUrl', $value); + $this->set('publisherUrl', $value); + return $this; } public function hasPublisherUrl(): bool @@ -108,7 +115,8 @@ public function hasPublisherUrl(): bool public function unsetPublisherUrl(): self { - return $this->remove('publisherUrl'); + $this->remove('publisherUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getZitadelId() */ public function setZitadelId($value): self { - return $this->set('zitadelId', $value); + $this->set('zitadelId', $value); + return $this; } public function hasZitadelId(): bool @@ -134,7 +143,8 @@ public function hasZitadelId(): bool public function unsetZitadelId(): self { - return $this->remove('zitadelId'); + $this->remove('zitadelId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAccessibilityStatement() */ public function setAccessibilityStatement($value): self { - return $this->set('accessibilityStatement', $value); + $this->set('accessibilityStatement', $value); + return $this; } public function hasAccessibilityStatement(): bool @@ -160,7 +171,8 @@ public function hasAccessibilityStatement(): bool public function unsetAccessibilityStatement(): self { - return $this->remove('accessibilityStatement'); + $this->remove('accessibilityStatement'); + return $this; } /** @@ -176,7 +188,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -186,7 +199,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchReference.php b/src/GraphQL/Inputs/PatchReference.php index 5799b67..d907b1d 100644 --- a/src/GraphQL/Inputs/PatchReference.php +++ b/src/GraphQL/Inputs/PatchReference.php @@ -20,7 +20,8 @@ public function getReferenceId() */ public function setReferenceId($value): self { - return $this->set('referenceId', $value); + $this->set('referenceId', $value); + return $this; } public function hasReferenceId(): bool @@ -30,7 +31,8 @@ public function hasReferenceId(): bool public function unsetReferenceId(): self { - return $this->remove('referenceId'); + $this->remove('referenceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getReferenceOrdinal() */ public function setReferenceOrdinal($value): self { - return $this->set('referenceOrdinal', $value); + $this->set('referenceOrdinal', $value); + return $this; } public function hasReferenceOrdinal(): bool @@ -82,7 +87,8 @@ public function hasReferenceOrdinal(): bool public function unsetReferenceOrdinal(): self { - return $this->remove('referenceOrdinal'); + $this->remove('referenceOrdinal'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -108,7 +115,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -124,7 +132,8 @@ public function getUnstructuredCitation() */ public function setUnstructuredCitation($value): self { - return $this->set('unstructuredCitation', $value); + $this->set('unstructuredCitation', $value); + return $this; } public function hasUnstructuredCitation(): bool @@ -134,7 +143,8 @@ public function hasUnstructuredCitation(): bool public function unsetUnstructuredCitation(): self { - return $this->remove('unstructuredCitation'); + $this->remove('unstructuredCitation'); + return $this; } /** @@ -150,7 +160,8 @@ public function getIssn() */ public function setIssn($value): self { - return $this->set('issn', $value); + $this->set('issn', $value); + return $this; } public function hasIssn(): bool @@ -160,7 +171,8 @@ public function hasIssn(): bool public function unsetIssn(): self { - return $this->remove('issn'); + $this->remove('issn'); + return $this; } /** @@ -176,7 +188,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -186,7 +199,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -202,7 +216,8 @@ public function getJournalTitle() */ public function setJournalTitle($value): self { - return $this->set('journalTitle', $value); + $this->set('journalTitle', $value); + return $this; } public function hasJournalTitle(): bool @@ -212,7 +227,8 @@ public function hasJournalTitle(): bool public function unsetJournalTitle(): self { - return $this->remove('journalTitle'); + $this->remove('journalTitle'); + return $this; } /** @@ -228,7 +244,8 @@ public function getArticleTitle() */ public function setArticleTitle($value): self { - return $this->set('articleTitle', $value); + $this->set('articleTitle', $value); + return $this; } public function hasArticleTitle(): bool @@ -238,7 +255,8 @@ public function hasArticleTitle(): bool public function unsetArticleTitle(): self { - return $this->remove('articleTitle'); + $this->remove('articleTitle'); + return $this; } /** @@ -254,7 +272,8 @@ public function getSeriesTitle() */ public function setSeriesTitle($value): self { - return $this->set('seriesTitle', $value); + $this->set('seriesTitle', $value); + return $this; } public function hasSeriesTitle(): bool @@ -264,7 +283,8 @@ public function hasSeriesTitle(): bool public function unsetSeriesTitle(): self { - return $this->remove('seriesTitle'); + $this->remove('seriesTitle'); + return $this; } /** @@ -280,7 +300,8 @@ public function getVolumeTitle() */ public function setVolumeTitle($value): self { - return $this->set('volumeTitle', $value); + $this->set('volumeTitle', $value); + return $this; } public function hasVolumeTitle(): bool @@ -290,7 +311,8 @@ public function hasVolumeTitle(): bool public function unsetVolumeTitle(): self { - return $this->remove('volumeTitle'); + $this->remove('volumeTitle'); + return $this; } /** @@ -306,7 +328,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -316,7 +339,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAuthor() */ public function setAuthor($value): self { - return $this->set('author', $value); + $this->set('author', $value); + return $this; } public function hasAuthor(): bool @@ -342,7 +367,8 @@ public function hasAuthor(): bool public function unsetAuthor(): self { - return $this->remove('author'); + $this->remove('author'); + return $this; } /** @@ -358,7 +384,8 @@ public function getVolume() */ public function setVolume($value): self { - return $this->set('volume', $value); + $this->set('volume', $value); + return $this; } public function hasVolume(): bool @@ -368,7 +395,8 @@ public function hasVolume(): bool public function unsetVolume(): self { - return $this->remove('volume'); + $this->remove('volume'); + return $this; } /** @@ -384,7 +412,8 @@ public function getIssue() */ public function setIssue($value): self { - return $this->set('issue', $value); + $this->set('issue', $value); + return $this; } public function hasIssue(): bool @@ -394,7 +423,8 @@ public function hasIssue(): bool public function unsetIssue(): self { - return $this->remove('issue'); + $this->remove('issue'); + return $this; } /** @@ -410,7 +440,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -420,7 +451,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -436,7 +468,8 @@ public function getComponentNumber() */ public function setComponentNumber($value): self { - return $this->set('componentNumber', $value); + $this->set('componentNumber', $value); + return $this; } public function hasComponentNumber(): bool @@ -446,7 +479,8 @@ public function hasComponentNumber(): bool public function unsetComponentNumber(): self { - return $this->remove('componentNumber'); + $this->remove('componentNumber'); + return $this; } /** @@ -462,7 +496,8 @@ public function getStandardDesignator() */ public function setStandardDesignator($value): self { - return $this->set('standardDesignator', $value); + $this->set('standardDesignator', $value); + return $this; } public function hasStandardDesignator(): bool @@ -472,7 +507,8 @@ public function hasStandardDesignator(): bool public function unsetStandardDesignator(): self { - return $this->remove('standardDesignator'); + $this->remove('standardDesignator'); + return $this; } /** @@ -488,7 +524,8 @@ public function getStandardsBodyName() */ public function setStandardsBodyName($value): self { - return $this->set('standardsBodyName', $value); + $this->set('standardsBodyName', $value); + return $this; } public function hasStandardsBodyName(): bool @@ -498,7 +535,8 @@ public function hasStandardsBodyName(): bool public function unsetStandardsBodyName(): self { - return $this->remove('standardsBodyName'); + $this->remove('standardsBodyName'); + return $this; } /** @@ -514,7 +552,8 @@ public function getStandardsBodyAcronym() */ public function setStandardsBodyAcronym($value): self { - return $this->set('standardsBodyAcronym', $value); + $this->set('standardsBodyAcronym', $value); + return $this; } public function hasStandardsBodyAcronym(): bool @@ -524,7 +563,8 @@ public function hasStandardsBodyAcronym(): bool public function unsetStandardsBodyAcronym(): self { - return $this->remove('standardsBodyAcronym'); + $this->remove('standardsBodyAcronym'); + return $this; } /** @@ -540,7 +580,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -550,7 +591,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -566,7 +608,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -576,7 +619,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -592,7 +636,8 @@ public function getRetrievalDate() */ public function setRetrievalDate($value): self { - return $this->set('retrievalDate', $value); + $this->set('retrievalDate', $value); + return $this; } public function hasRetrievalDate(): bool @@ -602,7 +647,8 @@ public function hasRetrievalDate(): bool public function unsetRetrievalDate(): self { - return $this->remove('retrievalDate'); + $this->remove('retrievalDate'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchSeries.php b/src/GraphQL/Inputs/PatchSeries.php index c6d69b4..432f844 100644 --- a/src/GraphQL/Inputs/PatchSeries.php +++ b/src/GraphQL/Inputs/PatchSeries.php @@ -20,7 +20,8 @@ public function getSeriesId() */ public function setSeriesId($value): self { - return $this->set('seriesId', $value); + $this->set('seriesId', $value); + return $this; } public function hasSeriesId(): bool @@ -30,7 +31,8 @@ public function hasSeriesId(): bool public function unsetSeriesId(): self { - return $this->remove('seriesId'); + $this->remove('seriesId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getSeriesType() */ public function setSeriesType($value): self { - return $this->set('seriesType', $value); + $this->set('seriesType', $value); + return $this; } public function hasSeriesType(): bool @@ -56,7 +59,8 @@ public function hasSeriesType(): bool public function unsetSeriesType(): self { - return $this->remove('seriesType'); + $this->remove('seriesType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSeriesName() */ public function setSeriesName($value): self { - return $this->set('seriesName', $value); + $this->set('seriesName', $value); + return $this; } public function hasSeriesName(): bool @@ -82,7 +87,8 @@ public function hasSeriesName(): bool public function unsetSeriesName(): self { - return $this->remove('seriesName'); + $this->remove('seriesName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssnPrint() */ public function setIssnPrint($value): self { - return $this->set('issnPrint', $value); + $this->set('issnPrint', $value); + return $this; } public function hasIssnPrint(): bool @@ -108,7 +115,8 @@ public function hasIssnPrint(): bool public function unsetIssnPrint(): self { - return $this->remove('issnPrint'); + $this->remove('issnPrint'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIssnDigital() */ public function setIssnDigital($value): self { - return $this->set('issnDigital', $value); + $this->set('issnDigital', $value); + return $this; } public function hasIssnDigital(): bool @@ -134,7 +143,8 @@ public function hasIssnDigital(): bool public function unsetIssnDigital(): self { - return $this->remove('issnDigital'); + $this->remove('issnDigital'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSeriesUrl() */ public function setSeriesUrl($value): self { - return $this->set('seriesUrl', $value); + $this->set('seriesUrl', $value); + return $this; } public function hasSeriesUrl(): bool @@ -160,7 +171,8 @@ public function hasSeriesUrl(): bool public function unsetSeriesUrl(): self { - return $this->remove('seriesUrl'); + $this->remove('seriesUrl'); + return $this; } /** @@ -176,7 +188,8 @@ public function getSeriesDescription() */ public function setSeriesDescription($value): self { - return $this->set('seriesDescription', $value); + $this->set('seriesDescription', $value); + return $this; } public function hasSeriesDescription(): bool @@ -186,7 +199,8 @@ public function hasSeriesDescription(): bool public function unsetSeriesDescription(): self { - return $this->remove('seriesDescription'); + $this->remove('seriesDescription'); + return $this; } /** @@ -202,7 +216,8 @@ public function getSeriesCfpUrl() */ public function setSeriesCfpUrl($value): self { - return $this->set('seriesCfpUrl', $value); + $this->set('seriesCfpUrl', $value); + return $this; } public function hasSeriesCfpUrl(): bool @@ -212,7 +227,8 @@ public function hasSeriesCfpUrl(): bool public function unsetSeriesCfpUrl(): self { - return $this->remove('seriesCfpUrl'); + $this->remove('seriesCfpUrl'); + return $this; } /** @@ -228,7 +244,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -238,7 +255,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchSubject.php b/src/GraphQL/Inputs/PatchSubject.php index e6ebf92..a89c65f 100644 --- a/src/GraphQL/Inputs/PatchSubject.php +++ b/src/GraphQL/Inputs/PatchSubject.php @@ -20,7 +20,8 @@ public function getSubjectId() */ public function setSubjectId($value): self { - return $this->set('subjectId', $value); + $this->set('subjectId', $value); + return $this; } public function hasSubjectId(): bool @@ -30,7 +31,8 @@ public function hasSubjectId(): bool public function unsetSubjectId(): self { - return $this->remove('subjectId'); + $this->remove('subjectId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSubjectType() */ public function setSubjectType($value): self { - return $this->set('subjectType', $value); + $this->set('subjectType', $value); + return $this; } public function hasSubjectType(): bool @@ -82,7 +87,8 @@ public function hasSubjectType(): bool public function unsetSubjectType(): self { - return $this->remove('subjectType'); + $this->remove('subjectType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getSubjectCode() */ public function setSubjectCode($value): self { - return $this->set('subjectCode', $value); + $this->set('subjectCode', $value); + return $this; } public function hasSubjectCode(): bool @@ -108,7 +115,8 @@ public function hasSubjectCode(): bool public function unsetSubjectCode(): self { - return $this->remove('subjectCode'); + $this->remove('subjectCode'); + return $this; } /** @@ -124,7 +132,8 @@ public function getSubjectOrdinal() */ public function setSubjectOrdinal($value): self { - return $this->set('subjectOrdinal', $value); + $this->set('subjectOrdinal', $value); + return $this; } public function hasSubjectOrdinal(): bool @@ -134,7 +143,8 @@ public function hasSubjectOrdinal(): bool public function unsetSubjectOrdinal(): self { - return $this->remove('subjectOrdinal'); + $this->remove('subjectOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchTitle.php b/src/GraphQL/Inputs/PatchTitle.php index bf590a1..6dfe5f2 100644 --- a/src/GraphQL/Inputs/PatchTitle.php +++ b/src/GraphQL/Inputs/PatchTitle.php @@ -20,7 +20,8 @@ public function getTitleId() */ public function setTitleId($value): self { - return $this->set('titleId', $value); + $this->set('titleId', $value); + return $this; } public function hasTitleId(): bool @@ -30,7 +31,8 @@ public function hasTitleId(): bool public function unsetTitleId(): self { - return $this->remove('titleId'); + $this->remove('titleId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -82,7 +87,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullTitle() */ public function setFullTitle($value): self { - return $this->set('fullTitle', $value); + $this->set('fullTitle', $value); + return $this; } public function hasFullTitle(): bool @@ -108,7 +115,8 @@ public function hasFullTitle(): bool public function unsetFullTitle(): self { - return $this->remove('fullTitle'); + $this->remove('fullTitle'); + return $this; } /** @@ -124,7 +132,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -134,7 +143,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSubtitle() */ public function setSubtitle($value): self { - return $this->set('subtitle', $value); + $this->set('subtitle', $value); + return $this; } public function hasSubtitle(): bool @@ -160,7 +171,8 @@ public function hasSubtitle(): bool public function unsetSubtitle(): self { - return $this->remove('subtitle'); + $this->remove('subtitle'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -186,7 +199,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchWork.php b/src/GraphQL/Inputs/PatchWork.php index c23ca79..af1e5f5 100644 --- a/src/GraphQL/Inputs/PatchWork.php +++ b/src/GraphQL/Inputs/PatchWork.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkType() */ public function setWorkType($value): self { - return $this->set('workType', $value); + $this->set('workType', $value); + return $this; } public function hasWorkType(): bool @@ -56,7 +59,8 @@ public function hasWorkType(): bool public function unsetWorkType(): self { - return $this->remove('workType'); + $this->remove('workType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkStatus() */ public function setWorkStatus($value): self { - return $this->set('workStatus', $value); + $this->set('workStatus', $value); + return $this; } public function hasWorkStatus(): bool @@ -82,7 +87,8 @@ public function hasWorkStatus(): bool public function unsetWorkStatus(): self { - return $this->remove('workStatus'); + $this->remove('workStatus'); + return $this; } /** @@ -98,7 +104,8 @@ public function getReference() */ public function setReference($value): self { - return $this->set('reference', $value); + $this->set('reference', $value); + return $this; } public function hasReference(): bool @@ -108,7 +115,8 @@ public function hasReference(): bool public function unsetReference(): self { - return $this->remove('reference'); + $this->remove('reference'); + return $this; } /** @@ -124,7 +132,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -134,7 +143,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -150,7 +160,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -160,7 +171,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -186,7 +199,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -202,7 +216,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -212,7 +227,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -228,7 +244,8 @@ public function getWithdrawnDate() */ public function setWithdrawnDate($value): self { - return $this->set('withdrawnDate', $value); + $this->set('withdrawnDate', $value); + return $this; } public function hasWithdrawnDate(): bool @@ -238,7 +255,8 @@ public function hasWithdrawnDate(): bool public function unsetWithdrawnDate(): self { - return $this->remove('withdrawnDate'); + $this->remove('withdrawnDate'); + return $this; } /** @@ -254,7 +272,8 @@ public function getPlace() */ public function setPlace($value): self { - return $this->set('place', $value); + $this->set('place', $value); + return $this; } public function hasPlace(): bool @@ -264,7 +283,8 @@ public function hasPlace(): bool public function unsetPlace(): self { - return $this->remove('place'); + $this->remove('place'); + return $this; } /** @@ -280,7 +300,8 @@ public function getPageCount() */ public function setPageCount($value): self { - return $this->set('pageCount', $value); + $this->set('pageCount', $value); + return $this; } public function hasPageCount(): bool @@ -290,7 +311,8 @@ public function hasPageCount(): bool public function unsetPageCount(): self { - return $this->remove('pageCount'); + $this->remove('pageCount'); + return $this; } /** @@ -306,7 +328,8 @@ public function getPageBreakdown() */ public function setPageBreakdown($value): self { - return $this->set('pageBreakdown', $value); + $this->set('pageBreakdown', $value); + return $this; } public function hasPageBreakdown(): bool @@ -316,7 +339,8 @@ public function hasPageBreakdown(): bool public function unsetPageBreakdown(): self { - return $this->remove('pageBreakdown'); + $this->remove('pageBreakdown'); + return $this; } /** @@ -332,7 +356,8 @@ public function getImageCount() */ public function setImageCount($value): self { - return $this->set('imageCount', $value); + $this->set('imageCount', $value); + return $this; } public function hasImageCount(): bool @@ -342,7 +367,8 @@ public function hasImageCount(): bool public function unsetImageCount(): self { - return $this->remove('imageCount'); + $this->remove('imageCount'); + return $this; } /** @@ -358,7 +384,8 @@ public function getTableCount() */ public function setTableCount($value): self { - return $this->set('tableCount', $value); + $this->set('tableCount', $value); + return $this; } public function hasTableCount(): bool @@ -368,7 +395,8 @@ public function hasTableCount(): bool public function unsetTableCount(): self { - return $this->remove('tableCount'); + $this->remove('tableCount'); + return $this; } /** @@ -384,7 +412,8 @@ public function getAudioCount() */ public function setAudioCount($value): self { - return $this->set('audioCount', $value); + $this->set('audioCount', $value); + return $this; } public function hasAudioCount(): bool @@ -394,7 +423,8 @@ public function hasAudioCount(): bool public function unsetAudioCount(): self { - return $this->remove('audioCount'); + $this->remove('audioCount'); + return $this; } /** @@ -410,7 +440,8 @@ public function getVideoCount() */ public function setVideoCount($value): self { - return $this->set('videoCount', $value); + $this->set('videoCount', $value); + return $this; } public function hasVideoCount(): bool @@ -420,7 +451,8 @@ public function hasVideoCount(): bool public function unsetVideoCount(): self { - return $this->remove('videoCount'); + $this->remove('videoCount'); + return $this; } /** @@ -436,7 +468,8 @@ public function getLicense() */ public function setLicense($value): self { - return $this->set('license', $value); + $this->set('license', $value); + return $this; } public function hasLicense(): bool @@ -446,7 +479,8 @@ public function hasLicense(): bool public function unsetLicense(): self { - return $this->remove('license'); + $this->remove('license'); + return $this; } /** @@ -462,7 +496,8 @@ public function getCopyrightHolder() */ public function setCopyrightHolder($value): self { - return $this->set('copyrightHolder', $value); + $this->set('copyrightHolder', $value); + return $this; } public function hasCopyrightHolder(): bool @@ -472,7 +507,8 @@ public function hasCopyrightHolder(): bool public function unsetCopyrightHolder(): self { - return $this->remove('copyrightHolder'); + $this->remove('copyrightHolder'); + return $this; } /** @@ -488,7 +524,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -498,7 +535,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -514,7 +552,8 @@ public function getLccn() */ public function setLccn($value): self { - return $this->set('lccn', $value); + $this->set('lccn', $value); + return $this; } public function hasLccn(): bool @@ -524,7 +563,8 @@ public function hasLccn(): bool public function unsetLccn(): self { - return $this->remove('lccn'); + $this->remove('lccn'); + return $this; } /** @@ -540,7 +580,8 @@ public function getOclc() */ public function setOclc($value): self { - return $this->set('oclc', $value); + $this->set('oclc', $value); + return $this; } public function hasOclc(): bool @@ -550,7 +591,8 @@ public function hasOclc(): bool public function unsetOclc(): self { - return $this->remove('oclc'); + $this->remove('oclc'); + return $this; } /** @@ -566,7 +608,8 @@ public function getGeneralNote() */ public function setGeneralNote($value): self { - return $this->set('generalNote', $value); + $this->set('generalNote', $value); + return $this; } public function hasGeneralNote(): bool @@ -576,7 +619,8 @@ public function hasGeneralNote(): bool public function unsetGeneralNote(): self { - return $this->remove('generalNote'); + $this->remove('generalNote'); + return $this; } /** @@ -592,7 +636,8 @@ public function getBibliographyNote() */ public function setBibliographyNote($value): self { - return $this->set('bibliographyNote', $value); + $this->set('bibliographyNote', $value); + return $this; } public function hasBibliographyNote(): bool @@ -602,7 +647,8 @@ public function hasBibliographyNote(): bool public function unsetBibliographyNote(): self { - return $this->remove('bibliographyNote'); + $this->remove('bibliographyNote'); + return $this; } /** @@ -618,7 +664,8 @@ public function getToc() */ public function setToc($value): self { - return $this->set('toc', $value); + $this->set('toc', $value); + return $this; } public function hasToc(): bool @@ -628,7 +675,8 @@ public function hasToc(): bool public function unsetToc(): self { - return $this->remove('toc'); + $this->remove('toc'); + return $this; } /** @@ -644,7 +692,8 @@ public function getResourcesDescription() */ public function setResourcesDescription($value): self { - return $this->set('resourcesDescription', $value); + $this->set('resourcesDescription', $value); + return $this; } public function hasResourcesDescription(): bool @@ -654,7 +703,8 @@ public function hasResourcesDescription(): bool public function unsetResourcesDescription(): self { - return $this->remove('resourcesDescription'); + $this->remove('resourcesDescription'); + return $this; } /** @@ -670,7 +720,8 @@ public function getCoverUrl() */ public function setCoverUrl($value): self { - return $this->set('coverUrl', $value); + $this->set('coverUrl', $value); + return $this; } public function hasCoverUrl(): bool @@ -680,7 +731,8 @@ public function hasCoverUrl(): bool public function unsetCoverUrl(): self { - return $this->remove('coverUrl'); + $this->remove('coverUrl'); + return $this; } /** @@ -696,7 +748,8 @@ public function getCoverCaption() */ public function setCoverCaption($value): self { - return $this->set('coverCaption', $value); + $this->set('coverCaption', $value); + return $this; } public function hasCoverCaption(): bool @@ -706,7 +759,8 @@ public function hasCoverCaption(): bool public function unsetCoverCaption(): self { - return $this->remove('coverCaption'); + $this->remove('coverCaption'); + return $this; } /** @@ -722,7 +776,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -732,7 +787,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -748,7 +804,8 @@ public function getLastPage() */ public function setLastPage($value): self { - return $this->set('lastPage', $value); + $this->set('lastPage', $value); + return $this; } public function hasLastPage(): bool @@ -758,7 +815,8 @@ public function hasLastPage(): bool public function unsetLastPage(): self { - return $this->remove('lastPage'); + $this->remove('lastPage'); + return $this; } /** @@ -774,7 +832,8 @@ public function getPageInterval() */ public function setPageInterval($value): self { - return $this->set('pageInterval', $value); + $this->set('pageInterval', $value); + return $this; } public function hasPageInterval(): bool @@ -784,7 +843,8 @@ public function hasPageInterval(): bool public function unsetPageInterval(): self { - return $this->remove('pageInterval'); + $this->remove('pageInterval'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php b/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php index 35e023d..ad5690a 100644 --- a/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php +++ b/src/GraphQL/Inputs/PatchWorkFeaturedVideo.php @@ -20,7 +20,8 @@ public function getWorkFeaturedVideoId() */ public function setWorkFeaturedVideoId($value): self { - return $this->set('workFeaturedVideoId', $value); + $this->set('workFeaturedVideoId', $value); + return $this; } public function hasWorkFeaturedVideoId(): bool @@ -30,7 +31,8 @@ public function hasWorkFeaturedVideoId(): bool public function unsetWorkFeaturedVideoId(): self { - return $this->remove('workFeaturedVideoId'); + $this->remove('workFeaturedVideoId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -108,7 +115,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -124,7 +132,8 @@ public function getWidth() */ public function setWidth($value): self { - return $this->set('width', $value); + $this->set('width', $value); + return $this; } public function hasWidth(): bool @@ -134,7 +143,8 @@ public function hasWidth(): bool public function unsetWidth(): self { - return $this->remove('width'); + $this->remove('width'); + return $this; } /** @@ -150,7 +160,8 @@ public function getHeight() */ public function setHeight($value): self { - return $this->set('height', $value); + $this->set('height', $value); + return $this; } public function hasHeight(): bool @@ -160,7 +171,8 @@ public function hasHeight(): bool public function unsetHeight(): self { - return $this->remove('height'); + $this->remove('height'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PatchWorkRelation.php b/src/GraphQL/Inputs/PatchWorkRelation.php index 5ec6d26..70d490b 100644 --- a/src/GraphQL/Inputs/PatchWorkRelation.php +++ b/src/GraphQL/Inputs/PatchWorkRelation.php @@ -20,7 +20,8 @@ public function getWorkRelationId() */ public function setWorkRelationId($value): self { - return $this->set('workRelationId', $value); + $this->set('workRelationId', $value); + return $this; } public function hasWorkRelationId(): bool @@ -30,7 +31,8 @@ public function hasWorkRelationId(): bool public function unsetWorkRelationId(): self { - return $this->remove('workRelationId'); + $this->remove('workRelationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getRelatorWorkId() */ public function setRelatorWorkId($value): self { - return $this->set('relatorWorkId', $value); + $this->set('relatorWorkId', $value); + return $this; } public function hasRelatorWorkId(): bool @@ -56,7 +59,8 @@ public function hasRelatorWorkId(): bool public function unsetRelatorWorkId(): self { - return $this->remove('relatorWorkId'); + $this->remove('relatorWorkId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getRelatedWorkId() */ public function setRelatedWorkId($value): self { - return $this->set('relatedWorkId', $value); + $this->set('relatedWorkId', $value); + return $this; } public function hasRelatedWorkId(): bool @@ -82,7 +87,8 @@ public function hasRelatedWorkId(): bool public function unsetRelatedWorkId(): self { - return $this->remove('relatedWorkId'); + $this->remove('relatedWorkId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getRelationType() */ public function setRelationType($value): self { - return $this->set('relationType', $value); + $this->set('relationType', $value); + return $this; } public function hasRelationType(): bool @@ -108,7 +115,8 @@ public function hasRelationType(): bool public function unsetRelationType(): self { - return $this->remove('relationType'); + $this->remove('relationType'); + return $this; } /** @@ -124,7 +132,8 @@ public function getRelationOrdinal() */ public function setRelationOrdinal($value): self { - return $this->set('relationOrdinal', $value); + $this->set('relationOrdinal', $value); + return $this; } public function hasRelationOrdinal(): bool @@ -134,7 +143,8 @@ public function hasRelationOrdinal(): bool public function unsetRelationOrdinal(): self { - return $this->remove('relationOrdinal'); + $this->remove('relationOrdinal'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PriceOrderBy.php b/src/GraphQL/Inputs/PriceOrderBy.php index bc436dd..da6b073 100644 --- a/src/GraphQL/Inputs/PriceOrderBy.php +++ b/src/GraphQL/Inputs/PriceOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PublicationOrderBy.php b/src/GraphQL/Inputs/PublicationOrderBy.php index cc41820..31f43d2 100644 --- a/src/GraphQL/Inputs/PublicationOrderBy.php +++ b/src/GraphQL/Inputs/PublicationOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/PublisherOrderBy.php b/src/GraphQL/Inputs/PublisherOrderBy.php index 56e2562..555cd8a 100644 --- a/src/GraphQL/Inputs/PublisherOrderBy.php +++ b/src/GraphQL/Inputs/PublisherOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/ReferenceOrderBy.php b/src/GraphQL/Inputs/ReferenceOrderBy.php index 1c9c559..f9a8050 100644 --- a/src/GraphQL/Inputs/ReferenceOrderBy.php +++ b/src/GraphQL/Inputs/ReferenceOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/SeriesOrderBy.php b/src/GraphQL/Inputs/SeriesOrderBy.php index c7b5307..2efc301 100644 --- a/src/GraphQL/Inputs/SeriesOrderBy.php +++ b/src/GraphQL/Inputs/SeriesOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/SubjectOrderBy.php b/src/GraphQL/Inputs/SubjectOrderBy.php index cadc4fa..94bc67d 100644 --- a/src/GraphQL/Inputs/SubjectOrderBy.php +++ b/src/GraphQL/Inputs/SubjectOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/TimeExpression.php b/src/GraphQL/Inputs/TimeExpression.php index c0ba65b..3098f4c 100644 --- a/src/GraphQL/Inputs/TimeExpression.php +++ b/src/GraphQL/Inputs/TimeExpression.php @@ -20,7 +20,8 @@ public function getTimestamp() */ public function setTimestamp($value): self { - return $this->set('timestamp', $value); + $this->set('timestamp', $value); + return $this; } public function hasTimestamp(): bool @@ -30,7 +31,8 @@ public function hasTimestamp(): bool public function unsetTimestamp(): self { - return $this->remove('timestamp'); + $this->remove('timestamp'); + return $this; } /** @@ -46,7 +48,8 @@ public function getExpression() */ public function setExpression($value): self { - return $this->set('expression', $value); + $this->set('expression', $value); + return $this; } public function hasExpression(): bool @@ -56,7 +59,8 @@ public function hasExpression(): bool public function unsetExpression(): self { - return $this->remove('expression'); + $this->remove('expression'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/TitleOrderBy.php b/src/GraphQL/Inputs/TitleOrderBy.php index 6a6251f..4b3b0fd 100644 --- a/src/GraphQL/Inputs/TitleOrderBy.php +++ b/src/GraphQL/Inputs/TitleOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php b/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php index 3250035..db74dad 100644 --- a/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php +++ b/src/GraphQL/Inputs/WorkFeaturedVideoOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/WorkOrderBy.php b/src/GraphQL/Inputs/WorkOrderBy.php index 6a6b326..538553f 100644 --- a/src/GraphQL/Inputs/WorkOrderBy.php +++ b/src/GraphQL/Inputs/WorkOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/Inputs/WorkRelationOrderBy.php b/src/GraphQL/Inputs/WorkRelationOrderBy.php index 4aff8de..c84f3c3 100644 --- a/src/GraphQL/Inputs/WorkRelationOrderBy.php +++ b/src/GraphQL/Inputs/WorkRelationOrderBy.php @@ -20,7 +20,8 @@ public function getField() */ public function setField($value): self { - return $this->set('field', $value); + $this->set('field', $value); + return $this; } public function hasField(): bool @@ -30,7 +31,8 @@ public function hasField(): bool public function unsetField(): self { - return $this->remove('field'); + $this->remove('field'); + return $this; } /** @@ -46,7 +48,8 @@ public function getDirection() */ public function setDirection($value): self { - return $this->set('direction', $value); + $this->set('direction', $value); + return $this; } public function hasDirection(): bool @@ -56,7 +59,8 @@ public function hasDirection(): bool public function unsetDirection(): self { - return $this->remove('direction'); + $this->remove('direction'); + return $this; } public static function definition(): InputObjectTypeDefinition diff --git a/src/GraphQL/ObjectData.php b/src/GraphQL/ObjectData.php index 60a12be..97a4a82 100644 --- a/src/GraphQL/ObjectData.php +++ b/src/GraphQL/ObjectData.php @@ -3,12 +3,13 @@ namespace ThothApi\GraphQL; use ThothApi\GraphQL\Definition\FieldDefinition; +use ThothApi\GraphQL\Definition\ObjectTypeDefinition; -class ObjectData +abstract class ObjectData { private array $data; - public function __construct(array $data = []) + final public function __construct(array $data = []) { $this->data = []; @@ -17,6 +18,9 @@ public function __construct(array $data = []) } } + /** + * @return static + */ public static function fromArray(array $data): self { return new static($data); @@ -49,7 +53,9 @@ protected function remove(string $field): self return $this; } - private static function hydrateFieldValue(string $fieldName, $value) + abstract public static function definition(): ObjectTypeDefinition; + + protected static function hydrateFieldValue(string $fieldName, $value) { $field = static::getFieldDefinition($fieldName); @@ -60,7 +66,7 @@ private static function hydrateFieldValue(string $fieldName, $value) return (new ValueHydrator())->hydrate($value, $field->getType()); } - private static function getFieldDefinition(string $fieldName): ?FieldDefinition + protected static function getFieldDefinition(string $fieldName): ?FieldDefinition { foreach (static::definition()->getFields() as $field) { if ($field->getName() === $fieldName) { diff --git a/src/GraphQL/Schemas/Affiliation.php b/src/GraphQL/Schemas/Affiliation.php index 5c85669..ba7ce30 100644 --- a/src/GraphQL/Schemas/Affiliation.php +++ b/src/GraphQL/Schemas/Affiliation.php @@ -20,7 +20,8 @@ public function getAffiliationId() */ public function setAffiliationId($value): self { - return $this->set('affiliationId', $value); + $this->set('affiliationId', $value); + return $this; } public function hasAffiliationId(): bool @@ -30,7 +31,8 @@ public function hasAffiliationId(): bool public function unsetAffiliationId(): self { - return $this->remove('affiliationId'); + $this->remove('affiliationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -56,7 +59,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -82,7 +87,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAffiliationOrdinal() */ public function setAffiliationOrdinal($value): self { - return $this->set('affiliationOrdinal', $value); + $this->set('affiliationOrdinal', $value); + return $this; } public function hasAffiliationOrdinal(): bool @@ -108,7 +115,8 @@ public function hasAffiliationOrdinal(): bool public function unsetAffiliationOrdinal(): self { - return $this->remove('affiliationOrdinal'); + $this->remove('affiliationOrdinal'); + return $this; } /** @@ -124,7 +132,8 @@ public function getPosition() */ public function setPosition($value): self { - return $this->set('position', $value); + $this->set('position', $value); + return $this; } public function hasPosition(): bool @@ -134,7 +143,8 @@ public function hasPosition(): bool public function unsetPosition(): self { - return $this->remove('position'); + $this->remove('position'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -160,7 +171,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -186,7 +199,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getInstitution() */ public function setInstitution($value): self { - return $this->set('institution', $value); + $this->set('institution', $value); + return $this; } public function hasInstitution(): bool @@ -212,7 +227,8 @@ public function hasInstitution(): bool public function unsetInstitution(): self { - return $this->remove('institution'); + $this->remove('institution'); + return $this; } /** @@ -228,7 +244,8 @@ public function getContribution() */ public function setContribution($value): self { - return $this->set('contribution', $value); + $this->set('contribution', $value); + return $this; } public function hasContribution(): bool @@ -238,7 +255,8 @@ public function hasContribution(): bool public function unsetContribution(): self { - return $this->remove('contribution'); + $this->remove('contribution'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Award.php b/src/GraphQL/Schemas/Award.php index 817b2ae..89ff6ea 100644 --- a/src/GraphQL/Schemas/Award.php +++ b/src/GraphQL/Schemas/Award.php @@ -20,7 +20,8 @@ public function getAwardId() */ public function setAwardId($value): self { - return $this->set('awardId', $value); + $this->set('awardId', $value); + return $this; } public function hasAwardId(): bool @@ -30,7 +31,8 @@ public function hasAwardId(): bool public function unsetAwardId(): self { - return $this->remove('awardId'); + $this->remove('awardId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -108,7 +115,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCategory() */ public function setCategory($value): self { - return $this->set('category', $value); + $this->set('category', $value); + return $this; } public function hasCategory(): bool @@ -134,7 +143,8 @@ public function hasCategory(): bool public function unsetCategory(): self { - return $this->remove('category'); + $this->remove('category'); + return $this; } /** @@ -150,7 +160,8 @@ public function getYear() */ public function setYear($value): self { - return $this->set('year', $value); + $this->set('year', $value); + return $this; } public function hasYear(): bool @@ -160,7 +171,8 @@ public function hasYear(): bool public function unsetYear(): self { - return $this->remove('year'); + $this->remove('year'); + return $this; } /** @@ -176,7 +188,8 @@ public function getJury() */ public function setJury($value): self { - return $this->set('jury', $value); + $this->set('jury', $value); + return $this; } public function hasJury(): bool @@ -186,7 +199,8 @@ public function hasJury(): bool public function unsetJury(): self { - return $this->remove('jury'); + $this->remove('jury'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCountry() */ public function setCountry($value): self { - return $this->set('country', $value); + $this->set('country', $value); + return $this; } public function hasCountry(): bool @@ -212,7 +227,8 @@ public function hasCountry(): bool public function unsetCountry(): self { - return $this->remove('country'); + $this->remove('country'); + return $this; } /** @@ -228,7 +244,8 @@ public function getRole() */ public function setRole($value): self { - return $this->set('role', $value); + $this->set('role', $value); + return $this; } public function hasRole(): bool @@ -238,7 +255,8 @@ public function hasRole(): bool public function unsetRole(): self { - return $this->remove('role'); + $this->remove('role'); + return $this; } /** @@ -254,7 +272,8 @@ public function getPrizeStatement() */ public function setPrizeStatement($value): self { - return $this->set('prizeStatement', $value); + $this->set('prizeStatement', $value); + return $this; } public function hasPrizeStatement(): bool @@ -264,7 +283,8 @@ public function hasPrizeStatement(): bool public function unsetPrizeStatement(): self { - return $this->remove('prizeStatement'); + $this->remove('prizeStatement'); + return $this; } /** @@ -280,7 +300,8 @@ public function getAwardOrdinal() */ public function setAwardOrdinal($value): self { - return $this->set('awardOrdinal', $value); + $this->set('awardOrdinal', $value); + return $this; } public function hasAwardOrdinal(): bool @@ -290,7 +311,8 @@ public function hasAwardOrdinal(): bool public function unsetAwardOrdinal(): self { - return $this->remove('awardOrdinal'); + $this->remove('awardOrdinal'); + return $this; } /** @@ -306,7 +328,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -316,7 +339,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -332,7 +356,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -342,7 +367,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -358,7 +384,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -368,7 +395,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Biography.php b/src/GraphQL/Schemas/Biography.php index bbfc523..b6564df 100644 --- a/src/GraphQL/Schemas/Biography.php +++ b/src/GraphQL/Schemas/Biography.php @@ -20,7 +20,8 @@ public function getBiographyId() */ public function setBiographyId($value): self { - return $this->set('biographyId', $value); + $this->set('biographyId', $value); + return $this; } public function hasBiographyId(): bool @@ -30,7 +31,8 @@ public function hasBiographyId(): bool public function unsetBiographyId(): self { - return $this->remove('biographyId'); + $this->remove('biographyId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -56,7 +59,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -82,7 +87,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -108,7 +115,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -134,7 +143,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -150,7 +160,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -160,7 +171,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -176,7 +188,8 @@ public function getContribution() */ public function setContribution($value): self { - return $this->set('contribution', $value); + $this->set('contribution', $value); + return $this; } public function hasContribution(): bool @@ -186,7 +199,8 @@ public function hasContribution(): bool public function unsetContribution(): self { - return $this->remove('contribution'); + $this->remove('contribution'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/BookReview.php b/src/GraphQL/Schemas/BookReview.php index b674719..9865961 100644 --- a/src/GraphQL/Schemas/BookReview.php +++ b/src/GraphQL/Schemas/BookReview.php @@ -20,7 +20,8 @@ public function getBookReviewId() */ public function setBookReviewId($value): self { - return $this->set('bookReviewId', $value); + $this->set('bookReviewId', $value); + return $this; } public function hasBookReviewId(): bool @@ -30,7 +31,8 @@ public function hasBookReviewId(): bool public function unsetBookReviewId(): self { - return $this->remove('bookReviewId'); + $this->remove('bookReviewId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -108,7 +115,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getReviewerOrcid() */ public function setReviewerOrcid($value): self { - return $this->set('reviewerOrcid', $value); + $this->set('reviewerOrcid', $value); + return $this; } public function hasReviewerOrcid(): bool @@ -134,7 +143,8 @@ public function hasReviewerOrcid(): bool public function unsetReviewerOrcid(): self { - return $this->remove('reviewerOrcid'); + $this->remove('reviewerOrcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getReviewerInstitutionId() */ public function setReviewerInstitutionId($value): self { - return $this->set('reviewerInstitutionId', $value); + $this->set('reviewerInstitutionId', $value); + return $this; } public function hasReviewerInstitutionId(): bool @@ -160,7 +171,8 @@ public function hasReviewerInstitutionId(): bool public function unsetReviewerInstitutionId(): self { - return $this->remove('reviewerInstitutionId'); + $this->remove('reviewerInstitutionId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -186,7 +199,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -202,7 +216,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -212,7 +227,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -228,7 +244,8 @@ public function getReviewDate() */ public function setReviewDate($value): self { - return $this->set('reviewDate', $value); + $this->set('reviewDate', $value); + return $this; } public function hasReviewDate(): bool @@ -238,7 +255,8 @@ public function hasReviewDate(): bool public function unsetReviewDate(): self { - return $this->remove('reviewDate'); + $this->remove('reviewDate'); + return $this; } /** @@ -254,7 +272,8 @@ public function getJournalName() */ public function setJournalName($value): self { - return $this->set('journalName', $value); + $this->set('journalName', $value); + return $this; } public function hasJournalName(): bool @@ -264,7 +283,8 @@ public function hasJournalName(): bool public function unsetJournalName(): self { - return $this->remove('journalName'); + $this->remove('journalName'); + return $this; } /** @@ -280,7 +300,8 @@ public function getJournalVolume() */ public function setJournalVolume($value): self { - return $this->set('journalVolume', $value); + $this->set('journalVolume', $value); + return $this; } public function hasJournalVolume(): bool @@ -290,7 +311,8 @@ public function hasJournalVolume(): bool public function unsetJournalVolume(): self { - return $this->remove('journalVolume'); + $this->remove('journalVolume'); + return $this; } /** @@ -306,7 +328,8 @@ public function getJournalNumber() */ public function setJournalNumber($value): self { - return $this->set('journalNumber', $value); + $this->set('journalNumber', $value); + return $this; } public function hasJournalNumber(): bool @@ -316,7 +339,8 @@ public function hasJournalNumber(): bool public function unsetJournalNumber(): self { - return $this->remove('journalNumber'); + $this->remove('journalNumber'); + return $this; } /** @@ -332,7 +356,8 @@ public function getJournalIssn() */ public function setJournalIssn($value): self { - return $this->set('journalIssn', $value); + $this->set('journalIssn', $value); + return $this; } public function hasJournalIssn(): bool @@ -342,7 +367,8 @@ public function hasJournalIssn(): bool public function unsetJournalIssn(): self { - return $this->remove('journalIssn'); + $this->remove('journalIssn'); + return $this; } /** @@ -358,7 +384,8 @@ public function getPageRange() */ public function setPageRange($value): self { - return $this->set('pageRange', $value); + $this->set('pageRange', $value); + return $this; } public function hasPageRange(): bool @@ -368,7 +395,8 @@ public function hasPageRange(): bool public function unsetPageRange(): self { - return $this->remove('pageRange'); + $this->remove('pageRange'); + return $this; } /** @@ -384,7 +412,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -394,7 +423,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -410,7 +440,8 @@ public function getReviewOrdinal() */ public function setReviewOrdinal($value): self { - return $this->set('reviewOrdinal', $value); + $this->set('reviewOrdinal', $value); + return $this; } public function hasReviewOrdinal(): bool @@ -420,7 +451,8 @@ public function hasReviewOrdinal(): bool public function unsetReviewOrdinal(): self { - return $this->remove('reviewOrdinal'); + $this->remove('reviewOrdinal'); + return $this; } /** @@ -436,7 +468,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -446,7 +479,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -462,7 +496,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -472,7 +507,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -488,7 +524,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -498,7 +535,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -514,7 +552,8 @@ public function getReviewerInstitution() */ public function setReviewerInstitution($value): self { - return $this->set('reviewerInstitution', $value); + $this->set('reviewerInstitution', $value); + return $this; } public function hasReviewerInstitution(): bool @@ -524,7 +563,8 @@ public function hasReviewerInstitution(): bool public function unsetReviewerInstitution(): self { - return $this->remove('reviewerInstitution'); + $this->remove('reviewerInstitution'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Contact.php b/src/GraphQL/Schemas/Contact.php index b02bd02..8acf04b 100644 --- a/src/GraphQL/Schemas/Contact.php +++ b/src/GraphQL/Schemas/Contact.php @@ -20,7 +20,8 @@ public function getContactId() */ public function setContactId($value): self { - return $this->set('contactId', $value); + $this->set('contactId', $value); + return $this; } public function hasContactId(): bool @@ -30,7 +31,8 @@ public function hasContactId(): bool public function unsetContactId(): self { - return $this->remove('contactId'); + $this->remove('contactId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -56,7 +59,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getContactType() */ public function setContactType($value): self { - return $this->set('contactType', $value); + $this->set('contactType', $value); + return $this; } public function hasContactType(): bool @@ -82,7 +87,8 @@ public function hasContactType(): bool public function unsetContactType(): self { - return $this->remove('contactType'); + $this->remove('contactType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getEmail() */ public function setEmail($value): self { - return $this->set('email', $value); + $this->set('email', $value); + return $this; } public function hasEmail(): bool @@ -108,7 +115,8 @@ public function hasEmail(): bool public function unsetEmail(): self { - return $this->remove('email'); + $this->remove('email'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -134,7 +143,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -160,7 +171,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getPublisher() */ public function setPublisher($value): self { - return $this->set('publisher', $value); + $this->set('publisher', $value); + return $this; } public function hasPublisher(): bool @@ -186,7 +199,8 @@ public function hasPublisher(): bool public function unsetPublisher(): self { - return $this->remove('publisher'); + $this->remove('publisher'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Contribution.php b/src/GraphQL/Schemas/Contribution.php index 7ceefee..c2e9324 100644 --- a/src/GraphQL/Schemas/Contribution.php +++ b/src/GraphQL/Schemas/Contribution.php @@ -20,7 +20,8 @@ public function getContributionId() */ public function setContributionId($value): self { - return $this->set('contributionId', $value); + $this->set('contributionId', $value); + return $this; } public function hasContributionId(): bool @@ -30,7 +31,8 @@ public function hasContributionId(): bool public function unsetContributionId(): self { - return $this->remove('contributionId'); + $this->remove('contributionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getContributorId() */ public function setContributorId($value): self { - return $this->set('contributorId', $value); + $this->set('contributorId', $value); + return $this; } public function hasContributorId(): bool @@ -56,7 +59,8 @@ public function hasContributorId(): bool public function unsetContributorId(): self { - return $this->remove('contributorId'); + $this->remove('contributorId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -82,7 +87,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getContributionType() */ public function setContributionType($value): self { - return $this->set('contributionType', $value); + $this->set('contributionType', $value); + return $this; } public function hasContributionType(): bool @@ -108,7 +115,8 @@ public function hasContributionType(): bool public function unsetContributionType(): self { - return $this->remove('contributionType'); + $this->remove('contributionType'); + return $this; } /** @@ -124,7 +132,8 @@ public function getMainContribution() */ public function setMainContribution($value): self { - return $this->set('mainContribution', $value); + $this->set('mainContribution', $value); + return $this; } public function hasMainContribution(): bool @@ -134,7 +143,8 @@ public function hasMainContribution(): bool public function unsetMainContribution(): self { - return $this->remove('mainContribution'); + $this->remove('mainContribution'); + return $this; } /** @@ -150,7 +160,8 @@ public function getBiographies() */ public function setBiographies($value): self { - return $this->set('biographies', $value); + $this->set('biographies', $value); + return $this; } public function hasBiographies(): bool @@ -160,7 +171,8 @@ public function hasBiographies(): bool public function unsetBiographies(): self { - return $this->remove('biographies'); + $this->remove('biographies'); + return $this; } /** @@ -176,7 +188,8 @@ public function getBiography() */ public function setBiography($value): self { - return $this->set('biography', $value); + $this->set('biography', $value); + return $this; } public function hasBiography(): bool @@ -186,7 +199,8 @@ public function hasBiography(): bool public function unsetBiography(): self { - return $this->remove('biography'); + $this->remove('biography'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -212,7 +227,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -228,7 +244,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -238,7 +255,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -254,7 +272,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -264,7 +283,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -280,7 +300,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -290,7 +311,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -306,7 +328,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -316,7 +339,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -332,7 +356,8 @@ public function getContributionOrdinal() */ public function setContributionOrdinal($value): self { - return $this->set('contributionOrdinal', $value); + $this->set('contributionOrdinal', $value); + return $this; } public function hasContributionOrdinal(): bool @@ -342,7 +367,8 @@ public function hasContributionOrdinal(): bool public function unsetContributionOrdinal(): self { - return $this->remove('contributionOrdinal'); + $this->remove('contributionOrdinal'); + return $this; } /** @@ -358,7 +384,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -368,7 +395,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -384,7 +412,8 @@ public function getContributor() */ public function setContributor($value): self { - return $this->set('contributor', $value); + $this->set('contributor', $value); + return $this; } public function hasContributor(): bool @@ -394,7 +423,8 @@ public function hasContributor(): bool public function unsetContributor(): self { - return $this->remove('contributor'); + $this->remove('contributor'); + return $this; } /** @@ -410,7 +440,8 @@ public function getAffiliations() */ public function setAffiliations($value): self { - return $this->set('affiliations', $value); + $this->set('affiliations', $value); + return $this; } public function hasAffiliations(): bool @@ -420,7 +451,8 @@ public function hasAffiliations(): bool public function unsetAffiliations(): self { - return $this->remove('affiliations'); + $this->remove('affiliations'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Contributor.php b/src/GraphQL/Schemas/Contributor.php index 2339816..90b0d9a 100644 --- a/src/GraphQL/Schemas/Contributor.php +++ b/src/GraphQL/Schemas/Contributor.php @@ -20,7 +20,8 @@ public function getContributorId() */ public function setContributorId($value): self { - return $this->set('contributorId', $value); + $this->set('contributorId', $value); + return $this; } public function hasContributorId(): bool @@ -30,7 +31,8 @@ public function hasContributorId(): bool public function unsetContributorId(): self { - return $this->remove('contributorId'); + $this->remove('contributorId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -56,7 +59,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -82,7 +87,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullName() */ public function setFullName($value): self { - return $this->set('fullName', $value); + $this->set('fullName', $value); + return $this; } public function hasFullName(): bool @@ -108,7 +115,8 @@ public function hasFullName(): bool public function unsetFullName(): self { - return $this->remove('fullName'); + $this->remove('fullName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getOrcid() */ public function setOrcid($value): self { - return $this->set('orcid', $value); + $this->set('orcid', $value); + return $this; } public function hasOrcid(): bool @@ -134,7 +143,8 @@ public function hasOrcid(): bool public function unsetOrcid(): self { - return $this->remove('orcid'); + $this->remove('orcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getWebsite() */ public function setWebsite($value): self { - return $this->set('website', $value); + $this->set('website', $value); + return $this; } public function hasWebsite(): bool @@ -160,7 +171,8 @@ public function hasWebsite(): bool public function unsetWebsite(): self { - return $this->remove('website'); + $this->remove('website'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -186,7 +199,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -212,7 +227,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -228,7 +244,8 @@ public function getContributions() */ public function setContributions($value): self { - return $this->set('contributions', $value); + $this->set('contributions', $value); + return $this; } public function hasContributions(): bool @@ -238,7 +255,8 @@ public function hasContributions(): bool public function unsetContributions(): self { - return $this->remove('contributions'); + $this->remove('contributions'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Endorsement.php b/src/GraphQL/Schemas/Endorsement.php index b1b61c5..5e2bef3 100644 --- a/src/GraphQL/Schemas/Endorsement.php +++ b/src/GraphQL/Schemas/Endorsement.php @@ -20,7 +20,8 @@ public function getEndorsementId() */ public function setEndorsementId($value): self { - return $this->set('endorsementId', $value); + $this->set('endorsementId', $value); + return $this; } public function hasEndorsementId(): bool @@ -30,7 +31,8 @@ public function hasEndorsementId(): bool public function unsetEndorsementId(): self { - return $this->remove('endorsementId'); + $this->remove('endorsementId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getAuthorName() */ public function setAuthorName($value): self { - return $this->set('authorName', $value); + $this->set('authorName', $value); + return $this; } public function hasAuthorName(): bool @@ -82,7 +87,8 @@ public function hasAuthorName(): bool public function unsetAuthorName(): self { - return $this->remove('authorName'); + $this->remove('authorName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getAuthorRole() */ public function setAuthorRole($value): self { - return $this->set('authorRole', $value); + $this->set('authorRole', $value); + return $this; } public function hasAuthorRole(): bool @@ -108,7 +115,8 @@ public function hasAuthorRole(): bool public function unsetAuthorRole(): self { - return $this->remove('authorRole'); + $this->remove('authorRole'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAuthorOrcid() */ public function setAuthorOrcid($value): self { - return $this->set('authorOrcid', $value); + $this->set('authorOrcid', $value); + return $this; } public function hasAuthorOrcid(): bool @@ -134,7 +143,8 @@ public function hasAuthorOrcid(): bool public function unsetAuthorOrcid(): self { - return $this->remove('authorOrcid'); + $this->remove('authorOrcid'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAuthorInstitutionId() */ public function setAuthorInstitutionId($value): self { - return $this->set('authorInstitutionId', $value); + $this->set('authorInstitutionId', $value); + return $this; } public function hasAuthorInstitutionId(): bool @@ -160,7 +171,8 @@ public function hasAuthorInstitutionId(): bool public function unsetAuthorInstitutionId(): self { - return $this->remove('authorInstitutionId'); + $this->remove('authorInstitutionId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -186,7 +199,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -202,7 +216,8 @@ public function getText() */ public function setText($value): self { - return $this->set('text', $value); + $this->set('text', $value); + return $this; } public function hasText(): bool @@ -212,7 +227,8 @@ public function hasText(): bool public function unsetText(): self { - return $this->remove('text'); + $this->remove('text'); + return $this; } /** @@ -228,7 +244,8 @@ public function getEndorsementOrdinal() */ public function setEndorsementOrdinal($value): self { - return $this->set('endorsementOrdinal', $value); + $this->set('endorsementOrdinal', $value); + return $this; } public function hasEndorsementOrdinal(): bool @@ -238,7 +255,8 @@ public function hasEndorsementOrdinal(): bool public function unsetEndorsementOrdinal(): self { - return $this->remove('endorsementOrdinal'); + $this->remove('endorsementOrdinal'); + return $this; } /** @@ -254,7 +272,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -264,7 +283,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -280,7 +300,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -290,7 +311,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -306,7 +328,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -316,7 +339,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAuthorInstitution() */ public function setAuthorInstitution($value): self { - return $this->set('authorInstitution', $value); + $this->set('authorInstitution', $value); + return $this; } public function hasAuthorInstitution(): bool @@ -342,7 +367,8 @@ public function hasAuthorInstitution(): bool public function unsetAuthorInstitution(): self { - return $this->remove('authorInstitution'); + $this->remove('authorInstitution'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/File.php b/src/GraphQL/Schemas/File.php index d04abc3..30c3f4c 100644 --- a/src/GraphQL/Schemas/File.php +++ b/src/GraphQL/Schemas/File.php @@ -20,7 +20,8 @@ public function getFileId() */ public function setFileId($value): self { - return $this->set('fileId', $value); + $this->set('fileId', $value); + return $this; } public function hasFileId(): bool @@ -30,7 +31,8 @@ public function hasFileId(): bool public function unsetFileId(): self { - return $this->remove('fileId'); + $this->remove('fileId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getFileType() */ public function setFileType($value): self { - return $this->set('fileType', $value); + $this->set('fileType', $value); + return $this; } public function hasFileType(): bool @@ -56,7 +59,8 @@ public function hasFileType(): bool public function unsetFileType(): self { - return $this->remove('fileType'); + $this->remove('fileType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -82,7 +87,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -108,7 +115,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAdditionalResourceId() */ public function setAdditionalResourceId($value): self { - return $this->set('additionalResourceId', $value); + $this->set('additionalResourceId', $value); + return $this; } public function hasAdditionalResourceId(): bool @@ -134,7 +143,8 @@ public function hasAdditionalResourceId(): bool public function unsetAdditionalResourceId(): self { - return $this->remove('additionalResourceId'); + $this->remove('additionalResourceId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getWorkFeaturedVideoId() */ public function setWorkFeaturedVideoId($value): self { - return $this->set('workFeaturedVideoId', $value); + $this->set('workFeaturedVideoId', $value); + return $this; } public function hasWorkFeaturedVideoId(): bool @@ -160,7 +171,8 @@ public function hasWorkFeaturedVideoId(): bool public function unsetWorkFeaturedVideoId(): self { - return $this->remove('workFeaturedVideoId'); + $this->remove('workFeaturedVideoId'); + return $this; } /** @@ -176,7 +188,8 @@ public function getObjectKey() */ public function setObjectKey($value): self { - return $this->set('objectKey', $value); + $this->set('objectKey', $value); + return $this; } public function hasObjectKey(): bool @@ -186,7 +199,8 @@ public function hasObjectKey(): bool public function unsetObjectKey(): self { - return $this->remove('objectKey'); + $this->remove('objectKey'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCdnUrl() */ public function setCdnUrl($value): self { - return $this->set('cdnUrl', $value); + $this->set('cdnUrl', $value); + return $this; } public function hasCdnUrl(): bool @@ -212,7 +227,8 @@ public function hasCdnUrl(): bool public function unsetCdnUrl(): self { - return $this->remove('cdnUrl'); + $this->remove('cdnUrl'); + return $this; } /** @@ -228,7 +244,8 @@ public function getMimeType() */ public function setMimeType($value): self { - return $this->set('mimeType', $value); + $this->set('mimeType', $value); + return $this; } public function hasMimeType(): bool @@ -238,7 +255,8 @@ public function hasMimeType(): bool public function unsetMimeType(): self { - return $this->remove('mimeType'); + $this->remove('mimeType'); + return $this; } /** @@ -254,7 +272,8 @@ public function getBytes() */ public function setBytes($value): self { - return $this->set('bytes', $value); + $this->set('bytes', $value); + return $this; } public function hasBytes(): bool @@ -264,7 +283,8 @@ public function hasBytes(): bool public function unsetBytes(): self { - return $this->remove('bytes'); + $this->remove('bytes'); + return $this; } /** @@ -280,7 +300,8 @@ public function getSha256() */ public function setSha256($value): self { - return $this->set('sha256', $value); + $this->set('sha256', $value); + return $this; } public function hasSha256(): bool @@ -290,7 +311,8 @@ public function hasSha256(): bool public function unsetSha256(): self { - return $this->remove('sha256'); + $this->remove('sha256'); + return $this; } /** @@ -306,7 +328,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -316,7 +339,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -332,7 +356,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -342,7 +367,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/FileUploadResponse.php b/src/GraphQL/Schemas/FileUploadResponse.php index 5ca189d..da63723 100644 --- a/src/GraphQL/Schemas/FileUploadResponse.php +++ b/src/GraphQL/Schemas/FileUploadResponse.php @@ -20,7 +20,8 @@ public function getFileUploadId() */ public function setFileUploadId($value): self { - return $this->set('fileUploadId', $value); + $this->set('fileUploadId', $value); + return $this; } public function hasFileUploadId(): bool @@ -30,7 +31,8 @@ public function hasFileUploadId(): bool public function unsetFileUploadId(): self { - return $this->remove('fileUploadId'); + $this->remove('fileUploadId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getUploadUrl() */ public function setUploadUrl($value): self { - return $this->set('uploadUrl', $value); + $this->set('uploadUrl', $value); + return $this; } public function hasUploadUrl(): bool @@ -56,7 +59,8 @@ public function hasUploadUrl(): bool public function unsetUploadUrl(): self { - return $this->remove('uploadUrl'); + $this->remove('uploadUrl'); + return $this; } /** @@ -72,7 +76,8 @@ public function getUploadHeaders() */ public function setUploadHeaders($value): self { - return $this->set('uploadHeaders', $value); + $this->set('uploadHeaders', $value); + return $this; } public function hasUploadHeaders(): bool @@ -82,7 +87,8 @@ public function hasUploadHeaders(): bool public function unsetUploadHeaders(): self { - return $this->remove('uploadHeaders'); + $this->remove('uploadHeaders'); + return $this; } /** @@ -98,7 +104,8 @@ public function getExpiresAt() */ public function setExpiresAt($value): self { - return $this->set('expiresAt', $value); + $this->set('expiresAt', $value); + return $this; } public function hasExpiresAt(): bool @@ -108,7 +115,8 @@ public function hasExpiresAt(): bool public function unsetExpiresAt(): self { - return $this->remove('expiresAt'); + $this->remove('expiresAt'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Funding.php b/src/GraphQL/Schemas/Funding.php index c93157f..15e4ed4 100644 --- a/src/GraphQL/Schemas/Funding.php +++ b/src/GraphQL/Schemas/Funding.php @@ -20,7 +20,8 @@ public function getFundingId() */ public function setFundingId($value): self { - return $this->set('fundingId', $value); + $this->set('fundingId', $value); + return $this; } public function hasFundingId(): bool @@ -30,7 +31,8 @@ public function hasFundingId(): bool public function unsetFundingId(): self { - return $this->remove('fundingId'); + $this->remove('fundingId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -82,7 +87,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getProgram() */ public function setProgram($value): self { - return $this->set('program', $value); + $this->set('program', $value); + return $this; } public function hasProgram(): bool @@ -108,7 +115,8 @@ public function hasProgram(): bool public function unsetProgram(): self { - return $this->remove('program'); + $this->remove('program'); + return $this; } /** @@ -124,7 +132,8 @@ public function getProjectName() */ public function setProjectName($value): self { - return $this->set('projectName', $value); + $this->set('projectName', $value); + return $this; } public function hasProjectName(): bool @@ -134,7 +143,8 @@ public function hasProjectName(): bool public function unsetProjectName(): self { - return $this->remove('projectName'); + $this->remove('projectName'); + return $this; } /** @@ -150,7 +160,8 @@ public function getProjectShortname() */ public function setProjectShortname($value): self { - return $this->set('projectShortname', $value); + $this->set('projectShortname', $value); + return $this; } public function hasProjectShortname(): bool @@ -160,7 +171,8 @@ public function hasProjectShortname(): bool public function unsetProjectShortname(): self { - return $this->remove('projectShortname'); + $this->remove('projectShortname'); + return $this; } /** @@ -176,7 +188,8 @@ public function getGrantNumber() */ public function setGrantNumber($value): self { - return $this->set('grantNumber', $value); + $this->set('grantNumber', $value); + return $this; } public function hasGrantNumber(): bool @@ -186,7 +199,8 @@ public function hasGrantNumber(): bool public function unsetGrantNumber(): self { - return $this->remove('grantNumber'); + $this->remove('grantNumber'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -212,7 +227,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -228,7 +244,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -238,7 +255,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -254,7 +272,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -264,7 +283,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -280,7 +300,8 @@ public function getInstitution() */ public function setInstitution($value): self { - return $this->set('institution', $value); + $this->set('institution', $value); + return $this; } public function hasInstitution(): bool @@ -290,7 +311,8 @@ public function hasInstitution(): bool public function unsetInstitution(): self { - return $this->remove('institution'); + $this->remove('institution'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/GraphQLAbstract.php b/src/GraphQL/Schemas/GraphQLAbstract.php index 2405c01..a5b7f2a 100644 --- a/src/GraphQL/Schemas/GraphQLAbstract.php +++ b/src/GraphQL/Schemas/GraphQLAbstract.php @@ -20,7 +20,8 @@ public function getAbstractId() */ public function setAbstractId($value): self { - return $this->set('abstractId', $value); + $this->set('abstractId', $value); + return $this; } public function hasAbstractId(): bool @@ -30,7 +31,8 @@ public function hasAbstractId(): bool public function unsetAbstractId(): self { - return $this->remove('abstractId'); + $this->remove('abstractId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -82,7 +87,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getContent() */ public function setContent($value): self { - return $this->set('content', $value); + $this->set('content', $value); + return $this; } public function hasContent(): bool @@ -108,7 +115,8 @@ public function hasContent(): bool public function unsetContent(): self { - return $this->remove('content'); + $this->remove('content'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -134,7 +143,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAbstractType() */ public function setAbstractType($value): self { - return $this->set('abstractType', $value); + $this->set('abstractType', $value); + return $this; } public function hasAbstractType(): bool @@ -160,7 +171,8 @@ public function hasAbstractType(): bool public function unsetAbstractType(): self { - return $this->remove('abstractType'); + $this->remove('abstractType'); + return $this; } /** @@ -176,7 +188,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -186,7 +199,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Imprint.php b/src/GraphQL/Schemas/Imprint.php index 012c4b2..003bc67 100644 --- a/src/GraphQL/Schemas/Imprint.php +++ b/src/GraphQL/Schemas/Imprint.php @@ -20,7 +20,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -30,7 +31,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -56,7 +59,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getImprintName() */ public function setImprintName($value): self { - return $this->set('imprintName', $value); + $this->set('imprintName', $value); + return $this; } public function hasImprintName(): bool @@ -82,7 +87,8 @@ public function hasImprintName(): bool public function unsetImprintName(): self { - return $this->remove('imprintName'); + $this->remove('imprintName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getImprintUrl() */ public function setImprintUrl($value): self { - return $this->set('imprintUrl', $value); + $this->set('imprintUrl', $value); + return $this; } public function hasImprintUrl(): bool @@ -108,7 +115,8 @@ public function hasImprintUrl(): bool public function unsetImprintUrl(): self { - return $this->remove('imprintUrl'); + $this->remove('imprintUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCrossmarkDoi() */ public function setCrossmarkDoi($value): self { - return $this->set('crossmarkDoi', $value); + $this->set('crossmarkDoi', $value); + return $this; } public function hasCrossmarkDoi(): bool @@ -134,7 +143,8 @@ public function hasCrossmarkDoi(): bool public function unsetCrossmarkDoi(): self { - return $this->remove('crossmarkDoi'); + $this->remove('crossmarkDoi'); + return $this; } /** @@ -150,7 +160,8 @@ public function getS3Bucket() */ public function setS3Bucket($value): self { - return $this->set('s3Bucket', $value); + $this->set('s3Bucket', $value); + return $this; } public function hasS3Bucket(): bool @@ -160,7 +171,8 @@ public function hasS3Bucket(): bool public function unsetS3Bucket(): self { - return $this->remove('s3Bucket'); + $this->remove('s3Bucket'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCdnDomain() */ public function setCdnDomain($value): self { - return $this->set('cdnDomain', $value); + $this->set('cdnDomain', $value); + return $this; } public function hasCdnDomain(): bool @@ -186,7 +199,8 @@ public function hasCdnDomain(): bool public function unsetCdnDomain(): self { - return $this->remove('cdnDomain'); + $this->remove('cdnDomain'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCloudfrontDistId() */ public function setCloudfrontDistId($value): self { - return $this->set('cloudfrontDistId', $value); + $this->set('cloudfrontDistId', $value); + return $this; } public function hasCloudfrontDistId(): bool @@ -212,7 +227,8 @@ public function hasCloudfrontDistId(): bool public function unsetCloudfrontDistId(): self { - return $this->remove('cloudfrontDistId'); + $this->remove('cloudfrontDistId'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDefaultCurrency() */ public function setDefaultCurrency($value): self { - return $this->set('defaultCurrency', $value); + $this->set('defaultCurrency', $value); + return $this; } public function hasDefaultCurrency(): bool @@ -238,7 +255,8 @@ public function hasDefaultCurrency(): bool public function unsetDefaultCurrency(): self { - return $this->remove('defaultCurrency'); + $this->remove('defaultCurrency'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDefaultPlace() */ public function setDefaultPlace($value): self { - return $this->set('defaultPlace', $value); + $this->set('defaultPlace', $value); + return $this; } public function hasDefaultPlace(): bool @@ -264,7 +283,8 @@ public function hasDefaultPlace(): bool public function unsetDefaultPlace(): self { - return $this->remove('defaultPlace'); + $this->remove('defaultPlace'); + return $this; } /** @@ -280,7 +300,8 @@ public function getDefaultLocale() */ public function setDefaultLocale($value): self { - return $this->set('defaultLocale', $value); + $this->set('defaultLocale', $value); + return $this; } public function hasDefaultLocale(): bool @@ -290,7 +311,8 @@ public function hasDefaultLocale(): bool public function unsetDefaultLocale(): self { - return $this->remove('defaultLocale'); + $this->remove('defaultLocale'); + return $this; } /** @@ -306,7 +328,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -316,7 +339,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -332,7 +356,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -342,7 +367,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -358,7 +384,8 @@ public function getPublisher() */ public function setPublisher($value): self { - return $this->set('publisher', $value); + $this->set('publisher', $value); + return $this; } public function hasPublisher(): bool @@ -368,7 +395,8 @@ public function hasPublisher(): bool public function unsetPublisher(): self { - return $this->remove('publisher'); + $this->remove('publisher'); + return $this; } /** @@ -384,7 +412,8 @@ public function getWorks() */ public function setWorks($value): self { - return $this->set('works', $value); + $this->set('works', $value); + return $this; } public function hasWorks(): bool @@ -394,7 +423,8 @@ public function hasWorks(): bool public function unsetWorks(): self { - return $this->remove('works'); + $this->remove('works'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Institution.php b/src/GraphQL/Schemas/Institution.php index ad130a2..518b6ec 100644 --- a/src/GraphQL/Schemas/Institution.php +++ b/src/GraphQL/Schemas/Institution.php @@ -20,7 +20,8 @@ public function getInstitutionId() */ public function setInstitutionId($value): self { - return $this->set('institutionId', $value); + $this->set('institutionId', $value); + return $this; } public function hasInstitutionId(): bool @@ -30,7 +31,8 @@ public function hasInstitutionId(): bool public function unsetInstitutionId(): self { - return $this->remove('institutionId'); + $this->remove('institutionId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getInstitutionName() */ public function setInstitutionName($value): self { - return $this->set('institutionName', $value); + $this->set('institutionName', $value); + return $this; } public function hasInstitutionName(): bool @@ -56,7 +59,8 @@ public function hasInstitutionName(): bool public function unsetInstitutionName(): self { - return $this->remove('institutionName'); + $this->remove('institutionName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getInstitutionDoi() */ public function setInstitutionDoi($value): self { - return $this->set('institutionDoi', $value); + $this->set('institutionDoi', $value); + return $this; } public function hasInstitutionDoi(): bool @@ -82,7 +87,8 @@ public function hasInstitutionDoi(): bool public function unsetInstitutionDoi(): self { - return $this->remove('institutionDoi'); + $this->remove('institutionDoi'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCountryCode() */ public function setCountryCode($value): self { - return $this->set('countryCode', $value); + $this->set('countryCode', $value); + return $this; } public function hasCountryCode(): bool @@ -108,7 +115,8 @@ public function hasCountryCode(): bool public function unsetCountryCode(): self { - return $this->remove('countryCode'); + $this->remove('countryCode'); + return $this; } /** @@ -124,7 +132,8 @@ public function getRor() */ public function setRor($value): self { - return $this->set('ror', $value); + $this->set('ror', $value); + return $this; } public function hasRor(): bool @@ -134,7 +143,8 @@ public function hasRor(): bool public function unsetRor(): self { - return $this->remove('ror'); + $this->remove('ror'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -160,7 +171,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -186,7 +199,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getFundings() */ public function setFundings($value): self { - return $this->set('fundings', $value); + $this->set('fundings', $value); + return $this; } public function hasFundings(): bool @@ -212,7 +227,8 @@ public function hasFundings(): bool public function unsetFundings(): self { - return $this->remove('fundings'); + $this->remove('fundings'); + return $this; } /** @@ -228,7 +244,8 @@ public function getAffiliations() */ public function setAffiliations($value): self { - return $this->set('affiliations', $value); + $this->set('affiliations', $value); + return $this; } public function hasAffiliations(): bool @@ -238,7 +255,8 @@ public function hasAffiliations(): bool public function unsetAffiliations(): self { - return $this->remove('affiliations'); + $this->remove('affiliations'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Issue.php b/src/GraphQL/Schemas/Issue.php index 31b9b7f..a65ccc6 100644 --- a/src/GraphQL/Schemas/Issue.php +++ b/src/GraphQL/Schemas/Issue.php @@ -20,7 +20,8 @@ public function getIssueId() */ public function setIssueId($value): self { - return $this->set('issueId', $value); + $this->set('issueId', $value); + return $this; } public function hasIssueId(): bool @@ -30,7 +31,8 @@ public function hasIssueId(): bool public function unsetIssueId(): self { - return $this->remove('issueId'); + $this->remove('issueId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSeriesId() */ public function setSeriesId($value): self { - return $this->set('seriesId', $value); + $this->set('seriesId', $value); + return $this; } public function hasSeriesId(): bool @@ -82,7 +87,8 @@ public function hasSeriesId(): bool public function unsetSeriesId(): self { - return $this->remove('seriesId'); + $this->remove('seriesId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssueOrdinal() */ public function setIssueOrdinal($value): self { - return $this->set('issueOrdinal', $value); + $this->set('issueOrdinal', $value); + return $this; } public function hasIssueOrdinal(): bool @@ -108,7 +115,8 @@ public function hasIssueOrdinal(): bool public function unsetIssueOrdinal(): self { - return $this->remove('issueOrdinal'); + $this->remove('issueOrdinal'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIssueNumber() */ public function setIssueNumber($value): self { - return $this->set('issueNumber', $value); + $this->set('issueNumber', $value); + return $this; } public function hasIssueNumber(): bool @@ -134,7 +143,8 @@ public function hasIssueNumber(): bool public function unsetIssueNumber(): self { - return $this->remove('issueNumber'); + $this->remove('issueNumber'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -160,7 +171,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -186,7 +199,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getSeries() */ public function setSeries($value): self { - return $this->set('series', $value); + $this->set('series', $value); + return $this; } public function hasSeries(): bool @@ -212,7 +227,8 @@ public function hasSeries(): bool public function unsetSeries(): self { - return $this->remove('series'); + $this->remove('series'); + return $this; } /** @@ -228,7 +244,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -238,7 +255,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Language.php b/src/GraphQL/Schemas/Language.php index 11cd620..6f43f3b 100644 --- a/src/GraphQL/Schemas/Language.php +++ b/src/GraphQL/Schemas/Language.php @@ -20,7 +20,8 @@ public function getLanguageId() */ public function setLanguageId($value): self { - return $this->set('languageId', $value); + $this->set('languageId', $value); + return $this; } public function hasLanguageId(): bool @@ -30,7 +31,8 @@ public function hasLanguageId(): bool public function unsetLanguageId(): self { - return $this->remove('languageId'); + $this->remove('languageId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLanguageCode() */ public function setLanguageCode($value): self { - return $this->set('languageCode', $value); + $this->set('languageCode', $value); + return $this; } public function hasLanguageCode(): bool @@ -82,7 +87,8 @@ public function hasLanguageCode(): bool public function unsetLanguageCode(): self { - return $this->remove('languageCode'); + $this->remove('languageCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLanguageRelation() */ public function setLanguageRelation($value): self { - return $this->set('languageRelation', $value); + $this->set('languageRelation', $value); + return $this; } public function hasLanguageRelation(): bool @@ -108,7 +115,8 @@ public function hasLanguageRelation(): bool public function unsetLanguageRelation(): self { - return $this->remove('languageRelation'); + $this->remove('languageRelation'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -134,7 +143,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -160,7 +171,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -186,7 +199,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Location.php b/src/GraphQL/Schemas/Location.php index 945aca1..94e88c7 100644 --- a/src/GraphQL/Schemas/Location.php +++ b/src/GraphQL/Schemas/Location.php @@ -20,7 +20,8 @@ public function getLocationId() */ public function setLocationId($value): self { - return $this->set('locationId', $value); + $this->set('locationId', $value); + return $this; } public function hasLocationId(): bool @@ -30,7 +31,8 @@ public function hasLocationId(): bool public function unsetLocationId(): self { - return $this->remove('locationId'); + $this->remove('locationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -56,7 +59,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -82,7 +87,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullTextUrl() */ public function setFullTextUrl($value): self { - return $this->set('fullTextUrl', $value); + $this->set('fullTextUrl', $value); + return $this; } public function hasFullTextUrl(): bool @@ -108,7 +115,8 @@ public function hasFullTextUrl(): bool public function unsetFullTextUrl(): self { - return $this->remove('fullTextUrl'); + $this->remove('fullTextUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getLocationPlatform() */ public function setLocationPlatform($value): self { - return $this->set('locationPlatform', $value); + $this->set('locationPlatform', $value); + return $this; } public function hasLocationPlatform(): bool @@ -134,7 +143,8 @@ public function hasLocationPlatform(): bool public function unsetLocationPlatform(): self { - return $this->remove('locationPlatform'); + $this->remove('locationPlatform'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -160,7 +171,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -176,7 +188,8 @@ public function getChecksum() */ public function setChecksum($value): self { - return $this->set('checksum', $value); + $this->set('checksum', $value); + return $this; } public function hasChecksum(): bool @@ -186,7 +199,8 @@ public function hasChecksum(): bool public function unsetChecksum(): self { - return $this->remove('checksum'); + $this->remove('checksum'); + return $this; } /** @@ -202,7 +216,8 @@ public function getChecksumAlgorithm() */ public function setChecksumAlgorithm($value): self { - return $this->set('checksumAlgorithm', $value); + $this->set('checksumAlgorithm', $value); + return $this; } public function hasChecksumAlgorithm(): bool @@ -212,7 +227,8 @@ public function hasChecksumAlgorithm(): bool public function unsetChecksumAlgorithm(): self { - return $this->remove('checksumAlgorithm'); + $this->remove('checksumAlgorithm'); + return $this; } /** @@ -228,7 +244,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -238,7 +255,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -254,7 +272,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -264,7 +283,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -280,7 +300,8 @@ public function getPublication() */ public function setPublication($value): self { - return $this->set('publication', $value); + $this->set('publication', $value); + return $this; } public function hasPublication(): bool @@ -290,7 +311,8 @@ public function hasPublication(): bool public function unsetPublication(): self { - return $this->remove('publication'); + $this->remove('publication'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Me.php b/src/GraphQL/Schemas/Me.php index 4ead8e0..02affe4 100644 --- a/src/GraphQL/Schemas/Me.php +++ b/src/GraphQL/Schemas/Me.php @@ -20,7 +20,8 @@ public function getUserId() */ public function setUserId($value): self { - return $this->set('userId', $value); + $this->set('userId', $value); + return $this; } public function hasUserId(): bool @@ -30,7 +31,8 @@ public function hasUserId(): bool public function unsetUserId(): self { - return $this->remove('userId'); + $this->remove('userId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getEmail() */ public function setEmail($value): self { - return $this->set('email', $value); + $this->set('email', $value); + return $this; } public function hasEmail(): bool @@ -56,7 +59,8 @@ public function hasEmail(): bool public function unsetEmail(): self { - return $this->remove('email'); + $this->remove('email'); + return $this; } /** @@ -72,7 +76,8 @@ public function getFirstName() */ public function setFirstName($value): self { - return $this->set('firstName', $value); + $this->set('firstName', $value); + return $this; } public function hasFirstName(): bool @@ -82,7 +87,8 @@ public function hasFirstName(): bool public function unsetFirstName(): self { - return $this->remove('firstName'); + $this->remove('firstName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getLastName() */ public function setLastName($value): self { - return $this->set('lastName', $value); + $this->set('lastName', $value); + return $this; } public function hasLastName(): bool @@ -108,7 +115,8 @@ public function hasLastName(): bool public function unsetLastName(): self { - return $this->remove('lastName'); + $this->remove('lastName'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIsSuperuser() */ public function setIsSuperuser($value): self { - return $this->set('isSuperuser', $value); + $this->set('isSuperuser', $value); + return $this; } public function hasIsSuperuser(): bool @@ -134,7 +143,8 @@ public function hasIsSuperuser(): bool public function unsetIsSuperuser(): self { - return $this->remove('isSuperuser'); + $this->remove('isSuperuser'); + return $this; } /** @@ -150,7 +160,8 @@ public function getPublisherContexts() */ public function setPublisherContexts($value): self { - return $this->set('publisherContexts', $value); + $this->set('publisherContexts', $value); + return $this; } public function hasPublisherContexts(): bool @@ -160,7 +171,8 @@ public function hasPublisherContexts(): bool public function unsetPublisherContexts(): self { - return $this->remove('publisherContexts'); + $this->remove('publisherContexts'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/MutationRoot.php b/src/GraphQL/Schemas/MutationRoot.php index a47a575..c0cead0 100644 --- a/src/GraphQL/Schemas/MutationRoot.php +++ b/src/GraphQL/Schemas/MutationRoot.php @@ -20,7 +20,8 @@ public function getCreateWork() */ public function setCreateWork($value): self { - return $this->set('createWork', $value); + $this->set('createWork', $value); + return $this; } public function hasCreateWork(): bool @@ -30,7 +31,8 @@ public function hasCreateWork(): bool public function unsetCreateWork(): self { - return $this->remove('createWork'); + $this->remove('createWork'); + return $this; } /** @@ -46,7 +48,8 @@ public function getCreatePublisher() */ public function setCreatePublisher($value): self { - return $this->set('createPublisher', $value); + $this->set('createPublisher', $value); + return $this; } public function hasCreatePublisher(): bool @@ -56,7 +59,8 @@ public function hasCreatePublisher(): bool public function unsetCreatePublisher(): self { - return $this->remove('createPublisher'); + $this->remove('createPublisher'); + return $this; } /** @@ -72,7 +76,8 @@ public function getCreateImprint() */ public function setCreateImprint($value): self { - return $this->set('createImprint', $value); + $this->set('createImprint', $value); + return $this; } public function hasCreateImprint(): bool @@ -82,7 +87,8 @@ public function hasCreateImprint(): bool public function unsetCreateImprint(): self { - return $this->remove('createImprint'); + $this->remove('createImprint'); + return $this; } /** @@ -98,7 +104,8 @@ public function getCreateContributor() */ public function setCreateContributor($value): self { - return $this->set('createContributor', $value); + $this->set('createContributor', $value); + return $this; } public function hasCreateContributor(): bool @@ -108,7 +115,8 @@ public function hasCreateContributor(): bool public function unsetCreateContributor(): self { - return $this->remove('createContributor'); + $this->remove('createContributor'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCreateContribution() */ public function setCreateContribution($value): self { - return $this->set('createContribution', $value); + $this->set('createContribution', $value); + return $this; } public function hasCreateContribution(): bool @@ -134,7 +143,8 @@ public function hasCreateContribution(): bool public function unsetCreateContribution(): self { - return $this->remove('createContribution'); + $this->remove('createContribution'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatePublication() */ public function setCreatePublication($value): self { - return $this->set('createPublication', $value); + $this->set('createPublication', $value); + return $this; } public function hasCreatePublication(): bool @@ -160,7 +171,8 @@ public function hasCreatePublication(): bool public function unsetCreatePublication(): self { - return $this->remove('createPublication'); + $this->remove('createPublication'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCreateSeries() */ public function setCreateSeries($value): self { - return $this->set('createSeries', $value); + $this->set('createSeries', $value); + return $this; } public function hasCreateSeries(): bool @@ -186,7 +199,8 @@ public function hasCreateSeries(): bool public function unsetCreateSeries(): self { - return $this->remove('createSeries'); + $this->remove('createSeries'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCreateIssue() */ public function setCreateIssue($value): self { - return $this->set('createIssue', $value); + $this->set('createIssue', $value); + return $this; } public function hasCreateIssue(): bool @@ -212,7 +227,8 @@ public function hasCreateIssue(): bool public function unsetCreateIssue(): self { - return $this->remove('createIssue'); + $this->remove('createIssue'); + return $this; } /** @@ -228,7 +244,8 @@ public function getCreateLanguage() */ public function setCreateLanguage($value): self { - return $this->set('createLanguage', $value); + $this->set('createLanguage', $value); + return $this; } public function hasCreateLanguage(): bool @@ -238,7 +255,8 @@ public function hasCreateLanguage(): bool public function unsetCreateLanguage(): self { - return $this->remove('createLanguage'); + $this->remove('createLanguage'); + return $this; } /** @@ -254,7 +272,8 @@ public function getCreateTitle() */ public function setCreateTitle($value): self { - return $this->set('createTitle', $value); + $this->set('createTitle', $value); + return $this; } public function hasCreateTitle(): bool @@ -264,7 +283,8 @@ public function hasCreateTitle(): bool public function unsetCreateTitle(): self { - return $this->remove('createTitle'); + $this->remove('createTitle'); + return $this; } /** @@ -280,7 +300,8 @@ public function getCreateAbstract() */ public function setCreateAbstract($value): self { - return $this->set('createAbstract', $value); + $this->set('createAbstract', $value); + return $this; } public function hasCreateAbstract(): bool @@ -290,7 +311,8 @@ public function hasCreateAbstract(): bool public function unsetCreateAbstract(): self { - return $this->remove('createAbstract'); + $this->remove('createAbstract'); + return $this; } /** @@ -306,7 +328,8 @@ public function getCreateBiography() */ public function setCreateBiography($value): self { - return $this->set('createBiography', $value); + $this->set('createBiography', $value); + return $this; } public function hasCreateBiography(): bool @@ -316,7 +339,8 @@ public function hasCreateBiography(): bool public function unsetCreateBiography(): self { - return $this->remove('createBiography'); + $this->remove('createBiography'); + return $this; } /** @@ -332,7 +356,8 @@ public function getCreateInstitution() */ public function setCreateInstitution($value): self { - return $this->set('createInstitution', $value); + $this->set('createInstitution', $value); + return $this; } public function hasCreateInstitution(): bool @@ -342,7 +367,8 @@ public function hasCreateInstitution(): bool public function unsetCreateInstitution(): self { - return $this->remove('createInstitution'); + $this->remove('createInstitution'); + return $this; } /** @@ -358,7 +384,8 @@ public function getCreateFunding() */ public function setCreateFunding($value): self { - return $this->set('createFunding', $value); + $this->set('createFunding', $value); + return $this; } public function hasCreateFunding(): bool @@ -368,7 +395,8 @@ public function hasCreateFunding(): bool public function unsetCreateFunding(): self { - return $this->remove('createFunding'); + $this->remove('createFunding'); + return $this; } /** @@ -384,7 +412,8 @@ public function getCreateLocation() */ public function setCreateLocation($value): self { - return $this->set('createLocation', $value); + $this->set('createLocation', $value); + return $this; } public function hasCreateLocation(): bool @@ -394,7 +423,8 @@ public function hasCreateLocation(): bool public function unsetCreateLocation(): self { - return $this->remove('createLocation'); + $this->remove('createLocation'); + return $this; } /** @@ -410,7 +440,8 @@ public function getCreatePrice() */ public function setCreatePrice($value): self { - return $this->set('createPrice', $value); + $this->set('createPrice', $value); + return $this; } public function hasCreatePrice(): bool @@ -420,7 +451,8 @@ public function hasCreatePrice(): bool public function unsetCreatePrice(): self { - return $this->remove('createPrice'); + $this->remove('createPrice'); + return $this; } /** @@ -436,7 +468,8 @@ public function getCreateSubject() */ public function setCreateSubject($value): self { - return $this->set('createSubject', $value); + $this->set('createSubject', $value); + return $this; } public function hasCreateSubject(): bool @@ -446,7 +479,8 @@ public function hasCreateSubject(): bool public function unsetCreateSubject(): self { - return $this->remove('createSubject'); + $this->remove('createSubject'); + return $this; } /** @@ -462,7 +496,8 @@ public function getCreateAffiliation() */ public function setCreateAffiliation($value): self { - return $this->set('createAffiliation', $value); + $this->set('createAffiliation', $value); + return $this; } public function hasCreateAffiliation(): bool @@ -472,7 +507,8 @@ public function hasCreateAffiliation(): bool public function unsetCreateAffiliation(): self { - return $this->remove('createAffiliation'); + $this->remove('createAffiliation'); + return $this; } /** @@ -488,7 +524,8 @@ public function getCreateWorkRelation() */ public function setCreateWorkRelation($value): self { - return $this->set('createWorkRelation', $value); + $this->set('createWorkRelation', $value); + return $this; } public function hasCreateWorkRelation(): bool @@ -498,7 +535,8 @@ public function hasCreateWorkRelation(): bool public function unsetCreateWorkRelation(): self { - return $this->remove('createWorkRelation'); + $this->remove('createWorkRelation'); + return $this; } /** @@ -514,7 +552,8 @@ public function getCreateReference() */ public function setCreateReference($value): self { - return $this->set('createReference', $value); + $this->set('createReference', $value); + return $this; } public function hasCreateReference(): bool @@ -524,7 +563,8 @@ public function hasCreateReference(): bool public function unsetCreateReference(): self { - return $this->remove('createReference'); + $this->remove('createReference'); + return $this; } /** @@ -540,7 +580,8 @@ public function getCreateAdditionalResource() */ public function setCreateAdditionalResource($value): self { - return $this->set('createAdditionalResource', $value); + $this->set('createAdditionalResource', $value); + return $this; } public function hasCreateAdditionalResource(): bool @@ -550,7 +591,8 @@ public function hasCreateAdditionalResource(): bool public function unsetCreateAdditionalResource(): self { - return $this->remove('createAdditionalResource'); + $this->remove('createAdditionalResource'); + return $this; } /** @@ -566,7 +608,8 @@ public function getCreateAward() */ public function setCreateAward($value): self { - return $this->set('createAward', $value); + $this->set('createAward', $value); + return $this; } public function hasCreateAward(): bool @@ -576,7 +619,8 @@ public function hasCreateAward(): bool public function unsetCreateAward(): self { - return $this->remove('createAward'); + $this->remove('createAward'); + return $this; } /** @@ -592,7 +636,8 @@ public function getCreateEndorsement() */ public function setCreateEndorsement($value): self { - return $this->set('createEndorsement', $value); + $this->set('createEndorsement', $value); + return $this; } public function hasCreateEndorsement(): bool @@ -602,7 +647,8 @@ public function hasCreateEndorsement(): bool public function unsetCreateEndorsement(): self { - return $this->remove('createEndorsement'); + $this->remove('createEndorsement'); + return $this; } /** @@ -618,7 +664,8 @@ public function getCreateBookReview() */ public function setCreateBookReview($value): self { - return $this->set('createBookReview', $value); + $this->set('createBookReview', $value); + return $this; } public function hasCreateBookReview(): bool @@ -628,7 +675,8 @@ public function hasCreateBookReview(): bool public function unsetCreateBookReview(): self { - return $this->remove('createBookReview'); + $this->remove('createBookReview'); + return $this; } /** @@ -644,7 +692,8 @@ public function getCreateWorkFeaturedVideo() */ public function setCreateWorkFeaturedVideo($value): self { - return $this->set('createWorkFeaturedVideo', $value); + $this->set('createWorkFeaturedVideo', $value); + return $this; } public function hasCreateWorkFeaturedVideo(): bool @@ -654,7 +703,8 @@ public function hasCreateWorkFeaturedVideo(): bool public function unsetCreateWorkFeaturedVideo(): self { - return $this->remove('createWorkFeaturedVideo'); + $this->remove('createWorkFeaturedVideo'); + return $this; } /** @@ -670,7 +720,8 @@ public function getCreateContact() */ public function setCreateContact($value): self { - return $this->set('createContact', $value); + $this->set('createContact', $value); + return $this; } public function hasCreateContact(): bool @@ -680,7 +731,8 @@ public function hasCreateContact(): bool public function unsetCreateContact(): self { - return $this->remove('createContact'); + $this->remove('createContact'); + return $this; } /** @@ -696,7 +748,8 @@ public function getUpdateWork() */ public function setUpdateWork($value): self { - return $this->set('updateWork', $value); + $this->set('updateWork', $value); + return $this; } public function hasUpdateWork(): bool @@ -706,7 +759,8 @@ public function hasUpdateWork(): bool public function unsetUpdateWork(): self { - return $this->remove('updateWork'); + $this->remove('updateWork'); + return $this; } /** @@ -722,7 +776,8 @@ public function getUpdatePublisher() */ public function setUpdatePublisher($value): self { - return $this->set('updatePublisher', $value); + $this->set('updatePublisher', $value); + return $this; } public function hasUpdatePublisher(): bool @@ -732,7 +787,8 @@ public function hasUpdatePublisher(): bool public function unsetUpdatePublisher(): self { - return $this->remove('updatePublisher'); + $this->remove('updatePublisher'); + return $this; } /** @@ -748,7 +804,8 @@ public function getUpdateImprint() */ public function setUpdateImprint($value): self { - return $this->set('updateImprint', $value); + $this->set('updateImprint', $value); + return $this; } public function hasUpdateImprint(): bool @@ -758,7 +815,8 @@ public function hasUpdateImprint(): bool public function unsetUpdateImprint(): self { - return $this->remove('updateImprint'); + $this->remove('updateImprint'); + return $this; } /** @@ -774,7 +832,8 @@ public function getUpdateContributor() */ public function setUpdateContributor($value): self { - return $this->set('updateContributor', $value); + $this->set('updateContributor', $value); + return $this; } public function hasUpdateContributor(): bool @@ -784,7 +843,8 @@ public function hasUpdateContributor(): bool public function unsetUpdateContributor(): self { - return $this->remove('updateContributor'); + $this->remove('updateContributor'); + return $this; } /** @@ -800,7 +860,8 @@ public function getUpdateContribution() */ public function setUpdateContribution($value): self { - return $this->set('updateContribution', $value); + $this->set('updateContribution', $value); + return $this; } public function hasUpdateContribution(): bool @@ -810,7 +871,8 @@ public function hasUpdateContribution(): bool public function unsetUpdateContribution(): self { - return $this->remove('updateContribution'); + $this->remove('updateContribution'); + return $this; } /** @@ -826,7 +888,8 @@ public function getUpdatePublication() */ public function setUpdatePublication($value): self { - return $this->set('updatePublication', $value); + $this->set('updatePublication', $value); + return $this; } public function hasUpdatePublication(): bool @@ -836,7 +899,8 @@ public function hasUpdatePublication(): bool public function unsetUpdatePublication(): self { - return $this->remove('updatePublication'); + $this->remove('updatePublication'); + return $this; } /** @@ -852,7 +916,8 @@ public function getUpdateSeries() */ public function setUpdateSeries($value): self { - return $this->set('updateSeries', $value); + $this->set('updateSeries', $value); + return $this; } public function hasUpdateSeries(): bool @@ -862,7 +927,8 @@ public function hasUpdateSeries(): bool public function unsetUpdateSeries(): self { - return $this->remove('updateSeries'); + $this->remove('updateSeries'); + return $this; } /** @@ -878,7 +944,8 @@ public function getUpdateIssue() */ public function setUpdateIssue($value): self { - return $this->set('updateIssue', $value); + $this->set('updateIssue', $value); + return $this; } public function hasUpdateIssue(): bool @@ -888,7 +955,8 @@ public function hasUpdateIssue(): bool public function unsetUpdateIssue(): self { - return $this->remove('updateIssue'); + $this->remove('updateIssue'); + return $this; } /** @@ -904,7 +972,8 @@ public function getUpdateLanguage() */ public function setUpdateLanguage($value): self { - return $this->set('updateLanguage', $value); + $this->set('updateLanguage', $value); + return $this; } public function hasUpdateLanguage(): bool @@ -914,7 +983,8 @@ public function hasUpdateLanguage(): bool public function unsetUpdateLanguage(): self { - return $this->remove('updateLanguage'); + $this->remove('updateLanguage'); + return $this; } /** @@ -930,7 +1000,8 @@ public function getUpdateInstitution() */ public function setUpdateInstitution($value): self { - return $this->set('updateInstitution', $value); + $this->set('updateInstitution', $value); + return $this; } public function hasUpdateInstitution(): bool @@ -940,7 +1011,8 @@ public function hasUpdateInstitution(): bool public function unsetUpdateInstitution(): self { - return $this->remove('updateInstitution'); + $this->remove('updateInstitution'); + return $this; } /** @@ -956,7 +1028,8 @@ public function getUpdateFunding() */ public function setUpdateFunding($value): self { - return $this->set('updateFunding', $value); + $this->set('updateFunding', $value); + return $this; } public function hasUpdateFunding(): bool @@ -966,7 +1039,8 @@ public function hasUpdateFunding(): bool public function unsetUpdateFunding(): self { - return $this->remove('updateFunding'); + $this->remove('updateFunding'); + return $this; } /** @@ -982,7 +1056,8 @@ public function getUpdateLocation() */ public function setUpdateLocation($value): self { - return $this->set('updateLocation', $value); + $this->set('updateLocation', $value); + return $this; } public function hasUpdateLocation(): bool @@ -992,7 +1067,8 @@ public function hasUpdateLocation(): bool public function unsetUpdateLocation(): self { - return $this->remove('updateLocation'); + $this->remove('updateLocation'); + return $this; } /** @@ -1008,7 +1084,8 @@ public function getUpdatePrice() */ public function setUpdatePrice($value): self { - return $this->set('updatePrice', $value); + $this->set('updatePrice', $value); + return $this; } public function hasUpdatePrice(): bool @@ -1018,7 +1095,8 @@ public function hasUpdatePrice(): bool public function unsetUpdatePrice(): self { - return $this->remove('updatePrice'); + $this->remove('updatePrice'); + return $this; } /** @@ -1034,7 +1112,8 @@ public function getUpdateSubject() */ public function setUpdateSubject($value): self { - return $this->set('updateSubject', $value); + $this->set('updateSubject', $value); + return $this; } public function hasUpdateSubject(): bool @@ -1044,7 +1123,8 @@ public function hasUpdateSubject(): bool public function unsetUpdateSubject(): self { - return $this->remove('updateSubject'); + $this->remove('updateSubject'); + return $this; } /** @@ -1060,7 +1140,8 @@ public function getUpdateAffiliation() */ public function setUpdateAffiliation($value): self { - return $this->set('updateAffiliation', $value); + $this->set('updateAffiliation', $value); + return $this; } public function hasUpdateAffiliation(): bool @@ -1070,7 +1151,8 @@ public function hasUpdateAffiliation(): bool public function unsetUpdateAffiliation(): self { - return $this->remove('updateAffiliation'); + $this->remove('updateAffiliation'); + return $this; } /** @@ -1086,7 +1168,8 @@ public function getUpdateWorkRelation() */ public function setUpdateWorkRelation($value): self { - return $this->set('updateWorkRelation', $value); + $this->set('updateWorkRelation', $value); + return $this; } public function hasUpdateWorkRelation(): bool @@ -1096,7 +1179,8 @@ public function hasUpdateWorkRelation(): bool public function unsetUpdateWorkRelation(): self { - return $this->remove('updateWorkRelation'); + $this->remove('updateWorkRelation'); + return $this; } /** @@ -1112,7 +1196,8 @@ public function getUpdateReference() */ public function setUpdateReference($value): self { - return $this->set('updateReference', $value); + $this->set('updateReference', $value); + return $this; } public function hasUpdateReference(): bool @@ -1122,7 +1207,8 @@ public function hasUpdateReference(): bool public function unsetUpdateReference(): self { - return $this->remove('updateReference'); + $this->remove('updateReference'); + return $this; } /** @@ -1138,7 +1224,8 @@ public function getUpdateAdditionalResource() */ public function setUpdateAdditionalResource($value): self { - return $this->set('updateAdditionalResource', $value); + $this->set('updateAdditionalResource', $value); + return $this; } public function hasUpdateAdditionalResource(): bool @@ -1148,7 +1235,8 @@ public function hasUpdateAdditionalResource(): bool public function unsetUpdateAdditionalResource(): self { - return $this->remove('updateAdditionalResource'); + $this->remove('updateAdditionalResource'); + return $this; } /** @@ -1164,7 +1252,8 @@ public function getUpdateAward() */ public function setUpdateAward($value): self { - return $this->set('updateAward', $value); + $this->set('updateAward', $value); + return $this; } public function hasUpdateAward(): bool @@ -1174,7 +1263,8 @@ public function hasUpdateAward(): bool public function unsetUpdateAward(): self { - return $this->remove('updateAward'); + $this->remove('updateAward'); + return $this; } /** @@ -1190,7 +1280,8 @@ public function getUpdateEndorsement() */ public function setUpdateEndorsement($value): self { - return $this->set('updateEndorsement', $value); + $this->set('updateEndorsement', $value); + return $this; } public function hasUpdateEndorsement(): bool @@ -1200,7 +1291,8 @@ public function hasUpdateEndorsement(): bool public function unsetUpdateEndorsement(): self { - return $this->remove('updateEndorsement'); + $this->remove('updateEndorsement'); + return $this; } /** @@ -1216,7 +1308,8 @@ public function getUpdateBookReview() */ public function setUpdateBookReview($value): self { - return $this->set('updateBookReview', $value); + $this->set('updateBookReview', $value); + return $this; } public function hasUpdateBookReview(): bool @@ -1226,7 +1319,8 @@ public function hasUpdateBookReview(): bool public function unsetUpdateBookReview(): self { - return $this->remove('updateBookReview'); + $this->remove('updateBookReview'); + return $this; } /** @@ -1242,7 +1336,8 @@ public function getUpdateWorkFeaturedVideo() */ public function setUpdateWorkFeaturedVideo($value): self { - return $this->set('updateWorkFeaturedVideo', $value); + $this->set('updateWorkFeaturedVideo', $value); + return $this; } public function hasUpdateWorkFeaturedVideo(): bool @@ -1252,7 +1347,8 @@ public function hasUpdateWorkFeaturedVideo(): bool public function unsetUpdateWorkFeaturedVideo(): self { - return $this->remove('updateWorkFeaturedVideo'); + $this->remove('updateWorkFeaturedVideo'); + return $this; } /** @@ -1268,7 +1364,8 @@ public function getUpdateContact() */ public function setUpdateContact($value): self { - return $this->set('updateContact', $value); + $this->set('updateContact', $value); + return $this; } public function hasUpdateContact(): bool @@ -1278,7 +1375,8 @@ public function hasUpdateContact(): bool public function unsetUpdateContact(): self { - return $this->remove('updateContact'); + $this->remove('updateContact'); + return $this; } /** @@ -1294,7 +1392,8 @@ public function getUpdateTitle() */ public function setUpdateTitle($value): self { - return $this->set('updateTitle', $value); + $this->set('updateTitle', $value); + return $this; } public function hasUpdateTitle(): bool @@ -1304,7 +1403,8 @@ public function hasUpdateTitle(): bool public function unsetUpdateTitle(): self { - return $this->remove('updateTitle'); + $this->remove('updateTitle'); + return $this; } /** @@ -1320,7 +1420,8 @@ public function getUpdateAbstract() */ public function setUpdateAbstract($value): self { - return $this->set('updateAbstract', $value); + $this->set('updateAbstract', $value); + return $this; } public function hasUpdateAbstract(): bool @@ -1330,7 +1431,8 @@ public function hasUpdateAbstract(): bool public function unsetUpdateAbstract(): self { - return $this->remove('updateAbstract'); + $this->remove('updateAbstract'); + return $this; } /** @@ -1346,7 +1448,8 @@ public function getUpdateBiography() */ public function setUpdateBiography($value): self { - return $this->set('updateBiography', $value); + $this->set('updateBiography', $value); + return $this; } public function hasUpdateBiography(): bool @@ -1356,7 +1459,8 @@ public function hasUpdateBiography(): bool public function unsetUpdateBiography(): self { - return $this->remove('updateBiography'); + $this->remove('updateBiography'); + return $this; } /** @@ -1372,7 +1476,8 @@ public function getDeleteWork() */ public function setDeleteWork($value): self { - return $this->set('deleteWork', $value); + $this->set('deleteWork', $value); + return $this; } public function hasDeleteWork(): bool @@ -1382,7 +1487,8 @@ public function hasDeleteWork(): bool public function unsetDeleteWork(): self { - return $this->remove('deleteWork'); + $this->remove('deleteWork'); + return $this; } /** @@ -1398,7 +1504,8 @@ public function getDeletePublisher() */ public function setDeletePublisher($value): self { - return $this->set('deletePublisher', $value); + $this->set('deletePublisher', $value); + return $this; } public function hasDeletePublisher(): bool @@ -1408,7 +1515,8 @@ public function hasDeletePublisher(): bool public function unsetDeletePublisher(): self { - return $this->remove('deletePublisher'); + $this->remove('deletePublisher'); + return $this; } /** @@ -1424,7 +1532,8 @@ public function getDeleteImprint() */ public function setDeleteImprint($value): self { - return $this->set('deleteImprint', $value); + $this->set('deleteImprint', $value); + return $this; } public function hasDeleteImprint(): bool @@ -1434,7 +1543,8 @@ public function hasDeleteImprint(): bool public function unsetDeleteImprint(): self { - return $this->remove('deleteImprint'); + $this->remove('deleteImprint'); + return $this; } /** @@ -1450,7 +1560,8 @@ public function getDeleteContributor() */ public function setDeleteContributor($value): self { - return $this->set('deleteContributor', $value); + $this->set('deleteContributor', $value); + return $this; } public function hasDeleteContributor(): bool @@ -1460,7 +1571,8 @@ public function hasDeleteContributor(): bool public function unsetDeleteContributor(): self { - return $this->remove('deleteContributor'); + $this->remove('deleteContributor'); + return $this; } /** @@ -1476,7 +1588,8 @@ public function getDeleteContribution() */ public function setDeleteContribution($value): self { - return $this->set('deleteContribution', $value); + $this->set('deleteContribution', $value); + return $this; } public function hasDeleteContribution(): bool @@ -1486,7 +1599,8 @@ public function hasDeleteContribution(): bool public function unsetDeleteContribution(): self { - return $this->remove('deleteContribution'); + $this->remove('deleteContribution'); + return $this; } /** @@ -1502,7 +1616,8 @@ public function getDeletePublication() */ public function setDeletePublication($value): self { - return $this->set('deletePublication', $value); + $this->set('deletePublication', $value); + return $this; } public function hasDeletePublication(): bool @@ -1512,7 +1627,8 @@ public function hasDeletePublication(): bool public function unsetDeletePublication(): self { - return $this->remove('deletePublication'); + $this->remove('deletePublication'); + return $this; } /** @@ -1528,7 +1644,8 @@ public function getDeleteSeries() */ public function setDeleteSeries($value): self { - return $this->set('deleteSeries', $value); + $this->set('deleteSeries', $value); + return $this; } public function hasDeleteSeries(): bool @@ -1538,7 +1655,8 @@ public function hasDeleteSeries(): bool public function unsetDeleteSeries(): self { - return $this->remove('deleteSeries'); + $this->remove('deleteSeries'); + return $this; } /** @@ -1554,7 +1672,8 @@ public function getDeleteIssue() */ public function setDeleteIssue($value): self { - return $this->set('deleteIssue', $value); + $this->set('deleteIssue', $value); + return $this; } public function hasDeleteIssue(): bool @@ -1564,7 +1683,8 @@ public function hasDeleteIssue(): bool public function unsetDeleteIssue(): self { - return $this->remove('deleteIssue'); + $this->remove('deleteIssue'); + return $this; } /** @@ -1580,7 +1700,8 @@ public function getDeleteLanguage() */ public function setDeleteLanguage($value): self { - return $this->set('deleteLanguage', $value); + $this->set('deleteLanguage', $value); + return $this; } public function hasDeleteLanguage(): bool @@ -1590,7 +1711,8 @@ public function hasDeleteLanguage(): bool public function unsetDeleteLanguage(): self { - return $this->remove('deleteLanguage'); + $this->remove('deleteLanguage'); + return $this; } /** @@ -1606,7 +1728,8 @@ public function getDeleteTitle() */ public function setDeleteTitle($value): self { - return $this->set('deleteTitle', $value); + $this->set('deleteTitle', $value); + return $this; } public function hasDeleteTitle(): bool @@ -1616,7 +1739,8 @@ public function hasDeleteTitle(): bool public function unsetDeleteTitle(): self { - return $this->remove('deleteTitle'); + $this->remove('deleteTitle'); + return $this; } /** @@ -1632,7 +1756,8 @@ public function getDeleteInstitution() */ public function setDeleteInstitution($value): self { - return $this->set('deleteInstitution', $value); + $this->set('deleteInstitution', $value); + return $this; } public function hasDeleteInstitution(): bool @@ -1642,7 +1767,8 @@ public function hasDeleteInstitution(): bool public function unsetDeleteInstitution(): self { - return $this->remove('deleteInstitution'); + $this->remove('deleteInstitution'); + return $this; } /** @@ -1658,7 +1784,8 @@ public function getDeleteFunding() */ public function setDeleteFunding($value): self { - return $this->set('deleteFunding', $value); + $this->set('deleteFunding', $value); + return $this; } public function hasDeleteFunding(): bool @@ -1668,7 +1795,8 @@ public function hasDeleteFunding(): bool public function unsetDeleteFunding(): self { - return $this->remove('deleteFunding'); + $this->remove('deleteFunding'); + return $this; } /** @@ -1684,7 +1812,8 @@ public function getDeleteLocation() */ public function setDeleteLocation($value): self { - return $this->set('deleteLocation', $value); + $this->set('deleteLocation', $value); + return $this; } public function hasDeleteLocation(): bool @@ -1694,7 +1823,8 @@ public function hasDeleteLocation(): bool public function unsetDeleteLocation(): self { - return $this->remove('deleteLocation'); + $this->remove('deleteLocation'); + return $this; } /** @@ -1710,7 +1840,8 @@ public function getDeletePrice() */ public function setDeletePrice($value): self { - return $this->set('deletePrice', $value); + $this->set('deletePrice', $value); + return $this; } public function hasDeletePrice(): bool @@ -1720,7 +1851,8 @@ public function hasDeletePrice(): bool public function unsetDeletePrice(): self { - return $this->remove('deletePrice'); + $this->remove('deletePrice'); + return $this; } /** @@ -1736,7 +1868,8 @@ public function getDeleteSubject() */ public function setDeleteSubject($value): self { - return $this->set('deleteSubject', $value); + $this->set('deleteSubject', $value); + return $this; } public function hasDeleteSubject(): bool @@ -1746,7 +1879,8 @@ public function hasDeleteSubject(): bool public function unsetDeleteSubject(): self { - return $this->remove('deleteSubject'); + $this->remove('deleteSubject'); + return $this; } /** @@ -1762,7 +1896,8 @@ public function getDeleteAffiliation() */ public function setDeleteAffiliation($value): self { - return $this->set('deleteAffiliation', $value); + $this->set('deleteAffiliation', $value); + return $this; } public function hasDeleteAffiliation(): bool @@ -1772,7 +1907,8 @@ public function hasDeleteAffiliation(): bool public function unsetDeleteAffiliation(): self { - return $this->remove('deleteAffiliation'); + $this->remove('deleteAffiliation'); + return $this; } /** @@ -1788,7 +1924,8 @@ public function getDeleteWorkRelation() */ public function setDeleteWorkRelation($value): self { - return $this->set('deleteWorkRelation', $value); + $this->set('deleteWorkRelation', $value); + return $this; } public function hasDeleteWorkRelation(): bool @@ -1798,7 +1935,8 @@ public function hasDeleteWorkRelation(): bool public function unsetDeleteWorkRelation(): self { - return $this->remove('deleteWorkRelation'); + $this->remove('deleteWorkRelation'); + return $this; } /** @@ -1814,7 +1952,8 @@ public function getDeleteReference() */ public function setDeleteReference($value): self { - return $this->set('deleteReference', $value); + $this->set('deleteReference', $value); + return $this; } public function hasDeleteReference(): bool @@ -1824,7 +1963,8 @@ public function hasDeleteReference(): bool public function unsetDeleteReference(): self { - return $this->remove('deleteReference'); + $this->remove('deleteReference'); + return $this; } /** @@ -1840,7 +1980,8 @@ public function getDeleteAdditionalResource() */ public function setDeleteAdditionalResource($value): self { - return $this->set('deleteAdditionalResource', $value); + $this->set('deleteAdditionalResource', $value); + return $this; } public function hasDeleteAdditionalResource(): bool @@ -1850,7 +1991,8 @@ public function hasDeleteAdditionalResource(): bool public function unsetDeleteAdditionalResource(): self { - return $this->remove('deleteAdditionalResource'); + $this->remove('deleteAdditionalResource'); + return $this; } /** @@ -1866,7 +2008,8 @@ public function getDeleteAward() */ public function setDeleteAward($value): self { - return $this->set('deleteAward', $value); + $this->set('deleteAward', $value); + return $this; } public function hasDeleteAward(): bool @@ -1876,7 +2019,8 @@ public function hasDeleteAward(): bool public function unsetDeleteAward(): self { - return $this->remove('deleteAward'); + $this->remove('deleteAward'); + return $this; } /** @@ -1892,7 +2036,8 @@ public function getDeleteEndorsement() */ public function setDeleteEndorsement($value): self { - return $this->set('deleteEndorsement', $value); + $this->set('deleteEndorsement', $value); + return $this; } public function hasDeleteEndorsement(): bool @@ -1902,7 +2047,8 @@ public function hasDeleteEndorsement(): bool public function unsetDeleteEndorsement(): self { - return $this->remove('deleteEndorsement'); + $this->remove('deleteEndorsement'); + return $this; } /** @@ -1918,7 +2064,8 @@ public function getDeleteBookReview() */ public function setDeleteBookReview($value): self { - return $this->set('deleteBookReview', $value); + $this->set('deleteBookReview', $value); + return $this; } public function hasDeleteBookReview(): bool @@ -1928,7 +2075,8 @@ public function hasDeleteBookReview(): bool public function unsetDeleteBookReview(): self { - return $this->remove('deleteBookReview'); + $this->remove('deleteBookReview'); + return $this; } /** @@ -1944,7 +2092,8 @@ public function getDeleteWorkFeaturedVideo() */ public function setDeleteWorkFeaturedVideo($value): self { - return $this->set('deleteWorkFeaturedVideo', $value); + $this->set('deleteWorkFeaturedVideo', $value); + return $this; } public function hasDeleteWorkFeaturedVideo(): bool @@ -1954,7 +2103,8 @@ public function hasDeleteWorkFeaturedVideo(): bool public function unsetDeleteWorkFeaturedVideo(): self { - return $this->remove('deleteWorkFeaturedVideo'); + $this->remove('deleteWorkFeaturedVideo'); + return $this; } /** @@ -1970,7 +2120,8 @@ public function getDeleteAbstract() */ public function setDeleteAbstract($value): self { - return $this->set('deleteAbstract', $value); + $this->set('deleteAbstract', $value); + return $this; } public function hasDeleteAbstract(): bool @@ -1980,7 +2131,8 @@ public function hasDeleteAbstract(): bool public function unsetDeleteAbstract(): self { - return $this->remove('deleteAbstract'); + $this->remove('deleteAbstract'); + return $this; } /** @@ -1996,7 +2148,8 @@ public function getDeleteBiography() */ public function setDeleteBiography($value): self { - return $this->set('deleteBiography', $value); + $this->set('deleteBiography', $value); + return $this; } public function hasDeleteBiography(): bool @@ -2006,7 +2159,8 @@ public function hasDeleteBiography(): bool public function unsetDeleteBiography(): self { - return $this->remove('deleteBiography'); + $this->remove('deleteBiography'); + return $this; } /** @@ -2022,7 +2176,8 @@ public function getMoveAffiliation() */ public function setMoveAffiliation($value): self { - return $this->set('moveAffiliation', $value); + $this->set('moveAffiliation', $value); + return $this; } public function hasMoveAffiliation(): bool @@ -2032,7 +2187,8 @@ public function hasMoveAffiliation(): bool public function unsetMoveAffiliation(): self { - return $this->remove('moveAffiliation'); + $this->remove('moveAffiliation'); + return $this; } /** @@ -2048,7 +2204,8 @@ public function getMoveContribution() */ public function setMoveContribution($value): self { - return $this->set('moveContribution', $value); + $this->set('moveContribution', $value); + return $this; } public function hasMoveContribution(): bool @@ -2058,7 +2215,8 @@ public function hasMoveContribution(): bool public function unsetMoveContribution(): self { - return $this->remove('moveContribution'); + $this->remove('moveContribution'); + return $this; } /** @@ -2074,7 +2232,8 @@ public function getMoveIssue() */ public function setMoveIssue($value): self { - return $this->set('moveIssue', $value); + $this->set('moveIssue', $value); + return $this; } public function hasMoveIssue(): bool @@ -2084,7 +2243,8 @@ public function hasMoveIssue(): bool public function unsetMoveIssue(): self { - return $this->remove('moveIssue'); + $this->remove('moveIssue'); + return $this; } /** @@ -2100,7 +2260,8 @@ public function getMoveReference() */ public function setMoveReference($value): self { - return $this->set('moveReference', $value); + $this->set('moveReference', $value); + return $this; } public function hasMoveReference(): bool @@ -2110,7 +2271,8 @@ public function hasMoveReference(): bool public function unsetMoveReference(): self { - return $this->remove('moveReference'); + $this->remove('moveReference'); + return $this; } /** @@ -2126,7 +2288,8 @@ public function getMoveAdditionalResource() */ public function setMoveAdditionalResource($value): self { - return $this->set('moveAdditionalResource', $value); + $this->set('moveAdditionalResource', $value); + return $this; } public function hasMoveAdditionalResource(): bool @@ -2136,7 +2299,8 @@ public function hasMoveAdditionalResource(): bool public function unsetMoveAdditionalResource(): self { - return $this->remove('moveAdditionalResource'); + $this->remove('moveAdditionalResource'); + return $this; } /** @@ -2152,7 +2316,8 @@ public function getMoveAward() */ public function setMoveAward($value): self { - return $this->set('moveAward', $value); + $this->set('moveAward', $value); + return $this; } public function hasMoveAward(): bool @@ -2162,7 +2327,8 @@ public function hasMoveAward(): bool public function unsetMoveAward(): self { - return $this->remove('moveAward'); + $this->remove('moveAward'); + return $this; } /** @@ -2178,7 +2344,8 @@ public function getMoveEndorsement() */ public function setMoveEndorsement($value): self { - return $this->set('moveEndorsement', $value); + $this->set('moveEndorsement', $value); + return $this; } public function hasMoveEndorsement(): bool @@ -2188,7 +2355,8 @@ public function hasMoveEndorsement(): bool public function unsetMoveEndorsement(): self { - return $this->remove('moveEndorsement'); + $this->remove('moveEndorsement'); + return $this; } /** @@ -2204,7 +2372,8 @@ public function getMoveBookReview() */ public function setMoveBookReview($value): self { - return $this->set('moveBookReview', $value); + $this->set('moveBookReview', $value); + return $this; } public function hasMoveBookReview(): bool @@ -2214,7 +2383,8 @@ public function hasMoveBookReview(): bool public function unsetMoveBookReview(): self { - return $this->remove('moveBookReview'); + $this->remove('moveBookReview'); + return $this; } /** @@ -2230,7 +2400,8 @@ public function getMoveSubject() */ public function setMoveSubject($value): self { - return $this->set('moveSubject', $value); + $this->set('moveSubject', $value); + return $this; } public function hasMoveSubject(): bool @@ -2240,7 +2411,8 @@ public function hasMoveSubject(): bool public function unsetMoveSubject(): self { - return $this->remove('moveSubject'); + $this->remove('moveSubject'); + return $this; } /** @@ -2256,7 +2428,8 @@ public function getMoveWorkRelation() */ public function setMoveWorkRelation($value): self { - return $this->set('moveWorkRelation', $value); + $this->set('moveWorkRelation', $value); + return $this; } public function hasMoveWorkRelation(): bool @@ -2266,7 +2439,8 @@ public function hasMoveWorkRelation(): bool public function unsetMoveWorkRelation(): self { - return $this->remove('moveWorkRelation'); + $this->remove('moveWorkRelation'); + return $this; } /** @@ -2282,7 +2456,8 @@ public function getInitPublicationFileUpload() */ public function setInitPublicationFileUpload($value): self { - return $this->set('initPublicationFileUpload', $value); + $this->set('initPublicationFileUpload', $value); + return $this; } public function hasInitPublicationFileUpload(): bool @@ -2292,7 +2467,8 @@ public function hasInitPublicationFileUpload(): bool public function unsetInitPublicationFileUpload(): self { - return $this->remove('initPublicationFileUpload'); + $this->remove('initPublicationFileUpload'); + return $this; } /** @@ -2308,7 +2484,8 @@ public function getInitFrontcoverFileUpload() */ public function setInitFrontcoverFileUpload($value): self { - return $this->set('initFrontcoverFileUpload', $value); + $this->set('initFrontcoverFileUpload', $value); + return $this; } public function hasInitFrontcoverFileUpload(): bool @@ -2318,7 +2495,8 @@ public function hasInitFrontcoverFileUpload(): bool public function unsetInitFrontcoverFileUpload(): self { - return $this->remove('initFrontcoverFileUpload'); + $this->remove('initFrontcoverFileUpload'); + return $this; } /** @@ -2334,7 +2512,8 @@ public function getInitAdditionalResourceFileUpload() */ public function setInitAdditionalResourceFileUpload($value): self { - return $this->set('initAdditionalResourceFileUpload', $value); + $this->set('initAdditionalResourceFileUpload', $value); + return $this; } public function hasInitAdditionalResourceFileUpload(): bool @@ -2344,7 +2523,8 @@ public function hasInitAdditionalResourceFileUpload(): bool public function unsetInitAdditionalResourceFileUpload(): self { - return $this->remove('initAdditionalResourceFileUpload'); + $this->remove('initAdditionalResourceFileUpload'); + return $this; } /** @@ -2360,7 +2540,8 @@ public function getInitWorkFeaturedVideoFileUpload() */ public function setInitWorkFeaturedVideoFileUpload($value): self { - return $this->set('initWorkFeaturedVideoFileUpload', $value); + $this->set('initWorkFeaturedVideoFileUpload', $value); + return $this; } public function hasInitWorkFeaturedVideoFileUpload(): bool @@ -2370,7 +2551,8 @@ public function hasInitWorkFeaturedVideoFileUpload(): bool public function unsetInitWorkFeaturedVideoFileUpload(): self { - return $this->remove('initWorkFeaturedVideoFileUpload'); + $this->remove('initWorkFeaturedVideoFileUpload'); + return $this; } /** @@ -2386,7 +2568,8 @@ public function getCompleteFileUpload() */ public function setCompleteFileUpload($value): self { - return $this->set('completeFileUpload', $value); + $this->set('completeFileUpload', $value); + return $this; } public function hasCompleteFileUpload(): bool @@ -2396,7 +2579,8 @@ public function hasCompleteFileUpload(): bool public function unsetCompleteFileUpload(): self { - return $this->remove('completeFileUpload'); + $this->remove('completeFileUpload'); + return $this; } /** @@ -2412,7 +2596,8 @@ public function getDeleteContact() */ public function setDeleteContact($value): self { - return $this->set('deleteContact', $value); + $this->set('deleteContact', $value); + return $this; } public function hasDeleteContact(): bool @@ -2422,7 +2607,8 @@ public function hasDeleteContact(): bool public function unsetDeleteContact(): self { - return $this->remove('deleteContact'); + $this->remove('deleteContact'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Price.php b/src/GraphQL/Schemas/Price.php index 554f9f5..c8096c9 100644 --- a/src/GraphQL/Schemas/Price.php +++ b/src/GraphQL/Schemas/Price.php @@ -20,7 +20,8 @@ public function getPriceId() */ public function setPriceId($value): self { - return $this->set('priceId', $value); + $this->set('priceId', $value); + return $this; } public function hasPriceId(): bool @@ -30,7 +31,8 @@ public function hasPriceId(): bool public function unsetPriceId(): self { - return $this->remove('priceId'); + $this->remove('priceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -56,7 +59,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getCurrencyCode() */ public function setCurrencyCode($value): self { - return $this->set('currencyCode', $value); + $this->set('currencyCode', $value); + return $this; } public function hasCurrencyCode(): bool @@ -82,7 +87,8 @@ public function hasCurrencyCode(): bool public function unsetCurrencyCode(): self { - return $this->remove('currencyCode'); + $this->remove('currencyCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUnitPrice() */ public function setUnitPrice($value): self { - return $this->set('unitPrice', $value); + $this->set('unitPrice', $value); + return $this; } public function hasUnitPrice(): bool @@ -108,7 +115,8 @@ public function hasUnitPrice(): bool public function unsetUnitPrice(): self { - return $this->remove('unitPrice'); + $this->remove('unitPrice'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -134,7 +143,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -160,7 +171,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getPublication() */ public function setPublication($value): self { - return $this->set('publication', $value); + $this->set('publication', $value); + return $this; } public function hasPublication(): bool @@ -186,7 +199,8 @@ public function hasPublication(): bool public function unsetPublication(): self { - return $this->remove('publication'); + $this->remove('publication'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Publication.php b/src/GraphQL/Schemas/Publication.php index d93e5f8..0362d69 100644 --- a/src/GraphQL/Schemas/Publication.php +++ b/src/GraphQL/Schemas/Publication.php @@ -20,7 +20,8 @@ public function getPublicationId() */ public function setPublicationId($value): self { - return $this->set('publicationId', $value); + $this->set('publicationId', $value); + return $this; } public function hasPublicationId(): bool @@ -30,7 +31,8 @@ public function hasPublicationId(): bool public function unsetPublicationId(): self { - return $this->remove('publicationId'); + $this->remove('publicationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublicationType() */ public function setPublicationType($value): self { - return $this->set('publicationType', $value); + $this->set('publicationType', $value); + return $this; } public function hasPublicationType(): bool @@ -56,7 +59,8 @@ public function hasPublicationType(): bool public function unsetPublicationType(): self { - return $this->remove('publicationType'); + $this->remove('publicationType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -82,7 +87,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -108,7 +115,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -124,7 +132,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -134,7 +143,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -150,7 +160,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -160,7 +171,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getWidth() */ public function setWidth($value): self { - return $this->set('width', $value); + $this->set('width', $value); + return $this; } public function hasWidth(): bool @@ -186,7 +199,8 @@ public function hasWidth(): bool public function unsetWidth(): self { - return $this->remove('width'); + $this->remove('width'); + return $this; } /** @@ -202,7 +216,8 @@ public function getHeight() */ public function setHeight($value): self { - return $this->set('height', $value); + $this->set('height', $value); + return $this; } public function hasHeight(): bool @@ -212,7 +227,8 @@ public function hasHeight(): bool public function unsetHeight(): self { - return $this->remove('height'); + $this->remove('height'); + return $this; } /** @@ -228,7 +244,8 @@ public function getDepth() */ public function setDepth($value): self { - return $this->set('depth', $value); + $this->set('depth', $value); + return $this; } public function hasDepth(): bool @@ -238,7 +255,8 @@ public function hasDepth(): bool public function unsetDepth(): self { - return $this->remove('depth'); + $this->remove('depth'); + return $this; } /** @@ -254,7 +272,8 @@ public function getWeight() */ public function setWeight($value): self { - return $this->set('weight', $value); + $this->set('weight', $value); + return $this; } public function hasWeight(): bool @@ -264,7 +283,8 @@ public function hasWeight(): bool public function unsetWeight(): self { - return $this->remove('weight'); + $this->remove('weight'); + return $this; } /** @@ -280,7 +300,8 @@ public function getAccessibilityStandard() */ public function setAccessibilityStandard($value): self { - return $this->set('accessibilityStandard', $value); + $this->set('accessibilityStandard', $value); + return $this; } public function hasAccessibilityStandard(): bool @@ -290,7 +311,8 @@ public function hasAccessibilityStandard(): bool public function unsetAccessibilityStandard(): self { - return $this->remove('accessibilityStandard'); + $this->remove('accessibilityStandard'); + return $this; } /** @@ -306,7 +328,8 @@ public function getAccessibilityAdditionalStandard() */ public function setAccessibilityAdditionalStandard($value): self { - return $this->set('accessibilityAdditionalStandard', $value); + $this->set('accessibilityAdditionalStandard', $value); + return $this; } public function hasAccessibilityAdditionalStandard(): bool @@ -316,7 +339,8 @@ public function hasAccessibilityAdditionalStandard(): bool public function unsetAccessibilityAdditionalStandard(): self { - return $this->remove('accessibilityAdditionalStandard'); + $this->remove('accessibilityAdditionalStandard'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAccessibilityException() */ public function setAccessibilityException($value): self { - return $this->set('accessibilityException', $value); + $this->set('accessibilityException', $value); + return $this; } public function hasAccessibilityException(): bool @@ -342,7 +367,8 @@ public function hasAccessibilityException(): bool public function unsetAccessibilityException(): self { - return $this->remove('accessibilityException'); + $this->remove('accessibilityException'); + return $this; } /** @@ -358,7 +384,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -368,7 +395,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } /** @@ -384,7 +412,8 @@ public function getPrices() */ public function setPrices($value): self { - return $this->set('prices', $value); + $this->set('prices', $value); + return $this; } public function hasPrices(): bool @@ -394,7 +423,8 @@ public function hasPrices(): bool public function unsetPrices(): self { - return $this->remove('prices'); + $this->remove('prices'); + return $this; } /** @@ -410,7 +440,8 @@ public function getLocations() */ public function setLocations($value): self { - return $this->set('locations', $value); + $this->set('locations', $value); + return $this; } public function hasLocations(): bool @@ -420,7 +451,8 @@ public function hasLocations(): bool public function unsetLocations(): self { - return $this->remove('locations'); + $this->remove('locations'); + return $this; } /** @@ -436,7 +468,8 @@ public function getFile() */ public function setFile($value): self { - return $this->set('file', $value); + $this->set('file', $value); + return $this; } public function hasFile(): bool @@ -446,7 +479,8 @@ public function hasFile(): bool public function unsetFile(): self { - return $this->remove('file'); + $this->remove('file'); + return $this; } /** @@ -462,7 +496,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -472,7 +507,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Publisher.php b/src/GraphQL/Schemas/Publisher.php index e1ee60b..eb01951 100644 --- a/src/GraphQL/Schemas/Publisher.php +++ b/src/GraphQL/Schemas/Publisher.php @@ -20,7 +20,8 @@ public function getPublisherId() */ public function setPublisherId($value): self { - return $this->set('publisherId', $value); + $this->set('publisherId', $value); + return $this; } public function hasPublisherId(): bool @@ -30,7 +31,8 @@ public function hasPublisherId(): bool public function unsetPublisherId(): self { - return $this->remove('publisherId'); + $this->remove('publisherId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPublisherName() */ public function setPublisherName($value): self { - return $this->set('publisherName', $value); + $this->set('publisherName', $value); + return $this; } public function hasPublisherName(): bool @@ -56,7 +59,8 @@ public function hasPublisherName(): bool public function unsetPublisherName(): self { - return $this->remove('publisherName'); + $this->remove('publisherName'); + return $this; } /** @@ -72,7 +76,8 @@ public function getPublisherShortname() */ public function setPublisherShortname($value): self { - return $this->set('publisherShortname', $value); + $this->set('publisherShortname', $value); + return $this; } public function hasPublisherShortname(): bool @@ -82,7 +87,8 @@ public function hasPublisherShortname(): bool public function unsetPublisherShortname(): self { - return $this->remove('publisherShortname'); + $this->remove('publisherShortname'); + return $this; } /** @@ -98,7 +104,8 @@ public function getPublisherUrl() */ public function setPublisherUrl($value): self { - return $this->set('publisherUrl', $value); + $this->set('publisherUrl', $value); + return $this; } public function hasPublisherUrl(): bool @@ -108,7 +115,8 @@ public function hasPublisherUrl(): bool public function unsetPublisherUrl(): self { - return $this->remove('publisherUrl'); + $this->remove('publisherUrl'); + return $this; } /** @@ -124,7 +132,8 @@ public function getZitadelId() */ public function setZitadelId($value): self { - return $this->set('zitadelId', $value); + $this->set('zitadelId', $value); + return $this; } public function hasZitadelId(): bool @@ -134,7 +143,8 @@ public function hasZitadelId(): bool public function unsetZitadelId(): self { - return $this->remove('zitadelId'); + $this->remove('zitadelId'); + return $this; } /** @@ -150,7 +160,8 @@ public function getAccessibilityStatement() */ public function setAccessibilityStatement($value): self { - return $this->set('accessibilityStatement', $value); + $this->set('accessibilityStatement', $value); + return $this; } public function hasAccessibilityStatement(): bool @@ -160,7 +171,8 @@ public function hasAccessibilityStatement(): bool public function unsetAccessibilityStatement(): self { - return $this->remove('accessibilityStatement'); + $this->remove('accessibilityStatement'); + return $this; } /** @@ -176,7 +188,8 @@ public function getAccessibilityReportUrl() */ public function setAccessibilityReportUrl($value): self { - return $this->set('accessibilityReportUrl', $value); + $this->set('accessibilityReportUrl', $value); + return $this; } public function hasAccessibilityReportUrl(): bool @@ -186,7 +199,8 @@ public function hasAccessibilityReportUrl(): bool public function unsetAccessibilityReportUrl(): self { - return $this->remove('accessibilityReportUrl'); + $this->remove('accessibilityReportUrl'); + return $this; } /** @@ -202,7 +216,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -212,7 +227,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -228,7 +244,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -238,7 +255,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -254,7 +272,8 @@ public function getImprints() */ public function setImprints($value): self { - return $this->set('imprints', $value); + $this->set('imprints', $value); + return $this; } public function hasImprints(): bool @@ -264,7 +283,8 @@ public function hasImprints(): bool public function unsetImprints(): self { - return $this->remove('imprints'); + $this->remove('imprints'); + return $this; } /** @@ -280,7 +300,8 @@ public function getContacts() */ public function setContacts($value): self { - return $this->set('contacts', $value); + $this->set('contacts', $value); + return $this; } public function hasContacts(): bool @@ -290,7 +311,8 @@ public function hasContacts(): bool public function unsetContacts(): self { - return $this->remove('contacts'); + $this->remove('contacts'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/PublisherContext.php b/src/GraphQL/Schemas/PublisherContext.php index 8758ea2..e2b1c02 100644 --- a/src/GraphQL/Schemas/PublisherContext.php +++ b/src/GraphQL/Schemas/PublisherContext.php @@ -20,7 +20,8 @@ public function getPublisher() */ public function setPublisher($value): self { - return $this->set('publisher', $value); + $this->set('publisher', $value); + return $this; } public function hasPublisher(): bool @@ -30,7 +31,8 @@ public function hasPublisher(): bool public function unsetPublisher(): self { - return $this->remove('publisher'); + $this->remove('publisher'); + return $this; } /** @@ -46,7 +48,8 @@ public function getPermissions() */ public function setPermissions($value): self { - return $this->set('permissions', $value); + $this->set('permissions', $value); + return $this; } public function hasPermissions(): bool @@ -56,7 +59,8 @@ public function hasPermissions(): bool public function unsetPermissions(): self { - return $this->remove('permissions'); + $this->remove('permissions'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/PublisherPermissions.php b/src/GraphQL/Schemas/PublisherPermissions.php index a5e66cb..ea61cb5 100644 --- a/src/GraphQL/Schemas/PublisherPermissions.php +++ b/src/GraphQL/Schemas/PublisherPermissions.php @@ -20,7 +20,8 @@ public function getPublisherAdmin() */ public function setPublisherAdmin($value): self { - return $this->set('publisherAdmin', $value); + $this->set('publisherAdmin', $value); + return $this; } public function hasPublisherAdmin(): bool @@ -30,7 +31,8 @@ public function hasPublisherAdmin(): bool public function unsetPublisherAdmin(): self { - return $this->remove('publisherAdmin'); + $this->remove('publisherAdmin'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkLifecycle() */ public function setWorkLifecycle($value): self { - return $this->set('workLifecycle', $value); + $this->set('workLifecycle', $value); + return $this; } public function hasWorkLifecycle(): bool @@ -56,7 +59,8 @@ public function hasWorkLifecycle(): bool public function unsetWorkLifecycle(): self { - return $this->remove('workLifecycle'); + $this->remove('workLifecycle'); + return $this; } /** @@ -72,7 +76,8 @@ public function getCdnWrite() */ public function setCdnWrite($value): self { - return $this->set('cdnWrite', $value); + $this->set('cdnWrite', $value); + return $this; } public function hasCdnWrite(): bool @@ -82,7 +87,8 @@ public function hasCdnWrite(): bool public function unsetCdnWrite(): self { - return $this->remove('cdnWrite'); + $this->remove('cdnWrite'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/QueryRoot.php b/src/GraphQL/Schemas/QueryRoot.php index c7dbdba..d40c6a8 100644 --- a/src/GraphQL/Schemas/QueryRoot.php +++ b/src/GraphQL/Schemas/QueryRoot.php @@ -20,7 +20,8 @@ public function getWorks() */ public function setWorks($value): self { - return $this->set('works', $value); + $this->set('works', $value); + return $this; } public function hasWorks(): bool @@ -30,7 +31,8 @@ public function hasWorks(): bool public function unsetWorks(): self { - return $this->remove('works'); + $this->remove('works'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -56,7 +59,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkByDoi() */ public function setWorkByDoi($value): self { - return $this->set('workByDoi', $value); + $this->set('workByDoi', $value); + return $this; } public function hasWorkByDoi(): bool @@ -82,7 +87,8 @@ public function hasWorkByDoi(): bool public function unsetWorkByDoi(): self { - return $this->remove('workByDoi'); + $this->remove('workByDoi'); + return $this; } /** @@ -98,7 +104,8 @@ public function getWorkCount() */ public function setWorkCount($value): self { - return $this->set('workCount', $value); + $this->set('workCount', $value); + return $this; } public function hasWorkCount(): bool @@ -108,7 +115,8 @@ public function hasWorkCount(): bool public function unsetWorkCount(): self { - return $this->remove('workCount'); + $this->remove('workCount'); + return $this; } /** @@ -124,7 +132,8 @@ public function getBooks() */ public function setBooks($value): self { - return $this->set('books', $value); + $this->set('books', $value); + return $this; } public function hasBooks(): bool @@ -134,7 +143,8 @@ public function hasBooks(): bool public function unsetBooks(): self { - return $this->remove('books'); + $this->remove('books'); + return $this; } /** @@ -150,7 +160,8 @@ public function getBookByDoi() */ public function setBookByDoi($value): self { - return $this->set('bookByDoi', $value); + $this->set('bookByDoi', $value); + return $this; } public function hasBookByDoi(): bool @@ -160,7 +171,8 @@ public function hasBookByDoi(): bool public function unsetBookByDoi(): self { - return $this->remove('bookByDoi'); + $this->remove('bookByDoi'); + return $this; } /** @@ -176,7 +188,8 @@ public function getBookCount() */ public function setBookCount($value): self { - return $this->set('bookCount', $value); + $this->set('bookCount', $value); + return $this; } public function hasBookCount(): bool @@ -186,7 +199,8 @@ public function hasBookCount(): bool public function unsetBookCount(): self { - return $this->remove('bookCount'); + $this->remove('bookCount'); + return $this; } /** @@ -202,7 +216,8 @@ public function getChapters() */ public function setChapters($value): self { - return $this->set('chapters', $value); + $this->set('chapters', $value); + return $this; } public function hasChapters(): bool @@ -212,7 +227,8 @@ public function hasChapters(): bool public function unsetChapters(): self { - return $this->remove('chapters'); + $this->remove('chapters'); + return $this; } /** @@ -228,7 +244,8 @@ public function getChapterByDoi() */ public function setChapterByDoi($value): self { - return $this->set('chapterByDoi', $value); + $this->set('chapterByDoi', $value); + return $this; } public function hasChapterByDoi(): bool @@ -238,7 +255,8 @@ public function hasChapterByDoi(): bool public function unsetChapterByDoi(): self { - return $this->remove('chapterByDoi'); + $this->remove('chapterByDoi'); + return $this; } /** @@ -254,7 +272,8 @@ public function getChapterCount() */ public function setChapterCount($value): self { - return $this->set('chapterCount', $value); + $this->set('chapterCount', $value); + return $this; } public function hasChapterCount(): bool @@ -264,7 +283,8 @@ public function hasChapterCount(): bool public function unsetChapterCount(): self { - return $this->remove('chapterCount'); + $this->remove('chapterCount'); + return $this; } /** @@ -280,7 +300,8 @@ public function getPublications() */ public function setPublications($value): self { - return $this->set('publications', $value); + $this->set('publications', $value); + return $this; } public function hasPublications(): bool @@ -290,7 +311,8 @@ public function hasPublications(): bool public function unsetPublications(): self { - return $this->remove('publications'); + $this->remove('publications'); + return $this; } /** @@ -306,7 +328,8 @@ public function getPublication() */ public function setPublication($value): self { - return $this->set('publication', $value); + $this->set('publication', $value); + return $this; } public function hasPublication(): bool @@ -316,7 +339,8 @@ public function hasPublication(): bool public function unsetPublication(): self { - return $this->remove('publication'); + $this->remove('publication'); + return $this; } /** @@ -332,7 +356,8 @@ public function getFile() */ public function setFile($value): self { - return $this->set('file', $value); + $this->set('file', $value); + return $this; } public function hasFile(): bool @@ -342,7 +367,8 @@ public function hasFile(): bool public function unsetFile(): self { - return $this->remove('file'); + $this->remove('file'); + return $this; } /** @@ -358,7 +384,8 @@ public function getPublicationCount() */ public function setPublicationCount($value): self { - return $this->set('publicationCount', $value); + $this->set('publicationCount', $value); + return $this; } public function hasPublicationCount(): bool @@ -368,7 +395,8 @@ public function hasPublicationCount(): bool public function unsetPublicationCount(): self { - return $this->remove('publicationCount'); + $this->remove('publicationCount'); + return $this; } /** @@ -384,7 +412,8 @@ public function getPublishers() */ public function setPublishers($value): self { - return $this->set('publishers', $value); + $this->set('publishers', $value); + return $this; } public function hasPublishers(): bool @@ -394,7 +423,8 @@ public function hasPublishers(): bool public function unsetPublishers(): self { - return $this->remove('publishers'); + $this->remove('publishers'); + return $this; } /** @@ -410,7 +440,8 @@ public function getPublisher() */ public function setPublisher($value): self { - return $this->set('publisher', $value); + $this->set('publisher', $value); + return $this; } public function hasPublisher(): bool @@ -420,7 +451,8 @@ public function hasPublisher(): bool public function unsetPublisher(): self { - return $this->remove('publisher'); + $this->remove('publisher'); + return $this; } /** @@ -436,7 +468,8 @@ public function getPublisherCount() */ public function setPublisherCount($value): self { - return $this->set('publisherCount', $value); + $this->set('publisherCount', $value); + return $this; } public function hasPublisherCount(): bool @@ -446,7 +479,8 @@ public function hasPublisherCount(): bool public function unsetPublisherCount(): self { - return $this->remove('publisherCount'); + $this->remove('publisherCount'); + return $this; } /** @@ -462,7 +496,8 @@ public function getImprints() */ public function setImprints($value): self { - return $this->set('imprints', $value); + $this->set('imprints', $value); + return $this; } public function hasImprints(): bool @@ -472,7 +507,8 @@ public function hasImprints(): bool public function unsetImprints(): self { - return $this->remove('imprints'); + $this->remove('imprints'); + return $this; } /** @@ -488,7 +524,8 @@ public function getImprint() */ public function setImprint($value): self { - return $this->set('imprint', $value); + $this->set('imprint', $value); + return $this; } public function hasImprint(): bool @@ -498,7 +535,8 @@ public function hasImprint(): bool public function unsetImprint(): self { - return $this->remove('imprint'); + $this->remove('imprint'); + return $this; } /** @@ -514,7 +552,8 @@ public function getImprintCount() */ public function setImprintCount($value): self { - return $this->set('imprintCount', $value); + $this->set('imprintCount', $value); + return $this; } public function hasImprintCount(): bool @@ -524,7 +563,8 @@ public function hasImprintCount(): bool public function unsetImprintCount(): self { - return $this->remove('imprintCount'); + $this->remove('imprintCount'); + return $this; } /** @@ -540,7 +580,8 @@ public function getContributors() */ public function setContributors($value): self { - return $this->set('contributors', $value); + $this->set('contributors', $value); + return $this; } public function hasContributors(): bool @@ -550,7 +591,8 @@ public function hasContributors(): bool public function unsetContributors(): self { - return $this->remove('contributors'); + $this->remove('contributors'); + return $this; } /** @@ -566,7 +608,8 @@ public function getContributor() */ public function setContributor($value): self { - return $this->set('contributor', $value); + $this->set('contributor', $value); + return $this; } public function hasContributor(): bool @@ -576,7 +619,8 @@ public function hasContributor(): bool public function unsetContributor(): self { - return $this->remove('contributor'); + $this->remove('contributor'); + return $this; } /** @@ -592,7 +636,8 @@ public function getContributorCount() */ public function setContributorCount($value): self { - return $this->set('contributorCount', $value); + $this->set('contributorCount', $value); + return $this; } public function hasContributorCount(): bool @@ -602,7 +647,8 @@ public function hasContributorCount(): bool public function unsetContributorCount(): self { - return $this->remove('contributorCount'); + $this->remove('contributorCount'); + return $this; } /** @@ -618,7 +664,8 @@ public function getContributions() */ public function setContributions($value): self { - return $this->set('contributions', $value); + $this->set('contributions', $value); + return $this; } public function hasContributions(): bool @@ -628,7 +675,8 @@ public function hasContributions(): bool public function unsetContributions(): self { - return $this->remove('contributions'); + $this->remove('contributions'); + return $this; } /** @@ -644,7 +692,8 @@ public function getContribution() */ public function setContribution($value): self { - return $this->set('contribution', $value); + $this->set('contribution', $value); + return $this; } public function hasContribution(): bool @@ -654,7 +703,8 @@ public function hasContribution(): bool public function unsetContribution(): self { - return $this->remove('contribution'); + $this->remove('contribution'); + return $this; } /** @@ -670,7 +720,8 @@ public function getContributionCount() */ public function setContributionCount($value): self { - return $this->set('contributionCount', $value); + $this->set('contributionCount', $value); + return $this; } public function hasContributionCount(): bool @@ -680,7 +731,8 @@ public function hasContributionCount(): bool public function unsetContributionCount(): self { - return $this->remove('contributionCount'); + $this->remove('contributionCount'); + return $this; } /** @@ -696,7 +748,8 @@ public function getSerieses() */ public function setSerieses($value): self { - return $this->set('serieses', $value); + $this->set('serieses', $value); + return $this; } public function hasSerieses(): bool @@ -706,7 +759,8 @@ public function hasSerieses(): bool public function unsetSerieses(): self { - return $this->remove('serieses'); + $this->remove('serieses'); + return $this; } /** @@ -722,7 +776,8 @@ public function getSeries() */ public function setSeries($value): self { - return $this->set('series', $value); + $this->set('series', $value); + return $this; } public function hasSeries(): bool @@ -732,7 +787,8 @@ public function hasSeries(): bool public function unsetSeries(): self { - return $this->remove('series'); + $this->remove('series'); + return $this; } /** @@ -748,7 +804,8 @@ public function getSeriesCount() */ public function setSeriesCount($value): self { - return $this->set('seriesCount', $value); + $this->set('seriesCount', $value); + return $this; } public function hasSeriesCount(): bool @@ -758,7 +815,8 @@ public function hasSeriesCount(): bool public function unsetSeriesCount(): self { - return $this->remove('seriesCount'); + $this->remove('seriesCount'); + return $this; } /** @@ -774,7 +832,8 @@ public function getIssues() */ public function setIssues($value): self { - return $this->set('issues', $value); + $this->set('issues', $value); + return $this; } public function hasIssues(): bool @@ -784,7 +843,8 @@ public function hasIssues(): bool public function unsetIssues(): self { - return $this->remove('issues'); + $this->remove('issues'); + return $this; } /** @@ -800,7 +860,8 @@ public function getIssue() */ public function setIssue($value): self { - return $this->set('issue', $value); + $this->set('issue', $value); + return $this; } public function hasIssue(): bool @@ -810,7 +871,8 @@ public function hasIssue(): bool public function unsetIssue(): self { - return $this->remove('issue'); + $this->remove('issue'); + return $this; } /** @@ -826,7 +888,8 @@ public function getIssueCount() */ public function setIssueCount($value): self { - return $this->set('issueCount', $value); + $this->set('issueCount', $value); + return $this; } public function hasIssueCount(): bool @@ -836,7 +899,8 @@ public function hasIssueCount(): bool public function unsetIssueCount(): self { - return $this->remove('issueCount'); + $this->remove('issueCount'); + return $this; } /** @@ -852,7 +916,8 @@ public function getLanguages() */ public function setLanguages($value): self { - return $this->set('languages', $value); + $this->set('languages', $value); + return $this; } public function hasLanguages(): bool @@ -862,7 +927,8 @@ public function hasLanguages(): bool public function unsetLanguages(): self { - return $this->remove('languages'); + $this->remove('languages'); + return $this; } /** @@ -878,7 +944,8 @@ public function getLanguage() */ public function setLanguage($value): self { - return $this->set('language', $value); + $this->set('language', $value); + return $this; } public function hasLanguage(): bool @@ -888,7 +955,8 @@ public function hasLanguage(): bool public function unsetLanguage(): self { - return $this->remove('language'); + $this->remove('language'); + return $this; } /** @@ -904,7 +972,8 @@ public function getLanguageCount() */ public function setLanguageCount($value): self { - return $this->set('languageCount', $value); + $this->set('languageCount', $value); + return $this; } public function hasLanguageCount(): bool @@ -914,7 +983,8 @@ public function hasLanguageCount(): bool public function unsetLanguageCount(): self { - return $this->remove('languageCount'); + $this->remove('languageCount'); + return $this; } /** @@ -930,7 +1000,8 @@ public function getLocations() */ public function setLocations($value): self { - return $this->set('locations', $value); + $this->set('locations', $value); + return $this; } public function hasLocations(): bool @@ -940,7 +1011,8 @@ public function hasLocations(): bool public function unsetLocations(): self { - return $this->remove('locations'); + $this->remove('locations'); + return $this; } /** @@ -956,7 +1028,8 @@ public function getLocation() */ public function setLocation($value): self { - return $this->set('location', $value); + $this->set('location', $value); + return $this; } public function hasLocation(): bool @@ -966,7 +1039,8 @@ public function hasLocation(): bool public function unsetLocation(): self { - return $this->remove('location'); + $this->remove('location'); + return $this; } /** @@ -982,7 +1056,8 @@ public function getLocationCount() */ public function setLocationCount($value): self { - return $this->set('locationCount', $value); + $this->set('locationCount', $value); + return $this; } public function hasLocationCount(): bool @@ -992,7 +1067,8 @@ public function hasLocationCount(): bool public function unsetLocationCount(): self { - return $this->remove('locationCount'); + $this->remove('locationCount'); + return $this; } /** @@ -1008,7 +1084,8 @@ public function getPrices() */ public function setPrices($value): self { - return $this->set('prices', $value); + $this->set('prices', $value); + return $this; } public function hasPrices(): bool @@ -1018,7 +1095,8 @@ public function hasPrices(): bool public function unsetPrices(): self { - return $this->remove('prices'); + $this->remove('prices'); + return $this; } /** @@ -1034,7 +1112,8 @@ public function getPrice() */ public function setPrice($value): self { - return $this->set('price', $value); + $this->set('price', $value); + return $this; } public function hasPrice(): bool @@ -1044,7 +1123,8 @@ public function hasPrice(): bool public function unsetPrice(): self { - return $this->remove('price'); + $this->remove('price'); + return $this; } /** @@ -1060,7 +1140,8 @@ public function getPriceCount() */ public function setPriceCount($value): self { - return $this->set('priceCount', $value); + $this->set('priceCount', $value); + return $this; } public function hasPriceCount(): bool @@ -1070,7 +1151,8 @@ public function hasPriceCount(): bool public function unsetPriceCount(): self { - return $this->remove('priceCount'); + $this->remove('priceCount'); + return $this; } /** @@ -1086,7 +1168,8 @@ public function getSubjects() */ public function setSubjects($value): self { - return $this->set('subjects', $value); + $this->set('subjects', $value); + return $this; } public function hasSubjects(): bool @@ -1096,7 +1179,8 @@ public function hasSubjects(): bool public function unsetSubjects(): self { - return $this->remove('subjects'); + $this->remove('subjects'); + return $this; } /** @@ -1112,7 +1196,8 @@ public function getSubject() */ public function setSubject($value): self { - return $this->set('subject', $value); + $this->set('subject', $value); + return $this; } public function hasSubject(): bool @@ -1122,7 +1207,8 @@ public function hasSubject(): bool public function unsetSubject(): self { - return $this->remove('subject'); + $this->remove('subject'); + return $this; } /** @@ -1138,7 +1224,8 @@ public function getSubjectCount() */ public function setSubjectCount($value): self { - return $this->set('subjectCount', $value); + $this->set('subjectCount', $value); + return $this; } public function hasSubjectCount(): bool @@ -1148,7 +1235,8 @@ public function hasSubjectCount(): bool public function unsetSubjectCount(): self { - return $this->remove('subjectCount'); + $this->remove('subjectCount'); + return $this; } /** @@ -1164,7 +1252,8 @@ public function getInstitutions() */ public function setInstitutions($value): self { - return $this->set('institutions', $value); + $this->set('institutions', $value); + return $this; } public function hasInstitutions(): bool @@ -1174,7 +1263,8 @@ public function hasInstitutions(): bool public function unsetInstitutions(): self { - return $this->remove('institutions'); + $this->remove('institutions'); + return $this; } /** @@ -1190,7 +1280,8 @@ public function getInstitution() */ public function setInstitution($value): self { - return $this->set('institution', $value); + $this->set('institution', $value); + return $this; } public function hasInstitution(): bool @@ -1200,7 +1291,8 @@ public function hasInstitution(): bool public function unsetInstitution(): self { - return $this->remove('institution'); + $this->remove('institution'); + return $this; } /** @@ -1216,7 +1308,8 @@ public function getInstitutionCount() */ public function setInstitutionCount($value): self { - return $this->set('institutionCount', $value); + $this->set('institutionCount', $value); + return $this; } public function hasInstitutionCount(): bool @@ -1226,7 +1319,8 @@ public function hasInstitutionCount(): bool public function unsetInstitutionCount(): self { - return $this->remove('institutionCount'); + $this->remove('institutionCount'); + return $this; } /** @@ -1242,7 +1336,8 @@ public function getFundings() */ public function setFundings($value): self { - return $this->set('fundings', $value); + $this->set('fundings', $value); + return $this; } public function hasFundings(): bool @@ -1252,7 +1347,8 @@ public function hasFundings(): bool public function unsetFundings(): self { - return $this->remove('fundings'); + $this->remove('fundings'); + return $this; } /** @@ -1268,7 +1364,8 @@ public function getFunding() */ public function setFunding($value): self { - return $this->set('funding', $value); + $this->set('funding', $value); + return $this; } public function hasFunding(): bool @@ -1278,7 +1375,8 @@ public function hasFunding(): bool public function unsetFunding(): self { - return $this->remove('funding'); + $this->remove('funding'); + return $this; } /** @@ -1294,7 +1392,8 @@ public function getFundingCount() */ public function setFundingCount($value): self { - return $this->set('fundingCount', $value); + $this->set('fundingCount', $value); + return $this; } public function hasFundingCount(): bool @@ -1304,7 +1403,8 @@ public function hasFundingCount(): bool public function unsetFundingCount(): self { - return $this->remove('fundingCount'); + $this->remove('fundingCount'); + return $this; } /** @@ -1320,7 +1420,8 @@ public function getAffiliations() */ public function setAffiliations($value): self { - return $this->set('affiliations', $value); + $this->set('affiliations', $value); + return $this; } public function hasAffiliations(): bool @@ -1330,7 +1431,8 @@ public function hasAffiliations(): bool public function unsetAffiliations(): self { - return $this->remove('affiliations'); + $this->remove('affiliations'); + return $this; } /** @@ -1346,7 +1448,8 @@ public function getAffiliation() */ public function setAffiliation($value): self { - return $this->set('affiliation', $value); + $this->set('affiliation', $value); + return $this; } public function hasAffiliation(): bool @@ -1356,7 +1459,8 @@ public function hasAffiliation(): bool public function unsetAffiliation(): self { - return $this->remove('affiliation'); + $this->remove('affiliation'); + return $this; } /** @@ -1372,7 +1476,8 @@ public function getAffiliationCount() */ public function setAffiliationCount($value): self { - return $this->set('affiliationCount', $value); + $this->set('affiliationCount', $value); + return $this; } public function hasAffiliationCount(): bool @@ -1382,7 +1487,8 @@ public function hasAffiliationCount(): bool public function unsetAffiliationCount(): self { - return $this->remove('affiliationCount'); + $this->remove('affiliationCount'); + return $this; } /** @@ -1398,7 +1504,8 @@ public function getReferences() */ public function setReferences($value): self { - return $this->set('references', $value); + $this->set('references', $value); + return $this; } public function hasReferences(): bool @@ -1408,7 +1515,8 @@ public function hasReferences(): bool public function unsetReferences(): self { - return $this->remove('references'); + $this->remove('references'); + return $this; } /** @@ -1424,7 +1532,8 @@ public function getReference() */ public function setReference($value): self { - return $this->set('reference', $value); + $this->set('reference', $value); + return $this; } public function hasReference(): bool @@ -1434,7 +1543,8 @@ public function hasReference(): bool public function unsetReference(): self { - return $this->remove('reference'); + $this->remove('reference'); + return $this; } /** @@ -1450,7 +1560,8 @@ public function getReferenceCount() */ public function setReferenceCount($value): self { - return $this->set('referenceCount', $value); + $this->set('referenceCount', $value); + return $this; } public function hasReferenceCount(): bool @@ -1460,7 +1571,8 @@ public function hasReferenceCount(): bool public function unsetReferenceCount(): self { - return $this->remove('referenceCount'); + $this->remove('referenceCount'); + return $this; } /** @@ -1476,7 +1588,8 @@ public function getAdditionalResources() */ public function setAdditionalResources($value): self { - return $this->set('additionalResources', $value); + $this->set('additionalResources', $value); + return $this; } public function hasAdditionalResources(): bool @@ -1486,7 +1599,8 @@ public function hasAdditionalResources(): bool public function unsetAdditionalResources(): self { - return $this->remove('additionalResources'); + $this->remove('additionalResources'); + return $this; } /** @@ -1502,7 +1616,8 @@ public function getAdditionalResource() */ public function setAdditionalResource($value): self { - return $this->set('additionalResource', $value); + $this->set('additionalResource', $value); + return $this; } public function hasAdditionalResource(): bool @@ -1512,7 +1627,8 @@ public function hasAdditionalResource(): bool public function unsetAdditionalResource(): self { - return $this->remove('additionalResource'); + $this->remove('additionalResource'); + return $this; } /** @@ -1528,7 +1644,8 @@ public function getAdditionalResourceCount() */ public function setAdditionalResourceCount($value): self { - return $this->set('additionalResourceCount', $value); + $this->set('additionalResourceCount', $value); + return $this; } public function hasAdditionalResourceCount(): bool @@ -1538,7 +1655,8 @@ public function hasAdditionalResourceCount(): bool public function unsetAdditionalResourceCount(): self { - return $this->remove('additionalResourceCount'); + $this->remove('additionalResourceCount'); + return $this; } /** @@ -1554,7 +1672,8 @@ public function getAwards() */ public function setAwards($value): self { - return $this->set('awards', $value); + $this->set('awards', $value); + return $this; } public function hasAwards(): bool @@ -1564,7 +1683,8 @@ public function hasAwards(): bool public function unsetAwards(): self { - return $this->remove('awards'); + $this->remove('awards'); + return $this; } /** @@ -1580,7 +1700,8 @@ public function getAward() */ public function setAward($value): self { - return $this->set('award', $value); + $this->set('award', $value); + return $this; } public function hasAward(): bool @@ -1590,7 +1711,8 @@ public function hasAward(): bool public function unsetAward(): self { - return $this->remove('award'); + $this->remove('award'); + return $this; } /** @@ -1606,7 +1728,8 @@ public function getAwardCount() */ public function setAwardCount($value): self { - return $this->set('awardCount', $value); + $this->set('awardCount', $value); + return $this; } public function hasAwardCount(): bool @@ -1616,7 +1739,8 @@ public function hasAwardCount(): bool public function unsetAwardCount(): self { - return $this->remove('awardCount'); + $this->remove('awardCount'); + return $this; } /** @@ -1632,7 +1756,8 @@ public function getEndorsements() */ public function setEndorsements($value): self { - return $this->set('endorsements', $value); + $this->set('endorsements', $value); + return $this; } public function hasEndorsements(): bool @@ -1642,7 +1767,8 @@ public function hasEndorsements(): bool public function unsetEndorsements(): self { - return $this->remove('endorsements'); + $this->remove('endorsements'); + return $this; } /** @@ -1658,7 +1784,8 @@ public function getEndorsement() */ public function setEndorsement($value): self { - return $this->set('endorsement', $value); + $this->set('endorsement', $value); + return $this; } public function hasEndorsement(): bool @@ -1668,7 +1795,8 @@ public function hasEndorsement(): bool public function unsetEndorsement(): self { - return $this->remove('endorsement'); + $this->remove('endorsement'); + return $this; } /** @@ -1684,7 +1812,8 @@ public function getEndorsementCount() */ public function setEndorsementCount($value): self { - return $this->set('endorsementCount', $value); + $this->set('endorsementCount', $value); + return $this; } public function hasEndorsementCount(): bool @@ -1694,7 +1823,8 @@ public function hasEndorsementCount(): bool public function unsetEndorsementCount(): self { - return $this->remove('endorsementCount'); + $this->remove('endorsementCount'); + return $this; } /** @@ -1710,7 +1840,8 @@ public function getBookReviews() */ public function setBookReviews($value): self { - return $this->set('bookReviews', $value); + $this->set('bookReviews', $value); + return $this; } public function hasBookReviews(): bool @@ -1720,7 +1851,8 @@ public function hasBookReviews(): bool public function unsetBookReviews(): self { - return $this->remove('bookReviews'); + $this->remove('bookReviews'); + return $this; } /** @@ -1736,7 +1868,8 @@ public function getBookReview() */ public function setBookReview($value): self { - return $this->set('bookReview', $value); + $this->set('bookReview', $value); + return $this; } public function hasBookReview(): bool @@ -1746,7 +1879,8 @@ public function hasBookReview(): bool public function unsetBookReview(): self { - return $this->remove('bookReview'); + $this->remove('bookReview'); + return $this; } /** @@ -1762,7 +1896,8 @@ public function getBookReviewCount() */ public function setBookReviewCount($value): self { - return $this->set('bookReviewCount', $value); + $this->set('bookReviewCount', $value); + return $this; } public function hasBookReviewCount(): bool @@ -1772,7 +1907,8 @@ public function hasBookReviewCount(): bool public function unsetBookReviewCount(): self { - return $this->remove('bookReviewCount'); + $this->remove('bookReviewCount'); + return $this; } /** @@ -1788,7 +1924,8 @@ public function getWorkFeaturedVideos() */ public function setWorkFeaturedVideos($value): self { - return $this->set('workFeaturedVideos', $value); + $this->set('workFeaturedVideos', $value); + return $this; } public function hasWorkFeaturedVideos(): bool @@ -1798,7 +1935,8 @@ public function hasWorkFeaturedVideos(): bool public function unsetWorkFeaturedVideos(): self { - return $this->remove('workFeaturedVideos'); + $this->remove('workFeaturedVideos'); + return $this; } /** @@ -1814,7 +1952,8 @@ public function getWorkFeaturedVideo() */ public function setWorkFeaturedVideo($value): self { - return $this->set('workFeaturedVideo', $value); + $this->set('workFeaturedVideo', $value); + return $this; } public function hasWorkFeaturedVideo(): bool @@ -1824,7 +1963,8 @@ public function hasWorkFeaturedVideo(): bool public function unsetWorkFeaturedVideo(): self { - return $this->remove('workFeaturedVideo'); + $this->remove('workFeaturedVideo'); + return $this; } /** @@ -1840,7 +1980,8 @@ public function getWorkFeaturedVideoCount() */ public function setWorkFeaturedVideoCount($value): self { - return $this->set('workFeaturedVideoCount', $value); + $this->set('workFeaturedVideoCount', $value); + return $this; } public function hasWorkFeaturedVideoCount(): bool @@ -1850,7 +1991,8 @@ public function hasWorkFeaturedVideoCount(): bool public function unsetWorkFeaturedVideoCount(): self { - return $this->remove('workFeaturedVideoCount'); + $this->remove('workFeaturedVideoCount'); + return $this; } /** @@ -1866,7 +2008,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -1876,7 +2019,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -1892,7 +2036,8 @@ public function getTitles() */ public function setTitles($value): self { - return $this->set('titles', $value); + $this->set('titles', $value); + return $this; } public function hasTitles(): bool @@ -1902,7 +2047,8 @@ public function hasTitles(): bool public function unsetTitles(): self { - return $this->remove('titles'); + $this->remove('titles'); + return $this; } /** @@ -1918,7 +2064,8 @@ public function getAbstract() */ public function setAbstract($value): self { - return $this->set('abstract', $value); + $this->set('abstract', $value); + return $this; } public function hasAbstract(): bool @@ -1928,7 +2075,8 @@ public function hasAbstract(): bool public function unsetAbstract(): self { - return $this->remove('abstract'); + $this->remove('abstract'); + return $this; } /** @@ -1944,7 +2092,8 @@ public function getAbstracts() */ public function setAbstracts($value): self { - return $this->set('abstracts', $value); + $this->set('abstracts', $value); + return $this; } public function hasAbstracts(): bool @@ -1954,7 +2103,8 @@ public function hasAbstracts(): bool public function unsetAbstracts(): self { - return $this->remove('abstracts'); + $this->remove('abstracts'); + return $this; } /** @@ -1970,7 +2120,8 @@ public function getBiography() */ public function setBiography($value): self { - return $this->set('biography', $value); + $this->set('biography', $value); + return $this; } public function hasBiography(): bool @@ -1980,7 +2131,8 @@ public function hasBiography(): bool public function unsetBiography(): self { - return $this->remove('biography'); + $this->remove('biography'); + return $this; } /** @@ -1996,7 +2148,8 @@ public function getBiographies() */ public function setBiographies($value): self { - return $this->set('biographies', $value); + $this->set('biographies', $value); + return $this; } public function hasBiographies(): bool @@ -2006,7 +2159,8 @@ public function hasBiographies(): bool public function unsetBiographies(): self { - return $this->remove('biographies'); + $this->remove('biographies'); + return $this; } /** @@ -2022,7 +2176,8 @@ public function getContacts() */ public function setContacts($value): self { - return $this->set('contacts', $value); + $this->set('contacts', $value); + return $this; } public function hasContacts(): bool @@ -2032,7 +2187,8 @@ public function hasContacts(): bool public function unsetContacts(): self { - return $this->remove('contacts'); + $this->remove('contacts'); + return $this; } /** @@ -2048,7 +2204,8 @@ public function getContact() */ public function setContact($value): self { - return $this->set('contact', $value); + $this->set('contact', $value); + return $this; } public function hasContact(): bool @@ -2058,7 +2215,8 @@ public function hasContact(): bool public function unsetContact(): self { - return $this->remove('contact'); + $this->remove('contact'); + return $this; } /** @@ -2074,7 +2232,8 @@ public function getContactCount() */ public function setContactCount($value): self { - return $this->set('contactCount', $value); + $this->set('contactCount', $value); + return $this; } public function hasContactCount(): bool @@ -2084,7 +2243,8 @@ public function hasContactCount(): bool public function unsetContactCount(): self { - return $this->remove('contactCount'); + $this->remove('contactCount'); + return $this; } /** @@ -2100,7 +2260,8 @@ public function getMe() */ public function setMe($value): self { - return $this->set('me', $value); + $this->set('me', $value); + return $this; } public function hasMe(): bool @@ -2110,7 +2271,8 @@ public function hasMe(): bool public function unsetMe(): self { - return $this->remove('me'); + $this->remove('me'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Reference.php b/src/GraphQL/Schemas/Reference.php index ffe88d3..ef306e5 100644 --- a/src/GraphQL/Schemas/Reference.php +++ b/src/GraphQL/Schemas/Reference.php @@ -20,7 +20,8 @@ public function getReferenceId() */ public function setReferenceId($value): self { - return $this->set('referenceId', $value); + $this->set('referenceId', $value); + return $this; } public function hasReferenceId(): bool @@ -30,7 +31,8 @@ public function hasReferenceId(): bool public function unsetReferenceId(): self { - return $this->remove('referenceId'); + $this->remove('referenceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getReferenceOrdinal() */ public function setReferenceOrdinal($value): self { - return $this->set('referenceOrdinal', $value); + $this->set('referenceOrdinal', $value); + return $this; } public function hasReferenceOrdinal(): bool @@ -82,7 +87,8 @@ public function hasReferenceOrdinal(): bool public function unsetReferenceOrdinal(): self { - return $this->remove('referenceOrdinal'); + $this->remove('referenceOrdinal'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -108,7 +115,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -124,7 +132,8 @@ public function getUnstructuredCitation() */ public function setUnstructuredCitation($value): self { - return $this->set('unstructuredCitation', $value); + $this->set('unstructuredCitation', $value); + return $this; } public function hasUnstructuredCitation(): bool @@ -134,7 +143,8 @@ public function hasUnstructuredCitation(): bool public function unsetUnstructuredCitation(): self { - return $this->remove('unstructuredCitation'); + $this->remove('unstructuredCitation'); + return $this; } /** @@ -150,7 +160,8 @@ public function getIssn() */ public function setIssn($value): self { - return $this->set('issn', $value); + $this->set('issn', $value); + return $this; } public function hasIssn(): bool @@ -160,7 +171,8 @@ public function hasIssn(): bool public function unsetIssn(): self { - return $this->remove('issn'); + $this->remove('issn'); + return $this; } /** @@ -176,7 +188,8 @@ public function getIsbn() */ public function setIsbn($value): self { - return $this->set('isbn', $value); + $this->set('isbn', $value); + return $this; } public function hasIsbn(): bool @@ -186,7 +199,8 @@ public function hasIsbn(): bool public function unsetIsbn(): self { - return $this->remove('isbn'); + $this->remove('isbn'); + return $this; } /** @@ -202,7 +216,8 @@ public function getJournalTitle() */ public function setJournalTitle($value): self { - return $this->set('journalTitle', $value); + $this->set('journalTitle', $value); + return $this; } public function hasJournalTitle(): bool @@ -212,7 +227,8 @@ public function hasJournalTitle(): bool public function unsetJournalTitle(): self { - return $this->remove('journalTitle'); + $this->remove('journalTitle'); + return $this; } /** @@ -228,7 +244,8 @@ public function getArticleTitle() */ public function setArticleTitle($value): self { - return $this->set('articleTitle', $value); + $this->set('articleTitle', $value); + return $this; } public function hasArticleTitle(): bool @@ -238,7 +255,8 @@ public function hasArticleTitle(): bool public function unsetArticleTitle(): self { - return $this->remove('articleTitle'); + $this->remove('articleTitle'); + return $this; } /** @@ -254,7 +272,8 @@ public function getSeriesTitle() */ public function setSeriesTitle($value): self { - return $this->set('seriesTitle', $value); + $this->set('seriesTitle', $value); + return $this; } public function hasSeriesTitle(): bool @@ -264,7 +283,8 @@ public function hasSeriesTitle(): bool public function unsetSeriesTitle(): self { - return $this->remove('seriesTitle'); + $this->remove('seriesTitle'); + return $this; } /** @@ -280,7 +300,8 @@ public function getVolumeTitle() */ public function setVolumeTitle($value): self { - return $this->set('volumeTitle', $value); + $this->set('volumeTitle', $value); + return $this; } public function hasVolumeTitle(): bool @@ -290,7 +311,8 @@ public function hasVolumeTitle(): bool public function unsetVolumeTitle(): self { - return $this->remove('volumeTitle'); + $this->remove('volumeTitle'); + return $this; } /** @@ -306,7 +328,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -316,7 +339,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -332,7 +356,8 @@ public function getAuthor() */ public function setAuthor($value): self { - return $this->set('author', $value); + $this->set('author', $value); + return $this; } public function hasAuthor(): bool @@ -342,7 +367,8 @@ public function hasAuthor(): bool public function unsetAuthor(): self { - return $this->remove('author'); + $this->remove('author'); + return $this; } /** @@ -358,7 +384,8 @@ public function getVolume() */ public function setVolume($value): self { - return $this->set('volume', $value); + $this->set('volume', $value); + return $this; } public function hasVolume(): bool @@ -368,7 +395,8 @@ public function hasVolume(): bool public function unsetVolume(): self { - return $this->remove('volume'); + $this->remove('volume'); + return $this; } /** @@ -384,7 +412,8 @@ public function getIssue() */ public function setIssue($value): self { - return $this->set('issue', $value); + $this->set('issue', $value); + return $this; } public function hasIssue(): bool @@ -394,7 +423,8 @@ public function hasIssue(): bool public function unsetIssue(): self { - return $this->remove('issue'); + $this->remove('issue'); + return $this; } /** @@ -410,7 +440,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -420,7 +451,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -436,7 +468,8 @@ public function getComponentNumber() */ public function setComponentNumber($value): self { - return $this->set('componentNumber', $value); + $this->set('componentNumber', $value); + return $this; } public function hasComponentNumber(): bool @@ -446,7 +479,8 @@ public function hasComponentNumber(): bool public function unsetComponentNumber(): self { - return $this->remove('componentNumber'); + $this->remove('componentNumber'); + return $this; } /** @@ -462,7 +496,8 @@ public function getStandardDesignator() */ public function setStandardDesignator($value): self { - return $this->set('standardDesignator', $value); + $this->set('standardDesignator', $value); + return $this; } public function hasStandardDesignator(): bool @@ -472,7 +507,8 @@ public function hasStandardDesignator(): bool public function unsetStandardDesignator(): self { - return $this->remove('standardDesignator'); + $this->remove('standardDesignator'); + return $this; } /** @@ -488,7 +524,8 @@ public function getStandardsBodyName() */ public function setStandardsBodyName($value): self { - return $this->set('standardsBodyName', $value); + $this->set('standardsBodyName', $value); + return $this; } public function hasStandardsBodyName(): bool @@ -498,7 +535,8 @@ public function hasStandardsBodyName(): bool public function unsetStandardsBodyName(): self { - return $this->remove('standardsBodyName'); + $this->remove('standardsBodyName'); + return $this; } /** @@ -514,7 +552,8 @@ public function getStandardsBodyAcronym() */ public function setStandardsBodyAcronym($value): self { - return $this->set('standardsBodyAcronym', $value); + $this->set('standardsBodyAcronym', $value); + return $this; } public function hasStandardsBodyAcronym(): bool @@ -524,7 +563,8 @@ public function hasStandardsBodyAcronym(): bool public function unsetStandardsBodyAcronym(): self { - return $this->remove('standardsBodyAcronym'); + $this->remove('standardsBodyAcronym'); + return $this; } /** @@ -540,7 +580,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -550,7 +591,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -566,7 +608,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -576,7 +619,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -592,7 +636,8 @@ public function getRetrievalDate() */ public function setRetrievalDate($value): self { - return $this->set('retrievalDate', $value); + $this->set('retrievalDate', $value); + return $this; } public function hasRetrievalDate(): bool @@ -602,7 +647,8 @@ public function hasRetrievalDate(): bool public function unsetRetrievalDate(): self { - return $this->remove('retrievalDate'); + $this->remove('retrievalDate'); + return $this; } /** @@ -618,7 +664,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -628,7 +675,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -644,7 +692,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -654,7 +703,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -670,7 +720,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -680,7 +731,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Series.php b/src/GraphQL/Schemas/Series.php index 6cae9e2..0769e35 100644 --- a/src/GraphQL/Schemas/Series.php +++ b/src/GraphQL/Schemas/Series.php @@ -20,7 +20,8 @@ public function getSeriesId() */ public function setSeriesId($value): self { - return $this->set('seriesId', $value); + $this->set('seriesId', $value); + return $this; } public function hasSeriesId(): bool @@ -30,7 +31,8 @@ public function hasSeriesId(): bool public function unsetSeriesId(): self { - return $this->remove('seriesId'); + $this->remove('seriesId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getSeriesType() */ public function setSeriesType($value): self { - return $this->set('seriesType', $value); + $this->set('seriesType', $value); + return $this; } public function hasSeriesType(): bool @@ -56,7 +59,8 @@ public function hasSeriesType(): bool public function unsetSeriesType(): self { - return $this->remove('seriesType'); + $this->remove('seriesType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSeriesName() */ public function setSeriesName($value): self { - return $this->set('seriesName', $value); + $this->set('seriesName', $value); + return $this; } public function hasSeriesName(): bool @@ -82,7 +87,8 @@ public function hasSeriesName(): bool public function unsetSeriesName(): self { - return $this->remove('seriesName'); + $this->remove('seriesName'); + return $this; } /** @@ -98,7 +104,8 @@ public function getIssnPrint() */ public function setIssnPrint($value): self { - return $this->set('issnPrint', $value); + $this->set('issnPrint', $value); + return $this; } public function hasIssnPrint(): bool @@ -108,7 +115,8 @@ public function hasIssnPrint(): bool public function unsetIssnPrint(): self { - return $this->remove('issnPrint'); + $this->remove('issnPrint'); + return $this; } /** @@ -124,7 +132,8 @@ public function getIssnDigital() */ public function setIssnDigital($value): self { - return $this->set('issnDigital', $value); + $this->set('issnDigital', $value); + return $this; } public function hasIssnDigital(): bool @@ -134,7 +143,8 @@ public function hasIssnDigital(): bool public function unsetIssnDigital(): self { - return $this->remove('issnDigital'); + $this->remove('issnDigital'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSeriesUrl() */ public function setSeriesUrl($value): self { - return $this->set('seriesUrl', $value); + $this->set('seriesUrl', $value); + return $this; } public function hasSeriesUrl(): bool @@ -160,7 +171,8 @@ public function hasSeriesUrl(): bool public function unsetSeriesUrl(): self { - return $this->remove('seriesUrl'); + $this->remove('seriesUrl'); + return $this; } /** @@ -176,7 +188,8 @@ public function getSeriesDescription() */ public function setSeriesDescription($value): self { - return $this->set('seriesDescription', $value); + $this->set('seriesDescription', $value); + return $this; } public function hasSeriesDescription(): bool @@ -186,7 +199,8 @@ public function hasSeriesDescription(): bool public function unsetSeriesDescription(): self { - return $this->remove('seriesDescription'); + $this->remove('seriesDescription'); + return $this; } /** @@ -202,7 +216,8 @@ public function getSeriesCfpUrl() */ public function setSeriesCfpUrl($value): self { - return $this->set('seriesCfpUrl', $value); + $this->set('seriesCfpUrl', $value); + return $this; } public function hasSeriesCfpUrl(): bool @@ -212,7 +227,8 @@ public function hasSeriesCfpUrl(): bool public function unsetSeriesCfpUrl(): self { - return $this->remove('seriesCfpUrl'); + $this->remove('seriesCfpUrl'); + return $this; } /** @@ -228,7 +244,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -238,7 +255,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -254,7 +272,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -264,7 +283,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -280,7 +300,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -290,7 +311,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -306,7 +328,8 @@ public function getImprint() */ public function setImprint($value): self { - return $this->set('imprint', $value); + $this->set('imprint', $value); + return $this; } public function hasImprint(): bool @@ -316,7 +339,8 @@ public function hasImprint(): bool public function unsetImprint(): self { - return $this->remove('imprint'); + $this->remove('imprint'); + return $this; } /** @@ -332,7 +356,8 @@ public function getIssues() */ public function setIssues($value): self { - return $this->set('issues', $value); + $this->set('issues', $value); + return $this; } public function hasIssues(): bool @@ -342,7 +367,8 @@ public function hasIssues(): bool public function unsetIssues(): self { - return $this->remove('issues'); + $this->remove('issues'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Subject.php b/src/GraphQL/Schemas/Subject.php index c9330c5..1b72544 100644 --- a/src/GraphQL/Schemas/Subject.php +++ b/src/GraphQL/Schemas/Subject.php @@ -20,7 +20,8 @@ public function getSubjectId() */ public function setSubjectId($value): self { - return $this->set('subjectId', $value); + $this->set('subjectId', $value); + return $this; } public function hasSubjectId(): bool @@ -30,7 +31,8 @@ public function hasSubjectId(): bool public function unsetSubjectId(): self { - return $this->remove('subjectId'); + $this->remove('subjectId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getSubjectType() */ public function setSubjectType($value): self { - return $this->set('subjectType', $value); + $this->set('subjectType', $value); + return $this; } public function hasSubjectType(): bool @@ -82,7 +87,8 @@ public function hasSubjectType(): bool public function unsetSubjectType(): self { - return $this->remove('subjectType'); + $this->remove('subjectType'); + return $this; } /** @@ -98,7 +104,8 @@ public function getSubjectCode() */ public function setSubjectCode($value): self { - return $this->set('subjectCode', $value); + $this->set('subjectCode', $value); + return $this; } public function hasSubjectCode(): bool @@ -108,7 +115,8 @@ public function hasSubjectCode(): bool public function unsetSubjectCode(): self { - return $this->remove('subjectCode'); + $this->remove('subjectCode'); + return $this; } /** @@ -124,7 +132,8 @@ public function getSubjectOrdinal() */ public function setSubjectOrdinal($value): self { - return $this->set('subjectOrdinal', $value); + $this->set('subjectOrdinal', $value); + return $this; } public function hasSubjectOrdinal(): bool @@ -134,7 +143,8 @@ public function hasSubjectOrdinal(): bool public function unsetSubjectOrdinal(): self { - return $this->remove('subjectOrdinal'); + $this->remove('subjectOrdinal'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -160,7 +171,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -186,7 +199,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -212,7 +227,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Title.php b/src/GraphQL/Schemas/Title.php index 9132401..d7b85af 100644 --- a/src/GraphQL/Schemas/Title.php +++ b/src/GraphQL/Schemas/Title.php @@ -20,7 +20,8 @@ public function getTitleId() */ public function setTitleId($value): self { - return $this->set('titleId', $value); + $this->set('titleId', $value); + return $this; } public function hasTitleId(): bool @@ -30,7 +31,8 @@ public function hasTitleId(): bool public function unsetTitleId(): self { - return $this->remove('titleId'); + $this->remove('titleId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getLocaleCode() */ public function setLocaleCode($value): self { - return $this->set('localeCode', $value); + $this->set('localeCode', $value); + return $this; } public function hasLocaleCode(): bool @@ -82,7 +87,8 @@ public function hasLocaleCode(): bool public function unsetLocaleCode(): self { - return $this->remove('localeCode'); + $this->remove('localeCode'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullTitle() */ public function setFullTitle($value): self { - return $this->set('fullTitle', $value); + $this->set('fullTitle', $value); + return $this; } public function hasFullTitle(): bool @@ -108,7 +115,8 @@ public function hasFullTitle(): bool public function unsetFullTitle(): self { - return $this->remove('fullTitle'); + $this->remove('fullTitle'); + return $this; } /** @@ -124,7 +132,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -134,7 +143,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSubtitle() */ public function setSubtitle($value): self { - return $this->set('subtitle', $value); + $this->set('subtitle', $value); + return $this; } public function hasSubtitle(): bool @@ -160,7 +171,8 @@ public function hasSubtitle(): bool public function unsetSubtitle(): self { - return $this->remove('subtitle'); + $this->remove('subtitle'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCanonical() */ public function setCanonical($value): self { - return $this->set('canonical', $value); + $this->set('canonical', $value); + return $this; } public function hasCanonical(): bool @@ -186,7 +199,8 @@ public function hasCanonical(): bool public function unsetCanonical(): self { - return $this->remove('canonical'); + $this->remove('canonical'); + return $this; } /** @@ -202,7 +216,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -212,7 +227,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/UploadRequestHeader.php b/src/GraphQL/Schemas/UploadRequestHeader.php index a733a86..147d60e 100644 --- a/src/GraphQL/Schemas/UploadRequestHeader.php +++ b/src/GraphQL/Schemas/UploadRequestHeader.php @@ -20,7 +20,8 @@ public function getName() */ public function setName($value): self { - return $this->set('name', $value); + $this->set('name', $value); + return $this; } public function hasName(): bool @@ -30,7 +31,8 @@ public function hasName(): bool public function unsetName(): self { - return $this->remove('name'); + $this->remove('name'); + return $this; } /** @@ -46,7 +48,8 @@ public function getValue() */ public function setValue($value): self { - return $this->set('value', $value); + $this->set('value', $value); + return $this; } public function hasValue(): bool @@ -56,7 +59,8 @@ public function hasValue(): bool public function unsetValue(): self { - return $this->remove('value'); + $this->remove('value'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/Work.php b/src/GraphQL/Schemas/Work.php index 7b2eead..250850d 100644 --- a/src/GraphQL/Schemas/Work.php +++ b/src/GraphQL/Schemas/Work.php @@ -20,7 +20,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -30,7 +31,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkType() */ public function setWorkType($value): self { - return $this->set('workType', $value); + $this->set('workType', $value); + return $this; } public function hasWorkType(): bool @@ -56,7 +59,8 @@ public function hasWorkType(): bool public function unsetWorkType(): self { - return $this->remove('workType'); + $this->remove('workType'); + return $this; } /** @@ -72,7 +76,8 @@ public function getWorkStatus() */ public function setWorkStatus($value): self { - return $this->set('workStatus', $value); + $this->set('workStatus', $value); + return $this; } public function hasWorkStatus(): bool @@ -82,7 +87,8 @@ public function hasWorkStatus(): bool public function unsetWorkStatus(): self { - return $this->remove('workStatus'); + $this->remove('workStatus'); + return $this; } /** @@ -98,7 +104,8 @@ public function getFullTitle() */ public function setFullTitle($value): self { - return $this->set('fullTitle', $value); + $this->set('fullTitle', $value); + return $this; } public function hasFullTitle(): bool @@ -108,7 +115,8 @@ public function hasFullTitle(): bool public function unsetFullTitle(): self { - return $this->remove('fullTitle'); + $this->remove('fullTitle'); + return $this; } /** @@ -124,7 +132,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -134,7 +143,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -150,7 +160,8 @@ public function getSubtitle() */ public function setSubtitle($value): self { - return $this->set('subtitle', $value); + $this->set('subtitle', $value); + return $this; } public function hasSubtitle(): bool @@ -160,7 +171,8 @@ public function hasSubtitle(): bool public function unsetSubtitle(): self { - return $this->remove('subtitle'); + $this->remove('subtitle'); + return $this; } /** @@ -176,7 +188,8 @@ public function getShortAbstract() */ public function setShortAbstract($value): self { - return $this->set('shortAbstract', $value); + $this->set('shortAbstract', $value); + return $this; } public function hasShortAbstract(): bool @@ -186,7 +199,8 @@ public function hasShortAbstract(): bool public function unsetShortAbstract(): self { - return $this->remove('shortAbstract'); + $this->remove('shortAbstract'); + return $this; } /** @@ -202,7 +216,8 @@ public function getLongAbstract() */ public function setLongAbstract($value): self { - return $this->set('longAbstract', $value); + $this->set('longAbstract', $value); + return $this; } public function hasLongAbstract(): bool @@ -212,7 +227,8 @@ public function hasLongAbstract(): bool public function unsetLongAbstract(): self { - return $this->remove('longAbstract'); + $this->remove('longAbstract'); + return $this; } /** @@ -228,7 +244,8 @@ public function getTitles() */ public function setTitles($value): self { - return $this->set('titles', $value); + $this->set('titles', $value); + return $this; } public function hasTitles(): bool @@ -238,7 +255,8 @@ public function hasTitles(): bool public function unsetTitles(): self { - return $this->remove('titles'); + $this->remove('titles'); + return $this; } /** @@ -254,7 +272,8 @@ public function getAbstracts() */ public function setAbstracts($value): self { - return $this->set('abstracts', $value); + $this->set('abstracts', $value); + return $this; } public function hasAbstracts(): bool @@ -264,7 +283,8 @@ public function hasAbstracts(): bool public function unsetAbstracts(): self { - return $this->remove('abstracts'); + $this->remove('abstracts'); + return $this; } /** @@ -280,7 +300,8 @@ public function getReference() */ public function setReference($value): self { - return $this->set('reference', $value); + $this->set('reference', $value); + return $this; } public function hasReference(): bool @@ -290,7 +311,8 @@ public function hasReference(): bool public function unsetReference(): self { - return $this->remove('reference'); + $this->remove('reference'); + return $this; } /** @@ -306,7 +328,8 @@ public function getEdition() */ public function setEdition($value): self { - return $this->set('edition', $value); + $this->set('edition', $value); + return $this; } public function hasEdition(): bool @@ -316,7 +339,8 @@ public function hasEdition(): bool public function unsetEdition(): self { - return $this->remove('edition'); + $this->remove('edition'); + return $this; } /** @@ -332,7 +356,8 @@ public function getImprintId() */ public function setImprintId($value): self { - return $this->set('imprintId', $value); + $this->set('imprintId', $value); + return $this; } public function hasImprintId(): bool @@ -342,7 +367,8 @@ public function hasImprintId(): bool public function unsetImprintId(): self { - return $this->remove('imprintId'); + $this->remove('imprintId'); + return $this; } /** @@ -358,7 +384,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -368,7 +395,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -384,7 +412,8 @@ public function getPublicationDate() */ public function setPublicationDate($value): self { - return $this->set('publicationDate', $value); + $this->set('publicationDate', $value); + return $this; } public function hasPublicationDate(): bool @@ -394,7 +423,8 @@ public function hasPublicationDate(): bool public function unsetPublicationDate(): self { - return $this->remove('publicationDate'); + $this->remove('publicationDate'); + return $this; } /** @@ -410,7 +440,8 @@ public function getWithdrawnDate() */ public function setWithdrawnDate($value): self { - return $this->set('withdrawnDate', $value); + $this->set('withdrawnDate', $value); + return $this; } public function hasWithdrawnDate(): bool @@ -420,7 +451,8 @@ public function hasWithdrawnDate(): bool public function unsetWithdrawnDate(): self { - return $this->remove('withdrawnDate'); + $this->remove('withdrawnDate'); + return $this; } /** @@ -436,7 +468,8 @@ public function getPlace() */ public function setPlace($value): self { - return $this->set('place', $value); + $this->set('place', $value); + return $this; } public function hasPlace(): bool @@ -446,7 +479,8 @@ public function hasPlace(): bool public function unsetPlace(): self { - return $this->remove('place'); + $this->remove('place'); + return $this; } /** @@ -462,7 +496,8 @@ public function getPageCount() */ public function setPageCount($value): self { - return $this->set('pageCount', $value); + $this->set('pageCount', $value); + return $this; } public function hasPageCount(): bool @@ -472,7 +507,8 @@ public function hasPageCount(): bool public function unsetPageCount(): self { - return $this->remove('pageCount'); + $this->remove('pageCount'); + return $this; } /** @@ -488,7 +524,8 @@ public function getPageBreakdown() */ public function setPageBreakdown($value): self { - return $this->set('pageBreakdown', $value); + $this->set('pageBreakdown', $value); + return $this; } public function hasPageBreakdown(): bool @@ -498,7 +535,8 @@ public function hasPageBreakdown(): bool public function unsetPageBreakdown(): self { - return $this->remove('pageBreakdown'); + $this->remove('pageBreakdown'); + return $this; } /** @@ -514,7 +552,8 @@ public function getImageCount() */ public function setImageCount($value): self { - return $this->set('imageCount', $value); + $this->set('imageCount', $value); + return $this; } public function hasImageCount(): bool @@ -524,7 +563,8 @@ public function hasImageCount(): bool public function unsetImageCount(): self { - return $this->remove('imageCount'); + $this->remove('imageCount'); + return $this; } /** @@ -540,7 +580,8 @@ public function getTableCount() */ public function setTableCount($value): self { - return $this->set('tableCount', $value); + $this->set('tableCount', $value); + return $this; } public function hasTableCount(): bool @@ -550,7 +591,8 @@ public function hasTableCount(): bool public function unsetTableCount(): self { - return $this->remove('tableCount'); + $this->remove('tableCount'); + return $this; } /** @@ -566,7 +608,8 @@ public function getAudioCount() */ public function setAudioCount($value): self { - return $this->set('audioCount', $value); + $this->set('audioCount', $value); + return $this; } public function hasAudioCount(): bool @@ -576,7 +619,8 @@ public function hasAudioCount(): bool public function unsetAudioCount(): self { - return $this->remove('audioCount'); + $this->remove('audioCount'); + return $this; } /** @@ -592,7 +636,8 @@ public function getVideoCount() */ public function setVideoCount($value): self { - return $this->set('videoCount', $value); + $this->set('videoCount', $value); + return $this; } public function hasVideoCount(): bool @@ -602,7 +647,8 @@ public function hasVideoCount(): bool public function unsetVideoCount(): self { - return $this->remove('videoCount'); + $this->remove('videoCount'); + return $this; } /** @@ -618,7 +664,8 @@ public function getLicense() */ public function setLicense($value): self { - return $this->set('license', $value); + $this->set('license', $value); + return $this; } public function hasLicense(): bool @@ -628,7 +675,8 @@ public function hasLicense(): bool public function unsetLicense(): self { - return $this->remove('license'); + $this->remove('license'); + return $this; } /** @@ -644,7 +692,8 @@ public function getCopyrightHolder() */ public function setCopyrightHolder($value): self { - return $this->set('copyrightHolder', $value); + $this->set('copyrightHolder', $value); + return $this; } public function hasCopyrightHolder(): bool @@ -654,7 +703,8 @@ public function hasCopyrightHolder(): bool public function unsetCopyrightHolder(): self { - return $this->remove('copyrightHolder'); + $this->remove('copyrightHolder'); + return $this; } /** @@ -670,7 +720,8 @@ public function getLandingPage() */ public function setLandingPage($value): self { - return $this->set('landingPage', $value); + $this->set('landingPage', $value); + return $this; } public function hasLandingPage(): bool @@ -680,7 +731,8 @@ public function hasLandingPage(): bool public function unsetLandingPage(): self { - return $this->remove('landingPage'); + $this->remove('landingPage'); + return $this; } /** @@ -696,7 +748,8 @@ public function getLccn() */ public function setLccn($value): self { - return $this->set('lccn', $value); + $this->set('lccn', $value); + return $this; } public function hasLccn(): bool @@ -706,7 +759,8 @@ public function hasLccn(): bool public function unsetLccn(): self { - return $this->remove('lccn'); + $this->remove('lccn'); + return $this; } /** @@ -722,7 +776,8 @@ public function getOclc() */ public function setOclc($value): self { - return $this->set('oclc', $value); + $this->set('oclc', $value); + return $this; } public function hasOclc(): bool @@ -732,7 +787,8 @@ public function hasOclc(): bool public function unsetOclc(): self { - return $this->remove('oclc'); + $this->remove('oclc'); + return $this; } /** @@ -748,7 +804,8 @@ public function getGeneralNote() */ public function setGeneralNote($value): self { - return $this->set('generalNote', $value); + $this->set('generalNote', $value); + return $this; } public function hasGeneralNote(): bool @@ -758,7 +815,8 @@ public function hasGeneralNote(): bool public function unsetGeneralNote(): self { - return $this->remove('generalNote'); + $this->remove('generalNote'); + return $this; } /** @@ -774,7 +832,8 @@ public function getBibliographyNote() */ public function setBibliographyNote($value): self { - return $this->set('bibliographyNote', $value); + $this->set('bibliographyNote', $value); + return $this; } public function hasBibliographyNote(): bool @@ -784,7 +843,8 @@ public function hasBibliographyNote(): bool public function unsetBibliographyNote(): self { - return $this->remove('bibliographyNote'); + $this->remove('bibliographyNote'); + return $this; } /** @@ -800,7 +860,8 @@ public function getToc() */ public function setToc($value): self { - return $this->set('toc', $value); + $this->set('toc', $value); + return $this; } public function hasToc(): bool @@ -810,7 +871,8 @@ public function hasToc(): bool public function unsetToc(): self { - return $this->remove('toc'); + $this->remove('toc'); + return $this; } /** @@ -826,7 +888,8 @@ public function getResourcesDescription() */ public function setResourcesDescription($value): self { - return $this->set('resourcesDescription', $value); + $this->set('resourcesDescription', $value); + return $this; } public function hasResourcesDescription(): bool @@ -836,7 +899,8 @@ public function hasResourcesDescription(): bool public function unsetResourcesDescription(): self { - return $this->remove('resourcesDescription'); + $this->remove('resourcesDescription'); + return $this; } /** @@ -852,7 +916,8 @@ public function getCoverUrl() */ public function setCoverUrl($value): self { - return $this->set('coverUrl', $value); + $this->set('coverUrl', $value); + return $this; } public function hasCoverUrl(): bool @@ -862,7 +927,8 @@ public function hasCoverUrl(): bool public function unsetCoverUrl(): self { - return $this->remove('coverUrl'); + $this->remove('coverUrl'); + return $this; } /** @@ -878,7 +944,8 @@ public function getCoverCaption() */ public function setCoverCaption($value): self { - return $this->set('coverCaption', $value); + $this->set('coverCaption', $value); + return $this; } public function hasCoverCaption(): bool @@ -888,7 +955,8 @@ public function hasCoverCaption(): bool public function unsetCoverCaption(): self { - return $this->remove('coverCaption'); + $this->remove('coverCaption'); + return $this; } /** @@ -904,7 +972,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -914,7 +983,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -930,7 +1000,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -940,7 +1011,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -956,7 +1028,8 @@ public function getFirstPage() */ public function setFirstPage($value): self { - return $this->set('firstPage', $value); + $this->set('firstPage', $value); + return $this; } public function hasFirstPage(): bool @@ -966,7 +1039,8 @@ public function hasFirstPage(): bool public function unsetFirstPage(): self { - return $this->remove('firstPage'); + $this->remove('firstPage'); + return $this; } /** @@ -982,7 +1056,8 @@ public function getLastPage() */ public function setLastPage($value): self { - return $this->set('lastPage', $value); + $this->set('lastPage', $value); + return $this; } public function hasLastPage(): bool @@ -992,7 +1067,8 @@ public function hasLastPage(): bool public function unsetLastPage(): self { - return $this->remove('lastPage'); + $this->remove('lastPage'); + return $this; } /** @@ -1008,7 +1084,8 @@ public function getPageInterval() */ public function setPageInterval($value): self { - return $this->set('pageInterval', $value); + $this->set('pageInterval', $value); + return $this; } public function hasPageInterval(): bool @@ -1018,7 +1095,8 @@ public function hasPageInterval(): bool public function unsetPageInterval(): self { - return $this->remove('pageInterval'); + $this->remove('pageInterval'); + return $this; } /** @@ -1034,7 +1112,8 @@ public function getUpdatedAtWithRelations() */ public function setUpdatedAtWithRelations($value): self { - return $this->set('updatedAtWithRelations', $value); + $this->set('updatedAtWithRelations', $value); + return $this; } public function hasUpdatedAtWithRelations(): bool @@ -1044,7 +1123,8 @@ public function hasUpdatedAtWithRelations(): bool public function unsetUpdatedAtWithRelations(): self { - return $this->remove('updatedAtWithRelations'); + $this->remove('updatedAtWithRelations'); + return $this; } /** @@ -1060,7 +1140,8 @@ public function getImprint() */ public function setImprint($value): self { - return $this->set('imprint', $value); + $this->set('imprint', $value); + return $this; } public function hasImprint(): bool @@ -1070,7 +1151,8 @@ public function hasImprint(): bool public function unsetImprint(): self { - return $this->remove('imprint'); + $this->remove('imprint'); + return $this; } /** @@ -1086,7 +1168,8 @@ public function getContributions() */ public function setContributions($value): self { - return $this->set('contributions', $value); + $this->set('contributions', $value); + return $this; } public function hasContributions(): bool @@ -1096,7 +1179,8 @@ public function hasContributions(): bool public function unsetContributions(): self { - return $this->remove('contributions'); + $this->remove('contributions'); + return $this; } /** @@ -1112,7 +1196,8 @@ public function getLanguages() */ public function setLanguages($value): self { - return $this->set('languages', $value); + $this->set('languages', $value); + return $this; } public function hasLanguages(): bool @@ -1122,7 +1207,8 @@ public function hasLanguages(): bool public function unsetLanguages(): self { - return $this->remove('languages'); + $this->remove('languages'); + return $this; } /** @@ -1138,7 +1224,8 @@ public function getPublications() */ public function setPublications($value): self { - return $this->set('publications', $value); + $this->set('publications', $value); + return $this; } public function hasPublications(): bool @@ -1148,7 +1235,8 @@ public function hasPublications(): bool public function unsetPublications(): self { - return $this->remove('publications'); + $this->remove('publications'); + return $this; } /** @@ -1164,7 +1252,8 @@ public function getSubjects() */ public function setSubjects($value): self { - return $this->set('subjects', $value); + $this->set('subjects', $value); + return $this; } public function hasSubjects(): bool @@ -1174,7 +1263,8 @@ public function hasSubjects(): bool public function unsetSubjects(): self { - return $this->remove('subjects'); + $this->remove('subjects'); + return $this; } /** @@ -1190,7 +1280,8 @@ public function getFundings() */ public function setFundings($value): self { - return $this->set('fundings', $value); + $this->set('fundings', $value); + return $this; } public function hasFundings(): bool @@ -1200,7 +1291,8 @@ public function hasFundings(): bool public function unsetFundings(): self { - return $this->remove('fundings'); + $this->remove('fundings'); + return $this; } /** @@ -1216,7 +1308,8 @@ public function getIssues() */ public function setIssues($value): self { - return $this->set('issues', $value); + $this->set('issues', $value); + return $this; } public function hasIssues(): bool @@ -1226,7 +1319,8 @@ public function hasIssues(): bool public function unsetIssues(): self { - return $this->remove('issues'); + $this->remove('issues'); + return $this; } /** @@ -1242,7 +1336,8 @@ public function getRelations() */ public function setRelations($value): self { - return $this->set('relations', $value); + $this->set('relations', $value); + return $this; } public function hasRelations(): bool @@ -1252,7 +1347,8 @@ public function hasRelations(): bool public function unsetRelations(): self { - return $this->remove('relations'); + $this->remove('relations'); + return $this; } /** @@ -1268,7 +1364,8 @@ public function getFrontcover() */ public function setFrontcover($value): self { - return $this->set('frontcover', $value); + $this->set('frontcover', $value); + return $this; } public function hasFrontcover(): bool @@ -1278,7 +1375,8 @@ public function hasFrontcover(): bool public function unsetFrontcover(): self { - return $this->remove('frontcover'); + $this->remove('frontcover'); + return $this; } /** @@ -1294,7 +1392,8 @@ public function getReferences() */ public function setReferences($value): self { - return $this->set('references', $value); + $this->set('references', $value); + return $this; } public function hasReferences(): bool @@ -1304,7 +1403,8 @@ public function hasReferences(): bool public function unsetReferences(): self { - return $this->remove('references'); + $this->remove('references'); + return $this; } /** @@ -1320,7 +1420,8 @@ public function getAdditionalResources() */ public function setAdditionalResources($value): self { - return $this->set('additionalResources', $value); + $this->set('additionalResources', $value); + return $this; } public function hasAdditionalResources(): bool @@ -1330,7 +1431,8 @@ public function hasAdditionalResources(): bool public function unsetAdditionalResources(): self { - return $this->remove('additionalResources'); + $this->remove('additionalResources'); + return $this; } /** @@ -1346,7 +1448,8 @@ public function getAwards() */ public function setAwards($value): self { - return $this->set('awards', $value); + $this->set('awards', $value); + return $this; } public function hasAwards(): bool @@ -1356,7 +1459,8 @@ public function hasAwards(): bool public function unsetAwards(): self { - return $this->remove('awards'); + $this->remove('awards'); + return $this; } /** @@ -1372,7 +1476,8 @@ public function getEndorsements() */ public function setEndorsements($value): self { - return $this->set('endorsements', $value); + $this->set('endorsements', $value); + return $this; } public function hasEndorsements(): bool @@ -1382,7 +1487,8 @@ public function hasEndorsements(): bool public function unsetEndorsements(): self { - return $this->remove('endorsements'); + $this->remove('endorsements'); + return $this; } /** @@ -1398,7 +1504,8 @@ public function getBookReviews() */ public function setBookReviews($value): self { - return $this->set('bookReviews', $value); + $this->set('bookReviews', $value); + return $this; } public function hasBookReviews(): bool @@ -1408,7 +1515,8 @@ public function hasBookReviews(): bool public function unsetBookReviews(): self { - return $this->remove('bookReviews'); + $this->remove('bookReviews'); + return $this; } /** @@ -1424,7 +1532,8 @@ public function getFeaturedVideo() */ public function setFeaturedVideo($value): self { - return $this->set('featuredVideo', $value); + $this->set('featuredVideo', $value); + return $this; } public function hasFeaturedVideo(): bool @@ -1434,7 +1543,8 @@ public function hasFeaturedVideo(): bool public function unsetFeaturedVideo(): self { - return $this->remove('featuredVideo'); + $this->remove('featuredVideo'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/WorkFeaturedVideo.php b/src/GraphQL/Schemas/WorkFeaturedVideo.php index ced58a6..8708a2f 100644 --- a/src/GraphQL/Schemas/WorkFeaturedVideo.php +++ b/src/GraphQL/Schemas/WorkFeaturedVideo.php @@ -20,7 +20,8 @@ public function getWorkFeaturedVideoId() */ public function setWorkFeaturedVideoId($value): self { - return $this->set('workFeaturedVideoId', $value); + $this->set('workFeaturedVideoId', $value); + return $this; } public function hasWorkFeaturedVideoId(): bool @@ -30,7 +31,8 @@ public function hasWorkFeaturedVideoId(): bool public function unsetWorkFeaturedVideoId(): self { - return $this->remove('workFeaturedVideoId'); + $this->remove('workFeaturedVideoId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -108,7 +115,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -124,7 +132,8 @@ public function getWidth() */ public function setWidth($value): self { - return $this->set('width', $value); + $this->set('width', $value); + return $this; } public function hasWidth(): bool @@ -134,7 +143,8 @@ public function hasWidth(): bool public function unsetWidth(): self { - return $this->remove('width'); + $this->remove('width'); + return $this; } /** @@ -150,7 +160,8 @@ public function getHeight() */ public function setHeight($value): self { - return $this->set('height', $value); + $this->set('height', $value); + return $this; } public function hasHeight(): bool @@ -160,7 +171,8 @@ public function hasHeight(): bool public function unsetHeight(): self { - return $this->remove('height'); + $this->remove('height'); + return $this; } /** @@ -176,7 +188,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -186,7 +199,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -212,7 +227,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -228,7 +244,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -238,7 +255,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -254,7 +272,8 @@ public function getFile() */ public function setFile($value): self { - return $this->set('file', $value); + $this->set('file', $value); + return $this; } public function hasFile(): bool @@ -264,7 +283,8 @@ public function hasFile(): bool public function unsetFile(): self { - return $this->remove('file'); + $this->remove('file'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/WorkRelation.php b/src/GraphQL/Schemas/WorkRelation.php index 6fb7796..8f32dad 100644 --- a/src/GraphQL/Schemas/WorkRelation.php +++ b/src/GraphQL/Schemas/WorkRelation.php @@ -20,7 +20,8 @@ public function getWorkRelationId() */ public function setWorkRelationId($value): self { - return $this->set('workRelationId', $value); + $this->set('workRelationId', $value); + return $this; } public function hasWorkRelationId(): bool @@ -30,7 +31,8 @@ public function hasWorkRelationId(): bool public function unsetWorkRelationId(): self { - return $this->remove('workRelationId'); + $this->remove('workRelationId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getRelatorWorkId() */ public function setRelatorWorkId($value): self { - return $this->set('relatorWorkId', $value); + $this->set('relatorWorkId', $value); + return $this; } public function hasRelatorWorkId(): bool @@ -56,7 +59,8 @@ public function hasRelatorWorkId(): bool public function unsetRelatorWorkId(): self { - return $this->remove('relatorWorkId'); + $this->remove('relatorWorkId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getRelatedWorkId() */ public function setRelatedWorkId($value): self { - return $this->set('relatedWorkId', $value); + $this->set('relatedWorkId', $value); + return $this; } public function hasRelatedWorkId(): bool @@ -82,7 +87,8 @@ public function hasRelatedWorkId(): bool public function unsetRelatedWorkId(): self { - return $this->remove('relatedWorkId'); + $this->remove('relatedWorkId'); + return $this; } /** @@ -98,7 +104,8 @@ public function getRelationType() */ public function setRelationType($value): self { - return $this->set('relationType', $value); + $this->set('relationType', $value); + return $this; } public function hasRelationType(): bool @@ -108,7 +115,8 @@ public function hasRelationType(): bool public function unsetRelationType(): self { - return $this->remove('relationType'); + $this->remove('relationType'); + return $this; } /** @@ -124,7 +132,8 @@ public function getRelationOrdinal() */ public function setRelationOrdinal($value): self { - return $this->set('relationOrdinal', $value); + $this->set('relationOrdinal', $value); + return $this; } public function hasRelationOrdinal(): bool @@ -134,7 +143,8 @@ public function hasRelationOrdinal(): bool public function unsetRelationOrdinal(): self { - return $this->remove('relationOrdinal'); + $this->remove('relationOrdinal'); + return $this; } /** @@ -150,7 +160,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -160,7 +171,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -176,7 +188,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -186,7 +199,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -202,7 +216,8 @@ public function getRelatedWork() */ public function setRelatedWork($value): self { - return $this->set('relatedWork', $value); + $this->set('relatedWork', $value); + return $this; } public function hasRelatedWork(): bool @@ -212,7 +227,8 @@ public function hasRelatedWork(): bool public function unsetRelatedWork(): self { - return $this->remove('relatedWork'); + $this->remove('relatedWork'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/src/GraphQL/Schemas/WorkResource.php b/src/GraphQL/Schemas/WorkResource.php index 443ff39..bf3fa59 100644 --- a/src/GraphQL/Schemas/WorkResource.php +++ b/src/GraphQL/Schemas/WorkResource.php @@ -20,7 +20,8 @@ public function getWorkResourceId() */ public function setWorkResourceId($value): self { - return $this->set('workResourceId', $value); + $this->set('workResourceId', $value); + return $this; } public function hasWorkResourceId(): bool @@ -30,7 +31,8 @@ public function hasWorkResourceId(): bool public function unsetWorkResourceId(): self { - return $this->remove('workResourceId'); + $this->remove('workResourceId'); + return $this; } /** @@ -46,7 +48,8 @@ public function getWorkId() */ public function setWorkId($value): self { - return $this->set('workId', $value); + $this->set('workId', $value); + return $this; } public function hasWorkId(): bool @@ -56,7 +59,8 @@ public function hasWorkId(): bool public function unsetWorkId(): self { - return $this->remove('workId'); + $this->remove('workId'); + return $this; } /** @@ -72,7 +76,8 @@ public function getTitle() */ public function setTitle($value): self { - return $this->set('title', $value); + $this->set('title', $value); + return $this; } public function hasTitle(): bool @@ -82,7 +87,8 @@ public function hasTitle(): bool public function unsetTitle(): self { - return $this->remove('title'); + $this->remove('title'); + return $this; } /** @@ -98,7 +104,8 @@ public function getDescription() */ public function setDescription($value): self { - return $this->set('description', $value); + $this->set('description', $value); + return $this; } public function hasDescription(): bool @@ -108,7 +115,8 @@ public function hasDescription(): bool public function unsetDescription(): self { - return $this->remove('description'); + $this->remove('description'); + return $this; } /** @@ -124,7 +132,8 @@ public function getAttribution() */ public function setAttribution($value): self { - return $this->set('attribution', $value); + $this->set('attribution', $value); + return $this; } public function hasAttribution(): bool @@ -134,7 +143,8 @@ public function hasAttribution(): bool public function unsetAttribution(): self { - return $this->remove('attribution'); + $this->remove('attribution'); + return $this; } /** @@ -150,7 +160,8 @@ public function getResourceType() */ public function setResourceType($value): self { - return $this->set('resourceType', $value); + $this->set('resourceType', $value); + return $this; } public function hasResourceType(): bool @@ -160,7 +171,8 @@ public function hasResourceType(): bool public function unsetResourceType(): self { - return $this->remove('resourceType'); + $this->remove('resourceType'); + return $this; } /** @@ -176,7 +188,8 @@ public function getDoi() */ public function setDoi($value): self { - return $this->set('doi', $value); + $this->set('doi', $value); + return $this; } public function hasDoi(): bool @@ -186,7 +199,8 @@ public function hasDoi(): bool public function unsetDoi(): self { - return $this->remove('doi'); + $this->remove('doi'); + return $this; } /** @@ -202,7 +216,8 @@ public function getHandle() */ public function setHandle($value): self { - return $this->set('handle', $value); + $this->set('handle', $value); + return $this; } public function hasHandle(): bool @@ -212,7 +227,8 @@ public function hasHandle(): bool public function unsetHandle(): self { - return $this->remove('handle'); + $this->remove('handle'); + return $this; } /** @@ -228,7 +244,8 @@ public function getUrl() */ public function setUrl($value): self { - return $this->set('url', $value); + $this->set('url', $value); + return $this; } public function hasUrl(): bool @@ -238,7 +255,8 @@ public function hasUrl(): bool public function unsetUrl(): self { - return $this->remove('url'); + $this->remove('url'); + return $this; } /** @@ -254,7 +272,8 @@ public function getDate() */ public function setDate($value): self { - return $this->set('date', $value); + $this->set('date', $value); + return $this; } public function hasDate(): bool @@ -264,7 +283,8 @@ public function hasDate(): bool public function unsetDate(): self { - return $this->remove('date'); + $this->remove('date'); + return $this; } /** @@ -280,7 +300,8 @@ public function getResourceOrdinal() */ public function setResourceOrdinal($value): self { - return $this->set('resourceOrdinal', $value); + $this->set('resourceOrdinal', $value); + return $this; } public function hasResourceOrdinal(): bool @@ -290,7 +311,8 @@ public function hasResourceOrdinal(): bool public function unsetResourceOrdinal(): self { - return $this->remove('resourceOrdinal'); + $this->remove('resourceOrdinal'); + return $this; } /** @@ -306,7 +328,8 @@ public function getCreatedAt() */ public function setCreatedAt($value): self { - return $this->set('createdAt', $value); + $this->set('createdAt', $value); + return $this; } public function hasCreatedAt(): bool @@ -316,7 +339,8 @@ public function hasCreatedAt(): bool public function unsetCreatedAt(): self { - return $this->remove('createdAt'); + $this->remove('createdAt'); + return $this; } /** @@ -332,7 +356,8 @@ public function getUpdatedAt() */ public function setUpdatedAt($value): self { - return $this->set('updatedAt', $value); + $this->set('updatedAt', $value); + return $this; } public function hasUpdatedAt(): bool @@ -342,7 +367,8 @@ public function hasUpdatedAt(): bool public function unsetUpdatedAt(): self { - return $this->remove('updatedAt'); + $this->remove('updatedAt'); + return $this; } /** @@ -358,7 +384,8 @@ public function getWork() */ public function setWork($value): self { - return $this->set('work', $value); + $this->set('work', $value); + return $this; } public function hasWork(): bool @@ -368,7 +395,8 @@ public function hasWork(): bool public function unsetWork(): self { - return $this->remove('work'); + $this->remove('work'); + return $this; } /** @@ -384,7 +412,8 @@ public function getFile() */ public function setFile($value): self { - return $this->set('file', $value); + $this->set('file', $value); + return $this; } public function hasFile(): bool @@ -394,7 +423,8 @@ public function hasFile(): bool public function unsetFile(): self { - return $this->remove('file'); + $this->remove('file'); + return $this; } public static function definition(): ObjectTypeDefinition diff --git a/tools/GraphQLGenerator/AccessorMethodsBuilder.php b/tools/GraphQLGenerator/AccessorMethodsBuilder.php index 5c22e3a..c8b84a5 100644 --- a/tools/GraphQLGenerator/AccessorMethodsBuilder.php +++ b/tools/GraphQLGenerator/AccessorMethodsBuilder.php @@ -29,7 +29,8 @@ public function get{$methodName}() */ public function set{$methodName}(\$value): self { - return \$this->set({$fieldName}, \$value); + \$this->set({$fieldName}, \$value); + return \$this; } public function has{$methodName}(): bool @@ -39,7 +40,8 @@ public function has{$methodName}(): bool public function unset{$methodName}(): self { - return \$this->remove({$fieldName}); + \$this->remove({$fieldName}); + return \$this; } PHP; } From 93f5102af3523d75cb1dc00a4ff345f8755cfa3a Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 16:41:54 -0400 Subject: [PATCH 36/40] refactor(graphql): stop generating root schema classes --- src/GraphQL/Schemas/MutationRoot.php | 5802 -------------- src/GraphQL/Schemas/QueryRoot.php | 6652 ----------------- tests/GraphQL/GeneratorTest.php | 3 + .../GraphQLClientGenerator.php | 11 +- .../GraphQLGenerator/SchemaTypeGenerator.php | 13 +- 5 files changed, 24 insertions(+), 12457 deletions(-) delete mode 100644 src/GraphQL/Schemas/MutationRoot.php delete mode 100644 src/GraphQL/Schemas/QueryRoot.php diff --git a/src/GraphQL/Schemas/MutationRoot.php b/src/GraphQL/Schemas/MutationRoot.php deleted file mode 100644 index c0cead0..0000000 --- a/src/GraphQL/Schemas/MutationRoot.php +++ /dev/null @@ -1,5802 +0,0 @@ -get('createWork'); - } - - /** - * @param Work $value - */ - public function setCreateWork($value): self - { - $this->set('createWork', $value); - return $this; - } - - public function hasCreateWork(): bool - { - return $this->has('createWork'); - } - - public function unsetCreateWork(): self - { - $this->remove('createWork'); - return $this; - } - - /** - * @return Publisher - */ - public function getCreatePublisher() - { - return $this->get('createPublisher'); - } - - /** - * @param Publisher $value - */ - public function setCreatePublisher($value): self - { - $this->set('createPublisher', $value); - return $this; - } - - public function hasCreatePublisher(): bool - { - return $this->has('createPublisher'); - } - - public function unsetCreatePublisher(): self - { - $this->remove('createPublisher'); - return $this; - } - - /** - * @return Imprint - */ - public function getCreateImprint() - { - return $this->get('createImprint'); - } - - /** - * @param Imprint $value - */ - public function setCreateImprint($value): self - { - $this->set('createImprint', $value); - return $this; - } - - public function hasCreateImprint(): bool - { - return $this->has('createImprint'); - } - - public function unsetCreateImprint(): self - { - $this->remove('createImprint'); - return $this; - } - - /** - * @return Contributor - */ - public function getCreateContributor() - { - return $this->get('createContributor'); - } - - /** - * @param Contributor $value - */ - public function setCreateContributor($value): self - { - $this->set('createContributor', $value); - return $this; - } - - public function hasCreateContributor(): bool - { - return $this->has('createContributor'); - } - - public function unsetCreateContributor(): self - { - $this->remove('createContributor'); - return $this; - } - - /** - * @return Contribution - */ - public function getCreateContribution() - { - return $this->get('createContribution'); - } - - /** - * @param Contribution $value - */ - public function setCreateContribution($value): self - { - $this->set('createContribution', $value); - return $this; - } - - public function hasCreateContribution(): bool - { - return $this->has('createContribution'); - } - - public function unsetCreateContribution(): self - { - $this->remove('createContribution'); - return $this; - } - - /** - * @return Publication - */ - public function getCreatePublication() - { - return $this->get('createPublication'); - } - - /** - * @param Publication $value - */ - public function setCreatePublication($value): self - { - $this->set('createPublication', $value); - return $this; - } - - public function hasCreatePublication(): bool - { - return $this->has('createPublication'); - } - - public function unsetCreatePublication(): self - { - $this->remove('createPublication'); - return $this; - } - - /** - * @return Series - */ - public function getCreateSeries() - { - return $this->get('createSeries'); - } - - /** - * @param Series $value - */ - public function setCreateSeries($value): self - { - $this->set('createSeries', $value); - return $this; - } - - public function hasCreateSeries(): bool - { - return $this->has('createSeries'); - } - - public function unsetCreateSeries(): self - { - $this->remove('createSeries'); - return $this; - } - - /** - * @return Issue - */ - public function getCreateIssue() - { - return $this->get('createIssue'); - } - - /** - * @param Issue $value - */ - public function setCreateIssue($value): self - { - $this->set('createIssue', $value); - return $this; - } - - public function hasCreateIssue(): bool - { - return $this->has('createIssue'); - } - - public function unsetCreateIssue(): self - { - $this->remove('createIssue'); - return $this; - } - - /** - * @return Language - */ - public function getCreateLanguage() - { - return $this->get('createLanguage'); - } - - /** - * @param Language $value - */ - public function setCreateLanguage($value): self - { - $this->set('createLanguage', $value); - return $this; - } - - public function hasCreateLanguage(): bool - { - return $this->has('createLanguage'); - } - - public function unsetCreateLanguage(): self - { - $this->remove('createLanguage'); - return $this; - } - - /** - * @return Title - */ - public function getCreateTitle() - { - return $this->get('createTitle'); - } - - /** - * @param Title $value - */ - public function setCreateTitle($value): self - { - $this->set('createTitle', $value); - return $this; - } - - public function hasCreateTitle(): bool - { - return $this->has('createTitle'); - } - - public function unsetCreateTitle(): self - { - $this->remove('createTitle'); - return $this; - } - - /** - * @return GraphQLAbstract - */ - public function getCreateAbstract() - { - return $this->get('createAbstract'); - } - - /** - * @param GraphQLAbstract $value - */ - public function setCreateAbstract($value): self - { - $this->set('createAbstract', $value); - return $this; - } - - public function hasCreateAbstract(): bool - { - return $this->has('createAbstract'); - } - - public function unsetCreateAbstract(): self - { - $this->remove('createAbstract'); - return $this; - } - - /** - * @return Biography - */ - public function getCreateBiography() - { - return $this->get('createBiography'); - } - - /** - * @param Biography $value - */ - public function setCreateBiography($value): self - { - $this->set('createBiography', $value); - return $this; - } - - public function hasCreateBiography(): bool - { - return $this->has('createBiography'); - } - - public function unsetCreateBiography(): self - { - $this->remove('createBiography'); - return $this; - } - - /** - * @return Institution - */ - public function getCreateInstitution() - { - return $this->get('createInstitution'); - } - - /** - * @param Institution $value - */ - public function setCreateInstitution($value): self - { - $this->set('createInstitution', $value); - return $this; - } - - public function hasCreateInstitution(): bool - { - return $this->has('createInstitution'); - } - - public function unsetCreateInstitution(): self - { - $this->remove('createInstitution'); - return $this; - } - - /** - * @return Funding - */ - public function getCreateFunding() - { - return $this->get('createFunding'); - } - - /** - * @param Funding $value - */ - public function setCreateFunding($value): self - { - $this->set('createFunding', $value); - return $this; - } - - public function hasCreateFunding(): bool - { - return $this->has('createFunding'); - } - - public function unsetCreateFunding(): self - { - $this->remove('createFunding'); - return $this; - } - - /** - * @return Location - */ - public function getCreateLocation() - { - return $this->get('createLocation'); - } - - /** - * @param Location $value - */ - public function setCreateLocation($value): self - { - $this->set('createLocation', $value); - return $this; - } - - public function hasCreateLocation(): bool - { - return $this->has('createLocation'); - } - - public function unsetCreateLocation(): self - { - $this->remove('createLocation'); - return $this; - } - - /** - * @return Price - */ - public function getCreatePrice() - { - return $this->get('createPrice'); - } - - /** - * @param Price $value - */ - public function setCreatePrice($value): self - { - $this->set('createPrice', $value); - return $this; - } - - public function hasCreatePrice(): bool - { - return $this->has('createPrice'); - } - - public function unsetCreatePrice(): self - { - $this->remove('createPrice'); - return $this; - } - - /** - * @return Subject - */ - public function getCreateSubject() - { - return $this->get('createSubject'); - } - - /** - * @param Subject $value - */ - public function setCreateSubject($value): self - { - $this->set('createSubject', $value); - return $this; - } - - public function hasCreateSubject(): bool - { - return $this->has('createSubject'); - } - - public function unsetCreateSubject(): self - { - $this->remove('createSubject'); - return $this; - } - - /** - * @return Affiliation - */ - public function getCreateAffiliation() - { - return $this->get('createAffiliation'); - } - - /** - * @param Affiliation $value - */ - public function setCreateAffiliation($value): self - { - $this->set('createAffiliation', $value); - return $this; - } - - public function hasCreateAffiliation(): bool - { - return $this->has('createAffiliation'); - } - - public function unsetCreateAffiliation(): self - { - $this->remove('createAffiliation'); - return $this; - } - - /** - * @return WorkRelation - */ - public function getCreateWorkRelation() - { - return $this->get('createWorkRelation'); - } - - /** - * @param WorkRelation $value - */ - public function setCreateWorkRelation($value): self - { - $this->set('createWorkRelation', $value); - return $this; - } - - public function hasCreateWorkRelation(): bool - { - return $this->has('createWorkRelation'); - } - - public function unsetCreateWorkRelation(): self - { - $this->remove('createWorkRelation'); - return $this; - } - - /** - * @return Reference - */ - public function getCreateReference() - { - return $this->get('createReference'); - } - - /** - * @param Reference $value - */ - public function setCreateReference($value): self - { - $this->set('createReference', $value); - return $this; - } - - public function hasCreateReference(): bool - { - return $this->has('createReference'); - } - - public function unsetCreateReference(): self - { - $this->remove('createReference'); - return $this; - } - - /** - * @return WorkResource - */ - public function getCreateAdditionalResource() - { - return $this->get('createAdditionalResource'); - } - - /** - * @param WorkResource $value - */ - public function setCreateAdditionalResource($value): self - { - $this->set('createAdditionalResource', $value); - return $this; - } - - public function hasCreateAdditionalResource(): bool - { - return $this->has('createAdditionalResource'); - } - - public function unsetCreateAdditionalResource(): self - { - $this->remove('createAdditionalResource'); - return $this; - } - - /** - * @return Award - */ - public function getCreateAward() - { - return $this->get('createAward'); - } - - /** - * @param Award $value - */ - public function setCreateAward($value): self - { - $this->set('createAward', $value); - return $this; - } - - public function hasCreateAward(): bool - { - return $this->has('createAward'); - } - - public function unsetCreateAward(): self - { - $this->remove('createAward'); - return $this; - } - - /** - * @return Endorsement - */ - public function getCreateEndorsement() - { - return $this->get('createEndorsement'); - } - - /** - * @param Endorsement $value - */ - public function setCreateEndorsement($value): self - { - $this->set('createEndorsement', $value); - return $this; - } - - public function hasCreateEndorsement(): bool - { - return $this->has('createEndorsement'); - } - - public function unsetCreateEndorsement(): self - { - $this->remove('createEndorsement'); - return $this; - } - - /** - * @return BookReview - */ - public function getCreateBookReview() - { - return $this->get('createBookReview'); - } - - /** - * @param BookReview $value - */ - public function setCreateBookReview($value): self - { - $this->set('createBookReview', $value); - return $this; - } - - public function hasCreateBookReview(): bool - { - return $this->has('createBookReview'); - } - - public function unsetCreateBookReview(): self - { - $this->remove('createBookReview'); - return $this; - } - - /** - * @return WorkFeaturedVideo - */ - public function getCreateWorkFeaturedVideo() - { - return $this->get('createWorkFeaturedVideo'); - } - - /** - * @param WorkFeaturedVideo $value - */ - public function setCreateWorkFeaturedVideo($value): self - { - $this->set('createWorkFeaturedVideo', $value); - return $this; - } - - public function hasCreateWorkFeaturedVideo(): bool - { - return $this->has('createWorkFeaturedVideo'); - } - - public function unsetCreateWorkFeaturedVideo(): self - { - $this->remove('createWorkFeaturedVideo'); - return $this; - } - - /** - * @return Contact - */ - public function getCreateContact() - { - return $this->get('createContact'); - } - - /** - * @param Contact $value - */ - public function setCreateContact($value): self - { - $this->set('createContact', $value); - return $this; - } - - public function hasCreateContact(): bool - { - return $this->has('createContact'); - } - - public function unsetCreateContact(): self - { - $this->remove('createContact'); - return $this; - } - - /** - * @return Work - */ - public function getUpdateWork() - { - return $this->get('updateWork'); - } - - /** - * @param Work $value - */ - public function setUpdateWork($value): self - { - $this->set('updateWork', $value); - return $this; - } - - public function hasUpdateWork(): bool - { - return $this->has('updateWork'); - } - - public function unsetUpdateWork(): self - { - $this->remove('updateWork'); - return $this; - } - - /** - * @return Publisher - */ - public function getUpdatePublisher() - { - return $this->get('updatePublisher'); - } - - /** - * @param Publisher $value - */ - public function setUpdatePublisher($value): self - { - $this->set('updatePublisher', $value); - return $this; - } - - public function hasUpdatePublisher(): bool - { - return $this->has('updatePublisher'); - } - - public function unsetUpdatePublisher(): self - { - $this->remove('updatePublisher'); - return $this; - } - - /** - * @return Imprint - */ - public function getUpdateImprint() - { - return $this->get('updateImprint'); - } - - /** - * @param Imprint $value - */ - public function setUpdateImprint($value): self - { - $this->set('updateImprint', $value); - return $this; - } - - public function hasUpdateImprint(): bool - { - return $this->has('updateImprint'); - } - - public function unsetUpdateImprint(): self - { - $this->remove('updateImprint'); - return $this; - } - - /** - * @return Contributor - */ - public function getUpdateContributor() - { - return $this->get('updateContributor'); - } - - /** - * @param Contributor $value - */ - public function setUpdateContributor($value): self - { - $this->set('updateContributor', $value); - return $this; - } - - public function hasUpdateContributor(): bool - { - return $this->has('updateContributor'); - } - - public function unsetUpdateContributor(): self - { - $this->remove('updateContributor'); - return $this; - } - - /** - * @return Contribution - */ - public function getUpdateContribution() - { - return $this->get('updateContribution'); - } - - /** - * @param Contribution $value - */ - public function setUpdateContribution($value): self - { - $this->set('updateContribution', $value); - return $this; - } - - public function hasUpdateContribution(): bool - { - return $this->has('updateContribution'); - } - - public function unsetUpdateContribution(): self - { - $this->remove('updateContribution'); - return $this; - } - - /** - * @return Publication - */ - public function getUpdatePublication() - { - return $this->get('updatePublication'); - } - - /** - * @param Publication $value - */ - public function setUpdatePublication($value): self - { - $this->set('updatePublication', $value); - return $this; - } - - public function hasUpdatePublication(): bool - { - return $this->has('updatePublication'); - } - - public function unsetUpdatePublication(): self - { - $this->remove('updatePublication'); - return $this; - } - - /** - * @return Series - */ - public function getUpdateSeries() - { - return $this->get('updateSeries'); - } - - /** - * @param Series $value - */ - public function setUpdateSeries($value): self - { - $this->set('updateSeries', $value); - return $this; - } - - public function hasUpdateSeries(): bool - { - return $this->has('updateSeries'); - } - - public function unsetUpdateSeries(): self - { - $this->remove('updateSeries'); - return $this; - } - - /** - * @return Issue - */ - public function getUpdateIssue() - { - return $this->get('updateIssue'); - } - - /** - * @param Issue $value - */ - public function setUpdateIssue($value): self - { - $this->set('updateIssue', $value); - return $this; - } - - public function hasUpdateIssue(): bool - { - return $this->has('updateIssue'); - } - - public function unsetUpdateIssue(): self - { - $this->remove('updateIssue'); - return $this; - } - - /** - * @return Language - */ - public function getUpdateLanguage() - { - return $this->get('updateLanguage'); - } - - /** - * @param Language $value - */ - public function setUpdateLanguage($value): self - { - $this->set('updateLanguage', $value); - return $this; - } - - public function hasUpdateLanguage(): bool - { - return $this->has('updateLanguage'); - } - - public function unsetUpdateLanguage(): self - { - $this->remove('updateLanguage'); - return $this; - } - - /** - * @return Institution - */ - public function getUpdateInstitution() - { - return $this->get('updateInstitution'); - } - - /** - * @param Institution $value - */ - public function setUpdateInstitution($value): self - { - $this->set('updateInstitution', $value); - return $this; - } - - public function hasUpdateInstitution(): bool - { - return $this->has('updateInstitution'); - } - - public function unsetUpdateInstitution(): self - { - $this->remove('updateInstitution'); - return $this; - } - - /** - * @return Funding - */ - public function getUpdateFunding() - { - return $this->get('updateFunding'); - } - - /** - * @param Funding $value - */ - public function setUpdateFunding($value): self - { - $this->set('updateFunding', $value); - return $this; - } - - public function hasUpdateFunding(): bool - { - return $this->has('updateFunding'); - } - - public function unsetUpdateFunding(): self - { - $this->remove('updateFunding'); - return $this; - } - - /** - * @return Location - */ - public function getUpdateLocation() - { - return $this->get('updateLocation'); - } - - /** - * @param Location $value - */ - public function setUpdateLocation($value): self - { - $this->set('updateLocation', $value); - return $this; - } - - public function hasUpdateLocation(): bool - { - return $this->has('updateLocation'); - } - - public function unsetUpdateLocation(): self - { - $this->remove('updateLocation'); - return $this; - } - - /** - * @return Price - */ - public function getUpdatePrice() - { - return $this->get('updatePrice'); - } - - /** - * @param Price $value - */ - public function setUpdatePrice($value): self - { - $this->set('updatePrice', $value); - return $this; - } - - public function hasUpdatePrice(): bool - { - return $this->has('updatePrice'); - } - - public function unsetUpdatePrice(): self - { - $this->remove('updatePrice'); - return $this; - } - - /** - * @return Subject - */ - public function getUpdateSubject() - { - return $this->get('updateSubject'); - } - - /** - * @param Subject $value - */ - public function setUpdateSubject($value): self - { - $this->set('updateSubject', $value); - return $this; - } - - public function hasUpdateSubject(): bool - { - return $this->has('updateSubject'); - } - - public function unsetUpdateSubject(): self - { - $this->remove('updateSubject'); - return $this; - } - - /** - * @return Affiliation - */ - public function getUpdateAffiliation() - { - return $this->get('updateAffiliation'); - } - - /** - * @param Affiliation $value - */ - public function setUpdateAffiliation($value): self - { - $this->set('updateAffiliation', $value); - return $this; - } - - public function hasUpdateAffiliation(): bool - { - return $this->has('updateAffiliation'); - } - - public function unsetUpdateAffiliation(): self - { - $this->remove('updateAffiliation'); - return $this; - } - - /** - * @return WorkRelation - */ - public function getUpdateWorkRelation() - { - return $this->get('updateWorkRelation'); - } - - /** - * @param WorkRelation $value - */ - public function setUpdateWorkRelation($value): self - { - $this->set('updateWorkRelation', $value); - return $this; - } - - public function hasUpdateWorkRelation(): bool - { - return $this->has('updateWorkRelation'); - } - - public function unsetUpdateWorkRelation(): self - { - $this->remove('updateWorkRelation'); - return $this; - } - - /** - * @return Reference - */ - public function getUpdateReference() - { - return $this->get('updateReference'); - } - - /** - * @param Reference $value - */ - public function setUpdateReference($value): self - { - $this->set('updateReference', $value); - return $this; - } - - public function hasUpdateReference(): bool - { - return $this->has('updateReference'); - } - - public function unsetUpdateReference(): self - { - $this->remove('updateReference'); - return $this; - } - - /** - * @return WorkResource - */ - public function getUpdateAdditionalResource() - { - return $this->get('updateAdditionalResource'); - } - - /** - * @param WorkResource $value - */ - public function setUpdateAdditionalResource($value): self - { - $this->set('updateAdditionalResource', $value); - return $this; - } - - public function hasUpdateAdditionalResource(): bool - { - return $this->has('updateAdditionalResource'); - } - - public function unsetUpdateAdditionalResource(): self - { - $this->remove('updateAdditionalResource'); - return $this; - } - - /** - * @return Award - */ - public function getUpdateAward() - { - return $this->get('updateAward'); - } - - /** - * @param Award $value - */ - public function setUpdateAward($value): self - { - $this->set('updateAward', $value); - return $this; - } - - public function hasUpdateAward(): bool - { - return $this->has('updateAward'); - } - - public function unsetUpdateAward(): self - { - $this->remove('updateAward'); - return $this; - } - - /** - * @return Endorsement - */ - public function getUpdateEndorsement() - { - return $this->get('updateEndorsement'); - } - - /** - * @param Endorsement $value - */ - public function setUpdateEndorsement($value): self - { - $this->set('updateEndorsement', $value); - return $this; - } - - public function hasUpdateEndorsement(): bool - { - return $this->has('updateEndorsement'); - } - - public function unsetUpdateEndorsement(): self - { - $this->remove('updateEndorsement'); - return $this; - } - - /** - * @return BookReview - */ - public function getUpdateBookReview() - { - return $this->get('updateBookReview'); - } - - /** - * @param BookReview $value - */ - public function setUpdateBookReview($value): self - { - $this->set('updateBookReview', $value); - return $this; - } - - public function hasUpdateBookReview(): bool - { - return $this->has('updateBookReview'); - } - - public function unsetUpdateBookReview(): self - { - $this->remove('updateBookReview'); - return $this; - } - - /** - * @return WorkFeaturedVideo - */ - public function getUpdateWorkFeaturedVideo() - { - return $this->get('updateWorkFeaturedVideo'); - } - - /** - * @param WorkFeaturedVideo $value - */ - public function setUpdateWorkFeaturedVideo($value): self - { - $this->set('updateWorkFeaturedVideo', $value); - return $this; - } - - public function hasUpdateWorkFeaturedVideo(): bool - { - return $this->has('updateWorkFeaturedVideo'); - } - - public function unsetUpdateWorkFeaturedVideo(): self - { - $this->remove('updateWorkFeaturedVideo'); - return $this; - } - - /** - * @return Contact - */ - public function getUpdateContact() - { - return $this->get('updateContact'); - } - - /** - * @param Contact $value - */ - public function setUpdateContact($value): self - { - $this->set('updateContact', $value); - return $this; - } - - public function hasUpdateContact(): bool - { - return $this->has('updateContact'); - } - - public function unsetUpdateContact(): self - { - $this->remove('updateContact'); - return $this; - } - - /** - * @return Title - */ - public function getUpdateTitle() - { - return $this->get('updateTitle'); - } - - /** - * @param Title $value - */ - public function setUpdateTitle($value): self - { - $this->set('updateTitle', $value); - return $this; - } - - public function hasUpdateTitle(): bool - { - return $this->has('updateTitle'); - } - - public function unsetUpdateTitle(): self - { - $this->remove('updateTitle'); - return $this; - } - - /** - * @return GraphQLAbstract - */ - public function getUpdateAbstract() - { - return $this->get('updateAbstract'); - } - - /** - * @param GraphQLAbstract $value - */ - public function setUpdateAbstract($value): self - { - $this->set('updateAbstract', $value); - return $this; - } - - public function hasUpdateAbstract(): bool - { - return $this->has('updateAbstract'); - } - - public function unsetUpdateAbstract(): self - { - $this->remove('updateAbstract'); - return $this; - } - - /** - * @return Biography - */ - public function getUpdateBiography() - { - return $this->get('updateBiography'); - } - - /** - * @param Biography $value - */ - public function setUpdateBiography($value): self - { - $this->set('updateBiography', $value); - return $this; - } - - public function hasUpdateBiography(): bool - { - return $this->has('updateBiography'); - } - - public function unsetUpdateBiography(): self - { - $this->remove('updateBiography'); - return $this; - } - - /** - * @return Work - */ - public function getDeleteWork() - { - return $this->get('deleteWork'); - } - - /** - * @param Work $value - */ - public function setDeleteWork($value): self - { - $this->set('deleteWork', $value); - return $this; - } - - public function hasDeleteWork(): bool - { - return $this->has('deleteWork'); - } - - public function unsetDeleteWork(): self - { - $this->remove('deleteWork'); - return $this; - } - - /** - * @return Publisher - */ - public function getDeletePublisher() - { - return $this->get('deletePublisher'); - } - - /** - * @param Publisher $value - */ - public function setDeletePublisher($value): self - { - $this->set('deletePublisher', $value); - return $this; - } - - public function hasDeletePublisher(): bool - { - return $this->has('deletePublisher'); - } - - public function unsetDeletePublisher(): self - { - $this->remove('deletePublisher'); - return $this; - } - - /** - * @return Imprint - */ - public function getDeleteImprint() - { - return $this->get('deleteImprint'); - } - - /** - * @param Imprint $value - */ - public function setDeleteImprint($value): self - { - $this->set('deleteImprint', $value); - return $this; - } - - public function hasDeleteImprint(): bool - { - return $this->has('deleteImprint'); - } - - public function unsetDeleteImprint(): self - { - $this->remove('deleteImprint'); - return $this; - } - - /** - * @return Contributor - */ - public function getDeleteContributor() - { - return $this->get('deleteContributor'); - } - - /** - * @param Contributor $value - */ - public function setDeleteContributor($value): self - { - $this->set('deleteContributor', $value); - return $this; - } - - public function hasDeleteContributor(): bool - { - return $this->has('deleteContributor'); - } - - public function unsetDeleteContributor(): self - { - $this->remove('deleteContributor'); - return $this; - } - - /** - * @return Contribution - */ - public function getDeleteContribution() - { - return $this->get('deleteContribution'); - } - - /** - * @param Contribution $value - */ - public function setDeleteContribution($value): self - { - $this->set('deleteContribution', $value); - return $this; - } - - public function hasDeleteContribution(): bool - { - return $this->has('deleteContribution'); - } - - public function unsetDeleteContribution(): self - { - $this->remove('deleteContribution'); - return $this; - } - - /** - * @return Publication - */ - public function getDeletePublication() - { - return $this->get('deletePublication'); - } - - /** - * @param Publication $value - */ - public function setDeletePublication($value): self - { - $this->set('deletePublication', $value); - return $this; - } - - public function hasDeletePublication(): bool - { - return $this->has('deletePublication'); - } - - public function unsetDeletePublication(): self - { - $this->remove('deletePublication'); - return $this; - } - - /** - * @return Series - */ - public function getDeleteSeries() - { - return $this->get('deleteSeries'); - } - - /** - * @param Series $value - */ - public function setDeleteSeries($value): self - { - $this->set('deleteSeries', $value); - return $this; - } - - public function hasDeleteSeries(): bool - { - return $this->has('deleteSeries'); - } - - public function unsetDeleteSeries(): self - { - $this->remove('deleteSeries'); - return $this; - } - - /** - * @return Issue - */ - public function getDeleteIssue() - { - return $this->get('deleteIssue'); - } - - /** - * @param Issue $value - */ - public function setDeleteIssue($value): self - { - $this->set('deleteIssue', $value); - return $this; - } - - public function hasDeleteIssue(): bool - { - return $this->has('deleteIssue'); - } - - public function unsetDeleteIssue(): self - { - $this->remove('deleteIssue'); - return $this; - } - - /** - * @return Language - */ - public function getDeleteLanguage() - { - return $this->get('deleteLanguage'); - } - - /** - * @param Language $value - */ - public function setDeleteLanguage($value): self - { - $this->set('deleteLanguage', $value); - return $this; - } - - public function hasDeleteLanguage(): bool - { - return $this->has('deleteLanguage'); - } - - public function unsetDeleteLanguage(): self - { - $this->remove('deleteLanguage'); - return $this; - } - - /** - * @return Title - */ - public function getDeleteTitle() - { - return $this->get('deleteTitle'); - } - - /** - * @param Title $value - */ - public function setDeleteTitle($value): self - { - $this->set('deleteTitle', $value); - return $this; - } - - public function hasDeleteTitle(): bool - { - return $this->has('deleteTitle'); - } - - public function unsetDeleteTitle(): self - { - $this->remove('deleteTitle'); - return $this; - } - - /** - * @return Institution - */ - public function getDeleteInstitution() - { - return $this->get('deleteInstitution'); - } - - /** - * @param Institution $value - */ - public function setDeleteInstitution($value): self - { - $this->set('deleteInstitution', $value); - return $this; - } - - public function hasDeleteInstitution(): bool - { - return $this->has('deleteInstitution'); - } - - public function unsetDeleteInstitution(): self - { - $this->remove('deleteInstitution'); - return $this; - } - - /** - * @return Funding - */ - public function getDeleteFunding() - { - return $this->get('deleteFunding'); - } - - /** - * @param Funding $value - */ - public function setDeleteFunding($value): self - { - $this->set('deleteFunding', $value); - return $this; - } - - public function hasDeleteFunding(): bool - { - return $this->has('deleteFunding'); - } - - public function unsetDeleteFunding(): self - { - $this->remove('deleteFunding'); - return $this; - } - - /** - * @return Location - */ - public function getDeleteLocation() - { - return $this->get('deleteLocation'); - } - - /** - * @param Location $value - */ - public function setDeleteLocation($value): self - { - $this->set('deleteLocation', $value); - return $this; - } - - public function hasDeleteLocation(): bool - { - return $this->has('deleteLocation'); - } - - public function unsetDeleteLocation(): self - { - $this->remove('deleteLocation'); - return $this; - } - - /** - * @return Price - */ - public function getDeletePrice() - { - return $this->get('deletePrice'); - } - - /** - * @param Price $value - */ - public function setDeletePrice($value): self - { - $this->set('deletePrice', $value); - return $this; - } - - public function hasDeletePrice(): bool - { - return $this->has('deletePrice'); - } - - public function unsetDeletePrice(): self - { - $this->remove('deletePrice'); - return $this; - } - - /** - * @return Subject - */ - public function getDeleteSubject() - { - return $this->get('deleteSubject'); - } - - /** - * @param Subject $value - */ - public function setDeleteSubject($value): self - { - $this->set('deleteSubject', $value); - return $this; - } - - public function hasDeleteSubject(): bool - { - return $this->has('deleteSubject'); - } - - public function unsetDeleteSubject(): self - { - $this->remove('deleteSubject'); - return $this; - } - - /** - * @return Affiliation - */ - public function getDeleteAffiliation() - { - return $this->get('deleteAffiliation'); - } - - /** - * @param Affiliation $value - */ - public function setDeleteAffiliation($value): self - { - $this->set('deleteAffiliation', $value); - return $this; - } - - public function hasDeleteAffiliation(): bool - { - return $this->has('deleteAffiliation'); - } - - public function unsetDeleteAffiliation(): self - { - $this->remove('deleteAffiliation'); - return $this; - } - - /** - * @return WorkRelation - */ - public function getDeleteWorkRelation() - { - return $this->get('deleteWorkRelation'); - } - - /** - * @param WorkRelation $value - */ - public function setDeleteWorkRelation($value): self - { - $this->set('deleteWorkRelation', $value); - return $this; - } - - public function hasDeleteWorkRelation(): bool - { - return $this->has('deleteWorkRelation'); - } - - public function unsetDeleteWorkRelation(): self - { - $this->remove('deleteWorkRelation'); - return $this; - } - - /** - * @return Reference - */ - public function getDeleteReference() - { - return $this->get('deleteReference'); - } - - /** - * @param Reference $value - */ - public function setDeleteReference($value): self - { - $this->set('deleteReference', $value); - return $this; - } - - public function hasDeleteReference(): bool - { - return $this->has('deleteReference'); - } - - public function unsetDeleteReference(): self - { - $this->remove('deleteReference'); - return $this; - } - - /** - * @return WorkResource - */ - public function getDeleteAdditionalResource() - { - return $this->get('deleteAdditionalResource'); - } - - /** - * @param WorkResource $value - */ - public function setDeleteAdditionalResource($value): self - { - $this->set('deleteAdditionalResource', $value); - return $this; - } - - public function hasDeleteAdditionalResource(): bool - { - return $this->has('deleteAdditionalResource'); - } - - public function unsetDeleteAdditionalResource(): self - { - $this->remove('deleteAdditionalResource'); - return $this; - } - - /** - * @return Award - */ - public function getDeleteAward() - { - return $this->get('deleteAward'); - } - - /** - * @param Award $value - */ - public function setDeleteAward($value): self - { - $this->set('deleteAward', $value); - return $this; - } - - public function hasDeleteAward(): bool - { - return $this->has('deleteAward'); - } - - public function unsetDeleteAward(): self - { - $this->remove('deleteAward'); - return $this; - } - - /** - * @return Endorsement - */ - public function getDeleteEndorsement() - { - return $this->get('deleteEndorsement'); - } - - /** - * @param Endorsement $value - */ - public function setDeleteEndorsement($value): self - { - $this->set('deleteEndorsement', $value); - return $this; - } - - public function hasDeleteEndorsement(): bool - { - return $this->has('deleteEndorsement'); - } - - public function unsetDeleteEndorsement(): self - { - $this->remove('deleteEndorsement'); - return $this; - } - - /** - * @return BookReview - */ - public function getDeleteBookReview() - { - return $this->get('deleteBookReview'); - } - - /** - * @param BookReview $value - */ - public function setDeleteBookReview($value): self - { - $this->set('deleteBookReview', $value); - return $this; - } - - public function hasDeleteBookReview(): bool - { - return $this->has('deleteBookReview'); - } - - public function unsetDeleteBookReview(): self - { - $this->remove('deleteBookReview'); - return $this; - } - - /** - * @return WorkFeaturedVideo - */ - public function getDeleteWorkFeaturedVideo() - { - return $this->get('deleteWorkFeaturedVideo'); - } - - /** - * @param WorkFeaturedVideo $value - */ - public function setDeleteWorkFeaturedVideo($value): self - { - $this->set('deleteWorkFeaturedVideo', $value); - return $this; - } - - public function hasDeleteWorkFeaturedVideo(): bool - { - return $this->has('deleteWorkFeaturedVideo'); - } - - public function unsetDeleteWorkFeaturedVideo(): self - { - $this->remove('deleteWorkFeaturedVideo'); - return $this; - } - - /** - * @return GraphQLAbstract - */ - public function getDeleteAbstract() - { - return $this->get('deleteAbstract'); - } - - /** - * @param GraphQLAbstract $value - */ - public function setDeleteAbstract($value): self - { - $this->set('deleteAbstract', $value); - return $this; - } - - public function hasDeleteAbstract(): bool - { - return $this->has('deleteAbstract'); - } - - public function unsetDeleteAbstract(): self - { - $this->remove('deleteAbstract'); - return $this; - } - - /** - * @return Biography - */ - public function getDeleteBiography() - { - return $this->get('deleteBiography'); - } - - /** - * @param Biography $value - */ - public function setDeleteBiography($value): self - { - $this->set('deleteBiography', $value); - return $this; - } - - public function hasDeleteBiography(): bool - { - return $this->has('deleteBiography'); - } - - public function unsetDeleteBiography(): self - { - $this->remove('deleteBiography'); - return $this; - } - - /** - * @return Affiliation - */ - public function getMoveAffiliation() - { - return $this->get('moveAffiliation'); - } - - /** - * @param Affiliation $value - */ - public function setMoveAffiliation($value): self - { - $this->set('moveAffiliation', $value); - return $this; - } - - public function hasMoveAffiliation(): bool - { - return $this->has('moveAffiliation'); - } - - public function unsetMoveAffiliation(): self - { - $this->remove('moveAffiliation'); - return $this; - } - - /** - * @return Contribution - */ - public function getMoveContribution() - { - return $this->get('moveContribution'); - } - - /** - * @param Contribution $value - */ - public function setMoveContribution($value): self - { - $this->set('moveContribution', $value); - return $this; - } - - public function hasMoveContribution(): bool - { - return $this->has('moveContribution'); - } - - public function unsetMoveContribution(): self - { - $this->remove('moveContribution'); - return $this; - } - - /** - * @return Issue - */ - public function getMoveIssue() - { - return $this->get('moveIssue'); - } - - /** - * @param Issue $value - */ - public function setMoveIssue($value): self - { - $this->set('moveIssue', $value); - return $this; - } - - public function hasMoveIssue(): bool - { - return $this->has('moveIssue'); - } - - public function unsetMoveIssue(): self - { - $this->remove('moveIssue'); - return $this; - } - - /** - * @return Reference - */ - public function getMoveReference() - { - return $this->get('moveReference'); - } - - /** - * @param Reference $value - */ - public function setMoveReference($value): self - { - $this->set('moveReference', $value); - return $this; - } - - public function hasMoveReference(): bool - { - return $this->has('moveReference'); - } - - public function unsetMoveReference(): self - { - $this->remove('moveReference'); - return $this; - } - - /** - * @return WorkResource - */ - public function getMoveAdditionalResource() - { - return $this->get('moveAdditionalResource'); - } - - /** - * @param WorkResource $value - */ - public function setMoveAdditionalResource($value): self - { - $this->set('moveAdditionalResource', $value); - return $this; - } - - public function hasMoveAdditionalResource(): bool - { - return $this->has('moveAdditionalResource'); - } - - public function unsetMoveAdditionalResource(): self - { - $this->remove('moveAdditionalResource'); - return $this; - } - - /** - * @return Award - */ - public function getMoveAward() - { - return $this->get('moveAward'); - } - - /** - * @param Award $value - */ - public function setMoveAward($value): self - { - $this->set('moveAward', $value); - return $this; - } - - public function hasMoveAward(): bool - { - return $this->has('moveAward'); - } - - public function unsetMoveAward(): self - { - $this->remove('moveAward'); - return $this; - } - - /** - * @return Endorsement - */ - public function getMoveEndorsement() - { - return $this->get('moveEndorsement'); - } - - /** - * @param Endorsement $value - */ - public function setMoveEndorsement($value): self - { - $this->set('moveEndorsement', $value); - return $this; - } - - public function hasMoveEndorsement(): bool - { - return $this->has('moveEndorsement'); - } - - public function unsetMoveEndorsement(): self - { - $this->remove('moveEndorsement'); - return $this; - } - - /** - * @return BookReview - */ - public function getMoveBookReview() - { - return $this->get('moveBookReview'); - } - - /** - * @param BookReview $value - */ - public function setMoveBookReview($value): self - { - $this->set('moveBookReview', $value); - return $this; - } - - public function hasMoveBookReview(): bool - { - return $this->has('moveBookReview'); - } - - public function unsetMoveBookReview(): self - { - $this->remove('moveBookReview'); - return $this; - } - - /** - * @return Subject - */ - public function getMoveSubject() - { - return $this->get('moveSubject'); - } - - /** - * @param Subject $value - */ - public function setMoveSubject($value): self - { - $this->set('moveSubject', $value); - return $this; - } - - public function hasMoveSubject(): bool - { - return $this->has('moveSubject'); - } - - public function unsetMoveSubject(): self - { - $this->remove('moveSubject'); - return $this; - } - - /** - * @return WorkRelation - */ - public function getMoveWorkRelation() - { - return $this->get('moveWorkRelation'); - } - - /** - * @param WorkRelation $value - */ - public function setMoveWorkRelation($value): self - { - $this->set('moveWorkRelation', $value); - return $this; - } - - public function hasMoveWorkRelation(): bool - { - return $this->has('moveWorkRelation'); - } - - public function unsetMoveWorkRelation(): self - { - $this->remove('moveWorkRelation'); - return $this; - } - - /** - * @return FileUploadResponse - */ - public function getInitPublicationFileUpload() - { - return $this->get('initPublicationFileUpload'); - } - - /** - * @param FileUploadResponse $value - */ - public function setInitPublicationFileUpload($value): self - { - $this->set('initPublicationFileUpload', $value); - return $this; - } - - public function hasInitPublicationFileUpload(): bool - { - return $this->has('initPublicationFileUpload'); - } - - public function unsetInitPublicationFileUpload(): self - { - $this->remove('initPublicationFileUpload'); - return $this; - } - - /** - * @return FileUploadResponse - */ - public function getInitFrontcoverFileUpload() - { - return $this->get('initFrontcoverFileUpload'); - } - - /** - * @param FileUploadResponse $value - */ - public function setInitFrontcoverFileUpload($value): self - { - $this->set('initFrontcoverFileUpload', $value); - return $this; - } - - public function hasInitFrontcoverFileUpload(): bool - { - return $this->has('initFrontcoverFileUpload'); - } - - public function unsetInitFrontcoverFileUpload(): self - { - $this->remove('initFrontcoverFileUpload'); - return $this; - } - - /** - * @return FileUploadResponse - */ - public function getInitAdditionalResourceFileUpload() - { - return $this->get('initAdditionalResourceFileUpload'); - } - - /** - * @param FileUploadResponse $value - */ - public function setInitAdditionalResourceFileUpload($value): self - { - $this->set('initAdditionalResourceFileUpload', $value); - return $this; - } - - public function hasInitAdditionalResourceFileUpload(): bool - { - return $this->has('initAdditionalResourceFileUpload'); - } - - public function unsetInitAdditionalResourceFileUpload(): self - { - $this->remove('initAdditionalResourceFileUpload'); - return $this; - } - - /** - * @return FileUploadResponse - */ - public function getInitWorkFeaturedVideoFileUpload() - { - return $this->get('initWorkFeaturedVideoFileUpload'); - } - - /** - * @param FileUploadResponse $value - */ - public function setInitWorkFeaturedVideoFileUpload($value): self - { - $this->set('initWorkFeaturedVideoFileUpload', $value); - return $this; - } - - public function hasInitWorkFeaturedVideoFileUpload(): bool - { - return $this->has('initWorkFeaturedVideoFileUpload'); - } - - public function unsetInitWorkFeaturedVideoFileUpload(): self - { - $this->remove('initWorkFeaturedVideoFileUpload'); - return $this; - } - - /** - * @return File - */ - public function getCompleteFileUpload() - { - return $this->get('completeFileUpload'); - } - - /** - * @param File $value - */ - public function setCompleteFileUpload($value): self - { - $this->set('completeFileUpload', $value); - return $this; - } - - public function hasCompleteFileUpload(): bool - { - return $this->has('completeFileUpload'); - } - - public function unsetCompleteFileUpload(): self - { - $this->remove('completeFileUpload'); - return $this; - } - - /** - * @return Contact - */ - public function getDeleteContact() - { - return $this->get('deleteContact'); - } - - /** - * @param Contact $value - */ - public function setDeleteContact($value): self - { - $this->set('deleteContact', $value); - return $this; - } - - public function hasDeleteContact(): bool - { - return $this->has('deleteContact'); - } - - public function unsetDeleteContact(): self - { - $this->remove('deleteContact'); - return $this; - } - - public static function definition(): ObjectTypeDefinition - { - return new ObjectTypeDefinition('MutationRoot', [ - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createWork', - 'description' => 'Create a new work with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for work to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewWork', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createPublisher', - 'description' => 'Create a new publisher with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for publisher to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewPublisher', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publisher', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createImprint', - 'description' => 'Create a new imprint with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for imprint to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewImprint', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Imprint', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createContributor', - 'description' => 'Create a new contributor with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for contributor to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewContributor', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contributor', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createContribution', - 'description' => 'Create a new contribution with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for contribution to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewContribution', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createPublication', - 'description' => 'Create a new publication with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for publication to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewPublication', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publication', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createSeries', - 'description' => 'Create a new series with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the series description', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for series to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewSeries', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Series', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createIssue', - 'description' => 'Create a new issue with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for issue to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewIssue', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createLanguage', - 'description' => 'Create a new language with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for language to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewLanguage', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Language', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createTitle', - 'description' => 'Create a new title with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the title', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for title to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewTitle', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Title', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createAbstract', - 'description' => 'Create a new abstract with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the abstract', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for abstract to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewAbstract', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Abstract', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createBiography', - 'description' => 'Create a new biography with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the biography', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for biography to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewBiography', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Biography', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createInstitution', - 'description' => 'Create a new institution with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for institution to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewInstitution', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Institution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createFunding', - 'description' => 'Create a new funding with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for funding to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewFunding', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Funding', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createLocation', - 'description' => 'Create a new location with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for location to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewLocation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Location', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createPrice', - 'description' => 'Create a new price with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for price to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewPrice', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Price', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createSubject', - 'description' => 'Create a new subject with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for subject to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewSubject', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createAffiliation', - 'description' => 'Create a new affiliation with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for affiliation to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewAffiliation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createWorkRelation', - 'description' => 'Create a new work relation with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for work relation to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewWorkRelation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkRelation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createReference', - 'description' => 'Create a new reference with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for reference to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewReference', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createAdditionalResource', - 'description' => 'Create a new additional resource with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the additional resource text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for additional resource to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewAdditionalResource', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createAward', - 'description' => 'Create a new award with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the award text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for award to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewAward', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createEndorsement', - 'description' => 'Create a new endorsement with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the endorsement rich-text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for endorsement to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewEndorsement', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createBookReview', - 'description' => 'Create a new book review with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the book review text field', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values for book review to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewBookReview', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createWorkFeaturedVideo', - 'description' => 'Create a new featured video with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for featured video to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewWorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'createContact', - 'description' => 'Create a new contact with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values for contact to be created', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewContact', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contact', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateWork', - 'description' => 'Update an existing work with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing work', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchWork', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updatePublisher', - 'description' => 'Update an existing publisher with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing publisher', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchPublisher', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publisher', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateImprint', - 'description' => 'Update an existing imprint with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing imprint', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchImprint', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Imprint', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateContributor', - 'description' => 'Update an existing contributor with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing contributor', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchContributor', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contributor', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateContribution', - 'description' => 'Update an existing contribution with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing contribution', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchContribution', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updatePublication', - 'description' => 'Update an existing publication with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing publication', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchPublication', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publication', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateSeries', - 'description' => 'Update an existing series with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the series description', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing series', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchSeries', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Series', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateIssue', - 'description' => 'Update an existing issue with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing issue', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchIssue', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateLanguage', - 'description' => 'Update an existing language with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing language', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchLanguage', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Language', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateInstitution', - 'description' => 'Update an existing institution with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing institution', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchInstitution', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Institution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateFunding', - 'description' => 'Update an existing funding with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing funding', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchFunding', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Funding', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateLocation', - 'description' => 'Update an existing location with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing location', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchLocation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Location', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updatePrice', - 'description' => 'Update an existing price with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing price', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchPrice', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Price', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateSubject', - 'description' => 'Update an existing subject with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing subject', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchSubject', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateAffiliation', - 'description' => 'Update an existing affiliation with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing affiliation', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchAffiliation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateWorkRelation', - 'description' => 'Update an existing work relation with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing work relation', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchWorkRelation', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkRelation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateReference', - 'description' => 'Update an existing reference with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing reference', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchReference', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateAdditionalResource', - 'description' => 'Update an existing additional resource with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the additional resource text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing additional resource', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchAdditionalResource', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateAward', - 'description' => 'Update an existing award with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the award text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing award', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchAward', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateEndorsement', - 'description' => 'Update an existing endorsement with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the endorsement rich-text fields', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing endorsement', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchEndorsement', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateBookReview', - 'description' => 'Update an existing book review with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the book review text field', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing book review', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchBookReview', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateWorkFeaturedVideo', - 'description' => 'Update an existing featured video with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing featured video', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchWorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateContact', - 'description' => 'Update an existing contact with the specified values', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Values to apply to existing contact', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchContact', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contact', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateTitle', - 'description' => 'Update an existing title with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the title', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing title', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchTitle', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Title', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateAbstract', - 'description' => 'Update an existing abstract with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the abstract', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing abstract', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchAbstract', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Abstract', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'updateBiography', - 'description' => 'Update an existing biography with the specified values', - 'args' => [ - [ - 'name' => 'markupFormat', - 'description' => 'The markup format of the biography', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'data', - 'description' => 'Values to apply to existing biography', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PatchBiography', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Biography', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteWork', - 'description' => 'Delete a single work using its ID', - 'args' => [ - [ - 'name' => 'workId', - 'description' => 'Thoth ID of work to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deletePublisher', - 'description' => 'Delete a single publisher using its ID', - 'args' => [ - [ - 'name' => 'publisherId', - 'description' => 'Thoth ID of publisher to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publisher', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteImprint', - 'description' => 'Delete a single imprint using its ID', - 'args' => [ - [ - 'name' => 'imprintId', - 'description' => 'Thoth ID of imprint to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Imprint', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteContributor', - 'description' => 'Delete a single contributor using its ID', - 'args' => [ - [ - 'name' => 'contributorId', - 'description' => 'Thoth ID of contributor to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contributor', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteContribution', - 'description' => 'Delete a single contribution using its ID', - 'args' => [ - [ - 'name' => 'contributionId', - 'description' => 'Thoth ID of contribution to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deletePublication', - 'description' => 'Delete a single publication using its ID', - 'args' => [ - [ - 'name' => 'publicationId', - 'description' => 'Thoth ID of publication to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publication', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteSeries', - 'description' => 'Delete a single series using its ID', - 'args' => [ - [ - 'name' => 'seriesId', - 'description' => 'Thoth ID of series to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Series', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteIssue', - 'description' => 'Delete a single issue using its ID', - 'args' => [ - [ - 'name' => 'issueId', - 'description' => 'Thoth ID of issue to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteLanguage', - 'description' => 'Delete a single language using its ID', - 'args' => [ - [ - 'name' => 'languageId', - 'description' => 'Thoth ID of language to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Language', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteTitle', - 'description' => 'Delete a single title using its ID', - 'args' => [ - [ - 'name' => 'titleId', - 'description' => 'Thoth ID of title to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Title', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteInstitution', - 'description' => 'Delete a single institution using its ID', - 'args' => [ - [ - 'name' => 'institutionId', - 'description' => 'Thoth ID of institution to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Institution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteFunding', - 'description' => 'Delete a single funding using its ID', - 'args' => [ - [ - 'name' => 'fundingId', - 'description' => 'Thoth ID of funding to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Funding', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteLocation', - 'description' => 'Delete a single location using its ID', - 'args' => [ - [ - 'name' => 'locationId', - 'description' => 'Thoth ID of location to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Location', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deletePrice', - 'description' => 'Delete a single price using its ID', - 'args' => [ - [ - 'name' => 'priceId', - 'description' => 'Thoth ID of price to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Price', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteSubject', - 'description' => 'Delete a single subject using its ID', - 'args' => [ - [ - 'name' => 'subjectId', - 'description' => 'Thoth ID of subject to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteAffiliation', - 'description' => 'Delete a single affiliation using its ID', - 'args' => [ - [ - 'name' => 'affiliationId', - 'description' => 'Thoth ID of affiliation to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteWorkRelation', - 'description' => 'Delete a single work relation using its ID', - 'args' => [ - [ - 'name' => 'workRelationId', - 'description' => 'Thoth ID of work relation to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkRelation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteReference', - 'description' => 'Delete a single reference using its ID', - 'args' => [ - [ - 'name' => 'referenceId', - 'description' => 'Thoth ID of reference to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteAdditionalResource', - 'description' => 'Delete a single additional resource using its ID', - 'args' => [ - [ - 'name' => 'additionalResourceId', - 'description' => 'Thoth ID of additional resource to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteAward', - 'description' => 'Delete a single award using its ID', - 'args' => [ - [ - 'name' => 'awardId', - 'description' => 'Thoth ID of award to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteEndorsement', - 'description' => 'Delete a single endorsement using its ID', - 'args' => [ - [ - 'name' => 'endorsementId', - 'description' => 'Thoth ID of endorsement to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteBookReview', - 'description' => 'Delete a single book review using its ID', - 'args' => [ - [ - 'name' => 'bookReviewId', - 'description' => 'Thoth ID of book review to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteWorkFeaturedVideo', - 'description' => 'Delete a single featured video using its ID', - 'args' => [ - [ - 'name' => 'workFeaturedVideoId', - 'description' => 'Thoth ID of featured video to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteAbstract', - 'description' => 'Delete a single abstract using its ID', - 'args' => [ - [ - 'name' => 'abstractId', - 'description' => 'Thoth ID of abstract to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Abstract', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteBiography', - 'description' => 'Delete a single biography using its ID', - 'args' => [ - [ - 'name' => 'biographyId', - 'description' => 'Thoth ID of biography to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Biography', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveAffiliation', - 'description' => 'Change the ordering of an affiliation within a contribution', - 'args' => [ - [ - 'name' => 'affiliationId', - 'description' => 'Thoth ID of affiliation to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which affiliation should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveContribution', - 'description' => 'Change the ordering of a contribution within a work', - 'args' => [ - [ - 'name' => 'contributionId', - 'description' => 'Thoth ID of contribution to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which contribution should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveIssue', - 'description' => 'Change the ordering of an issue within a series', - 'args' => [ - [ - 'name' => 'issueId', - 'description' => 'Thoth ID of issue to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which issue should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveReference', - 'description' => 'Change the ordering of a reference within a work', - 'args' => [ - [ - 'name' => 'referenceId', - 'description' => 'Thoth ID of reference to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which reference should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveAdditionalResource', - 'description' => 'Change the ordering of an additional resource within a work', - 'args' => [ - [ - 'name' => 'additionalResourceId', - 'description' => 'Thoth ID of additional resource to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which additional resource should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveAward', - 'description' => 'Change the ordering of an award within a work', - 'args' => [ - [ - 'name' => 'awardId', - 'description' => 'Thoth ID of award to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which award should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveEndorsement', - 'description' => 'Change the ordering of an endorsement within a work', - 'args' => [ - [ - 'name' => 'endorsementId', - 'description' => 'Thoth ID of endorsement to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which endorsement should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveBookReview', - 'description' => 'Change the ordering of a book review within a work', - 'args' => [ - [ - 'name' => 'bookReviewId', - 'description' => 'Thoth ID of book review to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which book review should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveSubject', - 'description' => 'Change the ordering of a subject within a work', - 'args' => [ - [ - 'name' => 'subjectId', - 'description' => 'Thoth ID of subject to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which subject should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'moveWorkRelation', - 'description' => 'Change the ordering of a work relation within a work', - 'args' => [ - [ - 'name' => 'workRelationId', - 'description' => 'Thoth ID of work relation to be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'newOrdinal', - 'description' => 'Ordinal representing position to which work relation should be moved', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkRelation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'initPublicationFileUpload', - 'description' => 'Start uploading a publication file (e.g. PDF, EPUB, XML) for a given publication. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Input for starting a publication file upload', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewPublicationFileUpload', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'FileUploadResponse', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'initFrontcoverFileUpload', - 'description' => 'Start uploading a front cover image for a given work. Returns an upload session ID, a presigned S3 PUT URL, and required PUT headers.', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Input for starting a front cover upload', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewFrontcoverFileUpload', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'FileUploadResponse', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'initAdditionalResourceFileUpload', - 'description' => 'Start uploading a file for an additional resource. Supported resource types include AUDIO, VIDEO, IMAGE, DOCUMENT, DATASET, and SPREADSHEET.', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Input for starting an additional resource upload', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewAdditionalResourceFileUpload', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'FileUploadResponse', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'initWorkFeaturedVideoFileUpload', - 'description' => 'Start uploading a hosted featured video for a work. The uploaded file is promoted to a DOI-scoped resource path.', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Input for starting a featured video upload', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'NewWorkFeaturedVideoFileUpload', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'FileUploadResponse', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'completeFileUpload', - 'description' => 'Complete a file upload, validate it, and promote it to its final DOI-based location.', - 'args' => [ - [ - 'name' => 'data', - 'description' => 'Input for completing a file upload', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'CompleteFileUpload', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'File', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'deleteContact', - 'description' => 'Delete a single contact using its ID', - 'args' => [ - [ - 'name' => 'contactId', - 'description' => 'Thoth ID of contact to be deleted', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contact', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]) - ]); - } -} diff --git a/src/GraphQL/Schemas/QueryRoot.php b/src/GraphQL/Schemas/QueryRoot.php deleted file mode 100644 index d40c6a8..0000000 --- a/src/GraphQL/Schemas/QueryRoot.php +++ /dev/null @@ -1,6652 +0,0 @@ -get('works'); - } - - /** - * @param Work[] $value - */ - public function setWorks($value): self - { - $this->set('works', $value); - return $this; - } - - public function hasWorks(): bool - { - return $this->has('works'); - } - - public function unsetWorks(): self - { - $this->remove('works'); - return $this; - } - - /** - * @return Work - */ - public function getWork() - { - return $this->get('work'); - } - - /** - * @param Work $value - */ - public function setWork($value): self - { - $this->set('work', $value); - return $this; - } - - public function hasWork(): bool - { - return $this->has('work'); - } - - public function unsetWork(): self - { - $this->remove('work'); - return $this; - } - - /** - * @return Work - */ - public function getWorkByDoi() - { - return $this->get('workByDoi'); - } - - /** - * @param Work $value - */ - public function setWorkByDoi($value): self - { - $this->set('workByDoi', $value); - return $this; - } - - public function hasWorkByDoi(): bool - { - return $this->has('workByDoi'); - } - - public function unsetWorkByDoi(): self - { - $this->remove('workByDoi'); - return $this; - } - - /** - * @return int - */ - public function getWorkCount() - { - return $this->get('workCount'); - } - - /** - * @param int $value - */ - public function setWorkCount($value): self - { - $this->set('workCount', $value); - return $this; - } - - public function hasWorkCount(): bool - { - return $this->has('workCount'); - } - - public function unsetWorkCount(): self - { - $this->remove('workCount'); - return $this; - } - - /** - * @return Work[] - */ - public function getBooks() - { - return $this->get('books'); - } - - /** - * @param Work[] $value - */ - public function setBooks($value): self - { - $this->set('books', $value); - return $this; - } - - public function hasBooks(): bool - { - return $this->has('books'); - } - - public function unsetBooks(): self - { - $this->remove('books'); - return $this; - } - - /** - * @return Work - */ - public function getBookByDoi() - { - return $this->get('bookByDoi'); - } - - /** - * @param Work $value - */ - public function setBookByDoi($value): self - { - $this->set('bookByDoi', $value); - return $this; - } - - public function hasBookByDoi(): bool - { - return $this->has('bookByDoi'); - } - - public function unsetBookByDoi(): self - { - $this->remove('bookByDoi'); - return $this; - } - - /** - * @return int - */ - public function getBookCount() - { - return $this->get('bookCount'); - } - - /** - * @param int $value - */ - public function setBookCount($value): self - { - $this->set('bookCount', $value); - return $this; - } - - public function hasBookCount(): bool - { - return $this->has('bookCount'); - } - - public function unsetBookCount(): self - { - $this->remove('bookCount'); - return $this; - } - - /** - * @return Work[] - */ - public function getChapters() - { - return $this->get('chapters'); - } - - /** - * @param Work[] $value - */ - public function setChapters($value): self - { - $this->set('chapters', $value); - return $this; - } - - public function hasChapters(): bool - { - return $this->has('chapters'); - } - - public function unsetChapters(): self - { - $this->remove('chapters'); - return $this; - } - - /** - * @return Work - */ - public function getChapterByDoi() - { - return $this->get('chapterByDoi'); - } - - /** - * @param Work $value - */ - public function setChapterByDoi($value): self - { - $this->set('chapterByDoi', $value); - return $this; - } - - public function hasChapterByDoi(): bool - { - return $this->has('chapterByDoi'); - } - - public function unsetChapterByDoi(): self - { - $this->remove('chapterByDoi'); - return $this; - } - - /** - * @return int - */ - public function getChapterCount() - { - return $this->get('chapterCount'); - } - - /** - * @param int $value - */ - public function setChapterCount($value): self - { - $this->set('chapterCount', $value); - return $this; - } - - public function hasChapterCount(): bool - { - return $this->has('chapterCount'); - } - - public function unsetChapterCount(): self - { - $this->remove('chapterCount'); - return $this; - } - - /** - * @return Publication[] - */ - public function getPublications() - { - return $this->get('publications'); - } - - /** - * @param Publication[] $value - */ - public function setPublications($value): self - { - $this->set('publications', $value); - return $this; - } - - public function hasPublications(): bool - { - return $this->has('publications'); - } - - public function unsetPublications(): self - { - $this->remove('publications'); - return $this; - } - - /** - * @return Publication - */ - public function getPublication() - { - return $this->get('publication'); - } - - /** - * @param Publication $value - */ - public function setPublication($value): self - { - $this->set('publication', $value); - return $this; - } - - public function hasPublication(): bool - { - return $this->has('publication'); - } - - public function unsetPublication(): self - { - $this->remove('publication'); - return $this; - } - - /** - * @return File - */ - public function getFile() - { - return $this->get('file'); - } - - /** - * @param File $value - */ - public function setFile($value): self - { - $this->set('file', $value); - return $this; - } - - public function hasFile(): bool - { - return $this->has('file'); - } - - public function unsetFile(): self - { - $this->remove('file'); - return $this; - } - - /** - * @return int - */ - public function getPublicationCount() - { - return $this->get('publicationCount'); - } - - /** - * @param int $value - */ - public function setPublicationCount($value): self - { - $this->set('publicationCount', $value); - return $this; - } - - public function hasPublicationCount(): bool - { - return $this->has('publicationCount'); - } - - public function unsetPublicationCount(): self - { - $this->remove('publicationCount'); - return $this; - } - - /** - * @return Publisher[] - */ - public function getPublishers() - { - return $this->get('publishers'); - } - - /** - * @param Publisher[] $value - */ - public function setPublishers($value): self - { - $this->set('publishers', $value); - return $this; - } - - public function hasPublishers(): bool - { - return $this->has('publishers'); - } - - public function unsetPublishers(): self - { - $this->remove('publishers'); - return $this; - } - - /** - * @return Publisher - */ - public function getPublisher() - { - return $this->get('publisher'); - } - - /** - * @param Publisher $value - */ - public function setPublisher($value): self - { - $this->set('publisher', $value); - return $this; - } - - public function hasPublisher(): bool - { - return $this->has('publisher'); - } - - public function unsetPublisher(): self - { - $this->remove('publisher'); - return $this; - } - - /** - * @return int - */ - public function getPublisherCount() - { - return $this->get('publisherCount'); - } - - /** - * @param int $value - */ - public function setPublisherCount($value): self - { - $this->set('publisherCount', $value); - return $this; - } - - public function hasPublisherCount(): bool - { - return $this->has('publisherCount'); - } - - public function unsetPublisherCount(): self - { - $this->remove('publisherCount'); - return $this; - } - - /** - * @return Imprint[] - */ - public function getImprints() - { - return $this->get('imprints'); - } - - /** - * @param Imprint[] $value - */ - public function setImprints($value): self - { - $this->set('imprints', $value); - return $this; - } - - public function hasImprints(): bool - { - return $this->has('imprints'); - } - - public function unsetImprints(): self - { - $this->remove('imprints'); - return $this; - } - - /** - * @return Imprint - */ - public function getImprint() - { - return $this->get('imprint'); - } - - /** - * @param Imprint $value - */ - public function setImprint($value): self - { - $this->set('imprint', $value); - return $this; - } - - public function hasImprint(): bool - { - return $this->has('imprint'); - } - - public function unsetImprint(): self - { - $this->remove('imprint'); - return $this; - } - - /** - * @return int - */ - public function getImprintCount() - { - return $this->get('imprintCount'); - } - - /** - * @param int $value - */ - public function setImprintCount($value): self - { - $this->set('imprintCount', $value); - return $this; - } - - public function hasImprintCount(): bool - { - return $this->has('imprintCount'); - } - - public function unsetImprintCount(): self - { - $this->remove('imprintCount'); - return $this; - } - - /** - * @return Contributor[] - */ - public function getContributors() - { - return $this->get('contributors'); - } - - /** - * @param Contributor[] $value - */ - public function setContributors($value): self - { - $this->set('contributors', $value); - return $this; - } - - public function hasContributors(): bool - { - return $this->has('contributors'); - } - - public function unsetContributors(): self - { - $this->remove('contributors'); - return $this; - } - - /** - * @return Contributor - */ - public function getContributor() - { - return $this->get('contributor'); - } - - /** - * @param Contributor $value - */ - public function setContributor($value): self - { - $this->set('contributor', $value); - return $this; - } - - public function hasContributor(): bool - { - return $this->has('contributor'); - } - - public function unsetContributor(): self - { - $this->remove('contributor'); - return $this; - } - - /** - * @return int - */ - public function getContributorCount() - { - return $this->get('contributorCount'); - } - - /** - * @param int $value - */ - public function setContributorCount($value): self - { - $this->set('contributorCount', $value); - return $this; - } - - public function hasContributorCount(): bool - { - return $this->has('contributorCount'); - } - - public function unsetContributorCount(): self - { - $this->remove('contributorCount'); - return $this; - } - - /** - * @return Contribution[] - */ - public function getContributions() - { - return $this->get('contributions'); - } - - /** - * @param Contribution[] $value - */ - public function setContributions($value): self - { - $this->set('contributions', $value); - return $this; - } - - public function hasContributions(): bool - { - return $this->has('contributions'); - } - - public function unsetContributions(): self - { - $this->remove('contributions'); - return $this; - } - - /** - * @return Contribution - */ - public function getContribution() - { - return $this->get('contribution'); - } - - /** - * @param Contribution $value - */ - public function setContribution($value): self - { - $this->set('contribution', $value); - return $this; - } - - public function hasContribution(): bool - { - return $this->has('contribution'); - } - - public function unsetContribution(): self - { - $this->remove('contribution'); - return $this; - } - - /** - * @return int - */ - public function getContributionCount() - { - return $this->get('contributionCount'); - } - - /** - * @param int $value - */ - public function setContributionCount($value): self - { - $this->set('contributionCount', $value); - return $this; - } - - public function hasContributionCount(): bool - { - return $this->has('contributionCount'); - } - - public function unsetContributionCount(): self - { - $this->remove('contributionCount'); - return $this; - } - - /** - * @return Series[] - */ - public function getSerieses() - { - return $this->get('serieses'); - } - - /** - * @param Series[] $value - */ - public function setSerieses($value): self - { - $this->set('serieses', $value); - return $this; - } - - public function hasSerieses(): bool - { - return $this->has('serieses'); - } - - public function unsetSerieses(): self - { - $this->remove('serieses'); - return $this; - } - - /** - * @return Series - */ - public function getSeries() - { - return $this->get('series'); - } - - /** - * @param Series $value - */ - public function setSeries($value): self - { - $this->set('series', $value); - return $this; - } - - public function hasSeries(): bool - { - return $this->has('series'); - } - - public function unsetSeries(): self - { - $this->remove('series'); - return $this; - } - - /** - * @return int - */ - public function getSeriesCount() - { - return $this->get('seriesCount'); - } - - /** - * @param int $value - */ - public function setSeriesCount($value): self - { - $this->set('seriesCount', $value); - return $this; - } - - public function hasSeriesCount(): bool - { - return $this->has('seriesCount'); - } - - public function unsetSeriesCount(): self - { - $this->remove('seriesCount'); - return $this; - } - - /** - * @return Issue[] - */ - public function getIssues() - { - return $this->get('issues'); - } - - /** - * @param Issue[] $value - */ - public function setIssues($value): self - { - $this->set('issues', $value); - return $this; - } - - public function hasIssues(): bool - { - return $this->has('issues'); - } - - public function unsetIssues(): self - { - $this->remove('issues'); - return $this; - } - - /** - * @return Issue - */ - public function getIssue() - { - return $this->get('issue'); - } - - /** - * @param Issue $value - */ - public function setIssue($value): self - { - $this->set('issue', $value); - return $this; - } - - public function hasIssue(): bool - { - return $this->has('issue'); - } - - public function unsetIssue(): self - { - $this->remove('issue'); - return $this; - } - - /** - * @return int - */ - public function getIssueCount() - { - return $this->get('issueCount'); - } - - /** - * @param int $value - */ - public function setIssueCount($value): self - { - $this->set('issueCount', $value); - return $this; - } - - public function hasIssueCount(): bool - { - return $this->has('issueCount'); - } - - public function unsetIssueCount(): self - { - $this->remove('issueCount'); - return $this; - } - - /** - * @return Language[] - */ - public function getLanguages() - { - return $this->get('languages'); - } - - /** - * @param Language[] $value - */ - public function setLanguages($value): self - { - $this->set('languages', $value); - return $this; - } - - public function hasLanguages(): bool - { - return $this->has('languages'); - } - - public function unsetLanguages(): self - { - $this->remove('languages'); - return $this; - } - - /** - * @return Language - */ - public function getLanguage() - { - return $this->get('language'); - } - - /** - * @param Language $value - */ - public function setLanguage($value): self - { - $this->set('language', $value); - return $this; - } - - public function hasLanguage(): bool - { - return $this->has('language'); - } - - public function unsetLanguage(): self - { - $this->remove('language'); - return $this; - } - - /** - * @return int - */ - public function getLanguageCount() - { - return $this->get('languageCount'); - } - - /** - * @param int $value - */ - public function setLanguageCount($value): self - { - $this->set('languageCount', $value); - return $this; - } - - public function hasLanguageCount(): bool - { - return $this->has('languageCount'); - } - - public function unsetLanguageCount(): self - { - $this->remove('languageCount'); - return $this; - } - - /** - * @return Location[] - */ - public function getLocations() - { - return $this->get('locations'); - } - - /** - * @param Location[] $value - */ - public function setLocations($value): self - { - $this->set('locations', $value); - return $this; - } - - public function hasLocations(): bool - { - return $this->has('locations'); - } - - public function unsetLocations(): self - { - $this->remove('locations'); - return $this; - } - - /** - * @return Location - */ - public function getLocation() - { - return $this->get('location'); - } - - /** - * @param Location $value - */ - public function setLocation($value): self - { - $this->set('location', $value); - return $this; - } - - public function hasLocation(): bool - { - return $this->has('location'); - } - - public function unsetLocation(): self - { - $this->remove('location'); - return $this; - } - - /** - * @return int - */ - public function getLocationCount() - { - return $this->get('locationCount'); - } - - /** - * @param int $value - */ - public function setLocationCount($value): self - { - $this->set('locationCount', $value); - return $this; - } - - public function hasLocationCount(): bool - { - return $this->has('locationCount'); - } - - public function unsetLocationCount(): self - { - $this->remove('locationCount'); - return $this; - } - - /** - * @return Price[] - */ - public function getPrices() - { - return $this->get('prices'); - } - - /** - * @param Price[] $value - */ - public function setPrices($value): self - { - $this->set('prices', $value); - return $this; - } - - public function hasPrices(): bool - { - return $this->has('prices'); - } - - public function unsetPrices(): self - { - $this->remove('prices'); - return $this; - } - - /** - * @return Price - */ - public function getPrice() - { - return $this->get('price'); - } - - /** - * @param Price $value - */ - public function setPrice($value): self - { - $this->set('price', $value); - return $this; - } - - public function hasPrice(): bool - { - return $this->has('price'); - } - - public function unsetPrice(): self - { - $this->remove('price'); - return $this; - } - - /** - * @return int - */ - public function getPriceCount() - { - return $this->get('priceCount'); - } - - /** - * @param int $value - */ - public function setPriceCount($value): self - { - $this->set('priceCount', $value); - return $this; - } - - public function hasPriceCount(): bool - { - return $this->has('priceCount'); - } - - public function unsetPriceCount(): self - { - $this->remove('priceCount'); - return $this; - } - - /** - * @return Subject[] - */ - public function getSubjects() - { - return $this->get('subjects'); - } - - /** - * @param Subject[] $value - */ - public function setSubjects($value): self - { - $this->set('subjects', $value); - return $this; - } - - public function hasSubjects(): bool - { - return $this->has('subjects'); - } - - public function unsetSubjects(): self - { - $this->remove('subjects'); - return $this; - } - - /** - * @return Subject - */ - public function getSubject() - { - return $this->get('subject'); - } - - /** - * @param Subject $value - */ - public function setSubject($value): self - { - $this->set('subject', $value); - return $this; - } - - public function hasSubject(): bool - { - return $this->has('subject'); - } - - public function unsetSubject(): self - { - $this->remove('subject'); - return $this; - } - - /** - * @return int - */ - public function getSubjectCount() - { - return $this->get('subjectCount'); - } - - /** - * @param int $value - */ - public function setSubjectCount($value): self - { - $this->set('subjectCount', $value); - return $this; - } - - public function hasSubjectCount(): bool - { - return $this->has('subjectCount'); - } - - public function unsetSubjectCount(): self - { - $this->remove('subjectCount'); - return $this; - } - - /** - * @return Institution[] - */ - public function getInstitutions() - { - return $this->get('institutions'); - } - - /** - * @param Institution[] $value - */ - public function setInstitutions($value): self - { - $this->set('institutions', $value); - return $this; - } - - public function hasInstitutions(): bool - { - return $this->has('institutions'); - } - - public function unsetInstitutions(): self - { - $this->remove('institutions'); - return $this; - } - - /** - * @return Institution - */ - public function getInstitution() - { - return $this->get('institution'); - } - - /** - * @param Institution $value - */ - public function setInstitution($value): self - { - $this->set('institution', $value); - return $this; - } - - public function hasInstitution(): bool - { - return $this->has('institution'); - } - - public function unsetInstitution(): self - { - $this->remove('institution'); - return $this; - } - - /** - * @return int - */ - public function getInstitutionCount() - { - return $this->get('institutionCount'); - } - - /** - * @param int $value - */ - public function setInstitutionCount($value): self - { - $this->set('institutionCount', $value); - return $this; - } - - public function hasInstitutionCount(): bool - { - return $this->has('institutionCount'); - } - - public function unsetInstitutionCount(): self - { - $this->remove('institutionCount'); - return $this; - } - - /** - * @return Funding[] - */ - public function getFundings() - { - return $this->get('fundings'); - } - - /** - * @param Funding[] $value - */ - public function setFundings($value): self - { - $this->set('fundings', $value); - return $this; - } - - public function hasFundings(): bool - { - return $this->has('fundings'); - } - - public function unsetFundings(): self - { - $this->remove('fundings'); - return $this; - } - - /** - * @return Funding - */ - public function getFunding() - { - return $this->get('funding'); - } - - /** - * @param Funding $value - */ - public function setFunding($value): self - { - $this->set('funding', $value); - return $this; - } - - public function hasFunding(): bool - { - return $this->has('funding'); - } - - public function unsetFunding(): self - { - $this->remove('funding'); - return $this; - } - - /** - * @return int - */ - public function getFundingCount() - { - return $this->get('fundingCount'); - } - - /** - * @param int $value - */ - public function setFundingCount($value): self - { - $this->set('fundingCount', $value); - return $this; - } - - public function hasFundingCount(): bool - { - return $this->has('fundingCount'); - } - - public function unsetFundingCount(): self - { - $this->remove('fundingCount'); - return $this; - } - - /** - * @return Affiliation[] - */ - public function getAffiliations() - { - return $this->get('affiliations'); - } - - /** - * @param Affiliation[] $value - */ - public function setAffiliations($value): self - { - $this->set('affiliations', $value); - return $this; - } - - public function hasAffiliations(): bool - { - return $this->has('affiliations'); - } - - public function unsetAffiliations(): self - { - $this->remove('affiliations'); - return $this; - } - - /** - * @return Affiliation - */ - public function getAffiliation() - { - return $this->get('affiliation'); - } - - /** - * @param Affiliation $value - */ - public function setAffiliation($value): self - { - $this->set('affiliation', $value); - return $this; - } - - public function hasAffiliation(): bool - { - return $this->has('affiliation'); - } - - public function unsetAffiliation(): self - { - $this->remove('affiliation'); - return $this; - } - - /** - * @return int - */ - public function getAffiliationCount() - { - return $this->get('affiliationCount'); - } - - /** - * @param int $value - */ - public function setAffiliationCount($value): self - { - $this->set('affiliationCount', $value); - return $this; - } - - public function hasAffiliationCount(): bool - { - return $this->has('affiliationCount'); - } - - public function unsetAffiliationCount(): self - { - $this->remove('affiliationCount'); - return $this; - } - - /** - * @return Reference[] - */ - public function getReferences() - { - return $this->get('references'); - } - - /** - * @param Reference[] $value - */ - public function setReferences($value): self - { - $this->set('references', $value); - return $this; - } - - public function hasReferences(): bool - { - return $this->has('references'); - } - - public function unsetReferences(): self - { - $this->remove('references'); - return $this; - } - - /** - * @return Reference - */ - public function getReference() - { - return $this->get('reference'); - } - - /** - * @param Reference $value - */ - public function setReference($value): self - { - $this->set('reference', $value); - return $this; - } - - public function hasReference(): bool - { - return $this->has('reference'); - } - - public function unsetReference(): self - { - $this->remove('reference'); - return $this; - } - - /** - * @return int - */ - public function getReferenceCount() - { - return $this->get('referenceCount'); - } - - /** - * @param int $value - */ - public function setReferenceCount($value): self - { - $this->set('referenceCount', $value); - return $this; - } - - public function hasReferenceCount(): bool - { - return $this->has('referenceCount'); - } - - public function unsetReferenceCount(): self - { - $this->remove('referenceCount'); - return $this; - } - - /** - * @return WorkResource[] - */ - public function getAdditionalResources() - { - return $this->get('additionalResources'); - } - - /** - * @param WorkResource[] $value - */ - public function setAdditionalResources($value): self - { - $this->set('additionalResources', $value); - return $this; - } - - public function hasAdditionalResources(): bool - { - return $this->has('additionalResources'); - } - - public function unsetAdditionalResources(): self - { - $this->remove('additionalResources'); - return $this; - } - - /** - * @return WorkResource - */ - public function getAdditionalResource() - { - return $this->get('additionalResource'); - } - - /** - * @param WorkResource $value - */ - public function setAdditionalResource($value): self - { - $this->set('additionalResource', $value); - return $this; - } - - public function hasAdditionalResource(): bool - { - return $this->has('additionalResource'); - } - - public function unsetAdditionalResource(): self - { - $this->remove('additionalResource'); - return $this; - } - - /** - * @return int - */ - public function getAdditionalResourceCount() - { - return $this->get('additionalResourceCount'); - } - - /** - * @param int $value - */ - public function setAdditionalResourceCount($value): self - { - $this->set('additionalResourceCount', $value); - return $this; - } - - public function hasAdditionalResourceCount(): bool - { - return $this->has('additionalResourceCount'); - } - - public function unsetAdditionalResourceCount(): self - { - $this->remove('additionalResourceCount'); - return $this; - } - - /** - * @return Award[] - */ - public function getAwards() - { - return $this->get('awards'); - } - - /** - * @param Award[] $value - */ - public function setAwards($value): self - { - $this->set('awards', $value); - return $this; - } - - public function hasAwards(): bool - { - return $this->has('awards'); - } - - public function unsetAwards(): self - { - $this->remove('awards'); - return $this; - } - - /** - * @return Award - */ - public function getAward() - { - return $this->get('award'); - } - - /** - * @param Award $value - */ - public function setAward($value): self - { - $this->set('award', $value); - return $this; - } - - public function hasAward(): bool - { - return $this->has('award'); - } - - public function unsetAward(): self - { - $this->remove('award'); - return $this; - } - - /** - * @return int - */ - public function getAwardCount() - { - return $this->get('awardCount'); - } - - /** - * @param int $value - */ - public function setAwardCount($value): self - { - $this->set('awardCount', $value); - return $this; - } - - public function hasAwardCount(): bool - { - return $this->has('awardCount'); - } - - public function unsetAwardCount(): self - { - $this->remove('awardCount'); - return $this; - } - - /** - * @return Endorsement[] - */ - public function getEndorsements() - { - return $this->get('endorsements'); - } - - /** - * @param Endorsement[] $value - */ - public function setEndorsements($value): self - { - $this->set('endorsements', $value); - return $this; - } - - public function hasEndorsements(): bool - { - return $this->has('endorsements'); - } - - public function unsetEndorsements(): self - { - $this->remove('endorsements'); - return $this; - } - - /** - * @return Endorsement - */ - public function getEndorsement() - { - return $this->get('endorsement'); - } - - /** - * @param Endorsement $value - */ - public function setEndorsement($value): self - { - $this->set('endorsement', $value); - return $this; - } - - public function hasEndorsement(): bool - { - return $this->has('endorsement'); - } - - public function unsetEndorsement(): self - { - $this->remove('endorsement'); - return $this; - } - - /** - * @return int - */ - public function getEndorsementCount() - { - return $this->get('endorsementCount'); - } - - /** - * @param int $value - */ - public function setEndorsementCount($value): self - { - $this->set('endorsementCount', $value); - return $this; - } - - public function hasEndorsementCount(): bool - { - return $this->has('endorsementCount'); - } - - public function unsetEndorsementCount(): self - { - $this->remove('endorsementCount'); - return $this; - } - - /** - * @return BookReview[] - */ - public function getBookReviews() - { - return $this->get('bookReviews'); - } - - /** - * @param BookReview[] $value - */ - public function setBookReviews($value): self - { - $this->set('bookReviews', $value); - return $this; - } - - public function hasBookReviews(): bool - { - return $this->has('bookReviews'); - } - - public function unsetBookReviews(): self - { - $this->remove('bookReviews'); - return $this; - } - - /** - * @return BookReview - */ - public function getBookReview() - { - return $this->get('bookReview'); - } - - /** - * @param BookReview $value - */ - public function setBookReview($value): self - { - $this->set('bookReview', $value); - return $this; - } - - public function hasBookReview(): bool - { - return $this->has('bookReview'); - } - - public function unsetBookReview(): self - { - $this->remove('bookReview'); - return $this; - } - - /** - * @return int - */ - public function getBookReviewCount() - { - return $this->get('bookReviewCount'); - } - - /** - * @param int $value - */ - public function setBookReviewCount($value): self - { - $this->set('bookReviewCount', $value); - return $this; - } - - public function hasBookReviewCount(): bool - { - return $this->has('bookReviewCount'); - } - - public function unsetBookReviewCount(): self - { - $this->remove('bookReviewCount'); - return $this; - } - - /** - * @return WorkFeaturedVideo[] - */ - public function getWorkFeaturedVideos() - { - return $this->get('workFeaturedVideos'); - } - - /** - * @param WorkFeaturedVideo[] $value - */ - public function setWorkFeaturedVideos($value): self - { - $this->set('workFeaturedVideos', $value); - return $this; - } - - public function hasWorkFeaturedVideos(): bool - { - return $this->has('workFeaturedVideos'); - } - - public function unsetWorkFeaturedVideos(): self - { - $this->remove('workFeaturedVideos'); - return $this; - } - - /** - * @return WorkFeaturedVideo - */ - public function getWorkFeaturedVideo() - { - return $this->get('workFeaturedVideo'); - } - - /** - * @param WorkFeaturedVideo $value - */ - public function setWorkFeaturedVideo($value): self - { - $this->set('workFeaturedVideo', $value); - return $this; - } - - public function hasWorkFeaturedVideo(): bool - { - return $this->has('workFeaturedVideo'); - } - - public function unsetWorkFeaturedVideo(): self - { - $this->remove('workFeaturedVideo'); - return $this; - } - - /** - * @return int - */ - public function getWorkFeaturedVideoCount() - { - return $this->get('workFeaturedVideoCount'); - } - - /** - * @param int $value - */ - public function setWorkFeaturedVideoCount($value): self - { - $this->set('workFeaturedVideoCount', $value); - return $this; - } - - public function hasWorkFeaturedVideoCount(): bool - { - return $this->has('workFeaturedVideoCount'); - } - - public function unsetWorkFeaturedVideoCount(): self - { - $this->remove('workFeaturedVideoCount'); - return $this; - } - - /** - * @return Title - */ - public function getTitle() - { - return $this->get('title'); - } - - /** - * @param Title $value - */ - public function setTitle($value): self - { - $this->set('title', $value); - return $this; - } - - public function hasTitle(): bool - { - return $this->has('title'); - } - - public function unsetTitle(): self - { - $this->remove('title'); - return $this; - } - - /** - * @return Title[] - */ - public function getTitles() - { - return $this->get('titles'); - } - - /** - * @param Title[] $value - */ - public function setTitles($value): self - { - $this->set('titles', $value); - return $this; - } - - public function hasTitles(): bool - { - return $this->has('titles'); - } - - public function unsetTitles(): self - { - $this->remove('titles'); - return $this; - } - - /** - * @return GraphQLAbstract - */ - public function getAbstract() - { - return $this->get('abstract'); - } - - /** - * @param GraphQLAbstract $value - */ - public function setAbstract($value): self - { - $this->set('abstract', $value); - return $this; - } - - public function hasAbstract(): bool - { - return $this->has('abstract'); - } - - public function unsetAbstract(): self - { - $this->remove('abstract'); - return $this; - } - - /** - * @return GraphQLAbstract[] - */ - public function getAbstracts() - { - return $this->get('abstracts'); - } - - /** - * @param GraphQLAbstract[] $value - */ - public function setAbstracts($value): self - { - $this->set('abstracts', $value); - return $this; - } - - public function hasAbstracts(): bool - { - return $this->has('abstracts'); - } - - public function unsetAbstracts(): self - { - $this->remove('abstracts'); - return $this; - } - - /** - * @return Biography - */ - public function getBiography() - { - return $this->get('biography'); - } - - /** - * @param Biography $value - */ - public function setBiography($value): self - { - $this->set('biography', $value); - return $this; - } - - public function hasBiography(): bool - { - return $this->has('biography'); - } - - public function unsetBiography(): self - { - $this->remove('biography'); - return $this; - } - - /** - * @return Biography[] - */ - public function getBiographies() - { - return $this->get('biographies'); - } - - /** - * @param Biography[] $value - */ - public function setBiographies($value): self - { - $this->set('biographies', $value); - return $this; - } - - public function hasBiographies(): bool - { - return $this->has('biographies'); - } - - public function unsetBiographies(): self - { - $this->remove('biographies'); - return $this; - } - - /** - * @return Contact[] - */ - public function getContacts() - { - return $this->get('contacts'); - } - - /** - * @param Contact[] $value - */ - public function setContacts($value): self - { - $this->set('contacts', $value); - return $this; - } - - public function hasContacts(): bool - { - return $this->has('contacts'); - } - - public function unsetContacts(): self - { - $this->remove('contacts'); - return $this; - } - - /** - * @return Contact - */ - public function getContact() - { - return $this->get('contact'); - } - - /** - * @param Contact $value - */ - public function setContact($value): self - { - $this->set('contact', $value); - return $this; - } - - public function hasContact(): bool - { - return $this->has('contact'); - } - - public function unsetContact(): self - { - $this->remove('contact'); - return $this; - } - - /** - * @return int - */ - public function getContactCount() - { - return $this->get('contactCount'); - } - - /** - * @param int $value - */ - public function setContactCount($value): self - { - $this->set('contactCount', $value); - return $this; - } - - public function hasContactCount(): bool - { - return $this->has('contactCount'); - } - - public function unsetContactCount(): self - { - $this->remove('contactCount'); - return $this; - } - - /** - * @return Me - */ - public function getMe() - { - return $this->get('me'); - } - - /** - * @param Me $value - */ - public function setMe($value): self - { - $this->set('me', $value); - return $this; - } - - public function hasMe(): bool - { - return $this->has('me'); - } - - public function unsetMe(): self - { - $this->remove('me'); - return $this; - } - - public static function definition(): ObjectTypeDefinition - { - return new ObjectTypeDefinition('QueryRoot', [ - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'works', - 'description' => 'Query the full list of works', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'WorkOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'work', - 'description' => 'Query a single work using its ID', - 'args' => [ - [ - 'name' => 'workId', - 'description' => 'Thoth work ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'workByDoi', - 'description' => 'Query a single work using its DOI', - 'args' => [ - [ - 'name' => 'doi', - 'description' => 'Work DOI to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Doi', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'workCount', - 'description' => 'Get the total number of works', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'books', - 'description' => 'Query the full list of books (a subset of the full list of works)', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'WorkOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'bookByDoi', - 'description' => 'Query a single book using its DOI', - 'args' => [ - [ - 'name' => 'doi', - 'description' => 'Book DOI to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Doi', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'bookCount', - 'description' => 'Get the total number of books (a subset of the total number of works)', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'chapters', - 'description' => 'Query the full list of chapters (a subset of the full list of works)', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'WorkOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "FULL_TITLE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'chapterByDoi', - 'description' => 'Query a single chapter using its DOI', - 'args' => [ - [ - 'name' => 'doi', - 'description' => 'Chapter DOI to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Doi', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Work', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'chapterCount', - 'description' => 'Get the total number of chapters (a subset of the total number of works)', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_title, doi, reference, short_abstract, long_abstract, and landing_page', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatus', - 'description' => '(deprecated) A specific status to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationDate', - 'description' => 'Only show results with a publication date either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'updatedAtWithRelations', - 'description' => 'Only show results updated either before (less than) or after (greater than) the specified timestamp', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TimeExpression', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publications', - 'description' => 'Query the full list of publications', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PublicationOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "PUBLICATION_TYPE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'PublicationType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publication', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publication', - 'description' => 'Query a single publication using its ID', - 'args' => [ - [ - 'name' => 'publicationId', - 'description' => 'Thoth publication ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publication', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'file', - 'description' => 'Query a single file using its ID', - 'args' => [ - [ - 'name' => 'fileId', - 'description' => 'Thoth file ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'File', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publicationCount', - 'description' => 'Get the total number of publications', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on isbn', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'publicationTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'PublicationType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publishers', - 'description' => 'Query the full list of publishers', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PublisherOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "PUBLISHER_NAME", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publisher', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publisher', - 'description' => 'Query a single publisher using its ID', - 'args' => [ - [ - 'name' => 'publisherId', - 'description' => 'Thoth publisher ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Publisher', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'publisherCount', - 'description' => 'Get the total number of publishers', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on publisher_name and publisher_shortname', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'imprints', - 'description' => 'Query the full list of imprints', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'ImprintOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "IMPRINT_NAME", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Imprint', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'imprint', - 'description' => 'Query a single imprint using its ID', - 'args' => [ - [ - 'name' => 'imprintId', - 'description' => 'Thoth imprint ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Imprint', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'imprintCount', - 'description' => 'Get the total number of imprints', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on imprint_name and imprint_url', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contributors', - 'description' => 'Query the full list of contributors', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'ContributorOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "FULL_NAME", direction: "ASC"}', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contributor', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contributor', - 'description' => 'Query a single contributor using its ID', - 'args' => [ - [ - 'name' => 'contributorId', - 'description' => 'Thoth contributor ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contributor', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contributorCount', - 'description' => 'Get the total number of contributors', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on full_name, last_name and orcid', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contributions', - 'description' => 'Query the full list of contributions', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'ContributionOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "CONTRIBUTION_TYPE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'contributionTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'ContributionType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contribution', - 'description' => 'Query a single contribution using its ID', - 'args' => [ - [ - 'name' => 'contributionId', - 'description' => 'Thoth contribution ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contribution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contributionCount', - 'description' => 'Get the total number of contributions', - 'args' => [ - [ - 'name' => 'contributionTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'ContributionType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'serieses', - 'description' => 'Query the full list of series', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'SeriesOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "SERIES_NAME", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'seriesTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'SeriesType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Series', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'series', - 'description' => 'Query a single series using its ID', - 'args' => [ - [ - 'name' => 'seriesId', - 'description' => 'Thoth series ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Series', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'seriesCount', - 'description' => 'Get the total number of series', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on series_name, issn_print, issn_digital, series_url and series_description', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'seriesTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'SeriesType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'issues', - 'description' => 'Query the full list of issues', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'IssueOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "ISSUE_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'issue', - 'description' => 'Query a single issue using its ID', - 'args' => [ - [ - 'name' => 'issueId', - 'description' => 'Thoth issue ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Issue', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'issueCount', - 'description' => 'Get the total number of issues', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'languages', - 'description' => 'Query the full list of languages', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'LanguageOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "LANGUAGE_CODE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'languageCodes', - 'description' => 'Specific languages to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'languageRelation', - 'description' => '(deprecated) A specific relation to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageRelation', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'languageRelations', - 'description' => 'Specific relations to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageRelation', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Language', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'language', - 'description' => 'Query a single language using its ID', - 'args' => [ - [ - 'name' => 'languageId', - 'description' => 'Thoth language ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Language', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'languageCount', - 'description' => 'Get the total number of languages associated to works', - 'args' => [ - [ - 'name' => 'languageCodes', - 'description' => 'Specific languages to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'languageRelation', - 'description' => '(deprecated) A specific relation to filter by', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageRelation', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - [ - 'name' => 'languageRelations', - 'description' => 'Specific relations to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LanguageRelation', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'locations', - 'description' => 'Query the full list of locations', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'LocationOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "LOCATION_PLATFORM", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'locationPlatforms', - 'description' => 'Specific platforms to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LocationPlatform', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Location', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'location', - 'description' => 'Query a single location using its ID', - 'args' => [ - [ - 'name' => 'locationId', - 'description' => 'Thoth location ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Location', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'locationCount', - 'description' => 'Get the total number of locations associated to works', - 'args' => [ - [ - 'name' => 'locationPlatforms', - 'description' => 'Specific platforms to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LocationPlatform', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'prices', - 'description' => 'Query the full list of prices', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'PriceOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "CURRENCY_CODE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'currencyCodes', - 'description' => 'Specific currencies to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'CurrencyCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Price', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'price', - 'description' => 'Query a single price using its ID', - 'args' => [ - [ - 'name' => 'priceId', - 'description' => 'Thoth price ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Price', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'priceCount', - 'description' => 'Get the total number of prices associated to works', - 'args' => [ - [ - 'name' => 'currencyCodes', - 'description' => 'Specific currencies to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'CurrencyCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'subjects', - 'description' => 'Query the full list of subjects', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'SubjectOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "SUBJECT_TYPE", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'subjectTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'SubjectType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'subject', - 'description' => 'Query a single subject using its ID', - 'args' => [ - [ - 'name' => 'subjectId', - 'description' => 'Thoth subject ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Subject', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'subjectCount', - 'description' => 'Get the total number of subjects associated to works', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on subject_code', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'subjectTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'SubjectType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'workStatuses', - 'description' => 'Specific statuses to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'WorkStatus', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'institutions', - 'description' => 'Query the full list of institutions', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'InstitutionOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "INSTITUTION_NAME", direction: "ASC"}', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Institution', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'institution', - 'description' => 'Query a single institution using its ID', - 'args' => [ - [ - 'name' => 'institutionId', - 'description' => 'Thoth institution ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Institution', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'institutionCount', - 'description' => 'Get the total number of institutions', - 'args' => [ - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on institution_name, ror and institution_doi', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'fundings', - 'description' => 'Query the full list of fundings', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'FundingOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "PROGRAM", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Funding', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'funding', - 'description' => 'Query a single funding using its ID', - 'args' => [ - [ - 'name' => 'fundingId', - 'description' => 'Thoth funding ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Funding', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'fundingCount', - 'description' => 'Get the total number of funding instances associated to works', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'affiliations', - 'description' => 'Query the full list of affiliations', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'AffiliationOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "AFFILIATION_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'affiliation', - 'description' => 'Query a single affiliation using its ID', - 'args' => [ - [ - 'name' => 'affiliationId', - 'description' => 'Thoth affiliation ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Affiliation', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'affiliationCount', - 'description' => 'Get the total number of affiliations', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'references', - 'description' => 'Query the full list of references', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'ReferenceOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "REFERENCE_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'reference', - 'description' => 'Query a single reference using its ID', - 'args' => [ - [ - 'name' => 'referenceId', - 'description' => 'Thoth reference ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Reference', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'referenceCount', - 'description' => 'Get the total number of references', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'additionalResources', - 'description' => 'Query the full list of additional resources', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'AdditionalResourceOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "RESOURCE_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'additionalResource', - 'description' => 'Query a single additional resource using its ID', - 'args' => [ - [ - 'name' => 'additionalResourceId', - 'description' => 'Thoth additional resource ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkResource', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'additionalResourceCount', - 'description' => 'Get the total number of additional resources', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'awards', - 'description' => 'Query the full list of awards', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'AwardOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "AWARD_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'award', - 'description' => 'Query a single award using its ID', - 'args' => [ - [ - 'name' => 'awardId', - 'description' => 'Thoth award ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Award', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'awardCount', - 'description' => 'Get the total number of awards', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'endorsements', - 'description' => 'Query the full list of endorsements', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'EndorsementOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "ENDORSEMENT_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'endorsement', - 'description' => 'Query a single endorsement using its ID', - 'args' => [ - [ - 'name' => 'endorsementId', - 'description' => 'Thoth endorsement ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Endorsement', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'endorsementCount', - 'description' => 'Get the total number of endorsements', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'bookReviews', - 'description' => 'Query the full list of book reviews', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'BookReviewOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "REVIEW_ORDINAL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'bookReview', - 'description' => 'Query a single book review using its ID', - 'args' => [ - [ - 'name' => 'bookReviewId', - 'description' => 'Thoth book review ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'BookReview', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'bookReviewCount', - 'description' => 'Get the total number of book reviews', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'workFeaturedVideos', - 'description' => 'Query the full list of featured videos', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'WorkFeaturedVideoOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "UPDATED_AT", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkFeaturedVideo', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'workFeaturedVideo', - 'description' => 'Query a single featured video using its ID', - 'args' => [ - [ - 'name' => 'workFeaturedVideoId', - 'description' => 'Thoth featured video ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'WorkFeaturedVideo', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'workFeaturedVideoCount', - 'description' => 'Get the total number of featured videos', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'title', - 'description' => 'Query a title by its ID', - 'args' => [ - [ - 'name' => 'titleId', - 'description' => null, - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'markupFormat', - 'description' => null, - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Title', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'titles', - 'description' => 'Query the full list of titles', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on title_, subtitle, full_title fields', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'TitleOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', - ], - [ - 'name' => 'localeCodes', - 'description' => 'If set, only shows results with these locale codes', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LocaleCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'markupFormat', - 'description' => 'If set shows result with this markup format', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => '"JATS_XML"', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Title', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'abstract', - 'description' => 'Query an abstract by its ID', - 'args' => [ - [ - 'name' => 'abstractId', - 'description' => null, - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'markupFormat', - 'description' => 'If set shows results with this markup format', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => '"JATS_XML"', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Abstract', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'abstracts', - 'description' => 'Query the full list of abstracts', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'AbstractOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', - ], - [ - 'name' => 'localeCodes', - 'description' => 'If set only shows results with these locale codes', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LocaleCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'markupFormat', - 'description' => 'If set shows result with this markup format', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => '"JATS_XML"', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Abstract', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'biography', - 'description' => 'Query an biography by it\'s ID', - 'args' => [ - [ - 'name' => 'biographyId', - 'description' => null, - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - [ - 'name' => 'markupFormat', - 'description' => 'If set shows result with this markup format', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => '"JATS_XML"', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Biography', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'biographies', - 'description' => 'Query biographies by work ID', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'filter', - 'description' => 'A query string to search. This argument is a test, do not rely on it. At present it simply searches for case insensitive literals on content fields', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'String', - 'ofType' => null, - ], - 'defaultValue' => '""', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'BiographyOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "CANONICAL", direction: "DESC"}', - ], - [ - 'name' => 'localeCodes', - 'description' => 'If set, only shows results with these locale codes', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'LocaleCode', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'markupFormat', - 'description' => 'If set shows result with this markup format', - 'type' => [ - 'kind' => 'ENUM', - 'name' => 'MarkupFormat', - 'ofType' => null, - ], - 'defaultValue' => '"JATS_XML"', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Biography', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contacts', - 'description' => 'Query the full list of contacts', - 'args' => [ - [ - 'name' => 'limit', - 'description' => 'The number of items to return', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '100', - ], - [ - 'name' => 'offset', - 'description' => 'The number of items to skip', - 'type' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - 'defaultValue' => '0', - ], - [ - 'name' => 'order', - 'description' => 'The order in which to sort the results', - 'type' => [ - 'kind' => 'INPUT_OBJECT', - 'name' => 'ContactOrderBy', - 'ofType' => null, - ], - 'defaultValue' => '{field: "EMAIL", direction: "ASC"}', - ], - [ - 'name' => 'publishers', - 'description' => 'If set, only shows results connected to publishers with these IDs', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - [ - 'name' => 'contactTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'ContactType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contact', - 'ofType' => null, - ], - ], - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contact', - 'description' => 'Query a single contact using its ID', - 'args' => [ - [ - 'name' => 'contactId', - 'description' => 'Thoth contact ID to search on', - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Uuid', - 'ofType' => null, - ], - ], - 'defaultValue' => null, - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Contact', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'contactCount', - 'description' => 'Get the total number of contacts', - 'args' => [ - [ - 'name' => 'contactTypes', - 'description' => 'Specific types to filter by', - 'type' => [ - 'kind' => 'LIST', - 'name' => null, - 'ofType' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'ENUM', - 'name' => 'ContactType', - 'ofType' => null, - ], - ], - ], - 'defaultValue' => '[]', - ], - ], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'SCALAR', - 'name' => 'Int', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]), - \ThothApi\GraphQL\Definition\FieldDefinition::fromIntrospection([ - 'name' => 'me', - 'description' => 'Get the total number of contacts', - 'args' => [], - 'type' => [ - 'kind' => 'NON_NULL', - 'name' => null, - 'ofType' => [ - 'kind' => 'OBJECT', - 'name' => 'Me', - 'ofType' => null, - ], - ], - 'isDeprecated' => false, - 'deprecationReason' => null, - ]) - ]); - } -} diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index a934107..42ac9a8 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -39,6 +39,9 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $this->assertStringContainsString('@param string $value', $workClass); $this->assertStringContainsString('public function hasTitle(): bool', $workClass); $this->assertStringContainsString('public function unsetTitle(): self', $workClass); + $this->assertFileExists($target . '/Queries/BooksQuery.php'); + $this->assertFileDoesNotExist($target . '/Schemas/QueryRoot.php'); + $this->assertFileDoesNotExist($target . '/Schemas/MutationRoot.php'); } public function testItRejectsUnsafeTargets(): void diff --git a/tools/GraphQLGenerator/GraphQLClientGenerator.php b/tools/GraphQLGenerator/GraphQLClientGenerator.php index cbbb1e9..3e2e13b 100644 --- a/tools/GraphQLGenerator/GraphQLClientGenerator.php +++ b/tools/GraphQLGenerator/GraphQLClientGenerator.php @@ -41,6 +41,15 @@ public function generate(?string $schemaSource, string $target): void $this->directoryPreparer->prepare($target); $this->rootOperationGenerator->generate($schema, $types, $target); - $this->schemaTypeGenerator->generate($types, $target); + $this->schemaTypeGenerator->generate($types, $target, $this->rootTypeNames($schema)); + } + + private function rootTypeNames(array $schema): array + { + return array_values(array_filter([ + $schema['queryType']['name'] ?? null, + $schema['mutationType']['name'] ?? null, + $schema['subscriptionType']['name'] ?? null, + ])); } } diff --git a/tools/GraphQLGenerator/SchemaTypeGenerator.php b/tools/GraphQLGenerator/SchemaTypeGenerator.php index 36cfb26..fa33940 100644 --- a/tools/GraphQLGenerator/SchemaTypeGenerator.php +++ b/tools/GraphQLGenerator/SchemaTypeGenerator.php @@ -28,10 +28,10 @@ public function __construct( $this->scalarTypeBuilder = $scalarTypeBuilder ?: new ScalarTypeClassBuilder(); } - public function generate(array $types, string $target): void + public function generate(array $types, string $target, array $ignoredTypeNames = []): void { foreach ($types as $type) { - if ($this->isInternalType($type)) { + if ($this->shouldSkipType($type, $ignoredTypeNames)) { continue; } @@ -39,6 +39,15 @@ public function generate(array $types, string $target): void } } + private function shouldSkipType(array $type, array $ignoredTypeNames): bool + { + if ($this->isInternalType($type)) { + return true; + } + + return isset($type['name']) && in_array($type['name'], $ignoredTypeNames, true); + } + private function isInternalType(array $type): bool { return isset($type['name']) && strpos($type['name'], '__') === 0; From c6751f2d6d8a57d7e45776afd07e07cf59297b90 Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 16:55:11 -0400 Subject: [PATCH 37/40] feat(graphql): generate client operation method phpdoc --- src/GraphQL/Client.php | 180 ++++++++++++++++++ tests/GraphQL/GeneratorTest.php | 8 + .../fixtures/minimal-introspection.json | 19 +- .../ClientPhpDocGenerator.php | 178 +++++++++++++++++ .../GraphQLClientGenerator.php | 7 +- tools/GraphQLGenerator/bootstrap.php | 1 + 6 files changed, 391 insertions(+), 2 deletions(-) create mode 100644 tools/GraphQLGenerator/ClientPhpDocGenerator.php diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 1a6fd1e..b46bc5b 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -4,6 +4,186 @@ use ThothApi\GraphQL\Operation\OperationCallArguments; +/** + * GraphQL API client. + * + * + * @method \ThothApi\GraphQL\Schemas\GraphQLAbstract abstract(string $abstractId, string|null $markupFormat = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\GraphQLAbstract[] abstracts(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\AbstractOrderBy|array|null $order = null, string[]|null $localeCodes = null, string|null $markupFormat = null, array $selection = []) + * @method int additionalResourceCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource additionalResource(string $additionalResourceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource[] additionalResources(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\AdditionalResourceOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int affiliationCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation affiliation(string $affiliationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation[] affiliations(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\AffiliationOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int awardCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award award(string $awardId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award[] awards(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\AwardOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Biography[] biographies(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\BiographyOrderBy|array|null $order = null, string[]|null $localeCodes = null, string|null $markupFormat = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Biography biography(string $biographyId, string|null $markupFormat = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work bookByDoi(string $doi, array $selection = []) + * @method int bookCount(string|null $filter = null, string[]|null $publishers = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method int bookReviewCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview bookReview(string $bookReviewId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview[] bookReviews(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\BookReviewOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work[] books(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\WorkOrderBy|array|null $order = null, string[]|null $publishers = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work chapterByDoi(string $doi, array $selection = []) + * @method int chapterCount(string|null $filter = null, string[]|null $publishers = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work[] chapters(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\WorkOrderBy|array|null $order = null, string[]|null $publishers = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method int contactCount(string[]|null $contactTypes = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contact contact(string $contactId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contact[] contacts(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\ContactOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $contactTypes = null, array $selection = []) + * @method int contributionCount(string[]|null $contributionTypes = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution contribution(string $contributionId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution[] contributions(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\ContributionOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $contributionTypes = null, array $selection = []) + * @method int contributorCount(string|null $filter = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contributor contributor(string $contributorId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contributor[] contributors(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\ContributorOrderBy|array|null $order = null, array $selection = []) + * @method int endorsementCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement endorsement(string $endorsementId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement[] endorsements(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\EndorsementOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\File file(string $fileId, array $selection = []) + * @method int fundingCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Funding funding(string $fundingId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Funding[] fundings(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\FundingOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int imprintCount(string|null $filter = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Imprint imprint(string $imprintId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Imprint[] imprints(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\ImprintOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int institutionCount(string|null $filter = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Institution institution(string $institutionId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Institution[] institutions(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\InstitutionOrderBy|array|null $order = null, array $selection = []) + * @method int issueCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue issue(string $issueId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue[] issues(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\IssueOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int languageCount(string[]|null $languageCodes = null, string|null $languageRelation = null, string[]|null $languageRelations = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Language language(string $languageId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Language[] languages(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\LanguageOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $languageCodes = null, string|null $languageRelation = null, string[]|null $languageRelations = null, array $selection = []) + * @method int locationCount(string[]|null $locationPlatforms = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Location location(string $locationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Location[] locations(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\LocationOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $locationPlatforms = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Me me(array $selection = []) + * @method int priceCount(string[]|null $currencyCodes = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Price price(string $priceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Price[] prices(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\PriceOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $currencyCodes = null, array $selection = []) + * @method int publicationCount(string|null $filter = null, string[]|null $publishers = null, string[]|null $publicationTypes = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publication publication(string $publicationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publication[] publications(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\PublicationOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $publicationTypes = null, array $selection = []) + * @method int publisherCount(string|null $filter = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publisher publisher(string $publisherId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publisher[] publishers(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\PublisherOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int referenceCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference reference(string $referenceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference[] references(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\ReferenceOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method int seriesCount(string|null $filter = null, string[]|null $publishers = null, string[]|null $seriesTypes = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Series series(string $seriesId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Series[] serieses(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\SeriesOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $seriesTypes = null, array $selection = []) + * @method int subjectCount(string|null $filter = null, string[]|null $subjectTypes = null, string[]|null $workStatuses = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject subject(string $subjectId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject[] subjects(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\SubjectOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $subjectTypes = null, string[]|null $workStatuses = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Title title(string $titleId, string|null $markupFormat = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Title[] titles(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\TitleOrderBy|array|null $order = null, string[]|null $localeCodes = null, string|null $markupFormat = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work workByDoi(string $doi, array $selection = []) + * @method int workCount(string|null $filter = null, string[]|null $publishers = null, string[]|null $workTypes = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method int workFeaturedVideoCount(array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkFeaturedVideo workFeaturedVideo(string $workFeaturedVideoId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkFeaturedVideo[] workFeaturedVideos(int|null $limit = null, int|null $offset = null, \ThothApi\GraphQL\Inputs\WorkFeaturedVideoOrderBy|array|null $order = null, string[]|null $publishers = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work work(string $workId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work[] works(int|null $limit = null, int|null $offset = null, string|null $filter = null, \ThothApi\GraphQL\Inputs\WorkOrderBy|array|null $order = null, string[]|null $publishers = null, string[]|null $workTypes = null, string|null $workStatus = null, string[]|null $workStatuses = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $publicationDate = null, \ThothApi\GraphQL\Inputs\TimeExpression|array|null $updatedAtWithRelations = null, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\File completeFileUpload(\ThothApi\GraphQL\Inputs\CompleteFileUpload|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\GraphQLAbstract createAbstract(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewAbstract|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource createAdditionalResource(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewAdditionalResource|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation createAffiliation(\ThothApi\GraphQL\Inputs\NewAffiliation|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award createAward(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewAward|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Biography createBiography(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewBiography|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview createBookReview(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewBookReview|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contact createContact(\ThothApi\GraphQL\Inputs\NewContact|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution createContribution(\ThothApi\GraphQL\Inputs\NewContribution|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contributor createContributor(\ThothApi\GraphQL\Inputs\NewContributor|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement createEndorsement(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewEndorsement|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Funding createFunding(\ThothApi\GraphQL\Inputs\NewFunding|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Imprint createImprint(\ThothApi\GraphQL\Inputs\NewImprint|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Institution createInstitution(\ThothApi\GraphQL\Inputs\NewInstitution|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue createIssue(\ThothApi\GraphQL\Inputs\NewIssue|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Language createLanguage(\ThothApi\GraphQL\Inputs\NewLanguage|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Location createLocation(\ThothApi\GraphQL\Inputs\NewLocation|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Price createPrice(\ThothApi\GraphQL\Inputs\NewPrice|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publication createPublication(\ThothApi\GraphQL\Inputs\NewPublication|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publisher createPublisher(\ThothApi\GraphQL\Inputs\NewPublisher|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference createReference(\ThothApi\GraphQL\Inputs\NewReference|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Series createSeries(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewSeries|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject createSubject(\ThothApi\GraphQL\Inputs\NewSubject|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Title createTitle(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\NewTitle|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkFeaturedVideo createWorkFeaturedVideo(\ThothApi\GraphQL\Inputs\NewWorkFeaturedVideo|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work createWork(\ThothApi\GraphQL\Inputs\NewWork|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkRelation createWorkRelation(\ThothApi\GraphQL\Inputs\NewWorkRelation|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\GraphQLAbstract deleteAbstract(string $abstractId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource deleteAdditionalResource(string $additionalResourceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation deleteAffiliation(string $affiliationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award deleteAward(string $awardId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Biography deleteBiography(string $biographyId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview deleteBookReview(string $bookReviewId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contact deleteContact(string $contactId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution deleteContribution(string $contributionId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contributor deleteContributor(string $contributorId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement deleteEndorsement(string $endorsementId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Funding deleteFunding(string $fundingId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Imprint deleteImprint(string $imprintId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Institution deleteInstitution(string $institutionId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue deleteIssue(string $issueId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Language deleteLanguage(string $languageId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Location deleteLocation(string $locationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Price deletePrice(string $priceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publication deletePublication(string $publicationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publisher deletePublisher(string $publisherId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference deleteReference(string $referenceId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Series deleteSeries(string $seriesId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject deleteSubject(string $subjectId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Title deleteTitle(string $titleId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkFeaturedVideo deleteWorkFeaturedVideo(string $workFeaturedVideoId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work deleteWork(string $workId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkRelation deleteWorkRelation(string $workRelationId, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\FileUploadResponse initAdditionalResourceFileUpload(\ThothApi\GraphQL\Inputs\NewAdditionalResourceFileUpload|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\FileUploadResponse initFrontcoverFileUpload(\ThothApi\GraphQL\Inputs\NewFrontcoverFileUpload|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\FileUploadResponse initPublicationFileUpload(\ThothApi\GraphQL\Inputs\NewPublicationFileUpload|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\FileUploadResponse initWorkFeaturedVideoFileUpload(\ThothApi\GraphQL\Inputs\NewWorkFeaturedVideoFileUpload|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource moveAdditionalResource(string $additionalResourceId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation moveAffiliation(string $affiliationId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award moveAward(string $awardId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview moveBookReview(string $bookReviewId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution moveContribution(string $contributionId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement moveEndorsement(string $endorsementId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue moveIssue(string $issueId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference moveReference(string $referenceId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject moveSubject(string $subjectId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkRelation moveWorkRelation(string $workRelationId, int $newOrdinal, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\GraphQLAbstract updateAbstract(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchAbstract|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkResource updateAdditionalResource(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchAdditionalResource|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Affiliation updateAffiliation(\ThothApi\GraphQL\Inputs\PatchAffiliation|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Award updateAward(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchAward|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Biography updateBiography(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchBiography|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\BookReview updateBookReview(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchBookReview|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contact updateContact(\ThothApi\GraphQL\Inputs\PatchContact|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contribution updateContribution(\ThothApi\GraphQL\Inputs\PatchContribution|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Contributor updateContributor(\ThothApi\GraphQL\Inputs\PatchContributor|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Endorsement updateEndorsement(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchEndorsement|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Funding updateFunding(\ThothApi\GraphQL\Inputs\PatchFunding|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Imprint updateImprint(\ThothApi\GraphQL\Inputs\PatchImprint|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Institution updateInstitution(\ThothApi\GraphQL\Inputs\PatchInstitution|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Issue updateIssue(\ThothApi\GraphQL\Inputs\PatchIssue|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Language updateLanguage(\ThothApi\GraphQL\Inputs\PatchLanguage|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Location updateLocation(\ThothApi\GraphQL\Inputs\PatchLocation|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Price updatePrice(\ThothApi\GraphQL\Inputs\PatchPrice|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publication updatePublication(\ThothApi\GraphQL\Inputs\PatchPublication|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Publisher updatePublisher(\ThothApi\GraphQL\Inputs\PatchPublisher|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Reference updateReference(\ThothApi\GraphQL\Inputs\PatchReference|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Series updateSeries(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchSeries|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Subject updateSubject(\ThothApi\GraphQL\Inputs\PatchSubject|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Title updateTitle(string|null $markupFormat = null, \ThothApi\GraphQL\Inputs\PatchTitle|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkFeaturedVideo updateWorkFeaturedVideo(\ThothApi\GraphQL\Inputs\PatchWorkFeaturedVideo|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\Work updateWork(\ThothApi\GraphQL\Inputs\PatchWork|array $data, array $selection = []) + * @method \ThothApi\GraphQL\Schemas\WorkRelation updateWorkRelation(\ThothApi\GraphQL\Inputs\PatchWorkRelation|array $data, array $selection = []) + * + */ class Client { private const SCALAR_TYPES = ['Boolean', 'Date', 'Doi', 'Float', 'Int', 'Isbn', 'Orcid', 'Ror', 'String', 'Timestamp', 'Uuid']; diff --git a/tests/GraphQL/GeneratorTest.php b/tests/GraphQL/GeneratorTest.php index 42ac9a8..1bddc39 100644 --- a/tests/GraphQL/GeneratorTest.php +++ b/tests/GraphQL/GeneratorTest.php @@ -23,6 +23,8 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $schema = __DIR__ . '/fixtures/minimal-introspection.json'; $script = dirname(__DIR__, 2) . '/tools/generate-graphql-client.php'; + copy(dirname(__DIR__, 2) . '/src/GraphQL/Client.php', $target . '/Client.php'); + $command = PHP_BINARY . ' ' . escapeshellarg($script) . ' ' . escapeshellarg($schema) . ' ' . escapeshellarg($target); @@ -40,8 +42,14 @@ public function testItGeneratesPhpDocForObjectAccessors(): void $this->assertStringContainsString('public function hasTitle(): bool', $workClass); $this->assertStringContainsString('public function unsetTitle(): self', $workClass); $this->assertFileExists($target . '/Queries/BooksQuery.php'); + $this->assertFileExists($target . '/Mutations/CreateWorkMutation.php'); $this->assertFileDoesNotExist($target . '/Schemas/QueryRoot.php'); $this->assertFileDoesNotExist($target . '/Schemas/MutationRoot.php'); + + $clientClass = file_get_contents($target . '/Client.php'); + + $this->assertStringContainsString('@method \\ThothApi\\GraphQL\\Schemas\\Work[]|null books(array $selection = [])', $clientClass); + $this->assertStringContainsString('@method \\ThothApi\\GraphQL\\Schemas\\Work createWork(array $selection = [])', $clientClass); } public function testItRejectsUnsafeTargets(): void diff --git a/tests/GraphQL/fixtures/minimal-introspection.json b/tests/GraphQL/fixtures/minimal-introspection.json index 44c6f88..cc8ea1b 100644 --- a/tests/GraphQL/fixtures/minimal-introspection.json +++ b/tests/GraphQL/fixtures/minimal-introspection.json @@ -40,7 +40,24 @@ "kind": "OBJECT", "name": "MutationRoot", "description": null, - "fields": [], + "fields": [ + { + "name": "createWork", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Work", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], "inputFields": null, "interfaces": [], "enumValues": null, diff --git a/tools/GraphQLGenerator/ClientPhpDocGenerator.php b/tools/GraphQLGenerator/ClientPhpDocGenerator.php new file mode 100644 index 0000000..6e1296a --- /dev/null +++ b/tools/GraphQLGenerator/ClientPhpDocGenerator.php @@ -0,0 +1,178 @@ +'; + private const END_MARKER = ''; + + public function generate(array $schema, array $types, string $target): void + { + $clientFile = $target . '/Client.php'; + + if (!is_file($clientFile)) { + return; + } + + $contents = file_get_contents($clientFile); + + if ($contents === false) { + throw new GeneratorException('Unable to read GraphQL client file: ' . $clientFile); + } + + $updatedContents = $this->replaceClassDocBlock($contents, $this->docBlock($schema, $types)); + + if (file_put_contents($clientFile, $updatedContents) === false) { + throw new GeneratorException('Unable to write GraphQL client file: ' . $clientFile); + } + } + + private function replaceClassDocBlock(string $contents, string $docBlock): string + { + $pattern = '/\/\*\*.*?' . preg_quote(self::START_MARKER, '/') . '.*?' + . preg_quote(self::END_MARKER, '/') . '.*?\*\/\nclass Client/s'; + + if (preg_match($pattern, $contents) === 1) { + return (string) preg_replace($pattern, $docBlock . "\nclass Client", $contents, 1); + } + + return (string) preg_replace('/\nclass Client\n/', "\n" . $docBlock . "\nclass Client\n", $contents, 1); + } + + private function docBlock(array $schema, array $types): string + { + $methods = array_merge( + $this->operationMethodTags($schema, $types, 'queryType'), + $this->operationMethodTags($schema, $types, 'mutationType') + ); + + return "/**\n" + . " * GraphQL API client.\n" + . " *\n" + . ' * ' . self::START_MARKER . "\n" + . implode("\n", $methods) . "\n" + . ' * ' . self::END_MARKER . "\n" + . ' */'; + } + + private function operationMethodTags(array $schema, array $types, string $rootKey): array + { + $rootTypeName = $schema[$rootKey]['name'] ?? null; + $rootType = is_string($rootTypeName) ? ($types[$rootTypeName] ?? []) : []; + $methods = []; + + foreach ($rootType['fields'] ?? [] as $field) { + $methods[] = ' * @method ' . $this->returnType($field['type'] ?? []) + . ' ' . $field['name'] . '(' . $this->parameterList($field['args'] ?? []) . ')'; + } + + return $methods; + } + + private function parameterList(array $arguments): string + { + $parameters = []; + + foreach ($arguments as $argument) { + $type = $argument['type'] ?? []; + $parameters[] = $this->argumentType($type) . ' $' + . $this->parameterName((string) ($argument['name'] ?? 'value')) . $this->defaultValue($type); + } + + $parameters[] = 'array $selection = []'; + return implode(', ', $parameters); + } + + private function defaultValue(array $type): string + { + return ($type['kind'] ?? null) === 'NON_NULL' ? '' : ' = null'; + } + + private function returnType(array $type): string + { + return $this->phpDocType($type, 'Schemas'); + } + + private function argumentType(array $type): string + { + return $this->phpDocType($type, 'Inputs'); + } + + private function phpDocType(array $type, string $objectNamespace): string + { + $nullable = ($type['kind'] ?? null) !== 'NON_NULL'; + $baseType = $this->phpDocBaseType($type, $objectNamespace); + + return $nullable ? $baseType . '|null' : $baseType; + } + + private function phpDocBaseType(array $type, string $objectNamespace): string + { + if (($type['kind'] ?? null) === 'NON_NULL') { + return $this->phpDocBaseType($type['ofType'] ?? [], $objectNamespace); + } + + if (($type['kind'] ?? null) === 'LIST') { + return $this->phpDocBaseType($type['ofType'] ?? [], $objectNamespace) . '[]'; + } + + if (($type['kind'] ?? null) === 'ENUM') { + return 'string'; + } + + if (($type['kind'] ?? null) === 'NAMED' && isset($type['name'])) { + return $this->namedPhpDocType((string) $type['name'], $objectNamespace); + } + + if (($type['kind'] ?? null) === 'INPUT_OBJECT' && isset($type['name'])) { + return $this->className('Inputs', (string) $type['name']) . '|array'; + } + + if (($type['kind'] ?? null) === 'OBJECT' && isset($type['name'])) { + return $this->className($objectNamespace, (string) $type['name']); + } + + if (($type['kind'] ?? null) === 'SCALAR') { + return phpDocScalarType((string) ($type['name'] ?? '')); + } + + return 'mixed'; + } + + private function namedPhpDocType(string $typeName, string $objectNamespace): string + { + $inputClass = $this->className('Inputs', $typeName); + + if ($objectNamespace === 'Inputs' && class_exists($inputClass)) { + return $inputClass . '|array'; + } + + $schemaClass = $this->className('Schemas', $typeName); + + if ($objectNamespace === 'Schemas' && class_exists($schemaClass)) { + return $schemaClass; + } + + $enumClass = $this->className('Enums', $typeName); + + if (class_exists($enumClass)) { + return 'string'; + } + + return phpDocScalarType($typeName); + } + + private function className(string $namespacePart, string $typeName): string + { + return '\\ThothApi\\GraphQL\\' . $namespacePart . '\\' . safeClassName(studly($typeName)); + } + + private function parameterName(string $name): string + { + $name = preg_replace('/[^A-Za-z0-9_]/', '_', $name); + $name = preg_replace('/^[^A-Za-z_]+/', '', (string) $name); + + return $name === '' ? 'value' : $name; + } +} diff --git a/tools/GraphQLGenerator/GraphQLClientGenerator.php b/tools/GraphQLGenerator/GraphQLClientGenerator.php index 3e2e13b..ea49baa 100644 --- a/tools/GraphQLGenerator/GraphQLClientGenerator.php +++ b/tools/GraphQLGenerator/GraphQLClientGenerator.php @@ -16,13 +16,16 @@ final class GraphQLClientGenerator private SchemaTypeGenerator $schemaTypeGenerator; + private ClientPhpDocGenerator $clientPhpDocGenerator; + public function __construct( ?SchemaLoader $schemaLoader = null, ?TypeIndexer $typeIndexer = null, ?TargetDirectoryGuard $targetDirectoryGuard = null, ?GeneratedDirectoryPreparer $directoryPreparer = null, ?RootOperationGenerator $rootOperationGenerator = null, - ?SchemaTypeGenerator $schemaTypeGenerator = null + ?SchemaTypeGenerator $schemaTypeGenerator = null, + ?ClientPhpDocGenerator $clientPhpDocGenerator = null ) { $this->schemaLoader = $schemaLoader ?: new SchemaLoader(); $this->typeIndexer = $typeIndexer ?: new TypeIndexer(); @@ -30,6 +33,7 @@ public function __construct( $this->directoryPreparer = $directoryPreparer ?: new GeneratedDirectoryPreparer(); $this->rootOperationGenerator = $rootOperationGenerator ?: new RootOperationGenerator(); $this->schemaTypeGenerator = $schemaTypeGenerator ?: new SchemaTypeGenerator(); + $this->clientPhpDocGenerator = $clientPhpDocGenerator ?: new ClientPhpDocGenerator(); } public function generate(?string $schemaSource, string $target): void @@ -42,6 +46,7 @@ public function generate(?string $schemaSource, string $target): void $this->directoryPreparer->prepare($target); $this->rootOperationGenerator->generate($schema, $types, $target); $this->schemaTypeGenerator->generate($types, $target, $this->rootTypeNames($schema)); + $this->clientPhpDocGenerator->generate($schema, $types, $target); } private function rootTypeNames(array $schema): array diff --git a/tools/GraphQLGenerator/bootstrap.php b/tools/GraphQLGenerator/bootstrap.php index a770850..2e1c1d2 100644 --- a/tools/GraphQLGenerator/bootstrap.php +++ b/tools/GraphQLGenerator/bootstrap.php @@ -9,6 +9,7 @@ require_once __DIR__ . '/CodeGeneration.php'; require_once __DIR__ . '/AccessorMethodsBuilder.php'; require_once __DIR__ . '/ClassFileWriter.php'; +require_once __DIR__ . '/ClientPhpDocGenerator.php'; require_once __DIR__ . '/TypeClassBuilder.php'; require_once __DIR__ . '/EnumTypeClassBuilder.php'; require_once __DIR__ . '/GeneratedDirectoryPreparer.php'; From 721203398302dafc99c7c78393f4986eb1d022fb Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 17:06:27 -0400 Subject: [PATCH 38/40] ci: run graphql checks across supported php versions --- .github/workflows/ci.yml | 5 ++++- .gitlab-ci.yml | 45 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 230f692..f51017d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,4 +42,7 @@ jobs: run: vendor/bin/php-cs-fixer fix -v --diff --allow-risky=yes --config=.php-cs-fixer.php - name: Run test suite - run: vendor/bin/phpunit tests/ \ No newline at end of file + run: vendor/bin/phpunit tests/ + + - name: Run static analysis + run: composer analyse diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dad65b5..e057227 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,9 @@ before_script: .test: &test - vendor/bin/phpunit tests/ +.analyse: &analyse + - composer analyse + lint:php7.4: image: php:7.4 script: @@ -30,7 +33,47 @@ test:php7.4: script: - *test +test:php8.0: + image: php:8.0 + script: + - *test + +test:php8.1: + image: php:8.1 + script: + - *test + test:php8.2: image: php:8.2 script: - - *test \ No newline at end of file + - *test + +test:php8.3: + image: php:8.3 + script: + - *test + +analyse:php7.4: + image: php:7.4 + script: + - *analyse + +analyse:php8.0: + image: php:8.0 + script: + - *analyse + +analyse:php8.1: + image: php:8.1 + script: + - *analyse + +analyse:php8.2: + image: php:8.2 + script: + - *analyse + +analyse:php8.3: + image: php:8.3 + script: + - *analyse From 3801ce9d9147ece2778d4eae82b5b007bc66a23c Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 17:20:12 -0400 Subject: [PATCH 39/40] ci: run phpstan from vendor bin in gitlab --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e057227..6d5b175 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ before_script: - vendor/bin/phpunit tests/ .analyse: &analyse - - composer analyse + - vendor/bin/phpstan analyse --debug --memory-limit=1G lint:php7.4: image: php:7.4 From f285173cd2ed94b6da5ae82c4341e985888e12de Mon Sep 17 00:00:00 2001 From: Thiago Matos Date: Tue, 16 Jun 2026 17:51:38 -0400 Subject: [PATCH 40/40] fix: update vulnerable dependencies --- composer.json | 5 ++ composer.lock | 194 ++++++++++++++++++++++++++------------------------ 2 files changed, 105 insertions(+), 94 deletions(-) diff --git a/composer.json b/composer.json index 1434b57..6497d14 100644 --- a/composer.json +++ b/composer.json @@ -11,6 +11,11 @@ "friendsofphp/php-cs-fixer": "^3.64", "phpstan/phpstan": "^2.2" }, + "config": { + "platform": { + "php": "7.4.33" + } + }, "license": "Apache-2.0", "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 25b04b3..2bb7cc2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9c9e89f2d9ce4b9dcac23cdd574deba4", + "content-hash": "505f4f248e74f71a0be446e96ff373bb", "packages": [ { "name": "guzzlehttp/guzzle", @@ -217,23 +217,25 @@ }, { "name": "guzzlehttp/psr7", - "version": "2.7.0", + "version": "2.11.1", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" + "reference": "640e2897bbee822dbc8af761d49e1a29b1f2a6b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/640e2897bbee822dbc8af761d49e1a29b1f2a6b1", + "reference": "640e2897bbee822dbc8af761d49e1a29b1f2a6b1", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.1 || ^2.0", - "ralouphie/getallheaders": "^3.0" + "ralouphie/getallheaders": "^3.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/polyfill-php80": "^1.24" }, "provide": { "psr/http-factory-implementation": "1.0", @@ -241,8 +243,9 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "http-interop/http-factory-tests": "0.9.0", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" + "http-interop/http-factory-tests": "1.1.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.52 || ^9.6.34" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -313,7 +316,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.7.0" + "source": "https://github.com/guzzle/psr7/tree/2.11.1" }, "funding": [ { @@ -329,7 +332,7 @@ "type": "tidelift" } ], - "time": "2024-07-18T11:15:46+00:00" + "time": "2026-06-12T21:50:12+00:00" }, { "name": "psr/http-client", @@ -601,6 +604,90 @@ } ], "time": "2024-09-25T14:11:13+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00" } ], "packages-dev": [ @@ -4446,90 +4533,6 @@ ], "time": "2024-09-09T11:45:10+00:00" }, - { - "name": "symfony/polyfill-php80", - "version": "v1.33.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", - "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-01-02T08:10:11+00:00" - }, { "name": "symfony/polyfill-php81", "version": "v1.31.0", @@ -4963,5 +4966,8 @@ "php": ">=7.4" }, "platform-dev": {}, + "platform-overrides": { + "php": "7.4.33" + }, "plugin-api-version": "2.9.0" }