Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
228 lines (197 sloc) 5.01 KB
# Autogenerated input type of AddAssetToConsignmentSubmission
input AddAssetToConsignmentSubmissionInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
submission_id: ID!
gemini_token: String!
asset_type: String
}
# Autogenerated return type of AddAssetToConsignmentSubmission
type AddAssetToConsignmentSubmissionPayload {
asset: Asset
# A unique identifier for the client performing the mutation.
clientMutationId: String
}
# Submission Asset
type Asset {
# type of this Asset
asset_type: String!
# gemini token for asset
gemini_token: String
# Uniq ID for this asset
id: ID!
submission_id: ID!
}
enum Category {
PAINTING
SCULPTURE
PHOTOGRAPHY
PRINT
DRAWING_COLLAGE_OR_OTHER_WORK_ON_PAPER
MIXED_MEDIA
PERFORMANCE_ART
INSTALLATION
VIDEO_FILM_ANIMATION
ARCHITECTURE
FASHION_DESIGN_AND_WEARABLE_ART
JEWELRY
DESIGN_DECORATIVE_ART
TEXTILE_ARTS
OTHER
}
# Autogenerated input type of CreateConsignmentSubmission
input CreateConsignmentSubmissionInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
additional_info: String
artist_id: String!
authenticity_certificate: Boolean
category: Category
depth: String
dimensions_metric: String
edition: Boolean
edition_number: String
edition_size: Int
height: String
location_city: String
location_country: String
location_state: String
medium: String
provenance: String
signature: Boolean
state: State
title: String
width: String
year: String
}
# Autogenerated return type of CreateConsignmentSubmission
type CreateConsignmentSubmissionPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
consignment_submission: Submission
}
# Mutation root for this schema
type Mutation {
# Create an asset
addAssetToConsignmentSubmission(
input: AddAssetToConsignmentSubmissionInput
): AddAssetToConsignmentSubmissionPayload
createConsignmentSubmission(
input: CreateConsignmentSubmissionInput
): CreateConsignmentSubmissionPayload
updateConsignmentSubmission(
input: UpdateConsignmentSubmissionInput
): UpdateConsignmentSubmissionPayload
}
# Information about pagination in a connection.
type PageInfo {
# When paginating forwards, the cursor to continue.
endCursor: String
# When paginating forwards, are there more items?
hasNextPage: Boolean!
# When paginating backwards, are there more items?
hasPreviousPage: Boolean!
# When paginating backwards, the cursor to continue.
startCursor: String
}
# Query root for this schema
type Query {
# Get a Submission
submission(id: ID): Submission
# Filter all submission
submissions(
# Returns the first _n_ elements from the list.
first: Int
# Returns the elements in the list that come after the specified global ID.
after: String
# Returns the last _n_ elements from the list.
last: Int
# Returns the elements in the list that come before the specified global ID.
before: String
# Get all submissions with these IDs
ids: [ID]
# Only get submission by this user_id
user_id: [ID]
# If present return either completed or not completed submissions
completed: Boolean
): SubmissionConnection
}
enum State {
DRAFT
SUBMITTED
APPROVED
REJECTED
}
# Consignment Submission
type Submission {
additional_info: String
artist_id: String!
assets: [Asset]
authenticity_certificate: Boolean
category: Category
depth: String
dimensions_metric: String
edition: String
edition_number: String
edition_size: Int
height: String
# Uniq ID for this submission
id: ID!
location_city: String
location_country: String
location_state: String
medium: String
provenance: String
signature: Boolean
state: State
title: String
user_id: String!
width: String
year: String
}
# The connection type for Submission.
type SubmissionConnection {
# A list of edges.
edges: [SubmissionEdge]
# Information to aid in pagination.
pageInfo: PageInfo!
}
# An edge in a connection.
type SubmissionEdge {
# A cursor for use in pagination.
cursor: String!
# The item at the end of the edge.
node: Submission
}
# Autogenerated input type of UpdateConsignmentSubmission
input UpdateConsignmentSubmissionInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
id: ID!
additional_info: String
artist_id: String
authenticity_certificate: Boolean
category: Category
depth: String
dimensions_metric: String
edition: Boolean
edition_number: String
edition_size: Int
height: String
location_city: String
location_country: String
location_state: String
medium: String
provenance: String
signature: Boolean
state: State
title: String
width: String
year: String
}
# Autogenerated return type of UpdateConsignmentSubmission
type UpdateConsignmentSubmissionPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
consignment_submission: Submission
}