File upload functionality for own interiors (#39)
This commit is contained in:
@@ -5,6 +5,17 @@ scalar DateTime
|
||||
scalar Date
|
||||
scalar JSON
|
||||
|
||||
enum CacheControlScope {
|
||||
PUBLIC
|
||||
PRIVATE
|
||||
}
|
||||
|
||||
directive @cacheControl(
|
||||
maxAge: Int
|
||||
scope: CacheControlScope
|
||||
inheritMaxAge: Boolean
|
||||
) on FIELD_DEFINITION | OBJECT | INTERFACE | UNION
|
||||
|
||||
type Query {
|
||||
orders(pagination: PaginationInput!, filter: DateFilterInput!): OrdersResult
|
||||
order(id: ID!): Order
|
||||
@@ -24,6 +35,13 @@ type Query {
|
||||
locales: [Locale]
|
||||
locale(value: String!): Locale
|
||||
interiors(filter: InteriorsFilterInput): [Interior]
|
||||
signedFileUploadURL(config: SignedUploadURLInput): SignedUploadURL
|
||||
@cacheControl(maxAge: 0)
|
||||
}
|
||||
|
||||
input SignedUploadURLInput {
|
||||
contentType: String!
|
||||
key: String!
|
||||
}
|
||||
|
||||
input PaginationInput {
|
||||
@@ -68,6 +86,13 @@ input InteriorsFilterInput {
|
||||
productId: Int!
|
||||
}
|
||||
|
||||
type SignedUploadURL {
|
||||
url: String!
|
||||
key: String!
|
||||
bucket: String!
|
||||
expires: Int!
|
||||
}
|
||||
|
||||
type Market {
|
||||
id: ID!
|
||||
name: String!
|
||||
@@ -394,6 +419,10 @@ input ProductBlacklistingInput {
|
||||
groupIds: [Int]
|
||||
}
|
||||
|
||||
type IdNumberResult {
|
||||
id: Int!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
productInfo(productId: Int!, info: ProductInfoInput!): Product
|
||||
productFocusPoint(
|
||||
@@ -407,6 +436,10 @@ type Mutation {
|
||||
): Product
|
||||
productGroup(productId: Int!, groupIds: [Int]): Product
|
||||
productKeywords(productId: Int!, keywordIds: [Int]): Product
|
||||
addOwnInteriorToPrintProduct(
|
||||
printId: Int!
|
||||
uploadedS3Key: String!
|
||||
): IdNumberResult
|
||||
productWallpaperType(
|
||||
productId: Int!
|
||||
wallpaperTypes: [ProductWallpaperType]!
|
||||
|
||||
Reference in New Issue
Block a user