@twin.org/entity 0.0.3-next.4 → 0.0.3-next.41
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 +1 -5
- package/dist/es/decorators/entityDecorator.js +2 -1
- package/dist/es/decorators/entityDecorator.js.map +1 -1
- package/dist/es/decorators/propertyDecorator.js +1 -0
- package/dist/es/decorators/propertyDecorator.js.map +1 -1
- package/dist/es/index.js +2 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IEntitySchemaDiff.js +2 -0
- package/dist/es/models/IEntitySchemaDiff.js.map +1 -0
- package/dist/es/utils/decoratorHelper.js +1 -0
- package/dist/es/utils/decoratorHelper.js.map +1 -1
- package/dist/es/utils/entityConditions.js +8 -0
- package/dist/es/utils/entityConditions.js.map +1 -1
- package/dist/es/utils/entitySchemaDiff.js +67 -0
- package/dist/es/utils/entitySchemaDiff.js.map +1 -0
- package/dist/types/decorators/entityDecorator.d.ts +1 -0
- package/dist/types/decorators/propertyDecorator.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/IEntitySchemaDiff.d.ts +35 -0
- package/dist/types/utils/decoratorHelper.d.ts +1 -0
- package/dist/types/utils/entitySchemaDiff.d.ts +22 -0
- package/docs/changelog.md +802 -84
- package/docs/examples.md +70 -1
- package/docs/reference/classes/DecoratorHelper.md +2 -2
- package/docs/reference/classes/EntityConditions.md +2 -2
- package/docs/reference/classes/EntitySchemaHelper.md +6 -6
- package/docs/reference/classes/EntitySorter.md +4 -4
- package/docs/reference/functions/entitySchemaDiff.md +38 -0
- package/docs/reference/functions/isEmptyDiff.md +25 -0
- package/docs/reference/index.md +3 -0
- package/docs/reference/interfaces/IComparator.md +3 -3
- package/docs/reference/interfaces/IComparatorGroup.md +3 -3
- package/docs/reference/interfaces/IEntitySchema.md +5 -5
- package/docs/reference/interfaces/IEntitySchemaDiff.md +53 -0
- package/docs/reference/interfaces/IEntitySchemaOptions.md +2 -2
- package/docs/reference/interfaces/IEntitySchemaProperty.md +20 -20
- package/docs/reference/interfaces/IEntitySort.md +3 -3
- package/docs/reference/variables/ComparisonOperator.md +9 -9
- package/docs/reference/variables/EntitySchemaPropertyFormat.md +17 -17
- package/docs/reference/variables/EntitySchemaPropertyType.md +6 -6
- package/docs/reference/variables/LogicalOperator.md +2 -2
- package/docs/reference/variables/SortDirection.md +2 -2
- package/package.json +7 -6
|
@@ -6,103 +6,103 @@ Definition of the entity property format.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Uuid
|
|
9
|
+
### Uuid {#uuid}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Uuid**: `"uuid"` = `"uuid"`
|
|
12
12
|
|
|
13
13
|
UUID.
|
|
14
14
|
|
|
15
|
-
### Uri
|
|
15
|
+
### Uri {#uri}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Uri**: `"uri"` = `"uri"`
|
|
18
18
|
|
|
19
19
|
URI.
|
|
20
20
|
|
|
21
|
-
### Email
|
|
21
|
+
### Email {#email}
|
|
22
22
|
|
|
23
23
|
> `readonly` **Email**: `"email"` = `"email"`
|
|
24
24
|
|
|
25
25
|
email.
|
|
26
26
|
|
|
27
|
-
### Int8
|
|
27
|
+
### Int8 {#int8}
|
|
28
28
|
|
|
29
29
|
> `readonly` **Int8**: `"int8"` = `"int8"`
|
|
30
30
|
|
|
31
31
|
int8.
|
|
32
32
|
|
|
33
|
-
### Uint8
|
|
33
|
+
### Uint8 {#uint8}
|
|
34
34
|
|
|
35
35
|
> `readonly` **Uint8**: `"uint8"` = `"uint8"`
|
|
36
36
|
|
|
37
37
|
uint8.
|
|
38
38
|
|
|
39
|
-
### Int16
|
|
39
|
+
### Int16 {#int16}
|
|
40
40
|
|
|
41
41
|
> `readonly` **Int16**: `"int16"` = `"int16"`
|
|
42
42
|
|
|
43
43
|
int16.
|
|
44
44
|
|
|
45
|
-
### Uint16
|
|
45
|
+
### Uint16 {#uint16}
|
|
46
46
|
|
|
47
47
|
> `readonly` **Uint16**: `"uint16"` = `"uint16"`
|
|
48
48
|
|
|
49
49
|
uint16.
|
|
50
50
|
|
|
51
|
-
### Int32
|
|
51
|
+
### Int32 {#int32}
|
|
52
52
|
|
|
53
53
|
> `readonly` **Int32**: `"int32"` = `"int32"`
|
|
54
54
|
|
|
55
55
|
int32.
|
|
56
56
|
|
|
57
|
-
### Uint32
|
|
57
|
+
### Uint32 {#uint32}
|
|
58
58
|
|
|
59
59
|
> `readonly` **Uint32**: `"uint32"` = `"uint32"`
|
|
60
60
|
|
|
61
61
|
uint32.
|
|
62
62
|
|
|
63
|
-
### Float
|
|
63
|
+
### Float {#float}
|
|
64
64
|
|
|
65
65
|
> `readonly` **Float**: `"float"` = `"float"`
|
|
66
66
|
|
|
67
67
|
float.
|
|
68
68
|
|
|
69
|
-
### Double
|
|
69
|
+
### Double {#double}
|
|
70
70
|
|
|
71
71
|
> `readonly` **Double**: `"double"` = `"double"`
|
|
72
72
|
|
|
73
73
|
double.
|
|
74
74
|
|
|
75
|
-
### Int64
|
|
75
|
+
### Int64 {#int64}
|
|
76
76
|
|
|
77
77
|
> `readonly` **Int64**: `"int64"` = `"int64"`
|
|
78
78
|
|
|
79
79
|
int64.
|
|
80
80
|
|
|
81
|
-
### Uint64
|
|
81
|
+
### Uint64 {#uint64}
|
|
82
82
|
|
|
83
83
|
> `readonly` **Uint64**: `"uint64"` = `"uint64"`
|
|
84
84
|
|
|
85
85
|
uint64.
|
|
86
86
|
|
|
87
|
-
### Date
|
|
87
|
+
### Date {#date}
|
|
88
88
|
|
|
89
89
|
> `readonly` **Date**: `"date"` = `"date"`
|
|
90
90
|
|
|
91
91
|
date.
|
|
92
92
|
|
|
93
|
-
### Time
|
|
93
|
+
### Time {#time}
|
|
94
94
|
|
|
95
95
|
> `readonly` **Time**: `"time"` = `"time"`
|
|
96
96
|
|
|
97
97
|
time.
|
|
98
98
|
|
|
99
|
-
### DateTime
|
|
99
|
+
### DateTime {#datetime}
|
|
100
100
|
|
|
101
101
|
> `readonly` **DateTime**: `"date-time"` = `"date-time"`
|
|
102
102
|
|
|
103
103
|
date-time.
|
|
104
104
|
|
|
105
|
-
### Json
|
|
105
|
+
### Json {#json}
|
|
106
106
|
|
|
107
107
|
> `readonly` **Json**: `"json"` = `"json"`
|
|
108
108
|
|
|
@@ -6,37 +6,37 @@ Definition of the entity property types.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### String
|
|
9
|
+
### String {#string}
|
|
10
10
|
|
|
11
11
|
> `readonly` **String**: `"string"` = `"string"`
|
|
12
12
|
|
|
13
13
|
String.
|
|
14
14
|
|
|
15
|
-
### Number
|
|
15
|
+
### Number {#number}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Number**: `"number"` = `"number"`
|
|
18
18
|
|
|
19
19
|
Number.
|
|
20
20
|
|
|
21
|
-
### Integer
|
|
21
|
+
### Integer {#integer}
|
|
22
22
|
|
|
23
23
|
> `readonly` **Integer**: `"integer"` = `"integer"`
|
|
24
24
|
|
|
25
25
|
Integer.
|
|
26
26
|
|
|
27
|
-
### Boolean
|
|
27
|
+
### Boolean {#boolean}
|
|
28
28
|
|
|
29
29
|
> `readonly` **Boolean**: `"boolean"` = `"boolean"`
|
|
30
30
|
|
|
31
31
|
Boolean.
|
|
32
32
|
|
|
33
|
-
### Array
|
|
33
|
+
### Array {#array}
|
|
34
34
|
|
|
35
35
|
> `readonly` **Array**: `"array"` = `"array"`
|
|
36
36
|
|
|
37
37
|
Array.
|
|
38
38
|
|
|
39
|
-
### Object
|
|
39
|
+
### Object {#object}
|
|
40
40
|
|
|
41
41
|
> `readonly` **Object**: `"object"` = `"object"`
|
|
42
42
|
|
|
@@ -6,13 +6,13 @@ The logical operators for condition combining.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### And
|
|
9
|
+
### And {#and}
|
|
10
10
|
|
|
11
11
|
> `readonly` **And**: `"and"` = `"and"`
|
|
12
12
|
|
|
13
13
|
Logical operator AND.
|
|
14
14
|
|
|
15
|
-
### Or
|
|
15
|
+
### Or {#or}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Or**: `"or"` = `"or"`
|
|
18
18
|
|
|
@@ -6,13 +6,13 @@ The sort directions.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Ascending
|
|
9
|
+
### Ascending {#ascending}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Ascending**: `"asc"` = `"asc"`
|
|
12
12
|
|
|
13
13
|
Ascending.
|
|
14
14
|
|
|
15
|
-
### Descending
|
|
15
|
+
### Descending {#descending}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Descending**: `"desc"` = `"desc"`
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/entity",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.41",
|
|
4
4
|
"description": "Helpers for defining and working with entities",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/framework.git",
|
|
8
8
|
"directory": "packages/entity"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "0.0.3-next.
|
|
18
|
-
"@twin.org/nameof": "0.0.3-next.
|
|
19
|
-
"reflect-metadata": "0.2.2"
|
|
17
|
+
"@twin.org/core": "0.0.3-next.41",
|
|
18
|
+
"@twin.org/nameof": "0.0.3-next.41",
|
|
19
|
+
"reflect-metadata": "0.2.2",
|
|
20
|
+
"tslib": "2.8.1"
|
|
20
21
|
},
|
|
21
22
|
"main": "./dist/es/index.js",
|
|
22
23
|
"types": "./dist/types/index.d.ts",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"blockchain"
|
|
43
44
|
],
|
|
44
45
|
"bugs": {
|
|
45
|
-
"url": "git+https://github.com/
|
|
46
|
+
"url": "git+https://github.com/iotaledger/framework/issues"
|
|
46
47
|
},
|
|
47
48
|
"homepage": "https://twindev.org"
|
|
48
49
|
}
|