-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
92 lines (80 loc) · 2.33 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
### This file was generated by Nexus Schema
### Do not make changes to this file directly
"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime
type Mutation {
archiveWishList(id: String!): WishList
changeWish(description: String, id: String!, image: String, link: String, price: ValueObjectInput, quantity: Int, title: String!): Wish
changeWishList(headline: String!, id: String!): WishList
claimWish(id: String!, wishId: String!): Share
createShare(invitedEmail: String!, wishListId: String!): Share
createUser(email: String!): User
createWish(description: String, image: String, link: String, price: ValueObjectInput, quantity: Int, title: String!, wishListId: String!): Wish
createWishList(headline: String!): WishList
removeAWish(id: String!): String
removeShare(id: String!): Share
removeWishClaim(id: String!, wishId: String!): Share
sendShareEmails(shareIds: [String!]!): Boolean
unarchiveWishList(id: String!): WishList
updateWishOrderForWishList(id: String!, wishOrder: [String!]!): WishList
}
type Query {
getCurrentUser: User
getOwnShares: [Share]
getOwnWish(id: String!): Wish
getOwnWishList(id: String!): WishList
getOwnWishLists: [WishList]
getShare(id: String!): Share
}
type Share {
claimedWishIds: [String!]!
createdAt: DateTime!
id: ID!
invitedEmail: String!
updatedAt: DateTime!
wishList: WishList!
}
type User {
createdAt: DateTime!
email: String!
googleUserId: String!
id: ID!
updatedAt: DateTime!
}
type ValueObject {
"""Amount in minor units"""
amount: Int!
"""Currency 3 letter identifier according to ISO 4217"""
currency: String!
}
input ValueObjectInput {
"""Amount in minor units"""
amount: Int!
"""Currency 3 letter identifier according to ISO 4217"""
currency: String!
}
type Wish {
createdAt: DateTime!
description: String
id: ID!
image: String
link: String
price: ValueObject
quantity: Int!
title: String!
updatedAt: DateTime!
wishList: WishList
}
type WishList {
archivedAt: DateTime
createdAt: DateTime!
headline: String!
id: ID!
shares: [Share!]!
updatedAt: DateTime!
user: User!
wishOrder: [String!]!
wishes: [Wish!]!
}