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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions lib/openactive/enums/property_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :ActionApplication, "https://schema.org/actionApplication"
new :ActionOption, "https://schema.org/actionOption"
new :ActionPlatform, "https://schema.org/actionPlatform"
new :ActionProcess, "https://schema.org/actionProcess"
new :ActionStatus, "https://schema.org/actionStatus"
new :ActionableFeedbackPolicy, "https://schema.org/actionableFeedbackPolicy"
new :ActiveIngredient, "https://schema.org/activeIngredient"
Expand All @@ -133,6 +134,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :Affiliation, "https://schema.org/affiliation"
new :AfterMedia, "https://schema.org/afterMedia"
new :Agent, "https://schema.org/agent"
new :AgentInteractionStatistic, "https://schema.org/agentInteractionStatistic"
new :AggregateRating, "https://schema.org/aggregateRating"
new :Aircraft, "https://schema.org/aircraft"
new :Album, "https://schema.org/album"
Expand Down Expand Up @@ -208,6 +210,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :Audience, "https://schema.org/audience"
new :AudienceType, "https://schema.org/audienceType"
new :Audio, "https://schema.org/audio"
new :AuditDate, "https://schema.org/auditDate"
new :Authenticator, "https://schema.org/authenticator"
new :Author, "https://schema.org/author"
new :Availability, "https://schema.org/availability"
Expand Down Expand Up @@ -305,6 +308,9 @@ class PropertyEnumeration < TypesafeEnum::Base
new :Category, "https://schema.org/category"
new :CauseOf, "https://schema.org/causeOf"
new :CcRecipient, "https://schema.org/ccRecipient"
new :CertificationIdentification, "https://schema.org/certificationIdentification"
new :CertificationRating, "https://schema.org/certificationRating"
new :CertificationStatus, "https://schema.org/certificationStatus"
new :Character, "https://schema.org/character"
new :CharacterAttribute, "https://schema.org/characterAttribute"
new :CharacterName, "https://schema.org/characterName"
Expand Down Expand Up @@ -338,6 +344,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :Collection, "https://schema.org/collection"
new :CollectionSize, "https://schema.org/collectionSize"
new :Color, "https://schema.org/color"
new :ColorSwatch, "https://schema.org/colorSwatch"
new :Colorist, "https://schema.org/colorist"
new :Comment, "https://schema.org/comment"
new :CommentCount, "https://schema.org/commentCount"
Expand Down Expand Up @@ -463,6 +470,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :Diet, "https://schema.org/diet"
new :DietFeatures, "https://schema.org/dietFeatures"
new :DifferentialDiagnosis, "https://schema.org/differentialDiagnosis"
new :DigitalSourceType, "https://schema.org/digitalSourceType"
new :DirectApply, "https://schema.org/directApply"
new :Director, "https://schema.org/director"
new :Directors, "https://schema.org/directors"
Expand Down Expand Up @@ -669,6 +677,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :HasBioPolymerSequence, "https://schema.org/hasBioPolymerSequence"
new :HasBroadcastChannel, "https://schema.org/hasBroadcastChannel"
new :HasCategoryCode, "https://schema.org/hasCategoryCode"
new :HasCertification, "https://schema.org/hasCertification"
new :HasCourse, "https://schema.org/hasCourse"
new :HasCourseInstance, "https://schema.org/hasCourseInstance"
new :HasCredential, "https://schema.org/hasCredential"
Expand All @@ -678,9 +687,11 @@ class PropertyEnumeration < TypesafeEnum::Base
new :HasDriveThroughService, "https://schema.org/hasDriveThroughService"
new :HasEnergyConsumptionDetails, "https://schema.org/hasEnergyConsumptionDetails"
new :HasEnergyEfficiencyCategory, "https://schema.org/hasEnergyEfficiencyCategory"
new :HasGS1DigitalLink, "https://schema.org/hasGS1DigitalLink"
new :HasHealthAspect, "https://schema.org/hasHealthAspect"
new :HasMap, "https://schema.org/hasMap"
new :HasMeasurement, "https://schema.org/hasMeasurement"
new :HasMemberProgram, "https://schema.org/hasMemberProgram"
new :HasMenu, "https://schema.org/hasMenu"
new :HasMenuItem, "https://schema.org/hasMenuItem"
new :HasMenuSection, "https://schema.org/hasMenuSection"
Expand All @@ -691,6 +702,9 @@ class PropertyEnumeration < TypesafeEnum::Base
new :HasPOS, "https://schema.org/hasPOS"
new :HasPart, "https://schema.org/hasPart"
new :HasRepresentation, "https://schema.org/hasRepresentation"
new :HasTierBenefit, "https://schema.org/hasTierBenefit"
new :HasTierRequirement, "https://schema.org/hasTierRequirement"
new :HasTiers, "https://schema.org/hasTiers"
new :HasVariant, "https://schema.org/hasVariant"
new :Headline, "https://schema.org/headline"
new :HealthCondition, "https://schema.org/healthCondition"
Expand Down Expand Up @@ -792,6 +806,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :IsRelatedTo, "https://schema.org/isRelatedTo"
new :IsResizable, "https://schema.org/isResizable"
new :IsSimilarTo, "https://schema.org/isSimilarTo"
new :IsTierOf, "https://schema.org/isTierOf"
new :IsUnlabelledFallback, "https://schema.org/isUnlabelledFallback"
new :IsVariantOf, "https://schema.org/isVariantOf"
new :Isbn, "https://schema.org/isbn"
Expand Down Expand Up @@ -1056,6 +1071,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :PaymentDueDate, "https://schema.org/paymentDueDate"
new :PaymentMethod, "https://schema.org/paymentMethod"
new :PaymentMethodId, "https://schema.org/paymentMethodId"
new :PaymentMethodType, "https://schema.org/paymentMethodType"
new :PaymentStatus, "https://schema.org/paymentStatus"
new :PaymentUrl, "https://schema.org/paymentUrl"
new :Penciler, "https://schema.org/penciler"
Expand Down Expand Up @@ -1097,6 +1113,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :PostalCodeRange, "https://schema.org/postalCodeRange"
new :PotentialAction, "https://schema.org/potentialAction"
new :PotentialUse, "https://schema.org/potentialUse"
new :PracticesAt, "https://schema.org/practicesAt"
new :PreOp, "https://schema.org/preOp"
new :PredecessorOf, "https://schema.org/predecessorOf"
new :PregnancyCategory, "https://schema.org/pregnancyCategory"
Expand Down Expand Up @@ -1133,6 +1150,7 @@ class PropertyEnumeration < TypesafeEnum::Base
new :ProductionCompany, "https://schema.org/productionCompany"
new :ProductionDate, "https://schema.org/productionDate"
new :ProficiencyLevel, "https://schema.org/proficiencyLevel"
new :Program, "https://schema.org/program"
new :ProgramMembershipUsed, "https://schema.org/programMembershipUsed"
new :ProgramName, "https://schema.org/programName"
new :ProgramPrerequisites, "https://schema.org/programPrerequisites"
Expand Down Expand Up @@ -1473,13 +1491,15 @@ class PropertyEnumeration < TypesafeEnum::Base
new :UpvoteCount, "https://schema.org/upvoteCount"
new :Url, "https://schema.org/url"
new :UrlTemplate, "https://schema.org/urlTemplate"
new :UsNPI, "https://schema.org/usNPI"
new :UsageInfo, "https://schema.org/usageInfo"
new :UsedToDiagnose, "https://schema.org/usedToDiagnose"
new :UserInteractionCount, "https://schema.org/userInteractionCount"
new :UsesDevice, "https://schema.org/usesDevice"
new :UsesHealthPlanIdStandard, "https://schema.org/usesHealthPlanIdStandard"
new :Utterances, "https://schema.org/utterances"
new :ValidFor, "https://schema.org/validFor"
new :ValidForMemberTier, "https://schema.org/validForMemberTier"
new :ValidFrom, "https://schema.org/validFrom"
new :ValidIn, "https://schema.org/validIn"
new :ValidThrough, "https://schema.org/validThrough"
Expand Down
14 changes: 7 additions & 7 deletions lib/openactive/enums/schema/adult_oriented_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ module Enums
module Schema
# Enumeration of considerations that make a product relevant or potentially restricted for adults only.
class AdultOrientedEnumeration < TypesafeEnum::Base
new :ReducedRelevanceForChildrenConsideration, "https://schema.org/ReducedRelevanceForChildrenConsideration"
new :SexualContentConsideration, "https://schema.org/SexualContentConsideration"
new :ViolenceConsideration, "https://schema.org/ViolenceConsideration"
new :TobaccoNicotineConsideration, "https://schema.org/TobaccoNicotineConsideration"
new :AlcoholConsideration, "https://schema.org/AlcoholConsideration"
new :DangerousGoodConsideration, "https://schema.org/DangerousGoodConsideration"
new :NarcoticConsideration, "https://schema.org/NarcoticConsideration"
new :WeaponConsideration, "https://schema.org/WeaponConsideration"
new :TobaccoNicotineConsideration, "https://schema.org/TobaccoNicotineConsideration"
new :SexualContentConsideration, "https://schema.org/SexualContentConsideration"
new :UnclassifiedAdultConsideration, "https://schema.org/UnclassifiedAdultConsideration"
new :HealthcareConsideration, "https://schema.org/HealthcareConsideration"
new :NarcoticConsideration, "https://schema.org/NarcoticConsideration"
new :AlcoholConsideration, "https://schema.org/AlcoholConsideration"
new :ViolenceConsideration, "https://schema.org/ViolenceConsideration"
new :ReducedRelevanceForChildrenConsideration, "https://schema.org/ReducedRelevanceForChildrenConsideration"
new :WeaponConsideration, "https://schema.org/WeaponConsideration"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/book_format_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Enums
module Schema
# The publication format of the book.
class BookFormatType < TypesafeEnum::Base
new :GraphicNovel, "https://schema.org/GraphicNovel"
new :AudiobookFormat, "https://schema.org/AudiobookFormat"
new :GraphicNovel, "https://schema.org/GraphicNovel"
new :EBook, "https://schema.org/EBook"
new :Paperback, "https://schema.org/Paperback"
new :Hardcover, "https://schema.org/Hardcover"
new :Paperback, "https://schema.org/Paperback"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/car_usage_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
module Schema
# A value indicating a special usage of a car, e.g. commercial rental, driving school, or as a taxi.
class CarUsageType < TypesafeEnum::Base
new :TaxiVehicleUsage, "https://schema.org/TaxiVehicleUsage"
new :RentalVehicleUsage, "https://schema.org/RentalVehicleUsage"
new :DrivingSchoolVehicleUsage, "https://schema.org/DrivingSchoolVehicleUsage"
new :TaxiVehicleUsage, "https://schema.org/TaxiVehicleUsage"
end
end
end
Expand Down
13 changes: 13 additions & 0 deletions lib/openactive/enums/schema/certification_status_enumeration.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'typesafe_enum'

