@antelopejs/dms-database 0.5.1 → 0.5.2

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/README.md CHANGED
@@ -62,8 +62,8 @@ Restart the backend, then the frontend, sign in as the platform owner and open *
62
62
  | `@antelopejs/interface-api` | `>=0.3.3 <0.4.0` | `0.3.3` |
63
63
  | `@antelopejs/interface-api-util` | `>=0.3.2 <0.4.0` | `0.3.2` |
64
64
  | `@antelopejs/interface-core` | `>=0.5.1 <0.6.0` | `0.5.1` |
65
- | `@antelopejs/interface-database` | `>=0.4.0 <0.5.0` | `0.4.0` |
66
- | `@antelopejs/interface-database-catalog` | `>=0.0.4 <0.1.0` | `0.0.4` |
65
+ | `@antelopejs/interface-database` | `>=0.4.0 <0.5.0` | `0.4.1` |
66
+ | `@antelopejs/interface-database-catalog` | `>=0.1.0 <0.2.0` | `0.1.0` |
67
67
  | `@antelopejs/interface-database-decorators` | `>=0.5.2 <0.6.0` | `0.5.2` |
68
68
  | `@antelopejs/interface-dms` | `>=0.14.0 <0.15.0` | `0.14.0` |
69
69
  | `@antelopejs/interface-dms-automation` | `>=0.7.0 <0.8.0` | `0.7.0` |
