Skip to content

Commit

Permalink
refactor: release un-stitched viewing rooms (#6283)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickskalkin authored Dec 3, 2024
1 parent b84fe83 commit 15bd7d2
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 91 deletions.
127 changes: 38 additions & 89 deletions _schemaV2.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -8622,18 +8622,15 @@ type CreateVerifiedRepresentativeSuccess {
verifiedRepresentative: VerifiedRepresentative
}

# Autogenerated input type of CreateViewingRoom
input CreateViewingRoomInput {
attributes: ViewingRoomAttributes

# Main text
body: String

# A unique identifier for the client performing the mutation.
clientMutationId: String

# End datetime
endAt: ISO8601DateTime
endAt: String
image: ARImageInput

# Introduction
Expand All @@ -8647,7 +8644,7 @@ input CreateViewingRoomInput {
pullQuote: String

# Start datetime
startAt: ISO8601DateTime
startAt: String

# Timezone
timeZone: String
Expand All @@ -8656,9 +8653,7 @@ input CreateViewingRoomInput {
title: String
}

# Autogenerated return type of CreateViewingRoom
type CreateViewingRoomPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomOrErrors: ViewingRoomOrErrorsUnion!
}
Expand Down Expand Up @@ -9172,16 +9167,12 @@ type DeleteVerifiedRepresentativeSuccess {
verifiedRepresentative: VerifiedRepresentative
}

# Autogenerated input type of DeleteViewingRoom
input DeleteViewingRoomInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomID: ID!
}

# Autogenerated return type of DeleteViewingRoom
type DeleteViewingRoomPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoom: ViewingRoom!
}
Expand Down Expand Up @@ -10785,6 +10776,17 @@ type GeneMeta {
description: String!
}

type GravityARImage {
height: Int
imageURLs: GravityImageURLs
internalID: String!
width: Int
}

type GravityImageURLs {
normalized: String
}

