Skip to content

Commit

Permalink
feat(schema): fix basic metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet committed Jun 1, 2018
1 parent 2a841e9 commit 6ada81d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 66 deletions.
1 change: 1 addition & 0 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = {
year: "2018",
packageName: "@react-finland/content-2018",
staticFilePath: "images",
websiteUrl: "https://react-finland.fi/",
breakfasts: require("./breakfasts"),
coffeeBreaks: require("./coffee-breaks"),
locations: resolveSocialLinks(require("./locations")),
Expand Down
138 changes: 72 additions & 66 deletions src/type-defs.js
Original file line number Diff line number Diff line change
@@ -1,111 +1,117 @@
module.exports = `
type Query {
breakfasts: [Session],
coffeeBreaks: [Session],
keynotes: [Session],
lightningTalks: [Session],
locations: [Contact],
lunches: [Session],
organizers: [Contact],
panels: [Session],
sponsors: [Contact],
partners: [Contact],
goldSponsors: [Contact],
silverSponsors: [Contact],
bronzeSponsors: [Contact],
pages: [Page],
page(id: String): Page,
presentations: [Session],
schedules: [Schedule],
speakers: [Contact],
talks: [Session],
tickets: [[Ticket]],
id: ID!
name: String!
year: String!
packageName: String!
staticFilePath: String!
websiteUrl: String!
breakfasts: [Session]
coffeeBreaks: [Session]
keynotes: [Session]
lightningTalks: [Session]
locations: [Contact]
lunches: [Session]
organizers: [Contact]
panels: [Session]
sponsors: [Contact]
partners: [Contact]
goldSponsors: [Contact]
silverSponsors: [Contact]
bronzeSponsors: [Contact]
pages: [Page]
page(id: String): Page
presentations: [Session]
schedules: [Schedule]
speakers: [Contact]
talks: [Session]
tickets: [[Ticket]]
workshops: [Session]
}
type Session {
day: String,
title: String,
description: String,
type: String,
speakers: [Contact],
tickets: [Ticket],
keywords: [String],
location: Contact,
day: String
title: String
description: String
type: String
speakers: [Contact]
tickets: [Ticket]
keywords: [String]
location: Contact
urls: SessionUrls
}
type SessionUrls {
web: String,
slides: String,
web: String
slides: String
video: String
}
type Page {
id: String!,
title: String!,
description: String!,
intro: String,
main: String,
id: String!
title: String!
description: String!
intro: String
main: String
secondary: String
}
type Contact {
name: String!,
about: String!,
image: String,
type: [String],
social: Social,
keywords: [String],
keynotes: [Session],
lightningTalks: [Session],
presentations: [Session],
talks: [Session],
workshops: [Session],
location: Location,
country: Country,
city: String,
name: String!
about: String!
image: String
type: [String]
social: Social
keywords: [String]
keynotes: [Session]
lightningTalks: [Session]
presentations: [Session]
talks: [Session]
workshops: [Session]
location: Location
country: Country
city: String
address: String
}
type Social {
homepage: String,
twitter: String,
github: String,
facebook: String,
medium: String,
instagram: String,
linkedin: String,
youtube: String,
homepage: String
twitter: String
github: String
facebook: String
medium: String
instagram: String
linkedin: String
youtube: String
vk: String
}
type Location {
country: Country,
city: String,
country: Country
city: String
address: String
}
type Country {
name: String,
name: String
code: String
}
type Schedule {
day: String,
day: String
intervals: [Interval]
}
type Interval {
begin: String,
end: String,
begin: String
end: String
sessions: [Session]
}
type Ticket {
name: String!,
amount: Int!,
currency: String!,
name: String!
amount: Int!
currency: String!
link: String
}
`;

0 comments on commit 6ada81d

Please sign in to comment.