Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest storage-squid schema #5068

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 37 additions & 5 deletions distributor-node/src/services/networking/query-node/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ enum Continent {
SA
}

type DataObjectDeletedEventData {
"""Runtime ID of deleted the deleted object"""
dataObjectId: String!
}

union DataObjectType = DataObjectTypeVideoSubtitle

type DataObjectTypeVideoSubtitle {
Expand Down Expand Up @@ -666,11 +671,28 @@ type Event {
data: EventData!
}

union EventData = MetaprotocolTransactionStatusEventData
union EventData = MetaprotocolTransactionStatusEventData | DataObjectDeletedEventData

input EventDataWhereInput {
result_isNull: Boolean
result: MetaprotocolTransactionResultWhereInput
dataObjectId_isNull: Boolean
dataObjectId_eq: String
dataObjectId_not_eq: String
dataObjectId_gt: String
dataObjectId_gte: String
dataObjectId_lt: String
dataObjectId_lte: String
dataObjectId_in: [String!]
dataObjectId_not_in: [String!]
dataObjectId_contains: String
dataObjectId_not_contains: String
dataObjectId_containsInsensitive: String
dataObjectId_not_containsInsensitive: String
dataObjectId_startsWith: String
dataObjectId_not_startsWith: String
dataObjectId_endsWith: String
dataObjectId_not_endsWith: String
isTypeOf_isNull: Boolean
isTypeOf_eq: String
isTypeOf_not_eq: String
Expand Down Expand Up @@ -716,6 +738,10 @@ enum EventOrderByInput {
timestamp_DESC
timestamp_ASC_NULLS_FIRST
timestamp_DESC_NULLS_LAST
data_dataObjectId_ASC
data_dataObjectId_DESC
data_dataObjectId_ASC_NULLS_FIRST
data_dataObjectId_DESC_NULLS_LAST
data_isTypeOf_ASC
data_isTypeOf_DESC
data_isTypeOf_ASC_NULLS_FIRST
Expand Down Expand Up @@ -957,14 +983,14 @@ type PageInfo {
}

type Query {
videoSubtitles(where: VideoSubtitleWhereInput, orderBy: [VideoSubtitleOrderByInput!], offset: Int, limit: Int): [VideoSubtitle!]!
videoSubtitleById(id: String!): VideoSubtitle
videoSubtitleByUniqueInput(where: WhereIdInput!): VideoSubtitle @deprecated(reason: "Use videoSubtitleById")
videoSubtitlesConnection(orderBy: [VideoSubtitleOrderByInput!]!, after: String, first: Int, where: VideoSubtitleWhereInput): VideoSubtitlesConnection!
events(where: EventWhereInput, orderBy: [EventOrderByInput!], offset: Int, limit: Int): [Event!]!
eventById(id: String!): Event
eventByUniqueInput(where: WhereIdInput!): Event @deprecated(reason: "Use eventById")
eventsConnection(orderBy: [EventOrderByInput!]!, after: String, first: Int, where: EventWhereInput): EventsConnection!
videoSubtitles(where: VideoSubtitleWhereInput, orderBy: [VideoSubtitleOrderByInput!], offset: Int, limit: Int): [VideoSubtitle!]!
videoSubtitleById(id: String!): VideoSubtitle
videoSubtitleByUniqueInput(where: WhereIdInput!): VideoSubtitle @deprecated(reason: "Use videoSubtitleById")
videoSubtitlesConnection(orderBy: [VideoSubtitleOrderByInput!]!, after: String, first: Int, where: VideoSubtitleWhereInput): VideoSubtitlesConnection!
storageBucketOperatorMetadata(where: StorageBucketOperatorMetadataWhereInput, orderBy: [StorageBucketOperatorMetadataOrderByInput!], offset: Int, limit: Int): [StorageBucketOperatorMetadata!]!
storageBucketOperatorMetadataById(id: String!): StorageBucketOperatorMetadata
storageBucketOperatorMetadataByUniqueInput(where: WhereIdInput!): StorageBucketOperatorMetadata @deprecated(reason: "Use storageBucketOperatorMetadataById")
Expand Down Expand Up @@ -1010,13 +1036,18 @@ type Query {
distributionBucketFamilyByUniqueInput(where: WhereIdInput!): DistributionBucketFamily @deprecated(reason: "Use distributionBucketFamilyById")
distributionBucketFamiliesConnection(orderBy: [DistributionBucketFamilyOrderByInput!]!, after: String, first: Int, where: DistributionBucketFamilyWhereInput): DistributionBucketFamiliesConnection!
squidStatus: SquidStatus
squidVersion: SquidVersion!
}

type SquidStatus {
"""The height of the processed part of the chain"""
height: Int
}

type SquidVersion {
version: String!
}

type StorageBag {
"""Storage bag id"""
id: String!
Expand Down Expand Up @@ -1934,3 +1965,4 @@ input VideoSubtitleWhereInput {
input WhereIdInput {
id: String!
}

14 changes: 10 additions & 4 deletions storage-node/src/services/queryNode/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -983,14 +983,14 @@ type PageInfo {
}

type Query {
videoSubtitles(where: VideoSubtitleWhereInput, orderBy: [VideoSubtitleOrderByInput!], offset: Int, limit: Int): [VideoSubtitle!]!
videoSubtitleById(id: String!): VideoSubtitle
videoSubtitleByUniqueInput(where: WhereIdInput!): VideoSubtitle @deprecated(reason: "Use videoSubtitleById")
videoSubtitlesConnection(orderBy: [VideoSubtitleOrderByInput!]!, after: String, first: Int, where: VideoSubtitleWhereInput): VideoSubtitlesConnection!
events(where: EventWhereInput, orderBy: [EventOrderByInput!], offset: Int, limit: Int): [Event!]!
eventById(id: String!): Event
eventByUniqueInput(where: WhereIdInput!): Event @deprecated(reason: "Use eventById")
eventsConnection(orderBy: [EventOrderByInput!]!, after: String, first: Int, where: EventWhereInput): EventsConnection!
videoSubtitles(where: VideoSubtitleWhereInput, orderBy: [VideoSubtitleOrderByInput!], offset: Int, limit: Int): [VideoSubtitle!]!
videoSubtitleById(id: String!): VideoSubtitle
videoSubtitleByUniqueInput(where: WhereIdInput!): VideoSubtitle @deprecated(reason: "Use videoSubtitleById")
videoSubtitlesConnection(orderBy: [VideoSubtitleOrderByInput!]!, after: String, first: Int, where: VideoSubtitleWhereInput): VideoSubtitlesConnection!
storageBucketOperatorMetadata(where: StorageBucketOperatorMetadataWhereInput, orderBy: [StorageBucketOperatorMetadataOrderByInput!], offset: Int, limit: Int): [StorageBucketOperatorMetadata!]!
storageBucketOperatorMetadataById(id: String!): StorageBucketOperatorMetadata
storageBucketOperatorMetadataByUniqueInput(where: WhereIdInput!): StorageBucketOperatorMetadata @deprecated(reason: "Use storageBucketOperatorMetadataById")
Expand Down Expand Up @@ -1036,13 +1036,18 @@ type Query {
distributionBucketFamilyByUniqueInput(where: WhereIdInput!): DistributionBucketFamily @deprecated(reason: "Use distributionBucketFamilyById")
distributionBucketFamiliesConnection(orderBy: [DistributionBucketFamilyOrderByInput!]!, after: String, first: Int, where: DistributionBucketFamilyWhereInput): DistributionBucketFamiliesConnection!
squidStatus: SquidStatus
squidVersion: SquidVersion!
}

type SquidStatus {
"""The height of the processed part of the chain"""
height: Int
}

type SquidVersion {
version: String!
}

type StorageBag {
"""Storage bag id"""
id: String!
Expand Down Expand Up @@ -1960,3 +1965,4 @@ input VideoSubtitleWhereInput {
input WhereIdInput {
id: String!
}

Loading