-
Notifications
You must be signed in to change notification settings - Fork 7
/
subscription.graphql
180 lines (167 loc) · 6.16 KB
/
subscription.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
170
171
172
173
174
175
176
177
178
179
180
type Subscription {
"The concept id of the parent CMR collection."
collectionConceptId: String
"The unique concept id assigned to the subscription."
conceptId: String!
"The date the subscription was created."
creationDate: String
"The email address that notifications will be delivered to."
emailAddress: String
"The name of a subscription."
name: String
"The native id of a subscription."
nativeId: String
"The provider associated with this subscription."
providerId: String
"The query used to retrieve data for the subscription."
query: String
"The date the subscription was updated."
revisionDate: String
"The revision associated with this subscription."
revisionId: String
"The EDL userid of the subscriber."
subscriberId: String
"The type of the subscription."
type: String
collection: Collection
}
type SubscriptionList {
"The number of hits for a given search."
count: Int
"Cursor that points to the/a specific position in a list of requested records."
cursor: String
"The list of subscription search results."
items: [Subscription]
}
input SubscriptionsInput {
"The concept id of the parent CMR collection."
collectionConceptId: String
"The unique concept id assigned to the subscription."
conceptId: [String]
"Cursor that points to the/a specific position in a list of requested records."
cursor: String
"The number of subscriptions requested by the user."
limit: Int
"The name of a subscription."
name: String
"The provider associated with this subscription."
provider: String
"The userid of the subscriber."
subscriberId: String
"Zero based offset of individual results."
offset: Int
"The type of the subscription."
type: String
}
input SubscriptionInput {
"The unique concept id assigned to the subscription."
conceptId: String!
}
type Query {
subscriptions (
"Subscriptions query parameters"
params: SubscriptionsInput
"The concept id of the parent CMR collection."
collectionConceptId: String @deprecated(reason: "Use `params.collectionConceptId`")
"The unique concept id assigned to the subscription."
conceptId: [String] @deprecated(reason: "Use `params.conceptId`")
"Cursor that points to the a specific position in a list of requested records."
cursor: String @deprecated(reason: "Use `params.cursor`")
"The number of subscriptions requested by the user."
limit: Int @deprecated(reason: "Use `params.limit`")
"The name of a subscription."
name: String @deprecated(reason: "Use `params.name`")
"The provider associated with this subscription."
provider: String @deprecated(reason: "Use `params.provider`")
"The userid of the subscriber."
subscriberId: String @deprecated(reason: "Use `params.subscriberId`")
"Zero based offset of individual results."
offset: Int @deprecated(reason: "Use `params.offset`")
): SubscriptionList!
subscription (
"Subscription query parameters"
params: SubscriptionInput
"The unique concept id assigned to the subscription."
conceptId: String @deprecated(reason: "Use `params.conceptId`")
): Subscription
}
input CreateSubscriptionInput {
"The concept id of the parent CMR collection."
collectionConceptId: String
"The email address that notifications will be delivered to."
name: String!
"The native id to set on the subscription."
nativeId: String
"The EDL userid of the subscriber."
subscriberId: String
"The query used to retrieve data for the subscription."
query: String!
"The type of the subscription."
type: String!
}
input UpdateSubscriptionInput {
"The concept id of the parent CMR collection."
collectionConceptId: String
"The email address that notifications will be delivered to."
name: String!
"The native id to set on the subscription."
nativeId: String!
"The EDL userid of the subscriber."
subscriberId: String
"The query used to retrieve data for the subscription."
query: String!
"The type of the subscription."
type: String!
}
input DeleteSubscriptionInput {
"The concept id of the subscription."
conceptId: String!
"The native id of the subscription."
nativeId: String!
}
type Mutation {
createSubscription (
"Create Subscription mutation parameters"
params: CreateSubscriptionInput
"The concept id of the parent CMR collection."
collectionConceptId: String @deprecated(reason: "Use `params.collectionConceptId`")
"The email address that notifications will be delivered to."
name: String @deprecated(reason: "Use `params.name`")
"The native id to set on the subscription."
nativeId: String @deprecated(reason: "Use `params.nativeId`")
"The EDL userid of the subscriber."
subscriberId: String @deprecated(reason: "Use `params.subscriberId`")
"The query used to retrieve data for the subscription."
query: String @deprecated(reason: "Use `params.query`")
): SubscriptionMutationResponse
updateSubscription (
"Update Subscription mutation parameters"
params: UpdateSubscriptionInput
"The concept id of the parent CMR collection."
collectionConceptId: String @deprecated(reason: "Use `params.collectionConceptId`")
"The email address that notifications will be delivered to."
name: String @deprecated(reason: "Use `params.name`")
"The native id to set on the subscription."
nativeId: String @deprecated(reason: "Use `params.nativeId`")
"The EDL userid of the subscriber."
subscriberId: String @deprecated(reason: "Use `params.subscriberId`")
"The query used to retrieve data for the subscription."
query: String @deprecated(reason: "Use `params.query`")
): SubscriptionMutationResponse
deleteSubscription (
"Delete Subscription mutation parameters"
params: DeleteSubscriptionInput
"The concept id of the subscription."
conceptId: String @deprecated(reason: "Use `params.conceptId`")
"The native id of the subscription."
nativeId: String @deprecated(reason: "Use `params.nativeId`")
): SubscriptionMutationResponse
}
type SubscriptionMutationResponse {
"The unique concept id assigned to the subscription."
conceptId: String
"The revision of the subscription."
revisionId: String
"The native id of the subscription."
nativeId: String
}