@webda/core 1.6.0-beta.1 → 2.0.0-beta.0
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/application.d.ts +317 -195
- package/lib/application.js +171 -674
- package/lib/application.js.map +1 -1
- package/lib/application.spec.js +97 -289
- package/lib/application.spec.js.map +1 -1
- package/lib/core.d.ts +102 -214
- package/lib/core.js +146 -70
- package/lib/core.js.map +1 -1
- package/lib/core.spec.js +80 -17
- package/lib/core.spec.js.map +1 -1
- package/lib/index.d.ts +14 -9
- package/lib/index.js +19 -10
- package/lib/index.js.map +1 -1
- package/lib/models/aclmodel.d.ts +29 -8
- package/lib/models/aclmodel.js +68 -18
- package/lib/models/aclmodel.js.map +1 -1
- package/lib/models/aclmodel.spec.js +56 -19
- package/lib/models/aclmodel.spec.js.map +1 -1
- package/lib/models/coremodel.d.ts +9 -17
- package/lib/models/coremodel.js +36 -36
- package/lib/models/coremodel.js.map +1 -1
- package/lib/models/ident.d.ts +8 -3
- package/lib/models/ident.js +8 -1
- package/lib/models/ident.js.map +1 -1
- package/lib/models/ident.spec.js +3 -0
- package/lib/models/ident.spec.js.map +1 -1
- package/lib/models/ownermodel.d.ts +8 -4
- package/lib/models/ownermodel.js +10 -6
- package/lib/models/ownermodel.js.map +1 -1
- package/lib/models/rolemodel.js.map +1 -1
- package/lib/models/rolemodel.spec.js +4 -1
- package/lib/models/rolemodel.spec.js.map +1 -1
- package/lib/models/user.d.ts +32 -3
- package/lib/models/user.js +31 -0
- package/lib/models/user.js.map +1 -1
- package/lib/models/user.spec.js +11 -0
- package/lib/models/user.spec.js.map +1 -1
- package/lib/queues/filequeue.d.ts +2 -7
- package/lib/queues/filequeue.js +2 -11
- package/lib/queues/filequeue.js.map +1 -1
- package/lib/queues/filequeue.spec.js +0 -1
- package/lib/queues/filequeue.spec.js.map +1 -1
- package/lib/queues/memoryqueue.d.ts +2 -7
- package/lib/queues/memoryqueue.js +1 -11
- package/lib/queues/memoryqueue.js.map +1 -1
- package/lib/queues/memoryqueue.spec.js +0 -1
- package/lib/queues/memoryqueue.spec.js.map +1 -1
- package/lib/queues/queue.spec.d.ts +1 -1
- package/lib/queues/queue.spec.js +11 -9
- package/lib/queues/queue.spec.js.map +1 -1
- package/lib/queues/queueservice.js +1 -1
- package/lib/queues/queueservice.js.map +1 -1
- package/lib/router.d.ts +46 -1
- package/lib/router.js +89 -51
- package/lib/router.js.map +1 -1
- package/lib/router.spec.js +19 -2
- package/lib/router.spec.js.map +1 -1
- package/lib/services/asyncevents.d.ts +1 -0
- package/lib/services/asyncevents.js +4 -3
- package/lib/services/asyncevents.js.map +1 -1
- package/lib/services/authentication.d.ts +47 -5
- package/lib/services/authentication.js +99 -40
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/authentication.spec.js +10 -0
- package/lib/services/authentication.spec.js.map +1 -1
- package/lib/services/binary.d.ts +126 -64
- package/lib/services/binary.js +247 -96
- package/lib/services/binary.js.map +1 -1
- package/lib/services/binary.spec.d.ts +1 -0
- package/lib/services/binary.spec.js +96 -25
- package/lib/services/binary.spec.js.map +1 -1
- package/lib/services/cloudbinary.d.ts +67 -0
- package/lib/services/cloudbinary.js +178 -0
- package/lib/services/cloudbinary.js.map +1 -0
- package/lib/services/cloudbinary.spec.d.ts +13 -0
- package/lib/services/cloudbinary.spec.js +205 -0
- package/lib/services/cloudbinary.spec.js.map +1 -0
- package/lib/services/configuration.d.ts +7 -2
- package/lib/services/configuration.js +4 -3
- package/lib/services/configuration.js.map +1 -1
- package/lib/services/configuration.spec.js +1 -0
- package/lib/services/configuration.spec.js.map +1 -1
- package/lib/services/cron.d.ts +5 -6
- package/lib/services/cron.js +4 -11
- package/lib/services/cron.js.map +1 -1
- package/lib/services/cron.spec.js +2 -3
- package/lib/services/cron.spec.js.map +1 -1
- package/lib/services/debugmailer.d.ts +11 -6
- package/lib/services/debugmailer.js +20 -14
- package/lib/services/debugmailer.js.map +1 -1
- package/lib/services/debugmailer.spec.js +1 -0
- package/lib/services/debugmailer.spec.js.map +1 -1
- package/lib/services/echo.d.ts +2 -6
- package/lib/services/echo.js +1 -11
- package/lib/services/echo.js.map +1 -1
- package/lib/services/echo.spec.js +1 -0
- package/lib/services/echo.spec.js.map +1 -1
- package/lib/services/filebinary.d.ts +36 -12
- package/lib/services/filebinary.js +123 -38
- package/lib/services/filebinary.js.map +1 -1
- package/lib/services/filebinary.spec.d.ts +4 -2
- package/lib/services/filebinary.spec.js +48 -8
- package/lib/services/filebinary.spec.js.map +1 -1
- package/lib/services/fileconfiguration.d.ts +1 -5
- package/lib/services/fileconfiguration.js +1 -10
- package/lib/services/fileconfiguration.js.map +1 -1
- package/lib/services/invitationservice.d.ts +198 -0
- package/lib/services/invitationservice.js +443 -0
- package/lib/services/invitationservice.js.map +1 -0
- package/lib/services/invitationservice.spec.d.ts +1 -0
- package/lib/services/invitationservice.spec.js +517 -0
- package/lib/services/invitationservice.spec.js.map +1 -0
- package/lib/services/kubernetesconfiguration.d.ts +3 -5
- package/lib/services/kubernetesconfiguration.js +5 -12
- package/lib/services/kubernetesconfiguration.js.map +1 -1
- package/lib/services/kubernetesconfiguration.spec.js +1 -1
- package/lib/services/kubernetesconfiguration.spec.js.map +1 -1
- package/lib/services/mailer.d.ts +44 -7
- package/lib/services/mailer.js +34 -14
- package/lib/services/mailer.js.map +1 -1
- package/lib/services/mailer.spec.js +29 -0
- package/lib/services/mailer.spec.js.map +1 -1
- package/lib/services/notificationservice.d.ts +76 -0
- package/lib/services/notificationservice.js +91 -0
- package/lib/services/notificationservice.js.map +1 -0
- package/lib/services/notificationservice.spec.d.ts +1 -0
- package/lib/services/notificationservice.spec.js +104 -0
- package/lib/services/notificationservice.spec.js.map +1 -0
- package/lib/services/oauth.d.ts +6 -4
- package/lib/services/oauth.js +28 -11
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/oauth.spec.js +7 -10
- package/lib/services/oauth.spec.js.map +1 -1
- package/lib/services/resource.d.ts +1 -5
- package/lib/services/resource.js +22 -17
- package/lib/services/resource.js.map +1 -1
- package/lib/services/resource.spec.js +0 -1
- package/lib/services/resource.spec.js.map +1 -1
- package/lib/services/service.d.ts +29 -26
- package/lib/services/service.js +16 -22
- package/lib/services/service.js.map +1 -1
- package/lib/services/service.spec.js +3 -0
- package/lib/services/service.spec.js.map +1 -1
- package/lib/services/version.d.ts +2 -5
- package/lib/services/version.js +1 -10
- package/lib/services/version.js.map +1 -1
- package/lib/stores/aggregator.d.ts +3 -5
- package/lib/stores/aggregator.js +3 -10
- package/lib/stores/aggregator.js.map +1 -1
- package/lib/stores/file.d.ts +7 -8
- package/lib/stores/file.js +18 -18
- package/lib/stores/file.js.map +1 -1
- package/lib/stores/file.spec.js +8 -6
- package/lib/stores/file.spec.js.map +1 -1
- package/lib/stores/mapper.d.ts +1 -5
- package/lib/stores/mapper.js +56 -39
- package/lib/stores/mapper.js.map +1 -1
- package/lib/stores/mapper.spec.js +120 -1
- package/lib/stores/mapper.spec.js.map +1 -1
- package/lib/stores/memory.d.ts +5 -9
- package/lib/stores/memory.js +5 -17
- package/lib/stores/memory.js.map +1 -1
- package/lib/stores/memory.spec.d.ts +1 -0
- package/lib/stores/memory.spec.js +32 -0
- package/lib/stores/memory.spec.js.map +1 -1
- package/lib/stores/store.d.ts +131 -26
- package/lib/stores/store.js +399 -80
- package/lib/stores/store.js.map +1 -1
- package/lib/stores/store.spec.d.ts +29 -2
- package/lib/stores/store.spec.js +204 -31
- package/lib/stores/store.spec.js.map +1 -1
- package/lib/stores/webdaql/WebdaQLLexer.d.ts +53 -0
- package/lib/stores/webdaql/WebdaQLLexer.js +290 -0
- package/lib/stores/webdaql/WebdaQLLexer.js.map +1 -0
- package/lib/stores/webdaql/WebdaQLParserLexer.d.ts +53 -0
- package/lib/stores/webdaql/WebdaQLParserLexer.js +290 -0
- package/lib/stores/webdaql/WebdaQLParserLexer.js.map +1 -0
- package/lib/stores/webdaql/WebdaQLParserListener.d.ts +308 -0
- package/lib/stores/webdaql/WebdaQLParserListener.js +4 -0
- package/lib/stores/webdaql/WebdaQLParserListener.js.map +1 -0
- package/lib/stores/webdaql/WebdaQLParserParser.d.ts +301 -0
- package/lib/stores/webdaql/WebdaQLParserParser.js +1781 -0
- package/lib/stores/webdaql/WebdaQLParserParser.js.map +1 -0
- package/lib/stores/webdaql/WebdaQLParserVisitor.d.ts +198 -0
- package/lib/stores/webdaql/WebdaQLParserVisitor.js +4 -0
- package/lib/stores/webdaql/WebdaQLParserVisitor.js.map +1 -0
- package/lib/stores/webdaql/query.d.ts +300 -0
- package/lib/stores/webdaql/query.js +471 -0
- package/lib/stores/webdaql/query.js.map +1 -0
- package/lib/stores/webdaql/query.spec.d.ts +1 -0
- package/lib/stores/webdaql/query.spec.js +136 -0
- package/lib/stores/webdaql/query.spec.js.map +1 -0
- package/lib/test.d.ts +50 -2
- package/lib/test.js +161 -16
- package/lib/test.js.map +1 -1
- package/lib/unpackedapplication.d.ts +66 -0
- package/lib/unpackedapplication.js +202 -0
- package/lib/unpackedapplication.js.map +1 -0
- package/lib/utils/context.d.ts +14 -12
- package/lib/utils/context.js +14 -9
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/context.spec.js +1 -1
- package/lib/utils/context.spec.js.map +1 -1
- package/lib/utils/cookie.d.ts +6 -3
- package/lib/utils/cookie.js +22 -20
- package/lib/utils/cookie.js.map +1 -1
- package/lib/utils/cookie.spec.js +0 -1
- package/lib/utils/cookie.spec.js.map +1 -1
- package/lib/utils/logger.d.ts +16 -3
- package/lib/utils/logger.js +16 -3
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/logger.spec.js.map +1 -1
- package/lib/utils/serializers.js +5 -1
- package/lib/utils/serializers.js.map +1 -1
- package/lib/utils/waiter.d.ts +1 -1
- package/lib/utils/waiter.js.map +1 -1
- package/package.json +25 -18
- package/test/config-file-no-reload.json +2 -1
- package/test/config-file-reload.json +2 -1
- package/test/config-invitation.json +63 -0
- package/test/config-kube-reload.json +2 -1
- package/test/config-reload.json +1 -1
- package/test/config.json +6 -10
- package/test/config.old.json +1 -1
- package/test/moddas/annotatedservice.js +1 -3
- package/test/moddas/debugmailer.js +2 -7
- package/test/moddas/fakeservice.js +1 -1
- package/test/moddas/voidstore.js +2 -4
- package/test/models/ident.js +1 -1
- package/test/models/task.js +1 -5
- package/webda.module.json +1124 -0
- package/test/config.old-default.json +0 -151
|
@@ -0,0 +1,1124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moddas": {
|
|
3
|
+
"webda/aggregator": "lib/stores/aggregator:default",
|
|
4
|
+
"webda/asyncevents": "lib/services/asyncevents:EventService",
|
|
5
|
+
"webda/authentication": "lib/services/authentication:Authentication",
|
|
6
|
+
"webda/configurationservice": "lib/services/configuration:default",
|
|
7
|
+
"webda/consolelogger": "lib/utils/logger:ConsoleLoggerService",
|
|
8
|
+
"webda/cronservice": "lib/services/cron:CronService",
|
|
9
|
+
"webda/debugmailer": "lib/services/debugmailer:default",
|
|
10
|
+
"webda/echoservice": "lib/services/echo:EchoService",
|
|
11
|
+
"webda/filebinary": "lib/services/filebinary:FileBinary",
|
|
12
|
+
"webda/fileconfiguration": "lib/services/fileconfiguration:FileConfigurationService",
|
|
13
|
+
"webda/filelogger": "lib/utils/logger:FileLoggerService",
|
|
14
|
+
"webda/filequeue": "lib/queues/filequeue:FileQueue",
|
|
15
|
+
"webda/filestore": "lib/stores/file:FileStore",
|
|
16
|
+
"webda/invitationservice": "lib/services/invitationservice:default",
|
|
17
|
+
"webda/kubernetesconfigurationservice": "lib/services/kubernetesconfiguration:KubernetesConfigurationService",
|
|
18
|
+
"webda/mailer": "lib/services/mailer:Mailer",
|
|
19
|
+
"webda/mapper": "lib/stores/mapper:default",
|
|
20
|
+
"webda/memorylogger": "lib/utils/logger:MemoryLoggerService",
|
|
21
|
+
"webda/memoryqueue": "lib/queues/memoryqueue:MemoryQueue",
|
|
22
|
+
"webda/memorystore": "lib/stores/memory:MemoryStore",
|
|
23
|
+
"webda/multinotificationservice": "lib/services/notificationservice:default",
|
|
24
|
+
"webda/resourceservice": "lib/services/resource:default",
|
|
25
|
+
"webda/versionservice": "lib/services/version:VersionService"
|
|
26
|
+
},
|
|
27
|
+
"beans": {},
|
|
28
|
+
"models": {
|
|
29
|
+
"webda/aclmodel": "lib/models/aclmodel:default",
|
|
30
|
+
"webda/context": "lib/utils/context:Context",
|
|
31
|
+
"webda/coremodel": "lib/models/coremodel:CoreModel",
|
|
32
|
+
"webda/ident": "lib/models/ident:Ident",
|
|
33
|
+
"webda/ownermodel": "lib/models/ownermodel:OwnerModel",
|
|
34
|
+
"webda/securecookie": "lib/utils/cookie:SecureCookie",
|
|
35
|
+
"webda/sessioncookie": "lib/utils/cookie:SessionCookie",
|
|
36
|
+
"webda/user": "lib/models/user:User"
|
|
37
|
+
},
|
|
38
|
+
"deployers": {},
|
|
39
|
+
"schemas": {
|
|
40
|
+
"webda/ownermodel": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"_creationDate": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "date-time",
|
|
46
|
+
"description": "Creation date",
|
|
47
|
+
"readOnly": true
|
|
48
|
+
},
|
|
49
|
+
"_lastUpdate": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"format": "date-time",
|
|
52
|
+
"description": "Last update date",
|
|
53
|
+
"readOnly": true
|
|
54
|
+
},
|
|
55
|
+
"_user": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Default owner of the object",
|
|
58
|
+
"readOnly": true
|
|
59
|
+
},
|
|
60
|
+
"public": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"description": "Define if the object is publicly readable",
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
65
|
+
"uuid": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "UUID of the object"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["uuid"],
|
|
71
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
72
|
+
"title": "OwnerModel"
|
|
73
|
+
},
|
|
74
|
+
"webda/ident": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"_creationDate": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "date-time",
|
|
80
|
+
"description": "Creation date",
|
|
81
|
+
"readOnly": true
|
|
82
|
+
},
|
|
83
|
+
"_lastUpdate": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "date-time",
|
|
86
|
+
"description": "Last update date",
|
|
87
|
+
"readOnly": true
|
|
88
|
+
},
|
|
89
|
+
"_user": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Default owner of the object",
|
|
92
|
+
"readOnly": true
|
|
93
|
+
},
|
|
94
|
+
"public": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"description": "Define if the object is publicly readable",
|
|
97
|
+
"default": false
|
|
98
|
+
},
|
|
99
|
+
"uuid": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"description": "UUID of the object"
|
|
102
|
+
},
|
|
103
|
+
"_type": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"readOnly": true
|
|
106
|
+
},
|
|
107
|
+
"uid": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"_lastUsed": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"format": "date-time",
|
|
113
|
+
"readOnly": true
|
|
114
|
+
},
|
|
115
|
+
"_failedLogin": {
|
|
116
|
+
"type": "number",
|
|
117
|
+
"readOnly": true
|
|
118
|
+
},
|
|
119
|
+
"_lastValidationEmail": {
|
|
120
|
+
"type": "number",
|
|
121
|
+
"description": "If EmailIdent",
|
|
122
|
+
"readOnly": true
|
|
123
|
+
},
|
|
124
|
+
"_validation": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"format": "date-time",
|
|
127
|
+
"description": "When the ident was validated",
|
|
128
|
+
"readOnly": true
|
|
129
|
+
},
|
|
130
|
+
"email": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "Email for this ident if it exist"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": ["uid", "uuid"],
|
|
136
|
+
"description": "First basic model for Ident",
|
|
137
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
138
|
+
"title": "Ident"
|
|
139
|
+
},
|
|
140
|
+
"webda/user": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"_creationDate": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"format": "date-time",
|
|
146
|
+
"description": "Creation date",
|
|
147
|
+
"readOnly": true
|
|
148
|
+
},
|
|
149
|
+
"_lastUpdate": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"format": "date-time",
|
|
152
|
+
"description": "Last update date",
|
|
153
|
+
"readOnly": true
|
|
154
|
+
},
|
|
155
|
+
"_user": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Default owner of the object",
|
|
158
|
+
"readOnly": true
|
|
159
|
+
},
|
|
160
|
+
"public": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"description": "Define if the object is publicly readable",
|
|
163
|
+
"default": false
|
|
164
|
+
},
|
|
165
|
+
"uuid": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "UUID of the object"
|
|
168
|
+
},
|
|
169
|
+
"locale": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"description": "Contains the locale of the user if known"
|
|
172
|
+
},
|
|
173
|
+
"email": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"description": "Contain main user email if exists"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": ["uuid"],
|
|
179
|
+
"description": "First basic model for User",
|
|
180
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
181
|
+
"title": "User"
|
|
182
|
+
},
|
|
183
|
+
"webda/asyncevents": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"type": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"description": "Type of the service"
|
|
189
|
+
},
|
|
190
|
+
"queues": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"additionalProperties": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
"description": "Queues to post async events to"
|
|
196
|
+
},
|
|
197
|
+
"sync": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"description": "Make the event sending asynchronous"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": ["type"],
|
|
203
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
204
|
+
"title": "AsyncEvents"
|
|
205
|
+
},
|
|
206
|
+
"webda/coremodel": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"_creationDate": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"format": "date-time",
|
|
212
|
+
"description": "Creation date",
|
|
213
|
+
"readOnly": true
|
|
214
|
+
},
|
|
215
|
+
"_lastUpdate": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"format": "date-time",
|
|
218
|
+
"description": "Last update date",
|
|
219
|
+
"readOnly": true
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": [],
|
|
223
|
+
"description": "Basic Object in Webda\n\nIt is used to define a data stored Any variable starting with _ can only be set by the server Any variable starting with __ won't be exported outside of the server",
|
|
224
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
225
|
+
"title": "CoreModel"
|
|
226
|
+
},
|
|
227
|
+
"webda/aclmodel": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"_creationDate": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"format": "date-time",
|
|
233
|
+
"description": "Creation date",
|
|
234
|
+
"readOnly": true
|
|
235
|
+
},
|
|
236
|
+
"_lastUpdate": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"format": "date-time",
|
|
239
|
+
"description": "Last update date",
|
|
240
|
+
"readOnly": true
|
|
241
|
+
},
|
|
242
|
+
"_creator": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "Object creator",
|
|
245
|
+
"readOnly": true
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"required": [],
|
|
249
|
+
"description": "Object that contains ACL to define its own permissions",
|
|
250
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
251
|
+
"title": "AclModel"
|
|
252
|
+
},
|
|
253
|
+
"webda/filequeue": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"properties": {
|
|
256
|
+
"type": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "Type of the service"
|
|
259
|
+
},
|
|
260
|
+
"workerDelayer": {
|
|
261
|
+
"$ref": "#/definitions/WaitDelayerDefinition",
|
|
262
|
+
"description": "Delayer between two failed attempts to process messages"
|
|
263
|
+
},
|
|
264
|
+
"workerParallelism": {
|
|
265
|
+
"type": "boolean",
|
|
266
|
+
"description": "Define if worker should process multi message received in //",
|
|
267
|
+
"default": true
|
|
268
|
+
},
|
|
269
|
+
"maxConsumers": {
|
|
270
|
+
"type": "number",
|
|
271
|
+
"description": "Max number of queue consumers Queue will auto increase to this max number if queue is loaded and it will decrease to just one consumer if no messages are available",
|
|
272
|
+
"default": 10
|
|
273
|
+
},
|
|
274
|
+
"expire": {
|
|
275
|
+
"type": "number",
|
|
276
|
+
"description": "Number of seconds before droping message",
|
|
277
|
+
"default": 30
|
|
278
|
+
},
|
|
279
|
+
"folder": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "Where to store the queue"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": ["folder", "maxConsumers", "type"],
|
|
285
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
286
|
+
"definitions": {
|
|
287
|
+
"WaitDelayerDefinition": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"properties": {
|
|
290
|
+
"interval": {
|
|
291
|
+
"type": "number",
|
|
292
|
+
"description": "Interval"
|
|
293
|
+
},
|
|
294
|
+
"type": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "Type of delayer registered in WaitDelayerFactoryRegistry"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": ["interval", "type"],
|
|
300
|
+
"description": "WaitDelayer definition"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"title": "FileQueue"
|
|
304
|
+
},
|
|
305
|
+
"webda/memoryqueue": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"properties": {
|
|
308
|
+
"type": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"description": "Type of the service"
|
|
311
|
+
},
|
|
312
|
+
"workerDelayer": {
|
|
313
|
+
"$ref": "#/definitions/WaitDelayerDefinition",
|
|
314
|
+
"description": "Delayer between two failed attempts to process messages"
|
|
315
|
+
},
|
|
316
|
+
"workerParallelism": {
|
|
317
|
+
"type": "boolean",
|
|
318
|
+
"description": "Define if worker should process multi message received in //",
|
|
319
|
+
"default": true
|
|
320
|
+
},
|
|
321
|
+
"maxConsumers": {
|
|
322
|
+
"type": "number",
|
|
323
|
+
"description": "Max number of queue consumers Queue will auto increase to this max number if queue is loaded and it will decrease to just one consumer if no messages are available",
|
|
324
|
+
"default": 10
|
|
325
|
+
},
|
|
326
|
+
"expire": {
|
|
327
|
+
"type": "number",
|
|
328
|
+
"description": "Number of seconds before droping message",
|
|
329
|
+
"default": 30
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": ["maxConsumers", "type"],
|
|
333
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
334
|
+
"definitions": {
|
|
335
|
+
"WaitDelayerDefinition": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"properties": {
|
|
338
|
+
"interval": {
|
|
339
|
+
"type": "number",
|
|
340
|
+
"description": "Interval"
|
|
341
|
+
},
|
|
342
|
+
"type": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"description": "Type of delayer registered in WaitDelayerFactoryRegistry"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"required": ["interval", "type"],
|
|
348
|
+
"description": "WaitDelayer definition"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"title": "MemoryQueue"
|
|
352
|
+
},
|
|
353
|
+
"webda/multinotificationservice": {
|
|
354
|
+
"type": "object",
|
|
355
|
+
"properties": {
|
|
356
|
+
"type": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "Type of the service"
|
|
359
|
+
},
|
|
360
|
+
"senders": {
|
|
361
|
+
"type": "array",
|
|
362
|
+
"items": {
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"description": "Notification service that will send The order of the array is important if multiple is false When multiple is `false` the first available NotificationService will be used, otherwise every available NotificationService will be used"
|
|
366
|
+
},
|
|
367
|
+
"multiple": {
|
|
368
|
+
"type": "boolean",
|
|
369
|
+
"description": "Define if it sends one or several notification per user",
|
|
370
|
+
"default": false
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": ["senders", "type"],
|
|
374
|
+
"description": "Parameters for multi notification service",
|
|
375
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
376
|
+
"title": "MultiNotificationService"
|
|
377
|
+
},
|
|
378
|
+
"webda/mailer": {
|
|
379
|
+
"type": "object",
|
|
380
|
+
"properties": {
|
|
381
|
+
"type": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"description": "Type of the service"
|
|
384
|
+
},
|
|
385
|
+
"templates": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"description": "Specify which foldeer contains templates",
|
|
388
|
+
"default": "templates"
|
|
389
|
+
},
|
|
390
|
+
"templatesEngine": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"description": "Template engine to usee",
|
|
393
|
+
"default": "mustache"
|
|
394
|
+
},
|
|
395
|
+
"sender": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "Define the default sender"
|
|
398
|
+
},
|
|
399
|
+
"emailTemplateOptions": {},
|
|
400
|
+
"transport": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"description": "Define the type of transport to use"
|
|
403
|
+
},
|
|
404
|
+
"SES": {
|
|
405
|
+
"description": "SES AWS Bean if transport === \"ses\""
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"required": ["SES", "sender", "type"],
|
|
409
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
410
|
+
"title": "Mailer"
|
|
411
|
+
},
|
|
412
|
+
"webda/authentication": {
|
|
413
|
+
"type": "object",
|
|
414
|
+
"properties": {
|
|
415
|
+
"type": {
|
|
416
|
+
"type": "string",
|
|
417
|
+
"description": "Type of the service"
|
|
418
|
+
},
|
|
419
|
+
"identStore": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"description": "Idents store for authentication identifiers",
|
|
422
|
+
"default": "idents"
|
|
423
|
+
},
|
|
424
|
+
"userStore": {
|
|
425
|
+
"type": "string",
|
|
426
|
+
"description": "User store for authentication users",
|
|
427
|
+
"default": "users"
|
|
428
|
+
},
|
|
429
|
+
"url": {
|
|
430
|
+
"type": "string",
|
|
431
|
+
"default": "/auth"
|
|
432
|
+
},
|
|
433
|
+
"email": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"properties": {
|
|
436
|
+
"mailer": {
|
|
437
|
+
"type": "string",
|
|
438
|
+
"description": "Mailer service name"
|
|
439
|
+
},
|
|
440
|
+
"postValidation": {
|
|
441
|
+
"type": "boolean",
|
|
442
|
+
"description": "Allow user to create their account without validating their email first"
|
|
443
|
+
},
|
|
444
|
+
"skipEmailValidation": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "Do not even validate the email at all"
|
|
447
|
+
},
|
|
448
|
+
"delay": {
|
|
449
|
+
"type": "number",
|
|
450
|
+
"description": "Minimal delay between two password recovery or validation email",
|
|
451
|
+
"default": "3600000 * 4"
|
|
452
|
+
},
|
|
453
|
+
"failedLoginBeforeDelay": {
|
|
454
|
+
"type": "number",
|
|
455
|
+
"description": "When a delay is added between two attempt to authenticate",
|
|
456
|
+
"default": 3
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"required": ["postValidation", "skipEmailValidation", "delay", "failedLoginBeforeDelay"],
|
|
460
|
+
"description": "Enable the email authentication"
|
|
461
|
+
},
|
|
462
|
+
"password": {
|
|
463
|
+
"type": "object",
|
|
464
|
+
"properties": {
|
|
465
|
+
"verifier": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"description": "Password verifier Service name"
|
|
468
|
+
},
|
|
469
|
+
"regexp": {
|
|
470
|
+
"type": "string",
|
|
471
|
+
"description": "Regexp that password must check",
|
|
472
|
+
"default": "{8,}"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"salt": {
|
|
477
|
+
"type": "string",
|
|
478
|
+
"description": "Number of salt iteration for bcrypt.hashSync"
|
|
479
|
+
},
|
|
480
|
+
"failureRedirect": {
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "Redirect to this page when email validation failed"
|
|
483
|
+
},
|
|
484
|
+
"successRedirect": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "Redirect to this page when email validation succeed"
|
|
487
|
+
},
|
|
488
|
+
"registerRedirect": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"description": "Redirect to this page once email is validate to finish the registration process"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"required": ["failureRedirect", "password", "registerRedirect", "salt", "successRedirect", "type"],
|
|
494
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
495
|
+
"title": "Authentication"
|
|
496
|
+
},
|
|
497
|
+
"webda/configurationservice": {
|
|
498
|
+
"type": "object",
|
|
499
|
+
"properties": {
|
|
500
|
+
"type": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"description": "Type of the service"
|
|
503
|
+
},
|
|
504
|
+
"checkInterval": {
|
|
505
|
+
"type": "number",
|
|
506
|
+
"description": "Check configuration every {checkInterval} seconds"
|
|
507
|
+
},
|
|
508
|
+
"source": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"description": "Format sourceServiceName:sourceId"
|
|
511
|
+
},
|
|
512
|
+
"default": {
|
|
513
|
+
"description": "Default configuration to use"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"required": ["default", "source", "type"],
|
|
517
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
518
|
+
"title": "ConfigurationService"
|
|
519
|
+
},
|
|
520
|
+
"webda/cronservice": {
|
|
521
|
+
"type": "object",
|
|
522
|
+
"properties": {
|
|
523
|
+
"type": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"description": "Type of the service"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"required": ["type"],
|
|
529
|
+
"description": "Interface to specify the Service parameters",
|
|
530
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
531
|
+
"title": "EchoService"
|
|
532
|
+
},
|
|
533
|
+
"webda/debugmailer": {
|
|
534
|
+
"type": "object",
|
|
535
|
+
"properties": {
|
|
536
|
+
"type": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"description": "Type of the service"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
"required": ["type"],
|
|
542
|
+
"description": "Interface to specify the Service parameters",
|
|
543
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
544
|
+
"title": "DebugMailer"
|
|
545
|
+
},
|
|
546
|
+
"webda/echoservice": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"properties": {
|
|
549
|
+
"type": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"description": "Type of the service"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": ["type"],
|
|
555
|
+
"description": "Interface to specify the Service parameters",
|
|
556
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
557
|
+
"title": "EchoService"
|
|
558
|
+
},
|
|
559
|
+
"webda/filebinary": {
|
|
560
|
+
"type": "object",
|
|
561
|
+
"properties": {
|
|
562
|
+
"type": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"description": "Type of the service"
|
|
565
|
+
},
|
|
566
|
+
"map": {
|
|
567
|
+
"type": "object",
|
|
568
|
+
"additionalProperties": {
|
|
569
|
+
"type": "array",
|
|
570
|
+
"items": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
"description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in"
|
|
575
|
+
},
|
|
576
|
+
"expose": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"url": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"description": "URL to expose the service to"
|
|
582
|
+
},
|
|
583
|
+
"restrict": {
|
|
584
|
+
"type": "object",
|
|
585
|
+
"properties": {
|
|
586
|
+
"get": {
|
|
587
|
+
"type": "boolean",
|
|
588
|
+
"description": "Restrict GET"
|
|
589
|
+
},
|
|
590
|
+
"create": {
|
|
591
|
+
"type": "boolean",
|
|
592
|
+
"description": "Restrict POST"
|
|
593
|
+
},
|
|
594
|
+
"delete": {
|
|
595
|
+
"type": "boolean",
|
|
596
|
+
"description": "Restrict DELETE"
|
|
597
|
+
},
|
|
598
|
+
"metadata": {
|
|
599
|
+
"type": "boolean",
|
|
600
|
+
"description": "Restrict update of metadata"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"description": "Restrict some APIs"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
"required": ["url"],
|
|
607
|
+
"description": "Expose the service to http"
|
|
608
|
+
},
|
|
609
|
+
"folder": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"description": "Define the folder to store objects in"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"required": ["folder", "map", "type"],
|
|
615
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
616
|
+
"title": "FileBinary"
|
|
617
|
+
},
|
|
618
|
+
"webda/fileconfiguration": {
|
|
619
|
+
"type": "object",
|
|
620
|
+
"properties": {
|
|
621
|
+
"type": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"description": "Type of the service"
|
|
624
|
+
},
|
|
625
|
+
"checkInterval": {
|
|
626
|
+
"type": "number",
|
|
627
|
+
"description": "Check configuration every {checkInterval} seconds"
|
|
628
|
+
},
|
|
629
|
+
"source": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"description": "Format sourceServiceName:sourceId"
|
|
632
|
+
},
|
|
633
|
+
"default": {
|
|
634
|
+
"description": "Default configuration to use"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"required": ["default", "source", "type"],
|
|
638
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
639
|
+
"title": "FileConfiguration"
|
|
640
|
+
},
|
|
641
|
+
"webda/invitationservice": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"type": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"description": "Type of the service"
|
|
647
|
+
},
|
|
648
|
+
"authenticationService": {
|
|
649
|
+
"type": "string",
|
|
650
|
+
"description": "Name of the bean to use for Authentication",
|
|
651
|
+
"default": "Authentication"
|
|
652
|
+
},
|
|
653
|
+
"notificationService": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "Notification service",
|
|
656
|
+
"default": "Mailer"
|
|
657
|
+
},
|
|
658
|
+
"modelStore": {
|
|
659
|
+
"type": "string",
|
|
660
|
+
"description": "Store to use"
|
|
661
|
+
},
|
|
662
|
+
"invitationStore": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"description": "Used to store pending invitation"
|
|
665
|
+
},
|
|
666
|
+
"mapFields": {
|
|
667
|
+
"type": "array",
|
|
668
|
+
"items": {
|
|
669
|
+
"type": "string"
|
|
670
|
+
},
|
|
671
|
+
"description": "Fields to duplicate"
|
|
672
|
+
},
|
|
673
|
+
"mapAttribute": {
|
|
674
|
+
"type": "string",
|
|
675
|
+
"description": "Attribute to use for the mapping"
|
|
676
|
+
},
|
|
677
|
+
"attribute": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"description": "Attribute where to store once the invitation is accepted\n\nIf attribute is __acls, the multiple will be ignored and the storage will be compatible with AclModel\n\nWhere to store within the model User"
|
|
680
|
+
},
|
|
681
|
+
"pendingAttribute": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"description": "Attribute where to store once the invitation is created and pending\n\nWhere to store within the model Ident and User"
|
|
684
|
+
},
|
|
685
|
+
"multiple": {
|
|
686
|
+
"type": "boolean",
|
|
687
|
+
"description": "Define if several invitation can be accepted or just one"
|
|
688
|
+
},
|
|
689
|
+
"autoAccept": {
|
|
690
|
+
"type": "boolean",
|
|
691
|
+
"description": "Do not require a validation by the invitee"
|
|
692
|
+
},
|
|
693
|
+
"notification": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"description": "Email template to send to the user"
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"required": [
|
|
699
|
+
"attribute",
|
|
700
|
+
"authenticationService",
|
|
701
|
+
"autoAccept",
|
|
702
|
+
"invitationStore",
|
|
703
|
+
"mapAttribute",
|
|
704
|
+
"mapFields",
|
|
705
|
+
"modelStore",
|
|
706
|
+
"multiple",
|
|
707
|
+
"pendingAttribute",
|
|
708
|
+
"type"
|
|
709
|
+
],
|
|
710
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
711
|
+
"title": "InvitationService"
|
|
712
|
+
},
|
|
713
|
+
"webda/kubernetesconfigurationservice": {
|
|
714
|
+
"type": "object",
|
|
715
|
+
"properties": {
|
|
716
|
+
"type": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"description": "Type of the service"
|
|
719
|
+
},
|
|
720
|
+
"checkInterval": {
|
|
721
|
+
"type": "number",
|
|
722
|
+
"description": "Check configuration every {checkInterval} seconds"
|
|
723
|
+
},
|
|
724
|
+
"source": {
|
|
725
|
+
"type": "string",
|
|
726
|
+
"description": "Format sourceServiceName:sourceId"
|
|
727
|
+
},
|
|
728
|
+
"default": {
|
|
729
|
+
"description": "Default configuration to use"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"required": ["default", "source", "type"],
|
|
733
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
734
|
+
"title": "KubernetesConfigurationService"
|
|
735
|
+
},
|
|
736
|
+
"webda/resourceservice": {
|
|
737
|
+
"type": "object",
|
|
738
|
+
"properties": {
|
|
739
|
+
"type": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"description": "Type of the service"
|
|
742
|
+
},
|
|
743
|
+
"url": {
|
|
744
|
+
"type": "string",
|
|
745
|
+
"description": "URL on which to serve the content",
|
|
746
|
+
"default": "resources"
|
|
747
|
+
},
|
|
748
|
+
"folder": {
|
|
749
|
+
"type": "string",
|
|
750
|
+
"description": "Folder to server",
|
|
751
|
+
"default": "\".\" + url"
|
|
752
|
+
},
|
|
753
|
+
"rootRedirect": {
|
|
754
|
+
"type": "boolean",
|
|
755
|
+
"description": "Add the / root to redirect to /{url}",
|
|
756
|
+
"default": false
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"required": ["type"],
|
|
760
|
+
"description": "ResourceService parameters",
|
|
761
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
762
|
+
"title": "ResourceService"
|
|
763
|
+
},
|
|
764
|
+
"webda/versionservice": {
|
|
765
|
+
"type": "object",
|
|
766
|
+
"properties": {
|
|
767
|
+
"type": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"description": "Type of the service"
|
|
770
|
+
},
|
|
771
|
+
"version": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "To force version otherwise would read from package.json"
|
|
774
|
+
},
|
|
775
|
+
"url": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"default": "/version"
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"required": ["type"],
|
|
781
|
+
"description": "Version parameters",
|
|
782
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
783
|
+
"title": "VersionService"
|
|
784
|
+
},
|
|
785
|
+
"webda/mapper": {
|
|
786
|
+
"type": "object",
|
|
787
|
+
"properties": {
|
|
788
|
+
"type": {
|
|
789
|
+
"type": "string",
|
|
790
|
+
"description": "Type of the service"
|
|
791
|
+
},
|
|
792
|
+
"fields": {
|
|
793
|
+
"type": "array",
|
|
794
|
+
"items": {
|
|
795
|
+
"type": "string"
|
|
796
|
+
},
|
|
797
|
+
"description": "Field to duplicate"
|
|
798
|
+
},
|
|
799
|
+
"source": {
|
|
800
|
+
"type": "string",
|
|
801
|
+
"description": "Source service"
|
|
802
|
+
},
|
|
803
|
+
"target": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"description": "Target store"
|
|
806
|
+
},
|
|
807
|
+
"async": {
|
|
808
|
+
"type": "boolean",
|
|
809
|
+
"description": "Async",
|
|
810
|
+
"default": false
|
|
811
|
+
},
|
|
812
|
+
"attribute": {
|
|
813
|
+
"type": "string",
|
|
814
|
+
"description": "Attribute to use for link\n\nDepending on the type - string[]: will consider each string as id - string: will be consider as id - Object: each keys will be consider as id"
|
|
815
|
+
},
|
|
816
|
+
"targetAttribute": {
|
|
817
|
+
"type": "string",
|
|
818
|
+
"description": "The object will contain a Mapper"
|
|
819
|
+
},
|
|
820
|
+
"cascade": {
|
|
821
|
+
"type": "boolean",
|
|
822
|
+
"description": "Delete source if target object is deleted"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"required": ["async", "attribute", "cascade", "fields", "source", "target", "targetAttribute", "type"],
|
|
826
|
+
"description": "Mapper configuration",
|
|
827
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
828
|
+
"title": "Mapper"
|
|
829
|
+
},
|
|
830
|
+
"webda/aggregator": {
|
|
831
|
+
"type": "object",
|
|
832
|
+
"properties": {
|
|
833
|
+
"type": {
|
|
834
|
+
"type": "string",
|
|
835
|
+
"description": "Type of the service"
|
|
836
|
+
},
|
|
837
|
+
"fields": {
|
|
838
|
+
"type": "array",
|
|
839
|
+
"items": {
|
|
840
|
+
"type": "string"
|
|
841
|
+
},
|
|
842
|
+
"description": "Field to duplicate"
|
|
843
|
+
},
|
|
844
|
+
"source": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"description": "Source service"
|
|
847
|
+
},
|
|
848
|
+
"target": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"description": "Target store"
|
|
851
|
+
},
|
|
852
|
+
"async": {
|
|
853
|
+
"type": "boolean",
|
|
854
|
+
"description": "Async",
|
|
855
|
+
"default": false
|
|
856
|
+
},
|
|
857
|
+
"attribute": {
|
|
858
|
+
"type": "string",
|
|
859
|
+
"description": "Attribute to use for link\n\nDepending on the type - string[]: will consider each string as id - string: will be consider as id - Object: each keys will be consider as id"
|
|
860
|
+
},
|
|
861
|
+
"targetAttribute": {
|
|
862
|
+
"type": "string",
|
|
863
|
+
"description": "The object will contain a Mapper"
|
|
864
|
+
},
|
|
865
|
+
"cascade": {
|
|
866
|
+
"type": "boolean",
|
|
867
|
+
"description": "Delete source if target object is deleted"
|
|
868
|
+
},
|
|
869
|
+
"key": {
|
|
870
|
+
"type": "string",
|
|
871
|
+
"default": "index"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"required": ["async", "attribute", "cascade", "fields", "key", "source", "target", "targetAttribute", "type"],
|
|
875
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
876
|
+
"title": "Aggregator"
|
|
877
|
+
},
|
|
878
|
+
"webda/filestore": {
|
|
879
|
+
"type": "object",
|
|
880
|
+
"properties": {
|
|
881
|
+
"type": {
|
|
882
|
+
"type": "string",
|
|
883
|
+
"description": "Type of the service"
|
|
884
|
+
},
|
|
885
|
+
"model": {
|
|
886
|
+
"type": "string",
|
|
887
|
+
"description": "Webda model to use within the Store",
|
|
888
|
+
"default": "Webda/CoreModel"
|
|
889
|
+
},
|
|
890
|
+
"asyncDelete": {
|
|
891
|
+
"type": "boolean",
|
|
892
|
+
"description": "async delete"
|
|
893
|
+
},
|
|
894
|
+
"expose": {
|
|
895
|
+
"anyOf": [
|
|
896
|
+
{
|
|
897
|
+
"$ref": "#/definitions/ExposeParameters"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"type": "boolean"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"type": "string"
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
"description": "Expose the service to an urls"
|
|
907
|
+
},
|
|
908
|
+
"strict": {
|
|
909
|
+
"type": "boolean",
|
|
910
|
+
"description": "Allow to load object that does not have the type data",
|
|
911
|
+
"deprecated": 2,
|
|
912
|
+
"default": true
|
|
913
|
+
},
|
|
914
|
+
"folder": {
|
|
915
|
+
"type": "string",
|
|
916
|
+
"description": "Local path where to store all `json` files"
|
|
917
|
+
},
|
|
918
|
+
"beautify": {
|
|
919
|
+
"type": ["string", "number"],
|
|
920
|
+
"description": "Parameter sent to JSON.stringify when storing the json"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"required": ["asyncDelete", "folder", "type"],
|
|
924
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
925
|
+
"definitions": {
|
|
926
|
+
"ExposeParameters": {
|
|
927
|
+
"type": "object",
|
|
928
|
+
"properties": {
|
|
929
|
+
"url": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "URL endpoint to use to expose REST Resources API",
|
|
932
|
+
"default": "service.getName().toLowerCase()"
|
|
933
|
+
},
|
|
934
|
+
"restrict": {
|
|
935
|
+
"type": "object",
|
|
936
|
+
"properties": {
|
|
937
|
+
"create": {
|
|
938
|
+
"type": "boolean",
|
|
939
|
+
"description": "Do not expose the POST"
|
|
940
|
+
},
|
|
941
|
+
"update": {
|
|
942
|
+
"type": "boolean",
|
|
943
|
+
"description": "Do not expose the PUT and PATCH"
|
|
944
|
+
},
|
|
945
|
+
"get": {
|
|
946
|
+
"type": "boolean",
|
|
947
|
+
"description": "Do not expose the GET"
|
|
948
|
+
},
|
|
949
|
+
"delete": {
|
|
950
|
+
"type": "boolean",
|
|
951
|
+
"description": "Do not expose the DELETE"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"description": "You can restrict any part of the CRUD",
|
|
955
|
+
"default": {}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
"title": "FileStore"
|
|
961
|
+
},
|
|
962
|
+
"webda/memorystore": {
|
|
963
|
+
"type": "object",
|
|
964
|
+
"properties": {
|
|
965
|
+
"type": {
|
|
966
|
+
"type": "string",
|
|
967
|
+
"description": "Type of the service"
|
|
968
|
+
},
|
|
969
|
+
"model": {
|
|
970
|
+
"type": "string",
|
|
971
|
+
"description": "Webda model to use within the Store",
|
|
972
|
+
"default": "Webda/CoreModel"
|
|
973
|
+
},
|
|
974
|
+
"asyncDelete": {
|
|
975
|
+
"type": "boolean",
|
|
976
|
+
"description": "async delete"
|
|
977
|
+
},
|
|
978
|
+
"expose": {
|
|
979
|
+
"anyOf": [
|
|
980
|
+
{
|
|
981
|
+
"$ref": "#/definitions/ExposeParameters"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"type": "boolean"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"type": "string"
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"description": "Expose the service to an urls"
|
|
991
|
+
},
|
|
992
|
+
"strict": {
|
|
993
|
+
"type": "boolean",
|
|
994
|
+
"description": "Allow to load object that does not have the type data",
|
|
995
|
+
"deprecated": 2,
|
|
996
|
+
"default": true
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"required": ["asyncDelete", "type"],
|
|
1000
|
+
"description": "Store parameter",
|
|
1001
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1002
|
+
"definitions": {
|
|
1003
|
+
"ExposeParameters": {
|
|
1004
|
+
"type": "object",
|
|
1005
|
+
"properties": {
|
|
1006
|
+
"url": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"description": "URL endpoint to use to expose REST Resources API",
|
|
1009
|
+
"default": "service.getName().toLowerCase()"
|
|
1010
|
+
},
|
|
1011
|
+
"restrict": {
|
|
1012
|
+
"type": "object",
|
|
1013
|
+
"properties": {
|
|
1014
|
+
"create": {
|
|
1015
|
+
"type": "boolean",
|
|
1016
|
+
"description": "Do not expose the POST"
|
|
1017
|
+
},
|
|
1018
|
+
"update": {
|
|
1019
|
+
"type": "boolean",
|
|
1020
|
+
"description": "Do not expose the PUT and PATCH"
|
|
1021
|
+
},
|
|
1022
|
+
"get": {
|
|
1023
|
+
"type": "boolean",
|
|
1024
|
+
"description": "Do not expose the GET"
|
|
1025
|
+
},
|
|
1026
|
+
"delete": {
|
|
1027
|
+
"type": "boolean",
|
|
1028
|
+
"description": "Do not expose the DELETE"
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"description": "You can restrict any part of the CRUD",
|
|
1032
|
+
"default": {}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
"title": "MemoryStore"
|
|
1038
|
+
},
|
|
1039
|
+
"webda/memorylogger": {
|
|
1040
|
+
"type": "object",
|
|
1041
|
+
"properties": {
|
|
1042
|
+
"type": {
|
|
1043
|
+
"type": "string",
|
|
1044
|
+
"description": "Type of the service"
|
|
1045
|
+
},
|
|
1046
|
+
"logLevel": {
|
|
1047
|
+
"$ref": "#/definitions/WorkerLogLevel",
|
|
1048
|
+
"description": "Specify the log level of this service"
|
|
1049
|
+
},
|
|
1050
|
+
"limit": {
|
|
1051
|
+
"type": "number"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
"required": ["logLevel", "type"],
|
|
1055
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1056
|
+
"definitions": {
|
|
1057
|
+
"WorkerLogLevel": {
|
|
1058
|
+
"type": "string",
|
|
1059
|
+
"enum": ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"],
|
|
1060
|
+
"description": "LogLevel as intersection to compare with integer values"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"title": "MemoryLogger"
|
|
1064
|
+
},
|
|
1065
|
+
"webda/consolelogger": {
|
|
1066
|
+
"type": "object",
|
|
1067
|
+
"properties": {
|
|
1068
|
+
"type": {
|
|
1069
|
+
"type": "string",
|
|
1070
|
+
"description": "Type of the service"
|
|
1071
|
+
},
|
|
1072
|
+
"logLevel": {
|
|
1073
|
+
"$ref": "#/definitions/WorkerLogLevel",
|
|
1074
|
+
"description": "Specify the log level of this service"
|
|
1075
|
+
},
|
|
1076
|
+
"format": {
|
|
1077
|
+
"type": "string"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"required": ["logLevel", "type"],
|
|
1081
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1082
|
+
"definitions": {
|
|
1083
|
+
"WorkerLogLevel": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"enum": ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"],
|
|
1086
|
+
"description": "LogLevel as intersection to compare with integer values"
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"title": "ConsoleLogger"
|
|
1090
|
+
},
|
|
1091
|
+
"webda/filelogger": {
|
|
1092
|
+
"type": "object",
|
|
1093
|
+
"properties": {
|
|
1094
|
+
"type": {
|
|
1095
|
+
"type": "string",
|
|
1096
|
+
"description": "Type of the service"
|
|
1097
|
+
},
|
|
1098
|
+
"logLevel": {
|
|
1099
|
+
"$ref": "#/definitions/WorkerLogLevel",
|
|
1100
|
+
"description": "Specify the log level of this service"
|
|
1101
|
+
},
|
|
1102
|
+
"format": {
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
},
|
|
1105
|
+
"file": {
|
|
1106
|
+
"type": "string"
|
|
1107
|
+
},
|
|
1108
|
+
"sizeLimit": {
|
|
1109
|
+
"type": "number"
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"required": ["file", "logLevel", "type"],
|
|
1113
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1114
|
+
"definitions": {
|
|
1115
|
+
"WorkerLogLevel": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"enum": ["ERROR", "WARN", "INFO", "DEBUG", "TRACE"],
|
|
1118
|
+
"description": "LogLevel as intersection to compare with integer values"
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"title": "FileLogger"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|