Skip to content
Open
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
75 changes: 74 additions & 1 deletion apis/database.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ type Query {
"""
hygrothermalData(id: Uuid!, locale: Locale): HygrothermalData!

"""
Confer `Query#calorimetricData`.
"""
lifeCycleData(id: Uuid!, locale: Locale): LifeCycleData!

"""
Confer `Query#calorimetricData`.
"""
Expand Down Expand Up @@ -332,6 +337,18 @@ type Query {
before: Cursor
): HygrothermalDataConnection!

"""
Confer `Query#allCalorimetricData`.
"""
allLifeCycleData(
where: LifeCycleDataPropositionInput
locale: Locale
first: NonNegativeInt
after: Cursor
last: NonNegativeInt
before: Cursor
): LifeCycleDataConnection!

"""
Confer `Query#allCalorimetricData`.
"""
Expand Down Expand Up @@ -382,6 +399,14 @@ type Query {
locale: Locale
): Boolean!

"""
Confer `Query#hasCalorimetricData`.
"""
hasLifeCycleData(
where: LifeCycleDataPropositionInput
locale: Locale
): Boolean!

"""
Confer `Query#hasCalorimetricData`.
"""
Expand Down Expand Up @@ -825,6 +850,17 @@ input HygrothermalDataPropositionInput {
resources: GetHttpsResourcesPropositionInput
}

"""
See `DataPropositionInput`.
"""
input LifeCycleDataPropositionInput {
componentId: UuidPropositionInput
and: [LifeCycleDataPropositionInput!]
not: LifeCycleDataPropositionInput
or: [LifeCycleDataPropositionInput!]
resources: GetHttpsResourcesPropositionInput
}

"""
Proposition for values of enum type `OpticalComponentType`. Multiple
sub-propositions are combined conjunctively, where the conjunction of an empty
Expand Down Expand Up @@ -997,6 +1033,23 @@ type HygrothermalDataEdge {
node: HygrothermalData!
}

"""
See `DataConnection`.
"""
type LifeCycleDataConnection {
edges: [LifeCycleDataEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}

"""
See `DataEdge`.
"""
type LifeCycleDataEdge {
cursor: Cursor!
node: LifeCycleData!
}

"""
See `DataConnection`.
"""
Expand Down Expand Up @@ -1354,6 +1407,25 @@ type HygrothermalData implements Node & Data {
approval: ResponseApproval!
}

type LifeCycleData implements Node & Data {
id: ID!
uuid: Uuid!
timestamp: DateTime!
locale: Locale!
databaseId: Uuid!
componentId: Uuid!
name: String
description: String
warnings: [String!]!
creatorId: Uuid!
createdAt: DateTime!
appliedMethod: AppliedMethod!
resources: [GetHttpsResource!]!
resourceTree: GetHttpsResourceTree!
approvals: [DataApproval!]!
approval: ResponseApproval!
}

type PhotovoltaicData implements Node & Data {
id: ID!
uuid: Uuid!
Expand Down Expand Up @@ -1495,12 +1567,13 @@ type CrossDatabaseDataReference {
}

"""
Data kind, either calorimetric, hygrothermal, optical, or photovoltaic.
Data kind, either calorimetric, hygrothermal, lifeCycle, optical, or photovoltaic.
"""
enum DataKind {
CALORIMETRIC_DATA
GEOMETRIC_DATA
HYGROTHERMAL_DATA
LIFECYCLE_DATA
OPTICAL_DATA
PHOTOVOLTAIC_DATA
}
Expand Down
54 changes: 54 additions & 0 deletions apis/metabase.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,14 @@ type Database implements Node {
locale: Locale
where: HygrothermalDataPropositionInput
): HygrothermalDataConnection @cost(weight: "10")
allLifeCycleData(
after: String
before: String
first: NonNegativeInt
last: NonNegativeInt
locale: Locale
where: LifeCycleDataPropositionInput
): LifeCycleDataConnection @cost(weight: "10")
allOpticalData(
after: String
before: String
Expand Down Expand Up @@ -689,6 +697,10 @@ type Database implements Node {
locale: Locale
where: HygrothermalDataPropositionInput
): Boolean @cost(weight: "10")
hasLifeCycleData(
locale: Locale
where: LifeCycleDataPropositionInput
): Boolean @cost(weight: "10")
hasOpticalData(locale: Locale, where: OpticalDataPropositionInput): Boolean
@cost(weight: "10")
hasPhotovoltaicData(
Expand All @@ -697,6 +709,7 @@ type Database implements Node {
): Boolean @cost(weight: "10")
hygrothermalData(id: Uuid!, locale: Locale): HygrothermalData
@cost(weight: "10")
lifeCycleData(id: Uuid!, locale: Locale): LifeCycleData @cost(weight: "10")
id: ID!
locator: Url!
name: String!
Expand Down Expand Up @@ -1182,6 +1195,38 @@ type InstitutionsEdge {
node: Institution!
}

type LifeCycleData implements Data {
appliedMethod: AppliedMethod!
approvals: [DataApproval!]!
component: Component @cost(weight: "10")
componentId: Uuid!
createdAt: DateTime!
creator: Institution @cost(weight: "10")
creatorId: Uuid!
database: Database @cost(weight: "10")
databaseId: Uuid!
description: String
id: ID!
locale: Locale!
name: String
resources: [GetHttpsResource!]!
resourceTree: GetHttpsResourceTree!
timestamp: DateTime!
uuid: Uuid!
warnings: [String!]!
}

type LifeCycleDataConnection {
edges: [LifeCycleDataEdge!]!
pageInfo: PageInfo!
totalCount: NonNegativeInt!
}

type LifeCycleDataEdge {
cursor: String!
node: LifeCycleData!
}

type LoginUserError {
code: LoginUserErrorCode!
message: String!
Expand Down Expand Up @@ -3206,6 +3251,14 @@ input JsonValueKindOperationFilterInput {
notIn: [JsonValueKind!] @cost(weight: "10")
}

input LifeCycleDataPropositionInput {
and: [LifeCycleDataPropositionInput!]
componentId: UuidPropositionInput
not: LifeCycleDataPropositionInput
or: [LifeCycleDataPropositionInput!]
resources: GetHttpsResourcesPropositionInput
}

input ListComponentCategoryOperationFilterInput {
all: ComponentCategoryOperationFilterInput @cost(weight: "10")
none: ComponentCategoryOperationFilterInput @cost(weight: "10")
Expand Down Expand Up @@ -4018,6 +4071,7 @@ enum CreateOpenIdConnectApplicationErrorCode {
enum DataKind {
CALORIMETRIC_DATA
HYGROTHERMAL_DATA
LIFECYCLE_DATA
OPTICAL_DATA
PHOTOVOLTAIC_DATA
GEOMETRIC_DATA
Expand Down