@universis/accommodation 1.1.2 → 1.1.5

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.
@@ -8,7 +8,7 @@
8
8
  "sealed": false,
9
9
  "implements": "Place",
10
10
  "classPath": "./models/AccommodationPlace",
11
- "version": "1.0",
11
+ "version": "1.1",
12
12
  "fields": [
13
13
  {
14
14
  "@id": "http://schema.org/identifier",
@@ -25,13 +25,6 @@
25
25
  "type": "Boolean",
26
26
  "default": true
27
27
  },
28
- {
29
- "name": "numberOfRooms",
30
- "description": "The number of rooms (excluding bathrooms and closets) of the accommodation.",
31
- "type": "Number",
32
- "nullable": false,
33
- "editable": true
34
- },
35
28
  {
36
29
  "@id": "http://schema.org/events",
37
30
  "name": "events",
@@ -56,6 +49,8 @@
56
49
  "name": "address",
57
50
  "title": "address",
58
51
  "description": "Physical address of the item.",
52
+ "nested": true,
53
+ "many": true,
59
54
  "type": "PostalAddress",
60
55
  "mapping": {
61
56
  "parentModel": "AccommodationPlace",
@@ -73,20 +68,20 @@
73
68
  "description": "The geo coordinates of the accommodation.",
74
69
  "type": "Json",
75
70
  "additionalType": "GeoCoordinates"
76
- },
77
- {
71
+ },
72
+ {
78
73
  "name": "locales",
79
74
  "type": "AccommodationPlaceLocale",
80
75
  "mapping": {
81
- "associationType": "association",
82
- "cascade": "delete",
83
- "parentModel": "AccommodationPlace",
84
- "parentField": "id",
85
- "childModel": "AccommodationPlaceLocale",
86
- "childField": "object"
76
+ "associationType": "association",
77
+ "cascade": "delete",
78
+ "parentModel": "AccommodationPlace",
79
+ "parentField": "id",
80
+ "childModel": "AccommodationPlaceLocale",
81
+ "childField": "object"
87
82
  }
88
- },
89
- {
83
+ },
84
+ {
90
85
  "name": "locale",
91
86
  "type": "AccommodationPlaceLocale",
92
87
  "readonly": true,
@@ -95,35 +90,47 @@
95
90
  "expandable": true,
96
91
  "multiplicity": "ZeroOrOne",
97
92
  "mapping": {
98
- "associationType": "association",
99
- "cascade": "delete",
100
- "parentModel": "AccommodationPlace",
101
- "parentField": "id",
102
- "childModel": "AccommodationPlaceLocale",
103
- "childField": "object",
104
- "options": {
105
- "$filter": "inLanguage eq lang()",
106
- "$first": true
107
- }
93
+ "associationType": "association",
94
+ "cascade": "delete",
95
+ "parentModel": "AccommodationPlace",
96
+ "parentField": "id",
97
+ "childModel": "AccommodationPlaceLocale",
98
+ "childField": "object",
99
+ "options": {
100
+ "$filter": "inLanguage eq lang()",
101
+ "$first": true
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "name": "rooms",
107
+ "type": "AccommodationRoom",
108
+ "mapping": {
109
+ "associationType": "association",
110
+ "cascade": "delete",
111
+ "parentModel": "AccommodationPlace",
112
+ "parentField": "id",
113
+ "childModel": "AccommodationRoom",
114
+ "childField": "containedInPlace"
108
115
  }
109
- }
116
+ }
110
117
  ],
111
118
  "eventListeners": [
112
119
  {
113
- "type": "@themost/data/previous-state-listener"
120
+ "type": "@themost/data/previous-state-listener"
114
121
  },
115
122
  {
116
- "type": "./listeners/data-localization"
123
+ "type": "./listeners/data-localization"
117
124
  }
118
125
  ],
119
126
  "constraints": [
120
- {
121
- "type": "unique",
122
- "fields": [
123
- "identifier"
124
- ]
125
- }
126
- ],
127
+ {
128
+ "type": "unique",
129
+ "fields": [
130
+ "identifier"
131
+ ]
132
+ }
133
+ ],
127
134
  "privileges": [
128
135
  {
129
136
  "mask": 1,
@@ -9,11 +9,6 @@
9
9
  "implements": "AccommodationPlace",
10
10
  "version": "2.0.1",
11
11
  "fields": [
12
- {
13
- "name": "bed",
14
- "type": "Text",
15
- "size": 500
16
- },
17
12
  {
18
13
  "name": "floor",
19
14
  "type": "Text",
@@ -24,7 +19,7 @@
24
19
  "type": "Text",
25
20
  "size": 500
26
21
  },
27
- {
22
+ {
28
23
  "name": "roomType",
29
24
  "description": "Tύπος δωματίου",
30
25
  "type": "RoomType",
@@ -161,7 +156,19 @@
161
156
  "$first": true
162
157
  }
163
158
  }
159
+ },
160
+ {
161
+ "name": "cards",
162
+ "type": "StudentAccommodationCard",
163
+ "mapping": {
164
+ "associationType": "association",
165
+ "cascade": "delete",
166
+ "parentModel": "AccommodationRoom",
167
+ "parentField": "id",
168
+ "childModel": "StudentAccommodationCard",
169
+ "childField": "accommodationRoom"
164
170
  }
171
+ }
165
172
  ],
166
173
  "eventListeners": [
167
174
  {