interaqt 0.1.0 → 0.2.1
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/agent/.claude/agents/code-generation-handler.md +598 -0
- package/agent/.claude/agents/computation-generation-handler.md +290 -0
- package/agent/.claude/agents/implement-design-handler.md +179 -0
- package/agent/.claude/agents/permission-generation-handler.md +202 -0
- package/agent/.claude/agents/requirements-analysis-handler-bak.md +530 -0
- package/agent/.claude/agents/requirements-analysis-handler.md +720 -0
- package/agent/.claude/settings.local.json +46 -0
- package/agent/CLAUDE.md +72 -0
- package/dist/index.js +10508 -4
- package/dist/index.js.map +1 -1
- package/dist/runtime/ComputationSourceMap.d.ts +117 -0
- package/dist/runtime/ComputationSourceMap.d.ts.map +1 -0
- package/dist/runtime/Controller.d.ts +37 -26
- package/dist/runtime/Controller.d.ts.map +1 -1
- package/dist/runtime/ExternalSynchronizer.d.ts +6 -0
- package/dist/runtime/ExternalSynchronizer.d.ts.map +1 -0
- package/dist/runtime/MonoSystem.d.ts +29 -17
- package/dist/runtime/MonoSystem.d.ts.map +1 -1
- package/dist/runtime/Mysql.d.ts +2 -2
- package/dist/runtime/PGLite.d.ts +35 -0
- package/dist/runtime/PGLite.d.ts.map +1 -0
- package/dist/runtime/PostgreSQL.d.ts +2 -2
- package/dist/runtime/SQLite.d.ts +3 -3
- package/dist/runtime/SQLite.d.ts.map +1 -1
- package/dist/runtime/Scheduler.d.ts +28 -61
- package/dist/runtime/Scheduler.d.ts.map +1 -1
- package/dist/runtime/System.d.ts +18 -224
- package/dist/runtime/System.d.ts.map +1 -1
- package/dist/runtime/{ActivityCall.d.ts → activity/ActivityCall.d.ts} +6 -7
- package/dist/runtime/activity/ActivityCall.d.ts.map +1 -0
- package/dist/runtime/activity/ActivityManager.d.ts +44 -0
- package/dist/runtime/activity/ActivityManager.d.ts.map +1 -0
- package/dist/runtime/{InteractionCall.d.ts → activity/InteractionCall.d.ts} +28 -41
- package/dist/runtime/activity/InteractionCall.d.ts.map +1 -0
- package/dist/runtime/computations/Any.d.ts +71 -0
- package/dist/runtime/computations/Any.d.ts.map +1 -0
- package/dist/runtime/computations/Average.d.ts +69 -0
- package/dist/runtime/computations/Average.d.ts.map +1 -0
- package/dist/runtime/computations/Computation.d.ts +138 -0
- package/dist/runtime/computations/Computation.d.ts.map +1 -0
- package/dist/runtime/computations/Count.d.ts +73 -0
- package/dist/runtime/computations/Count.d.ts.map +1 -0
- package/dist/runtime/computations/Custom.d.ts +45 -0
- package/dist/runtime/computations/Custom.d.ts.map +1 -0
- package/dist/runtime/computations/Every.d.ts +74 -0
- package/dist/runtime/computations/Every.d.ts.map +1 -0
- package/dist/runtime/computations/MathResolver.d.ts +60 -0
- package/dist/runtime/computations/MathResolver.d.ts.map +1 -0
- package/dist/runtime/computations/RealTime.d.ts +66 -0
- package/dist/runtime/computations/RealTime.d.ts.map +1 -0
- package/dist/runtime/{computedDataHandles → computations}/StateMachine.d.ts +31 -22
- package/dist/runtime/computations/StateMachine.d.ts.map +1 -0
- package/dist/runtime/computations/Summation.d.ts +66 -0
- package/dist/runtime/computations/Summation.d.ts.map +1 -0
- package/dist/runtime/computations/Transform.d.ts +29 -0
- package/dist/runtime/computations/Transform.d.ts.map +1 -0
- package/dist/runtime/computations/TransitionFinder.d.ts +11 -0
- package/dist/runtime/computations/TransitionFinder.d.ts.map +1 -0
- package/dist/runtime/computations/WeightedSummation.d.ts +71 -0
- package/dist/runtime/computations/WeightedSummation.d.ts.map +1 -0
- package/dist/runtime/computations/index.d.ts +22 -0
- package/dist/runtime/computations/index.d.ts.map +1 -0
- package/dist/runtime/errors/ActivityErrors.d.ts +40 -0
- package/dist/runtime/errors/ActivityErrors.d.ts.map +1 -0
- package/dist/runtime/errors/ComputationErrors.d.ts +61 -0
- package/dist/runtime/errors/ComputationErrors.d.ts.map +1 -0
- package/dist/runtime/errors/ConditionErrors.d.ts +33 -0
- package/dist/runtime/errors/ConditionErrors.d.ts.map +1 -0
- package/dist/runtime/errors/FrameworkError.d.ts +77 -0
- package/dist/runtime/errors/FrameworkError.d.ts.map +1 -0
- package/dist/runtime/errors/InteractionErrors.d.ts +21 -0
- package/dist/runtime/errors/InteractionErrors.d.ts.map +1 -0
- package/dist/runtime/errors/SystemErrors.d.ts +16 -0
- package/dist/runtime/errors/SystemErrors.d.ts.map +1 -0
- package/dist/runtime/errors/index.d.ts +37 -0
- package/dist/runtime/errors/index.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +9 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/shared/Action.d.ts +38 -0
- package/dist/shared/Action.d.ts.map +1 -0
- package/dist/shared/Activity.d.ts +178 -0
- package/dist/shared/Activity.d.ts.map +1 -0
- package/dist/shared/Any.d.ts +82 -0
- package/dist/shared/Any.d.ts.map +1 -0
- package/dist/shared/Attributive.d.ts +92 -0
- package/dist/shared/Attributive.d.ts.map +1 -0
- package/dist/shared/Average.d.ts +59 -0
- package/dist/shared/Average.d.ts.map +1 -0
- package/dist/shared/BoolExp.d.ts +139 -63
- package/dist/shared/BoolExp.d.ts.map +1 -1
- package/dist/shared/Computation.d.ts +23 -0
- package/dist/shared/Computation.d.ts.map +1 -0
- package/dist/shared/Condition.d.ts +43 -0
- package/dist/shared/Condition.d.ts.map +1 -0
- package/dist/shared/Conditions.d.ts +38 -0
- package/dist/shared/Conditions.d.ts.map +1 -0
- package/dist/shared/Count.d.ts +77 -0
- package/dist/shared/Count.d.ts.map +1 -0
- package/dist/shared/Custom.d.ts +108 -0
- package/dist/shared/Custom.d.ts.map +1 -0
- package/dist/shared/Data.d.ts +121 -0
- package/dist/shared/Data.d.ts.map +1 -0
- package/dist/shared/DataAttributives.d.ts +38 -0
- package/dist/shared/DataAttributives.d.ts.map +1 -0
- package/dist/shared/Entity.d.ts +96 -0
- package/dist/shared/Entity.d.ts.map +1 -0
- package/dist/shared/Event.d.ts +36 -0
- package/dist/shared/Event.d.ts.map +1 -0
- package/dist/shared/Every.d.ts +85 -0
- package/dist/shared/Every.d.ts.map +1 -0
- package/dist/shared/Gateway.d.ts +36 -0
- package/dist/shared/Gateway.d.ts.map +1 -0
- package/dist/shared/Interaction.d.ts +108 -0
- package/dist/shared/Interaction.d.ts.map +1 -0
- package/dist/shared/Payload.d.ts +39 -0
- package/dist/shared/Payload.d.ts.map +1 -0
- package/dist/shared/PayloadItem.d.ts +85 -0
- package/dist/shared/PayloadItem.d.ts.map +1 -0
- package/dist/shared/Property.d.ts +83 -0
- package/dist/shared/Property.d.ts.map +1 -0
- package/dist/shared/RealDictionary.d.ts +94 -0
- package/dist/shared/RealDictionary.d.ts.map +1 -0
- package/dist/shared/RealTime.d.ts +66 -0
- package/dist/shared/RealTime.d.ts.map +1 -0
- package/dist/shared/RefContainer.d.ts +89 -0
- package/dist/shared/RefContainer.d.ts.map +1 -0
- package/dist/shared/Relation.d.ts +140 -0
- package/dist/shared/Relation.d.ts.map +1 -0
- package/dist/shared/SideEffect.d.ts +45 -0
- package/dist/shared/SideEffect.d.ts.map +1 -0
- package/dist/shared/StateMachine.d.ts +55 -0
- package/dist/shared/StateMachine.d.ts.map +1 -0
- package/dist/shared/StateNode.d.ts +45 -0
- package/dist/shared/StateNode.d.ts.map +1 -0
- package/dist/shared/StateTransfer.d.ts +63 -0
- package/dist/shared/StateTransfer.d.ts.map +1 -0
- package/dist/shared/Summation.d.ts +59 -0
- package/dist/shared/Summation.d.ts.map +1 -0
- package/dist/shared/Transform.d.ts +54 -0
- package/dist/shared/Transform.d.ts.map +1 -0
- package/dist/shared/User.d.ts +10 -0
- package/dist/shared/User.d.ts.map +1 -0
- package/dist/shared/WeightedSummation.d.ts +82 -0
- package/dist/shared/WeightedSummation.d.ts.map +1 -0
- package/dist/shared/index.d.ts +35 -9
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/init.d.ts +3 -0
- package/dist/shared/init.d.ts.map +1 -0
- package/dist/shared/interfaces.d.ts +72 -0
- package/dist/shared/interfaces.d.ts.map +1 -0
- package/dist/shared/types.d.ts +77 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/utils.d.ts +16 -10
- package/dist/shared/utils.d.ts.map +1 -1
- package/dist/storage/erstorage/AttributeInfo.d.ts +8 -3
- package/dist/storage/erstorage/AttributeInfo.d.ts.map +1 -1
- package/dist/storage/erstorage/AttributeQuery.d.ts +4 -3
- package/dist/storage/erstorage/AttributeQuery.d.ts.map +1 -1
- package/dist/storage/erstorage/EntityQueryHandle.d.ts +18 -17
- package/dist/storage/erstorage/EntityQueryHandle.d.ts.map +1 -1
- package/dist/storage/erstorage/EntityToTableMap.d.ts +27 -5
- package/dist/storage/erstorage/EntityToTableMap.d.ts.map +1 -1
- package/dist/storage/erstorage/FilteredEntityManager.d.ts +70 -0
- package/dist/storage/erstorage/FilteredEntityManager.d.ts.map +1 -0
- package/dist/storage/erstorage/LinkInfo.d.ts +10 -3
- package/dist/storage/erstorage/LinkInfo.d.ts.map +1 -1
- package/dist/storage/erstorage/MatchExp.d.ts +19 -9
- package/dist/storage/erstorage/MatchExp.d.ts.map +1 -1
- package/dist/storage/erstorage/MergedItemProcessor.d.ts +25 -0
- package/dist/storage/erstorage/MergedItemProcessor.d.ts.map +1 -0
- package/dist/storage/erstorage/Modifier.d.ts +1 -1
- package/dist/storage/erstorage/NewRecordData.d.ts +16 -9
- package/dist/storage/erstorage/NewRecordData.d.ts.map +1 -1
- package/dist/storage/erstorage/RecordInfo.d.ts +11 -2
- package/dist/storage/erstorage/RecordInfo.d.ts.map +1 -1
- package/dist/storage/erstorage/RecordQuery.d.ts +9 -8
- package/dist/storage/erstorage/RecordQuery.d.ts.map +1 -1
- package/dist/storage/erstorage/RecordQueryAgent.d.ts +26 -13
- package/dist/storage/erstorage/RecordQueryAgent.d.ts.map +1 -1
- package/dist/storage/erstorage/Setup.d.ts +49 -11
- package/dist/storage/erstorage/Setup.d.ts.map +1 -1
- package/dist/storage/erstorage/util.d.ts.map +1 -1
- package/package.json +44 -20
- package/README.md +0 -53
- package/dist/runtime/ActivityCall.d.ts.map +0 -1
- package/dist/runtime/ActivityCall.js +0 -379
- package/dist/runtime/ActivityCall.js.map +0 -1
- package/dist/runtime/Controller.js +0 -225
- package/dist/runtime/Controller.js.map +0 -1
- package/dist/runtime/InteractionCall.d.ts.map +0 -1
- package/dist/runtime/InteractionCall.js +0 -385
- package/dist/runtime/InteractionCall.js.map +0 -1
- package/dist/runtime/MonoSystem.js +0 -331
- package/dist/runtime/MonoSystem.js.map +0 -1
- package/dist/runtime/Mysql.js +0 -171
- package/dist/runtime/Mysql.js.map +0 -1
- package/dist/runtime/PostgreSQL.js +0 -172
- package/dist/runtime/PostgreSQL.js.map +0 -1
- package/dist/runtime/SQLite.js +0 -146
- package/dist/runtime/SQLite.js.map +0 -1
- package/dist/runtime/Scheduler.js +0 -457
- package/dist/runtime/Scheduler.js.map +0 -1
- package/dist/runtime/System.js +0 -90
- package/dist/runtime/System.js.map +0 -1
- package/dist/runtime/asyncInteractionContext.js +0 -3
- package/dist/runtime/asyncInteractionContext.js.map +0 -1
- package/dist/runtime/boolExpression.js +0 -43
- package/dist/runtime/boolExpression.js.map +0 -1
- package/dist/runtime/computedDataHandles/Any.d.ts +0 -52
- package/dist/runtime/computedDataHandles/Any.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/Any.js +0 -152
- package/dist/runtime/computedDataHandles/Any.js.map +0 -1
- package/dist/runtime/computedDataHandles/Computation.d.ts +0 -108
- package/dist/runtime/computedDataHandles/Computation.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/Computation.js +0 -49
- package/dist/runtime/computedDataHandles/Computation.js.map +0 -1
- package/dist/runtime/computedDataHandles/ComputedDataHandle.d.ts +0 -42
- package/dist/runtime/computedDataHandles/ComputedDataHandle.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/ComputedDataHandle.js +0 -4
- package/dist/runtime/computedDataHandles/ComputedDataHandle.js.map +0 -1
- package/dist/runtime/computedDataHandles/Count.d.ts +0 -45
- package/dist/runtime/computedDataHandles/Count.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/Count.js +0 -85
- package/dist/runtime/computedDataHandles/Count.js.map +0 -1
- package/dist/runtime/computedDataHandles/Every.d.ts +0 -56
- package/dist/runtime/computedDataHandles/Every.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/Every.js +0 -178
- package/dist/runtime/computedDataHandles/Every.js.map +0 -1
- package/dist/runtime/computedDataHandles/StateMachine.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/StateMachine.js +0 -180
- package/dist/runtime/computedDataHandles/StateMachine.js.map +0 -1
- package/dist/runtime/computedDataHandles/Transform.d.ts +0 -26
- package/dist/runtime/computedDataHandles/Transform.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/Transform.js +0 -106
- package/dist/runtime/computedDataHandles/Transform.js.map +0 -1
- package/dist/runtime/computedDataHandles/TransitionFinder.d.ts +0 -57
- package/dist/runtime/computedDataHandles/TransitionFinder.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/TransitionFinder.js +0 -40
- package/dist/runtime/computedDataHandles/TransitionFinder.js.map +0 -1
- package/dist/runtime/computedDataHandles/WeightedSummation.d.ts +0 -57
- package/dist/runtime/computedDataHandles/WeightedSummation.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/WeightedSummation.js +0 -146
- package/dist/runtime/computedDataHandles/WeightedSummation.js.map +0 -1
- package/dist/runtime/computedDataHandles/index.d.ts +0 -7
- package/dist/runtime/computedDataHandles/index.d.ts.map +0 -1
- package/dist/runtime/computedDataHandles/index.js +0 -7
- package/dist/runtime/computedDataHandles/index.js.map +0 -1
- package/dist/runtime/index.js +0 -15
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/server.d.ts +0 -35
- package/dist/runtime/server.d.ts.map +0 -1
- package/dist/runtime/server.js +0 -171
- package/dist/runtime/server.js.map +0 -1
- package/dist/runtime/types/boolExpression.js +0 -6
- package/dist/runtime/types/boolExpression.js.map +0 -1
- package/dist/runtime/util.js +0 -39
- package/dist/runtime/util.js.map +0 -1
- package/dist/shared/BoolExp.js +0 -252
- package/dist/shared/BoolExp.js.map +0 -1
- package/dist/shared/activity/Activity.d.ts +0 -465
- package/dist/shared/activity/Activity.d.ts.map +0 -1
- package/dist/shared/activity/Activity.js +0 -264
- package/dist/shared/activity/Activity.js.map +0 -1
- package/dist/shared/activity/Condition.d.ts +0 -75
- package/dist/shared/activity/Condition.d.ts.map +0 -1
- package/dist/shared/activity/Condition.js +0 -51
- package/dist/shared/activity/Condition.js.map +0 -1
- package/dist/shared/activity/Data.d.ts +0 -115
- package/dist/shared/activity/Data.d.ts.map +0 -1
- package/dist/shared/activity/Data.js +0 -89
- package/dist/shared/activity/Data.js.map +0 -1
- package/dist/shared/attributive.d.ts +0 -93
- package/dist/shared/attributive.d.ts.map +0 -1
- package/dist/shared/attributive.js +0 -59
- package/dist/shared/attributive.js.map +0 -1
- package/dist/shared/computed.d.ts +0 -607
- package/dist/shared/computed.d.ts.map +0 -1
- package/dist/shared/computed.js +0 -202
- package/dist/shared/computed.js.map +0 -1
- package/dist/shared/createClass.d.ts +0 -102
- package/dist/shared/createClass.d.ts.map +0 -1
- package/dist/shared/createClass.js +0 -276
- package/dist/shared/createClass.js.map +0 -1
- package/dist/shared/dictionary/Dictionary.d.ts +0 -40
- package/dist/shared/dictionary/Dictionary.d.ts.map +0 -1
- package/dist/shared/dictionary/Dictionary.js +0 -51
- package/dist/shared/dictionary/Dictionary.js.map +0 -1
- package/dist/shared/entity/Entity.d.ts +0 -149
- package/dist/shared/entity/Entity.d.ts.map +0 -1
- package/dist/shared/entity/Entity.js +0 -226
- package/dist/shared/entity/Entity.js.map +0 -1
- package/dist/shared/index.js +0 -11
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/user/User.d.ts +0 -21
- package/dist/shared/user/User.d.ts.map +0 -1
- package/dist/shared/user/User.js +0 -11
- package/dist/shared/user/User.js.map +0 -1
- package/dist/shared/utils.js +0 -19
- package/dist/shared/utils.js.map +0 -1
- package/dist/storage/erstorage/AttributeInfo.js +0 -147
- package/dist/storage/erstorage/AttributeInfo.js.map +0 -1
- package/dist/storage/erstorage/AttributeQuery.js +0 -190
- package/dist/storage/erstorage/AttributeQuery.js.map +0 -1
- package/dist/storage/erstorage/EntityQueryHandle.js +0 -78
- package/dist/storage/erstorage/EntityQueryHandle.js.map +0 -1
- package/dist/storage/erstorage/EntityToTableMap.js +0 -262
- package/dist/storage/erstorage/EntityToTableMap.js.map +0 -1
- package/dist/storage/erstorage/LinkInfo.js +0 -89
- package/dist/storage/erstorage/LinkInfo.js.map +0 -1
- package/dist/storage/erstorage/MatchExp.js +0 -211
- package/dist/storage/erstorage/MatchExp.js.map +0 -1
- package/dist/storage/erstorage/Modifier.js +0 -24
- package/dist/storage/erstorage/Modifier.js.map +0 -1
- package/dist/storage/erstorage/NewRecordData.js +0 -178
- package/dist/storage/erstorage/NewRecordData.js.map +0 -1
- package/dist/storage/erstorage/RecordInfo.js +0 -111
- package/dist/storage/erstorage/RecordInfo.js.map +0 -1
- package/dist/storage/erstorage/RecordQuery.js +0 -158
- package/dist/storage/erstorage/RecordQuery.js.map +0 -1
- package/dist/storage/erstorage/RecordQueryAgent.js +0 -1130
- package/dist/storage/erstorage/RecordQueryAgent.js.map +0 -1
- package/dist/storage/erstorage/Setup.js +0 -400
- package/dist/storage/erstorage/Setup.js.map +0 -1
- package/dist/storage/erstorage/util.js +0 -25
- package/dist/storage/erstorage/util.js.map +0 -1
- package/dist/storage/index.js +0 -13
- package/dist/storage/index.js.map +0 -1
- package/dist/storage/utils.js +0 -48
- package/dist/storage/utils.js.map +0 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { IInstance } from './interfaces.js';
|
|
2
|
+
import { AttributiveInstance, AttributivesInstance } from './Attributive.js';
|
|
3
|
+
import { EntityInstance } from './Entity.js';
|
|
4
|
+
export interface PayloadItemInstance extends IInstance {
|
|
5
|
+
name: string;
|
|
6
|
+
attributives?: AttributivesInstance | AttributiveInstance;
|
|
7
|
+
base?: EntityInstance;
|
|
8
|
+
isRef?: boolean;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
isCollection?: boolean;
|
|
11
|
+
itemRef?: AttributiveInstance | EntityInstance;
|
|
12
|
+
}
|
|
13
|
+
export interface PayloadItemCreateArgs {
|
|
14
|
+
name: string;
|
|
15
|
+
attributives?: AttributivesInstance | AttributiveInstance;
|
|
16
|
+
base?: EntityInstance;
|
|
17
|
+
isRef?: boolean;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
isCollection?: boolean;
|
|
20
|
+
itemRef?: AttributiveInstance | EntityInstance;
|
|
21
|
+
}
|
|
22
|
+
export declare class PayloadItem implements PayloadItemInstance {
|
|
23
|
+
uuid: string;
|
|
24
|
+
_type: string;
|
|
25
|
+
_options?: {
|
|
26
|
+
uuid?: string;
|
|
27
|
+
};
|
|
28
|
+
name: string;
|
|
29
|
+
attributives?: AttributivesInstance | AttributiveInstance;
|
|
30
|
+
base?: EntityInstance;
|
|
31
|
+
isRef: boolean;
|
|
32
|
+
required: boolean;
|
|
33
|
+
isCollection: boolean;
|
|
34
|
+
itemRef?: AttributiveInstance | EntityInstance;
|
|
35
|
+
constructor(args: PayloadItemCreateArgs, options?: {
|
|
36
|
+
uuid?: string;
|
|
37
|
+
});
|
|
38
|
+
static isKlass: true;
|
|
39
|
+
static displayName: string;
|
|
40
|
+
static instances: PayloadItemInstance[];
|
|
41
|
+
static public: {
|
|
42
|
+
name: {
|
|
43
|
+
type: "string";
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
attributives: {
|
|
47
|
+
type: readonly ["Attributives", "Attributive"];
|
|
48
|
+
collection: false;
|
|
49
|
+
};
|
|
50
|
+
base: {
|
|
51
|
+
type: "Entity";
|
|
52
|
+
required: false;
|
|
53
|
+
collection: false;
|
|
54
|
+
};
|
|
55
|
+
isRef: {
|
|
56
|
+
type: "boolean";
|
|
57
|
+
collection: false;
|
|
58
|
+
defaultValue: () => boolean;
|
|
59
|
+
};
|
|
60
|
+
required: {
|
|
61
|
+
type: "boolean";
|
|
62
|
+
collection: false;
|
|
63
|
+
defaultValue: () => boolean;
|
|
64
|
+
};
|
|
65
|
+
isCollection: {
|
|
66
|
+
type: "boolean";
|
|
67
|
+
collection: false;
|
|
68
|
+
defaultValue: () => boolean;
|
|
69
|
+
};
|
|
70
|
+
itemRef: {
|
|
71
|
+
collection: false;
|
|
72
|
+
required: false;
|
|
73
|
+
type: readonly ["Attributive", "Entity"];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
static create(args: PayloadItemCreateArgs, options?: {
|
|
77
|
+
uuid?: string;
|
|
78
|
+
}): PayloadItemInstance;
|
|
79
|
+
static stringify(instance: PayloadItemInstance): string;
|
|
80
|
+
static clone(instance: PayloadItemInstance, deep: boolean): PayloadItemInstance;
|
|
81
|
+
static is(obj: unknown): obj is PayloadItemInstance;
|
|
82
|
+
static check(data: unknown): boolean;
|
|
83
|
+
static parse(json: string): PayloadItemInstance;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=PayloadItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayloadItem.d.ts","sourceRoot":"","sources":["../../src/shared/PayloadItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,oBAAoB,GAAG,mBAAmB,CAAC;IAC1D,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAA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S,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM;IAmBvD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,mBAAmB;IAc7E,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,mBAAmB;IAInD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;IAItC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB;CAIhD"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { IInstance } from './interfaces.js';
|
|
2
|
+
import { PropertyTypes } from './RealDictionary.js';
|
|
3
|
+
import { ComputationInstance } from './types.js';
|
|
4
|
+
export interface PropertyInstance extends IInstance {
|
|
5
|
+
name: string;
|
|
6
|
+
type: string;
|
|
7
|
+
collection?: boolean;
|
|
8
|
+
defaultValue?: Function;
|
|
9
|
+
computed?: Function;
|
|
10
|
+
computation?: ComputationInstance;
|
|
11
|
+
}
|
|
12
|
+
export interface PropertyCreateArgs {
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
collection?: boolean;
|
|
16
|
+
defaultValue?: Function;
|
|
17
|
+
computed?: Function;
|
|
18
|
+
computation?: ComputationInstance;
|
|
19
|
+
}
|
|
20
|
+
export declare class Property implements PropertyInstance {
|
|
21
|
+
uuid: string;
|
|
22
|
+
_type: string;
|
|
23
|
+
_options?: {
|
|
24
|
+
uuid?: string;
|
|
25
|
+
};
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
collection?: boolean;
|
|
29
|
+
defaultValue?: Function;
|
|
30
|
+
computed?: Function;
|
|
31
|
+
computation?: ComputationInstance;
|
|
32
|
+
constructor(args: PropertyCreateArgs, options?: {
|
|
33
|
+
uuid?: string;
|
|
34
|
+
});
|
|
35
|
+
static isKlass: true;
|
|
36
|
+
static displayName: string;
|
|
37
|
+
static instances: PropertyInstance[];
|
|
38
|
+
static public: {
|
|
39
|
+
name: {
|
|
40
|
+
type: "string";
|
|
41
|
+
required: true;
|
|
42
|
+
constraints: {
|
|
43
|
+
format: ({ name }: {
|
|
44
|
+
name: string;
|
|
45
|
+
}) => boolean;
|
|
46
|
+
length: ({ name }: {
|
|
47
|
+
name: string;
|
|
48
|
+
}) => boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type: {
|
|
52
|
+
type: "string";
|
|
53
|
+
required: true;
|
|
54
|
+
options: () => PropertyTypes[];
|
|
55
|
+
};
|
|
56
|
+
collection: {
|
|
57
|
+
type: "boolean";
|
|
58
|
+
required: false;
|
|
59
|
+
};
|
|
60
|
+
defaultValue: {
|
|
61
|
+
type: "function";
|
|
62
|
+
required: false;
|
|
63
|
+
};
|
|
64
|
+
computed: {
|
|
65
|
+
type: "function";
|
|
66
|
+
required: false;
|
|
67
|
+
};
|
|
68
|
+
computation: {
|
|
69
|
+
type: readonly [];
|
|
70
|
+
collection: false;
|
|
71
|
+
required: false;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
static create(args: PropertyCreateArgs, options?: {
|
|
75
|
+
uuid?: string;
|
|
76
|
+
}): PropertyInstance;
|
|
77
|
+
static stringify(instance: PropertyInstance): string;
|
|
78
|
+
static clone(instance: PropertyInstance, deep: boolean): PropertyInstance;
|
|
79
|
+
static is(obj: unknown): obj is PropertyInstance;
|
|
80
|
+
static check(data: unknown): boolean;
|
|
81
|
+
static parse(json: string): PropertyInstance;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=Property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Property.d.ts","sourceRoot":"","sources":["../../src/shared/Property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,mBA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;;;;;;;;;;;;;;;;;;;;MA2BrC;IAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,gBAAgB;IAatF,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM;IAoBpD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,GAAG,gBAAgB;IAavE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,gBAAgB;IAIhD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;IAItC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAc7C"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { IInstance } from './interfaces.js';
|
|
2
|
+
import { ComputationInstance } from './types.js';
|
|
3
|
+
export declare enum PropertyTypes {
|
|
4
|
+
String = "string",
|
|
5
|
+
Number = "number",
|
|
6
|
+
Boolean = "boolean",
|
|
7
|
+
Timestamp = "timestamp"
|
|
8
|
+
}
|
|
9
|
+
export interface DictionaryInstance extends IInstance {
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
collection: boolean;
|
|
13
|
+
args?: object;
|
|
14
|
+
defaultValue?: Function;
|
|
15
|
+
computation?: ComputationInstance;
|
|
16
|
+
}
|
|
17
|
+
export interface DictionaryCreateArgs {
|
|
18
|
+
name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
collection?: boolean;
|
|
21
|
+
args?: object;
|
|
22
|
+
defaultValue?: Function;
|
|
23
|
+
computation?: ComputationInstance;
|
|
24
|
+
}
|
|
25
|
+
export declare class Dictionary implements DictionaryInstance {
|
|
26
|
+
uuid: string;
|
|
27
|
+
_type: string;
|
|
28
|
+
_options?: {
|
|
29
|
+
uuid?: string;
|
|
30
|
+
};
|
|
31
|
+
name: string;
|
|
32
|
+
type: string;
|
|
33
|
+
collection: boolean;
|
|
34
|
+
args?: object;
|
|
35
|
+
defaultValue?: Function;
|
|
36
|
+
computation?: ComputationInstance;
|
|
37
|
+
constructor(args: DictionaryCreateArgs, options?: {
|
|
38
|
+
uuid?: string;
|
|
39
|
+
});
|
|
40
|
+
static isKlass: true;
|
|
41
|
+
static displayName: string;
|
|
42
|
+
static instances: DictionaryInstance[];
|
|
43
|
+
static public: {
|
|
44
|
+
name: {
|
|
45
|
+
type: "string";
|
|
46
|
+
required: true;
|
|
47
|
+
collection: false;
|
|
48
|
+
constraints: {
|
|
49
|
+
format: ({ name }: {
|
|
50
|
+
name: string;
|
|
51
|
+
}) => boolean;
|
|
52
|
+
length: ({ name }: {
|
|
53
|
+
name: string;
|
|
54
|
+
}) => boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
type: {
|
|
58
|
+
type: "string";
|
|
59
|
+
required: true;
|
|
60
|
+
collection: false;
|
|
61
|
+
options: PropertyTypes[];
|
|
62
|
+
};
|
|
63
|
+
collection: {
|
|
64
|
+
type: "boolean";
|
|
65
|
+
required: true;
|
|
66
|
+
collection: false;
|
|
67
|
+
defaultValue: () => boolean;
|
|
68
|
+
};
|
|
69
|
+
args: {
|
|
70
|
+
type: "object";
|
|
71
|
+
required: false;
|
|
72
|
+
collection: false;
|
|
73
|
+
};
|
|
74
|
+
defaultValue: {
|
|
75
|
+
type: "function";
|
|
76
|
+
required: false;
|
|
77
|
+
collection: false;
|
|
78
|
+
};
|
|
79
|
+
computation: {
|
|
80
|
+
collection: false;
|
|
81
|
+
type: readonly [];
|
|
82
|
+
required: false;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
static create(args: DictionaryCreateArgs, options?: {
|
|
86
|
+
uuid?: string;
|
|
87
|
+
}): DictionaryInstance;
|
|
88
|
+
static stringify(instance: DictionaryInstance): string;
|
|
89
|
+
static clone(instance: DictionaryInstance, deep: boolean): DictionaryInstance;
|
|
90
|
+
static is(obj: unknown): obj is DictionaryInstance;
|
|
91
|
+
static check(data: unknown): boolean;
|
|
92
|
+
static parse(json: string): DictionaryInstance;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=RealDictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RealDictionary.d.ts","sourceRoot":"","sources":["../../src/shared/RealDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAID,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC;AAED,qBAAa,UAAW,YAAW,kBAAkB;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,SAAgB;IACrB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,WAAW,CAAC,EAAE,mBAAmB,CAAC;gBAE7B,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAYnE,MAAM,CAAC,OAAO,EAAG,IAAI,CAAU;IAC/B,MAAM,CAAC,WAAW,SAAgB;IAClC,MAAM,CAAC,SAAS,EAAE,kBAAkB,EAAE,CAAM;IAE5C,MAAM,CAAC,MAAM;;;;;;mCAMU;oBAAE,IAAI,EAAE,MAAM,CAAA;iBAAE;mCAGhB;oBAAE,IAAI,EAAE,MAAM,CAAA;iBAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCrC;IAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,kBAAkB;IAa1F,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM;IAmBtD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,OAAO,GAAG,kBAAkB;IAa3E,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,kBAAkB;IAIlD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;IAItC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB;CAI/C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IInstance } from './interfaces.js';
|
|
2
|
+
import { AttributeQueryData, DataDependencies } from './types.js';
|
|
3
|
+
export interface RealTimeInstance extends IInstance {
|
|
4
|
+
attributeQuery?: AttributeQueryData;
|
|
5
|
+
dataDeps?: DataDependencies;
|
|
6
|
+
nextRecomputeTime?: Function;
|
|
7
|
+
callback: Function;
|
|
8
|
+
}
|
|
9
|
+
export interface RealTimeCreateArgs {
|
|
10
|
+
attributeQuery?: AttributeQueryData;
|
|
11
|
+
dataDeps?: DataDependencies;
|
|
12
|
+
nextRecomputeTime?: Function;
|
|
13
|
+
callback: Function;
|
|
14
|
+
}
|
|
15
|
+
export declare class RealTime implements RealTimeInstance {
|
|
16
|
+
uuid: string;
|
|
17
|
+
_type: string;
|
|
18
|
+
_options?: {
|
|
19
|
+
uuid?: string;
|
|
20
|
+
};
|
|
21
|
+
attributeQuery?: AttributeQueryData;
|
|
22
|
+
dataDeps?: DataDependencies;
|
|
23
|
+
nextRecomputeTime?: Function;
|
|
24
|
+
callback: Function;
|
|
25
|
+
constructor(args: RealTimeCreateArgs, options?: {
|
|
26
|
+
uuid?: string;
|
|
27
|
+
});
|
|
28
|
+
static isKlass: true;
|
|
29
|
+
static displayName: string;
|
|
30
|
+
static instances: RealTimeInstance[];
|
|
31
|
+
static public: {
|
|
32
|
+
attributeQuery: {
|
|
33
|
+
instanceType: {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
collection: false;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
39
|
+
dataDeps: {
|
|
40
|
+
instanceType: {
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
};
|
|
43
|
+
collection: false;
|
|
44
|
+
required: false;
|
|
45
|
+
};
|
|
46
|
+
nextRecomputeTime: {
|
|
47
|
+
type: "function";
|
|
48
|
+
collection: false;
|
|
49
|
+
required: false;
|
|
50
|
+
};
|
|
51
|
+
callback: {
|
|
52
|
+
type: "function";
|
|
53
|
+
collection: false;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
static create(args: RealTimeCreateArgs, options?: {
|
|
58
|
+
uuid?: string;
|
|
59
|
+
}): RealTimeInstance;
|
|
60
|
+
static stringify(instance: RealTimeInstance): string;
|
|
61
|
+
static clone(instance: RealTimeInstance, deep: boolean): RealTimeInstance;
|
|
62
|
+
static is(obj: unknown): obj is RealTimeInstance;
|
|
63
|
+
static check(data: unknown): boolean;
|
|
64
|
+
static parse(json: string): RealTimeInstance;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=RealTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RealTime.d.ts","sourceRoot":"","sources":["../../src/shared/RealTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGvE,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,QAAS,YAAW,gBAAgB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,SAAmB;IACxB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7B,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,iBAAiB,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,EAAE,QAAQ,CAAC;gBAEd,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAUjE,MAAM,CAAC,OAAO,EAAG,IAAI,CAAU;IAC/B,MAAM,CAAC,WAAW,SAAmB;IACrC,MAAM,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAM;IAE1C,MAAM,CAAC,MAAM;;0BAEsB;gBAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAC;;;;;0BAKxB;gBAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAC;;;;;;;;;;;;;;MAczD;IAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,gBAAgB;IAatF,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM;IAiBpD,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,GAAG,gBAAgB;IAWvE,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,gBAAgB;IAIhD,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO;IAItC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAmB7C"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { EntityInstance } from './Entity.js';
|
|
2
|
+
import { RelationInstance } from './Relation.js';
|
|
3
|
+
/**
|
|
4
|
+
* RefContainer - A utility class for managing entity and relation reference replacement
|
|
5
|
+
*
|
|
6
|
+
* This class helps replace entities/relations and automatically update all references
|
|
7
|
+
* throughout the object graph without modifying the original objects.
|
|
8
|
+
*/
|
|
9
|
+
export declare class RefContainer {
|
|
10
|
+
private clonedEntities;
|
|
11
|
+
private clonedRelations;
|
|
12
|
+
private reverseEntityMap;
|
|
13
|
+
private reverseRelationMap;
|
|
14
|
+
private originalEntities;
|
|
15
|
+
private originalRelations;
|
|
16
|
+
constructor(originalEntities?: EntityInstance[], originalRelations?: RelationInstance[]);
|
|
17
|
+
/**
|
|
18
|
+
* Initialize clones for all entities and relations
|
|
19
|
+
*/
|
|
20
|
+
private initializeClones;
|
|
21
|
+
/**
|
|
22
|
+
* Add a new entity to the container
|
|
23
|
+
*/
|
|
24
|
+
addEntity(entity: EntityInstance): EntityInstance;
|
|
25
|
+
/**
|
|
26
|
+
* Add a new relation to the container
|
|
27
|
+
*/
|
|
28
|
+
addRelation(relation: RelationInstance): RelationInstance;
|
|
29
|
+
/**
|
|
30
|
+
* Update references in a single object (entity or relation)
|
|
31
|
+
*/
|
|
32
|
+
private updateReferencesInObject;
|
|
33
|
+
/**
|
|
34
|
+
* Update all references in cloned entities and relations
|
|
35
|
+
*/
|
|
36
|
+
private updateAllReferences;
|
|
37
|
+
/**
|
|
38
|
+
* Replace an entity with a new one and update all references immediately
|
|
39
|
+
*/
|
|
40
|
+
replaceEntity(newEntity: EntityInstance, oldEntity: EntityInstance): void;
|
|
41
|
+
/**
|
|
42
|
+
* Replace a relation with a new one and update all references immediately
|
|
43
|
+
*/
|
|
44
|
+
replaceRelation(newRelation: RelationInstance, oldRelation: RelationInstance): void;
|
|
45
|
+
/**
|
|
46
|
+
* Update all references from an old object to a new object
|
|
47
|
+
*/
|
|
48
|
+
private updateSpecificReferences;
|
|
49
|
+
/**
|
|
50
|
+
* Get entity by name after all replacements
|
|
51
|
+
*/
|
|
52
|
+
getEntityByName(name: string): EntityInstance | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Get relation by name after all replacements
|
|
55
|
+
*/
|
|
56
|
+
getRelationByName(name: string): RelationInstance | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Get all entities and relations after replacement
|
|
59
|
+
*/
|
|
60
|
+
getAll(): {
|
|
61
|
+
entities: EntityInstance[];
|
|
62
|
+
relations: RelationInstance[];
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Unified replace method - automatically determines if it's an entity or relation
|
|
66
|
+
*/
|
|
67
|
+
replace(newItem: EntityInstance | RelationInstance, oldItem: EntityInstance | RelationInstance): void;
|
|
68
|
+
/**
|
|
69
|
+
* Unified getByName method - searches both entities and relations
|
|
70
|
+
*/
|
|
71
|
+
getByName(name: string): EntityInstance | RelationInstance | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Unified add method - automatically determines if it's an entity or relation
|
|
74
|
+
*/
|
|
75
|
+
add(item: EntityInstance | RelationInstance): EntityInstance | RelationInstance;
|
|
76
|
+
/**
|
|
77
|
+
* Helper method to determine if an item is an entity
|
|
78
|
+
*/
|
|
79
|
+
private isEntity;
|
|
80
|
+
/**
|
|
81
|
+
* Helper method to determine if an item is a relation
|
|
82
|
+
*/
|
|
83
|
+
private isRelation;
|
|
84
|
+
/**
|
|
85
|
+
* Find replacement for an entity or relation in the cloned maps
|
|
86
|
+
*/
|
|
87
|
+
private findReplacement;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=RefContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefContainer.d.ts","sourceRoot":"","sources":["../../src/shared/RefContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAU,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAY,MAAM,eAAe,CAAC;AAE3D;;;;;GAKG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,cAAc,CAAsC;IAC5D,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,gBAAgB,CAAsC;IAC9D,OAAO,CAAC,kBAAkB,CAA0C;IACpE,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAAqB;gBAElC,gBAAgB,GAAE,cAAc,EAAO,EAAE,iBAAiB,GAAE,gBAAgB,EAAO;IAc/F;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc;IA2BjD;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB;IAwBzD;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAiDhC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAuD3B;;OAEG;IACH,aAAa,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,GAAG,IAAI;IA4CzE;;OAEG;IACH,eAAe,CAAC,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,GAAG,IAAI;IAmCnF;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA4ChC;;OAEG;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IASzD;;OAEG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS;IAU7D;;OAEG;IACH,MAAM,IAAI;QAAE,QAAQ,EAAE,cAAc,EAAE,CAAC;QAAC,SAAS,EAAE,gBAAgB,EAAE,CAAA;KAAE;IAOvE;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,gBAAgB,EAAE,OAAO,EAAE,cAAc,GAAG,gBAAgB,GAAG,IAAI;IAUrG;;OAEG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,gBAAgB,GAAG,SAAS;IAMtE;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,gBAAgB;IAQ/E;;OAEG;IACH,OAAO,CAAC,QAAQ;IAIhB;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;OAEG;IACH,OAAO,CAAC,eAAe;CA+BxB"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { IInstance } from './interfaces.js';
|
|
2
|
+
import { PropertyInstance } from './Property.js';
|
|
3
|
+
import { EntityInstance } from './Entity.js';
|
|
4
|
+
import { ComputationInstance } from './types.js';
|
|
5
|
+
export interface RelationInstance extends IInstance {
|
|
6
|
+
name?: string;
|
|
7
|
+
source: EntityInstance | RelationInstance;
|
|
8
|
+
sourceProperty: string;
|
|
9
|
+
target: EntityInstance | RelationInstance;
|
|
10
|
+
targetProperty: string;
|
|
11
|
+
isTargetReliance: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
computation?: ComputationInstance;
|
|
14
|
+
properties: PropertyInstance[];
|
|
15
|
+
baseRelation?: RelationInstance;
|
|
16
|
+
matchExpression?: object;
|
|
17
|
+
inputRelations?: RelationInstance[];
|
|
18
|
+
}
|
|
19
|
+
export interface RelationCreateArgs {
|
|
20
|
+
name?: string;
|
|
21
|
+
source?: EntityInstance | RelationInstance;
|
|
22
|
+
sourceProperty?: string;
|
|
23
|
+
target?: EntityInstance | RelationInstance;
|
|
24
|
+
targetProperty?: string;
|
|
25
|
+
isTargetReliance?: boolean;
|
|
26
|
+
type?: string;
|
|
27
|
+
computation?: ComputationInstance;
|
|
28
|
+
properties?: PropertyInstance[];
|
|
29
|
+
baseRelation?: RelationInstance;
|
|
30
|
+
matchExpression?: object;
|
|
31
|
+
inputRelations?: RelationInstance[];
|
|
32
|
+
}
|
|
33
|
+
export declare class Relation implements RelationInstance {
|
|
34
|
+
uuid: string;
|
|
35
|
+
_type: string;
|
|
36
|
+
_options?: {
|
|
37
|
+
uuid?: string;
|
|
38
|
+
};
|
|
39
|
+
private _name?;
|
|
40
|
+
source: EntityInstance | RelationInstance;
|
|
41
|
+
sourceProperty: string;
|
|
42
|
+
target: EntityInstance | RelationInstance;
|
|
43
|
+
targetProperty: string;
|
|
44
|
+
isTargetReliance: boolean;
|
|
45
|
+
type: string;
|
|
46
|
+
computation?: ComputationInstance;
|
|
47
|
+
properties: PropertyInstance[];
|
|
48
|
+
baseRelation?: RelationInstance;
|
|
49
|
+
matchExpression?: object;
|
|
50
|
+
inputRelations?: RelationInstance[];
|
|
51
|
+
get name(): string | undefined;
|
|
52
|
+
set name(value: string | undefined);
|
|
53
|
+
constructor(args: RelationCreateArgs, options?: {
|
|
54
|
+
uuid?: string;
|
|
55
|
+
});
|
|
56
|
+
static isKlass: true;
|
|
57
|
+
static displayName: string;
|
|
58
|
+
static instances: RelationInstance[];
|
|
59
|
+
static public: {
|
|
60
|
+
name: {
|
|
61
|
+
type: "string";
|
|
62
|
+
required: false;
|
|
63
|
+
collection: false;
|
|
64
|
+
computed: (relation: RelationInstance) => string;
|
|
65
|
+
};
|
|
66
|
+
source: {
|
|
67
|
+
type: readonly ["Entity", "Relation"];
|
|
68
|
+
required: true;
|
|
69
|
+
collection: false;
|
|
70
|
+
};
|
|
71
|
+
sourceProperty: {
|
|
72
|
+
type: "string";
|
|
73
|
+
required: true;
|
|
74
|
+
collection: false;
|
|
75
|
+
};
|
|
76
|
+
target: {
|
|
77
|
+
type: readonly ["Entity", "Relation"];
|
|
78
|
+
required: true;
|
|
79
|
+
collection: false;
|
|
80
|
+
};
|
|
81
|
+
targetProperty: {
|
|
82
|
+
type: "string";
|
|
83
|
+
required: true;
|
|
84
|
+
collection: false;
|
|
85
|
+
};
|
|
86
|
+
isTargetReliance: {
|
|
87
|
+
type: "boolean";
|
|
88
|
+
required: true;
|
|
89
|
+
collection: false;
|
|
90
|
+
defaultValue: () => boolean;
|
|
91
|
+
};
|
|
92
|
+
type: {
|
|
93
|
+
type: "string";
|
|
94
|
+
required: true;
|
|
95
|
+
collection: false;
|
|
96
|
+
};
|
|
97
|
+
computation: {
|
|
98
|
+
type: readonly [];
|
|
99
|
+
collection: false;
|
|
100
|
+
required: false;
|
|
101
|
+
};
|
|
102
|
+
properties: {
|
|
103
|
+
type: "Property";
|
|
104
|
+
collection: true;
|
|
105
|
+
required: true;
|
|
106
|
+
constraints: {
|
|
107
|
+
eachNameUnique: (thisInstance: RelationInstance) => boolean;
|
|
108
|
+
};
|
|
109
|
+
defaultValue: () => never[];
|
|
110
|
+
};
|
|
111
|
+
baseRelation: {
|
|
112
|
+
type: "Relation";
|
|
113
|
+
collection: false;
|
|
114
|
+
required: false;
|
|
115
|
+
};
|
|
116
|
+
matchExpression: {
|
|
117
|
+
type: "object";
|
|
118
|
+
collection: false;
|
|
119
|
+
required: false;
|
|
120
|
+
};
|
|
121
|
+
inputRelations: {
|
|
122
|
+
type: "Relation";
|
|
123
|
+
collection: true;
|
|
124
|
+
required: false;
|
|
125
|
+
constraints: {
|
|
126
|
+
mergedRelationNoProperties: (thisInstance: RelationInstance) => boolean;
|
|
127
|
+
sameSourceTarget: (thisInstance: RelationInstance) => boolean;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
static create(args: RelationCreateArgs, options?: {
|
|
132
|
+
uuid?: string;
|
|
133
|
+
}): RelationInstance;
|
|
134
|
+
static stringify(instance: RelationInstance): string;
|
|
135
|
+
static clone(instance: RelationInstance, deep?: boolean): RelationInstance;
|
|
136
|
+
static is(obj: unknown): obj is RelationInstance;
|
|
137
|
+
static check(data: unknown): boolean;
|
|
138
|
+
static parse(json: string): RelationInstance;
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=Relation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Relation.d.ts","sourceRoot":"","sources":["../../src/shared/Relation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAY,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,cAAc,GAAG,gBAAgB,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,C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|
6
|
+
export interface SideEffectCreateArgs {
|
|
7
|
+
name: string;
|
|
8
|
+
handle: Function;
|
|
9
|
+
}
|
|
10
|
+
export declare class SideEffect implements SideEffectInstance {
|
|
11
|
+
uuid: string;
|
|
12
|
+
_type: string;
|
|
13
|
+
_options?: {
|
|
14
|
+
uuid?: string;
|
|
15
|
+
};
|
|
16
|
+
name: string;
|
|
17
|
+
handle: Function;
|
|
18
|
+
constructor(args: SideEffectCreateArgs, options?: {
|
|
19
|
+
uuid?: string;
|
|
20
|
+
});
|
|
21
|
+
static isKlass: true;
|
|
22
|
+
static displayName: string;
|
|
23
|
+
static instances: SideEffectInstance[];
|
|
24
|
+
static public: {
|
|
25
|
+
name: {
|
|
26
|
+
type: "string";
|
|
27
|
+
required: true;
|
|
28
|
+
collection: false;
|
|
29
|
+
};
|
|
30
|
+
handle: {
|
|
31
|
+
type: "function";
|
|
32
|
+
required: true;
|
|
33
|
+
collection: false;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
static create(args: SideEffectCreateArgs, options?: {
|
|
37
|
+
uuid?: string;
|
|
38
|
+
}): SideEffectInstance;
|
|
39
|
+
static stringify(instance: SideEffectInstance): string;
|
|
40
|
+
static clone(instance: SideEffectInstance, deep: boolean): SideEffectInstance;
|
|
41
|
+
static is(obj: unknown): obj is SideEffectInstance;
|
|
42
|
+
static check(data: unknown): boolean;
|
|
43
|
+
static parse(json: string): SideEffectInstance;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=SideEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideEffect.d.ts","sourceRoot":"","sources":["../../src/shared/SideEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgC,MAAM,iBAAiB,CAAC;AAG1E,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,WAAW,o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