@cratis/chronicle 6.14.2 → 6.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/projections/ProjectionDefinitionCompiler.d.ts +1 -1
- package/dist/projections/ProjectionDefinitionCompiler.d.ts.map +1 -1
- package/dist/projections/ProjectionDefinitionCompiler.js +3 -2
- package/dist/projections/ProjectionDefinitionCompiler.js.map +1 -1
- package/dist/projections/canonicalStringify.d.ts +3 -0
- package/dist/projections/canonicalStringify.d.ts.map +1 -0
- package/dist/projections/canonicalStringify.js +12 -0
- package/dist/projections/canonicalStringify.js.map +1 -0
- package/dist/projections/declarative/ProjectionBuilderFor.d.ts +2 -4
- package/dist/projections/declarative/ProjectionBuilderFor.d.ts.map +1 -1
- package/dist/projections/declarative/ProjectionBuilderFor.js +3 -3
- package/dist/projections/declarative/ProjectionBuilderFor.js.map +1 -1
- package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts +1 -0
- package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts.map +1 -1
- package/dist/projections/modelBound/childrenAndNestedBuilder.js +8 -5
- package/dist/projections/modelBound/childrenAndNestedBuilder.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/projections/ProjectionDefinitionCompiler.registration.spec.ts +29 -1
- package/projections/ProjectionDefinitionCompiler.ts +3 -2
- package/projections/Projections.childrenAndNested.spec.ts +130 -0
- package/projections/canonicalStringify.spec.ts +29 -0
- package/projections/canonicalStringify.ts +12 -0
- package/projections/declarative/ChildrenBuilder.spec.ts +12 -0
- package/projections/declarative/ProjectionBuilderFor.spec.ts +50 -0
- package/projections/declarative/ProjectionBuilderFor.ts +4 -5
- package/projections/modelBound/childrenAndNestedBuilder.ts +9 -5
- package/readModels/rootReadModelTypes.ts +1 -1
|
@@ -29,7 +29,7 @@ export declare class ProjectionDefinitionCompiler {
|
|
|
29
29
|
*/
|
|
30
30
|
private buildFromRecordsForType;
|
|
31
31
|
private ensureJoinEntry;
|
|
32
|
-
/** Hash the final wire definition, excluding LastUpdated itself,
|
|
32
|
+
/** Hash the final wire definition, excluding LastUpdated itself, for stable metadata. */
|
|
33
33
|
private computeStableLastUpdated;
|
|
34
34
|
}
|
|
35
35
|
//# sourceMappingURL=ProjectionDefinitionCompiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionDefinitionCompiler.d.ts","sourceRoot":"","sources":["../../projections/ProjectionDefinitionCompiler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectionDefinitionCompiler.d.ts","sourceRoot":"","sources":["../../projections/ProjectionDefinitionCompiler.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAUjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AA6BnF,wGAAwG;AACxG,qBAAa,4BAA4B;IAMjC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IANvC;;;OAGG;IACH,YACqB,gBAAgB,EAAE,wBAAwB,EAC1C,kBAAkB,EAAE,MAAM,EAC3C;IAEJ;;;;;OAKG;IACH,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,6BAA6B,CAoB5G;IAED,OAAO,CAAC,yBAAyB;IAgCjC,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,0BAA0B;IAoClC,OAAO,CAAC,wBAAwB;IAiBhC,OAAO,CAAC,yBAAyB;IA0JjC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;IAqB/B,OAAO,CAAC,eAAe;IAevB,yFAAyF;IACzF,OAAO,CAAC,wBAAwB;CASnC"}
|
|
@@ -9,6 +9,7 @@ import { rootReadModelTypes } from '../readModels/rootReadModelTypes.js';
|
|
|
9
9
|
import { JsonSchemaGenerator } from '../schemas/index.js';
|
|
10
10
|
import { WellKnownSinks } from '../sinks/index.js';
|
|
11
11
|
import { TypeIntrospector } from '../types/index.js';
|
|
12
|
+
import { canonicalStringify } from './canonicalStringify.js';
|
|
12
13
|
import { constantValueExpression } from './constantValueExpression.js';
|
|
13
14
|
import { getProjectionMetadata } from './declarative/projection.js';
|
|
14
15
|
import { ProjectionBuilderFor } from './declarative/ProjectionBuilderFor.js';
|
|
@@ -341,10 +342,10 @@ export class ProjectionDefinitionCompiler {
|
|
|
341
342
|
joinByEventType.set(key, created);
|
|
342
343
|
return created;
|
|
343
344
|
}
|
|
344
|
-
/** Hash the final wire definition, excluding LastUpdated itself,
|
|
345
|
+
/** Hash the final wire definition, excluding LastUpdated itself, for stable metadata. */
|
|
345
346
|
computeStableLastUpdated(definition) {
|
|
346
347
|
const { LastUpdated: _omit, ...rest } = definition;
|
|
347
|
-
const content =
|
|
348
|
+
const content = canonicalStringify(rest);
|
|
348
349
|
let hash = 5381;
|
|
349
350
|
for (let i = 0; i < content.length; i++) {
|
|
350
351
|
hash = ((hash << 5) + hash + content.charCodeAt(i)) >>> 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionDefinitionCompiler.js","sourceRoot":"","sources":["../../projections/ProjectionDefinitionCompiler.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAA6B,MAAM,6BAA6B,CAAC;AAGxG,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4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G,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,CAAC;QAC7F,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAClC,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,yFAAyF;IACjF,wBAAwB,CAAC,UAAmC;QAChE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAC;QACnD,MAAM,OAAO,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,IAAI,GAAG,IAAI,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,IAAI,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonicalStringify.d.ts","sourceRoot":"","sources":["../../projections/canonicalStringify.ts"],"names":[],"mappings":"AAGA,gGAAgG;AAChG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAOzE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/** Serializes a definition with recursively sorted object keys while preserving array order. */
|
|
4
|
+
export function canonicalStringify(value) {
|
|
5
|
+
return JSON.stringify(value, (_key, member) => {
|
|
6
|
+
if (member === null || typeof member !== 'object' || Array.isArray(member)) {
|
|
7
|
+
return member;
|
|
8
|
+
}
|
|
9
|
+
return Object.fromEntries(Object.keys(member).sort().map(key => [key, member[key]]));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=canonicalStringify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonicalStringify.js","sourceRoot":"","sources":["../../projections/canonicalStringify.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,gGAAgG;AAChG,MAAM,UAAU,kBAAkB,CAAC,KAA8B;IAC7D,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAe,EAAE,EAAE;QACnD,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACzE,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,EAAG,MAAkC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PropertyAccessor } from '@cratis/fundamentals';
|
|
2
|
-
import type { ChildrenDefinitionLike } from '../modelBound/childrenAndNestedBuilder.js';
|
|
3
2
|
import { IChildrenBuilder } from './IChildrenBuilder.js';
|
|
4
3
|
import { INestedBuilder } from './INestedBuilder.js';
|
|
5
4
|
import { IProjectionBuilderFor } from './IProjectionBuilderFor.js';
|
|
6
|
-
import { ContractEventType, ProjectionBuilderCore } from './ProjectionBuilderCore.js';
|
|
5
|
+
import { ChildrenDefinitionLike, ContractEventType, ProjectionBuilderCore } from './ProjectionBuilderCore.js';
|
|
7
6
|
/**
|
|
8
7
|
* Concrete implementation of {@link IProjectionBuilderFor} that accumulates projection
|
|
9
8
|
* configuration and produces a Chronicle-compatible projection definition payload.
|
|
@@ -62,8 +61,7 @@ export declare class ProjectionBuilderFor<TReadModel> extends ProjectionBuilderC
|
|
|
62
61
|
getMappedReadModelProperties(): string[];
|
|
63
62
|
/**
|
|
64
63
|
* Computes a stable, deterministic ISO timestamp from the projection definition content,
|
|
65
|
-
* excluding the LastUpdated field itself.
|
|
66
|
-
* a repeated registration of an unchanged definition as a definition change.
|
|
64
|
+
* excluding the LastUpdated field itself.
|
|
67
65
|
*/
|
|
68
66
|
private computeStableLastUpdated;
|
|
69
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionBuilderFor.d.ts","sourceRoot":"","sources":["../../../projections/declarative/ProjectionBuilderFor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectionBuilderFor.d.ts","sourceRoot":"","sources":["../../../projections/declarative/ProjectionBuilderFor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAoC,MAAM,sBAAsB,CAAC;AAI1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE9G;;;;GAIG;AACH,qBAAa,oBAAoB,CAAC,UAAU,CAAE,SAAQ,qBAAqB,CAAC,UAAU,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAE,YAAW,qBAAqB,CAAC,UAAU,CAAC;IAClK,OAAO,CAAC,gBAAgB,CAA0C;IAClE,OA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AE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAA;KAAE,CAE9H;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwBxE;IAED;;;OAGG;IACH,4BAA4B,IAAI,MAAM,EAAE,CAoBvC;IAED;;;OAGG;IACH,OAAO,CAAC,wBAAwB;CASnC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { AutoMap } from '@cratis/chronicle.contracts';
|
|
4
4
|
import { PropertyPathResolverProxyHandler } from '@cratis/fundamentals';
|
|
5
5
|
import { EventSequenceId } from '../../eventSequences/EventSequenceId.js';
|
|
6
|
+
import { canonicalStringify } from '../canonicalStringify.js';
|
|
6
7
|
import { ChildrenBuilder } from './ChildrenBuilder.js';
|
|
7
8
|
import { NestedBuilder } from './NestedBuilder.js';
|
|
8
9
|
import { ProjectionBuilderCore } from './ProjectionBuilderCore.js';
|
|
@@ -152,12 +153,11 @@ export class ProjectionBuilderFor extends ProjectionBuilderCore {
|
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
154
155
|
* Computes a stable, deterministic ISO timestamp from the projection definition content,
|
|
155
|
-
* excluding the LastUpdated field itself.
|
|
156
|
-
* a repeated registration of an unchanged definition as a definition change.
|
|
156
|
+
* excluding the LastUpdated field itself.
|
|
157
157
|
*/
|
|
158
158
|
computeStableLastUpdated(definition) {
|
|
159
159
|
const { LastUpdated: _omit, ...rest } = definition;
|
|
160
|
-
const content =
|
|
160
|
+
const content = canonicalStringify(rest);
|
|
161
161
|
let hash = 5381;
|
|
162
162
|
for (let i = 0; i < content.length; i++) {
|
|
163
163
|
hash = ((hash << 5) + hash + content.charCodeAt(i)) >>> 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectionBuilderFor.js","sourceRoot":"","sources":["../../../projections/declarative/ProjectionBuilderFor.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAoB,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"ProjectionBuilderFor.js","sourceRoot":"","sources":["../../../projections/declarative/ProjectionBuilderFor.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAoB,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAA6C,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE9G;;;;GAIG;AACH,MAAM,OAAO,oBAAiC,SAAQ,qBAAmE;IAC7G,gBAAgB,GAAW,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC;IAC1D,cAAc,CAAqB;IACnC,WAAW,GAAY,IAAI,CAAC;IAC5B,OAAO,GAAY,IAAI,CAAC;IACxB,gBAAgB,CAAuB;IACvC,WAAW,CAAqB;IACvB,mBAAmB,GAAwB,EAAE,CAAC;IAE/D;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IACpC,CAAC;IAED,kBAAkB;IAClB,iBAAiB,CAAC,eAAuB;QACrC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,OAAO,I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ound/childrenAndNestedBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAOtD,OAAO,EAAE,oBAAoB,EAA2B,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"childrenAndNestedBuilder.d.ts","sourceRoot":"","sources":["../../../projections/modelBound/childrenAndNestedBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAOtD,OAAO,EAAE,oBAAoB,EAA2B,MAAM,mBAAmB,CAAC;AAelF,yFAAyF;AACzF,MAAM,MAAM,iBAAiB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvF,sDAAsD;AACtD,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,iBAAiB,CAAC;IACvB,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CACjF;AAED,uEAAuE;AACvE,MAAM,WAAW,sBAAsB;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IACjD,GAAG,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,eAAe,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IACxF,WAAW,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,iBAAiB,CAAC;QAAC,KAAK,EAAE;YAAE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AED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,sBAAsB,CAczF"}
|
|
@@ -15,6 +15,7 @@ import { getDecrementMetadata } from './decrement.js';
|
|
|
15
15
|
import { getFromEventMetadata } from './fromEvent.js';
|
|
16
16
|
import { getIncrementMetadata } from './increment.js';
|
|
17
17
|
import { isNested } from './nested.js';
|
|
18
|
+
import { isNoAutoMap, isPropertyNoAutoMap } from './noAutoMap.js';
|
|
18
19
|
import { getRemovedWithClassMetadata, getRemovedWithPropertyMetadata } from './removedWith.js';
|
|
19
20
|
import { getRemovedWithJoinClassMetadata, getRemovedWithJoinPropertyMetadata } from './removedWithJoin.js';
|
|
20
21
|
import { getSetFromMetadata } from './setFrom.js';
|
|
@@ -114,7 +115,7 @@ export function applyPropertyMappings(prototype, property, fromByEventType) {
|
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
|
-
function createEmptyChildrenDefinition() {
|
|
118
|
+
function createEmptyChildrenDefinition(parentType, childType) {
|
|
118
119
|
return {
|
|
119
120
|
IdentifiedBy: '$eventSourceId',
|
|
120
121
|
From: [],
|
|
@@ -123,8 +124,10 @@ function createEmptyChildrenDefinition() {
|
|
|
123
124
|
All: { Properties: {}, IncludeChildren: false, AutoMap: AutoMap.Inherit },
|
|
124
125
|
RemovedWith: [],
|
|
125
126
|
RemovedWithJoin: [],
|
|
126
|
-
AutoMap: AutoMap.Enabled,
|
|
127
|
-
Nested: {}
|
|
127
|
+
AutoMap: isNoAutoMap(parentType) || (childType !== undefined && isNoAutoMap(childType)) ? AutoMap.Disabled : AutoMap.Enabled,
|
|
128
|
+
Nested: {},
|
|
129
|
+
NoAutoMapProperties: childType === undefined ? [] : TypeIntrospector.getTrackedProperties(childType)
|
|
130
|
+
.filter(property => isPropertyNoAutoMap(childType.prototype, property))
|
|
128
131
|
};
|
|
129
132
|
}
|
|
130
133
|
/**
|
|
@@ -258,7 +261,7 @@ function populateFromType(definition, childType) {
|
|
|
258
261
|
*/
|
|
259
262
|
export function buildChildrenEntry(type, property, metadataList) {
|
|
260
263
|
const childType = resolveChildElementType(type, property);
|
|
261
|
-
const definition = createEmptyChildrenDefinition();
|
|
264
|
+
const definition = createEmptyChildrenDefinition(type, childType);
|
|
262
265
|
const explicitIdentifiedBy = metadataList.find(metadata => metadata.identifiedBy)?.identifiedBy;
|
|
263
266
|
definition.IdentifiedBy = explicitIdentifiedBy ?? discoverIdentifiedBy(childType) ?? '$eventSourceId';
|
|
264
267
|
for (const metadata of metadataList) {
|
|
@@ -283,7 +286,7 @@ export function buildChildrenEntry(type, property, metadataList) {
|
|
|
283
286
|
*/
|
|
284
287
|
export function buildNestedEntry(type, property) {
|
|
285
288
|
const nestedType = resolveNestedType(type, property);
|
|
286
|
-
const definition = createEmptyChildrenDefinition();
|
|
289
|
+
const definition = createEmptyChildrenDefinition(type, nestedType);
|
|
287
290
|
definition.IdentifiedBy = notSetPropertyPath;
|
|
288
291
|
// A @clearWith on the property carrying @nested clears this nested object, the same as a
|
|
289
292
|
// class-level @clearWith on the nested type itself (which populateFromType also honors).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"childrenAndNestedBuilder.js","sourceRoot":"","sources":["../../../projections/modelBound/childrenAndNestedBuilder.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAe,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,k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AC1D,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;YACjB,GAAG,EAAE,SAAS;YACd,KAAK,EAAE;gBACH,GAAG,EAAE,QAAQ,CAAC,GAAG,IAAI,gBAAgB;gBACrC,SAAS,EAAE,QAAQ,CAAC,SAAS,IAAI,gBAAgB;gBACjD,UAAU,EAAE,EAAE;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;IAED,gBAAgB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACxC,OAAO,UAAU,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAc,EAAE,QAAgB;IAC7D,MAAM,UAAU,GAAG,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,6BAA6B,EAAE,CAAC;IACnD,UAAU,CAAC,YAAY,GAAG,kBAAkB,CAAC;IAE7C,yFAAyF;IACzF,yFAAyF;IACzF,KAAK,MAAM,SAAS,IAAI,4BAA4B,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC7E,MAAM,SAAS,GAAG,mBAAmB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAC3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzC,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"childrenAndNestedBuilder.js","sourceRoot":"","sources":["../../../projections/modelBound/childrenAndNestedBuilder.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,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IACrD,MAAM,UAAU,GAAG,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACnE,UAAU,CAAC,YAAY,GAAG,kBAAkB,CAAC;IAE7C,yFAAyF;IACzF,yFAAyF;IACzF,KAAK,MAAM,SAAS,IAAI,4BAA4B,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC7E,MAAM,SAAS,GAAG,mBAAmB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAC3D,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrG,CAAC;IAED,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACzC,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.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/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/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/callResults.ts","../connection/clientVersion.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.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/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/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/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.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/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.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","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/constantValueExpression.ts","../projections/index.ts","../projections/notSetPropertyPath.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.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/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/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/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/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/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.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","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.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","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.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"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/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/node/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/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/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/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/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/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/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/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/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/fs/package.json","../../node_modules/fs/promises/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/module/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/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/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/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/timers/package.json","../../node_modules/timers/promises/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/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":["../ChronicleClient.ts","../ChronicleOptions.ts","../EventStore.ts","../EventStoreName.ts","../EventStoreNamespaceName.ts","../IChronicleClient.ts","../IEventStore.ts","../Metrics.ts","../Tracing.ts","../index.ts","../artifacts/DefaultClientArtifactsProvider.ts","../artifacts/IClientArtifactsProvider.ts","../artifacts/index.ts","../artifacts/validateArtifactSchemas.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/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/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/callResults.ts","../connection/clientVersion.ts","../connection/fetchOAuthAccessToken.ts","../connection/formatServerAddress.ts","../connection/index.ts","../correlation/CorrelationId.ts","../correlation/CorrelationIdManager.ts","../correlation/ICorrelationIdAccessor.ts","../correlation/ICorrelationIdSetter.ts","../correlation/index.ts","../eventSequences/AppendError.ts","../eventSequences/AppendOperationsBroadcaster.ts","../eventSequences/AppendOptions.ts","../eventSequences/AppendResult.ts","../eventSequences/AppendedEventWithResult.ts","../eventSequences/CompleteStreamError.ts","../eventSequences/CompleteStreamResult.ts","../eventSequences/ConcurrencyScope.ts","../eventSequences/ConcurrencyViolation.ts","../eventSequences/ConstraintViolation.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/TransactionalEventSequence.ts","../eventSequences/WaitForCompletionOptions.ts","../eventSequences/WaitForCompletionResult.ts","../eventSequences/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/Tag.ts","../events/WireEventContext.ts","../events/eventTypeDecorator.ts","../events/filterEventsByTagDecorator.ts","../events/index.ts","../events/isRegisteredEvent.ts","../events/mergeTags.ts","../events/tagDecorator.ts","../events/toClientEventContext.ts","../events/constraints/ConstraintBuilder.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/constraint.ts","../events/constraints/index.ts","../events/constraints/removeConstraint.ts","../events/constraints/unique.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","../identities/IIdentityManager.ts","../identities/IdentityManager.ts","../identities/index.ts","../identity/IIdentityProvider.ts","../identity/Identity.ts","../identity/IdentityProvider.ts","../identity/index.ts","../jobs/IJobs.ts","../jobs/JobId.ts","../jobs/Jobs.ts","../jobs/index.ts","../observation/FailedPartition.ts","../observation/FailedPartitionAttempt.ts","../observation/FailedPartitions.ts","../observation/ICanBeNotifiedWhenPartitionReplayed.ts","../observation/ICanBeNotifiedWhenReplay.ts","../observation/IFailedPartitions.ts","../observation/IObservers.ts","../observation/ObserverId.ts","../observation/ObserverInformation.ts","../observation/ObserverRemovalOutcome.ts","../observation/ObserverRemovalResult.ts","../observation/ObserverRunningState.ts","../observation/ObserverType.ts","../observation/Observers.ts","../observation/index.ts","../observation/notifyReplayLifecycle.ts","../observation/toClientFailedPartition.ts","../observation/toObserverInformation.ts","../observation/toObserverRemovalResult.ts","../observation/toObserverRunningState.ts","../projections/CompiledProjectionDefinitions.ts","../projections/GlobalHandlerPropertyNotOnVariant.ts","../projections/IProjections.ts","../projections/ProjectionDefinitionCompiler.ts","../projections/ProjectionId.ts","../projections/ProjectionQueryResult.ts","../projections/ProjectionState.ts","../projections/Projections.ts","../projections/ResolvedModelBoundMetadata.ts","../projections/UnableToQueryProjection.ts","../projections/VariantMustDeclareEntersOnEvent.ts","../projections/VariantReclassifier.ts","../projections/canonicalStringify.ts","../projections/constantValueExpression.ts","../projections/index.ts","../projections/notSetPropertyPath.ts","../projections/declarative/AddBuilder.ts","../projections/declarative/AddChildBuilder.ts","../projections/declarative/AllSetBuilder.ts","../projections/declarative/ChildrenBuilder.ts","../projections/declarative/CompositeKeyBuilder.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/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/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/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/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/IReactors.ts","../reactors/ReactorId.ts","../reactors/ReactorResultHandler.ts","../reactors/ReactorSideEffects.ts","../reactors/Reactors.ts","../reactors/index.ts","../reactors/onceOnly.ts","../reactors/reactor.ts","../reactors/replay.ts","../readModels/IMaterializedReadModels.ts","../readModels/IReadModels.ts","../readModels/MaterializedReadModels.ts","../readModels/ReadModelChangeset.ts","../readModels/ReadModelId.ts","../readModels/ReadModelSnapshot.ts","../readModels/ReadModelSubjectResolver.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","../reducers/IReducers.ts","../reducers/ReducerEventDispatcher.ts","../reducers/ReducerEventHandler.ts","../reducers/ReducerId.ts","../reducers/Reducers.ts","../reducers/index.ts","../reducers/reducer.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","../testing/ReadModelScenario.ts","../testing/ReadModelScenarioGiven.ts","../testing/ReadModelScenarioGivenBuilder.ts","../testing/index.ts","../transactions/IUnitOfWork.ts","../transactions/IUnitOfWorkManager.ts","../transactions/NoUnitOfWorkHasBeenStarted.ts","../transactions/UnitOfWork.ts","../transactions/UnitOfWorkManager.ts","../transactions/index.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"],"packageJsons":["../package.json","../../node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@bufbuild/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/package.json","../../node_modules/@cratis/chronicle.contracts/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/node/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/ts-error/package.json","../../node_modules/undici-types/package.json","../../node_modules/undici/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/gen/google/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/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/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/reflect/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/dist/esm/wkt/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/@bufbuild/protobuf/wire/package.json","../../node_modules/@cratis/chronicle.contracts/node_modules/nice-grpc-common/package.json","../../node_modules/@cratis/fundamentals/dist/esm/geospatial/package.json","../../node_modules/@cratis/fundamentals/dist/esm/json/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/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/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/fs/package.json","../../node_modules/fs/promises/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/module/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/protobufjs/node_modules/@types/long/package.json","../../node_modules/protobufjs/node_modules/long/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/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/timers/package.json","../../node_modules/timers/promises/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/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
import 'reflect-metadata';
|
|
5
|
-
import { readFileSync } from 'node:fs';
|
|
5
|
+
import { readFileSync, writeFileSync } from 'node:fs';
|
|
6
6
|
import { field, Constructor } from '@cratis/fundamentals';
|
|
7
7
|
import { chai, describe, it, vi } from 'vitest';
|
|
8
8
|
import type { IClientArtifactsProvider } from '../artifacts/index.js';
|
|
@@ -252,6 +252,19 @@ chai.should();
|
|
|
252
252
|
const goldenUrl = new URL('./ProjectionDefinitionCompiler.registration.golden.json', import.meta.url);
|
|
253
253
|
|
|
254
254
|
describe('projection registration payload', () => {
|
|
255
|
+
if (process.env.UPDATE_PROJECTION_GOLDEN === '1') {
|
|
256
|
+
it('regenerates the golden from registration payloads', async () => {
|
|
257
|
+
const goldens = JSON.parse(readFileSync(goldenUrl, 'utf8')) as Array<{ name: string; payload: string }>;
|
|
258
|
+
for (const golden of goldens) {
|
|
259
|
+
const testCase = cases.find(candidate => candidate.name === golden.name);
|
|
260
|
+
if (!testCase) throw new Error(`No registration case for golden '${golden.name}'.`);
|
|
261
|
+
golden.payload = await captureRegistration(artifactsFor(testCase));
|
|
262
|
+
}
|
|
263
|
+
if (goldens.length !== cases.length) throw new Error('Registration golden and cases have different lengths.');
|
|
264
|
+
writeFileSync(goldenUrl, `${JSON.stringify(goldens, null, 2)}\n`);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
|
|
255
268
|
for (const testCase of cases) {
|
|
256
269
|
it(`should match the registration golden for ${testCase.name}`, async () => {
|
|
257
270
|
const actual = await captureRegistration(artifactsFor(testCase));
|
|
@@ -270,6 +283,21 @@ describe('projection registration payload', () => {
|
|
|
270
283
|
});
|
|
271
284
|
}
|
|
272
285
|
|
|
286
|
+
it('should hash nested model-bound mappings after compiling the final definition', () => {
|
|
287
|
+
const hashFor = (propertyExpression: string): string => {
|
|
288
|
+
class HashedProjection { id!: string; name!: string; }
|
|
289
|
+
setFrom(ItemCreated, propertyExpression)(HashedProjection.prototype, 'name');
|
|
290
|
+
fromEvent(ItemCreated)(HashedProjection);
|
|
291
|
+
const artifacts = artifactsFor(cases[0]);
|
|
292
|
+
artifacts.readModels = [HashedProjection];
|
|
293
|
+
const definition = new ProjectionDefinitionCompiler(artifacts, 'test-sink').compile([], [HashedProjection]).definitions[0];
|
|
294
|
+
return definition.LastUpdated.Value;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
hashFor('name').should.not.equal(hashFor('quantity'));
|
|
298
|
+
hashFor('name').should.equal(hashFor('name'));
|
|
299
|
+
});
|
|
300
|
+
|
|
273
301
|
it('should reject multiple projections for one read model', () => {
|
|
274
302
|
const artifacts = artifactsFor(cases.find(testCase => testCase.name === 'declarative')!);
|
|
275
303
|
(() => new ProjectionDefinitionCompiler(artifacts, 'test-sink').compile(
|
|
@@ -12,6 +12,7 @@ import { rootReadModelTypes } from '../readModels/rootReadModelTypes.js';
|
|
|
12
12
|
import { JsonSchemaGenerator } from '../schemas/index.js';
|
|
13
13
|
import { WellKnownSinks } from '../sinks/index.js';
|
|
14
14
|
import { TypeIntrospector } from '../types/index.js';
|
|
15
|
+
import { canonicalStringify } from './canonicalStringify.js';
|
|
15
16
|
import { CompiledProjectionDefinitions } from './CompiledProjectionDefinitions.js';
|
|
16
17
|
import { constantValueExpression } from './constantValueExpression.js';
|
|
17
18
|
import { getProjectionMetadata } from './declarative/projection.js';
|
|
@@ -373,10 +374,10 @@ export class ProjectionDefinitionCompiler {
|
|
|
373
374
|
return created;
|
|
374
375
|
}
|
|
375
376
|
|
|
376
|
-
/** Hash the final wire definition, excluding LastUpdated itself,
|
|
377
|
+
/** Hash the final wire definition, excluding LastUpdated itself, for stable metadata. */
|
|
377
378
|
private computeStableLastUpdated(definition: Record<string, unknown>): string {
|
|
378
379
|
const { LastUpdated: _omit, ...rest } = definition;
|
|
379
|
-
const content =
|
|
380
|
+
const content = canonicalStringify(rest);
|
|
380
381
|
let hash = 5381;
|
|
381
382
|
for (let i = 0; i < content.length; i++) {
|
|
382
383
|
hash = ((hash << 5) + hash + content.charCodeAt(i)) >>> 0;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
import 'reflect-metadata';
|
|
5
|
+
import { AutoMap } from '@cratis/chronicle.contracts';
|
|
5
6
|
import { field } from '@cratis/fundamentals';
|
|
6
7
|
import { describe, expect, it, vi } from 'vitest';
|
|
7
8
|
import { IClientArtifactsProvider } from '../artifacts/index.js';
|
|
@@ -11,6 +12,7 @@ import { childrenFrom } from './modelBound/childrenFrom.js';
|
|
|
11
12
|
import { clearWith } from './modelBound/clearWith.js';
|
|
12
13
|
import { fromEvent } from './modelBound/fromEvent.js';
|
|
13
14
|
import { nested } from './modelBound/nested.js';
|
|
15
|
+
import { noAutoMap } from './modelBound/noAutoMap.js';
|
|
14
16
|
import { setFrom } from './modelBound/setFrom.js';
|
|
15
17
|
import { Projections } from './Projections.js';
|
|
16
18
|
|
|
@@ -66,12 +68,14 @@ class OrderLine {
|
|
|
66
68
|
quantity!: number;
|
|
67
69
|
}
|
|
68
70
|
setFrom(LineQuantityChanged)(OrderLine.prototype, 'quantity');
|
|
71
|
+
noAutoMap(OrderLine.prototype, 'quantity');
|
|
69
72
|
clearWith(LineQuantityCleared)(OrderLine.prototype, 'quantity');
|
|
70
73
|
|
|
71
74
|
class OrderSummary {
|
|
72
75
|
total!: number;
|
|
73
76
|
}
|
|
74
77
|
setFrom(SummaryUpdated)(OrderSummary.prototype, 'total');
|
|
78
|
+
noAutoMap(OrderSummary.prototype, 'total');
|
|
75
79
|
clearWith(SummaryTotalCleared)(OrderSummary.prototype, 'total');
|
|
76
80
|
clearWith(SummaryCleared)(OrderSummary);
|
|
77
81
|
|
|
@@ -99,6 +103,80 @@ clearWith(NoteCleared)(Order.prototype, 'note');
|
|
|
99
103
|
childrenFrom(TagAdded)(Order.prototype, 'tags');
|
|
100
104
|
fromEvent(OrderCreated)(Order);
|
|
101
105
|
|
|
106
|
+
class ExplicitLine {
|
|
107
|
+
productId!: string;
|
|
108
|
+
quantity!: number;
|
|
109
|
+
}
|
|
110
|
+
setFrom(LineQuantityChanged)(ExplicitLine.prototype, 'quantity');
|
|
111
|
+
noAutoMap(ExplicitLine);
|
|
112
|
+
|
|
113
|
+
class ExplicitSummary {
|
|
114
|
+
total!: number;
|
|
115
|
+
}
|
|
116
|
+
setFrom(SummaryUpdated)(ExplicitSummary.prototype, 'total');
|
|
117
|
+
noAutoMap(ExplicitSummary);
|
|
118
|
+
|
|
119
|
+
class OrderWithExplicitParts {
|
|
120
|
+
id!: string;
|
|
121
|
+
lines!: ExplicitLine[];
|
|
122
|
+
summary!: ExplicitSummary | undefined;
|
|
123
|
+
}
|
|
124
|
+
childrenFrom(LineAdded, undefined, 'productId')(OrderWithExplicitParts.prototype, 'lines');
|
|
125
|
+
field(Array, { enumerable: true, genericArguments: [ExplicitLine] })(OrderWithExplicitParts.prototype, 'lines');
|
|
126
|
+
nested(OrderWithExplicitParts.prototype, 'summary');
|
|
127
|
+
field(ExplicitSummary)(OrderWithExplicitParts.prototype, 'summary');
|
|
128
|
+
fromEvent(OrderCreated)(OrderWithExplicitParts);
|
|
129
|
+
|
|
130
|
+
class OrderWithoutAutoMap {
|
|
131
|
+
id!: string;
|
|
132
|
+
lines!: OrderLine[];
|
|
133
|
+
summary!: OrderSummary | undefined;
|
|
134
|
+
}
|
|
135
|
+
childrenFrom(LineAdded, undefined, 'productId')(OrderWithoutAutoMap.prototype, 'lines');
|
|
136
|
+
field(Array, { enumerable: true, genericArguments: [OrderLine] })(OrderWithoutAutoMap.prototype, 'lines');
|
|
137
|
+
nested(OrderWithoutAutoMap.prototype, 'summary');
|
|
138
|
+
field(OrderSummary)(OrderWithoutAutoMap.prototype, 'summary');
|
|
139
|
+
noAutoMap(OrderWithoutAutoMap);
|
|
140
|
+
fromEvent(OrderCreated)(OrderWithoutAutoMap);
|
|
141
|
+
|
|
142
|
+
class Grandchild {
|
|
143
|
+
id!: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
class ChildWithGrandchildren {
|
|
147
|
+
grandchildren!: Grandchild[];
|
|
148
|
+
detail!: Grandchild | undefined;
|
|
149
|
+
}
|
|
150
|
+
childrenFrom(LineAdded)(ChildWithGrandchildren.prototype, 'grandchildren');
|
|
151
|
+
field(Array, { enumerable: true, genericArguments: [Grandchild] })(ChildWithGrandchildren.prototype, 'grandchildren');
|
|
152
|
+
nested(ChildWithGrandchildren.prototype, 'detail');
|
|
153
|
+
field(Grandchild)(ChildWithGrandchildren.prototype, 'detail');
|
|
154
|
+
|
|
155
|
+
class DecoratedChildWithGrandchildren {
|
|
156
|
+
grandchildren!: Grandchild[];
|
|
157
|
+
detail!: Grandchild | undefined;
|
|
158
|
+
}
|
|
159
|
+
childrenFrom(LineAdded)(DecoratedChildWithGrandchildren.prototype, 'grandchildren');
|
|
160
|
+
field(Array, { enumerable: true, genericArguments: [Grandchild] })(DecoratedChildWithGrandchildren.prototype, 'grandchildren');
|
|
161
|
+
nested(DecoratedChildWithGrandchildren.prototype, 'detail');
|
|
162
|
+
field(Grandchild)(DecoratedChildWithGrandchildren.prototype, 'detail');
|
|
163
|
+
noAutoMap(DecoratedChildWithGrandchildren);
|
|
164
|
+
|
|
165
|
+
class OrderWithDecoratedChild {
|
|
166
|
+
children!: DecoratedChildWithGrandchildren[];
|
|
167
|
+
}
|
|
168
|
+
childrenFrom(LineAdded)(OrderWithDecoratedChild.prototype, 'children');
|
|
169
|
+
field(Array, { enumerable: true, genericArguments: [DecoratedChildWithGrandchildren] })(OrderWithDecoratedChild.prototype, 'children');
|
|
170
|
+
fromEvent(OrderCreated)(OrderWithDecoratedChild);
|
|
171
|
+
|
|
172
|
+
class DecoratedOrderWithUndecoratedChild {
|
|
173
|
+
children!: ChildWithGrandchildren[];
|
|
174
|
+
}
|
|
175
|
+
childrenFrom(LineAdded)(DecoratedOrderWithUndecoratedChild.prototype, 'children');
|
|
176
|
+
field(Array, { enumerable: true, genericArguments: [ChildWithGrandchildren] })(DecoratedOrderWithUndecoratedChild.prototype, 'children');
|
|
177
|
+
noAutoMap(DecoratedOrderWithUndecoratedChild);
|
|
178
|
+
fromEvent(OrderCreated)(DecoratedOrderWithUndecoratedChild);
|
|
179
|
+
|
|
102
180
|
interface FromRecord {
|
|
103
181
|
Key: { Id: string };
|
|
104
182
|
Value: { Properties: Record<string, string>; Key: string; ParentKey: string };
|
|
@@ -106,8 +184,12 @@ interface FromRecord {
|
|
|
106
184
|
|
|
107
185
|
interface ChildrenDefinition {
|
|
108
186
|
IdentifiedBy: string;
|
|
187
|
+
AutoMap: AutoMap;
|
|
188
|
+
NoAutoMapProperties: string[];
|
|
109
189
|
From: FromRecord[];
|
|
110
190
|
RemovedWith: Array<{ Key: { Id: string }; Value: { Key: string; ParentKey: string } }>;
|
|
191
|
+
Children: Record<string, ChildrenDefinition>;
|
|
192
|
+
Nested: Record<string, ChildrenDefinition>;
|
|
111
193
|
}
|
|
112
194
|
|
|
113
195
|
interface BuiltDefinition {
|
|
@@ -156,6 +238,8 @@ describe('Projections with childrenFrom, nested and clearWith', () => {
|
|
|
156
238
|
const lines = definition.Children.lines;
|
|
157
239
|
|
|
158
240
|
expect(lines.IdentifiedBy).toBe('productId');
|
|
241
|
+
expect(lines.AutoMap).toBe(AutoMap.Enabled);
|
|
242
|
+
expect(lines.NoAutoMapProperties).toEqual(['quantity']);
|
|
159
243
|
const creationEntry = lines.From.find(candidate => candidate.Key.Id === 'LineAdded')!;
|
|
160
244
|
expect(creationEntry.Value.Key).toBe('$eventSourceId');
|
|
161
245
|
expect(creationEntry.Value.ParentKey).toBe('$eventSourceId');
|
|
@@ -182,6 +266,8 @@ describe('Projections with childrenFrom, nested and clearWith', () => {
|
|
|
182
266
|
const tags = definition.Children.tags;
|
|
183
267
|
|
|
184
268
|
expect(tags.From.some(candidate => candidate.Key.Id === 'TagAdded')).toBe(true);
|
|
269
|
+
expect(tags.AutoMap).toBe(AutoMap.Enabled);
|
|
270
|
+
expect(tags.NoAutoMapProperties).toEqual([]);
|
|
185
271
|
});
|
|
186
272
|
|
|
187
273
|
it('should build a nested definition honoring a class-level clearWith on the nested type', async () => {
|
|
@@ -192,6 +278,8 @@ describe('Projections with childrenFrom, nested and clearWith', () => {
|
|
|
192
278
|
const summary = definition.Nested.summary;
|
|
193
279
|
|
|
194
280
|
expect(summary.IdentifiedBy).toBe('*NotSet*');
|
|
281
|
+
expect(summary.AutoMap).toBe(AutoMap.Enabled);
|
|
282
|
+
expect(summary.NoAutoMapProperties).toEqual(['total']);
|
|
195
283
|
const updateEntry = summary.From.find(candidate => candidate.Key.Id === 'SummaryUpdated')!;
|
|
196
284
|
expect(updateEntry.Value.Properties.total).toBe('total');
|
|
197
285
|
expect(summary.RemovedWith).toContainEqual({ Key: expect.objectContaining({ Id: 'SummaryCleared' }), Value: { Key: '$eventSourceId', ParentKey: '' } });
|
|
@@ -208,6 +296,48 @@ describe('Projections with childrenFrom, nested and clearWith', () => {
|
|
|
208
296
|
expect(summary.RemovedWith.some(candidate => candidate.Key.Id === 'SummaryTotalCleared')).toBe(false);
|
|
209
297
|
});
|
|
210
298
|
|
|
299
|
+
it('should disable AutoMap on decorated child and nested types while retaining explicit mappings', async () => {
|
|
300
|
+
const { projections, registerMock } = createProjections([OrderWithExplicitParts]);
|
|
301
|
+
await projections.register();
|
|
302
|
+
|
|
303
|
+
const definition = registerMock.mock.calls[0][0].Projections[0] as BuiltDefinition;
|
|
304
|
+
expect(definition.Children.lines.AutoMap).toBe(AutoMap.Disabled);
|
|
305
|
+
expect(definition.Children.lines.From.find(candidate => candidate.Key.Id === 'LineQuantityChanged')?.Value.Properties.quantity).toBe('quantity');
|
|
306
|
+
expect(definition.Nested.summary.AutoMap).toBe(AutoMap.Disabled);
|
|
307
|
+
expect(definition.Nested.summary.From.find(candidate => candidate.Key.Id === 'SummaryUpdated')?.Value.Properties.total).toBe('total');
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
it('should inherit disabled AutoMap from the declaring model for child and nested types', async () => {
|
|
311
|
+
const { projections, registerMock } = createProjections([OrderWithoutAutoMap]);
|
|
312
|
+
await projections.register();
|
|
313
|
+
|
|
314
|
+
const definition = registerMock.mock.calls[0][0].Projections[0] as BuiltDefinition;
|
|
315
|
+
expect(definition.Children.lines.AutoMap).toBe(AutoMap.Disabled);
|
|
316
|
+
expect(definition.Nested.summary.AutoMap).toBe(AutoMap.Disabled);
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
it('should disable grandchild definitions when their declaring child type is decorated', async () => {
|
|
320
|
+
const { projections, registerMock } = createProjections([OrderWithDecoratedChild]);
|
|
321
|
+
await projections.register();
|
|
322
|
+
|
|
323
|
+
const definition = registerMock.mock.calls[0][0].Projections[0] as BuiltDefinition;
|
|
324
|
+
const child = definition.Children.children;
|
|
325
|
+
expect(child.AutoMap).toBe(AutoMap.Disabled);
|
|
326
|
+
expect(child.Children.grandchildren.AutoMap).toBe(AutoMap.Disabled);
|
|
327
|
+
expect(child.Nested.detail.AutoMap).toBe(AutoMap.Disabled);
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
it('should not cascade the decorated root policy past an undecorated child', async () => {
|
|
331
|
+
const { projections, registerMock } = createProjections([DecoratedOrderWithUndecoratedChild]);
|
|
332
|
+
await projections.register();
|
|
333
|
+
|
|
334
|
+
const definition = registerMock.mock.calls[0][0].Projections[0] as BuiltDefinition;
|
|
335
|
+
const child = definition.Children.children;
|
|
336
|
+
expect(child.AutoMap).toBe(AutoMap.Disabled);
|
|
337
|
+
expect(child.Children.grandchildren.AutoMap).toBe(AutoMap.Enabled);
|
|
338
|
+
expect(child.Nested.detail.AutoMap).toBe(AutoMap.Enabled);
|
|
339
|
+
});
|
|
340
|
+
|
|
211
341
|
it('should build a nested definition honoring a property-level clearWith', async () => {
|
|
212
342
|
const { projections, registerMock } = createProjections([Order]);
|
|
213
343
|
await projections.register();
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { canonicalStringify } from './canonicalStringify.js';
|
|
6
|
+
|
|
7
|
+
chai.should();
|
|
8
|
+
|
|
9
|
+
describe('canonicalStringify', () => {
|
|
10
|
+
it('should include recursively sorted mapping keys', () => {
|
|
11
|
+
const definition = { From: [{ Value: { Properties: { name: 'title' }, Key: 'id' }, Key: { Id: 'Created' } }] };
|
|
12
|
+
|
|
13
|
+
canonicalStringify(definition).should.equal('{"From":[{"Key":{"Id":"Created"},"Value":{"Key":"id","Properties":{"name":"title"}}}]}');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('should produce the same serialization when object keys are reordered at any depth', () => {
|
|
17
|
+
const first = { From: [{ Value: { Properties: { name: 'title', count: '$count' }, Key: 'id' } }], All: { AutoMap: 0 } };
|
|
18
|
+
const reordered = { All: { AutoMap: 0 }, From: [{ Value: { Key: 'id', Properties: { count: '$count', name: 'title' } } }] };
|
|
19
|
+
|
|
20
|
+
canonicalStringify(first).should.equal(canonicalStringify(reordered));
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('should preserve array order', () => {
|
|
24
|
+
const first = { From: [{ Key: 'Created' }, { Key: 'Updated' }] };
|
|
25
|
+
const reordered = { From: [{ Key: 'Updated' }, { Key: 'Created' }] };
|
|
26
|
+
|
|
27
|
+
canonicalStringify(first).should.not.equal(canonicalStringify(reordered));
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/** Serializes a definition with recursively sorted object keys while preserving array order. */
|
|
5
|
+
export function canonicalStringify(value: Record<string, unknown>): string {
|
|
6
|
+
return JSON.stringify(value, (_key, member: unknown) => {
|
|
7
|
+
if (member === null || typeof member !== 'object' || Array.isArray(member)) {
|
|
8
|
+
return member;
|
|
9
|
+
}
|
|
10
|
+
return Object.fromEntries(Object.keys(member).sort().map(key => [key, (member as Record<string, unknown>)[key]]));
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
4
|
import 'reflect-metadata';
|
|
5
|
+
import { AutoMap } from '@cratis/chronicle.contracts';
|
|
5
6
|
import { describe, expect, it } from 'vitest';
|
|
6
7
|
import { eventType } from '../../events/eventTypeDecorator.js';
|
|
7
8
|
import { ProjectionBuilderFor } from './ProjectionBuilderFor.js';
|
|
@@ -58,6 +59,7 @@ interface FromRecord {
|
|
|
58
59
|
|
|
59
60
|
interface ChildrenDefinition {
|
|
60
61
|
IdentifiedBy: string;
|
|
62
|
+
AutoMap: AutoMap;
|
|
61
63
|
From: FromRecord[];
|
|
62
64
|
RemovedWith: Array<{ Key: { Id: string } }>;
|
|
63
65
|
FromEventProperty?: { Event: { Id: string } | undefined; PropertyExpression: string };
|
|
@@ -103,6 +105,16 @@ describe('ChildrenBuilder and NestedBuilder', () => {
|
|
|
103
105
|
});
|
|
104
106
|
});
|
|
105
107
|
|
|
108
|
+
it('should allow disabling and enabling AutoMap independently for child and nested builders', () => {
|
|
109
|
+
const builder = new ProjectionBuilderFor<Order>();
|
|
110
|
+
builder.children<OrderLine>(order => order.lines, child => child.noAutoMap());
|
|
111
|
+
builder.nested<OrderSummary>(order => order.summary, summary => summary.noAutoMap().autoMap());
|
|
112
|
+
|
|
113
|
+
const definition = builder.build('order', 'Order') as unknown as BuiltDefinition;
|
|
114
|
+
expect(definition.Children.lines.AutoMap).toBe(AutoMap.Disabled);
|
|
115
|
+
expect(definition.Nested.summary.AutoMap).toBe(AutoMap.Enabled);
|
|
116
|
+
});
|
|
117
|
+
|
|
106
118
|
describe('when using nested with clearWith on the top-level builder', () => {
|
|
107
119
|
it('should produce a nested definition with a RemovedWith entry', () => {
|
|
108
120
|
const builder = new ProjectionBuilderFor<Order>();
|
|
@@ -211,6 +211,56 @@ describe('ProjectionBuilderFor', () => {
|
|
|
211
211
|
});
|
|
212
212
|
});
|
|
213
213
|
|
|
214
|
+
describe('when hashing a projection with nested mappings', () => {
|
|
215
|
+
const hashFor = (fromEventSourceId: boolean, joinKey: string, removalKey: string): string => {
|
|
216
|
+
const builder = new ProjectionBuilderFor<Inventory>();
|
|
217
|
+
builder.from(ItemAdded, from => {
|
|
218
|
+
if (fromEventSourceId) {
|
|
219
|
+
from.set(model => model.total).toEventSourceId();
|
|
220
|
+
} else {
|
|
221
|
+
from.set(model => model.total).to(event => event.quantity);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
builder.join(ItemAdded, join => join.on(model => model.id).usingConstantKey(joinKey));
|
|
225
|
+
builder.removedWith(ItemRemoved, removed => removed.usingKeyFromContext(removalKey));
|
|
226
|
+
return (builder.build('inventory', 'Inventory') as { LastUpdated: { Value: string } }).LastUpdated.Value;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
it('should change the hash when a From property expression changes', () => {
|
|
230
|
+
expect(hashFor(false, 'one', 'source')).not.toBe(hashFor(true, 'one', 'source'));
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
it('should change the hash when a Join key changes', () => {
|
|
234
|
+
expect(hashFor(false, 'one', 'source')).not.toBe(hashFor(false, 'two', 'source'));
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
it('should change the hash when a RemovedWith key changes', () => {
|
|
238
|
+
expect(hashFor(false, 'one', 'source')).not.toBe(hashFor(false, 'one', 'correlationId'));
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
it('should give identical definitions identical hashes', () => {
|
|
242
|
+
expect(hashFor(false, 'one', 'source')).toBe(hashFor(false, 'one', 'source'));
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
it('should give reordered property mappings the same hash', () => {
|
|
246
|
+
const hashWithOrder = (reversed: boolean): string => {
|
|
247
|
+
const builder = new ProjectionBuilderFor<Inventory>();
|
|
248
|
+
builder.from(ItemAdded, from => {
|
|
249
|
+
if (reversed) {
|
|
250
|
+
from.set(model => model.status).toValue('active');
|
|
251
|
+
from.set(model => model.total).to(event => event.quantity);
|
|
252
|
+
} else {
|
|
253
|
+
from.set(model => model.total).to(event => event.quantity);
|
|
254
|
+
from.set(model => model.status).toValue('active');
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
return (builder.build('inventory', 'Inventory') as { LastUpdated: { Value: string } }).LastUpdated.Value;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
expect(hashWithOrder(false)).toBe(hashWithOrder(true));
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
|
|
214
264
|
describe('when using multiple fromEvery operations', () => {
|
|
215
265
|
it('should produce all operations in the All.Properties definition', () => {
|
|
216
266
|
const builder = new ProjectionBuilderFor<Inventory>();
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import { AutoMap } from '@cratis/chronicle.contracts';
|
|
5
5
|
import { PropertyAccessor, PropertyPathResolverProxyHandler } from '@cratis/fundamentals';
|
|
6
6
|
import { EventSequenceId } from '../../eventSequences/EventSequenceId.js';
|
|
7
|
-
import
|
|
7
|
+
import { canonicalStringify } from '../canonicalStringify.js';
|
|
8
8
|
import { ChildrenBuilder } from './ChildrenBuilder.js';
|
|
9
9
|
import { IChildrenBuilder } from './IChildrenBuilder.js';
|
|
10
10
|
import { INestedBuilder } from './INestedBuilder.js';
|
|
11
11
|
import { IProjectionBuilderFor } from './IProjectionBuilderFor.js';
|
|
12
12
|
import { NestedBuilder } from './NestedBuilder.js';
|
|
13
|
-
import { ContractEventType, ProjectionBuilderCore } from './ProjectionBuilderCore.js';
|
|
13
|
+
import { ChildrenDefinitionLike, ContractEventType, ProjectionBuilderCore } from './ProjectionBuilderCore.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Concrete implementation of {@link IProjectionBuilderFor} that accumulates projection
|
|
@@ -186,12 +186,11 @@ export class ProjectionBuilderFor<TReadModel> extends ProjectionBuilderCore<TRea
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Computes a stable, deterministic ISO timestamp from the projection definition content,
|
|
189
|
-
* excluding the LastUpdated field itself.
|
|
190
|
-
* a repeated registration of an unchanged definition as a definition change.
|
|
189
|
+
* excluding the LastUpdated field itself.
|
|
191
190
|
*/
|
|
192
191
|
private computeStableLastUpdated(definition: Record<string, unknown>): string {
|
|
193
192
|
const { LastUpdated: _omit, ...rest } = definition;
|
|
194
|
-
const content =
|
|
193
|
+
const content = canonicalStringify(rest);
|
|
195
194
|
let hash = 5381;
|
|
196
195
|
for (let i = 0; i < content.length; i++) {
|
|
197
196
|
hash = ((hash << 5) + hash + content.charCodeAt(i)) >>> 0;
|
|
@@ -16,6 +16,7 @@ import { getDecrementMetadata } from './decrement.js';
|
|
|
16
16
|
import { getFromEventMetadata } from './fromEvent.js';
|
|
17
17
|
import { getIncrementMetadata } from './increment.js';
|
|
18
18
|
import { isNested } from './nested.js';
|
|
19
|
+
import { isNoAutoMap, isPropertyNoAutoMap } from './noAutoMap.js';
|
|
19
20
|
import { getRemovedWithClassMetadata, getRemovedWithPropertyMetadata } from './removedWith.js';
|
|
20
21
|
import { getRemovedWithJoinClassMetadata, getRemovedWithJoinPropertyMetadata } from './removedWithJoin.js';
|
|
21
22
|
import { getSetFromMetadata } from './setFrom.js';
|
|
@@ -43,6 +44,7 @@ export interface ChildrenDefinitionLike {
|
|
|
43
44
|
RemovedWithJoin: Array<{ Key: ContractEventType; Value: { Key: string } }>;
|
|
44
45
|
AutoMap: AutoMap;
|
|
45
46
|
Nested: Record<string, ChildrenDefinitionLike>;
|
|
47
|
+
NoAutoMapProperties: string[];
|
|
46
48
|
}
|
|
47
49
|
|
|
48
50
|
/**
|
|
@@ -150,7 +152,7 @@ export function applyPropertyMappings(prototype: object, property: string, fromB
|
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
|
|
153
|
-
function createEmptyChildrenDefinition(): ChildrenDefinitionLike {
|
|
155
|
+
function createEmptyChildrenDefinition(parentType: Function, childType: Function | undefined): ChildrenDefinitionLike {
|
|
154
156
|
return {
|
|
155
157
|
IdentifiedBy: '$eventSourceId',
|
|
156
158
|
From: [],
|
|
@@ -159,8 +161,10 @@ function createEmptyChildrenDefinition(): ChildrenDefinitionLike {
|
|
|
159
161
|
All: { Properties: {}, IncludeChildren: false, AutoMap: AutoMap.Inherit },
|
|
160
162
|
RemovedWith: [],
|
|
161
163
|
RemovedWithJoin: [],
|
|
162
|
-
AutoMap: AutoMap.Enabled,
|
|
163
|
-
Nested: {}
|
|
164
|
+
AutoMap: isNoAutoMap(parentType) || (childType !== undefined && isNoAutoMap(childType)) ? AutoMap.Disabled : AutoMap.Enabled,
|
|
165
|
+
Nested: {},
|
|
166
|
+
NoAutoMapProperties: childType === undefined ? [] : TypeIntrospector.getTrackedProperties(childType)
|
|
167
|
+
.filter(property => isPropertyNoAutoMap(childType.prototype, property))
|
|
164
168
|
};
|
|
165
169
|
}
|
|
166
170
|
|
|
@@ -317,7 +321,7 @@ function populateFromType(definition: ChildrenDefinitionLike, childType: Functio
|
|
|
317
321
|
*/
|
|
318
322
|
export function buildChildrenEntry(type: Function, property: string, metadataList: ChildrenFromMetadata[]): ChildrenDefinitionLike {
|
|
319
323
|
const childType = resolveChildElementType(type, property);
|
|
320
|
-
const definition = createEmptyChildrenDefinition();
|
|
324
|
+
const definition = createEmptyChildrenDefinition(type, childType);
|
|
321
325
|
|
|
322
326
|
const explicitIdentifiedBy = metadataList.find(metadata => metadata.identifiedBy)?.identifiedBy;
|
|
323
327
|
definition.IdentifiedBy = explicitIdentifiedBy ?? discoverIdentifiedBy(childType) ?? '$eventSourceId';
|
|
@@ -346,7 +350,7 @@ export function buildChildrenEntry(type: Function, property: string, metadataLis
|
|
|
346
350
|
*/
|
|
347
351
|
export function buildNestedEntry(type: Function, property: string): ChildrenDefinitionLike {
|
|
348
352
|
const nestedType = resolveNestedType(type, property);
|
|
349
|
-
const definition = createEmptyChildrenDefinition();
|
|
353
|
+
const definition = createEmptyChildrenDefinition(type, nestedType);
|
|
350
354
|
definition.IdentifiedBy = notSetPropertyPath;
|
|
351
355
|
|
|
352
356
|
// A @clearWith on the property carrying @nested clears this nested object, the same as a
|
|
@@ -5,8 +5,8 @@ import { type Constructor } from '@cratis/fundamentals';
|
|
|
5
5
|
import type { IClientArtifactsProvider } from '../artifacts/IClientArtifactsProvider.js';
|
|
6
6
|
import { getProjectionMetadata } from '../projections/declarative/projection.js';
|
|
7
7
|
import { ProjectionBuilderFor } from '../projections/declarative/ProjectionBuilderFor.js';
|
|
8
|
+
import type { ChildrenDefinitionLike } from '../projections/declarative/ProjectionBuilderCore.js';
|
|
8
9
|
import type { IProjectionFor } from '../projections/declarative/IProjectionFor.js';
|
|
9
|
-
import type { ChildrenDefinitionLike } from '../projections/modelBound/childrenAndNestedBuilder.js';
|
|
10
10
|
import { getChildrenFromMetadata } from '../projections/modelBound/childrenFrom.js';
|
|
11
11
|
import { resolveChildElementType, resolveNestedType } from '../projections/modelBound/childrenAndNestedBuilder.js';
|
|
12
12
|
import { isNested } from '../projections/modelBound/nested.js';
|