@webda/postgres 2.1.5 → 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.
Files changed (2) hide show
  1. package/package.json +5 -4
  2. package/webda.module.json +38 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webda/postgres",
3
- "version": "2.1.5",
3
+ "version": "2.3.0",
4
4
  "description": "Implements Postgres on webda",
5
5
  "keywords": [
6
6
  "postgres",
@@ -12,13 +12,14 @@
12
12
  "typings": "lib/index.d.ts",
13
13
  "scripts": {
14
14
  "build": "webda build",
15
+ "build:watch": "webda build --watch",
15
16
  "pretest": "npm run build",
16
17
  "lint": "prettier --check src/**/*",
17
18
  "lint:fix": "prettier --write src/**/*",
18
19
  "test": "c8 mocha --recursive --exit --timeout=100000 src/**/*.spec.ts src/*.spec.ts"
19
20
  },
20
21
  "dependencies": {
21
- "@webda/core": "^2.1.5",
22
+ "@webda/core": "^2.3.0",
22
23
  "pg": "^8.7.1"
23
24
  },
24
25
  "files": [
@@ -47,11 +48,11 @@
47
48
  },
48
49
  "devDependencies": {
49
50
  "@types/node": "14.6.0",
50
- "@webda/shell": "^2.1.5"
51
+ "@webda/shell": "^2.3.0"
51
52
  },
52
53
  "type": "module",
53
54
  "engines": {
54
55
  "node": ">=14.6.0"
55
56
  },
56
- "gitHead": "f8603d252baf83769b4906eff55c4d38e0934a1d"
57
+ "gitHead": "fcdb5181ae9353dd8618017fae07ca75203bb1ad"
57
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,14 +39,44 @@
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",
43
+ "default": false
44
+ },
45
+ "defaultModel": {
46
+ "type": "boolean",
47
+ "description": "When __type model not found, use the model If strict is setup this parameter is not used",
36
48
  "default": true
37
49
  },
50
+ "forceModel": {
51
+ "type": "boolean",
52
+ "description": "If set, Store will ignore the __type",
53
+ "default": false
54
+ },
38
55
  "slowQueryThreshold": {
39
56
  "type": "number",
40
57
  "description": "Slow query threshold",
41
58
  "default": 30000
42
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
+ },
43
80
  "table": {
44
81
  "type": "string"
45
82
  },
@@ -177,9 +214,6 @@
177
214
  }
178
215
  ]
179
216
  },
180
- "parseInputDatesAsUTC": {
181
- "type": "boolean"
182
- },
183
217
  "ssl": {
184
218
  "anyOf": [
185
219
  {
@@ -1184,9 +1218,6 @@
1184
1218
  }
1185
1219
  ]
1186
1220
  },
1187
- "parseInputDatesAsUTC": {
1188
- "type": "boolean"
1189
- },
1190
1221
  "ssl": {
1191
1222
  "anyOf": [
1192
1223
  {