@webda/postgres 2.2.0 → 2.3.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/package.json +4 -4
- package/webda.module.json +28 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webda/postgres",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Implements Postgres on webda",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postgres",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"test": "c8 mocha --recursive --exit --timeout=100000 src/**/*.spec.ts src/*.spec.ts"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@webda/core": "^2.
|
|
22
|
+
"@webda/core": "^2.3.0",
|
|
23
23
|
"pg": "^8.7.1"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "14.6.0",
|
|
51
|
-
"@webda/shell": "^2.
|
|
51
|
+
"@webda/shell": "^2.3.0"
|
|
52
52
|
},
|
|
53
53
|
"type": "module",
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=14.6.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "fcdb5181ae9353dd8618017fae07ca75203bb1ad"
|
|
58
58
|
}
|
package/webda.module.json
CHANGED
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
"description": "Webda model to use within the Store",
|
|
23
23
|
"default": "Webda/CoreModel"
|
|
24
24
|
},
|
|
25
|
+
"models": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"description": "Different models managed by this store"
|
|
31
|
+
},
|
|
25
32
|
"asyncDelete": {
|
|
26
33
|
"type": "boolean",
|
|
27
34
|
"description": "async delete"
|
|
@@ -32,7 +39,7 @@
|
|
|
32
39
|
},
|
|
33
40
|
"strict": {
|
|
34
41
|
"type": "boolean",
|
|
35
|
-
"description": "Allow to load object that does not have the type data",
|
|
42
|
+
"description": "Allow to load object that does not have the type data\n\nIf set to true, then the Store will only managed the defined _model and no model extending this one",
|
|
36
43
|
"default": false
|
|
37
44
|
},
|
|
38
45
|
"defaultModel": {
|
|
@@ -50,6 +57,26 @@
|
|
|
50
57
|
"description": "Slow query threshold",
|
|
51
58
|
"default": 30000
|
|
52
59
|
},
|
|
60
|
+
"parent": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"name": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"condition": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": [
|
|
71
|
+
"name",
|
|
72
|
+
"condition"
|
|
73
|
+
],
|
|
74
|
+
"description": "Parent of the store\n\nIf parent is specified the url route is relative to it"
|
|
75
|
+
},
|
|
76
|
+
"graphql": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "For future use in our GraphQL api\n\nExpose this store in the graphql"
|
|
79
|
+
},
|
|
53
80
|
"table": {
|
|
54
81
|
"type": "string"
|
|
55
82
|
},
|
|
@@ -187,9 +214,6 @@
|
|
|
187
214
|
}
|
|
188
215
|
]
|
|
189
216
|
},
|
|
190
|
-
"parseInputDatesAsUTC": {
|
|
191
|
-
"type": "boolean"
|
|
192
|
-
},
|
|
193
217
|
"ssl": {
|
|
194
218
|
"anyOf": [
|
|
195
219
|
{
|
|
@@ -1194,9 +1218,6 @@
|
|
|
1194
1218
|
}
|
|
1195
1219
|
]
|
|
1196
1220
|
},
|
|
1197
|
-
"parseInputDatesAsUTC": {
|
|
1198
|
-
"type": "boolean"
|
|
1199
|
-
},
|
|
1200
1221
|
"ssl": {
|
|
1201
1222
|
"anyOf": [
|
|
1202
1223
|
{
|