type GravityMutationError {
detail: String
error: String
Expand Down Expand Up @@ -13874,10 +13876,7 @@ type Mutation {
createVerifiedRepresentative(
input: CreateVerifiedRepresentativeInput!
): CreateVerifiedRepresentativePayload
createViewingRoom(
# Parameters for CreateViewingRoom
input: CreateViewingRoomInput!
): CreateViewingRoomPayload
createViewingRoom(input: CreateViewingRoomInput!): CreateViewingRoomPayload

# Deletes an alert
deleteAlert(input: deleteAlertInput!): deleteAlertPayload
Expand Down Expand Up @@ -13982,10 +13981,7 @@ type Mutation {
deleteVerifiedRepresentative(
input: DeleteVerifiedRepresentativeMutationInput!
): DeleteVerifiedRepresentativeMutationPayload
deleteViewingRoom(
# Parameters for DeleteViewingRoom
input: DeleteViewingRoomInput!
): DeleteViewingRoomPayload
deleteViewingRoom(input: DeleteViewingRoomInput!): DeleteViewingRoomPayload
deliverSecondFactor(
input: DeliverSecondFactorInput!
): DeliverSecondFactorPayload
Expand Down Expand Up @@ -14056,10 +14052,7 @@ type Mutation {
myCollectionUpdateArtwork(
input: MyCollectionUpdateArtworkInput!
): MyCollectionUpdateArtworkPayload
publishViewingRoom(
# Parameters for PublishViewingRoom
input: PublishViewingRoomInput!
): PublishViewingRoomPayload
publishViewingRoom(input: PublishViewingRoomInput!): PublishViewingRoomPayload
recordArtworkView(
# Parameters for RecordArtworkView
input: RecordArtworkViewInput!
Expand Down Expand Up @@ -14131,7 +14124,6 @@ type Mutation {
input: UnlinkAuthenticationMutationInput!
): UnlinkAuthenticationMutationPayload
unpublishViewingRoom(
# Parameters for UnpublishViewingRoom
input: UnpublishViewingRoomInput!
): UnpublishViewingRoomPayload

Expand Down Expand Up @@ -14268,16 +14260,11 @@ type Mutation {
updateUserSaleProfile(
input: UpdateUserSaleProfileMutationInput!
): UpdateUserSaleProfileMutationPayload
updateViewingRoom(
# Parameters for UpdateViewingRoom
input: UpdateViewingRoomInput!
): UpdateViewingRoomPayload
updateViewingRoom(input: UpdateViewingRoomInput!): UpdateViewingRoomPayload
updateViewingRoomArtworks(
# Parameters for UpdateViewingRoomArtworks
input: UpdateViewingRoomArtworksInput!
): UpdateViewingRoomArtworksPayload
updateViewingRoomSubsections(
# Parameters for UpdateViewingRoomSubsections
input: UpdateViewingRoomSubsectionsInput!
): UpdateViewingRoomSubsectionsPayload
}
Expand Down Expand Up @@ -15204,7 +15191,9 @@ type Partner implements Node {
vatNumber: String
viewingRoomsConnection(
after: String
before: String
first: Int
last: Int
statuses: [ViewingRoomStatusEnum!]
): ViewingRoomsConnection

Expand Down Expand Up @@ -16265,16 +16254,12 @@ type ProfileEdge {

union ProfileOwnerType = Fair | FairOrganizer | Partner

# Autogenerated input type of PublishViewingRoom
input PublishViewingRoomInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomID: ID!
}

# Autogenerated return type of PublishViewingRoom
type PublishViewingRoomPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoom: ViewingRoom!
}
Expand Down Expand Up @@ -17634,25 +17619,14 @@ type Query {
# Returns only viewing rooms with these statuses
statuses: [ViewingRoomStatusEnum!] = [live]
): ViewingRoomConnection @deprecated(reason: "Use viewingRoomsConnection")

# List viewing rooms
viewingRoomsConnection(
# Returns the elements in the list that come after the specified cursor.
after: String

# Returns the elements in the list that come before the specified cursor.
before: String
featured: Boolean

# Returns the first _n_ elements from the list.
first: Int
ids: [ID!]

# Returns the last _n_ elements from the list.
last: Int
partnerID: ID

# Returns only viewing rooms with these statuses
statuses: [ViewingRoomStatusEnum!] = [live]
): ViewingRoomsConnection
}
Expand Down Expand Up @@ -19630,16 +19604,12 @@ type UnlinkAuthenticationMutationPayload {
me: Me!
}

# Autogenerated input type of UnpublishViewingRoom
input UnpublishViewingRoomInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomID: ID!
}

# Autogenerated return type of UnpublishViewingRoom
type UnpublishViewingRoomPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoom: ViewingRoom!
}
Expand Down Expand Up @@ -20466,51 +20436,36 @@ type UpdateUserSaleProfileMutationPayload {
clientMutationId: String
}

# Autogenerated input type of UpdateViewingRoomArtworks
input UpdateViewingRoomArtworksInput {
artworks: [ViewingRoomArtworkInput!]!

# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomID: String!
}

# Autogenerated return type of UpdateViewingRoomArtworks
type UpdateViewingRoomArtworksPayload {
artworkIDs: [String!]!

# A unique identifier for the client performing the mutation.
clientMutationId: String
}

# Autogenerated input type of UpdateViewingRoom
input UpdateViewingRoomInput {
attributes: ViewingRoomAttributes!

# A unique identifier for the client performing the mutation.
clientMutationId: String
image: ARImageInput
viewingRoomID: String!
}

# Autogenerated return type of UpdateViewingRoom
type UpdateViewingRoomPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
viewingRoomOrErrors: ViewingRoomOrErrorsUnion!
}

# Autogenerated input type of UpdateViewingRoomSubsections
input UpdateViewingRoomSubsectionsInput {
# A unique identifier for the client performing the mutation.
clientMutationId: String
subsections: [ViewingRoomSubsectionInput!]!
viewingRoomID: ID!
}

# Autogenerated return type of UpdateViewingRoomSubsections
type UpdateViewingRoomSubsectionsPayload {
# A unique identifier for the client performing the mutation.
clientMutationId: String
subsections: [ViewingRoomSubsection!]!
}
Expand Down Expand Up @@ -22198,15 +22153,21 @@ type Viewer {
# Recaptcha token.
recaptchaToken: String!
): VerifyUser

# Find a viewing room by ID
viewingRoom(id: ID!): ViewingRoom
viewingRoomsConnection(
after: String
before: String
featured: Boolean
first: Int
ids: [ID!]
last: Int
partnerID: ID
statuses: [ViewingRoomStatusEnum!]
statuses: [ViewingRoomStatusEnum!] = [live]
): ViewingRoomsConnection
}

