@webda/core 2.0.0 → 2.1.1
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/lib/core.d.ts +1 -1
- package/lib/core.js +15 -7
- package/lib/core.js.map +1 -1
- package/lib/core.spec.js +2 -0
- package/lib/core.spec.js.map +1 -1
- package/lib/models/aclmodel.spec.js +2 -1
- package/lib/models/aclmodel.spec.js.map +1 -1
- package/lib/models/coremodel.d.ts +28 -10
- package/lib/models/coremodel.js +111 -20
- package/lib/models/coremodel.js.map +1 -1
- package/lib/models/coremodel.spec.js +58 -3
- package/lib/models/coremodel.spec.js.map +1 -1
- package/lib/models/ident.d.ts +3 -0
- package/lib/models/ident.js.map +1 -1
- package/lib/models/user.d.ts +7 -6
- package/lib/models/user.js +1 -0
- package/lib/models/user.js.map +1 -1
- package/lib/services/authentication.js +13 -13
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/binary.d.ts +1 -1
- package/lib/services/binary.js +1 -1
- package/lib/services/binary.js.map +1 -1
- package/lib/services/invitationservice.d.ts +1 -1
- package/lib/services/invitationservice.js +1 -1
- package/lib/services/invitationservice.js.map +1 -1
- package/lib/services/invitationservice.spec.js +8 -8
- package/lib/services/invitationservice.spec.js.map +1 -1
- package/lib/stores/file.spec.js +11 -6
- package/lib/stores/file.spec.js.map +1 -1
- package/lib/stores/mapper.spec.js +5 -3
- package/lib/stores/mapper.spec.js.map +1 -1
- package/lib/stores/store.d.ts +10 -4
- package/lib/stores/store.js +26 -14
- package/lib/stores/store.js.map +1 -1
- package/lib/stores/store.spec.js +6 -5
- package/lib/stores/store.spec.js.map +1 -1
- package/lib/unpackedapplication.js +24 -8
- package/lib/unpackedapplication.js.map +1 -1
- package/lib/utils/serializers.spec.js +1 -1
- package/lib/utils/serializers.spec.js.map +1 -1
- package/package.json +5 -5
- package/webda.module.json +146 -63
package/webda.module.json
CHANGED
|
@@ -76,6 +76,151 @@
|
|
|
76
76
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
77
77
|
"title": "OwnerModel"
|
|
78
78
|
},
|
|
79
|
+
"webda/ident": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"properties": {
|
|
82
|
+
"_creationDate": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": "date-time",
|
|
85
|
+
"description": "Creation date",
|
|
86
|
+
"readOnly": true
|
|
87
|
+
},
|
|
88
|
+
"_lastUpdate": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": "date-time",
|
|
91
|
+
"description": "Last update date",
|
|
92
|
+
"readOnly": true
|
|
93
|
+
},
|
|
94
|
+
"_user": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Default owner of the object",
|
|
97
|
+
"readOnly": true
|
|
98
|
+
},
|
|
99
|
+
"public": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "Define if the object is publicly readable",
|
|
102
|
+
"default": false
|
|
103
|
+
},
|
|
104
|
+
"uuid": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"description": "UUID of the object"
|
|
107
|
+
},
|
|
108
|
+
"_type": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"readOnly": true
|
|
111
|
+
},
|
|
112
|
+
"uid": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"_lastUsed": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"format": "date-time",
|
|
118
|
+
"readOnly": true
|
|
119
|
+
},
|
|
120
|
+
"_failedLogin": {
|
|
121
|
+
"type": "number",
|
|
122
|
+
"readOnly": true
|
|
123
|
+
},
|
|
124
|
+
"_lastValidationEmail": {
|
|
125
|
+
"type": "number",
|
|
126
|
+
"description": "If EmailIdent",
|
|
127
|
+
"readOnly": true
|
|
128
|
+
},
|
|
129
|
+
"_validation": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"format": "date-time",
|
|
132
|
+
"description": "When the ident was validated",
|
|
133
|
+
"readOnly": true
|
|
134
|
+
},
|
|
135
|
+
"email": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "Email for this ident if it exist"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"uid",
|
|
142
|
+
"uuid"
|
|
143
|
+
],
|
|
144
|
+
"description": "First basic model for Ident",
|
|
145
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
146
|
+
"title": "Ident"
|
|
147
|
+
},
|
|
148
|
+
"webda/user": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"_creationDate": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"format": "date-time",
|
|
154
|
+
"description": "Creation date",
|
|
155
|
+
"readOnly": true
|
|
156
|
+
},
|
|
157
|
+
"_lastUpdate": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"format": "date-time",
|
|
160
|
+
"description": "Last update date",
|
|
161
|
+
"readOnly": true
|
|
162
|
+
},
|
|
163
|
+
"_user": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "Default owner of the object",
|
|
166
|
+
"readOnly": true
|
|
167
|
+
},
|
|
168
|
+
"public": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"description": "Define if the object is publicly readable",
|
|
171
|
+
"default": false
|
|
172
|
+
},
|
|
173
|
+
"uuid": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"description": "UUID of the object"
|
|
176
|
+
},
|
|
177
|
+
"displayName": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "Display name for this user"
|
|
180
|
+
},
|
|
181
|
+
"_lastPasswordRecovery": {
|
|
182
|
+
"type": "number",
|
|
183
|
+
"description": "Last time the password was recovered",
|
|
184
|
+
"readOnly": true
|
|
185
|
+
},
|
|
186
|
+
"_roles": {
|
|
187
|
+
"type": "array",
|
|
188
|
+
"items": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"description": "Roles of the user",
|
|
192
|
+
"readOnly": true
|
|
193
|
+
},
|
|
194
|
+
"_groups": {
|
|
195
|
+
"type": "array",
|
|
196
|
+
"items": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"description": "Groups for a user",
|
|
200
|
+
"readOnly": true
|
|
201
|
+
},
|
|
202
|
+
"_avatar": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"description": "Define the user avatar if exists",
|
|
205
|
+
"readOnly": true
|
|
206
|
+
},
|
|
207
|
+
"locale": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Contains the locale of the user if known"
|
|
210
|
+
},
|
|
211
|
+
"email": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "Contain main user email if exists"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"displayName",
|
|
218
|
+
"uuid"
|
|
219
|
+
],
|
|
220
|
+
"description": "First basic model for User",
|
|
221
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
222
|
+
"title": "User"
|
|
223
|
+
},
|
|
79
224
|
"webda/cryptoservice": {
|
|
80
225
|
"type": "object",
|
|
81
226
|
"properties": {
|
|
@@ -1825,68 +1970,6 @@
|
|
|
1825
1970
|
}
|
|
1826
1971
|
},
|
|
1827
1972
|
"title": "FileLogger"
|
|
1828
|
-
},
|
|
1829
|
-
"webda/comment": {
|
|
1830
|
-
"type": "object",
|
|
1831
|
-
"properties": {
|
|
1832
|
-
"_creationDate": {
|
|
1833
|
-
"type": "string",
|
|
1834
|
-
"format": "date-time",
|
|
1835
|
-
"description": "Creation date",
|
|
1836
|
-
"readOnly": true
|
|
1837
|
-
},
|
|
1838
|
-
"_lastUpdate": {
|
|
1839
|
-
"type": "string",
|
|
1840
|
-
"format": "date-time",
|
|
1841
|
-
"description": "Last update date",
|
|
1842
|
-
"readOnly": true
|
|
1843
|
-
},
|
|
1844
|
-
"target": {
|
|
1845
|
-
"$ref": "#/definitions/ModelParent%3Cclass-348499747-2598-11214-348499747-0-11238852964236%3E",
|
|
1846
|
-
"description": "Can be linked to any object but cannot be a root object"
|
|
1847
|
-
},
|
|
1848
|
-
"author": {
|
|
1849
|
-
"$ref": "#/definitions/ModelLink%3Cclass-src_models_user.ts-115-2736-src_models_user.ts-0-2737%3E",
|
|
1850
|
-
"description": "User that posted the comment"
|
|
1851
|
-
},
|
|
1852
|
-
"title": {
|
|
1853
|
-
"type": "string",
|
|
1854
|
-
"description": "Title"
|
|
1855
|
-
},
|
|
1856
|
-
"description": {
|
|
1857
|
-
"type": "string",
|
|
1858
|
-
"description": "Comment content"
|
|
1859
|
-
}
|
|
1860
|
-
},
|
|
1861
|
-
"required": [
|
|
1862
|
-
"target",
|
|
1863
|
-
"author",
|
|
1864
|
-
"title",
|
|
1865
|
-
"description"
|
|
1866
|
-
],
|
|
1867
|
-
"description": "Generic comment class",
|
|
1868
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1869
|
-
"definitions": {
|
|
1870
|
-
"ModelParent<class-348499747-2598-11214-348499747-0-11238852964236>": {
|
|
1871
|
-
"$ref": "#/definitions/ModelLink%3Cclass-348499747-2598-11214-348499747-0-11238852964236%2Cany%3E",
|
|
1872
|
-
"description": "Define the parent of the model"
|
|
1873
|
-
},
|
|
1874
|
-
"ModelLink<class-348499747-2598-11214-348499747-0-11238852964236,any>": {
|
|
1875
|
-
"$ref": "#/definitions/ModelLinker%3Cclass-348499747-2598-11214-348499747-0-11238852964236%3E",
|
|
1876
|
-
"description": "Define a link to 1:n relation"
|
|
1877
|
-
},
|
|
1878
|
-
"ModelLinker<class-348499747-2598-11214-348499747-0-11238852964236>": {
|
|
1879
|
-
"type": "string"
|
|
1880
|
-
},
|
|
1881
|
-
"ModelLink<class-src_models_user.ts-115-2736-src_models_user.ts-0-2737>": {
|
|
1882
|
-
"$ref": "#/definitions/ModelLinker%3Cclass-src_models_user.ts-115-2736-src_models_user.ts-0-2737%3E",
|
|
1883
|
-
"description": "Define a link to 1:n relation"
|
|
1884
|
-
},
|
|
1885
|
-
"ModelLinker<class-src_models_user.ts-115-2736-src_models_user.ts-0-2737>": {
|
|
1886
|
-
"type": "string"
|
|
1887
|
-
}
|
|
1888
|
-
},
|
|
1889
|
-
"title": "Comment"
|
|
1890
1973
|
}
|
|
1891
1974
|
}
|
|
1892
|
-
}
|
|
1975
|
+
}
|