orange-dragonfly-model 0.11.4 → 0.11.5

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.
@@ -1,11 +1,8 @@
1
- const ORM = require('orange-dragonfly-orm')
1
+ const { ActiveRecord } = require('orange-dragonfly-orm')
2
2
  const validate = require('orange-dragonfly-validator')
3
+ const ValidationException = require('./validation-exception')
3
4
 
4
- class ValidationException extends Error {
5
- info = {}
6
- }
7
-
8
- class Model extends ORM.ActiveRecord {
5
+ class Model extends ActiveRecord {
9
6
  static get IGNORE_EXTRA_FIELDS () {
10
7
  return false
11
8
  }
@@ -18,6 +15,14 @@ class Model extends ORM.ActiveRecord {
18
15
  return []
19
16
  }
20
17
 
18
+ /**
19
+ * Returns list of fulltext keys
20
+ * @returns Array[] List of unique keys
21
+ */
22
+ static get FULLTEXT_INDEXES () {
23
+ return []
24
+ }
25
+
21
26
  /**
22
27
  * Returns schema for the model (Orange Dragonfly Validator format)
23
28
  * @return object
@@ -0,0 +1,11 @@
1
+ class ValidationException extends Error {
2
+ get info () {
3
+ return this.__info || {}
4
+ }
5
+
6
+ set info (v) {
7
+ this.__info = v
8
+ }
9
+ }
10
+
11
+ module.exports = ValidationException
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-dragonfly-model",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "description": "Orange Dragonfly Model",
5
5
  "main": "index.js",
6
6
  "repository": {