@live-change/relations-plugin 0.9.99 → 0.9.100
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/package.json +3 -3
- package/src/entityUtils.ts +2 -2
- package/src/index.ts +11 -11
- package/src/types.ts +2 -2
- package/src/utilsAny.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/relations-plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.100",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.100",
|
|
26
26
|
"pluralize": "^8.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"typedoc-plugin-markdown": "^4.6.3",
|
|
31
31
|
"typedoc-plugin-rename-defaults": "^0.7.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "4e7ef4d160d217e1d82b8dc5fdf542a65f8a1834"
|
|
34
34
|
}
|
package/src/entityUtils.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
propertiesWithoutDefaults
|
|
6
6
|
} from './utils.js'
|
|
7
7
|
import { fireChangeTriggers } from "./changeTriggers.js"
|
|
8
|
-
import App, { AccessSpecification, ModelDefinitionSpecification, PropertyDefinitionSpecification, ServiceDefinition } from '@live-change/framework'
|
|
8
|
+
import App, { AccessSpecification, ModelDefinitionSpecification, PropertyDefinitionSpecification, ServiceDefinition, ModelPropertyDefinitionSpecification } from '@live-change/framework'
|
|
9
9
|
import {
|
|
10
10
|
PropertyDefinition, ViewDefinition, IndexDefinition, ActionDefinition, EventDefinition, TriggerDefinition
|
|
11
11
|
} from "@live-change/framework"
|
|
@@ -43,7 +43,7 @@ export interface EntityContext {
|
|
|
43
43
|
modelName: string
|
|
44
44
|
modelPropertyName: string
|
|
45
45
|
model: ModelDefinitionSpecificationWithEntity
|
|
46
|
-
originalModelProperties: Record<string,
|
|
46
|
+
originalModelProperties: Record<string, ModelPropertyDefinitionSpecification>
|
|
47
47
|
modelProperties: string[]
|
|
48
48
|
writeableProperties: string[]
|
|
49
49
|
objectType: string
|
package/src/index.ts
CHANGED
|
@@ -33,21 +33,21 @@ export default plugin
|
|
|
33
33
|
|
|
34
34
|
export { processors }
|
|
35
35
|
|
|
36
|
-
export interface
|
|
37
|
-
propertyOf
|
|
38
|
-
itemOf
|
|
39
|
-
propertyOfAny
|
|
40
|
-
itemOfAny
|
|
41
|
-
relatedTo
|
|
42
|
-
relatedToAny
|
|
43
|
-
boundTo
|
|
44
|
-
boundToAny
|
|
45
|
-
saveAuthor
|
|
36
|
+
export interface ModelWithRelations extends ModelDefinitionSpecificationWithAccessControl {
|
|
37
|
+
propertyOf?: PropertyOfConfig
|
|
38
|
+
itemOf?: ItemOfConfig
|
|
39
|
+
propertyOfAny?: PropertyOfAnyConfig
|
|
40
|
+
itemOfAny?: ItemOfAnyConfig
|
|
41
|
+
relatedTo?: RelatedToConfig
|
|
42
|
+
relatedToAny?: RelatedToAnyConfig
|
|
43
|
+
boundTo?: BoundToConfig
|
|
44
|
+
boundToAny?: BoundToAnyConfig
|
|
45
|
+
saveAuthor?: SaveAuthorConfig
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export type {
|
|
49
49
|
PropertyOfConfig, ItemOfConfig, PropertyOfAnyConfig, ItemOfAnyConfig,
|
|
50
50
|
RelatedToConfig, RelatedToAnyConfig, BoundToConfig, BoundToAnyConfig,
|
|
51
|
-
SaveAuthorConfig
|
|
51
|
+
SaveAuthorConfig,
|
|
52
52
|
}
|
|
53
53
|
|
package/src/types.ts
CHANGED
|
@@ -53,8 +53,8 @@ export interface Identifier {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface ModelDefinitionSpecificationExtended extends ModelDefinitionSpecification {
|
|
56
|
-
crud
|
|
57
|
-
identifiers
|
|
56
|
+
crud?: CrudSettings,
|
|
57
|
+
identifiers?: Identifier[]
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export interface ModelDefinitionSpecificationWithAccessControl extends ModelDefinitionSpecificationExtended {
|
package/src/utilsAny.ts
CHANGED