# An artwork viewing room
type ViewingRoom {
artworkIDs: [String!]!
artworksConnection(
Expand All @@ -22222,16 +22183,16 @@ type ViewingRoom {
distanceToOpen(short: Boolean! = false): String

# Datetime after which the viewing room is no longer viewable
endAt: ISO8601DateTime
endAt: String
exhibitionPeriod: String

# Datetime when viewing room first viewable
firstLiveAt: ISO8601DateTime
firstLiveAt: String
heroImageURL: String @deprecated(reason: "Use image field instead")
href: String
image: ARImage
image: GravityARImage

# Unique ID for this room
# A type-specific ID likely used as a database ID.
internalID: ID!

# Introductory paragraph
Expand All @@ -22251,7 +22212,7 @@ type ViewingRoom {
slug: String!

# Datetime when the viewing room is viewable
startAt: ISO8601DateTime
startAt: String

# Calculated field to reflect visibility and state of this viewing room
status: String!
Expand All @@ -22278,17 +22239,16 @@ input ViewingRoomArtworkInput {
position: Int
}

# Basic viewing room attributes
input ViewingRoomAttributes {
body: String

# Datetime (in UTC) when Viewing Room closes
endAt: ISO8601DateTime
endAt: String
introStatement: String
pullQuote: String

# Datetime (in UTC) when Viewing Room opens
startAt: ISO8601DateTime
startAt: String

# Time zone (tz database format, e.g. America/New_York) in which start_at/end_at attributes were input
timeZone: String
Expand All @@ -22302,9 +22262,6 @@ type ViewingRoomConnection {
# A list of edges.
edges: [ViewingRoomEdge]

# A list of nodes.
nodes: [ViewingRoom]

# Information to aid in pagination.
pageInfo: PageInfo!

Expand All @@ -22316,12 +22273,8 @@ type ViewingRoomConnection {
type ViewingRoomEdge {
# A cursor for use in pagination.
cursor: String!

# The item at the end of the edge.
node: ViewingRoom
}

# A viewing room or errors object
union ViewingRoomOrErrorsUnion = Errors | ViewingRoom

type ViewingRoomPublishedNotificationItem {
Expand Down Expand Up @@ -22380,27 +22333,23 @@ input ViewingRoomSubsectionInput {
internalID: ID
}

# The connection type for ViewingRoom.
# A connection to a list of items.
type ViewingRoomsConnection {
# A list of edges.
edges: [ViewingRoomsEdge]

# A list of nodes.
nodes: [ViewingRoom]
pageCursors: PageCursors
pageCursors: PageCursors!

# Information to aid in pagination.
pageInfo: PageInfo!
totalCount: Int
totalPages: Int
}

# An edge in a connection.
type ViewingRoomsEdge {
# A cursor for use in pagination.
# A cursor for use in pagination
cursor: String!

# The item at the end of the edge.
# The item at the end of the edge
node: ViewingRoom
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"deploy-cloudflare-workers": "yarn wrangler deploy --keep-vars --config=workers/caching/metaphysics-cdn.toml --env production",
"dev": "DEBUG=info,warn,error babel-node --extensions '.ts,.js' --inspect index.js",
"dump-schema": "babel-node --extensions '.ts,.js' ./scripts/dump-schema.ts",
"dump:local": "USE_UNSTITCHED_VIEWING_ROOM_SCHEMA=false yarn dump-schema _schemaV2.graphql & wait",
"dump:staging": "USE_UNSTITCHED_VIEWING_ROOM_SCHEMA=false node scripts/dump-staging-schema.js",
"dump:local": "USE_UNSTITCHED_VIEWING_ROOM_SCHEMA=true yarn dump-schema _schemaV2.graphql & wait",
"dump:staging": "USE_UNSTITCHED_VIEWING_ROOM_SCHEMA=true node scripts/dump-staging-schema.js",
"lint": "eslint . --ext ts",
"lint:fix": "eslint . --fix --ext ts",
"prepare": "patch-package",
Expand Down

0 comments on commit 15bd7d2

Please sign in to comment.