@universis/accommodation 1.1.1 → 1.1.3

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.
Files changed (50) hide show
  1. package/dist/config/models/AccommodationChildFinancialAttribute.json +5 -0
  2. package/dist/config/models/AccommodationGuardianFinancialAttribute.json +5 -0
  3. package/dist/config/models/AccommodationPlace.json +50 -38
  4. package/dist/config/models/AccommodationPlaceLocale.json +5 -0
  5. package/dist/config/models/AccommodationRequestAction.json +10 -0
  6. package/dist/config/models/AccommodationRequestActionMessage.json +5 -0
  7. package/dist/config/models/AccommodationRequestActionReview.json +5 -0
  8. package/dist/config/models/AccommodationRequestAttachmentConfiguration.json +5 -0
  9. package/dist/config/models/AccommodationRequestCategory.json +19 -14
  10. package/dist/config/models/AccommodationRequestEvent.json +19 -14
  11. package/dist/config/models/AccommodationRequestFinancialAttribute.json +5 -0
  12. package/dist/config/models/AccommodationRoom.json +18 -1
  13. package/dist/config/models/AccommodationRoomLocale.json +5 -0
  14. package/dist/config/models/AccommodationSiblingFinancialAttribute.json +1 -7
  15. package/dist/config/models/CancelAccommodationCardAction.json +10 -4
  16. package/dist/config/models/GuardianType.json +5 -0
  17. package/dist/config/models/Review.json +5 -0
  18. package/dist/config/models/RoomType.json +5 -0
  19. package/dist/config/models/RoomTypeLocale.json +19 -14
  20. package/dist/config/models/StudentAccommodationCard.json +81 -79
  21. package/dist/config/scope.access.js +296 -80
  22. package/dist/config/scope.access.js.map +1 -1
  23. package/dist/listeners/OnUpdateAccommodationRoomListener.js +151 -0
  24. package/dist/listeners/OnUpdateAccommodationRoomListener.js.map +1 -0
  25. package/dist/listeners/StudentAccommodationCardSaveListener.js +9 -3
  26. package/dist/listeners/StudentAccommodationCardSaveListener.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/config/models/AccommodationChildFinancialAttribute.json +5 -0
  29. package/src/config/models/AccommodationGuardianFinancialAttribute.json +5 -0
  30. package/src/config/models/AccommodationPlace.json +50 -38
  31. package/src/config/models/AccommodationPlaceLocale.json +5 -0
  32. package/src/config/models/AccommodationRequestAction.json +10 -0
  33. package/src/config/models/AccommodationRequestActionMessage.json +5 -0
  34. package/src/config/models/AccommodationRequestActionReview.json +5 -0
  35. package/src/config/models/AccommodationRequestAttachmentConfiguration.json +5 -0
  36. package/src/config/models/AccommodationRequestCategory.json +19 -14
  37. package/src/config/models/AccommodationRequestEvent.json +19 -14
  38. package/src/config/models/AccommodationRequestFinancialAttribute.json +5 -0
  39. package/src/config/models/AccommodationRoom.json +18 -1
  40. package/src/config/models/AccommodationRoomLocale.json +5 -0
  41. package/src/config/models/AccommodationSiblingFinancialAttribute.json +1 -7
  42. package/src/config/models/CancelAccommodationCardAction.json +10 -4
  43. package/src/config/models/GuardianType.json +5 -0
  44. package/src/config/models/Review.json +5 -0
  45. package/src/config/models/RoomType.json +5 -0
  46. package/src/config/models/RoomTypeLocale.json +19 -14
  47. package/src/config/models/StudentAccommodationCard.json +81 -79
  48. package/src/config/scope.access.js +296 -80
  49. package/src/listeners/OnUpdateAccommodationRoomListener.js +150 -0
  50. package/src/listeners/StudentAccommodationCardSaveListener.js +9 -3
@@ -28,13 +28,7 @@
28
28
  {
29
29
  "mask": 15,
30
30
  "type": "global",
31
- "account": "Administrators"
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
- "@id": "http://schema.org/accommodationCard",
13
- "name": "accommodationCard",
14
- "type": "StudentAccommodationCard"
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
  ]
