@cratis/chronicle 6.72.1 → 6.72.2
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/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.d.ts +51 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js +115 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.d.ts +24 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.js +34 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.js.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.d.ts +7 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.d.ts.map +1 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.js +33 -0
- package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.js.map +1 -0
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.d.ts.map +1 -1
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.js +2 -0
- package/dist/testing/projections/ProjectionArithmeticChildrenCapabilities.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts +59 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.ts +38 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.ts +36 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_a_fluent_projection.spec.ts +30 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_legacy_decorators.legacy.spec.ts +56 -0
- package/testing/for_ReadModelScenario/when_stepping_with_children/with_standard_decorators.standard.spec.ts +58 -0
- package/testing/projections/ProjectionArithmeticChildrenCapabilities.ts +1 -0
- package/testing/projections/for_ProjectionCapabilities/when_validating_add_with_children.spec.ts +1 -1
- package/testing/projections/for_ProjectionCapabilities/when_validating_count_with_children.spec.ts +3 -4
- package/testing/projections/for_ProjectionCapabilities/when_validating_steps_with_children.spec.ts +99 -0
- package/testing/projections/for_ProjectionCapabilities/when_validating_subtract_with_children.spec.ts +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { IProjectionBuilderFor } from '../../../../projections/declarative/IProjectionBuilderFor.js';
|
|
2
|
+
export type Operation = 'increment' | 'decrement';
|
|
3
|
+
export declare class Stepped {
|
|
4
|
+
readonly total: number;
|
|
5
|
+
constructor(total: number);
|
|
6
|
+
}
|
|
7
|
+
export declare class ItemChanged {
|
|
8
|
+
readonly itemId: string;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
constructor(itemId: string, name: string);
|
|
11
|
+
}
|
|
12
|
+
export declare class ItemRemoved {
|
|
13
|
+
readonly itemId: string;
|
|
14
|
+
constructor(itemId: string);
|
|
15
|
+
}
|
|
16
|
+
export declare class Removed {
|
|
17
|
+
}
|
|
18
|
+
export declare class Item {
|
|
19
|
+
itemId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export declare class Totals {
|
|
23
|
+
id: string;
|
|
24
|
+
total: number;
|
|
25
|
+
items: Item[];
|
|
26
|
+
}
|
|
27
|
+
export declare const variants: {
|
|
28
|
+
name: string;
|
|
29
|
+
operation: Operation;
|
|
30
|
+
event: typeof Stepped;
|
|
31
|
+
model: typeof Totals;
|
|
32
|
+
artifacts: {
|
|
33
|
+
readModels: (typeof Totals)[];
|
|
34
|
+
projections: {
|
|
35
|
+
new (): {
|
|
36
|
+
define(builder: IProjectionBuilderFor<Totals>): void;
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
39
|
+
eventTypes: (typeof Stepped | typeof ItemChanged | typeof ItemRemoved | typeof Removed)[];
|
|
40
|
+
globalForHandlers: never[];
|
|
41
|
+
reducers: never[];
|
|
42
|
+
reactors: never[];
|
|
43
|
+
seeders: never[];
|
|
44
|
+
constraints: never[];
|
|
45
|
+
webhooks: never[];
|
|
46
|
+
eventTypeMigrations: never[];
|
|
47
|
+
};
|
|
48
|
+
compile: () => import("../../../../projections/CompiledProjectionDefinitions.js").CompiledProjectionDefinitions;
|
|
49
|
+
}[];
|
|
50
|
+
export declare const compile: () => import("../../../../projections/CompiledProjectionDefinitions.js").CompiledProjectionDefinitions;
|
|
51
|
+
//# sourceMappingURL=compiled_projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiled_projection.d.ts","sourceRoot":"","sources":["../../../../../testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AAI1G,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;AAClD,qBACa,OAAO;IACD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACtC,YAAY,KAAK,EAAE,MAAM,EAAyB;CACrD;AACD,qBACa,WAAW;IACL,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACrC,YAAY,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAA6C;CACxF;AACD,qBACa,WAAW;IACL,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACvC,YAAY,MAAM,EAAE,MAAM,EAA2B;CACxD;AACD,qBACa,OAAO;CAAG;AACvB,qBAAa,IAAI;IACE,MAAM,EAAG,MAAM,CAAC;IAChB,IAAI,EAAG,MAAM,CAAC;CAChC;AACD,qBAAa,MAAM;IACA,EAAE,EAAG,MAAM,CAAC;IACZ,KAAK,EAAG,MAAM,CAAC;IACc,KAAK,EAAG,IAAI,EAAE,CAAC;CAC9D;AAoBD,eAAO,MAAM,QAAQ;;;;;;;;;gCAhBG,qBAAqB,CAAC,MAAM,CAAC,GAAG,IAAI;;;;;;;;;;;;;GAgBQ,CAAC;AACrE,eAAO,MAAQ,OAAO,wGAAgB,CAAC"}
|
package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
};
|
|
9
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
};
|
|
12
|
+
import { field } from '@cratis/fundamentals';
|
|
13
|
+
import { eventType } from '../../../../events/eventTypeDecorator.js';
|
|
14
|
+
import { projection } from '../../../../projections/declarative/projection.js';
|
|
15
|
+
import { ProjectionDefinitionCompiler } from '../../../../projections/ProjectionDefinitionCompiler.js';
|
|
16
|
+
let Stepped = class Stepped {
|
|
17
|
+
total;
|
|
18
|
+
constructor(total) { this.total = total; }
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
field(Number),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Stepped.prototype, "total", void 0);
|
|
24
|
+
Stepped = __decorate([
|
|
25
|
+
eventType('Stepped'),
|
|
26
|
+
__metadata("design:paramtypes", [Number])
|
|
27
|
+
], Stepped);
|
|
28
|
+
export { Stepped };
|
|
29
|
+
let ItemChanged = class ItemChanged {
|
|
30
|
+
itemId;
|
|
31
|
+
name;
|
|
32
|
+
constructor(itemId, name) { this.itemId = itemId; this.name = name; }
|
|
33
|
+
};
|
|
34
|
+
__decorate([
|
|
35
|
+
field(String),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ItemChanged.prototype, "itemId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
field(String),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ItemChanged.prototype, "name", void 0);
|
|
42
|
+
ItemChanged = __decorate([
|
|
43
|
+
eventType('ItemChanged'),
|
|
44
|
+
__metadata("design:paramtypes", [String, String])
|
|
45
|
+
], ItemChanged);
|
|
46
|
+
export { ItemChanged };
|
|
47
|
+
let ItemRemoved = class ItemRemoved {
|
|
48
|
+
itemId;
|
|
49
|
+
constructor(itemId) { this.itemId = itemId; }
|
|
50
|
+
};
|
|
51
|
+
__decorate([
|
|
52
|
+
field(String),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], ItemRemoved.prototype, "itemId", void 0);
|
|
55
|
+
ItemRemoved = __decorate([
|
|
56
|
+
eventType('ItemRemoved'),
|
|
57
|
+
__metadata("design:paramtypes", [String])
|
|
58
|
+
], ItemRemoved);
|
|
59
|
+
export { ItemRemoved };
|
|
60
|
+
let Removed = class Removed {
|
|
61
|
+
};
|
|
62
|
+
Removed = __decorate([
|
|
63
|
+
eventType('Removed')
|
|
64
|
+
], Removed);
|
|
65
|
+
export { Removed };
|
|
66
|
+
export class Item {
|
|
67
|
+
itemId;
|
|
68
|
+
name;
|
|
69
|
+
}
|
|
70
|
+
__decorate([
|
|
71
|
+
field(String),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Item.prototype, "itemId", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
field(String),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Item.prototype, "name", void 0);
|
|
78
|
+
export class Totals {
|
|
79
|
+
id;
|
|
80
|
+
total;
|
|
81
|
+
items;
|
|
82
|
+
}
|
|
83
|
+
__decorate([
|
|
84
|
+
field(String),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Totals.prototype, "id", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
field(Number),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], Totals.prototype, "total", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
field(Array, { genericArguments: [Item] }),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], Totals.prototype, "items", void 0);
|
|
95
|
+
function variant(operation) {
|
|
96
|
+
class TotalsProjection {
|
|
97
|
+
define(builder) {
|
|
98
|
+
builder.from(Stepped, from => from[operation](model => model.total))
|
|
99
|
+
.children(model => model.items, child => child.identifiedBy(item => item.itemId)
|
|
100
|
+
.from(ItemChanged, from => from.usingKey(value => value.itemId))
|
|
101
|
+
.removedWith(ItemRemoved, removal => removal.usingKey(value => value.itemId)))
|
|
102
|
+
.removedWith(Removed);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const name = `${operation}-children-fluent`;
|
|
106
|
+
projection(name, Totals)(TotalsProjection);
|
|
107
|
+
const artifacts = {
|
|
108
|
+
readModels: [Totals], projections: [TotalsProjection], eventTypes: [Stepped, ItemChanged, ItemRemoved, Removed],
|
|
109
|
+
globalForHandlers: [], reducers: [], reactors: [], seeders: [], constraints: [], webhooks: [], eventTypeMigrations: []
|
|
110
|
+
};
|
|
111
|
+
return { name, operation, event: Stepped, model: Totals, artifacts, compile: () => new ProjectionDefinitionCompiler(artifacts, 'test').compile([TotalsProjection], []) };
|
|
112
|
+
}
|
|
113
|
+
export const variants = [variant('increment'), variant('decrement')];
|
|
114
|
+
export const { compile } = variants[0];
|
|
115
|
+
//# sourceMappingURL=compiled_projection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiled_projection.js","sourceRoot":"","sources":["../../../../../testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;;;;;;;;;;AAErG,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AAIhG,IAAM,OAAO,GAAb,MAAM,OAAO;IACQ,KAAK,CAAS;IACtC,YAAY,KAAa,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;CACrD,CAAA;AAF2B;IAAvB,KAAK,CAAC,MAAM,CAAC;;sCAAwB;AAD7B,OAAO;IADnB,SAAS,CAAC,SAAS,CAAC;;GACR,OAAO,CAGnB;;AAEM,IAAM,WAAW,GAAjB,MAAM,WAAW;IACI,MAAM,CAAS;IACf,IAAI,CAAS;IACrC,YAAY,MAAc,EAAE,IAAY,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;CACxF,CAAA;AAH2B;IAAvB,KAAK,CAAC,MAAM,CAAC;;2CAAyB;AACf;IAAvB,KAAK,CAAC,MAAM,CAAC;;yCAAuB;AAF5B,WAAW;IADvB,SAAS,CAAC,aAAa,CAAC;;GACZ,WAAW,CAIvB;;AAEM,IAAM,WAAW,GAAjB,MAAM,WAAW;IACI,MAAM,CAAS;IACvC,YAAY,MAAc,IAAI,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;CACxD,CAAA;AAF2B;IAAvB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string;
|
|
7
|
+
name: string;
|
|
8
|
+
}>;
|
|
9
|
+
};
|
|
10
|
+
export declare function history(step?: (total: number) => object): {
|
|
11
|
+
source: string;
|
|
12
|
+
event: object;
|
|
13
|
+
}[];
|
|
14
|
+
export declare function lifecycle<T extends SteppedParent>(scenario: ReadModelScenario<T>): Promise<{
|
|
15
|
+
first: T;
|
|
16
|
+
other: T;
|
|
17
|
+
remaining: T;
|
|
18
|
+
removed: T | null;
|
|
19
|
+
surviving: T;
|
|
20
|
+
recreated: T;
|
|
21
|
+
repeated: T;
|
|
22
|
+
}>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=lifecycle.d.ts.map
|
package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../../testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,KAAK,aAAa,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC;AAEnG,wBAAgB,OAAO,CAAC,IAAI,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAoC;;;IAUpF;AAED,wBAAsB,SAAS,CAAC,CAAC,SAAS,aAAa,EAAE,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC;;;;;;;;GAiBtF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
import { Stepped, ItemChanged, ItemRemoved, Removed } from './compiled_projection.js';
|
|
4
|
+
export function history(step = total => new Stepped(total)) {
|
|
5
|
+
return [
|
|
6
|
+
{ source: 'A', event: step(2.5) }, { source: 'A', event: step(-1) },
|
|
7
|
+
{ source: 'A', event: new ItemChanged('one', 'first') }, { source: 'A', event: new ItemChanged('two', 'second') },
|
|
8
|
+
{ source: 'A', event: new ItemChanged('one', 'updated') }, { source: 'A', event: step(0) },
|
|
9
|
+
{ source: 'B', event: step(8) }, { source: 'B', event: new ItemChanged('one', 'independent') },
|
|
10
|
+
{ source: 'A', event: new ItemRemoved('one') }, { source: 'A', event: new ItemRemoved('unknown') },
|
|
11
|
+
{ source: 'A', event: new Removed() }, { source: 'A', event: step(4.5) },
|
|
12
|
+
{ source: 'A', event: new ItemChanged('new', 'recreated') }
|
|
13
|
+
];
|
|
14
|
+
}
|
|
15
|
+
export async function lifecycle(scenario) {
|
|
16
|
+
const events = history();
|
|
17
|
+
const seed = (start, end) => {
|
|
18
|
+
for (const { source, event } of events.slice(start, end))
|
|
19
|
+
scenario.given.forEventSource(source).events(event);
|
|
20
|
+
};
|
|
21
|
+
seed(0, 8);
|
|
22
|
+
const first = (await scenario.instanceForEventSourceId('A'));
|
|
23
|
+
const other = (await scenario.instanceForEventSourceId('B'));
|
|
24
|
+
seed(8, 10);
|
|
25
|
+
const remaining = (await scenario.instanceForEventSourceId('A'));
|
|
26
|
+
seed(10, 11);
|
|
27
|
+
const removed = await scenario.instanceForEventSourceId('A');
|
|
28
|
+
const surviving = (await scenario.instanceForEventSourceId('B'));
|
|
29
|
+
seed(11, 13);
|
|
30
|
+
const recreated = (await scenario.instanceForEventSourceId('A'));
|
|
31
|
+
const repeated = (await scenario.instanceForEventSourceId('A'));
|
|
32
|
+
return { first, other, remaining, removed, surviving, recreated, repeated };
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lifecycle.js","sourceRoot":"","sources":["../../../../../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AwB,CAAC,GAAG,CAAC,CAAE,CAAC;IAClE,MAAM,QAAQ,GAAG,CAAC,MAAM,QAAQ,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAE,CAAC;IACjE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC;AAChF,CAAC"}
|
package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle_input.d.ts","sourceRoot":"","sources":["../../../../../testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAMxD,wBAAgB,iBAAiB,CAAC,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,OAAO,CAAA;CAAE,QAsB5H"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import { JsonSerializer } from '@cratis/fundamentals';
|
|
5
|
+
import { chai } from 'vitest';
|
|
6
|
+
import { getEventTypeMetadata } from '../../../../events/eventTypeDecorator.js';
|
|
7
|
+
import { history } from './lifecycle.js';
|
|
8
|
+
chai.should();
|
|
9
|
+
function should(value) { return value.should; }
|
|
10
|
+
export function assertOracleInput(candidate) {
|
|
11
|
+
const fixture = JSON.parse(readFileSync(new URL(`../../../projections/fixtures/${candidate.name}.json`, import.meta.url), 'utf8'));
|
|
12
|
+
const compiled = candidate.compile();
|
|
13
|
+
const { LastUpdated, ...wire } = compiled.definitions[0];
|
|
14
|
+
should(LastUpdated).deep.equal(fixture.compilerLastUpdated);
|
|
15
|
+
should(JSON.parse(JSON.stringify({ ...wire, NoAutoMapProperties: Object.hasOwn(wire, 'NoAutoMapProperties') ? wire.NoAutoMapProperties : [] }))).deep.equal(fixture.wireDefinition);
|
|
16
|
+
should(JSON.parse(compiled.readModels[0].Schema)).deep.equal(fixture.readModel.schema);
|
|
17
|
+
const schemas = [...compiled.eventSchemas.get(compiled.definitions[0]).values()].map(entry => {
|
|
18
|
+
should(entry.eventType.Tombstone).be.false;
|
|
19
|
+
const { Tombstone: _falseFlag, ...eventType } = entry.eventType;
|
|
20
|
+
return { ...entry, eventType };
|
|
21
|
+
});
|
|
22
|
+
should(schemas).deep.equal(fixture.eventSchemas);
|
|
23
|
+
const events = history(amount => new candidate.event(amount));
|
|
24
|
+
should(events.length).equal(fixture.events.length);
|
|
25
|
+
events.forEach(({ source, event }, index) => {
|
|
26
|
+
const captured = fixture.events[index];
|
|
27
|
+
const type = getEventTypeMetadata(event.constructor).eventType;
|
|
28
|
+
should(captured.context.eventType).deep.equal({ Id: type.id.value, Generation: type.generation.value });
|
|
29
|
+
should(captured.context.eventSourceId).equal(source);
|
|
30
|
+
should(captured.content).deep.equal(JSON.parse(JsonSerializer.serialize(event)));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=oracle_input.js.map
|
package/dist/testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oracle_input.js","sourceRoot":"","sources":["../../../../../testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAkB,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,o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AI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionArithmeticChildrenCapabilities.d.ts","sourceRoot":"","sources":["../../../testing/projections/ProjectionArithmeticChildrenCapabilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,wFAAwF;AACxF,qBAAa,wCAAwC;IACjD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,6BAA6B,CAAC,SAAS,CAAC,GAAG,OAAO,CAY7H;IAED,OAAO,CAAC,MAAM,CAAC,WAAW;
|
|
1
|
+
{"version":3,"file":"ProjectionArithmeticChildrenCapabilities.d.ts","sourceRoot":"","sources":["../../../testing/projections/ProjectionArithmeticChildrenCapabilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAExF,wFAAwF;AACxF,qBAAa,wCAAwC;IACjD,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,6BAA6B,CAAC,SAAS,CAAC,GAAG,OAAO,CAY7H;IAED,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAIhC,OAAO,CAAC,MAAM,CAAC,SAAS;IAMxB,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,WAAW;IAI1B,OAAO,CAAC,MAAM,CAAC,UAAU;IAKzB,OAAO,CAAC,MAAM,CAAC,WAAW;IAM1B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAShC,OAAO,CAAC,MAAM,CAAC,cAAc;CAIhC"}
|
|
@@ -22,6 +22,8 @@ export class ProjectionArithmeticChildrenCapabilities {
|
|
|
22
22
|
static accumulator(target, expression, from, require) {
|
|
23
23
|
if (expression === '$count')
|
|
24
24
|
return this.countTarget(target);
|
|
25
|
+
if (expression === '$increment' || expression === '$decrement')
|
|
26
|
+
return this.unformattedNumber(target);
|
|
25
27
|
const operand = /^\$(?:add|subtract)\(([A-Za-z_][A-Za-z0-9]*)\)$/.exec(expression)?.[1];
|
|
26
28
|
if (!operand || !this.unformattedNumber(target))
|
|
27
29
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionArithmeticChildrenCapabilities.js","sourceRoot":"","sources":["../../../testing/projections/ProjectionArithmeticChildrenCapabilities.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAKrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAG3E,wFAAwF;AACxF,MAAM,OAAO,wCAAwC;IACjD,MAAM,CAAC,QAAQ,CAAC,MAAkB,EAAE,IAA6B,EAAE,OAAiD;QAChH,MAAM,IAAI,GAAG,IAAI,CAAC,IAAoB,IAAI,EAAE,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAA8C,IAAI,EAAE,CAAC,CAAC;QAC3F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,C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AG,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,IAA6B;QACvD,OAAO,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,IAAI;eACzC,CAAC,IAAI,CAAC,IAAiB,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACvD,CAAC;CACJ"}
|
|
1
|
+
{"version":3,"file":"ProjectionArithmeticChildrenCapabilities.js","sourceRoot":"","sources":["../../../testing/projections/ProjectionArithmeticChildrenCapabilities.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAKrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAG3E,wFAAwF;AACxF,MAAM,OAAO,wCAAwC;IACjD,MAAM,CAAC,QAAQ,CAAC,MAAkB,EAAE,IAA6B,EAAE,OAAiD;QAChH,MAAM,IAAI,GAAG,IAAI,CAAC,IAAoB,IAAI,EAAE,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAA8C,IAAI,EAAE,CAAC,CAAC;QAC3F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QAChE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACxC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CA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AAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACvD,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../EventStoreNamespaceResolver.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendMetricsContext.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyScopeStrategies.ts","../eventSequences/ConcurrencyScopeStrategy.ts","../eventSequences/ConcurrencyScopeStrategyContext.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/planConcurrencyScopeStrategies.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveConcurrencyScope.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../externalServices/for_ExternalServices/given/an_external_service_registration.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/RuntimeProjectionDefinitions.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/AsyncQueue.ts","../reactors/IReactorBuilder.ts","../reactors/IReactorDefinition.ts","../reactors/IReactorDefinitionBuilder.ts","../reactors/IReactors.ts","../reactors/ReactorBuilder.ts","../reactors/ReactorCallback.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorEvent.ts","../reactors/ReactorId.ts","../reactors/ReactorObservation.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorRegistration.ts","../reactors/ReactorRegistrationKind.ts","../reactors/ReactorRegistrations.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/ReactorSubscription.ts","../reactors/Reactors.ts","../reactors/WaitTillSubscribedOptions.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/prepareReactor.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/waitTillSubscribed.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintKey.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/EventTypeConstraintClaims.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/KernelTextHash.ts","../testing/MeasuredCaseFolding.ts","../testing/MeasuredConstraintKeys.ts","../testing/PropertyConstraintClaims.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/for_ReadModelScenario/when_adding_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_adding_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_counting_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_counting_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionArithmeticChildrenCapabilities.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts","../webhooks/for_Webhooks/given/a_webhook_registration.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["../ArtifactRegistrationResult.ts","../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../EventStoreNamespaceResolver.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../WellKnownTelemetryNames.ts","../index.ts","../artifacts/ActivatedArtifact.ts","../artifacts/ArtifactActivationContext.ts","../artifacts/ArtifactCompletionFailed.ts","../artifacts/ArtifactDelivery.ts","../artifacts/ArtifactInvocationContext.ts","../artifacts/ArtifactKind.ts","../artifacts/ArtifactRegistrationAttempt.ts","../artifacts/ClientArtifactsActivator.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/refuseClientHostedObservers.ts","../artifacts/validateArtifactSchemas.ts","../artifacts/withActivatedArtifact.ts","../auditing/Causation.ts","../auditing/CausationManager.ts","../auditing/CausationType.ts","../auditing/ICausationManager.ts","../auditing/index.ts","../compliance/ComplianceContracts.ts","../compliance/ComplianceMetadata.ts","../compliance/ComplianceMetadataResolver.ts","../compliance/ComplianceMetadataType.ts","../compliance/IPIIManager.ts","../compliance/PIIManager.ts","../compliance/PIINotSupportedOnEventSourceId.ts","../compliance/index.ts","../compliance/pii.ts","../compliance/resolveEventSubject.ts","../compliance/subject.ts","../confidentiality/EncryptedNotSupportedOnEventSourceId.ts","../confidentiality/EncryptionScope.ts","../confidentiality/PIIAndEncryptedCombinedNotSupported.ts","../confidentiality/SecurityMetadata.ts","../confidentiality/SecurityMetadataResolver.ts","../confidentiality/SecurityMetadataType.ts","../confidentiality/encrypted.ts","../confidentiality/index.ts","../connection/ChronicleConnection.ts","../connection/ChronicleConnectionString.ts","../connection/ChronicleServerAddressResolver.ts","../connection/ChronicleServices.ts","../connection/ChronicleSrvResolutionError.ts","../connection/ChronicleSrvResolver.ts","../connection/ChronicleTlsMaterial.ts","../connection/ClientObserversRequireKeepAlive.ts","../connection/CompatibilityPreflight.ts","../connection/ConnectionLifecycle.ts","../connection/DateTimeOffset.ts","../connection/Guid.ts","../connection/ILoadBalancerStrategy.ts","../connection/IncompatibleChronicleServer.ts","../connection/KernelKeepAlive.ts","../connection/LeastConnectionsLoadBalancerStrategy.ts","../connection/LoadBalancerMode.ts","../connection/LoadBalancerStrategyFactory.ts","../connection/RandomLoadBalancerStrategy.ts","../connection/RejectedChronicleCredentials.ts","../connection/RoundRobinLoadBalancerStrategy.ts","../connection/TokenProvider.ts","../connection/TraceContextMiddleware.ts","../connection/callResults.ts","../connection/clientVersion.ts","../connection/encodeExplicitFalse.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../connection/for_encodeExplicitFalse/wireFields.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendMetricsContext.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompensateOptions.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyScopeStrategies.ts","../eventSequences/ConcurrencyScopeStrategy.ts","../eventSequences/ConcurrencyScopeStrategyContext.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.ts","../eventSequences/EventEnrichmentContext.ts","../eventSequences/EventEnrichmentProvider.ts","../eventSequences/EventForEventSourceId.ts","../eventSequences/EventLog.ts","../eventSequences/EventSequence.ts","../eventSequences/EventSequenceId.ts","../eventSequences/EventSequenceNumber.ts","../eventSequences/IEventLog.ts","../eventSequences/IEventSequence.ts","../eventSequences/ITransactionalEventSequence.ts","../eventSequences/NamedTagsWithRegisteredEventSourceNotSupported.ts","../eventSequences/PreparedBatchAppend.ts","../eventSequences/PreparedSingleAppend.ts","../eventSequences/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/WireBatchEvent.ts","../eventSequences/createAppendNotification.ts","../eventSequences/createAppendResult.ts","../eventSequences/enrichEventContent.ts","../eventSequences/ensureNamedTagBatchIsSupported.ts","../eventSequences/index.ts","../eventSequences/planConcurrencyScopeStrategies.ts","../eventSequences/prepareBatchAppend.ts","../eventSequences/prepareSingleAppend.ts","../eventSequences/resolveConcurrencyScope.ts","../eventSequences/resolveEventSourceRouting.ts","../eventSequences/toContractsCausation.ts","../eventSources/ConcurrencyDimensions.ts","../eventSources/DuplicateEventSourceName.ts","../eventSources/DuplicateEventStreamName.ts","../eventSources/EventRoutingContradictsEventSource.ts","../eventSources/EventSourceDefinition.ts","../eventSources/EventSources.ts","../eventSources/EventStreamDefinition.ts","../eventSources/EventStreamDoesNotBelongToEventSource.ts","../eventSources/EventStreamRequiresEventSource.ts","../eventSources/IEventSources.ts","../eventSources/ResolvedEventRouting.ts","../eventSources/UnknownEventSource.ts","../eventSources/eventSource.ts","../eventSources/index.ts","../eventStoreSubscriptions/EventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/EventStoreSubscriptionDefinition.ts","../eventStoreSubscriptions/EventStoreSubscriptionId.ts","../eventStoreSubscriptions/EventStoreSubscriptions.ts","../eventStoreSubscriptions/IEventStoreSubscriptionBuilder.ts","../eventStoreSubscriptions/IEventStoreSubscriptions.ts","../eventStoreSubscriptions/contracts.ts","../eventStoreSubscriptions/index.ts","../events/AppendedEvent.ts","../events/CausationEntry.ts","../events/EventContext.ts","../events/EventType.ts","../events/EventTypeGeneration.ts","../events/EventTypeId.ts","../events/EventTypes.ts","../events/IEventTypes.ts","../events/InvalidNamedTag.ts","../events/NamedTag.ts","../events/Tag.ts","../events/WireEventContext.ts","../events/compensationForDecorator.ts","../events/eventSourceTypeDecorator.ts","../events/eventStreamTypeDecorator.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/handles.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeNamedTags.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.ts","../events/constraints/ConstraintEventSequences.ts","../events/constraints/ConstraintId.ts","../events/constraints/Constraints.ts","../events/constraints/IConstraint.ts","../events/constraints/IConstraintBuilder.ts","../events/constraints/IConstraints.ts","../events/constraints/IUniqueConstraintBuilder.ts","../events/constraints/UniqueConstraintBuilder.ts","../events/constraints/UniqueOptions.ts","../events/constraints/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.ts","../events/constraints/for_Constraints/when_scoping_to_event_sequences/given/registered_constraints.ts","../events/migrations/EventMigrationBuilder.ts","../events/migrations/EventMigrationPropertyBuilder.ts","../events/migrations/EventTypeMigrators.ts","../events/migrations/IEventMigrationBuilder.ts","../events/migrations/IEventMigrationPropertyBuilder.ts","../events/migrations/IEventTypeMigration.ts","../events/migrations/IEventTypeMigrators.ts","../events/migrations/InvalidMigrationGenerationGap.ts","../events/migrations/eventTypeMigration.ts","../events/migrations/index.ts","../externalServices/ExternalServiceBuilder.ts","../externalServices/ExternalServices.ts","../externalServices/IExternalServiceBuilder.ts","../externalServices/IExternalServices.ts","../externalServices/index.ts","../externalServices/for_ExternalServices/given/an_external_service_registration.ts","../for_ChronicleClient/when_skipping_keep_alive/native-exit-probe.ts","../for_EventStore/when_inspecting_registration/given/an_event_store.ts","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../imports/EventImport.ts","../imports/EventImportSettings.ts","../imports/IEventImport.ts","../imports/ImportChunkRefused.ts","../imports/ImportCouldNotBegin.ts","../imports/ImportOptions.ts","../imports/ImportProgress.ts","../imports/ImportRejection.ts","../imports/ImportResult.ts","../imports/ImportState.ts","../imports/ImportTarget.ts","../imports/ImportWasAbandoned.ts","../imports/ImportsNotSupported.ts","../imports/OnInvalidEvent.ts","../imports/abortable.ts","../imports/beginEventImport.ts","../imports/importEvents.ts","../imports/index.ts","../imports/isTransientImportFailure.ts","../imports/sizeOfImportEvent.ts","../imports/toImportEvent.ts","../imports/toImportProgress.ts","../imports/toImportResult.ts","../imports/for_EventImport/given/a_kernel_import_session.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../logging/ChronicleLogEntry.ts","../logging/ChronicleLogLevel.ts","../logging/DiagChronicleLogger.ts","../logging/IChronicleLogger.ts","../logging/createLogger.ts","../observation/EventHandler.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/FastForwardOutcome.ts","../observation/FastForwardResult.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObservationReconnectBackoff.ts","../observation/ObservationStreamOutcome.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/classifyStreamError.ts","../observation/createHandlerInstanceValidator.ts","../observation/getEventHandlers.ts","../observation/getInstanceMethods.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toFastForwardResult.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../observation/batches/BatchContext.ts","../observation/batches/BatchContextObserver.ts","../observation/batches/BatchContextValues.ts","../observation/batches/BatchMethod.ts","../observation/batches/BatchMethodReturnedAValue.ts","../observation/batches/BatchMethods.ts","../observation/batches/BatchOutcome.ts","../observation/batches/BatchOutcomeKind.ts","../observation/batches/DeferralNotSupportedByKernel.ts","../observation/batches/DeliveredPartition.ts","../observation/batches/EventAndContext.ts","../observation/batches/EventBatch.ts","../observation/batches/EventTypeObservedByMoreThanOneMethod.ts","../observation/batches/InvalidBatchMethod.ts","../observation/batches/ObservationOrigin.ts","../observation/batches/ObservedEventType.ts","../observation/batches/PageMessages.ts","../observation/batches/PartitionFailedInBatch.ts","../observation/batches/PartitionNotInBatch.ts","../observation/batches/PartitionOutcome.ts","../observation/batches/PartitionProblem.ts","../observation/batches/PartitionSettlement.ts","../observation/batches/ReducerMixesBatchAndPerEventMethods.ts","../observation/batches/batchSize.ts","../observation/batches/createBatchContext.ts","../observation/batches/observes.ts","../observation/batches/runConcurrently.ts","../observation/for_ObservationReconnectBackoff/given/a_backoff.ts","../observation/for_ObservationReconnectBackoff/given/a_scripted_stream.ts","../patterns/BehaviorPattern.ts","../patterns/DayOfWeek.ts","../patterns/FacetName.ts","../patterns/FacetSet.ts","../patterns/IPatterns.ts","../patterns/PatternMoment.ts","../patterns/PatternQueryOptions.ts","../patterns/Patterns.ts","../patterns/PatternsAtOptions.ts","../patterns/TimeBucket.ts","../patterns/index.ts","../patterns/toBehaviorPattern.ts","../patterns/toDayOfWeek.ts","../patterns/toOffsetDate.ts","../patterns/toTimeBucket.ts","../projections/ChildrenOrderingNotSupportedByContracts.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/InvalidCausedByProperty.ts","../projections/InvalidEventContextPropertyError.ts","../projections/ProjectionCapabilityProvenance.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionEventSchema.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/RuntimeProjectionDefinitions.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/captureProjectionProvenance.ts","../projections/causedBy.ts","../projections/childrenOrdering.ts","../projections/childrenOrderingSupport.ts","../projections/constantValueExpression.ts","../projections/eventContextPropertyExpression.ts","../projections/eventContractPath.ts","../projections/index.ts","../projections/invalidEventContextPropertyInProjection.ts","../projections/notSetPropertyPath.ts","../projections/propertyExpressions.ts","../projections/registerProjectionWithRetry.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/ChildrenOrderingAlreadyDefined.ts","../projections/declarative/CompositeKeyBuilder.ts","../projections/declarative/DictionaryKey.ts","../projections/declarative/FromAllBuilder.ts","../projections/declarative/FromBuilder.ts","../projections/declarative/FromEveryBuilder.ts","../projections/declarative/IAddBuilder.ts","../projections/declarative/IAddChildBuilder.ts","../projections/declarative/IAllSetBuilder.ts","../projections/declarative/IChildrenBuilder.ts","../projections/declarative/ICompositeKeyBuilder.ts","../projections/declarative/ICompositeKeySetBuilder.ts","../projections/declarative/IFromAllBuilder.ts","../projections/declarative/IFromBuilder.ts","../projections/declarative/IFromEveryBuilder.ts","../projections/declarative/IJoinBuilder.ts","../projections/declarative/INestedBuilder.ts","../projections/declarative/IProjectionBuilder.ts","../projections/declarative/IProjectionBuilderFor.ts","../projections/declarative/IProjectionFor.ts","../projections/declarative/IReadModelPropertiesBuilder.ts","../projections/declarative/IRemovedWithBuilder.ts","../projections/declarative/IRemovedWithJoinBuilder.ts","../projections/declarative/ISetBuilder.ts","../projections/declarative/ISubtractBuilder.ts","../projections/declarative/InvalidDictionaryKey.ts","../projections/declarative/JoinBuilder.ts","../projections/declarative/NestedBuilder.ts","../projections/declarative/ProjectionBuilderCore.ts","../projections/declarative/ProjectionBuilderFor.ts","../projections/declarative/RemovedWithBuilder.ts","../projections/declarative/RemovedWithJoinBuilder.ts","../projections/declarative/SetBuilder.ts","../projections/declarative/SubtractBuilder.ts","../projections/declarative/index.ts","../projections/declarative/projection.ts","../projections/declarative/projectionBuilderProvenance.ts","../projections/for_Graphs/given/a_discovered_graph.ts","../projections/for_Graphs/given/a_fake_connection.ts","../projections/for_Graphs/given/a_graph_with_views.ts","../projections/for_Graphs/given/organization.ts","../projections/for_ProjectionDefinitionCompiler/given/compile_model_bound.ts","../projections/graphs/EdgeCanHaveOnlyOneIdentifyingKey.ts","../projections/graphs/EdgeMustHaveOneSourceAndOneTarget.ts","../projections/graphs/GraphDeclaredMoreThanOnce.ts","../projections/graphs/GraphDefinitionBuilder.ts","../projections/graphs/GraphEdgeBuilder.ts","../projections/graphs/GraphEdgeFromBuilder.ts","../projections/graphs/GraphEdgeFromModel.ts","../projections/graphs/GraphEdgeModel.ts","../projections/graphs/GraphEdgeRemovedWithBuilder.ts","../projections/graphs/GraphEdgeRemovedWithModel.ts","../projections/graphs/GraphElementCannotBeReadModel.ts","../projections/graphs/GraphHasDuplicateElement.ts","../projections/graphs/GraphKeyPropertyNotFound.ts","../projections/graphs/GraphMappingBuilder.ts","../projections/graphs/GraphMemberMappings.ts","../projections/graphs/GraphModel.ts","../projections/graphs/GraphNameRequired.ts","../projections/graphs/GraphNodeBuilder.ts","../projections/graphs/GraphNodeFromBuilder.ts","../projections/graphs/GraphNodeFromModel.ts","../projections/graphs/GraphNodeModel.ts","../projections/graphs/GraphNodeRemovedWithBuilder.ts","../projections/graphs/GraphNodeRemovedWithModel.ts","../projections/graphs/GraphProjectionBuilder.ts","../projections/graphs/GraphRegistration.ts","../projections/graphs/GraphSchemaWriter.ts","../projections/graphs/Graphs.ts","../projections/graphs/IGraphEdgeBuilder.ts","../projections/graphs/IGraphEdgeFromBuilder.ts","../projections/graphs/IGraphEdgeRemovedWithBuilder.ts","../projections/graphs/IGraphMappingBuilder.ts","../projections/graphs/IGraphNodeBuilder.ts","../projections/graphs/IGraphNodeFromBuilder.ts","../projections/graphs/IGraphNodeRemovedWithBuilder.ts","../projections/graphs/IGraphProjection.ts","../projections/graphs/IGraphProjectionBuilder.ts","../projections/graphs/IGraphs.ts","../projections/graphs/ModelBoundGraphReader.ts","../projections/graphs/NestedObjectInGraph.ts","../projections/graphs/NodeMustHaveExactlyOneKey.ts","../projections/graphs/SetOnceNotSupportedInGraph.ts","../projections/graphs/UnknownGraphEventProperty.ts","../projections/graphs/UnknownGraphNode.ts","../projections/graphs/edge.ts","../projections/graphs/edgeFrom.ts","../projections/graphs/edgeRemovedWith.ts","../projections/graphs/edgeSource.ts","../projections/graphs/edgeTarget.ts","../projections/graphs/graph.ts","../projections/graphs/graphKey.ts","../projections/graphs/graphProjection.ts","../projections/graphs/index.ts","../projections/graphs/isGraphElement.ts","../projections/graphs/node.ts","../projections/graphs/nodeFrom.ts","../projections/graphs/nodeRemovedWith.ts","../projections/graphs/propertyPathOf.ts","../projections/graphs/views/AmbiguousDirection.ts","../projections/graphs/views/DuplicateViewName.ts","../projections/graphs/views/EdgeNotIncidentOnRoot.ts","../projections/graphs/views/EdgePropertyViewNotUsedAsTarget.ts","../projections/graphs/views/EdgePropertyViewSharedAcrossEdges.ts","../projections/graphs/views/FollowsOptions.ts","../projections/graphs/views/GraphEdgeDirection.ts","../projections/graphs/views/GraphView.ts","../projections/graphs/views/GraphViewBuildResult.ts","../projections/graphs/views/GraphViewCardinality.ts","../projections/graphs/views/GraphViewDefinition.ts","../projections/graphs/views/GraphViewDefinitionBuilder.ts","../projections/graphs/views/GraphViewDefinitionSerializer.ts","../projections/graphs/views/GraphViewEdgeReference.ts","../projections/graphs/views/GraphViewMember.ts","../projections/graphs/views/GraphViewMemberKind.ts","../projections/graphs/views/GraphViewMemberMetadata.ts","../projections/graphs/views/GraphViewPropertyMember.ts","../projections/graphs/views/GraphViewReason.ts","../projections/graphs/views/GraphViewRelationMember.ts","../projections/graphs/views/GraphViewSchema.ts","../projections/graphs/views/GraphViewSchemaEdge.ts","../projections/graphs/views/GraphViewSchemaNode.ts","../projections/graphs/views/GraphViewSerializerOptions.ts","../projections/graphs/views/RecursiveView.ts","../projections/graphs/views/RelationTargetNotAView.ts","../projections/graphs/views/TargetLabelMismatch.ts","../projections/graphs/views/UnknownEdge.ts","../projections/graphs/views/UnknownEdgeProperty.ts","../projections/graphs/views/UnknownNodeProperty.ts","../projections/graphs/views/ViewIsAlsoSchema.ts","../projections/graphs/views/ViewOfMetadata.ts","../projections/graphs/views/ViewOfOptions.ts","../projections/graphs/views/ViewRootNotANode.ts","../projections/graphs/views/declareGraphViewMember.ts","../projections/graphs/views/follows.ts","../projections/graphs/views/fromEdge.ts","../projections/graphs/views/index.ts","../projections/graphs/views/viewKey.ts","../projections/graphs/views/viewOf.ts","../projections/graphs/views/viewProperty.ts","../projections/modelBound/ConflictingChildrenOrdering.ts","../projections/modelBound/FromAllEventsMetadata.ts","../projections/modelBound/FromEventMetadata.ts","../projections/modelBound/FromEventOptions.ts","../projections/modelBound/addFrom.ts","../projections/modelBound/childrenAndNestedBuilder.ts","../projections/modelBound/childrenFrom.ts","../projections/modelBound/clearWith.ts","../projections/modelBound/count.ts","../projections/modelBound/decrement.ts","../projections/modelBound/entersOn.ts","../projections/modelBound/eventSequence.ts","../projections/modelBound/fromAll.ts","../projections/modelBound/fromAllEvents.ts","../projections/modelBound/fromEvent.ts","../projections/modelBound/fromEvery.ts","../projections/modelBound/globalFor.ts","../projections/modelBound/increment.ts","../projections/modelBound/index.ts","../projections/modelBound/isModelBoundProjection.ts","../projections/modelBound/join.ts","../projections/modelBound/nested.ts","../projections/modelBound/noAutoMap.ts","../projections/modelBound/notRewindable.ts","../projections/modelBound/passive.ts","../projections/modelBound/removedWith.ts","../projections/modelBound/removedWithJoin.ts","../projections/modelBound/setFrom.ts","../projections/modelBound/setFromContext.ts","../projections/modelBound/setValue.ts","../projections/modelBound/subtractFrom.ts","../projections/modelBound/variantOf.ts","../reactors/AsyncQueue.ts","../reactors/IReactorBuilder.ts","../reactors/IReactorDefinition.ts","../reactors/IReactorDefinitionBuilder.ts","../reactors/IReactors.ts","../reactors/ReactorBuilder.ts","../reactors/ReactorCallback.ts","../reactors/ReactorDelivery.ts","../reactors/ReactorDispatcher.ts","../reactors/ReactorEvent.ts","../reactors/ReactorId.ts","../reactors/ReactorObservation.ts","../reactors/ReactorObservationTarget.ts","../reactors/ReactorPageDispatcher.ts","../reactors/ReactorRegistration.ts","../reactors/ReactorRegistrationKind.ts","../reactors/ReactorRegistrations.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorServices.ts","../reactors/ReactorSideEffects.ts","../reactors/ReactorSubscription.ts","../reactors/Reactors.ts","../reactors/WaitTillSubscribedOptions.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/prepareReactor.ts","../reactors/reactor.ts","../reactors/replay.ts","../reactors/startAtTail.ts","../reactors/waitTillSubscribed.ts","../reactors/for_Reactors/given/deliver_to_reactor.ts","../reactors/for_Reactors/given/observe_reactor_messages.ts","../reactors/for_Reactors/when_reconnecting_the_observation_stream/given/a_reactor_whose_stream_ends.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModelWatcher.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeContext.ts","../readModels/ReadModelChangeType.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelNamingPolicy.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.ts","../readModels/ReadModelWatchOptions.ts","../readModels/ReadModelWatcher.ts","../readModels/ReadModels.ts","../readModels/assertUniqueReadModelIds.ts","../readModels/buildReadModelDefinition.ts","../readModels/deserializeReadModel.ts","../readModels/index.ts","../readModels/indexDecorator.ts","../readModels/readModel.ts","../readModels/rootReadModelTypes.ts","../readModels/for_ReadModelNamingPolicy/given/registered_read_models.ts","../readModels/for_ReadModelWatcher/given/a_kernel_stream.ts","../readModels/for_ReadModelWatcher/given/a_watched_read_model.ts","../readModels/for_ReadModels/given/Book.ts","../readModels/for_ReadModels/given/BookBorrowed.ts","../readModels/for_ReadModels/given/BookRegistered.ts","../readModels/for_ReadModels/given/BookReturned.ts","../readModels/for_ReadModels/given/a_stored_read_model.ts","../readModels/for_deserializeReadModel/given/Address.ts","../readModels/for_deserializeReadModel/given/a_read_model_with_defaults.ts","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/ReducerObservation.ts","../reducers/ReducerObservationSession.ts","../reducers/Reducers.ts","../reducers/ReductionOutcome.ts","../reducers/index.ts","../reducers/reducer.ts","../reducers/for_Reducers/given/observe_reducer_messages.ts","../reducers/for_Reducers/when_reconnecting_the_observation_stream/given/a_reducer_whose_stream_ends.ts","../schemas/JsonSchema.ts","../schemas/JsonSchemaGenerator.ts","../schemas/createDeferredSchema.ts","../schemas/index.ts","../schemas/jsonSchemaProperty.ts","../seeding/EventSeeding.ts","../seeding/ICanSeedEvents.ts","../seeding/IEventSeeding.ts","../seeding/IEventSeedingBuilder.ts","../seeding/IEventSeedingScopeBuilder.ts","../seeding/index.ts","../seeding/seeder.ts","../sinks/WellKnownSinks.ts","../sinks/index.ts","../telemetry/ChronicleTelemetryOptions.ts","../telemetry/observeOperation.ts","../telemetry/runInBackgroundContext.ts","../telemetry/spanAttributes.ts","../testing/BatchPartitionOutcome.ts","../testing/ConstraintKey.ts","../testing/ConstraintScope.ts","../testing/EventFieldSchema.ts","../testing/EventScenario.ts","../testing/EventScenarioGiven.ts","../testing/EventScenarioGivenBuilder.ts","../testing/EventScenarioOptions.ts","../testing/EventScenarioSeed.ts","../testing/EventScenarioWhen.ts","../testing/EventScenarioWhenBuilder.ts","../testing/EventTypeConstraintClaims.ts","../testing/IReadModelProcessor.ts","../testing/InProcessAppendMetadata.ts","../testing/InProcessBatchAppend.ts","../testing/InProcessConstraints.ts","../testing/InProcessEventPayload.ts","../testing/InProcessEventReadCriteria.ts","../testing/InProcessEventReadFilter.ts","../testing/InProcessEventSequence.ts","../testing/InProcessEventSequenceEnvironment.ts","../testing/InProcessSingleAppend.ts","../testing/KernelTextHash.ts","../testing/MeasuredCaseFolding.ts","../testing/MeasuredConstraintKeys.ts","../testing/PropertyConstraintClaims.ts","../testing/PropertyDefinitionSupport.ts","../testing/ReactorDeliveryResult.ts","../testing/ReactorScenario.ts","../testing/ReactorScenarioOptions.ts","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/ReadModelState.ts","../testing/RecordedReactorSideEffect.ts","../testing/ReducerReadModelProcessor.ts","../testing/ScenarioEvent.ts","../testing/UnsupportedEventSequenceOperation.ts","../testing/UnsupportedReactorOperation.ts","../testing/UnsupportedReducerOperation.ts","../testing/deliverToBatchMethods.ts","../testing/index.ts","../testing/singleAppendRoute.ts","../testing/for_ReadModelScenario/when_adding_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_adding_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_counting_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_counting_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_stepping_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_stepping_with_children/given/oracle_input.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/compiled_projection.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/lifecycle.ts","../testing/for_ReadModelScenario/when_subtracting_with_children/given/oracle_input.ts","../testing/projections/ProjectionArithmetic.ts","../testing/projections/ProjectionArithmeticChildrenCapabilities.ts","../testing/projections/ProjectionCapabilities.ts","../testing/projections/ProjectionCapabilityReject.ts","../testing/projections/ProjectionCapabilityReporter.ts","../testing/projections/ProjectionChildrenCapabilities.ts","../testing/projections/ProjectionDefinitionCapabilities.ts","../testing/projections/ProjectionEventSchemaResolver.ts","../testing/projections/ProjectionExpressionCapabilities.ts","../testing/projections/ProjectionExpressionEvaluator.ts","../testing/projections/ProjectionInitialValueCapabilities.ts","../testing/projections/ProjectionJoinRecord.ts","../testing/projections/ProjectionJoinValidationContext.ts","../testing/projections/ProjectionJoins.ts","../testing/projections/ProjectionJoinsCapabilities.ts","../testing/projections/ProjectionMappingCapabilities.ts","../testing/projections/ProjectionMappingValidation.ts","../testing/projections/ProjectionReadModelCapabilities.ts","../testing/projections/ProjectionReadModelProcessor.ts","../testing/projections/ProjectionRootCapabilities.ts","../testing/projections/ProjectionScalarConverter.ts","../testing/projections/ProjectionSchemaCapabilities.ts","../testing/projections/ProjectionValueConverter.ts","../testing/projections/UnsupportedProjectionOperation.ts","../testing/projections/for_ProjectionCapabilities/given/Changed.ts","../testing/projections/for_ProjectionCapabilities/given/Model.ts","../testing/projections/for_ProjectionCapabilities/given/Removed.ts","../testing/projections/for_ProjectionCapabilities/given/compile.ts","../transactions/AppendOptionNotSupportedInUnitOfWork.ts","../transactions/ConflictingAppendOptionNamesInUnitOfWork.ts","../transactions/ConflictingConcurrencyScopesInUnitOfWork.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/TransactionalAppendOptions.ts","../transactions/TransactionalEventRouting.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/concurrencyScopesAreEqual.ts","../transactions/index.ts","../transactions/resolveTransactionalAppendOptions.ts","../transactions/toEventForEventSourceId.ts","../transactions/for_UnitOfWork/given/a_unit_of_work_with_a_recording_store.ts","../types/DecoratorType.ts","../types/TypeDiscoverer.ts","../types/TypeIntrospector.ts","../types/conceptValueType.ts","../types/index.ts","../types/modelBoundProperty.ts","../types/modelBoundPropertyMetadata.ts","../types/propertyDecoratorMetadata.ts","../types/standardDecoratorMetadata.ts","../webhooks/IWebhook.ts","../webhooks/IWebhookDefinitionBuilder.ts","../webhooks/IWebhooks.ts","../webhooks/WebhookDefinitionBuilder.ts","../webhooks/WebhookId.ts","../webhooks/WebhookTargetUrl.ts","../webhooks/Webhooks.ts","../webhooks/index.ts","../webhooks/webhook.ts","../webhooks/for_Webhooks/given/a_webhook_registration.ts"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/package.json","../../node_modules/@cratis/fundamentals/dist/esm/package.json","../../node_modules/@cratis/fundamentals/package.json","../../node_modules/@grpc/grpc-js/package.json","../../node_modules/@grpc/proto-loader/package.json","../../node_modules/@js-sdsl/ordered-map/package.json","../../node_modules/@opentelemetry/api/package.json","../../node_modules/@types/chai/package.json","../../node_modules/@types/deep-eql/package.json","../../node_modules/@types/node/package.json","../../node_modules/@vitest/mocker/package.json","../../node_modules/assertion-error/package.json","../../node_modules/chai/package.json","../../node_modules/esbuild/package.json","../../node_modules/expect-type/package.json","../../node_modules/glob/dist/esm/package.json","../../node_modules/glob/package.json","../../node_modules/long/package.json","../../node_modules/long/umd/package.json","../../node_modules/lru-cache/dist/esm/package.json","../../node_modules/lru-cache/package.json","../../node_modules/minimatch/dist/esm/package.json","../../node_modules/minimatch/package.json","../../node_modules/minipass/dist/esm/package.json","../../node_modules/minipass/package.json","../../node_modules/nice-grpc-common/package.json","../../node_modules/nice-grpc/package.json","../../node_modules/path-scurry/dist/esm/package.json","../../node_modules/path-scurry/package.json","../../node_modules/protobufjs/package.json","../../node_modules/reflect-metadata/package.json","../../node_modules/tinybench/package.json","../../node_modules/ts-error/package.json","../../node_modules/tsx/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/package.json","../../node_modules/vite/package.json","../../node_modules/vitest/package.json","../../node_modules/yaml/package.json"],"missingPackageJsons":["../../node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/generated/protobuf-net/package.json","../../node_modules/@cratis/chronicle.contracts/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/dist/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/package.json","../../node_modules/@edge-runtime/vm/package.json","../../node_modules/@grpc/grpc-js/build/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/google/protobuf/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/channelz/v1/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/grpc/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/data/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/orca/v3/package.json","../../node_modules/@grpc/grpc-js/build/src/generated/xds/service/package.json","../../node_modules/@grpc/grpc-js/build/src/package.json","../../node_modules/@grpc/proto-loader/build/package.json","../../node_modules/@grpc/proto-loader/build/src/package.json","../../node_modules/@js-sdsl/ordered-map/dist/esm/package.json","../../node_modules/@js-sdsl/ordered-map/dist/package.json","../../node_modules/@opentelemetry/api/build/package.json","../../node_modules/@opentelemetry/api/build/src/api/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/internal/package.json","../../node_modules/@opentelemetry/api/build/src/baggage/package.json","../../node_modules/@opentelemetry/api/build/src/common/package.json","../../node_modules/@opentelemetry/api/build/src/context/package.json","../../node_modules/@opentelemetry/api/build/src/diag/package.json","../../node_modules/@opentelemetry/api/build/src/metrics/package.json","../../node_modules/@opentelemetry/api/build/src/package.json","../../node_modules/@opentelemetry/api/build/src/propagation/package.json","../../node_modules/@opentelemetry/api/build/src/trace/internal/package.json","../../node_modules/@opentelemetry/api/build/src/trace/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/assert/strict/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/buffer/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/console/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/inspector/promises/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/node/assert/package.json","../../node_modules/@types/node/dns/package.json","../../node_modules/@types/node/fs/package.json","../../node_modules/@types/node/inspector/package.json","../../node_modules/@types/node/path/package.json","../../node_modules/@types/node/readline/package.json","../../node_modules/@types/node/stream/package.json","../../node_modules/@types/node/test/package.json","../../node_modules/@types/node/timers/package.json","../../node_modules/@types/node/util/package.json","../../node_modules/@types/node/web-globals/package.json","../../node_modules/@types/node/zlib/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/querystring/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/iter/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/@vitejs/devtools/package.json","../../node_modules/@vitest/browser-playwright/package.json","../../node_modules/@vitest/browser-preview/package.json","../../node_modules/@vitest/browser-webdriverio/package.json","../../node_modules/@vitest/coverage-istanbul/package.json","../../node_modules/@vitest/coverage-v8/package.json","../../node_modules/@vitest/mocker/dist/package.json","../../node_modules/@vitest/ui/package.json","../../node_modules/assert/package.json","../../node_modules/assert/strict/package.json","../../node_modules/async_hooks/package.json","../../node_modules/buffer/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/console/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/deep-eql/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/events/package.json","../../node_modules/expect-type/dist/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/happy-dom/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/inspector/promises/package.json","../../node_modules/jiti/package.json","../../node_modules/jsdom/package.json","../../node_modules/less/package.json","../../node_modules/module/package.json","../../node_modules/msw/package.json","../../node_modules/net/package.json","../../node_modules/nice-grpc-common/lib/client/package.json","../../node_modules/nice-grpc-common/lib/package.json","../../node_modules/nice-grpc-common/lib/server/package.json","../../node_modules/nice-grpc/lib/client/package.json","../../node_modules/nice-grpc/lib/package.json","../../node_modules/nice-grpc/lib/server/package.json","../../node_modules/nice-grpc/lib/service-definitions/package.json","../../node_modules/nice-grpc/lib/utils/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/process/package.json","../../node_modules/protobufjs/ext/descriptor/package.json","../../node_modules/protobufjs/ext/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sass-embedded/package.json","../../node_modules/sass/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/iter/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/string_decoder/package.json","../../node_modules/stylus/package.json","../../node_modules/sugarss/package.json","../../node_modules/terser/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tinybench/dist/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-error/lib/package.json","../../node_modules/tty/package.json","../../node_modules/undici/types/package.json","../../node_modules/url/package.json","../../node_modules/util/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vite/dist/node/chunks/package.json","../../node_modules/vite/dist/node/package.json","../../node_modules/vite/dist/package.json","../../node_modules/vite/module-runner/package.json","../../node_modules/vite/types/package.json","../../node_modules/vitest/dist/chunks/package.json","../../node_modules/vitest/dist/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/chronicle",
|
|
3
|
-
"version": "6.72.
|
|
3
|
+
"version": "6.72.2",
|
|
4
4
|
"description": "Event sourcing for TypeScript and Node.js — the idiomatic client for Cratis Chronicle, the open-source event-sourcing database",
|
|
5
5
|
"author": "Cratis",
|
|
6
6
|
"license": "MIT",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
"clean": "rm -rf dist",
|
|
179
179
|
"test": "vitest run",
|
|
180
180
|
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
181
|
-
"test:standard-types": "tsc --ignoreConfig --noEmit --target es2022 --module es2022 --moduleResolution bundler --lib es2022,esnext.decorators --types node --skipLibCheck --strict schemas/decorators.standard.spec.ts projections/declarative/addChildCompatibility.standard.spec.ts projections/declarative/for_CompositeKeyBuilder/when_typing_constant_parts.standard.spec.ts projections/modelBound/decorators.standard.spec.ts projections/for_Graphs/when_declaring_with_standard_decorators.standard.spec.ts projections/for_Graphs/when_declaring_graph_views.standard.spec.ts events/classDecorators.standard.spec.ts reactors/decorators.standard.spec.ts readModels/standardFallbacks.standard.spec.ts readModels/registration.standard.spec.ts for_ChronicleClient/when_registering_artifacts/with_standard_property_mappings.standard.spec.ts artifacts/validateArtifactSchemas.spec.ts testing/for_EventScenario/when_appending_concept_fields/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_scoped_constraints/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_event_sequence_constraints/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_event_sequence_constraints/other_sequence_extended_key.standard.spec.ts events/constraints/for_Constraints/when_scoping_to_event_sequences/with_standard_decorators.standard.spec.ts schemas/for_JsonSchemaGenerator/when_generating_children/with_standard_decorators.standard.spec.ts events/for_handles/when_decorating_a_method.standard.spec.ts testing/for_ReadModelScenario/when_evaluating_arithmetic/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_counting_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_adding_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_subtracting_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_evaluating_joins/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_field_types/with_standard_decorators.standard.spec.ts eventSequences/for_EventSequence/when_appending/with_subject_annotations.standard.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_from_all.standard.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_tags/with_standard_decorators.standard.spec.ts telemetry/for_ChronicleTelemetry/when_exposing_names/with_convention_names.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_from_all_events.standard.spec.ts events/for_observerFilters/when_registering/with_standard_decorators.standard.spec.ts reactors/for_Reactors/against_a_kernel/when_filtering_source_and_stream_types.integration.spec.ts testing/for_observerScenarios/when_selecting_filters/with_source_and_stream_types.spec.ts readModels/for_ReadModelWatcher/watchCompatibility.standard.spec.ts for_EventStore/when_implementing_a_legacy_event_store.spec.ts",
|
|
181
|
+
"test:standard-types": "tsc --ignoreConfig --noEmit --target es2022 --module es2022 --moduleResolution bundler --lib es2022,esnext.decorators --types node --skipLibCheck --strict schemas/decorators.standard.spec.ts projections/declarative/addChildCompatibility.standard.spec.ts projections/declarative/for_CompositeKeyBuilder/when_typing_constant_parts.standard.spec.ts projections/modelBound/decorators.standard.spec.ts projections/for_Graphs/when_declaring_with_standard_decorators.standard.spec.ts projections/for_Graphs/when_declaring_graph_views.standard.spec.ts events/classDecorators.standard.spec.ts reactors/decorators.standard.spec.ts readModels/standardFallbacks.standard.spec.ts readModels/registration.standard.spec.ts for_ChronicleClient/when_registering_artifacts/with_standard_property_mappings.standard.spec.ts artifacts/validateArtifactSchemas.spec.ts testing/for_EventScenario/when_appending_concept_fields/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_scoped_constraints/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_event_sequence_constraints/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_event_sequence_constraints/other_sequence_extended_key.standard.spec.ts events/constraints/for_Constraints/when_scoping_to_event_sequences/with_standard_decorators.standard.spec.ts schemas/for_JsonSchemaGenerator/when_generating_children/with_standard_decorators.standard.spec.ts events/for_handles/when_decorating_a_method.standard.spec.ts testing/for_ReadModelScenario/when_evaluating_arithmetic/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_counting_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_adding_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_subtracting_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_stepping_with_children/with_standard_decorators.standard.spec.ts testing/for_ReadModelScenario/when_evaluating_joins/with_standard_decorators.standard.spec.ts testing/for_EventScenario/when_appending_field_types/with_standard_decorators.standard.spec.ts eventSequences/for_EventSequence/when_appending/with_subject_annotations.standard.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_from_all.standard.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_tags/with_standard_decorators.standard.spec.ts telemetry/for_ChronicleTelemetry/when_exposing_names/with_convention_names.spec.ts projections/for_ProjectionDefinitionCompiler/when_compiling_from_all_events.standard.spec.ts events/for_observerFilters/when_registering/with_standard_decorators.standard.spec.ts reactors/for_Reactors/against_a_kernel/when_filtering_source_and_stream_types.integration.spec.ts testing/for_observerScenarios/when_selecting_filters/with_source_and_stream_types.spec.ts readModels/for_ReadModelWatcher/watchCompatibility.standard.spec.ts for_EventStore/when_implementing_a_legacy_event_store.spec.ts",
|
|
182
182
|
"test:native": "node ./scripts/check-native-esm.mjs"
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
package/testing/for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import { field } from '@cratis/fundamentals';
|
|
5
|
+
import type { IClientArtifactsProvider } from '../../../../artifacts/IClientArtifactsProvider.js';
|
|
6
|
+
import { eventType } from '../../../../events/eventTypeDecorator.js';
|
|
7
|
+
import type { IProjectionBuilderFor } from '../../../../projections/declarative/IProjectionBuilderFor.js';
|
|
8
|
+
import { projection } from '../../../../projections/declarative/projection.js';
|
|
9
|
+
import { ProjectionDefinitionCompiler } from '../../../../projections/ProjectionDefinitionCompiler.js';
|
|
10
|
+
|
|
11
|
+
export type Operation = 'increment' | 'decrement';
|
|
12
|
+
@eventType('Stepped')
|
|
13
|
+
export class Stepped {
|
|
14
|
+
@field(Number) readonly total: number;
|
|
15
|
+
constructor(total: number) { this.total = total; }
|
|
16
|
+
}
|
|
17
|
+
@eventType('ItemChanged')
|
|
18
|
+
export class ItemChanged {
|
|
19
|
+
@field(String) readonly itemId: string;
|
|
20
|
+
@field(String) readonly name: string;
|
|
21
|
+
constructor(itemId: string, name: string) { this.itemId = itemId; this.name = name; }
|
|
22
|
+
}
|
|
23
|
+
@eventType('ItemRemoved')
|
|
24
|
+
export class ItemRemoved {
|
|
25
|
+
@field(String) readonly itemId: string;
|
|
26
|
+
constructor(itemId: string) { this.itemId = itemId; }
|
|
27
|
+
}
|
|
28
|
+
@eventType('Removed')
|
|
29
|
+
export class Removed {}
|
|
30
|
+
export class Item {
|
|
31
|
+
@field(String) itemId!: string;
|
|
32
|
+
@field(String) name!: string;
|
|
33
|
+
}
|
|
34
|
+
export class Totals {
|
|
35
|
+
@field(String) id!: string;
|
|
36
|
+
@field(Number) total!: number;
|
|
37
|
+
@field(Array, { genericArguments: [Item] }) items!: Item[];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function variant(operation: Operation) {
|
|
41
|
+
class TotalsProjection {
|
|
42
|
+
define(builder: IProjectionBuilderFor<Totals>): void {
|
|
43
|
+
builder.from(Stepped, from => from[operation](model => model.total))
|
|
44
|
+
.children<Item>(model => model.items, child => child.identifiedBy(item => item.itemId)
|
|
45
|
+
.from(ItemChanged, from => from.usingKey(value => value.itemId))
|
|
46
|
+
.removedWith(ItemRemoved, removal => removal.usingKey(value => value.itemId)))
|
|
47
|
+
.removedWith(Removed);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const name = `${operation}-children-fluent`;
|
|
51
|
+
projection(name, Totals)(TotalsProjection);
|
|
52
|
+
const artifacts = {
|
|
53
|
+
readModels: [Totals], projections: [TotalsProjection], eventTypes: [Stepped, ItemChanged, ItemRemoved, Removed],
|
|
54
|
+
globalForHandlers: [], reducers: [], reactors: [], seeders: [], constraints: [], webhooks: [], eventTypeMigrations: []
|
|
55
|
+
} satisfies IClientArtifactsProvider;
|
|
56
|
+
return { name, operation, event: Stepped, model: Totals, artifacts, compile: () => new ProjectionDefinitionCompiler(artifacts, 'test').compile([TotalsProjection], []) };
|
|
57
|
+
}
|
|
58
|
+
export const variants = [variant('increment'), variant('decrement')];
|
|
59
|
+
export const { compile } = variants[0];
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
import type { ReadModelScenario } from '../../../ReadModelScenario.js';
|
|
5
|
+
import { Stepped, ItemChanged, ItemRemoved, Removed } from './compiled_projection.js';
|
|
6
|
+
|
|
7
|
+
type SteppedParent = { id: string; total: number; items: Array<{ itemId: string; name: string }> };
|
|
8
|
+
|
|
9
|
+
export function history(step: (total: number) => object = total => new Stepped(total)) {
|
|
10
|
+
return [
|
|
11
|
+
{ source: 'A', event: step(2.5) }, { source: 'A', event: step(-1) },
|
|
12
|
+
{ source: 'A', event: new ItemChanged('one', 'first') }, { source: 'A', event: new ItemChanged('two', 'second') },
|
|
13
|
+
{ source: 'A', event: new ItemChanged('one', 'updated') }, { source: 'A', event: step(0) },
|
|
14
|
+
{ source: 'B', event: step(8) }, { source: 'B', event: new ItemChanged('one', 'independent') },
|
|
15
|
+
{ source: 'A', event: new ItemRemoved('one') }, { source: 'A', event: new ItemRemoved('unknown') },
|
|
16
|
+
{ source: 'A', event: new Removed() }, { source: 'A', event: step(4.5) },
|
|
17
|
+
{ source: 'A', event: new ItemChanged('new', 'recreated') }
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export async function lifecycle<T extends SteppedParent>(scenario: ReadModelScenario<T>) {
|
|
22
|
+
const events = history();
|
|
23
|
+
const seed = (start: number, end: number) => {
|
|
24
|
+
for (const { source, event } of events.slice(start, end)) scenario.given.forEventSource(source).events(event);
|
|
25
|
+
};
|
|
26
|
+
seed(0, 8);
|
|
27
|
+
const first = (await scenario.instanceForEventSourceId('A'))!;
|
|
28
|
+
const other = (await scenario.instanceForEventSourceId('B'))!;
|
|
29
|
+
seed(8, 10);
|
|
30
|
+
const remaining = (await scenario.instanceForEventSourceId('A'))!;
|
|
31
|
+
seed(10, 11);
|
|
32
|
+
const removed = await scenario.instanceForEventSourceId('A');
|
|
33
|
+
const surviving = (await scenario.instanceForEventSourceId('B'))!;
|
|
34
|
+
seed(11, 13);
|
|
35
|
+
const recreated = (await scenario.instanceForEventSourceId('A'))!;
|
|
36
|
+
const repeated = (await scenario.instanceForEventSourceId('A'))!;
|
|
37
|
+
return { first, other, remaining, removed, surviving, recreated, repeated };
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import { readFileSync } from 'node:fs';
|
|
5
|
+
import { JsonSerializer } from '@cratis/fundamentals';
|
|
6
|
+
import { chai, type Assertion } from 'vitest';
|
|
7
|
+
import { getEventTypeMetadata } from '../../../../events/eventTypeDecorator.js';
|
|
8
|
+
import type { compile } from './compiled_projection.js';
|
|
9
|
+
import { history } from './lifecycle.js';
|
|
10
|
+
|
|
11
|
+
chai.should();
|
|
12
|
+
function should(value: unknown): Assertion { return (value as { should: Assertion }).should; }
|
|
13
|
+
|
|
14
|
+
export function assertOracleInput(candidate: { name: string; event: new (amount: number) => object; compile: typeof compile }) {
|
|
15
|
+
const fixture = JSON.parse(readFileSync(new URL(`../../../projections/fixtures/${candidate.name}.json`, import.meta.url), 'utf8'));
|
|
16
|
+
const compiled = candidate.compile();
|
|
17
|
+
const { LastUpdated, ...wire } = compiled.definitions[0];
|
|
18
|
+
should(LastUpdated).deep.equal(fixture.compilerLastUpdated);
|
|
19
|
+
should(JSON.parse(JSON.stringify({ ...wire, NoAutoMapProperties: Object.hasOwn(wire, 'NoAutoMapProperties') ? wire.NoAutoMapProperties : [] }))).deep.equal(fixture.wireDefinition);
|
|
20
|
+
should(JSON.parse(compiled.readModels[0].Schema)).deep.equal(fixture.readModel.schema);
|
|
21
|
+
const schemas = [...compiled.eventSchemas.get(compiled.definitions[0])!.values()].map(entry => {
|
|
22
|
+
should(entry.eventType.Tombstone).be.false;
|
|
23
|
+
const { Tombstone: _falseFlag, ...eventType } = entry.eventType;
|
|
24
|
+
return { ...entry, eventType };
|
|
25
|
+
});
|
|
26
|
+
should(schemas).deep.equal(fixture.eventSchemas);
|
|
27
|
+
const events = history(amount => new candidate.event(amount));
|
|
28
|
+
should(events.length).equal(fixture.events.length);
|
|
29
|
+
events.forEach(({ source, event }, index) => {
|
|
30
|
+
const captured = fixture.events[index];
|
|
31
|
+
const type = getEventTypeMetadata(event.constructor)!.eventType;
|
|
32
|
+
should(captured.context.eventType).deep.equal({ Id: type.id.value, Generation: type.generation.value });
|
|
33
|
+
should(captured.context.eventSourceId).equal(source);
|
|
34
|
+
should(captured.content).deep.equal(JSON.parse(JsonSerializer.serialize(event)));
|
|
35
|
+
});
|
|
36
|
+
}
|
package/testing/for_ReadModelScenario/when_stepping_with_children/with_a_fluent_projection.spec.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
import { chai, describe, it } from 'vitest';
|
|
5
|
+
import { ReadModelScenario } from '../../ReadModelScenario.js';
|
|
6
|
+
import { variants } from './given/compiled_projection.js';
|
|
7
|
+
import { lifecycle } from './given/lifecycle.js';
|
|
8
|
+
import { assertOracleInput } from './given/oracle_input.js';
|
|
9
|
+
|
|
10
|
+
chai.should();
|
|
11
|
+
for (const candidate of variants) {
|
|
12
|
+
describe(`when applying ${candidate.operation} with independent children through a fluent projection`, () => {
|
|
13
|
+
it('should compile exactly the oracle input', () => assertOracleInput(candidate));
|
|
14
|
+
|
|
15
|
+
it('should step once per root event, ignore payloads and preserve independent children and recreation', async () => {
|
|
16
|
+
const direction = candidate.operation === 'increment' ? 1 : -1;
|
|
17
|
+
const result = await lifecycle(new ReadModelScenario(candidate.model, candidate.artifacts));
|
|
18
|
+
result.first.total.should.equal(3 * direction);
|
|
19
|
+
result.first.items.should.deep.equal([{ itemId: 'one', name: 'updated' }, { itemId: 'two', name: 'second' }]);
|
|
20
|
+
result.remaining.total.should.equal(3 * direction);
|
|
21
|
+
result.remaining.items.should.deep.equal([{ itemId: 'two', name: 'second' }]);
|
|
22
|
+
(result.removed === null).should.be.true;
|
|
23
|
+
result.surviving.should.deep.equal(result.other);
|
|
24
|
+
result.other.total.should.equal(direction);
|
|
25
|
+
result.recreated.total.should.equal(direction);
|
|
26
|
+
result.recreated.items.should.deep.equal([{ itemId: 'new', name: 'recreated' }]);
|
|
27
|
+
result.repeated.should.deep.equal(result.recreated);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import { field } from '@cratis/fundamentals';
|
|
5
|
+
import { chai, describe, it } from 'vitest';
|
|
6
|
+
import { ProjectionDefinitionCompiler } from '../../../projections/ProjectionDefinitionCompiler.js';
|
|
7
|
+
import { increment } from '../../../projections/modelBound/increment.js';
|
|
8
|
+
import { decrement } from '../../../projections/modelBound/decrement.js';
|
|
9
|
+
import { childrenFrom } from '../../../projections/modelBound/childrenFrom.js';
|
|
10
|
+
import { removedWith } from '../../../projections/modelBound/removedWith.js';
|
|
11
|
+
import { ReadModelScenario } from '../../ReadModelScenario.js';
|
|
12
|
+
import { Stepped, ItemChanged, ItemRemoved, Removed, variants, type Operation } from './given/compiled_projection.js';
|
|
13
|
+
import { lifecycle } from './given/lifecycle.js';
|
|
14
|
+
import { assertOracleInput } from './given/oracle_input.js';
|
|
15
|
+
|
|
16
|
+
chai.should();
|
|
17
|
+
function candidateFor(operation: Operation) {
|
|
18
|
+
const step = operation === 'increment' ? increment : decrement;
|
|
19
|
+
@removedWith(ItemRemoved, 'itemId')
|
|
20
|
+
class Item {
|
|
21
|
+
@field(String) itemId!: string;
|
|
22
|
+
@field(String) name!: string;
|
|
23
|
+
}
|
|
24
|
+
@removedWith(Removed)
|
|
25
|
+
class Totals {
|
|
26
|
+
@field(String) id!: string;
|
|
27
|
+
@field(Number) @step(Stepped) total!: number;
|
|
28
|
+
@field(Array) @childrenFrom(ItemChanged, { childType: Item, key: 'itemId', identifiedBy: 'itemId' }) items!: Item[];
|
|
29
|
+
}
|
|
30
|
+
const artifacts = { ...variants[0].artifacts, projections: [], readModels: [Totals] };
|
|
31
|
+
return {
|
|
32
|
+
name: `${operation}-children-legacy`, operation, event: Stepped, model: Totals, artifacts,
|
|
33
|
+
compile: () => new ProjectionDefinitionCompiler(artifacts, 'test').compile([], [Totals])
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export const candidates = [candidateFor('increment'), candidateFor('decrement')];
|
|
37
|
+
for (const candidate of candidates) {
|
|
38
|
+
describe(`when applying ${candidate.operation} with independent children through legacy decorators`, () => {
|
|
39
|
+
it('should compile exactly the oracle input', () => assertOracleInput(candidate));
|
|
40
|
+
|
|
41
|
+
it('should step once per root event, ignore payloads and preserve independent children and recreation', async () => {
|
|
42
|
+
const direction = candidate.operation === 'increment' ? 1 : -1;
|
|
43
|
+
const result = await lifecycle(new ReadModelScenario(candidate.model, candidate.artifacts));
|
|
44
|
+
result.first.total.should.equal(3 * direction);
|
|
45
|
+
result.first.items.should.deep.equal([{ itemId: 'one', name: 'updated' }, { itemId: 'two', name: 'second' }]);
|
|
46
|
+
result.remaining.total.should.equal(3 * direction);
|
|
47
|
+
result.remaining.items.should.deep.equal([{ itemId: 'two', name: 'second' }]);
|
|
48
|
+
(result.removed === null).should.be.true;
|
|
49
|
+
result.surviving.should.deep.equal(result.other);
|
|
50
|
+
result.other.total.should.equal(direction);
|
|
51
|
+
result.recreated.total.should.equal(direction);
|
|
52
|
+
result.recreated.items.should.deep.equal([{ itemId: 'new', name: 'recreated' }]);
|
|
53
|
+
result.repeated.should.deep.equal(result.recreated);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { field } from '@cratis/fundamentals';
|
|
5
|
+
import { chai, describe, it, type Assertion } from 'vitest';
|
|
6
|
+
import { ProjectionDefinitionCompiler } from '../../../projections/ProjectionDefinitionCompiler.js';
|
|
7
|
+
import { increment } from '../../../projections/modelBound/increment.js';
|
|
8
|
+
import { decrement } from '../../../projections/modelBound/decrement.js';
|
|
9
|
+
import { childrenFrom } from '../../../projections/modelBound/childrenFrom.js';
|
|
10
|
+
import { removedWith } from '../../../projections/modelBound/removedWith.js';
|
|
11
|
+
import { ReadModelScenario } from '../../ReadModelScenario.js';
|
|
12
|
+
import { Stepped, ItemChanged, ItemRemoved, Removed, variants, type Operation } from './given/compiled_projection.js';
|
|
13
|
+
import { lifecycle } from './given/lifecycle.js';
|
|
14
|
+
import { assertOracleInput } from './given/oracle_input.js';
|
|
15
|
+
|
|
16
|
+
chai.should();
|
|
17
|
+
function should(value: unknown): Assertion { return (value as { should: Assertion }).should; }
|
|
18
|
+
function candidateFor(operation: Operation) {
|
|
19
|
+
const step = operation === 'increment' ? increment : decrement;
|
|
20
|
+
@removedWith(ItemRemoved, 'itemId')
|
|
21
|
+
class Item {
|
|
22
|
+
@field(String) itemId!: string;
|
|
23
|
+
@field(String) name!: string;
|
|
24
|
+
}
|
|
25
|
+
@removedWith(Removed)
|
|
26
|
+
class Totals {
|
|
27
|
+
@field(String) id!: string;
|
|
28
|
+
@field(Number) @step(Stepped) total!: number;
|
|
29
|
+
@field(Array, { genericArguments: [Item] })
|
|
30
|
+
@childrenFrom(ItemChanged, { key: 'itemId', identifiedBy: 'itemId' }) items!: Item[];
|
|
31
|
+
}
|
|
32
|
+
const artifacts = { ...variants[0].artifacts, projections: [], readModels: [Totals] };
|
|
33
|
+
return {
|
|
34
|
+
name: `${operation}-children-standard`, operation, event: Stepped, model: Totals, artifacts,
|
|
35
|
+
compile: () => new ProjectionDefinitionCompiler(artifacts, 'test').compile([], [Totals])
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export const candidates = [candidateFor('increment'), candidateFor('decrement')];
|
|
39
|
+
for (const candidate of candidates) {
|
|
40
|
+
describe(`when applying ${candidate.operation} with independent children through standard decorators`, () => {
|
|
41
|
+
it('should compile exactly the oracle input', () => assertOracleInput(candidate));
|
|
42
|
+
|
|
43
|
+
it('should step once per root event, ignore payloads and preserve independent children and recreation', async () => {
|
|
44
|
+
const direction = candidate.operation === 'increment' ? 1 : -1;
|
|
45
|
+
const result = await lifecycle(new ReadModelScenario(candidate.model, candidate.artifacts));
|
|
46
|
+
should(result.first.total).equal(3 * direction);
|
|
47
|
+
should(result.first.items).deep.equal([{ itemId: 'one', name: 'updated' }, { itemId: 'two', name: 'second' }]);
|
|
48
|
+
should(result.remaining.total).equal(3 * direction);
|
|
49
|
+
should(result.remaining.items).deep.equal([{ itemId: 'two', name: 'second' }]);
|
|
50
|
+
should(result.removed === null).be.true;
|
|
51
|
+
should(result.surviving).deep.equal(result.other);
|
|
52
|
+
should(result.other.total).equal(direction);
|
|
53
|
+
should(result.recreated.total).equal(direction);
|
|
54
|
+
should(result.recreated.items).deep.equal([{ itemId: 'new', name: 'recreated' }]);
|
|
55
|
+
should(result.repeated).deep.equal(result.recreated);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -25,6 +25,7 @@ export class ProjectionArithmeticChildrenCapabilities {
|
|
|
25
25
|
|
|
26
26
|
private static accumulator(target: JsonSchema | undefined, expression: string, from: FromRecord, require: ProjectionEventSchemaResolver['require']): boolean {
|
|
27
27
|
if (expression === '$count') return this.countTarget(target);
|
|
28
|
+
if (expression === '$increment' || expression === '$decrement') return this.unformattedNumber(target);
|
|
28
29
|
const operand = /^\$(?:add|subtract)\(([A-Za-z_][A-Za-z0-9]*)\)$/.exec(expression)?.[1];
|
|
29
30
|
if (!operand || !this.unformattedNumber(target)) return false;
|
|
30
31
|
const event = require(from.Key, eventContractPath('From', from.Key));
|
package/testing/projections/for_ProjectionCapabilities/when_validating_add_with_children.spec.ts
CHANGED
|
@@ -14,7 +14,7 @@ chai.should();
|
|
|
14
14
|
type Candidate = { compiled: ReturnType<typeof compile>; definition: ProjectionDefinition; schema: JsonSchema; operand: JsonSchema };
|
|
15
15
|
type Mutation = (candidate: Candidate) => void;
|
|
16
16
|
const boundaries: Array<[string, Mutation]> = [
|
|
17
|
-
...['$
|
|
17
|
+
...['$add(amount + 1)', '$add(nested.amount)', '$add($eventSourceId)',
|
|
18
18
|
'$add(1)', '$add(true)', '$add(snake_case)', '$add(missing)', '$add(amount', '$add(_snake_case)'].map(expression =>
|
|
19
19
|
[expression, ({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
20
|
...['int32', 'uint32', 'float', 'double', ''].flatMap(format => [
|
package/testing/projections/for_ProjectionCapabilities/when_validating_count_with_children.spec.ts
CHANGED
|
@@ -15,8 +15,6 @@ chai.should();
|
|
|
15
15
|
type Candidate = { compiled: ReturnType<typeof compile>; definition: ProjectionDefinition; schema: JsonSchema };
|
|
16
16
|
type Mutation = (candidate: Candidate) => void;
|
|
17
17
|
const boundaries: Array<[string, Mutation]> = [
|
|
18
|
-
...['$increment', '$decrement'].map(expression => [expression,
|
|
19
|
-
({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
18
|
['int32 count', ({ schema }) => { schema.properties!.total = { type: 'integer', format: 'int32' }; }],
|
|
21
19
|
['float count', ({ schema }) => { schema.properties!.total = { type: 'number', format: 'float' }; }],
|
|
22
20
|
['GUID root identifier', ({ schema }) => { schema.properties!.id.format = 'uuid'; }],
|
|
@@ -73,11 +71,12 @@ for (const [name, mutate] of boundaries) {
|
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
|
|
76
|
-
for (const [operation, expected] of [['add', 18000], ['subtract', -18000]] as const) {
|
|
74
|
+
for (const [operation, expected] of [['add', 18000], ['subtract', -18000], ['increment', 2], ['decrement', -2]] as const) {
|
|
77
75
|
describe(`when applying ${operation} to the unformatted same-name operand in the count boundary`, () => {
|
|
78
76
|
it('should admit the fixture-backed arithmetic rather than count or assign', async () => {
|
|
79
77
|
const value = candidate();
|
|
80
|
-
value.definition.From[0].Value.Properties.total =
|
|
78
|
+
value.definition.From[0].Value.Properties.total = operation === 'add' || operation === 'subtract'
|
|
79
|
+
? `$${operation}(total)` : `$${operation}`;
|
|
81
80
|
const processor = new ProjectionReadModelProcessor(Totals, value.compiled, value.definition);
|
|
82
81
|
await processor.process([seeded, { ...seeded, context: { ...seeded.context, sequenceNumber: 1n } }]);
|
|
83
82
|
processor.publicRead.A.total.should.equal(expected);
|
package/testing/projections/for_ProjectionCapabilities/when_validating_steps_with_children.spec.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import { beforeEach, chai, describe, it } from 'vitest';
|
|
5
|
+
import type { ProjectionDefinition } from '@cratis/chronicle.contracts';
|
|
6
|
+
import { EventType } from '../../../events/EventType.js';
|
|
7
|
+
import type { JsonSchema } from '../../../schemas/JsonSchema.js';
|
|
8
|
+
import { variants, Totals } from '../../for_ReadModelScenario/when_stepping_with_children/given/compiled_projection.js';
|
|
9
|
+
import type { ScenarioEvent } from '../../ScenarioEvent.js';
|
|
10
|
+
import { ProjectionReadModelProcessor } from '../ProjectionReadModelProcessor.js';
|
|
11
|
+
import { UnsupportedProjectionOperation } from '../UnsupportedProjectionOperation.js';
|
|
12
|
+
|
|
13
|
+
chai.should();
|
|
14
|
+
type Candidate = { compiled: ReturnType<typeof variants[number]['compile']>; definition: ProjectionDefinition; schema: JsonSchema };
|
|
15
|
+
type Mutation = (candidate: Candidate) => void;
|
|
16
|
+
const boundaries: Array<[string, Mutation]> = [
|
|
17
|
+
...['$increment()', '$increment(total)', '$increment + 1', '$incremented', '$decrement()', '$decrement(total)',
|
|
18
|
+
'$decrement + 1', '$decremented'].map(expression =>
|
|
19
|
+
[expression, ({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
|
+
...['int32', 'uint32', 'float', 'double', ''].map(format =>
|
|
21
|
+
[`${format || 'empty'} target format`, ({ schema }: Candidate) => { schema.properties!.total.format = format; }] as [string, Mutation]),
|
|
22
|
+
['integer target', ({ schema }) => { schema.properties!.total = { type: 'integer', format: 'int32' }; }],
|
|
23
|
+
['non-numeric target', ({ schema }) => { schema.properties!.total = { type: 'string' }; }],
|
|
24
|
+
['nullable target', ({ schema }) => { Object.assign(schema.properties!.total, { type: ['number', 'null'] }); }],
|
|
25
|
+
['protected target', ({ schema }) => { schema.properties!.total.security = [{ metadataType: 'EncryptedSubject', details: '' }]; }],
|
|
26
|
+
['compliance target', ({ schema }) => { schema.properties!.total.compliance = [{ metadataType: 'PII', details: '' }]; }],
|
|
27
|
+
['GUID root identifier', ({ schema }) => { schema.properties!.id.format = 'uuid'; }],
|
|
28
|
+
['extra root property', ({ schema }) => { schema.properties!.name = { type: 'string' }; }],
|
|
29
|
+
['extra root mapping', ({ definition }) => { definition.From[0].Value.Properties.id = '$eventSourceId'; }],
|
|
30
|
+
['multiple root subscriptions', ({ definition }) => { definition.From.push(structuredClone(definition.From[0])); }],
|
|
31
|
+
['initial values', ({ definition }) => { definition.InitialModelState = '{"total":0}'; }],
|
|
32
|
+
['root join', ({ definition }) => { definition.Join.push({ Key: definition.From[0].Key, Value: { On: 'id', Properties: {}, Key: '$eventSourceId' } }); }],
|
|
33
|
+
['multiple child collections', ({ definition }) => { definition.Children.other = structuredClone(definition.Children.items); }],
|
|
34
|
+
['untyped children', ({ schema }) => { delete schema.properties!.items.items!.properties; }],
|
|
35
|
+
['numeric child property', ({ schema }) => { schema.properties!.items.items!.properties!.name = { type: 'number' }; }],
|
|
36
|
+
['missing child identifier', ({ schema }) => { delete schema.properties!.items.items!.properties!.itemId; }],
|
|
37
|
+
['child From without event Key', ({ definition }) => { delete definition.Children.items.From[0].Key; }],
|
|
38
|
+
['child removal without event Key', ({ definition }) => { delete definition.Children.items.RemovedWith[0].Key; }],
|
|
39
|
+
['shared root and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.From[0].Key; }],
|
|
40
|
+
['shared root From and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
41
|
+
['shared root removal and child From', ({ definition }) => { definition.Children.items.From[0].Key = definition.RemovedWith[0].Key; }],
|
|
42
|
+
['shared root and child removal', ({ definition }) => { definition.Children.items.RemovedWith[0].Key = definition.RemovedWith[0].Key; }],
|
|
43
|
+
['shared root From and removal', ({ definition }) => { definition.RemovedWith[0].Key = definition.From[0].Key; }],
|
|
44
|
+
['custom root key', ({ definition }) => { definition.From[0].Value.Key = 'total'; }],
|
|
45
|
+
['custom root parent key', ({ definition }) => { definition.From[0].Value.ParentKey = 'total'; }],
|
|
46
|
+
['custom child parent key', ({ definition }) => { definition.Children.items.From[0].Value.ParentKey = 'itemId'; }],
|
|
47
|
+
['child join', ({ definition }) => { definition.Children.items.Join.push({}); }],
|
|
48
|
+
['nested children', ({ definition }) => { definition.Children.items.Children.nested = structuredClone(definition.Children.items); }],
|
|
49
|
+
['value children', ({ definition }) => { definition.Children.items.FromEventProperty = 'items'; }],
|
|
50
|
+
['unknown child expression', ({ definition }) => { definition.Children.items.From[0].Value.Properties.name = '$unknown(name)'; }],
|
|
51
|
+
['unknown root expression', ({ definition }) => { definition.From[0].Value.Properties.total = '$unknown(total)'; }]
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
function mixtures(expression: string): Array<[string, Mutation]> {
|
|
55
|
+
return ['$increment', '$decrement', '$add(total)', '$subtract(total)', '$count'].filter(other => other !== expression)
|
|
56
|
+
.flatMap(other => [false, true].flatMap(otherFirst => [
|
|
57
|
+
[`${expression}/${other} same target, other first=${otherFirst}`, ({ definition }: Candidate) => {
|
|
58
|
+
const second = structuredClone(definition.From[0]);
|
|
59
|
+
second.Value.Properties.total = other;
|
|
60
|
+
if (otherFirst) definition.From.unshift(second);
|
|
61
|
+
else definition.From.push(second);
|
|
62
|
+
}],
|
|
63
|
+
[`${expression}/${other} different targets, other first=${otherFirst}`, ({ definition, schema }: Candidate) => {
|
|
64
|
+
schema.properties!.other = { type: 'number' };
|
|
65
|
+
definition.From[0].Value.Properties = otherFirst ? { other, total: expression } : { total: expression, other };
|
|
66
|
+
}]
|
|
67
|
+
] as Array<[string, Mutation]>));
|
|
68
|
+
}
|
|
69
|
+
function candidate(variant: typeof variants[number]): Candidate {
|
|
70
|
+
const compiled = variant.compile();
|
|
71
|
+
return { compiled, definition: compiled.definitions[0], schema: JSON.parse(compiled.readModels[0].Schema) };
|
|
72
|
+
}
|
|
73
|
+
const seeded: ScenarioEvent = {
|
|
74
|
+
sourceId: 'A', content: { total: 2.5 },
|
|
75
|
+
context: {
|
|
76
|
+
eventSourceId: 'A', eventType: EventType.parse('Stepped+1'), sequenceNumber: 0n,
|
|
77
|
+
occurred: new Date('2025-01-01T00:00:00Z'), correlationId: '00000000-0000-0000-0000-000000000000',
|
|
78
|
+
causation: [], tags: []
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
for (const variant of variants) {
|
|
82
|
+
for (const [name, mutate] of [...boundaries, ...mixtures(`$${variant.operation}`)]) {
|
|
83
|
+
for (const [historyName, history] of [['empty', []], ['seeded', [seeded]]] as const) {
|
|
84
|
+
describe(`when rejecting ${variant.operation} with children: ${name}, ${historyName} history`, () => {
|
|
85
|
+
let act: () => Promise<unknown>;
|
|
86
|
+
beforeEach(() => {
|
|
87
|
+
const value = candidate(variant);
|
|
88
|
+
mutate(value);
|
|
89
|
+
value.compiled.readModels[0].Schema = JSON.stringify(value.schema);
|
|
90
|
+
act = () => new ProjectionReadModelProcessor(Totals, value.compiled, value.definition).process(history);
|
|
91
|
+
});
|
|
92
|
+
it('should reject before replay with the model and contract path', () => {
|
|
93
|
+
act.should.throw(UnsupportedProjectionOperation).and.satisfy((error: Error) =>
|
|
94
|
+
error.message.includes('Totals') && /Children|From|Join|Schema|Definition/.test(error.message));
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -14,7 +14,7 @@ chai.should();
|
|
|
14
14
|
type Candidate = { compiled: ReturnType<typeof compile>; definition: ProjectionDefinition; schema: JsonSchema; operand: JsonSchema };
|
|
15
15
|
type Mutation = (candidate: Candidate) => void;
|
|
16
16
|
const boundaries: Array<[string, Mutation]> = [
|
|
17
|
-
...['$
|
|
17
|
+
...['$subtract()', '$subtract(amount + 1)', '$subtract(nested.amount)', '$subtract($eventSourceId)',
|
|
18
18
|
'$subtract(1)', '$subtract(true)', '$subtract(snake_case)', '$subtract(missing)', '$subtract(amount', '$subtract(_snake_case)'].map(expression =>
|
|
19
19
|
[expression, ({ definition }: Candidate) => { definition.From[0].Value.Properties.total = expression; }] as [string, Mutation]),
|
|
20
20
|
...['int32', 'uint32', 'float', 'double', ''].flatMap(format => [
|