@axium/server 0.36.6 → 0.37.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/dist/acl.d.ts +1 -0
- package/dist/acl.js +1 -1
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +30 -9
- package/dist/database.d.ts +11 -507
- package/dist/database.js +8 -557
- package/dist/db/connection.d.ts +5 -0
- package/dist/db/connection.js +18 -0
- package/dist/db/data.d.ts +119 -0
- package/dist/db/data.js +113 -0
- package/dist/db/delta.d.ts +147 -0
- package/dist/db/delta.js +390 -0
- package/dist/db/schema.d.ts +268 -0
- package/dist/db/schema.js +169 -0
- package/dist/{db.json → db/schema.json} +5 -3
- package/dist/main.js +37 -23
- package/package.json +2 -2
- package/routes/admin/users/+page.svelte +1 -1
- package/schemas/db.json +48 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axium/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.1",
|
|
4
4
|
"author": "James Prevett <axium@jamespre.dev>",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsc",
|
|
46
|
-
"build:schemas": "mkdir -p schemas && npx axium config schema -j > schemas/config.json && npx axium db schema -j > schemas/db.json",
|
|
46
|
+
"build:schemas": "mkdir -p schemas && npx axium config schema -j > schemas/config.json && npx axium db json-schema -j > schemas/db.json",
|
|
47
47
|
"clean": "rm -rf build .svelte-kit node_modules/{.vite,.vite-temp}"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
package/schemas/db.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"properties": {
|
|
5
5
|
"format": {
|
|
6
6
|
"type": "number",
|
|
7
|
-
"const":
|
|
7
|
+
"const": 1
|
|
8
8
|
},
|
|
9
9
|
"versions": {
|
|
10
10
|
"type": "array",
|
|
@@ -243,11 +243,28 @@
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
"indexes": {
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
246
|
+
"type": "object",
|
|
247
|
+
"propertyNames": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"additionalProperties": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"on": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
"columns": {
|
|
257
|
+
"type": "array",
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"on",
|
|
265
|
+
"columns"
|
|
266
|
+
],
|
|
267
|
+
"additionalProperties": false
|
|
251
268
|
}
|
|
252
269
|
},
|
|
253
270
|
"delta": {
|
|
@@ -257,6 +274,7 @@
|
|
|
257
274
|
},
|
|
258
275
|
"required": [
|
|
259
276
|
"tables",
|
|
277
|
+
"indexes",
|
|
260
278
|
"delta"
|
|
261
279
|
],
|
|
262
280
|
"additionalProperties": false
|
|
@@ -843,19 +861,36 @@
|
|
|
843
861
|
}
|
|
844
862
|
},
|
|
845
863
|
"add_indexes": {
|
|
846
|
-
"default":
|
|
847
|
-
"type": "
|
|
848
|
-
"
|
|
849
|
-
"type": "string"
|
|
850
|
-
|
|
864
|
+
"default": {},
|
|
865
|
+
"type": "object",
|
|
866
|
+
"propertyNames": {
|
|
867
|
+
"type": "string"
|
|
868
|
+
},
|
|
869
|
+
"additionalProperties": {
|
|
870
|
+
"type": "object",
|
|
871
|
+
"properties": {
|
|
872
|
+
"on": {
|
|
873
|
+
"type": "string"
|
|
874
|
+
},
|
|
875
|
+
"columns": {
|
|
876
|
+
"type": "array",
|
|
877
|
+
"items": {
|
|
878
|
+
"type": "string"
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
"required": [
|
|
883
|
+
"on",
|
|
884
|
+
"columns"
|
|
885
|
+
],
|
|
886
|
+
"additionalProperties": false
|
|
851
887
|
}
|
|
852
888
|
},
|
|
853
889
|
"drop_indexes": {
|
|
854
890
|
"default": [],
|
|
855
891
|
"type": "array",
|
|
856
892
|
"items": {
|
|
857
|
-
"type": "string"
|
|
858
|
-
"pattern": "^[\\s\\S]{0,}:[\\s\\S]{0,}$"
|
|
893
|
+
"type": "string"
|
|
859
894
|
}
|
|
860
895
|
}
|
|
861
896
|
},
|