@themeparks/typelib 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/entities.types.d.ts +48 -0
- package/dist/types/entities.types.d.ts.map +1 -0
- package/dist/types/entities.types.js +135 -0
- package/dist/types/index.d.ts +8 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -2
- package/dist/types/livedata.types.d.ts +107 -0
- package/dist/types/livedata.types.d.ts.map +1 -0
- package/dist/types/livedata.types.js +313 -0
- package/dist/types/pricedata.types.d.ts +18 -0
- package/dist/types/pricedata.types.d.ts.map +1 -0
- package/dist/types/pricedata.types.js +56 -0
- package/dist/types/schedule.types.d.ts +31 -0
- package/dist/types/schedule.types.d.ts.map +1 -0
- package/dist/types/schedule.types.js +98 -0
- package/package.json +1 -1
- package/typesrc/entities.json +111 -0
- package/typesrc/livedata.json +257 -0
- package/typesrc/pricedata.json +38 -0
- package/typesrc/schedule.json +77 -0
- package/typesrc/v1.json +0 -25
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Schedule",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"ScheduleType": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"enum": [
|
|
9
|
+
"OPERATING",
|
|
10
|
+
"TICKETED_EVENT",
|
|
11
|
+
"PRIVATE_EVENT",
|
|
12
|
+
"EXTRA_HOURS",
|
|
13
|
+
"INFO"
|
|
14
|
+
],
|
|
15
|
+
"description": "Types of schedule entries for parks"
|
|
16
|
+
},
|
|
17
|
+
"ScheduleEntry": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": [
|
|
20
|
+
"date",
|
|
21
|
+
"type",
|
|
22
|
+
"openingTime",
|
|
23
|
+
"closingTime"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"date": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The date of the schedule entry, YYYY-MM-DD format",
|
|
29
|
+
"format": "date",
|
|
30
|
+
"example": "1992-04-12"
|
|
31
|
+
},
|
|
32
|
+
"type": {
|
|
33
|
+
"$ref": "#/properties/ScheduleType",
|
|
34
|
+
"description": "Type of schedule entry e.g. OPERATING, EXTRA_HOURS, etc."
|
|
35
|
+
},
|
|
36
|
+
"description": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Optional description of the schedule entry"
|
|
39
|
+
},
|
|
40
|
+
"openingTime": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "date-time",
|
|
43
|
+
"description": "Opening time for this schedule entry",
|
|
44
|
+
"example": "1992-04-12T09:00:00-07:00"
|
|
45
|
+
},
|
|
46
|
+
"closingTime": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": "date-time",
|
|
49
|
+
"description": "Closing time for this schedule entry",
|
|
50
|
+
"example": "1992-04-12T17:00:00-07:00"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"description": "Represents a single schedule entry"
|
|
54
|
+
},
|
|
55
|
+
"EntitySchedule": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"required": [
|
|
58
|
+
"id",
|
|
59
|
+
"schedule"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"id": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Identifier of the park entity this schedule belongs to"
|
|
65
|
+
},
|
|
66
|
+
"schedule": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"$ref": "#/properties/ScheduleEntry"
|
|
70
|
+
},
|
|
71
|
+
"description": "Array of schedule entries for the park"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"description": "Represents the schedule for a specific park entity"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
package/typesrc/v1.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "V1Root",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"properties": {
|
|
6
|
-
"V1RootResponse": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"required": ["success", "message", "version"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"success": {
|
|
11
|
-
"type": "boolean",
|
|
12
|
-
"description": "Whether the request was successful"
|
|
13
|
-
},
|
|
14
|
-
"message": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Welcome message for the API"
|
|
17
|
-
},
|
|
18
|
-
"version": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "API version number"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|