forked from thetarnav/graphstate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema_la.graphql
169 lines (169 loc) · 4.31 KB
/
schema_la.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
type GlobalLink {
id: ID!
title: String!
url: String!
year: String
protocol: String!
description: String
mainTopic: MainTopicWithTitleAndPrettyName
}
type MainTopicWithTitleAndPrettyName {
name: String!
prettyName: String!
}
type Mutation {
createUser(email: String!): String!
updateTopicOfWiki(topicName: String!, prettyName: String!, content: String!, published: Boolean!, topicPath: String!): String!
createProduct(name: String!, description: String, imageUrl: String, websiteUrl: String, priceInUsdCents: Int): String!
deletePersonalLink(personalLinkId: ID!): String!
updateTopicLearningStatus(learningStatus: learningStatus!, topicName: String!, verifiedTopic: Boolean!): String!
updatePersonalLinkStatus(action: personalLinkAction!, globalLinkId: ID!): String!
addPersonalLink(url: String!, title: String!, linkState: linkState!, liked: Boolean!): String!
cancelStripe: String!
renewStripe: String!
updateStripePlan: String!
internalUpdateMemberUntilOfUser(email: String!, memberUntilDateInUnixTime: Int!, stripeSubscriptionObjectId: ID!, stripePlan: String!): String!
internalUpdateGrafbaseKv(topicsWithConnections: [updateGrafbaseKvOutput!]!): String!
internalUpdateLatestGlobalGuide(topicName: String!, topicSummary: String!, sections: [section!]!): String!
internalAddGlobalLinkToSection(linkUrl: String!, topicName: String!, sectionName: String!): String!
}
type PersonalLink {
id: ID!
title: String
description: String
mainTopic: MainTopicWithTitleAndPrettyName
globalLink: GlobalLink!
}
type Query {
publicGetTopicsWithConnections: [publicGetTopicsWithConnectionsOutput!]!
publicGetGlobalTopics: [publicGetGlobalTopicsOutput!]!
publicGetPersonalTopic(topicName: String!, user: String!): [publicGetPersonalTopicOutput!]!
publicGetGlobalTopic(topicName: String!): publicGetGlobalTopicOutput!
getUserDetails: getUserDetailsOutput!
getPricingUserDetails: getPricingUserDetailsOutput!
getNotesForGlobalTopic(topicName: String!): [globalNote!]!
getAllLinks: outputOfGetAllLinks!
getTopicsLearned: getTopicsLearnedOutput!
getGlobalLink(linkId: ID!): publicGetGlobalLinkOutput!
getGlobalTopic(topicName: String!): getGlobalTopicOutput!
getGlobalTopicLearningStatus(topicName: String!): String!
getGlobalLinks: getGlobalLinksOutput!
checkUrl(linkUrl: String!): String!
getStripeDashboard: String!
stripe(plan: String!, userEmail: String!): String!
}
type getGlobalLinksOutput {
id: ID!
title: String!
url: String!
}
type getGlobalTopicOutput {
learningStatus: String!
linksBookmarkedIds: [ID!]!
linksInProgressIds: [ID!]!
linksCompletedIds: [ID!]!
linksLikedIds: [ID!]!
}
type getPricingUserDetailsOutput {
stripePlan: String
memberUntil: String
subscriptionStopped: Boolean
}
type getTopicsLearnedOutput {
topicsToLearn: [topicToLearn!]!
topicsLearning: [topicToLearn!]!
topicsLearned: [topicToLearn!]!
}
type getUserDetailsOutput {
isMember: Boolean!
}
type globalGuideSection {
summary: String
title: String!
links: [GlobalLink!]!
}
type globalNote {
content: String!
url: String
}
type latestGlobalGuide {
sections: [globalGuideSection!]!
}
enum learningStatus {
to_learn
learning
learned
none
}
enum linkState {
Bookmark
InProgress
Completed
None
}
type outputOfGetAllLinks {
linksBookmarked: [PersonalLink!]!
linksInProgress: [PersonalLink!]!
linksCompleted: [PersonalLink!]!
linksLiked: [PersonalLink!]!
}
enum personalLinkAction {
removeProgress
bookmark
inProgress
complete
like
unlike
}
type publicGetGlobalLinkOutput {
title: String!
url: String!
verified: Boolean!
public: Boolean!
protocol: String!
fullUrl: String
description: String
urlTitle: String
year: String
}
type publicGetGlobalTopicOutput {
prettyName: String!
topicSummary: String!
latestGlobalGuide: latestGlobalGuide
links: [GlobalLink!]!
notesCount: Int!
}
type publicGetGlobalTopicsOutput {
prettyName: String!
name: String!
}
type publicGetPersonalTopicOutput {
prettyName: String!
content: String!
public: Boolean!
topicPath: String!
}
type publicGetTopicsWithConnectionsOutput {
name: String!
prettyName: String!
connections: [String!]!
}
input section {
title: String!
summary: String
linkIds: [ID!]!
}
type topicToLearn {
name: String!
prettyName: String!
verified: Boolean!
}
input updateGrafbaseKvOutput {
name: String!
prettyName: String!
connections: [String!]!
}
schema {
query: Query
mutation: Mutation
}