@cratis/scene.model 4.22.0 → 4.23.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/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/structure/ApplicationStructure.js +10 -0
- package/dist/cjs/structure/ApplicationStructure.js.map +1 -0
- package/dist/cjs/structure/FeatureNode.js +13 -0
- package/dist/cjs/structure/FeatureNode.js.map +1 -0
- package/dist/cjs/structure/ModuleNode.js +13 -0
- package/dist/cjs/structure/ModuleNode.js.map +1 -0
- package/dist/cjs/structure/SliceKind.js +15 -0
- package/dist/cjs/structure/SliceKind.js.map +1 -0
- package/dist/cjs/structure/SliceNode.js +12 -0
- package/dist/cjs/structure/SliceNode.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/structure/ApplicationStructure.d.ts +6 -0
- package/dist/esm/structure/ApplicationStructure.d.ts.map +1 -0
- package/dist/esm/structure/ApplicationStructure.js +8 -0
- package/dist/esm/structure/ApplicationStructure.js.map +1 -0
- package/dist/esm/structure/FeatureNode.d.ts +9 -0
- package/dist/esm/structure/FeatureNode.d.ts.map +1 -0
- package/dist/esm/structure/FeatureNode.js +11 -0
- package/dist/esm/structure/FeatureNode.js.map +1 -0
- package/dist/esm/structure/ModuleNode.d.ts +10 -0
- package/dist/esm/structure/ModuleNode.d.ts.map +1 -0
- package/dist/esm/structure/ModuleNode.js +11 -0
- package/dist/esm/structure/ModuleNode.js.map +1 -0
- package/dist/esm/structure/SliceKind.d.ts +6 -0
- package/dist/esm/structure/SliceKind.d.ts.map +1 -0
- package/dist/esm/structure/SliceKind.js +13 -0
- package/dist/esm/structure/SliceKind.js.map +1 -0
- package/dist/esm/structure/SliceNode.d.ts +8 -0
- package/dist/esm/structure/SliceNode.d.ts.map +1 -0
- package/dist/esm/structure/SliceNode.js +10 -0
- package/dist/esm/structure/SliceNode.js.map +1 -0
- package/dist/esm/structure/index.d.ts +6 -0
- package/dist/esm/structure/index.d.ts.map +1 -0
- package/dist/esm/structure/index.js +6 -0
- package/dist/esm/structure/index.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/index.ts +1 -0
- package/package.json +1 -1
- package/structure/ApplicationStructure.ts +17 -0
- package/structure/FeatureNode.ts +23 -0
- package/structure/ModuleNode.ts +24 -0
- package/structure/SliceKind.ts +16 -0
- package/structure/SliceNode.ts +20 -0
- package/structure/index.ts +8 -0
package/dist/cjs/index.js
CHANGED
|
@@ -166,6 +166,11 @@ var ReorderCollectionItemEdit = require('./editing/ReorderCollectionItemEdit.js'
|
|
|
166
166
|
var EditCollectionItemEdit = require('./editing/EditCollectionItemEdit.js');
|
|
167
167
|
var ExposePropertyEdit = require('./editing/ExposePropertyEdit.js');
|
|
168
168
|
var UnexposePropertyEdit = require('./editing/UnexposePropertyEdit.js');
|
|
169
|
+
var SliceKind = require('./structure/SliceKind.js');
|
|
170
|
+
var SliceNode = require('./structure/SliceNode.js');
|
|
171
|
+
var FeatureNode = require('./structure/FeatureNode.js');
|
|
172
|
+
var ModuleNode = require('./structure/ModuleNode.js');
|
|
173
|
+
var ApplicationStructure = require('./structure/ApplicationStructure.js');
|
|
169
174
|
|
|
170
175
|
|
|
171
176
|
|
|
@@ -339,4 +344,9 @@ exports.ReorderCollectionItemEditPropertyNames = ReorderCollectionItemEdit.Reord
|
|
|
339
344
|
exports.EditCollectionItemEditPropertyNames = EditCollectionItemEdit.EditCollectionItemEditPropertyNames;
|
|
340
345
|
exports.ExposePropertyEditPropertyNames = ExposePropertyEdit.ExposePropertyEditPropertyNames;
|
|
341
346
|
exports.UnexposePropertyEditPropertyNames = UnexposePropertyEdit.UnexposePropertyEditPropertyNames;
|
|
347
|
+
exports.SliceKind = SliceKind.SliceKind;
|
|
348
|
+
exports.SliceNodePropertyNames = SliceNode.SliceNodePropertyNames;
|
|
349
|
+
exports.FeatureNodePropertyNames = FeatureNode.FeatureNodePropertyNames;
|
|
350
|
+
exports.ModuleNodePropertyNames = ModuleNode.ModuleNodePropertyNames;
|
|
351
|
+
exports.ApplicationStructurePropertyNames = ApplicationStructure.ApplicationStructurePropertyNames;
|
|
342
352
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ApplicationStructurePropertyNames = [
|
|
6
|
+
'modules'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
exports.ApplicationStructurePropertyNames = ApplicationStructurePropertyNames;
|
|
10
|
+
//# sourceMappingURL=ApplicationStructure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationStructure.js","sources":["../../../structure/ApplicationStructure.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ModuleNode } from './ModuleNode';\n\n/**\n * A read-only description of which modules, features and slices an application has, and what kind each slice is.\n *\n * It is a reference input supplied by the host (Stage's converter, Studio); it is not persisted in a scene document.\n * Ids are the dotted qualified ids already used by `DestinationReference`, for example `sales.orders.PlaceOrder`.\n */\nexport interface ApplicationStructure {\n /** The modules of the application, in declaration order. */\n modules: ModuleNode[];\n}\n\nexport const ApplicationStructurePropertyNames: (keyof ApplicationStructure)[] = ['modules'];\n"],"names":["ApplicationStructurePropertyNames"],"mappings":";;AAAA;AACA;MAeaA,iCAAAA,GAAoE;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const FeatureNodePropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'name',
|
|
8
|
+
'features',
|
|
9
|
+
'slices'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.FeatureNodePropertyNames = FeatureNodePropertyNames;
|
|
13
|
+
//# sourceMappingURL=FeatureNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureNode.js","sources":["../../../structure/FeatureNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SliceNode } from './SliceNode';\n\n/**\n * A feature in the application hierarchy; features nest.\n */\nexport interface FeatureNode {\n /** The feature identity, unique among its siblings; its qualified form is the dotted path from the module. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The sub-features. */\n features: FeatureNode[];\n\n /** The slices that belong directly to this feature. */\n slices: SliceNode[];\n}\n\nexport const FeatureNodePropertyNames: (keyof FeatureNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["FeatureNodePropertyNames"],"mappings":";;AAAA;AACA;MAqBaA,wBAAAA,GAAkD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ModuleNodePropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'name',
|
|
8
|
+
'features',
|
|
9
|
+
'slices'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
exports.ModuleNodePropertyNames = ModuleNodePropertyNames;
|
|
13
|
+
//# sourceMappingURL=ModuleNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNode.js","sources":["../../../structure/ModuleNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { FeatureNode } from './FeatureNode';\nimport { SliceNode } from './SliceNode';\n\n/**\n * A module in the application hierarchy.\n */\nexport interface ModuleNode {\n /** The module identity, unique in the application; the first segment of every qualified id below it. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The module's top-level features, first feature first. */\n features: FeatureNode[];\n\n /** The slices that belong directly to the module, when it has any. */\n slices?: SliceNode[];\n}\n\nexport const ModuleNodePropertyNames: (keyof ModuleNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["ModuleNodePropertyNames"],"mappings":";;AAAA;AACA;MAsBaA,uBAAAA,GAAgD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* What kind of event-model slice a slice node is.
|
|
7
|
+
*/ var SliceKind = /*#__PURE__*/ function(SliceKind) {
|
|
8
|
+
/** A slice that accepts a command - user input that changes state. */ SliceKind["StateChange"] = "StateChange";
|
|
9
|
+
/** A slice that projects state into a read model for display. */ SliceKind["StateView"] = "StateView";
|
|
10
|
+
/** A slice that reacts to events without user input. */ SliceKind["Automation"] = "Automation";
|
|
11
|
+
return SliceKind;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
exports.SliceKind = SliceKind;
|
|
15
|
+
//# sourceMappingURL=SliceKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceKind.js","sources":["../../../structure/SliceKind.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * What kind of event-model slice a slice node is.\n */\nexport enum SliceKind {\n /** A slice that accepts a command - user input that changes state. */\n StateChange = 'StateChange',\n\n /** A slice that projects state into a read model for display. */\n StateView = 'StateView',\n\n /** A slice that reacts to events without user input. */\n Automation = 'Automation',\n}\n"],"names":["SliceKind"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,SAAAA,iBAAAA,SAAAA,SAAAA,EAAAA;2EAC4D,SAAA,CAAA,aAAA,CAAA,GAAA,aAAA;sEAGL,SAAA,CAAA,WAAA,CAAA,GAAA,WAAA;6DAGT,SAAA,CAAA,YAAA,CAAA,GAAA,YAAA;AAP9CA,IAAAA,OAAAA,SAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const SliceNodePropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'name',
|
|
8
|
+
'kind'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
exports.SliceNodePropertyNames = SliceNodePropertyNames;
|
|
12
|
+
//# sourceMappingURL=SliceNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceNode.js","sources":["../../../structure/SliceNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SliceKind } from './SliceKind';\n\n/**\n * A slice in the application hierarchy.\n */\nexport interface SliceNode {\n /** The slice identity, unique among the siblings of its feature or module; its qualified form is `module.feature.Slice`. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** Whether the slice is a state change, a state view or an automation. */\n kind: SliceKind;\n}\n\nexport const SliceNodePropertyNames: (keyof SliceNode)[] = ['id', 'name', 'kind'];\n"],"names":["SliceNodePropertyNames"],"mappings":";;AAAA;AACA;MAkBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA;;;"}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -164,4 +164,9 @@ export { ReorderCollectionItemEditPropertyNames } from './editing/ReorderCollect
|
|
|
164
164
|
export { EditCollectionItemEditPropertyNames } from './editing/EditCollectionItemEdit.js';
|
|
165
165
|
export { ExposePropertyEditPropertyNames } from './editing/ExposePropertyEdit.js';
|
|
166
166
|
export { UnexposePropertyEditPropertyNames } from './editing/UnexposePropertyEdit.js';
|
|
167
|
+
export { SliceKind } from './structure/SliceKind.js';
|
|
168
|
+
export { SliceNodePropertyNames } from './structure/SliceNode.js';
|
|
169
|
+
export { FeatureNodePropertyNames } from './structure/FeatureNode.js';
|
|
170
|
+
export { ModuleNodePropertyNames } from './structure/ModuleNode.js';
|
|
171
|
+
export { ApplicationStructurePropertyNames } from './structure/ApplicationStructure.js';
|
|
167
172
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationStructure.d.ts","sourceRoot":"","sources":["../../../structure/ApplicationStructure.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,WAAW,oBAAoB;IAEjC,OAAO,EAAE,UAAU,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,iCAAiC,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const ApplicationStructurePropertyNames = [
|
|
4
|
+
'modules'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { ApplicationStructurePropertyNames };
|
|
8
|
+
//# sourceMappingURL=ApplicationStructure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationStructure.js","sources":["../../../structure/ApplicationStructure.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ModuleNode } from './ModuleNode';\n\n/**\n * A read-only description of which modules, features and slices an application has, and what kind each slice is.\n *\n * It is a reference input supplied by the host (Stage's converter, Studio); it is not persisted in a scene document.\n * Ids are the dotted qualified ids already used by `DestinationReference`, for example `sales.orders.PlaceOrder`.\n */\nexport interface ApplicationStructure {\n /** The modules of the application, in declaration order. */\n modules: ModuleNode[];\n}\n\nexport const ApplicationStructurePropertyNames: (keyof ApplicationStructure)[] = ['modules'];\n"],"names":["ApplicationStructurePropertyNames"],"mappings":"AAAA;AACA;MAeaA,iCAAAA,GAAoE;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SliceNode } from './SliceNode';
|
|
2
|
+
export interface FeatureNode {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
features: FeatureNode[];
|
|
6
|
+
slices: SliceNode[];
|
|
7
|
+
}
|
|
8
|
+
export declare const FeatureNodePropertyNames: (keyof FeatureNode)[];
|
|
9
|
+
//# sourceMappingURL=FeatureNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureNode.d.ts","sourceRoot":"","sources":["../../../structure/FeatureNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,WAAW;IAExB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,EAAE,CAAC;IAGxB,MAAM,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,WAAW,CAAC,EAAyC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const FeatureNodePropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'name',
|
|
6
|
+
'features',
|
|
7
|
+
'slices'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { FeatureNodePropertyNames };
|
|
11
|
+
//# sourceMappingURL=FeatureNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureNode.js","sources":["../../../structure/FeatureNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SliceNode } from './SliceNode';\n\n/**\n * A feature in the application hierarchy; features nest.\n */\nexport interface FeatureNode {\n /** The feature identity, unique among its siblings; its qualified form is the dotted path from the module. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The sub-features. */\n features: FeatureNode[];\n\n /** The slices that belong directly to this feature. */\n slices: SliceNode[];\n}\n\nexport const FeatureNodePropertyNames: (keyof FeatureNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["FeatureNodePropertyNames"],"mappings":"AAAA;AACA;MAqBaA,wBAAAA,GAAkD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FeatureNode } from './FeatureNode';
|
|
2
|
+
import { SliceNode } from './SliceNode';
|
|
3
|
+
export interface ModuleNode {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
features: FeatureNode[];
|
|
7
|
+
slices?: SliceNode[];
|
|
8
|
+
}
|
|
9
|
+
export declare const ModuleNodePropertyNames: (keyof ModuleNode)[];
|
|
10
|
+
//# sourceMappingURL=ModuleNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNode.d.ts","sourceRoot":"","sources":["../../../structure/ModuleNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,UAAU;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,EAAE,CAAC;IAGxB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,MAAM,UAAU,CAAC,EAAyC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const ModuleNodePropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'name',
|
|
6
|
+
'features',
|
|
7
|
+
'slices'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { ModuleNodePropertyNames };
|
|
11
|
+
//# sourceMappingURL=ModuleNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNode.js","sources":["../../../structure/ModuleNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { FeatureNode } from './FeatureNode';\nimport { SliceNode } from './SliceNode';\n\n/**\n * A module in the application hierarchy.\n */\nexport interface ModuleNode {\n /** The module identity, unique in the application; the first segment of every qualified id below it. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The module's top-level features, first feature first. */\n features: FeatureNode[];\n\n /** The slices that belong directly to the module, when it has any. */\n slices?: SliceNode[];\n}\n\nexport const ModuleNodePropertyNames: (keyof ModuleNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["ModuleNodePropertyNames"],"mappings":"AAAA;AACA;MAsBaA,uBAAAA,GAAgD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceKind.d.ts","sourceRoot":"","sources":["../../../structure/SliceKind.ts"],"names":[],"mappings":"AAMA,oBAAY,SAAS;IAEjB,WAAW,gBAAgB;IAG3B,SAAS,cAAc;IAGvB,UAAU,eAAe;CAC5B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* What kind of event-model slice a slice node is.
|
|
5
|
+
*/ var SliceKind = /*#__PURE__*/ function(SliceKind) {
|
|
6
|
+
/** A slice that accepts a command - user input that changes state. */ SliceKind["StateChange"] = "StateChange";
|
|
7
|
+
/** A slice that projects state into a read model for display. */ SliceKind["StateView"] = "StateView";
|
|
8
|
+
/** A slice that reacts to events without user input. */ SliceKind["Automation"] = "Automation";
|
|
9
|
+
return SliceKind;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { SliceKind };
|
|
13
|
+
//# sourceMappingURL=SliceKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceKind.js","sources":["../../../structure/SliceKind.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * What kind of event-model slice a slice node is.\n */\nexport enum SliceKind {\n /** A slice that accepts a command - user input that changes state. */\n StateChange = 'StateChange',\n\n /** A slice that projects state into a read model for display. */\n StateView = 'StateView',\n\n /** A slice that reacts to events without user input. */\n Automation = 'Automation',\n}\n"],"names":["SliceKind"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,SAAAA,iBAAAA,SAAAA,SAAAA,EAAAA;2EAC4D,SAAA,CAAA,aAAA,CAAA,GAAA,aAAA;sEAGL,SAAA,CAAA,WAAA,CAAA,GAAA,WAAA;6DAGT,SAAA,CAAA,YAAA,CAAA,GAAA,YAAA;AAP9CA,IAAAA,OAAAA,SAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceNode.d.ts","sourceRoot":"","sources":["../../../structure/SliceNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,SAAS;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const SliceNodePropertyNames = [
|
|
4
|
+
'id',
|
|
5
|
+
'name',
|
|
6
|
+
'kind'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { SliceNodePropertyNames };
|
|
10
|
+
//# sourceMappingURL=SliceNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliceNode.js","sources":["../../../structure/SliceNode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SliceKind } from './SliceKind';\n\n/**\n * A slice in the application hierarchy.\n */\nexport interface SliceNode {\n /** The slice identity, unique among the siblings of its feature or module; its qualified form is `module.feature.Slice`. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** Whether the slice is a state change, a state view or an automation. */\n kind: SliceKind;\n}\n\nexport const SliceNodePropertyNames: (keyof SliceNode)[] = ['id', 'name', 'kind'];\n"],"names":["SliceNodePropertyNames"],"mappings":"AAAA;AACA;MAkBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../structure/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structure/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
|