Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
89 changes: 52 additions & 37 deletions lib/oa/AccessChannelUpdateSimulateAction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as schema from '../schema';
* This type is derived from https://schema.org/Action, which means that any of this type's properties within schema.org may also be used.
*/
export declare type AccessChannelUpdateSimulateAction = {
'@type': 'AccessChannelUpdateSimulateAction';
'@type': 'test:AccessChannelUpdateSimulateAction';
'@context'?: string | string[];
/**
* The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.
Expand All @@ -24,9 +24,11 @@ export declare type AccessChannelUpdateSimulateAction = {
/**
* A description of the item.
*/
description?: string;
description?: string | schema.TextObjectOrSubClass;
/**
* A unique url based identifier for the record
* A unique URI-based identifier for the record.
* `@id` properties are used as identifiers for compatibility with JSON-LD. The value of such a property must always be an absolute URI that provides a stable globally unique identifier for the resource, as described in [RFC3986](https://tools.ietf.org/html/rfc3986).
* The primary purpose of the URI format in this context is to provide natural namespacing for the identifier. Hence, the URI itself may not resolve to a valid endpoint, but must use a domain name controlled by the resource owner (the organisation responsible for the OpenActive open data feed).
*/
'@id'?: string;
/**
Expand All @@ -41,81 +43,94 @@ export declare type AccessChannelUpdateSimulateAction = {
*/
object?: oa.OrderOrSubClass | oa.Event_OrSubClass;
/**
* The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. e.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
* Description of the process by which the action was performed.
*/
startTime?: string;
/**
* The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
*/
instrument?: schema.ThingOrSubClass | string;
actionProcess?: schema.HowToOrSubClass | string;
/**
* Indicates the current disposition of the Action.
*/
actionStatus?: schema.ActionStatusTypeOrSubClass | string;
/**
* The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
*/
agent?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
/**
* Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
* The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.
*/
participant?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
agent?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
/**
* Indicates a target EntryPoint for an Action.
*/
target?: schema.EntryPointOrSubClass | string;
/**
* The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. e.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
* The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it's the time offset of the end of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*/
endTime?: string;
/**
* For failed actions, more information on the cause of the failure.
* For failed actions, more information on the cause of the failure. Consider using the Error type.
*/
error?: schema.ThingOrSubClass | string;
/**
* The result produced in the action. e.g. John wrote *a book*.
* The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.
*/
result?: schema.ThingOrSubClass | string;
instrument?: schema.ThingOrSubClass | string;
/**
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
*/
location?: schema.PlaceOrSubClass | string | schema.VirtualLocationOrSubClass | schema.PostalAddressOrSubClass;
location?: schema.PlaceOrSubClass | schema.PostalAddressOrSubClass | string | schema.VirtualLocationOrSubClass;
/**
* URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
* Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.
*/
sameAs?: string;
participant?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
/**
* A CreativeWork or Event about this Thing.
* The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
*/
subjectOf?: schema.Event_OrSubClass | schema.CreativeWorkOrSubClass | string;
provider?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
/**
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
* The result produced in the action. E.g. John wrote *a book*.
*/
potentialAction?: schema.ActionOrSubClass | string;
result?: schema.ThingOrSubClass | string;
/**
* Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.
* The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it's the time offset of the start of a clip within a larger file.\n\nNote that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.
*/
mainEntityOfPage?: schema.CreativeWorkOrSubClass | string;
startTime?: string;
/**
* Indicates a target EntryPoint, or url, for an Action.
*/
target?: schema.EntryPointOrSubClass | string;
/**
* An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.
* An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the
* use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org <a href="https://schema.org/docs/styleguide.html">style guide</a>.
*/
additionalType?: string;
/**
* An alias for the item.
*/
alternateName?: string;
/**
* URL of the item.
* A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
*/
url?: string;
disambiguatingDescription?: string;
/**
* An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
*/
image?: schema.ImageObjectOrSubClass | string;
/**
* A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
* Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.
*/
disambiguatingDescription?: string;
mainEntityOfPage?: schema.CreativeWorkOrSubClass | string;
/**
* A person or organization who owns this Thing.
*/
owner?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
/**
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
*/
potentialAction?: schema.ActionOrSubClass | string;
/**
* URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
*/
sameAs?: string;
/**
* A CreativeWork or Event about this Thing.
*/
subjectOf?: schema.CreativeWorkOrSubClass | schema.Event_OrSubClass | string;
/**
* URL of the item.
*/
url?: string;
};
/**
* test:AccessChannelUpdateSimulateAction
Expand Down
35 changes: 19 additions & 16 deletions lib/oa/AccessChannelUpdateSimulateAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,35 @@ const schema = require("../schema");
* This type is derived from https://schema.org/Action, which means that any of this type's properties within schema.org may also be used.
*/
exports.AccessChannelUpdateSimulateActionJoiSchema = Joi.object({
'@type': Joi.string().valid('AccessChannelUpdateSimulateAction').required(),
'@type': Joi.string().valid('test:AccessChannelUpdateSimulateAction').required(),
'@context': Joi.alternatives().try([Joi.string(), Joi.array().items(Joi.string())]),
identifier: Joi.alternatives().try(Joi.lazy(() => schema.PropertyValueOrSubClassJoiSchema), Joi.string().uri(), Joi.string()),
identifier: Joi.alternatives().try(Joi.lazy(() => schema.PropertyValueOrSubClassJoiSchema), Joi.string(), Joi.string().uri()),
name: Joi.string(),
description: Joi.string(),
description: Joi.alternatives().try(Joi.string(), Joi.lazy(() => schema.TextObjectOrSubClassJoiSchema), Joi.string().uri()),
'@id': Joi.string().uri(),
object: Joi.alternatives().try(Joi.lazy(() => oa.OrderOrSubClassJoiSchema), Joi.lazy(() => oa.Event_OrSubClassJoiSchema)),
startTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
instrument: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
actionProcess: Joi.alternatives().try(Joi.lazy(() => schema.HowToOrSubClassJoiSchema), Joi.string().uri()),
actionStatus: Joi.alternatives().try(Joi.lazy(() => schema.ActionStatusTypeOrSubClassJoiSchema), Joi.string().uri()),
agent: Joi.alternatives().try(Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.string().uri()),
participant: Joi.alternatives().try(Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.string().uri()),
target: Joi.alternatives().try(Joi.lazy(() => schema.EntryPointOrSubClassJoiSchema), Joi.string().uri()),
agent: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
endTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
error: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
instrument: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
location: Joi.alternatives().try(Joi.lazy(() => schema.PlaceOrSubClassJoiSchema), Joi.lazy(() => schema.PostalAddressOrSubClassJoiSchema), Joi.string(), Joi.lazy(() => schema.VirtualLocationOrSubClassJoiSchema), Joi.string().uri()),
participant: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
provider: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
result: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
location: Joi.alternatives().try(Joi.lazy(() => schema.PlaceOrSubClassJoiSchema), Joi.string(), Joi.lazy(() => schema.VirtualLocationOrSubClassJoiSchema), Joi.lazy(() => schema.PostalAddressOrSubClassJoiSchema), Joi.string().uri()),
sameAs: Joi.string().uri(),
subjectOf: Joi.alternatives().try(Joi.lazy(() => schema.Event_OrSubClassJoiSchema), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
potentialAction: Joi.alternatives().try(Joi.lazy(() => schema.ActionOrSubClassJoiSchema), Joi.string().uri()),
mainEntityOfPage: Joi.alternatives().try(Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
additionalType: Joi.string().uri(),
startTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
target: Joi.alternatives().try(Joi.lazy(() => schema.EntryPointOrSubClassJoiSchema), Joi.string().uri()),
additionalType: Joi.alternatives().try(Joi.string(), Joi.string().uri()),
alternateName: Joi.string(),
url: Joi.string().uri(),
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
disambiguatingDescription: Joi.string(),
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
mainEntityOfPage: Joi.alternatives().try(Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
owner: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
potentialAction: Joi.alternatives().try(Joi.lazy(() => schema.ActionOrSubClassJoiSchema), Joi.string().uri()),
sameAs: Joi.string().uri(),
subjectOf: Joi.alternatives().try(Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.lazy(() => schema.Event_OrSubClassJoiSchema), Joi.string().uri()),
url: Joi.string().uri(),
});
/**
* test:AccessChannelUpdateSimulateAction - Validation schema (w/ JOI)
Expand Down
Loading
Loading