Skip to content

Commit 502d612

Browse files
Update data models
1 parent 0535852 commit 502d612

File tree

3,006 files changed

+334611
-307169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,006 files changed

+334611
-307169
lines changed

lib/oa/AccessChannelUpdateSimulateAction.d.ts

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export declare type AccessChannelUpdateSimulateAction = {
2626
*/
2727
description?: string;
2828
/**
29-
* A unique url based identifier for the record
29+
* A unique URI-based identifier for the record.
30+
* `@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).
31+
* 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).
3032
*/
3133
'@id'?: string;
3234
/**
@@ -41,81 +43,81 @@ export declare type AccessChannelUpdateSimulateAction = {
4143
*/
4244
object?: oa.OrderOrSubClass | oa.Event_OrSubClass;
4345
/**
44-
* 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.
45-
*/
46-
startTime?: string;
47-
/**
48-
* The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
49-
*/
50-
instrument?: schema.ThingOrSubClass | string;
51-
/**
52-
* Indicates the current disposition of the Action.
53-
*/
54-
actionStatus?: schema.ActionStatusTypeOrSubClass | string;
55-
/**
56-
* The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
46+
* The result produced in the action. e.g. John wrote *a book*.
5747
*/
58-
agent?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
48+
result?: schema.ThingOrSubClass | string;
5949
/**
6050
* Other co-agents that participated in the action indirectly. e.g. John wrote a book with *Steve*.
6151
*/
6252
participant?: schema.PersonOrSubClass | schema.OrganizationOrSubClass | string;
6353
/**
64-
* Indicates a target EntryPoint for an Action.
54+
* For failed actions, more information on the cause of the failure.
6555
*/
66-
target?: schema.EntryPointOrSubClass | string;
56+
error?: schema.ThingOrSubClass | string;
6757
/**
68-
* 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.
58+
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
6959
*/
70-
endTime?: string;
60+
location?: schema.PostalAddressOrSubClass | string | schema.PlaceOrSubClass | schema.VirtualLocationOrSubClass;
7161
/**
72-
* For failed actions, more information on the cause of the failure.
62+
* 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.
7363
*/
74-
error?: schema.ThingOrSubClass | string;
64+
endTime?: string;
7565
/**
76-
* The result produced in the action. e.g. John wrote *a book*.
66+
* The direct performer or driver of the action (animate or inanimate). e.g. *John* wrote a book.
7767
*/
78-
result?: schema.ThingOrSubClass | string;
68+
agent?: schema.OrganizationOrSubClass | schema.PersonOrSubClass | string;
7969
/**
80-
* The location of, for example, where an event is happening, where an organization is located, or where an action takes place.
70+
* Indicates a target EntryPoint for an Action.
8171
*/
82-
location?: schema.PlaceOrSubClass | string | schema.VirtualLocationOrSubClass | schema.PostalAddressOrSubClass;
72+
target?: schema.EntryPointOrSubClass | string;
8373
/**
84-
* 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.
74+
* Indicates the current disposition of the Action.
8575
*/
86-
sameAs?: string;
76+
actionStatus?: schema.ActionStatusTypeOrSubClass | string;
8777
/**
88-
* A CreativeWork or Event about this Thing.
78+
* The object that helped the agent perform the action. e.g. John wrote a book with *a pen*.
8979
*/
90-
subjectOf?: schema.Event_OrSubClass | schema.CreativeWorkOrSubClass | string;
80+
instrument?: schema.ThingOrSubClass | string;
9181
/**
92-
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
82+
* 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.
9383
*/
94-
potentialAction?: schema.ActionOrSubClass | string;
84+
startTime?: string;
9585
/**
9686
* 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.
9787
*/
98-
mainEntityOfPage?: schema.CreativeWorkOrSubClass | string;
88+
mainEntityOfPage?: string | schema.CreativeWorkOrSubClass;
9989
/**
10090
* 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.
10191
*/
10292
additionalType?: string;
93+
/**
94+
* URL of the item.
95+
*/
96+
url?: string;
10397
/**
10498
* An alias for the item.
10599
*/
106100
alternateName?: string;
107101
/**
108-
* URL of the item.
102+
* 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.
109103
*/
110-
url?: string;
104+
sameAs?: string;
111105
/**
112-
* An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
106+
* Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
113107
*/
114-
image?: schema.ImageObjectOrSubClass | string;
108+
potentialAction?: schema.ActionOrSubClass | string;
109+
/**
110+
* A CreativeWork or Event about this Thing.
111+
*/
112+
subjectOf?: schema.Event_OrSubClass | schema.CreativeWorkOrSubClass | string;
115113
/**
116114
* 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.
117115
*/
118116
disambiguatingDescription?: string;
117+
/**
118+
* An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].
119+
*/
120+
image?: schema.ImageObjectOrSubClass | string;
119121
};
120122
/**
121123
* test:AccessChannelUpdateSimulateAction

lib/oa/AccessChannelUpdateSimulateAction.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@ const schema = require("../schema");
1616
exports.AccessChannelUpdateSimulateActionJoiSchema = Joi.object({
1717
'@type': Joi.string().valid('AccessChannelUpdateSimulateAction').required(),
1818
'@context': Joi.alternatives().try([Joi.string(), Joi.array().items(Joi.string())]),
19-
identifier: Joi.alternatives().try(Joi.lazy(() => schema.PropertyValueOrSubClassJoiSchema), Joi.string().uri(), Joi.string()),
19+
identifier: Joi.alternatives().try(Joi.lazy(() => schema.PropertyValueOrSubClassJoiSchema), Joi.string(), Joi.string().uri()),
2020
name: Joi.string(),
2121
description: Joi.string(),
2222
'@id': Joi.string().uri(),
2323
object: Joi.alternatives().try(Joi.lazy(() => oa.OrderOrSubClassJoiSchema), Joi.lazy(() => oa.Event_OrSubClassJoiSchema)),
24-
startTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
25-
instrument: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
26-
actionStatus: Joi.alternatives().try(Joi.lazy(() => schema.ActionStatusTypeOrSubClassJoiSchema), Joi.string().uri()),
27-
agent: Joi.alternatives().try(Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.string().uri()),
24+
result: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
2825
participant: Joi.alternatives().try(Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.string().uri()),
29-
target: Joi.alternatives().try(Joi.lazy(() => schema.EntryPointOrSubClassJoiSchema), Joi.string().uri()),
30-
endTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
3126
error: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
32-
result: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
33-
location: Joi.alternatives().try(Joi.lazy(() => schema.PlaceOrSubClassJoiSchema), Joi.string(), Joi.lazy(() => schema.VirtualLocationOrSubClassJoiSchema), Joi.lazy(() => schema.PostalAddressOrSubClassJoiSchema), Joi.string().uri()),
34-
sameAs: Joi.string().uri(),
35-
subjectOf: Joi.alternatives().try(Joi.lazy(() => schema.Event_OrSubClassJoiSchema), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
36-
potentialAction: Joi.alternatives().try(Joi.lazy(() => schema.ActionOrSubClassJoiSchema), Joi.string().uri()),
37-
mainEntityOfPage: Joi.alternatives().try(Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
27+
location: Joi.alternatives().try(Joi.lazy(() => schema.PostalAddressOrSubClassJoiSchema), Joi.string(), Joi.lazy(() => schema.PlaceOrSubClassJoiSchema), Joi.lazy(() => schema.VirtualLocationOrSubClassJoiSchema), Joi.string().uri()),
28+
endTime: Joi.alternatives().try(Joi.string().isoDate(), Joi.string()),
29+
agent: Joi.alternatives().try(Joi.lazy(() => schema.OrganizationOrSubClassJoiSchema), Joi.lazy(() => schema.PersonOrSubClassJoiSchema), Joi.string().uri()),
30+
target: Joi.alternatives().try(Joi.lazy(() => schema.EntryPointOrSubClassJoiSchema), Joi.string().uri()),
31+
actionStatus: Joi.alternatives().try(Joi.lazy(() => schema.ActionStatusTypeOrSubClassJoiSchema), Joi.string().uri()),
32+
instrument: Joi.alternatives().try(Joi.lazy(() => schema.ThingOrSubClassJoiSchema), Joi.string().uri()),
33+
startTime: Joi.alternatives().try(Joi.string(), Joi.string().isoDate()),
34+
mainEntityOfPage: Joi.alternatives().try(Joi.string().uri(), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema)),
3835
additionalType: Joi.string().uri(),
39-
alternateName: Joi.string(),
4036
url: Joi.string().uri(),
41-
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
37+
alternateName: Joi.string(),
38+
sameAs: Joi.string().uri(),
39+
potentialAction: Joi.alternatives().try(Joi.lazy(() => schema.ActionOrSubClassJoiSchema), Joi.string().uri()),
40+
subjectOf: Joi.alternatives().try(Joi.lazy(() => schema.Event_OrSubClassJoiSchema), Joi.lazy(() => schema.CreativeWorkOrSubClassJoiSchema), Joi.string().uri()),
4241
disambiguatingDescription: Joi.string(),
42+
image: Joi.alternatives().try(Joi.lazy(() => schema.ImageObjectOrSubClassJoiSchema), Joi.string().uri()),
4343
});
4444
/**
4545
* test:AccessChannelUpdateSimulateAction - Validation schema (w/ JOI)

0 commit comments

Comments
 (0)