module OpenActive
module Enums
module Schema
# Enumerates the different statuses of a Certification (Active and Inactive).
class CertificationStatusEnumeration < TypesafeEnum::Base
new :CertificationActive, "https://schema.org/CertificationActive"
new :CertificationInactive, "https://schema.org/CertificationInactive"
end
end
end
end
10 changes: 5 additions & 5 deletions lib/openactive/enums/schema/day_of_week.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ module Schema
# Originally, URLs from [GoodRelations](http://purl.org/goodrelations/v1) were used (for [[Monday]], [[Tuesday]], [[Wednesday]], [[Thursday]], [[Friday]], [[Saturday]], [[Sunday]] plus a special entry for [[PublicHolidays]]); these have now been integrated directly into schema.org.
#
class DayOfWeek < TypesafeEnum::Base
new :Sunday, "https://schema.org/Sunday"
new :Tuesday, "https://schema.org/Tuesday"
new :PublicHolidays, "https://schema.org/PublicHolidays"
new :Wednesday, "https://schema.org/Wednesday"
new :Monday, "https://schema.org/Monday"
new :Friday, "https://schema.org/Friday"
new :Thursday, "https://schema.org/Thursday"
new :Saturday, "https://schema.org/Saturday"
new :Friday, "https://schema.org/Friday"
new :Wednesday, "https://schema.org/Wednesday"
new :PublicHolidays, "https://schema.org/PublicHolidays"
new :Tuesday, "https://schema.org/Tuesday"
new :Sunday, "https://schema.org/Sunday"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
module Schema
# A type of permission which can be granted for accessing a digital document.
class DigitalDocumentPermissionType < TypesafeEnum::Base
new :WritePermission, "https://schema.org/WritePermission"
new :ReadPermission, "https://schema.org/ReadPermission"
new :CommentPermission, "https://schema.org/CommentPermission"
new :WritePermission, "https://schema.org/WritePermission"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/openactive/enums/schema/digital_platform_enumeration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Enums
module Schema
# Enumerates some common technology platforms, for use with properties such as [[actionPlatform]]. It is not supposed to be comprehensive - when a suitable code is not enumerated here, textual or URL values can be used instead. These codes are at a fairly high level and do not deal with versioning and other nuance. Additional codes can be suggested [in github](https://github.com/schemaorg/schemaorg/issues/3057).
class DigitalPlatformEnumeration < TypesafeEnum::Base
new :MobileWebPlatform, "https://schema.org/MobileWebPlatform"
new :AndroidPlatform, "https://schema.org/AndroidPlatform"
new :IOSPlatform, "https://schema.org/IOSPlatform"
new :MobileWebPlatform, "https://schema.org/MobileWebPlatform"
new :GenericWebPlatform, "https://schema.org/GenericWebPlatform"
new :DesktopWebPlatform, "https://schema.org/DesktopWebPlatform"
new :GenericWebPlatform, "https://schema.org/GenericWebPlatform"
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Enums
module Schema
# An EventAttendanceModeEnumeration value is one of potentially several modes of organising an event, relating to whether it is online or offline.
class EventAttendanceModeEnumeration < TypesafeEnum::Base
new :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode"
new :OfflineEventAttendanceMode, "https://schema.org/OfflineEventAttendanceMode"
new :OnlineEventAttendanceMode, "https://schema.org/OnlineEventAttendanceMode"
new :MixedEventAttendanceMode, "https://schema.org/MixedEventAttendanceMode"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/game_play_mode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module Schema
# Indicates whether this game is multi-player, co-op or single-player.
class GamePlayMode < TypesafeEnum::Base
new :CoOp, "https://schema.org/CoOp"
new :MultiPlayer, "https://schema.org/MultiPlayer"
new :SinglePlayer, "https://schema.org/SinglePlayer"
new :MultiPlayer, "https://schema.org/MultiPlayer"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/openactive/enums/schema/gender_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module Enums
module Schema
# An enumeration of genders.
class GenderType < TypesafeEnum::Base
new :Male, "https://schema.org/Male"
new :Female, "https://schema.org/Female"
new :Male, "https://schema.org/Male"
end
end
end
Expand Down
10 changes: 5 additions & 5 deletions lib/openactive/enums/schema/government_benefits_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module Enums
module Schema
# GovernmentBenefitsType enumerates several kinds of government benefits to support the COVID-19 situation. Note that this structure may not capture all benefits offered.
class GovernmentBenefitsType < TypesafeEnum::Base
new :ParentalSupport, "https://schema.org/ParentalSupport"
new :OneTimePayments, "https://schema.org/OneTimePayments"
new :DisabilitySupport, "https://schema.org/DisabilitySupport"
new :UnemploymentSupport, "https://schema.org/UnemploymentSupport"
new :BasicIncome, "https://schema.org/BasicIncome"
new :HealthCare, "https://schema.org/HealthCare"
new :OneTimePayments, "https://schema.org/OneTimePayments"
new :PaidLeave, "https://schema.org/PaidLeave"
new :ParentalSupport, "https://schema.org/ParentalSupport"
new :BusinessSupport, "https://schema.org/BusinessSupport"
new :PaidLeave, "https://schema.org/PaidLeave"
new :HealthCare, "https://schema.org/HealthCare"
new :UnemploymentSupport, "https://schema.org/UnemploymentSupport"
end
end
end
Expand Down
Loading