Skip to content
New issue

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

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

Already on GitHub? # to your account

Update data models #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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.
74 changes: 38 additions & 36 deletions lib/oa/AccessChannelUpdateSimulateAction.d.ts
Original file line number Diff line number Diff line change
@@ -26,7 +26,9 @@ export declare type AccessChannelUpdateSimulateAction = {
*/
description?: string;
/**
* 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;
/**
@@ -41,81 +43,81 @@ 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.
*/
startTime?: string;
/**
* The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
*/
instrument?: schema.ThingOrSubClass | 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.
* The result produced in the action. e.g. John wrote *a book*.
*/
agent?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
result?: schema.ThingOrSubClass | string;
/**
* Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
*/
participant?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
/**
* Indicates a target EntryPoint for an Action.
* For failed actions, more information on the cause of the failure.
*/
target?: schema.EntryPointOrSubClass | string;
error?: schema.ThingOrSubClass | 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 location of, for example, where an event is happening, where an organization is located, or where an action takes place.
*/
endTime?: string;
location?: schema.PostalAddressOrSubClass | string | schema.PlaceOrSubClass | schema.VirtualLocationOrSubClass;
/**
* For failed actions, more information on the cause of the failure.
* 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.
*/
error?: schema.ThingOrSubClass | string;
endTime?: string;
/**
* The result produced in the action. e.g. John wrote *a book*.
* The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
*/
result?: schema.ThingOrSubClass | string;
agent?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
/**
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
* Indicates a target EntryPoint for an Action.
*/
location?: schema.PlaceOrSubClass | string | schema.VirtualLocationOrSubClass | schema.PostalAddressOrSubClass;
target?: schema.EntryPointOrSubClass | 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.
* Indicates the current disposition of the Action.
*/
sameAs?: string;
actionStatus?: schema.ActionStatusTypeOrSubClass | string;
/**
* A CreativeWork or Event about this Thing.
* The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
*/
subjectOf?: schema.Event_OrSubClass | schema.CreativeWorkOrSubClass | string;
instrument?: schema.ThingOrSubClass | string;
/**
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
* 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.
*/
potentialAction?: schema.ActionOrSubClass | string;
startTime?: 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.
*/
mainEntityOfPage?: schema.CreativeWorkOrSubClass | string;
mainEntityOfPage?: string | schema.CreativeWorkOrSubClass;
/**
* 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.
*/
additionalType?: string;
/**
* URL of the item.
*/
url?: string;
/**
* An alias for the item.
*/
alternateName?: string;
/**
* URL of the item.
* 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.
*/
url?: string;
sameAs?: string;
/**
* An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
*/
image?: schema.ImageObjectOrSubClass | string;
potentialAction?: schema.ActionOrSubClass | string;
/**
* A CreativeWork or Event about this Thing.
*/
subjectOf?: schema.Event_OrSubClass | schema.CreativeWorkOrSubClass | 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.
*/
disambiguatingDescription?: string;
/**
* An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
*/
image?: schema.ImageObjectOrSubClass | string;
};
/**
* test:AccessChannelUpdateSimulateAction
30 changes: 15 additions & 15 deletions lib/oa/AccessChannelUpdateSimulateAction.js
Original file line number Diff line number Diff line change
@@ -16,30 +16,30 @@ const schema = require("../schema");
exports.AccessChannelUpdateSimulateActionJoiSchema = Joi.object({
'@type': Joi.string().valid('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(),
'@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()),
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()),
result: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), 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()),
endTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
error: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), 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()),
location: Joi.alternatives().try(Joi.lazy(() => schema.PostalAddressOrSubClassJoiSchema), Joi.string(), Joi.lazy(() => schema.PlaceOrSubClassJoiSchema), Joi.lazy(() => schema.VirtualLocationOrSubClassJoiSchema), Joi.string().uri()),
endTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
agent: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
target: Joi.alternatives().try(Joi.lazy(() => schema.EntryPointOrSubClassJoiSchema), Joi.string().uri()),
actionStatus: Joi.alternatives().try(Joi.lazy(() => schema.ActionStatusTypeOrSubClassJoiSchema), Joi.string().uri()),
instrument: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
startTime: Joi.alternatives().try(Joi.string(), Joi.string().isoDate()),
mainEntityOfPage: Joi.alternatives().try(Joi.string().uri(), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema)),
additionalType: Joi.string().uri(),
alternateName: Joi.string(),
url: Joi.string().uri(),
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
alternateName: Joi.string(),
sameAs: Joi.string().uri(),
potentialAction: Joi.alternatives().try(Joi.lazy(() => schema.ActionOrSubClassJoiSchema), Joi.string().uri()),
subjectOf: Joi.alternatives().try(Joi.lazy(() => schema.Event_OrSubClassJoiSchema), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
disambiguatingDescription: Joi.string(),
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
});
/**
* test:AccessChannelUpdateSimulateAction - Validation schema (w/ JOI)
Loading