@sharpee/core 5.5.0 → 5.6.0
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/events/event-factory.d.ts +11 -25
- package/events/event-factory.d.ts.map +1 -1
- package/events/event-factory.js +0 -34
- package/events/event-factory.js.map +1 -1
- package/events/event-registry.d.ts +17 -6
- package/events/event-registry.d.ts.map +1 -1
- package/events/event-registry.js +13 -2
- package/events/event-registry.js.map +1 -1
- package/events/game-events.d.ts +0 -67
- package/events/game-events.d.ts.map +1 -1
- package/events/game-events.js +0 -60
- package/events/game-events.js.map +1 -1
- package/events/index.d.ts +0 -2
- package/events/index.d.ts.map +1 -1
- package/events/index.js +0 -2
- package/events/index.js.map +1 -1
- package/events/platform-events.d.ts +10 -2
- package/events/platform-events.d.ts.map +1 -1
- package/events/platform-events.js +12 -14
- package/events/platform-events.js.map +1 -1
- package/events/system-event.d.ts +0 -5
- package/events/system-event.d.ts.map +1 -1
- package/events/system-event.js +0 -13
- package/events/system-event.js.map +1 -1
- package/index.d.ts +54 -9
- package/index.d.ts.map +1 -1
- package/index.js +103 -31
- package/index.js.map +1 -1
- package/metadata/index.d.ts +1 -1
- package/metadata/index.d.ts.map +1 -1
- package/metadata/story-metadata.d.ts +0 -8
- package/metadata/story-metadata.d.ts.map +1 -1
- package/package.json +1 -1
- package/query/query-manager.d.ts +1 -5
- package/query/query-manager.d.ts.map +1 -1
- package/query/query-manager.js +0 -7
- package/query/query-manager.js.map +1 -1
- package/types/entity.d.ts +0 -13
- package/types/entity.d.ts.map +1 -1
- package/types/index.d.ts +0 -2
- package/types/index.d.ts.map +1 -1
- package/types/index.js +0 -2
- package/types/index.js.map +1 -1
- package/types/result.d.ts +0 -22
- package/types/result.d.ts.map +1 -1
- package/types/save-data.d.ts +47 -0
- package/types/save-data.d.ts.map +1 -1
- package/constants/attributes.d.ts +0 -32
- package/constants/attributes.d.ts.map +0 -1
- package/constants/attributes.js +0 -53
- package/constants/attributes.js.map +0 -1
- package/constants/core-events.d.ts +0 -37
- package/constants/core-events.d.ts.map +0 -1
- package/constants/core-events.js +0 -50
- package/constants/core-events.js.map +0 -1
- package/constants/entity-types.d.ts +0 -15
- package/constants/entity-types.d.ts.map +0 -1
- package/constants/entity-types.js +0 -27
- package/constants/entity-types.js.map +0 -1
- package/constants/index.d.ts +0 -22
- package/constants/index.d.ts.map +0 -1
- package/constants/index.js +0 -41
- package/constants/index.js.map +0 -1
- package/constants/relationships.d.ts +0 -25
- package/constants/relationships.d.ts.map +0 -1
- package/constants/relationships.js +0 -55
- package/constants/relationships.js.map +0 -1
- package/debug/index.d.ts +0 -5
- package/debug/index.d.ts.map +0 -1
- package/debug/index.js +0 -21
- package/debug/index.js.map +0 -1
- package/debug/types.d.ts +0 -65
- package/debug/types.d.ts.map +0 -1
- package/debug/types.js +0 -39
- package/debug/types.js.map +0 -1
- package/events/standard-events.d.ts +0 -26
- package/events/standard-events.d.ts.map +0 -1
- package/events/standard-events.js +0 -27
- package/events/standard-events.js.map +0 -1
- package/events/typed-event.d.ts +0 -69
- package/events/typed-event.d.ts.map +0 -1
- package/events/typed-event.js +0 -20
- package/events/typed-event.js.map +0 -1
- package/execution/index.d.ts +0 -2
- package/execution/index.d.ts.map +0 -1
- package/execution/index.js +0 -23
- package/execution/index.js.map +0 -1
- package/execution/types.d.ts +0 -117
- package/execution/types.d.ts.map +0 -1
- package/execution/types.js +0 -4
- package/execution/types.js.map +0 -1
- package/extensions/index.d.ts +0 -3
- package/extensions/index.d.ts.map +0 -1
- package/extensions/index.js +0 -20
- package/extensions/index.js.map +0 -1
- package/extensions/registry.d.ts +0 -61
- package/extensions/registry.d.ts.map +0 -1
- package/extensions/registry.js +0 -153
- package/extensions/registry.js.map +0 -1
- package/extensions/types.d.ts +0 -84
- package/extensions/types.d.ts.map +0 -1
- package/extensions/types.js +0 -15
- package/extensions/types.js.map +0 -1
- package/types/attribute.d.ts +0 -40
- package/types/attribute.d.ts.map +0 -1
- package/types/attribute.js +0 -4
- package/types/attribute.js.map +0 -1
- package/types/relationship.d.ts +0 -44
- package/types/relationship.d.ts.map +0 -1
- package/types/relationship.js +0 -4
- package/types/relationship.js.map +0 -1
package/types/attribute.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Possible types for attribute values
|
|
3
|
-
*/
|
|
4
|
-
export type AttributeValue = string | number | boolean | null | IAttributeObject | AttributeArray;
|
|
5
|
-
/**
|
|
6
|
-
* An object containing attribute values
|
|
7
|
-
*/
|
|
8
|
-
export interface IAttributeObject {
|
|
9
|
-
[key: string]: AttributeValue;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* An array of attribute values
|
|
13
|
-
*/
|
|
14
|
-
export type AttributeArray = AttributeValue[];
|
|
15
|
-
/**
|
|
16
|
-
* Configuration for an attribute
|
|
17
|
-
*/
|
|
18
|
-
export interface IAttributeConfig {
|
|
19
|
-
/**
|
|
20
|
-
* Type validation for this attribute
|
|
21
|
-
*/
|
|
22
|
-
type?: 'string' | 'number' | 'boolean' | 'object' | 'array';
|
|
23
|
-
/**
|
|
24
|
-
* Whether this attribute is required for the entity
|
|
25
|
-
*/
|
|
26
|
-
required?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Default value if none is provided
|
|
29
|
-
*/
|
|
30
|
-
default?: AttributeValue;
|
|
31
|
-
/**
|
|
32
|
-
* Custom validation function
|
|
33
|
-
*/
|
|
34
|
-
validate?: (value: AttributeValue) => boolean;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A map of attribute configurations
|
|
38
|
-
*/
|
|
39
|
-
export type AttributeConfigMap = Record<string, IAttributeConfig>;
|
|
40
|
-
//# sourceMappingURL=attribute.d.ts.map
|
package/types/attribute.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/types/attribute.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,gBAAgB,GAChB,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,EAAE,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE5D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC"}
|
package/types/attribute.js
DELETED
package/types/attribute.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/types/attribute.ts"],"names":[],"mappings":";AAAA,uCAAuC"}
|
package/types/relationship.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { EntityId } from './entity.js';
|
|
2
|
-
/**
|
|
3
|
-
* A generic relationship between two entities
|
|
4
|
-
*/
|
|
5
|
-
export interface IRelationship {
|
|
6
|
-
/**
|
|
7
|
-
* The source entity of the relationship
|
|
8
|
-
*/
|
|
9
|
-
sourceId: EntityId;
|
|
10
|
-
/**
|
|
11
|
-
* The type of relationship (can be any string)
|
|
12
|
-
*/
|
|
13
|
-
type: string;
|
|
14
|
-
/**
|
|
15
|
-
* The target entity of the relationship
|
|
16
|
-
*/
|
|
17
|
-
targetId: EntityId;
|
|
18
|
-
/**
|
|
19
|
-
* Optional metadata for the relationship
|
|
20
|
-
*/
|
|
21
|
-
metadata?: Record<string, unknown>;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Configuration for creating a relationship
|
|
25
|
-
*/
|
|
26
|
-
export interface IRelationshipConfig {
|
|
27
|
-
/**
|
|
28
|
-
* Whether this relationship creates an inverse relationship automatically
|
|
29
|
-
*/
|
|
30
|
-
bidirectional?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* If bidirectional, the name of the inverse relationship
|
|
33
|
-
*/
|
|
34
|
-
inverseType?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Whether this relationship is exclusive (replaces previous relationships of same type)
|
|
37
|
-
*/
|
|
38
|
-
exclusive?: boolean;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Map of relationship type configurations
|
|
42
|
-
*/
|
|
43
|
-
export type RelationshipConfigMap = Record<string, IRelationshipConfig>;
|
|
44
|
-
//# sourceMappingURL=relationship.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relationship.d.ts","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/types/relationship.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC"}
|
package/types/relationship.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relationship.js","sourceRoot":"","sources":["../../../../work/sharpee/sharpee/packages/core/src/types/relationship.ts"],"names":[],"mappings":";AAAA,0CAA0C"}
|