-
Notifications
You must be signed in to change notification settings - Fork 7
/
draft.graphql
143 lines (131 loc) · 3.69 KB
/
draft.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
"PreviewMetadata can be either a Collection, Service, Tool or Variable."
union PreviewMetadata = Collection | Service | Tool | Variable
"DraftConceptType must be one of the enum values."
enum DraftConceptType {
Collection
Service
Tool
Variable
}
type DraftMutationResponse {
"The concept id of the draft."
conceptId: String!
"The revision id of the draft."
revisionId: String!
"Warnings returned from ingesting the draft."
warnings: [JSON]
"Existing errors in the draft."
existingErrors: [JSON]
}
type Draft {
"The concept id of the draft."
conceptId: String
"The concept type of the draft."
conceptType: String
"If the draft has been deleted."
deleted: Boolean
"Name of the draft."
name: String
"The native id of the draft."
nativeId: String
"Provider ID of the draft."
providerId: String
"Date which the draft was last updated."
revisionDate: String
"The revision id of the draft."
revisionId: String
"The Metadata Preview compatible metadata of the draft."
previewMetadata: PreviewMetadata
"Raw UMM Metadata of the draft."
ummMetadata: JSON
}
type DraftList {
"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 draft search results."
items: [Draft]
}
type PublishDraftMutationResponse {
"The concept id of the draft."
conceptId: String!
"The revision id of the draft."
revisionId: String!
"Warnings returned from ingesting the draft."
warnings: [JSON]
"Existing errors in the draft."
existingErrors: [JSON]
}
type Mutation {
ingestDraft (
"The concept type of the draft."
conceptType: DraftConceptType!
"UMM Metadata of the draft to ingest."
metadata: JSON!
"The native id of the draft."
nativeId: String!
"Provider ID of the draft."
providerId: String!
"UMM Version of the metadata being ingested."
ummVersion: String!
): DraftMutationResponse
deleteDraft (
"The concept type of the draft."
conceptType: DraftConceptType!
"The native id of the draft."
nativeId: String!
"Provider ID of the draft."
providerId: String!
): DraftMutationResponse
publishDraft (
"Concept ID of the draft to be published."
draftConceptId: String!
"New Native ID for the published record."
nativeId: String!
"UMM Version of the record being published."
ummVersion: String!
): PublishDraftMutationResponse
}
input DraftInput {
"The concept type of the draft."
conceptType: DraftConceptType!
"The concept id of the draft."
conceptId: String!
"UMM Version of the draft."
ummVersion: String
}
input DraftsInput {
"The concept type of the draft."
conceptType: DraftConceptType!
"The concept id of the draft."
conceptId: [String]
"Cursor that points to the/a specific position in a list of requested records."
cursor: String
"The number of draft requested by the user."
limit: Int
"The name of the draft."
name: [String]
"The native id of the draft."
nativeId: [String]
"Zero based offset of individual results."
offset: Int
"Options to provide to CMR pertaining to and, or, and wildcard searching."
options: JSON
"The name of the provider associated with the draft."
provider: [String]
"One or more sort keys can be specified to impact searching. Fields can be prepended with a '-' to sort in descending order. Ascending order is the default but + can be used to explicitly request ascending."
sortKey: [String]
"UMM Version of the draft."
ummVersion: String
}
type Query {
draft (
"Draft query parameters"
params: DraftInput
): Draft
drafts (
"Drafts query parameters"
params: DraftsInput
): DraftList
}