-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from VladimirLogachev/update-dependencies
Update dependencies
- Loading branch information
Showing
20 changed files
with
339 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,3 @@ package-lock.json | |
|
||
# Desktop Services Store on macOS | ||
.DS_Store | ||
|
||
# Elm-graphql generated code | ||
src/LibraryApi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.InputObject exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
buildNewAuthor : | ||
NewAuthorRequiredFields | ||
-> NewAuthor | ||
buildNewAuthor required____ = | ||
{ name = required____.name } | ||
|
||
|
||
type alias NewAuthorRequiredFields = | ||
{ name : String } | ||
|
||
|
||
{-| Type for the NewAuthor input object. | ||
-} | ||
type alias NewAuthor = | ||
{ name : String } | ||
|
||
|
||
{-| Encode a NewAuthor into a value that can be used as an argument. | ||
-} | ||
encodeNewAuthor : NewAuthor -> Value | ||
encodeNewAuthor input____ = | ||
Encode.maybeObject | ||
[ ( "name", Encode.string input____.name |> Just ) ] | ||
|
||
|
||
buildNewBook : | ||
NewBookRequiredFields | ||
-> NewBook | ||
buildNewBook required____ = | ||
{ title = required____.title, authorId = required____.authorId, imageUrl = required____.imageUrl } | ||
|
||
|
||
type alias NewBookRequiredFields = | ||
{ title : String | ||
, authorId : Int | ||
, imageUrl : String | ||
} | ||
|
||
|
||
{-| Type for the NewBook input object. | ||
-} | ||
type alias NewBook = | ||
{ title : String | ||
, authorId : Int | ||
, imageUrl : String | ||
} | ||
|
||
|
||
{-| Encode a NewBook into a value that can be used as an argument. | ||
-} | ||
encodeNewBook : NewBook -> Value | ||
encodeNewBook input____ = | ||
Encode.maybeObject | ||
[ ( "title", Encode.string input____.title |> Just ), ( "authorId", Encode.int input____.authorId |> Just ), ( "imageUrl", Encode.string input____.imageUrl |> Just ) ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Interface exposing (..) | ||
|
||
|
||
placeholder : String | ||
placeholder = | ||
"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Mutation exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode exposing (Decoder) | ||
import LibraryApi.InputObject | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
type alias NewAuthorRequiredArguments = | ||
{ author : LibraryApi.InputObject.NewAuthor } | ||
|
||
|
||
newAuthor : | ||
NewAuthorRequiredArguments | ||
-> SelectionSet decodesTo LibraryApi.Object.Author | ||
-> SelectionSet decodesTo RootMutation | ||
newAuthor requiredArgs____ object____ = | ||
Object.selectionForCompositeField "newAuthor" [ Argument.required "author" requiredArgs____.author LibraryApi.InputObject.encodeNewAuthor ] object____ Basics.identity | ||
|
||
|
||
type alias NewBookRequiredArguments = | ||
{ book : LibraryApi.InputObject.NewBook } | ||
|
||
|
||
newBook : | ||
NewBookRequiredArguments | ||
-> SelectionSet decodesTo LibraryApi.Object.Book | ||
-> SelectionSet decodesTo RootMutation | ||
newBook requiredArgs____ object____ = | ||
Object.selectionForCompositeField "newBook" [ Argument.required "book" requiredArgs____.book LibraryApi.InputObject.encodeNewBook ] object____ Basics.identity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Object exposing (..) | ||
|
||
|
||
type Author | ||
= Author | ||
|
||
|
||
type Book | ||
= Book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Object.Author exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode | ||
import LibraryApi.InputObject | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
id : SelectionSet Int LibraryApi.Object.Author | ||
id = | ||
Object.selectionForField "Int" "id" [] Decode.int | ||
|
||
|
||
name : SelectionSet String LibraryApi.Object.Author | ||
name = | ||
Object.selectionForField "String" "name" [] Decode.string | ||
|
||
|
||
books : | ||
SelectionSet decodesTo LibraryApi.Object.Book | ||
-> SelectionSet (List decodesTo) LibraryApi.Object.Author | ||
books object____ = | ||
Object.selectionForCompositeField "books" [] object____ (Basics.identity >> Decode.list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Object.Book exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode | ||
import LibraryApi.InputObject | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
id : SelectionSet Int LibraryApi.Object.Book | ||
id = | ||
Object.selectionForField "Int" "id" [] Decode.int | ||
|
||
|
||
title : SelectionSet String LibraryApi.Object.Book | ||
title = | ||
Object.selectionForField "String" "title" [] Decode.string | ||
|
||
|
||
imageUrl : SelectionSet String LibraryApi.Object.Book | ||
imageUrl = | ||
Object.selectionForField "String" "imageUrl" [] Decode.string | ||
|
||
|
||
author : | ||
SelectionSet decodesTo LibraryApi.Object.Author | ||
-> SelectionSet decodesTo LibraryApi.Object.Book | ||
author object____ = | ||
Object.selectionForCompositeField "author" [] object____ Basics.identity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Query exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode exposing (Decoder) | ||
import LibraryApi.InputObject | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
type alias AuthorsRequiredArguments = | ||
{ name : String } | ||
|
||
|
||
authors : | ||
AuthorsRequiredArguments | ||
-> SelectionSet decodesTo LibraryApi.Object.Author | ||
-> SelectionSet (List decodesTo) RootQuery | ||
authors requiredArgs____ object____ = | ||
Object.selectionForCompositeField "authors" [ Argument.required "name" requiredArgs____.name Encode.string ] object____ (Basics.identity >> Decode.list) | ||
|
||
|
||
type alias BooksRequiredArguments = | ||
{ title : String } | ||
|
||
|
||
books : | ||
BooksRequiredArguments | ||
-> SelectionSet decodesTo LibraryApi.Object.Book | ||
-> SelectionSet (List decodesTo) RootQuery | ||
books requiredArgs____ object____ = | ||
Object.selectionForCompositeField "books" [ Argument.required "title" requiredArgs____.title Encode.string ] object____ (Basics.identity >> Decode.list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Scalar exposing (..) | ||
|
||
|
||
placeholder : String | ||
placeholder = | ||
"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.ScalarCodecs exposing (..) | ||
|
||
|
||
placeholder : String | ||
placeholder = | ||
"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
-- Do not manually edit this file, it was auto-generated by dillonkearns/elm-graphql | ||
-- https://github.com/dillonkearns/elm-graphql | ||
|
||
|
||
module LibraryApi.Subscription exposing (..) | ||
|
||
import Graphql.Internal.Builder.Argument as Argument exposing (Argument) | ||
import Graphql.Internal.Builder.Object as Object | ||
import Graphql.Internal.Encode as Encode exposing (Value) | ||
import Graphql.Operation exposing (RootMutation, RootQuery, RootSubscription) | ||
import Graphql.OptionalArgument exposing (OptionalArgument(..)) | ||
import Graphql.SelectionSet exposing (SelectionSet) | ||
import Json.Decode as Decode exposing (Decoder) | ||
import LibraryApi.InputObject | ||
import LibraryApi.Interface | ||
import LibraryApi.Object | ||
import LibraryApi.Scalar | ||
import LibraryApi.ScalarCodecs | ||
import LibraryApi.Union | ||
|
||
|
||
allBooks : | ||
SelectionSet decodesTo LibraryApi.Object.Book | ||
-> SelectionSet decodesTo RootSubscription | ||
allBooks object____ = | ||
Object.selectionForCompositeField "allBooks" [] object____ Basics.identity |
Oops, something went wrong.