@universis/accommodation 1.1.0 → 1.1.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/config/models/AccommodationChildFinancialAttribute.json +5 -0
- package/dist/config/models/AccommodationGuardianFinancialAttribute.json +5 -0
- package/dist/config/models/AccommodationInscriptionModeTag.json +2 -2
- package/dist/config/models/{Accommodation.json → AccommodationPlace.json} +25 -13
- package/dist/config/models/{AccommodationLocale.json → AccommodationPlaceLocale.json} +8 -3
- package/dist/config/models/AccommodationRequestAction.json +10 -0
- package/dist/config/models/AccommodationRequestActionMessage.json +5 -0
- package/dist/config/models/AccommodationRequestActionReview.json +5 -0
- package/dist/config/models/AccommodationRequestAttachmentConfiguration.json +5 -0
- package/dist/config/models/AccommodationRequestCategory.json +19 -14
- package/dist/config/models/AccommodationRequestEffectiveStatusType.json +3 -3
- package/dist/config/models/AccommodationRequestEvent.json +19 -14
- package/dist/config/models/AccommodationRequestFinancialAttribute.json +5 -0
- package/dist/config/models/AccommodationRoom.json +7 -2
- package/dist/config/models/AccommodationRoomLocale.json +5 -0
- package/dist/config/models/AccommodationSiblingFinancialAttribute.json +1 -7
- package/dist/config/models/CancelAccommodationCardAction.json +10 -4
- package/dist/config/models/GuardianType.json +5 -0
- package/dist/config/models/Review.json +5 -0
- package/dist/config/models/RoomType.json +5 -0
- package/dist/config/models/RoomTypeLocale.json +19 -14
- package/dist/config/models/StudentAccommodationCard.json +5 -0
- package/dist/config/scope.access.js +265 -86
- package/dist/config/scope.access.js.map +1 -1
- package/dist/listeners/OnActionCompleteListener.js +2 -2
- package/dist/listeners/OnActionCompleteListener.js.map +1 -1
- package/dist/listeners/SendEmailAfterCardStatusChangeListener.js +8 -8
- package/dist/listeners/SendEmailAfterCardStatusChangeListener.js.map +1 -1
- package/dist/models/{Accommodation.js → AccommodationPlace.js} +1 -1
- package/dist/models/AccommodationPlace.js.map +1 -0
- package/package.json +1 -1
- package/src/config/models/AccommodationChildFinancialAttribute.json +5 -0
- package/src/config/models/AccommodationGuardianFinancialAttribute.json +5 -0
- package/src/config/models/AccommodationInscriptionModeTag.json +2 -2
- package/src/config/models/{Accommodation.json → AccommodationPlace.json} +25 -13
- package/src/config/models/{AccommodationLocale.json → AccommodationPlaceLocale.json} +8 -3
- package/src/config/models/AccommodationRequestAction.json +10 -0
- package/src/config/models/AccommodationRequestActionMessage.json +5 -0
- package/src/config/models/AccommodationRequestActionReview.json +5 -0
- package/src/config/models/AccommodationRequestAttachmentConfiguration.json +5 -0
- package/src/config/models/AccommodationRequestCategory.json +19 -14
- package/src/config/models/AccommodationRequestEffectiveStatusType.json +3 -3
- package/src/config/models/AccommodationRequestEvent.json +19 -14
- package/src/config/models/AccommodationRequestFinancialAttribute.json +5 -0
- package/src/config/models/AccommodationRoom.json +7 -2
- package/src/config/models/AccommodationRoomLocale.json +5 -0
- package/src/config/models/AccommodationSiblingFinancialAttribute.json +1 -7
- package/src/config/models/CancelAccommodationCardAction.json +10 -4
- package/src/config/models/GuardianType.json +5 -0
- package/src/config/models/Review.json +5 -0
- package/src/config/models/RoomType.json +5 -0
- package/src/config/models/RoomTypeLocale.json +19 -14
- package/src/config/models/StudentAccommodationCard.json +5 -0
- package/src/config/scope.access.js +265 -86
- package/src/listeners/OnActionCompleteListener.js +2 -2
- package/src/listeners/SendEmailAfterCardStatusChangeListener.js +8 -8
- package/dist/models/Accommodation.js.map +0 -1
- /package/dist/templates/{mail-after-dining-request-status-change → mail-after-accommodation-request-status-change}/html.ejs +0 -0
- /package/src/models/{Accommodation.js → AccommodationPlace.js} +0 -0
- /package/src/templates/{mail-after-dining-request-status-change → mail-after-accommodation-request-status-change}/html.ejs +0 -0
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
{
|
|
48
48
|
"mask": 15,
|
|
49
49
|
"type": "global",
|
|
50
|
-
"account": "
|
|
50
|
+
"account": "AccommodationAdministrators"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"mask": 15,
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
{
|
|
77
77
|
"mask": 15,
|
|
78
78
|
"type": "global",
|
|
79
|
-
"account": "
|
|
79
|
+
"account": "AccommodationAdministrators"
|
|
80
80
|
}
|
|
81
81
|
],
|
|
82
82
|
"constraints": [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json",
|
|
3
|
-
"@id": "http://schema.org/
|
|
4
|
-
"name": "
|
|
3
|
+
"@id": "http://schema.org/AccommodationPlace",
|
|
4
|
+
"name": "AccommodationPlace",
|
|
5
5
|
"description": "An accommodation is a place that can accommodate human beings, e.g. a hotel room, a camping pitch, or a meeting room.",
|
|
6
|
-
"title": "
|
|
6
|
+
"title": "AccommodationPlace",
|
|
7
7
|
"abstract": false,
|
|
8
8
|
"sealed": false,
|
|
9
9
|
"implements": "Place",
|
|
10
|
-
"classPath": "./models/
|
|
11
|
-
"version": "1.
|
|
10
|
+
"classPath": "./models/AccommodationPlace",
|
|
11
|
+
"version": "1.0",
|
|
12
12
|
"fields": [
|
|
13
13
|
{
|
|
14
14
|
"@id": "http://schema.org/identifier",
|
|
@@ -56,8 +56,15 @@
|
|
|
56
56
|
"name": "address",
|
|
57
57
|
"title": "address",
|
|
58
58
|
"description": "Physical address of the item.",
|
|
59
|
-
"type": "
|
|
60
|
-
"
|
|
59
|
+
"type": "PostalAddress",
|
|
60
|
+
"mapping": {
|
|
61
|
+
"parentModel": "AccommodationPlace",
|
|
62
|
+
"childModel": "PostalAddress",
|
|
63
|
+
"parentField": "identifier",
|
|
64
|
+
"childField": "identifier",
|
|
65
|
+
"cascade": "delete",
|
|
66
|
+
"associationType": "association"
|
|
67
|
+
}
|
|
61
68
|
},
|
|
62
69
|
{
|
|
63
70
|
"@id": "http://schema.org/geo",
|
|
@@ -69,19 +76,19 @@
|
|
|
69
76
|
},
|
|
70
77
|
{
|
|
71
78
|
"name": "locales",
|
|
72
|
-
"type": "
|
|
79
|
+
"type": "AccommodationPlaceLocale",
|
|
73
80
|
"mapping": {
|
|
74
81
|
"associationType": "association",
|
|
75
82
|
"cascade": "delete",
|
|
76
|
-
"parentModel": "
|
|
83
|
+
"parentModel": "AccommodationPlace",
|
|
77
84
|
"parentField": "id",
|
|
78
|
-
"childModel": "
|
|
85
|
+
"childModel": "AccommodationPlaceLocale",
|
|
79
86
|
"childField": "object"
|
|
80
87
|
}
|
|
81
88
|
},
|
|
82
89
|
{
|
|
83
90
|
"name": "locale",
|
|
84
|
-
"type": "
|
|
91
|
+
"type": "AccommodationPlaceLocale",
|
|
85
92
|
"readonly": true,
|
|
86
93
|
"editable": false,
|
|
87
94
|
"many": true,
|
|
@@ -90,9 +97,9 @@
|
|
|
90
97
|
"mapping": {
|
|
91
98
|
"associationType": "association",
|
|
92
99
|
"cascade": "delete",
|
|
93
|
-
"parentModel": "
|
|
100
|
+
"parentModel": "AccommodationPlace",
|
|
94
101
|
"parentField": "id",
|
|
95
|
-
"childModel": "
|
|
102
|
+
"childModel": "AccommodationPlaceLocale",
|
|
96
103
|
"childField": "object",
|
|
97
104
|
"options": {
|
|
98
105
|
"$filter": "inLanguage eq lang()",
|
|
@@ -131,6 +138,11 @@
|
|
|
131
138
|
"mask": 15,
|
|
132
139
|
"type": "global",
|
|
133
140
|
"account": "Administrators"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"mask": 15,
|
|
144
|
+
"type": "global",
|
|
145
|
+
"account": "AccommodationAdministrators"
|
|
134
146
|
}
|
|
135
147
|
]
|
|
136
148
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json",
|
|
3
3
|
"@id": "https://universis.io/entities/AccommodationLocale",
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "AccommodationPlaceLocale",
|
|
5
5
|
"description": "Contains a collection of extra field required for accommodation.",
|
|
6
|
-
"title": "
|
|
6
|
+
"title": "AccommodationPlaceLocale",
|
|
7
7
|
"abstract": false,
|
|
8
|
-
"contains": "
|
|
8
|
+
"contains": "AccommodationPlace",
|
|
9
9
|
"hidden": true,
|
|
10
10
|
"sealed": false,
|
|
11
11
|
"version": "1.0",
|
|
@@ -81,6 +81,11 @@
|
|
|
81
81
|
"mask": 15,
|
|
82
82
|
"type": "global",
|
|
83
83
|
"account": "Administrators"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"mask": 15,
|
|
87
|
+
"type": "global",
|
|
88
|
+
"account": "AccommodationAdministrators"
|
|
84
89
|
}
|
|
85
90
|
]
|
|
86
91
|
}
|
|
@@ -401,6 +401,11 @@
|
|
|
401
401
|
"mask": 15,
|
|
402
402
|
"type": "global",
|
|
403
403
|
"account": "Administrators"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"mask": 15,
|
|
407
|
+
"type": "global",
|
|
408
|
+
"account": "AccommodationAdministrators"
|
|
404
409
|
}
|
|
405
410
|
]
|
|
406
411
|
}
|
|
@@ -443,6 +448,11 @@
|
|
|
443
448
|
"type": "global",
|
|
444
449
|
"account": "Administrators"
|
|
445
450
|
},
|
|
451
|
+
{
|
|
452
|
+
"mask": 15,
|
|
453
|
+
"type": "global",
|
|
454
|
+
"account": "AccommodationAdministrators"
|
|
455
|
+
},
|
|
446
456
|
{
|
|
447
457
|
"mask": 1,
|
|
448
458
|
"type": "self",
|
|
@@ -23,20 +23,25 @@
|
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"privileges": [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
26
|
+
{
|
|
27
|
+
"mask": 1,
|
|
28
|
+
"type": "global",
|
|
29
|
+
"account": "*"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"mask": 15,
|
|
33
|
+
"type": "global"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"mask": 15,
|
|
37
|
+
"type": "global",
|
|
38
|
+
"account": "Administrators"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"mask": 15,
|
|
42
|
+
"type": "global",
|
|
43
|
+
"account": "AccommodationAdministrators"
|
|
44
|
+
}
|
|
40
45
|
],
|
|
41
46
|
"constraints": [
|
|
42
47
|
{
|
|
@@ -196,15 +196,15 @@
|
|
|
196
196
|
]
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
"alternateName": "
|
|
199
|
+
"alternateName": "RejectionUniversityAccommodationEffectiveStatus",
|
|
200
200
|
"activatesAccommodationCard": false,
|
|
201
201
|
"name": "Απόρριψη λόγω Στέγασης σε Εστία",
|
|
202
202
|
"description": "Απόρριψη λόγω Στέγασης σε Εστία",
|
|
203
203
|
"locales": [
|
|
204
204
|
{
|
|
205
205
|
"inLanguage": "en",
|
|
206
|
-
"name": "Rejection due to University
|
|
207
|
-
"description": "Rejection due to University
|
|
206
|
+
"name": "Rejection due to University Accommodation",
|
|
207
|
+
"description": "Rejection due to University Accommodation"
|
|
208
208
|
}
|
|
209
209
|
]
|
|
210
210
|
}
|
|
@@ -99,19 +99,24 @@
|
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
101
|
"privileges": [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
102
|
+
{
|
|
103
|
+
"mask": 15,
|
|
104
|
+
"type": "global"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"mask": 1,
|
|
108
|
+
"type": "global",
|
|
109
|
+
"account": "*"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"mask": 15,
|
|
113
|
+
"type": "global",
|
|
114
|
+
"account": "Administrators"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"mask": 15,
|
|
118
|
+
"type": "global",
|
|
119
|
+
"account": "AccommodationAdministrators"
|
|
120
|
+
}
|
|
116
121
|
]
|
|
117
122
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"title": "AccommodationRoom",
|
|
7
7
|
"abstract": false,
|
|
8
8
|
"sealed": false,
|
|
9
|
-
"implements": "
|
|
9
|
+
"implements": "AccommodationPlace",
|
|
10
10
|
"version": "2.0.1",
|
|
11
11
|
"fields": [
|
|
12
12
|
{
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
{
|
|
113
113
|
"name": "containedInPlace",
|
|
114
114
|
"description": "Το κτήριο στο οποίο βρίσκεται το δωμάτιο",
|
|
115
|
-
"type": "
|
|
115
|
+
"type": "AccommodationPlace"
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"name": "accessibleForDisabled",
|
|
@@ -185,6 +185,11 @@
|
|
|
185
185
|
"mask": 15,
|
|
186
186
|
"type": "global",
|
|
187
187
|
"account": "Administrators"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"mask": 15,
|
|
191
|
+
"type": "global",
|
|
192
|
+
"account": "AccommodationAdministrators"
|
|
188
193
|
}
|
|
189
194
|
]
|
|
190
195
|
}
|
|
@@ -28,13 +28,7 @@
|
|
|
28
28
|
{
|
|
29
29
|
"mask": 15,
|
|
30
30
|
"type": "global",
|
|
31
|
-
"account": "
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"mask": 15,
|
|
35
|
-
"type": "self",
|
|
36
|
-
"filter": "accommodationRequest/student/department eq departments()",
|
|
37
|
-
"account": "Administrators"
|
|
31
|
+
"account": "AccommodationAdministrators"
|
|
38
32
|
},
|
|
39
33
|
{
|
|
40
34
|
"mask": 1,
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"version": "1.0",
|
|
10
10
|
"fields": [
|
|
11
11
|
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"@id": "http://schema.org/accommodationCard",
|
|
13
|
+
"name": "accommodationCard",
|
|
14
|
+
"type": "StudentAccommodationCard"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
17
|
"privileges": [
|
|
@@ -23,9 +23,15 @@
|
|
|
23
23
|
"mask": 15,
|
|
24
24
|
"type": "global",
|
|
25
25
|
"account": "Administrators"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"mask": 15,
|
|
29
|
+
"type": "global",
|
|
30
|
+
"account": "AccommodationAdministrators"
|
|
26
31
|
}
|
|
27
32
|
],
|
|
28
|
-
"eventListeners": [
|
|
33
|
+
"eventListeners": [
|
|
34
|
+
{
|
|
29
35
|
"type": "@themost/data/previous-state-listener"
|
|
30
36
|
}
|
|
31
37
|
]
|
|
@@ -68,19 +68,24 @@
|
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"privileges": [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
{
|
|
72
|
+
"mask": 1,
|
|
73
|
+
"type": "global",
|
|
74
|
+
"account": "*"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"mask": 31,
|
|
78
|
+
"type": "global"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"mask": 15,
|
|
82
|
+
"type": "global",
|
|
83
|
+
"account": "Administrators"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"mask": 15,
|
|
87
|
+
"type": "global",
|
|
88
|
+
"account": "AccommodationAdministrators"
|
|
89
|
+
}
|
|
85
90
|
]
|
|
86
91
|
}
|