@@ -32,6 +32,11 @@
32
32
  "mask": 15,
33
33
  "type": "global",
34
34
  "account": "Administrators"
35
+ },
36
+ {
37
+ "mask": 15,
38
+ "type": "global",
39
+ "account": "AccommodationAdministrators"
35
40
  }
36
41
  ],
37
42
  "constraints": [
@@ -45,6 +45,11 @@
45
45
  "mask": 15,
46
46
  "type": "global",
47
47
  "account": "Administrators"
48
+ },
49
+ {
50
+ "mask": 15,
51
+ "type": "global",
52
+ "account": "AccommodationAdministrators"
48
53
  }
49
54
  ]
50
55
  }
@@ -92,6 +92,11 @@
92
92
  "mask": 15,
93
93
  "type": "global",
94
94
  "account": "Administrators"
95
+ },
96
+ {
97
+ "mask": 15,
98
+ "type": "global",
99
+ "account": "AccommodationAdministrators"
95
100
  }
96
101
  ],
97
102
  "eventListeners": [
@@ -68,19 +68,24 @@
68
68
  }
69
69
  ],
70
70
  "privileges": [
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
- }
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
  }
@@ -5,7 +5,7 @@
5
5
  "title": "StudentAccommodationCard",
6
6
  "hidden": false,
7
7
  "sealed": false,
8
- "version": "1.5",
8
+ "version": "1.8",
9
9
  "source": "StudentAccommodationCardBase",
10
10
  "view": "StudentAccommodationCardData",
11
11
  "classPath": "./models/StudentAccommodationCard",
@@ -16,14 +16,14 @@
16
16
  "description": "Ο κωδικός της εγγραφής",
17
17
  "type": "Counter",
18
18
  "primary": true
