@spine-event-engine/server 2.0.0-snapshot.2 → 2.0.0-snapshot.20
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/README.md +225 -518
- package/REFERENCE.md +498 -49
- package/dist/browser/browser-server.d.ts +95 -0
- package/dist/browser/browser-server.d.ts.map +1 -0
- package/dist/{server → browser}/browser-server.js +93 -7
- package/dist/browser/browser-server.js.map +1 -0
- package/dist/browser/durable-subscription-bindings.d.ts.map +1 -0
- package/dist/browser/durable-subscription-bindings.js.map +1 -0
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +24 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/options.d.ts +183 -0
- package/dist/browser/options.d.ts.map +1 -0
- package/dist/browser/options.js +15 -0
- package/dist/browser/options.js.map +1 -0
- package/dist/bus/command-bus.d.ts +2 -0
- package/dist/bus/command-bus.d.ts.map +1 -1
- package/dist/bus/command-bus.js +36 -1
- package/dist/bus/command-bus.js.map +1 -1
- package/dist/bus/event-dispatcher-registry.d.ts +2 -2
- package/dist/bus/event-dispatcher-registry.js +3 -3
- package/dist/bus/event-dispatcher-registry.js.map +1 -1
- package/dist/context/bounded-context.d.ts +238 -83
- package/dist/context/bounded-context.d.ts.map +1 -1
- package/dist/context/bounded-context.js +1083 -286
- package/dist/context/bounded-context.js.map +1 -1
- package/dist/context/effective-tenant.d.ts +9 -0
- package/dist/context/effective-tenant.d.ts.map +1 -0
- package/dist/context/effective-tenant.js +58 -0
- package/dist/context/effective-tenant.js.map +1 -0
- package/dist/context/entity-inbox.d.ts.map +1 -1
- package/dist/context/entity-inbox.js +24 -17
- package/dist/context/entity-inbox.js.map +1 -1
- package/dist/context/local-inbox-handoff.d.ts +7 -3
- package/dist/context/local-inbox-handoff.d.ts.map +1 -1
- package/dist/context/local-inbox-handoff.js +32 -26
- package/dist/context/local-inbox-handoff.js.map +1 -1
- package/dist/context/projection-handoff.d.ts.map +1 -1
- package/dist/context/projection-handoff.js +36 -31
- package/dist/context/projection-handoff.js.map +1 -1
- package/dist/context/tenant-index.d.ts.map +1 -1
- package/dist/context/tenant-index.js +72 -2
- package/dist/context/tenant-index.js.map +1 -1
- package/dist/delivery/delivery-ports.d.ts +14 -4
- package/dist/delivery/delivery-ports.d.ts.map +1 -1
- package/dist/delivery/delivery.d.ts +19 -21
- package/dist/delivery/delivery.d.ts.map +1 -1
- package/dist/delivery/delivery.js +541 -158
- package/dist/delivery/delivery.js.map +1 -1
- package/dist/delivery/inbox-storage.d.ts +12 -3
- package/dist/delivery/inbox-storage.d.ts.map +1 -1
- package/dist/delivery/inbox-storage.js +160 -67
- package/dist/delivery/inbox-storage.js.map +1 -1
- package/dist/delivery/inbox.d.ts +9 -0
- package/dist/delivery/inbox.d.ts.map +1 -1
- package/dist/delivery/inbox.js +11 -0
- package/dist/delivery/inbox.js.map +1 -1
- package/dist/delivery/sharded-work-registry.d.ts.map +1 -1
- package/dist/delivery/sharded-work-registry.js +2 -1
- package/dist/delivery/sharded-work-registry.js.map +1 -1
- package/dist/entity/entity-metadata.d.ts +14 -5
- package/dist/entity/entity-metadata.d.ts.map +1 -1
- package/dist/entity/entity-metadata.js +38 -2
- package/dist/entity/entity-metadata.js.map +1 -1
- package/dist/entity/entity-storage-descriptor.d.ts +25 -5
- package/dist/entity/entity-storage-descriptor.d.ts.map +1 -1
- package/dist/entity/entity-storage-descriptor.js +69 -23
- package/dist/entity/entity-storage-descriptor.js.map +1 -1
- package/dist/entity/entity-transaction.d.ts +46 -42
- package/dist/entity/entity-transaction.d.ts.map +1 -1
- package/dist/entity/entity-transaction.js +130 -35
- package/dist/entity/entity-transaction.js.map +1 -1
- package/dist/entity/entity.d.ts +243 -98
- package/dist/entity/entity.d.ts.map +1 -1
- package/dist/entity/entity.js +405 -226
- package/dist/entity/entity.js.map +1 -1
- package/dist/entity/spec-scanner.d.ts +13 -1
- package/dist/entity/spec-scanner.d.ts.map +1 -1
- package/dist/entity/spec-scanner.js +20 -3
- package/dist/entity/spec-scanner.js.map +1 -1
- package/dist/handler/command-registration-readiness.d.ts +6 -6
- package/dist/handler/command-registration-readiness.d.ts.map +1 -1
- package/dist/handler/command-registration-readiness.js +4 -2
- package/dist/handler/command-registration-readiness.js.map +1 -1
- package/dist/handler/declared-rejections.d.ts +11 -0
- package/dist/handler/declared-rejections.d.ts.map +1 -0
- package/dist/handler/declared-rejections.js +34 -0
- package/dist/handler/declared-rejections.js.map +1 -0
- package/dist/handler/event-registration-readiness.d.ts +13 -56
- package/dist/handler/event-registration-readiness.d.ts.map +1 -1
- package/dist/handler/event-registration-readiness.js +23 -43
- package/dist/handler/event-registration-readiness.js.map +1 -1
- package/dist/handler/generated-handler-registry.d.ts +72 -33
- package/dist/handler/generated-handler-registry.d.ts.map +1 -1
- package/dist/handler/generated-handler-registry.js +421 -43
- package/dist/handler/generated-handler-registry.js.map +1 -1
- package/dist/handler/generated-registry-discovery.d.ts.map +1 -1
- package/dist/handler/generated-registry-discovery.js +2 -4
- package/dist/handler/generated-registry-discovery.js.map +1 -1
- package/dist/handler/handler-decorators.d.ts +91 -37
- package/dist/handler/handler-decorators.d.ts.map +1 -1
- package/dist/handler/handler-decorators.js +124 -31
- package/dist/handler/handler-decorators.js.map +1 -1
- package/dist/handler/handler-metadata.d.ts +105 -60
- package/dist/handler/handler-metadata.d.ts.map +1 -1
- package/dist/handler/handler-metadata.js +275 -57
- package/dist/handler/handler-metadata.js.map +1 -1
- package/dist/handler/registration-readiness-metadata.d.ts +4 -0
- package/dist/handler/registration-readiness-metadata.d.ts.map +1 -1
- package/dist/handler/registration-readiness-metadata.js +84 -2
- package/dist/handler/registration-readiness-metadata.js.map +1 -1
- package/dist/handler/standalone.d.ts +25 -0
- package/dist/handler/standalone.d.ts.map +1 -0
- package/dist/handler/standalone.js +38 -0
- package/dist/handler/standalone.js.map +1 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/repository/command-routing.d.ts +63 -10
- package/dist/repository/command-routing.d.ts.map +1 -1
- package/dist/repository/command-routing.js +41 -8
- package/dist/repository/command-routing.js.map +1 -1
- package/dist/repository/event-routing.d.ts +64 -9
- package/dist/repository/event-routing.d.ts.map +1 -1
- package/dist/repository/event-routing.js +42 -7
- package/dist/repository/event-routing.js.map +1 -1
- package/dist/repository/primitive-id.d.ts +12 -23
- package/dist/repository/primitive-id.d.ts.map +1 -1
- package/dist/repository/primitive-id.js +2 -27
- package/dist/repository/primitive-id.js.map +1 -1
- package/dist/repository/repository.d.ts +317 -87
- package/dist/repository/repository.d.ts.map +1 -1
- package/dist/repository/repository.js +3746 -856
- package/dist/repository/repository.js.map +1 -1
- package/dist/repository/state-update-routing.d.ts +67 -8
- package/dist/repository/state-update-routing.d.ts.map +1 -1
- package/dist/repository/state-update-routing.js +45 -6
- package/dist/repository/state-update-routing.js.map +1 -1
- package/dist/runtime/runtime.js +1 -1
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/signal-metadata.d.ts +22 -47
- package/dist/runtime/signal-metadata.d.ts.map +1 -1
- package/dist/runtime/signal-metadata.js +34 -69
- package/dist/runtime/signal-metadata.js.map +1 -1
- package/dist/runtime/signal-publisher.d.ts +144 -0
- package/dist/runtime/signal-publisher.d.ts.map +1 -0
- package/dist/runtime/signal-publisher.js +248 -0
- package/dist/runtime/signal-publisher.js.map +1 -0
- package/dist/runtime/standalone-handler-runtime.d.ts +130 -0
- package/dist/runtime/standalone-handler-runtime.d.ts.map +1 -0
- package/dist/runtime/standalone-handler-runtime.js +382 -0
- package/dist/runtime/standalone-handler-runtime.js.map +1 -0
- package/dist/server/environment-attachment.d.ts.map +1 -1
- package/dist/server/environment-attachment.js +2 -1
- package/dist/server/environment-attachment.js.map +1 -1
- package/dist/server/environment-delivery-worker.d.ts.map +1 -1
- package/dist/server/environment-delivery-worker.js +21 -12
- package/dist/server/environment-delivery-worker.js.map +1 -1
- package/dist/server/managed-server-application.d.ts +4 -1
- package/dist/server/managed-server-application.d.ts.map +1 -1
- package/dist/server/managed-server-application.js +2 -2
- package/dist/server/managed-server-application.js.map +1 -1
- package/dist/server/node-coordinator.js +2 -2
- package/dist/server/node-coordinator.js.map +1 -1
- package/dist/server/server-log.d.ts.map +1 -1
- package/dist/server/server-log.js +4 -0
- package/dist/server/server-log.js.map +1 -1
- package/dist/server/server.d.ts +9 -177
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +428 -178
- package/dist/server/server.js.map +1 -1
- package/dist/services/query-reader.d.ts +19 -0
- package/dist/services/query-reader.d.ts.map +1 -0
- package/dist/services/query-reader.js +43 -0
- package/dist/services/query-reader.js.map +1 -0
- package/dist/services/registered-targets.d.ts +73 -0
- package/dist/services/registered-targets.d.ts.map +1 -0
- package/dist/services/registered-targets.js +127 -0
- package/dist/services/registered-targets.js.map +1 -0
- package/dist/services/spine-services.d.ts +26 -12
- package/dist/services/spine-services.d.ts.map +1 -1
- package/dist/services/spine-services.js +1047 -969
- package/dist/services/spine-services.js.map +1 -1
- package/dist/spi/delivery.d.ts +5 -0
- package/dist/spi/delivery.d.ts.map +1 -0
- package/dist/spi/delivery.js +18 -0
- package/dist/spi/delivery.js.map +1 -0
- package/dist/spi/handler-registry.d.ts +8 -0
- package/dist/spi/handler-registry.d.ts.map +1 -0
- package/dist/spi/handler-registry.js +15 -0
- package/dist/spi/handler-registry.js.map +1 -0
- package/dist/stand/stand.d.ts +73 -1
- package/dist/stand/stand.d.ts.map +1 -1
- package/dist/stand/stand.js +221 -48
- package/dist/stand/stand.js.map +1 -1
- package/dist/stand/subscription-observer.d.ts.map +1 -1
- package/dist/stand/subscription-observer.js +5 -12
- package/dist/stand/subscription-observer.js.map +1 -1
- package/dist/stand/subscription-registry.js +1 -1
- package/dist/stand/subscription-registry.js.map +1 -1
- package/dist/testing/index.d.ts +25 -3
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +23 -3
- package/dist/testing/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -23
- package/dist/handler/build-time-handler-analyzer.d.ts +0 -150
- package/dist/handler/build-time-handler-analyzer.d.ts.map +0 -1
- package/dist/handler/build-time-handler-analyzer.js +0 -1101
- package/dist/handler/build-time-handler-analyzer.js.map +0 -1
- package/dist/handler/generated-registry-writer.d.ts +0 -58
- package/dist/handler/generated-registry-writer.d.ts.map +0 -1
- package/dist/handler/generated-registry-writer.js +0 -458
- package/dist/handler/generated-registry-writer.js.map +0 -1
- package/dist/handler/handler-codegen.d.ts +0 -48
- package/dist/handler/handler-codegen.d.ts.map +0 -1
- package/dist/handler/handler-codegen.js +0 -214
- package/dist/handler/handler-codegen.js.map +0 -1
- package/dist/server/browser-server.d.ts +0 -49
- package/dist/server/browser-server.d.ts.map +0 -1
- package/dist/server/browser-server.js.map +0 -1
- package/dist/server/durable-subscription-bindings.d.ts.map +0 -1
- package/dist/server/durable-subscription-bindings.js.map +0 -1
- /package/dist/{server → browser}/durable-subscription-bindings.d.ts +0 -0
- /package/dist/{server → browser}/durable-subscription-bindings.js +0 -0
package/dist/entity/entity.d.ts
CHANGED
|
@@ -1,11 +1,116 @@
|
|
|
1
1
|
import { type Message, type MessageShape } from "@bufbuild/protobuf";
|
|
2
2
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
-
import { type
|
|
3
|
+
import { type EntityColumn, type EntityColumnOperator, type EntityQueryIdentifier, type EntityQueryPredicateFor, type EntityPredicate, type EntityQueryBuilder } from "@spine-event-engine/core";
|
|
4
|
+
import { EntityQueryDescription } from "@spine-event-engine/core/codegen";
|
|
5
|
+
import type { EntityQueryPlan } from "@spine-event-engine/core/spi/entity-query-plan";
|
|
6
|
+
import { type ConstraintViolation, type Event, type Version, type ActorContext } from "@spine-event-engine/proto";
|
|
7
|
+
import type { Query } from "@spine-event-engine/proto/client";
|
|
4
8
|
import type { EntityEventStorage, EntityStateHistoryStorage } from "@spine-event-engine/storage";
|
|
5
9
|
import { type DescriptorMessageSchema, type EntityMetadata } from "./entity-metadata.js";
|
|
6
|
-
import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator
|
|
10
|
+
import { type EntityTransactionCommitResult, type EntityTransactionLifecycleFlags, type EntityTransactionRejectedCommit, type EntityTransactionRollbackResult, type EntityTransactionMutator } from "./entity-transaction.js";
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Descriptor-backed columns available to a Process Manager query.
|
|
13
|
+
*
|
|
14
|
+
* @typeParam Schema State schema containing the queried columns.
|
|
15
|
+
*/
|
|
16
|
+
type ProcessManagerQueryColumns<Schema extends DescriptorMessageSchema> = Readonly<Record<string, EntityColumn<Schema>>>;
|
|
17
|
+
/**
|
|
18
|
+
* Reads states using the invoking handler's actor and tenant.
|
|
19
|
+
*
|
|
20
|
+
* @typeParam Schema State schema selected by the query.
|
|
21
|
+
* @param plan Compiled filters and ordering for the query.
|
|
22
|
+
* @param schema Generated schema used to decode matching states.
|
|
23
|
+
* @param query Query message carrying the actor and selected state fields.
|
|
24
|
+
* @returns Matching state snapshots from the read side.
|
|
25
|
+
*/
|
|
26
|
+
type ProcessManagerQueryExecutor = <Schema extends DescriptorMessageSchema>(plan: EntityQueryPlan, schema: Schema, query: Query) => Promise<readonly MessageShape<Schema>[]>;
|
|
27
|
+
interface ProcessManagerQueryCapability {
|
|
28
|
+
readonly actorContext: ActorContext;
|
|
29
|
+
readonly execute: ProcessManagerQueryExecutor;
|
|
30
|
+
active: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Binds the repository-scoped query capability for one Process Manager invocation.
|
|
34
|
+
*
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare const processManagerQueryAccess: Readonly<{
|
|
38
|
+
bind(entity: object, execute: ProcessManagerQueryCapability["execute"], actorContext: ActorContext): () => void;
|
|
39
|
+
require(entity: object): ProcessManagerQueryCapability;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* A repository-scoped, read-only Entity query issued by a Process Manager.
|
|
43
|
+
*
|
|
44
|
+
* @typeParam Schema State schema read by the query.
|
|
45
|
+
* @typeParam Columns Registered descriptor-backed columns for `Schema`.
|
|
46
|
+
*/
|
|
47
|
+
export declare class ProcessManagerQuery<Schema extends DescriptorMessageSchema, Columns extends ProcessManagerQueryColumns<Schema>> {
|
|
48
|
+
#private;
|
|
49
|
+
/**
|
|
50
|
+
* Creates the repository-scoped query facade.
|
|
51
|
+
*
|
|
52
|
+
* @internal
|
|
53
|
+
* @param entity Process Manager using this query capability.
|
|
54
|
+
* @param schema State schema read by this query.
|
|
55
|
+
* @param builder Typed query builder used to create the wire query.
|
|
56
|
+
*/
|
|
57
|
+
constructor(entity: object, schema: Schema, builder: EntityQueryBuilder<Schema, Columns>);
|
|
58
|
+
/**
|
|
59
|
+
* Adds the supplied Entity IDs to the query target.
|
|
60
|
+
*
|
|
61
|
+
* @param ids Entity IDs to include.
|
|
62
|
+
* @returns This query for fluent configuration.
|
|
63
|
+
*/
|
|
64
|
+
byId(...ids: readonly EntityQueryIdentifier<Schema>[]): this;
|
|
65
|
+
/**
|
|
66
|
+
* Adds a typed state predicate to the query.
|
|
67
|
+
*
|
|
68
|
+
* @typeParam Predicate Comparison supported by the registered columns.
|
|
69
|
+
* @param predicate Predicate evaluated against registered state columns.
|
|
70
|
+
* @returns This query for fluent configuration.
|
|
71
|
+
*/
|
|
72
|
+
where<Predicate extends EntityPredicate>(predicate: EntityQueryPredicateFor<Schema, Columns, Predicate>): this;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the ordering for matching states by one registered column.
|
|
75
|
+
*
|
|
76
|
+
* @typeParam Column Registered column supplying the ordered values.
|
|
77
|
+
* @param column Registered orderable column used for sorting.
|
|
78
|
+
* @param direction Optional sort direction, ascending by default.
|
|
79
|
+
* @returns This query for fluent configuration.
|
|
80
|
+
*/
|
|
81
|
+
orderBy<Column extends Columns[keyof Columns]>(column: "greaterThan" extends EntityColumnOperator<Column> ? Column : never, direction?: "asc" | "desc"): this;
|
|
82
|
+
/**
|
|
83
|
+
* Sets the returned-state limit to at most 1,000 entries.
|
|
84
|
+
*
|
|
85
|
+
* @param value Maximum number of states to return.
|
|
86
|
+
* @returns This query for fluent configuration.
|
|
87
|
+
*/
|
|
88
|
+
limit(value: number): this;
|
|
89
|
+
/**
|
|
90
|
+
* Reads matching state snapshots from the eventually consistent query projection.
|
|
91
|
+
*
|
|
92
|
+
* @returns Readonly state snapshots, subject to the configured result limit.
|
|
93
|
+
*/
|
|
94
|
+
read(): Promise<readonly MessageShape<Schema>[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Reads the first state snapshot for one Entity ID.
|
|
97
|
+
*
|
|
98
|
+
* @param id Entity ID to read.
|
|
99
|
+
* @returns The eventually consistent state snapshot, or `undefined` when it is absent.
|
|
100
|
+
*/
|
|
101
|
+
findById(id: EntityQueryIdentifier<Schema>): Promise<MessageShape<Schema> | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* Reads every matching state snapshot within the configured result limit.
|
|
104
|
+
*
|
|
105
|
+
* This can be more expensive than an ID-targeted read because the projection must evaluate all
|
|
106
|
+
* matching states.
|
|
107
|
+
*
|
|
108
|
+
* @returns Readonly eventually consistent state snapshots.
|
|
109
|
+
*/
|
|
110
|
+
all(): Promise<readonly MessageShape<Schema>[]>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Whether an Entity has been archived or deleted.
|
|
9
114
|
*/
|
|
10
115
|
export interface EntityLifecycleFlags {
|
|
11
116
|
/**
|
|
@@ -24,7 +129,7 @@ export type EntityScopeReason = "duplicate" | "missing";
|
|
|
24
129
|
/**
|
|
25
130
|
* Protected {@link TransactionalEntity} operation guarded by transaction scope.
|
|
26
131
|
*/
|
|
27
|
-
export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "
|
|
132
|
+
export type TransactionalEntityScopeOperation = "archiveDraft" | "commitTransaction" | "currentDraft" | "draftLifecycleFlags" | "markDraftDeleted" | "restoreDraft" | "rollbackTransaction" | "startTransaction" | "unarchiveDraft" | "tryUpdate" | "update";
|
|
28
133
|
/**
|
|
29
134
|
* Error thrown when a transactional entity draft helper is used outside its scope.
|
|
30
135
|
*/
|
|
@@ -45,26 +150,15 @@ export declare class TransactionalEntityScopeError extends Error {
|
|
|
45
150
|
*/
|
|
46
151
|
constructor(reason: EntityScopeReason, operation: TransactionalEntityScopeOperation);
|
|
47
152
|
}
|
|
48
|
-
type EntityVersionMetadataPrimitive = string | number | boolean | bigint | symbol | null | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Plain snapshot data accepted as caller-owned entity version metadata.
|
|
51
|
-
*/
|
|
52
|
-
export type EntityVersionMetadata = EntityVersionMetadataPrimitive | readonly EntityVersionMetadata[] | object;
|
|
53
|
-
type NonPlainVersion = Date | RegExp | Error | Promise<unknown> | Map<unknown, unknown> | Set<unknown> | WeakMap<object, unknown> | WeakSet<object> | ArrayBuffer | SharedArrayBuffer | DataView | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
54
|
-
/**
|
|
55
|
-
* Recursive type-level validator for caller-owned plain entity version metadata.
|
|
56
|
-
*/
|
|
57
|
-
export type PlainEntityVersionMetadata<Version> = PlainVersionAtDepth<Version, []>;
|
|
58
|
-
type PlainVersionAtDepth<Version, Depth extends readonly unknown[]> = Depth["length"] extends 20 ? EntityVersionMetadata : Version extends EntityVersionMetadataPrimitive ? Version : Version extends (...args: never[]) => unknown ? never : Version extends NonPlainVersion ? never : Version extends readonly (infer Element)[] ? readonly PlainVersionAtDepth<Element, readonly [unknown, ...Depth]>[] : Version extends object ? {
|
|
59
|
-
readonly [Key in keyof Version]: PlainVersionAtDepth<Version[Key], readonly [unknown, ...Depth]>;
|
|
60
|
-
} : never;
|
|
61
|
-
type EntityVersionMetadataInput<Version> = [Version] extends [EntityVersionMetadata] ? [EntityVersionMetadata] extends [Version] ? Version : PlainEntityVersionMetadata<Version> : PlainEntityVersionMetadata<Version>;
|
|
62
153
|
/**
|
|
63
154
|
* Initial values for constructing an {@link Entity}.
|
|
155
|
+
*
|
|
156
|
+
* @typeParam Id Domain identifier type.
|
|
157
|
+
* @typeParam Schema Generated schema describing the Entity state.
|
|
64
158
|
*/
|
|
65
|
-
export interface EntityOptions<Id, Schema extends DescriptorMessageSchema
|
|
159
|
+
export interface EntityOptions<Id, Schema extends DescriptorMessageSchema> {
|
|
66
160
|
/**
|
|
67
|
-
* Stable
|
|
161
|
+
* Stable domain identifier for the Entity.
|
|
68
162
|
*/
|
|
69
163
|
readonly id: Id;
|
|
70
164
|
/**
|
|
@@ -76,43 +170,40 @@ export interface EntityOptions<Id, Schema extends DescriptorMessageSchema, Versi
|
|
|
76
170
|
*/
|
|
77
171
|
readonly state: MessageShape<Schema>;
|
|
78
172
|
/**
|
|
79
|
-
*
|
|
173
|
+
* Restored Spine Version; fresh Entities start at zero.
|
|
80
174
|
*/
|
|
81
|
-
readonly version
|
|
175
|
+
readonly version?: Version;
|
|
82
176
|
/**
|
|
83
177
|
* Initial lifecycle flags. Defaults to active, not deleted.
|
|
84
178
|
*/
|
|
85
179
|
readonly lifecycle?: Partial<EntityLifecycleFlags>;
|
|
86
180
|
}
|
|
87
181
|
/**
|
|
88
|
-
*
|
|
182
|
+
* The three kinds of Entity supported by server repositories.
|
|
89
183
|
*/
|
|
90
184
|
export type EntityFamily = "aggregate" | "projection" | "process-manager";
|
|
91
185
|
/**
|
|
92
|
-
*
|
|
186
|
+
* Identity, state, version, and lifecycle of one server-side Entity.
|
|
93
187
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
188
|
+
* Keeps the Entity ID, state schema, state, Spine Version, and lifecycle flags.
|
|
189
|
+
* State and Version accessors return copies, and lifecycle access returns a
|
|
190
|
+
* separate flag object. Repositories run handlers and manage storage.
|
|
191
|
+
*
|
|
192
|
+
* @typeParam Id Domain identifier type.
|
|
193
|
+
* @typeParam Schema Generated schema describing the Entity state.
|
|
99
194
|
*/
|
|
100
|
-
export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema
|
|
195
|
+
export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema> {
|
|
101
196
|
#private;
|
|
102
197
|
/**
|
|
103
|
-
*
|
|
104
|
-
*/
|
|
105
|
-
protected static readonly spineTsEntityConstructor: true;
|
|
106
|
-
/**
|
|
107
|
-
* Creates an entity shell from caller-provided state and metadata inputs.
|
|
198
|
+
* Initializes an Entity from its ID, schema, state, Version, and lifecycle flags.
|
|
108
199
|
*
|
|
109
200
|
* @param options Identity, schema, state, version, and lifecycle inputs.
|
|
110
201
|
*/
|
|
111
|
-
constructor(options: EntityOptions<Id, Schema
|
|
202
|
+
constructor(options: EntityOptions<Id, Schema>);
|
|
112
203
|
/**
|
|
113
204
|
* Gets the stable entity identifier.
|
|
114
205
|
*
|
|
115
|
-
* @returns The
|
|
206
|
+
* @returns The domain identifier supplied during construction.
|
|
116
207
|
*/
|
|
117
208
|
get id(): Id;
|
|
118
209
|
/**
|
|
@@ -134,9 +225,9 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
|
|
|
134
225
|
*/
|
|
135
226
|
get state(): MessageShape<Schema>;
|
|
136
227
|
/**
|
|
137
|
-
* Gets the
|
|
228
|
+
* Gets the current Spine Version without exposing the stored message.
|
|
138
229
|
*
|
|
139
|
-
* @returns A
|
|
230
|
+
* @returns A copy of the version number and timestamp.
|
|
140
231
|
*/
|
|
141
232
|
get version(): Version;
|
|
142
233
|
/**
|
|
@@ -170,19 +261,19 @@ export declare abstract class Entity<Id, Schema extends DescriptorMessageSchema,
|
|
|
170
261
|
*/
|
|
171
262
|
get lifecycleFlagsChanged(): boolean;
|
|
172
263
|
/**
|
|
173
|
-
* Replaces stored state
|
|
264
|
+
* Replaces stored state when framework transaction code accepts a draft.
|
|
174
265
|
*
|
|
175
266
|
* @param state Next entity state snapshot.
|
|
176
267
|
*/
|
|
177
268
|
protected replaceState(state: MessageShape<Schema>): void;
|
|
178
269
|
/**
|
|
179
|
-
*
|
|
270
|
+
* Applies the Version calculated by a framework transaction.
|
|
180
271
|
*
|
|
181
|
-
* @param version
|
|
272
|
+
* @param version Accepted version number and timestamp.
|
|
182
273
|
*/
|
|
183
|
-
protected
|
|
274
|
+
protected replaceVersion(version: Version): void;
|
|
184
275
|
/**
|
|
185
|
-
*
|
|
276
|
+
* Applies lifecycle flags accepted by framework transaction code.
|
|
186
277
|
*
|
|
187
278
|
* @param lifecycle Lifecycle flag changes to apply.
|
|
188
279
|
*/
|
|
@@ -218,11 +309,50 @@ interface BoundEntityHistory {
|
|
|
218
309
|
readonly eventMaintenance: EntityEventStorage<unknown>;
|
|
219
310
|
}
|
|
220
311
|
interface EntityHistoryAccess {
|
|
312
|
+
/**
|
|
313
|
+
* Attaches repository history access to an Entity instance.
|
|
314
|
+
*
|
|
315
|
+
* @param entity Instance whose retained history will be read.
|
|
316
|
+
* @param binding Repository operations for that Entity's history.
|
|
317
|
+
*/
|
|
221
318
|
bind(entity: object, binding: BoundEntityHistory): void;
|
|
319
|
+
/**
|
|
320
|
+
* Reads the latest retained state at or before a time.
|
|
321
|
+
*
|
|
322
|
+
* @param entity Entity whose state is requested.
|
|
323
|
+
* @param time Latest allowed state timestamp.
|
|
324
|
+
* @returns The retained state, or undefined if no state matches.
|
|
325
|
+
*/
|
|
222
326
|
stateAt(entity: object, time: Timestamp): Promise<unknown>;
|
|
327
|
+
/**
|
|
328
|
+
* Reads retained states in descending version order.
|
|
329
|
+
*
|
|
330
|
+
* @param entity Entity whose history is requested.
|
|
331
|
+
* @param depth Maximum number of states to read.
|
|
332
|
+
* @returns Retained state snapshots, newest first.
|
|
333
|
+
*/
|
|
223
334
|
states(entity: object, depth: number): Promise<readonly unknown[]>;
|
|
335
|
+
/**
|
|
336
|
+
* Reads retained diagnostic Events, newest producer version first.
|
|
337
|
+
*
|
|
338
|
+
* @param entity Entity that produced the Events.
|
|
339
|
+
* @param depth Maximum number of Events to read.
|
|
340
|
+
* @returns Retained diagnostic Events.
|
|
341
|
+
*/
|
|
224
342
|
events(entity: object, depth: number): Promise<readonly Readonly<Event>[]>;
|
|
343
|
+
/**
|
|
344
|
+
* Gets the repository's state-history storage for retention operations.
|
|
345
|
+
*
|
|
346
|
+
* @param entity Entity whose history is maintained.
|
|
347
|
+
* @returns The state-history storage bound to that Entity.
|
|
348
|
+
*/
|
|
225
349
|
stateMaintenance(entity: object): EntityStateHistoryStorage<unknown, Message>;
|
|
350
|
+
/**
|
|
351
|
+
* Gets the repository's diagnostic Event storage for retention operations.
|
|
352
|
+
*
|
|
353
|
+
* @param entity Entity whose diagnostic Events are maintained.
|
|
354
|
+
* @returns The Event-history storage bound to that Entity.
|
|
355
|
+
*/
|
|
226
356
|
eventMaintenance(entity: object): EntityEventStorage<unknown>;
|
|
227
357
|
}
|
|
228
358
|
/**
|
|
@@ -232,18 +362,17 @@ interface EntityHistoryAccess {
|
|
|
232
362
|
*/
|
|
233
363
|
export declare const entityHistoryAccess: EntityHistoryAccess;
|
|
234
364
|
/**
|
|
235
|
-
*
|
|
365
|
+
* Entity base with one active transaction draft.
|
|
236
366
|
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* transaction state.
|
|
367
|
+
* Repository dispatch starts and finishes each transaction. Entity handlers
|
|
368
|
+
* change the draft state or lifecycle through protected helpers. A successful
|
|
369
|
+
* commit updates state, Spine Version, and lifecycle flags. A rejected commit
|
|
370
|
+
* leaves the draft active until the framework rolls it back.
|
|
371
|
+
*
|
|
372
|
+
* @typeParam Id Domain identifier type.
|
|
373
|
+
* @typeParam Schema Generated schema describing the Entity state.
|
|
245
374
|
*/
|
|
246
|
-
export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema
|
|
375
|
+
export declare abstract class TransactionalEntity<Id, Schema extends DescriptorMessageSchema> extends Entity<Id, Schema> {
|
|
247
376
|
#private;
|
|
248
377
|
/**
|
|
249
378
|
* Determines whether accepted transaction state or lifecycle changes are visible.
|
|
@@ -270,13 +399,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
|
|
|
270
399
|
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
271
400
|
*/
|
|
272
401
|
protected currentDraft(): MessageShape<Schema>;
|
|
273
|
-
/**
|
|
274
|
-
* Gets the current draft version metadata snapshot.
|
|
275
|
-
*
|
|
276
|
-
* @returns Cloned previous and draft version metadata.
|
|
277
|
-
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
278
|
-
*/
|
|
279
|
-
protected draftVersionMetadata(): EntityTransactionVersionMetadata<Version>;
|
|
280
402
|
/**
|
|
281
403
|
* Gets the current draft lifecycle flag snapshot.
|
|
282
404
|
*
|
|
@@ -303,14 +425,6 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
|
|
|
303
425
|
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
304
426
|
*/
|
|
305
427
|
protected tryUpdate(mutator: EntityTransactionMutator<Schema>): readonly ConstraintViolation[];
|
|
306
|
-
/**
|
|
307
|
-
* Updates the buffered draft version metadata without computing version increments.
|
|
308
|
-
*
|
|
309
|
-
* @param draft Caller-owned version metadata for the active draft.
|
|
310
|
-
* @returns Cloned previous and draft version metadata.
|
|
311
|
-
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
312
|
-
*/
|
|
313
|
-
protected updateDraftVersionMetadata(draft: EntityVersionMetadataInput<Version>): EntityTransactionVersionMetadata<Version>;
|
|
314
428
|
/**
|
|
315
429
|
* Marks the buffered draft lifecycle as archived.
|
|
316
430
|
*
|
|
@@ -342,41 +456,43 @@ export declare abstract class TransactionalEntity<Id, Schema extends DescriptorM
|
|
|
342
456
|
/**
|
|
343
457
|
* Commits the active draft transaction.
|
|
344
458
|
*
|
|
345
|
-
* Accepted commits apply state,
|
|
459
|
+
* Accepted commits apply state, Spine Version, and lifecycle flags to this
|
|
346
460
|
* entity and close the transaction. Rejected commits do not apply anything and
|
|
347
461
|
* keep the transaction active for correction or explicit rollback.
|
|
348
462
|
*
|
|
463
|
+
* @param producedEvents Whether handling returned Events, requiring a version advance.
|
|
349
464
|
* @returns A cloned accepted or rejected transaction result.
|
|
350
465
|
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
351
466
|
*/
|
|
352
|
-
protected commitTransaction(): EntityTransactionCommitResult<Schema
|
|
467
|
+
protected commitTransaction(producedEvents?: boolean): EntityTransactionCommitResult<Schema>;
|
|
353
468
|
/**
|
|
354
469
|
* Rolls back the active draft without applying state, version, or lifecycle changes.
|
|
355
470
|
*
|
|
356
471
|
* @returns A cloned rollback result containing the discarded draft snapshots.
|
|
357
472
|
* @throws {@link TransactionalEntityScopeError} when no transaction is active.
|
|
358
473
|
*/
|
|
359
|
-
protected rollbackTransaction(): EntityTransactionRollbackResult<Schema
|
|
474
|
+
protected rollbackTransaction(): EntityTransactionRollbackResult<Schema>;
|
|
360
475
|
}
|
|
361
476
|
/**
|
|
362
477
|
* Framework-only transaction operations used by repository execution.
|
|
363
478
|
*/
|
|
364
479
|
export interface TransactionalEntityAccess {
|
|
365
480
|
/**
|
|
366
|
-
* Starts a
|
|
481
|
+
* Starts a transaction scope for repository execution.
|
|
367
482
|
*
|
|
368
483
|
* @param entity Transactional entity object to start.
|
|
369
484
|
*/
|
|
370
485
|
start(entity: object): void;
|
|
371
486
|
/**
|
|
372
|
-
*
|
|
487
|
+
* Commits the transaction after repository handler execution.
|
|
373
488
|
*
|
|
374
489
|
* @param entity Transactional entity object to commit.
|
|
490
|
+
* @param producedEvents Whether the handler returned Events.
|
|
375
491
|
* @returns The transaction commit result.
|
|
376
492
|
*/
|
|
377
|
-
commit(entity: object): EntityTransactionCommitResult<DescriptorMessageSchema>;
|
|
493
|
+
commit(entity: object, producedEvents?: boolean): EntityTransactionCommitResult<DescriptorMessageSchema>;
|
|
378
494
|
/**
|
|
379
|
-
*
|
|
495
|
+
* Rolls back the Entity's active transaction, if one exists.
|
|
380
496
|
*
|
|
381
497
|
* @param entity Transactional entity object to roll back.
|
|
382
498
|
*/
|
|
@@ -396,24 +512,26 @@ export interface TransactionalEntityAccess {
|
|
|
396
512
|
*/
|
|
397
513
|
export declare const transactionalEntityAccess: TransactionalEntityAccess;
|
|
398
514
|
/**
|
|
399
|
-
*
|
|
515
|
+
* Base class for Aggregates with transactional state and Event-history access.
|
|
516
|
+
*
|
|
517
|
+
* Provides Aggregate family identity and protected repository-backed history
|
|
518
|
+
* methods. Repositories and bounded contexts handle dispatch, persistence, and
|
|
519
|
+
* Event publication; application handlers change state through draft helpers.
|
|
400
520
|
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
* invocation. Repository-bound diagnostic event-history reads are declared
|
|
404
|
-
* below for the Aggregate family.
|
|
521
|
+
* @typeParam Id Domain identifier type.
|
|
522
|
+
* @typeParam Schema Generated schema describing the Aggregate state.
|
|
405
523
|
*/
|
|
406
|
-
export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema
|
|
524
|
+
export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
|
|
407
525
|
/**
|
|
408
526
|
* Stable server entity family identity.
|
|
409
527
|
*/
|
|
410
528
|
readonly entityFamily: "aggregate";
|
|
411
529
|
/**
|
|
412
|
-
* Creates an
|
|
530
|
+
* Creates an Aggregate from its identity, state, and metadata.
|
|
413
531
|
*
|
|
414
532
|
* @param options Identity, schema, state, version, and lifecycle inputs.
|
|
415
533
|
*/
|
|
416
|
-
constructor(options: EntityOptions<Id, Schema
|
|
534
|
+
constructor(options: EntityOptions<Id, Schema>);
|
|
417
535
|
/**
|
|
418
536
|
* Reads retained diagnostic events in descending producer-version order.
|
|
419
537
|
*
|
|
@@ -437,42 +555,48 @@ export declare abstract class Aggregate<Id, Schema extends DescriptorMessageSche
|
|
|
437
555
|
protected eventStorage(): EntityEventStorage<Id>;
|
|
438
556
|
}
|
|
439
557
|
/**
|
|
440
|
-
*
|
|
558
|
+
* Base class for Projections with transactional state.
|
|
559
|
+
*
|
|
560
|
+
* Repositories and Bounded Contexts invoke Event handlers and persist state
|
|
561
|
+
* changes with the Projection's Version.
|
|
562
|
+
* Projections do not expose the diagnostic history methods of other families.
|
|
441
563
|
*
|
|
442
|
-
*
|
|
443
|
-
*
|
|
444
|
-
* clients, or handler invocation.
|
|
564
|
+
* @typeParam Id Domain identifier type.
|
|
565
|
+
* @typeParam Schema Generated schema describing the Projection state.
|
|
445
566
|
*/
|
|
446
|
-
export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema
|
|
567
|
+
export declare abstract class Projection<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
|
|
447
568
|
/**
|
|
448
569
|
* Stable server entity family identity.
|
|
449
570
|
*/
|
|
450
571
|
readonly entityFamily: "projection";
|
|
451
572
|
/**
|
|
452
|
-
* Creates a
|
|
573
|
+
* Creates a Projection from its identity, state, and metadata.
|
|
453
574
|
*
|
|
454
575
|
* @param options Identity, schema, state, version, and lifecycle inputs.
|
|
455
576
|
*/
|
|
456
|
-
constructor(options: EntityOptions<Id, Schema
|
|
577
|
+
constructor(options: EntityOptions<Id, Schema>);
|
|
457
578
|
}
|
|
458
579
|
/**
|
|
459
|
-
*
|
|
580
|
+
* Base class for Process Managers coordinating a workflow through signals.
|
|
460
581
|
*
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
*
|
|
582
|
+
* Provides transactional state, protected Event-history access, and
|
|
583
|
+
* handler-scoped queryable Entity-state reads through `select()`. Repositories and bounded
|
|
584
|
+
* contexts invoke handlers, persist changes, and deliver returned signals.
|
|
585
|
+
*
|
|
586
|
+
* @typeParam Id Domain identifier type.
|
|
587
|
+
* @typeParam Schema Generated schema describing the Process Manager state.
|
|
464
588
|
*/
|
|
465
|
-
export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema
|
|
589
|
+
export declare abstract class ProcessManager<Id, Schema extends DescriptorMessageSchema> extends TransactionalEntity<Id, Schema> {
|
|
466
590
|
/**
|
|
467
591
|
* Stable server entity family identity.
|
|
468
592
|
*/
|
|
469
593
|
readonly entityFamily: "process-manager";
|
|
470
594
|
/**
|
|
471
|
-
* Creates a
|
|
595
|
+
* Creates a Process Manager from its identity, state, and metadata.
|
|
472
596
|
*
|
|
473
597
|
* @param options Identity, schema, state, version, and lifecycle inputs.
|
|
474
598
|
*/
|
|
475
|
-
constructor(options: EntityOptions<Id, Schema
|
|
599
|
+
constructor(options: EntityOptions<Id, Schema>);
|
|
476
600
|
/**
|
|
477
601
|
* Reads retained diagnostic events when this repository enabled Process Manager event history.
|
|
478
602
|
*
|
|
@@ -494,6 +618,27 @@ export declare abstract class ProcessManager<Id, Schema extends DescriptorMessag
|
|
|
494
618
|
* @returns Event-history storage for this Process Manager.
|
|
495
619
|
*/
|
|
496
620
|
protected eventStorage(): EntityEventStorage<Id>;
|
|
621
|
+
/**
|
|
622
|
+
* Binds a detached query for a read in the active Process Manager handler.
|
|
623
|
+
*
|
|
624
|
+
* @typeParam QuerySchema Queried Entity state schema.
|
|
625
|
+
* @typeParam Id State identifier type carried by the query.
|
|
626
|
+
* @param query Context-free query to execute with the handler actor and tenant.
|
|
627
|
+
* @returns Read facade for the active handler scope.
|
|
628
|
+
*/
|
|
629
|
+
protected select<QuerySchema extends DescriptorMessageSchema, Id>(query: EntityQueryDescription<QuerySchema, Id>): Readonly<{
|
|
630
|
+
read(): Promise<readonly MessageShape<QuerySchema>[]>;
|
|
631
|
+
}>;
|
|
632
|
+
/**
|
|
633
|
+
* Starts the existing schema-and-columns query builder for the active handler.
|
|
634
|
+
*
|
|
635
|
+
* @typeParam QuerySchema Queried Entity state schema.
|
|
636
|
+
* @typeParam Columns Registered columns selected for the builder.
|
|
637
|
+
* @param schema Query-visible Entity state schema.
|
|
638
|
+
* @param columns Registered columns for that schema.
|
|
639
|
+
* @returns Read-only Process Manager query builder.
|
|
640
|
+
*/
|
|
641
|
+
protected select<QuerySchema extends DescriptorMessageSchema, Columns extends ProcessManagerQueryColumns<QuerySchema>>(schema: QuerySchema, columns: Columns): ProcessManagerQuery<QuerySchema, Columns>;
|
|
497
642
|
}
|
|
498
643
|
export {};
|
|
499
644
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/entity/entity.ts"],"names":[],"mappings":"AAcA,OAAO,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/entity/entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,YAAY,EAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,KAAK,EACV,KAAK,OAAO,EAGZ,KAAK,YAAY,EAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,6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