@live-change/relations-plugin 0.9.99 → 0.9.101

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/relations-plugin",
3
- "version": "0.9.99",
3
+ "version": "0.9.101",
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.99",
25
+ "@live-change/framework": "^0.9.101",
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": "be394720644be1eea528f1f5272dd8066081bc93"
33
+ "gitHead": "1830fca93aa50c4f9b72c0d06737edd6bfb540e0"
34
34
  }
@@ -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, PropertyDefinitionSpecification>
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 MotelWithRelations 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
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: CrudSettings,
57
- identifiers: Identifier[]
56
+ crud?: CrudSettings,
57
+ identifiers?: Identifier[]
58
58
  }
59
59
 
60
60
  export interface ModelDefinitionSpecificationWithAccessControl extends ModelDefinitionSpecificationExtended {
package/src/utilsAny.ts CHANGED
@@ -79,7 +79,7 @@ export function defineAnyIndexes(model, props, fullIndex = true) {
79
79
  }
80
80
 
81
81
  export interface AnyRelationConfig {
82
- what: string | string[]
82
+ what?: string | string[]
83
83
  propertyNames?: string[]
84
84
  writeableProperties?: string[]
85
85
  prefix?: string