19
- },
19
+ },
20
20
  {
21
21
  "name": "action",
22
22
  "title": "Action",
23
23
  "description": "The action associated with this card.",
24
24
  "type": "AccommodationRequestAction",
25
25
  "nullable": false
26
- },
26
+ },
27
27
  {
28
28
  "name": "student",
29
29
  "title": "Φοιτητής",
@@ -47,80 +47,75 @@
47
47
  "type": "AcademicYear",
48
48
  "expandable": true,
49
49
  "nullable": false
50
- },
51
-
52
- {
53
- "name": "serialNumber",
54
- "title": "Number",
55
- "type": "Integer",
56
- "nullable": false,
57
- "value": "javascript:return this.newid();"
58
- },
59
- {
60
- "name": "dateCreated",
61
- "title": "Date Created",
62
- "description": "The date on which this item was created.",
63
- "type": "DateTime",
64
- "value": "javascript:return (new Date());",
65
- "readonly": true
66
- },
67
- {
68
- "@id": "http://schema.org/validFrom",
69
- "name": "validFrom",
70
- "title": "validFrom",
71
- "description": "The date when the item becomes valid.",
72
- "type": "DateTime",
73
- "nullable": false
74
- },
75
- {
76
- "@id": "http://schema.org/validThrough",
77
- "name": "validThrough",
78
- "title": "validThrough",
79
- "description": "The date after when the item is not valid.",
80
- "type": "DateTime",
81
- "nullable": false
82
- },
83
- {
84
- "@id": "http://schema.org/cardStatus",
85
- "name": "cardStatus",
86
- "title": "cardStatus",
87
- "description": "Indicates the current disposition of the Card.",
88
- "type": "ActionStatusType",
89
- "value": "javascript:return { alternateName:'PotentialActionStatus' };"
90
- },
91
- {
92
- "name": "dateCancelled",
93
- "title": "Date Cancelled",
94
- "description": "The date on which this item was cancelled.",
95
- "type": "DateTime",
96
- "nullable": true
97
- },
98
- {
99
- "name": "cancelReason",
100
- "title": "Λόγοι ακύρωσης",
101
- "description": "Λόγοι ακύρωσης",
102
- "type": "Text",
103
- "size": 255,
104
- "many": false,
105
- "nullable": true
106
- },
107
- {
108
- "name": "dateModified",
109
- "title": "Ημερομηνία τροποποίησης",
110
- "description": "Ημερομηνία τροποποίησης",
111
- "type": "DateTime",
112
- "nullable": false,
113
- "value": "javascript:return new Date();",
114
- "calculation": "javascript:return this.now();"
115
- }
116
- ],
117
- "constraints": [
50
+ },
51
+ {
52
+ "name": "serialNumber",
53
+ "title": "Number",
54
+ "type": "Integer",
55
+ "nullable": false,
56
+ "value": "javascript:return this.newid();"
57
+ },
58
+ {
59
+ "name": "dateCreated",
60
+ "title": "Date Created",
61
+ "description": "The date on which this item was created.",
62
+ "type": "DateTime",
63
+ "value": "javascript:return (new Date());",
64
+ "readonly": true
65
+ },
66
+ {
67
+ "@id": "http://schema.org/validFrom",
68
+ "name": "validFrom",
69
+ "title": "validFrom",
70
+ "description": "The date when the item becomes valid.",
71
+ "type": "DateTime",
72
+ "nullable": false
73
+ },
118
74
  {
119
- "type": "unique",
120
- "fields": [
121
- "student",
122
- "academicYear"
123
- ]
75
+ "@id": "http://schema.org/validThrough",
76
+ "name": "validThrough",
77
+ "title": "validThrough",
78
+ "description": "The date after when the item is not valid.",
79
+ "type": "DateTime",
80
+ "nullable": false
81
+ },
82
+ {
83
+ "@id": "http://schema.org/cardStatus",
84
+ "name": "cardStatus",
85
+ "title": "cardStatus",
86
+ "description": "Indicates the current disposition of the Card.",
87
+ "type": "ActionStatusType",
88
+ "value": "javascript:return { alternateName:'PotentialActionStatus' };"
89
+ },
90
+ {
91
+ "name": "dateCancelled",
92
+ "title": "Date Cancelled",
93
+ "description": "The date on which this item was cancelled.",
94
+ "type": "DateTime",
95
+ "nullable": true
96
+ },
97
+ {
98
+ "name": "cancelReason",
99
+ "title": "Λόγοι ακύρωσης",
100
+ "description": "Λόγοι ακύρωσης",
101
+ "type": "Text",
102
+ "size": 255,
103
+ "many": false,
104
+ "nullable": true
105
+ },
106
+ {
107
+ "name": "dateModified",
108
+ "title": "Ημερομηνία τροποποίησης",
109
+ "description": "Ημερομηνία τροποποίησης",
110
+ "type": "DateTime",
111
+ "nullable": false,
112
+ "value": "javascript:return new Date();",
113
+ "calculation": "javascript:return this.now();"
114
+ },
115
+ {
116
+ "name": "isActive",
117
+ "readonly": true,
118
+ "virtual": true
124
119
  }
125
120
  ],
126
121
  "privileges": [
@@ -133,12 +128,17 @@
133
128
  "type": "global",
134
129
  "account": "Administrators"
135
130
  },
131
+ {
132
+ "mask": 15,
133
+ "type": "global",
134
+ "account": "AccommodationAdministrators"
135
+ },
136
136
  {
137
137
  "mask": 1,
138
138
  "type": "self",
139
139
  "account": "Students",
140
140
  "filter": "student/user eq me()"
141
- }
141
+ }
142
142
  ],
143
143
  "eventListeners": [
144
144
  {
@@ -150,9 +150,11 @@
150
150
  {
151
151
  "type": "./listeners/OnCancelAccommodationCardListener"
152
152
  },
153
+ {
154
+ "type": "./listeners/OnUpdateAccommodationRoomListener"
155
+ },
153
156
  {
154
157
  "type": "./listeners/SendEmailAfterCardStatusChangeListener"
155
158
  }
156
159
  ]
157
- }
158
-
160
+ }