@@ -117,8 +117,7 @@ This module installs into [AntelopeJS DMS](https://github.com/AntelopeJS/dms), t
117
117
 
118
118
  | Module | What it adds |
119
119
  | ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
120
- | [`dms-builder`](https://github.com/AntelopeJS/dms-builder) | Edit pages, tables and data sources by clicking, as TypeScript that compiles |
121
- | [`dms-ai`](https://github.com/AntelopeJS/dms-ai) | An assistant chat in the dashboard, on your own Claude Code or Codex |
120
+ | [`dms-assistant`](https://github.com/AntelopeJS/dms-assistant) | An assistant chat in the dashboard and its onboarding, on your own Claude Code or Codex |
122
121
  | [`dms-database`](https://github.com/AntelopeJS/dms-database) | Schemas, relation diagrams, a data browser and a query console |
123
122
  | [`dms-api`](https://github.com/AntelopeJS/dms-api) | API health, request logs, per-route statistics and a request tester |
124
123
  | [`dms-automation`](https://github.com/AntelopeJS/dms-automation) | Node-graph automations on schedules, webhooks and DMS events, with a trace for every run |
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DiagramLayoutModel = void 0;
4
- const interface_database_1 = require("@antelopejs/interface-database");
5
4
  const interface_database_decorators_1 = require("@antelopejs/interface-database-decorators");
6
5
  const diagram_layouts_table_1 = require("../tables/diagram_layouts.table");
7
6
  class DiagramLayoutModel extends (0, interface_database_decorators_1.BasicDataModel)(diagram_layouts_table_1.DiagramLayout, diagram_layouts_table_1.diagramLayoutsTableName) {
@@ -9,7 +8,7 @@ class DiagramLayoutModel extends (0, interface_database_decorators_1.BasicDataMo
9
8
  return this.get(schemaName);
10
9
  }
11
10
  async upsertForSchema(schemaName, positions) {
12
- const write = () => this.table
11
+ await this.table
13
12
  .insert({
14
13
  _id: schemaName,
15
14
  schemaName,
@@ -17,14 +16,6 @@ class DiagramLayoutModel extends (0, interface_database_decorators_1.BasicDataMo
17
16
  updatedAt: new Date(),
18
17
  }, { conflict: "update" })
19
18
  .run();
20
- try {
21
- await write();
22
- }
23
- catch (error) {
24
- if (!(0, interface_database_1.IsDuplicateKeyError)(error))
25
- throw error;
26
- await write();
27
- }
28
19
  }
29
20
  }
30
21
  exports.DiagramLayoutModel = DiagramLayoutModel;
@@ -1 +1 @@
1
- {"version":3,"file":"diagram_layouts.model.js","sourceRoot":"","sources":["../../../src/db/models/diagram_layouts.model.ts"],"names":[],"mappings":";;;AAAA,uEAAqE;AACrE,6FAA2E;AAE3E,2EAGyC;AAGzC,MAAa,kBAAmB,SAAQ,IAAA,8CAAc,EACpD,qCAAa,EACb,+CAAuB,CACxB;IACC,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC9B,CAAC;IAMD,KAAK,CAAC,eAAe,CACnB,UAAkB,EAClB,SAAmC;QAEnC,MAAM,KAAK,GAAG,GAAG,EAAE,CACjB,IAAI,CAAC,KAAK;aACP,MAAM,CACL;YACE,GAAG,EAAE,UAAU;YACf,UAAU;YACV,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;YACpC,SAAS,EAAE,IAAI,IAAI,EAAE;SACtB,EACD,EAAE,QAAQ,EAAE,QAAQ,EAAE,CACvB;aACA,GAAG,EAAE,CAAC;QACX,IAAI,CAAC;YACH,MAAM,KAAK,EAAE,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,IAAA,wCAAmB,EAAC,KAAK,CAAC;gBAAE,MAAM,KAAK,CAAC;YAC7C,MAAM,KAAK,EAAE,CAAC;QAChB,CAAC;IACH,CAAC;CACF;AAnCD,gDAmCC"}
1
+ {"version":3,"file":"diagram_layouts.model.js","sourceRoot":"","sources":["../../../src/db/models/diagram_layouts.model.ts"],"names":[],"mappings":";;;AAAA,6FAA2E;AAE3E,2EAGyC;AAGzC,MAAa,kBAAmB,SAAQ,IAAA,8CAAc,EACpD,qCAAa,EACb,+CAAuB,CACxB;IACC,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC9B,CAAC;IAGD,KAAK,CAAC,eAAe,CACnB,UAAkB,EAClB,SAAmC;QAEnC,MAAM,IAAI,CAAC,KAAK;aACb,MAAM,CACL;YACE,GAAG,EAAE,UAAU;YACf,UAAU;YACV,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;YACpC,SAAS,EAAE,IAAI,IAAI,EAAE;SACtB,EACD,EAAE,QAAQ,EAAE,QAAQ,EAAE,CACvB;aACA,GAAG,EAAE,CAAC;IACX,CAAC;CACF;AAzBD,gDAyBC"}
@@ -6,7 +6,7 @@
6
6
  "main": "./dms.frontend.ts",
7
7
  "packageManager": "pnpm@10.6.5",
8
8
  "engines": {
9
- "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0"
9
+ "@antelopejs/dms-frontend": ">=0.11.4 <0.12.0"
10
10
  },
11
11
  "scripts": {
12
12
  "dev": "pnpm --dir ../playground frontend:dev",
@@ -13,7 +13,7 @@ importers:
13
13
  version: 0.5.1
14
14
  '@antelopejs/interface-database':
15
15
  specifier: '>=0.4.0 <0.5.0'
16
- version: 0.4.0(@antelopejs/interface-core@0.5.1)
16
+ version: 0.4.1(@antelopejs/interface-core@0.5.1)
17
17
  '@codemirror/autocomplete':
18
18
  specifier: ^6.18.6
19
19
  version: 6.20.3
@@ -91,10 +91,10 @@ packages:
91
91
  '@antelopejs/interface-core@0.5.1':
92
92
  resolution: {integrity: sha512-ON/7TYA1yyT8UznzKi6vnwyjRU3byNE0OcFXBmf8dE/dqp8hKjeWHVyA2EUPOngmEimCLw4idZqOS5DJqMJx3g==}
93
93
 
94
- '@antelopejs/interface-database@0.4.0':
95
- resolution: {integrity: sha512-cdVGd0qdHwkS3PHdbV9IJUyL3OoGjnmXoVbXdHPNmbwzmjUDkZQHFN2Y3b58SGsH11k3nS1EJLq0sTbKVhaKdQ==}
94
+ '@antelopejs/interface-database@0.4.1':
95
+ resolution: {integrity: sha512-Ad+a93DNl9zbdsKHCSaHCtrTwLnZB7Fv7S3+LmnplStrPFVLHZFVW6hCr8bB7Cv8cqpS1MjJVqm07/E/l82QGg==}
96
96
  peerDependencies:
97
- '@antelopejs/interface-core': '>=0.2.4 <1.0.0'
97
+ '@antelopejs/interface-core': '>=0.5.1 <0.6.0'
98
98
 
99
99
  '@antfu/install-pkg@2.0.1':
100
100
  resolution: {integrity: sha512-iCKVQcIC0e3oDxEfs3SHQGW+ovhBMZmS1TE+bTk50rVyMCBmCfClv7Qi3HQKlumYwvjb/iIMeWCW2i67q6kFfQ==}
@@ -3122,7 +3122,7 @@ snapshots:
3122
3122
  dependencies:
3123
3123
  reflect-metadata: 0.2.2
3124
3124
 
3125
- '@antelopejs/interface-database@0.4.0(@antelopejs/interface-core@0.5.1)':
3125
+ '@antelopejs/interface-database@0.4.1(@antelopejs/interface-core@0.5.1)':
3126
3126
  dependencies:
3127
3127
  '@antelopejs/interface-core': 0.5.1
3128
3128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-database",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Database console for the AntelopeJS DMS: schemas, relation diagrams, a data browser and an AQL query console.",
5
5
  "keywords": [
6
6
  "admin",
@@ -71,18 +71,18 @@
71
71
  "@antelopejs/interface-api-util": ">=0.3.2 <0.4.0",
72
72
  "@antelopejs/interface-core": ">=0.5.1 <0.6.0",
73
73
  "@antelopejs/interface-database": ">=0.4.0 <0.5.0",
74
- "@antelopejs/interface-database-catalog": ">=0.0.4 <0.1.0",
74
+ "@antelopejs/interface-database-catalog": ">=0.1.0 <0.2.0",
75
75
  "@antelopejs/interface-database-decorators": ">=0.5.2 <0.6.0",
76
76
  "@antelopejs/interface-dms": ">=0.14.0 <0.15.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@antelopejs/core": "~1.23.2",
80
- "@antelopejs/dms": ">=0.20.0 <0.21.0",
79
+ "@antelopejs/core": "~1.24.0",
80
+ "@antelopejs/dms": ">=0.20.2 <0.21.0",
81
81
  "@antelopejs/dms-automation": ">=0.11.1 <0.12.0",
82
- "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0",
82
+ "@antelopejs/dms-frontend": ">=0.11.4 <0.12.0",
83
83
  "@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
84
- "@antelopejs/mongodb": "~1.8.1",
85
- "@antelopejs/tooling-configs": ">=0.7.1 <0.8.0",
84
+ "@antelopejs/mongodb": "~1.8.4",
85
+ "@antelopejs/tooling-configs": ">=0.7.4 <0.8.0",
86
86
  "@types/chai": "^5.2.3",
87
87
  "@types/mocha": "^10.0.10",
88
88
  "@types/node": "^24.0.0",