@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.
Files changed (43) hide show
  1. package/README.md +1 -5
  2. package/dist/es/decorators/entityDecorator.js +2 -1
  3. package/dist/es/decorators/entityDecorator.js.map +1 -1
  4. package/dist/es/decorators/propertyDecorator.js +1 -0
  5. package/dist/es/decorators/propertyDecorator.js.map +1 -1
  6. package/dist/es/index.js +2 -0
  7. package/dist/es/index.js.map +1 -1
  8. package/dist/es/models/IEntitySchemaDiff.js +2 -0
  9. package/dist/es/models/IEntitySchemaDiff.js.map +1 -0
  10. package/dist/es/utils/decoratorHelper.js +1 -0
  11. package/dist/es/utils/decoratorHelper.js.map +1 -1
  12. package/dist/es/utils/entityConditions.js +8 -0
  13. package/dist/es/utils/entityConditions.js.map +1 -1
  14. package/dist/es/utils/entitySchemaDiff.js +67 -0
  15. package/dist/es/utils/entitySchemaDiff.js.map +1 -0
  16. package/dist/types/decorators/entityDecorator.d.ts +1 -0
  17. package/dist/types/decorators/propertyDecorator.d.ts +1 -0
  18. package/dist/types/index.d.ts +2 -0
  19. package/dist/types/models/IEntitySchemaDiff.d.ts +35 -0
  20. package/dist/types/utils/decoratorHelper.d.ts +1 -0
  21. package/dist/types/utils/entitySchemaDiff.d.ts +22 -0
  22. package/docs/changelog.md +802 -84
  23. package/docs/examples.md +70 -1
  24. package/docs/reference/classes/DecoratorHelper.md +2 -2
  25. package/docs/reference/classes/EntityConditions.md +2 -2
  26. package/docs/reference/classes/EntitySchemaHelper.md +6 -6
  27. package/docs/reference/classes/EntitySorter.md +4 -4
  28. package/docs/reference/functions/entitySchemaDiff.md +38 -0
  29. package/docs/reference/functions/isEmptyDiff.md +25 -0
  30. package/docs/reference/index.md +3 -0
  31. package/docs/reference/interfaces/IComparator.md +3 -3
  32. package/docs/reference/interfaces/IComparatorGroup.md +3 -3
  33. package/docs/reference/interfaces/IEntitySchema.md +5 -5
  34. package/docs/reference/interfaces/IEntitySchemaDiff.md +53 -0
  35. package/docs/reference/interfaces/IEntitySchemaOptions.md +2 -2
  36. package/docs/reference/interfaces/IEntitySchemaProperty.md +20 -20
  37. package/docs/reference/interfaces/IEntitySort.md +3 -3
  38. package/docs/reference/variables/ComparisonOperator.md +9 -9
  39. package/docs/reference/variables/EntitySchemaPropertyFormat.md +17 -17
  40. package/docs/reference/variables/EntitySchemaPropertyType.md +6 -6
  41. package/docs/reference/variables/LogicalOperator.md +2 -2
  42. package/docs/reference/variables/SortDirection.md +2 -2
  43. 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.4",
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/twinfoundation/framework.git",
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.4",
18
- "@twin.org/nameof": "0.0.3-next.4",
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/twinfoundation/framework/issues"
46
+ "url": "git+https://github.com/iotaledger/framework/issues"
46
47
  },
47
48
  "homepage": "https://twindev.org"
48
49
  }