@spine-event-engine/storage-datastore 2.0.0-snapshot.24 → 2.0.0-snapshot.26

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.
Files changed (47) hide show
  1. package/README.md +22 -21
  2. package/REFERENCE.md +55 -50
  3. package/dist/datastore/agent-history.d.ts +36 -6
  4. package/dist/datastore/agent-history.d.ts.map +1 -1
  5. package/dist/datastore/agent-history.js +92 -6
  6. package/dist/datastore/agent-history.js.map +1 -1
  7. package/dist/datastore/column-mapping.d.ts.map +1 -1
  8. package/dist/datastore/column-mapping.js +6 -3
  9. package/dist/datastore/column-mapping.js.map +1 -1
  10. package/dist/datastore/entity-history.d.ts +197 -3
  11. package/dist/datastore/entity-history.d.ts.map +1 -1
  12. package/dist/datastore/entity-history.js +514 -33
  13. package/dist/datastore/entity-history.js.map +1 -1
  14. package/dist/datastore/id-column.d.ts +7 -0
  15. package/dist/datastore/id-column.d.ts.map +1 -1
  16. package/dist/datastore/id-column.js +27 -3
  17. package/dist/datastore/id-column.js.map +1 -1
  18. package/dist/datastore/record-kind.d.ts +8 -0
  19. package/dist/datastore/record-kind.d.ts.map +1 -0
  20. package/dist/datastore/record-kind.js +26 -0
  21. package/dist/datastore/record-kind.js.map +1 -0
  22. package/dist/datastore/record-storage.d.ts +11 -10
  23. package/dist/datastore/record-storage.d.ts.map +1 -1
  24. package/dist/datastore/record-storage.js +28 -28
  25. package/dist/datastore/record-storage.js.map +1 -1
  26. package/dist/datastore/storage-factory.d.ts +246 -40
  27. package/dist/datastore/storage-factory.d.ts.map +1 -1
  28. package/dist/datastore/storage-factory.js +672 -110
  29. package/dist/datastore/storage-factory.js.map +1 -1
  30. package/dist/datastore/tenant-catalog.d.ts +12 -25
  31. package/dist/datastore/tenant-catalog.d.ts.map +1 -1
  32. package/dist/datastore/tenant-catalog.js +43 -121
  33. package/dist/datastore/tenant-catalog.js.map +1 -1
  34. package/dist/datastore/transaction-rows.d.ts +30 -0
  35. package/dist/datastore/transaction-rows.d.ts.map +1 -0
  36. package/dist/datastore/transaction-rows.js +43 -0
  37. package/dist/datastore/transaction-rows.js.map +1 -0
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js.map +1 -1
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/index.yaml +0 -9
  43. package/package.json +5 -6
  44. package/dist/datastore/agent-execution.d.ts +0 -337
  45. package/dist/datastore/agent-execution.d.ts.map +0 -1
  46. package/dist/datastore/agent-execution.js +0 -789
  47. package/dist/datastore/agent-execution.js.map +0 -1
@@ -3,9 +3,40 @@ import type { GenMessage } from "@bufbuild/protobuf/codegenv2";
3
3
  import { Datastore } from "@google-cloud/datastore";
4
4
  import { StringifierRegistry } from "@spine-event-engine/core";
5
5
  import { RecordStorage, StorageFactory, type RecordSpec, type StorageContext, type StorageGroup } from "@spine-event-engine/storage";
6
- import { type TenantCatalog, type TenantCatalogProvider } from "@spine-event-engine/storage/provider";
6
+ import { type TenantCatalog, type TenantCatalogProvider, type EntityStoragePreparationInput, type StoragePreparationMode } from "@spine-event-engine/storage/provider";
7
7
  import type { EntityCommitStorage, EntityEventHistoryPort, EntityRecordStorage, EntityStateHistoryPort, EntityStorageInput } from "@spine-event-engine/storage/provider";
8
8
  import { type NamespaceConverter } from "./namespace.js";
9
+ /**
10
+ * Checks one custom record declaration without constructing storage.
11
+ * @typeParam R Stored record message type.
12
+ */
13
+ export interface PrepareDatastoreRecordStorage<R extends Message = Message> {
14
+ /**
15
+ * Checks the selected record family.
16
+ * @typeParam I Record identifier type.
17
+ * @param context Complete storage context.
18
+ * @param spec Declarative record family.
19
+ * @param client Caller-supplied Datastore client.
20
+ * @param mode Creation or read-only checking.
21
+ * @returns Completion after custom preparation.
22
+ */
23
+ <I>(context: StorageContext, spec: RecordSpec<I, R>, client: Datastore, mode: StoragePreparationMode): Promise<void>;
24
+ }
25
+ /**
26
+ * Checks one coherent custom Entity declaration without constructing storage.
27
+ * @typeParam S Entity state message type.
28
+ */
29
+ export interface PrepareDatastoreEntityStorage<S extends Message = Message> {
30
+ /**
31
+ * Checks the selected coherent Entity provider.
32
+ * @typeParam I Entity identifier type.
33
+ * @param input Declarative Entity family.
34
+ * @param client Caller-supplied Datastore client.
35
+ * @param mode Creation or read-only checking.
36
+ * @returns Completion after custom preparation.
37
+ */
38
+ <I>(input: EntityStoragePreparationInput<I, S>, client: Datastore, mode: StoragePreparationMode): Promise<void>;
39
+ }
9
40
  /**
10
41
  * Describes the physical Datastore kind used for a record family.
11
42
  */
@@ -94,8 +125,14 @@ export interface DatastoreEntityStorageHandle<I, S extends Message> {
94
125
  isOpen(): boolean;
95
126
  /**
96
127
  * Closes the handle.
128
+ *
129
+ * @returns Completion after retained resources are closed.
130
+ */
131
+ close(): Promise<void>;
132
+ /**
133
+ * Closes an idle bundle during synchronous assembly rollback.
97
134
  */
98
- close(): void;
135
+ closeIdle(): void;
99
136
  }
100
137
  /**
101
138
  * Configures a Datastore storage factory before it is built.
@@ -122,6 +159,15 @@ export interface DatastoreStorageFactoryBuilder {
122
159
  * @returns Returns this builder.
123
160
  */
124
161
  setStringifierRegistry(registry: StringifierRegistry): this;
162
+ /**
163
+ * Sets the kind for one named domain or System Event Store.
164
+ *
165
+ * @param boundedContextName Actual selected Bounded Context name.
166
+ * @param kind Physical Datastore kind.
167
+ * @param role Domain or System Event Store role.
168
+ * @returns This builder.
169
+ */
170
+ setEventStoreKind(boundedContextName: string, kind: string, role?: "domain" | "system"): this;
125
171
  /**
126
172
  * Sets a physical kind for every use of a record type.
127
173
  *
@@ -148,9 +194,10 @@ export interface DatastoreStorageFactoryBuilder {
148
194
  * @typeParam R Stored record message type.
149
195
  * @param recordType The record type served by the provider.
150
196
  * @param creator The custom record-storage provider.
197
+ * @param prepare Optional declarative preparation for the selected custom provider.
151
198
  * @returns This builder.
152
199
  */
153
- useRecordStorage<R extends Message>(recordType: GenMessage<R>, creator: CreateRecordStorage<R>): this;
200
+ useRecordStorage<R extends Message>(recordType: GenMessage<R>, creator: CreateRecordStorage<R>, prepare?: PrepareDatastoreRecordStorage<R>): this;
154
201
  /**
155
202
  * Sets a custom provider for one source and record-type pair.
156
203
  *
@@ -159,18 +206,20 @@ export interface DatastoreStorageFactoryBuilder {
159
206
  * @param sourceType The Entity state type that owns the records.
160
207
  * @param recordType The record type served by the provider.
161
208
  * @param creator The custom record-storage provider.
209
+ * @param prepare Optional declarative preparation for the selected custom provider.
162
210
  * @returns This builder.
163
211
  */
164
- useRecordStorage<S extends Message, R extends Message>(sourceType: GenMessage<S>, recordType: GenMessage<R>, creator: CreateRecordStorage<R>): this;
212
+ useRecordStorage<S extends Message, R extends Message>(sourceType: GenMessage<S>, recordType: GenMessage<R>, creator: CreateRecordStorage<R>, prepare?: PrepareDatastoreRecordStorage<R>): this;
165
213
  /**
166
214
  * Sets a custom persistence provider for one Entity state type.
167
215
  *
168
216
  * @typeParam S Entity state message type.
169
217
  * @param sourceType The Entity state type served by the provider.
170
218
  * @param creator The custom Entity persistence provider.
219
+ * @param prepare Optional declarative preparation for the coherent custom provider.
171
220
  * @returns This builder.
172
221
  */
173
- useEntityStorage<S extends Message>(sourceType: GenMessage<S>, creator: CreateEntityStorage<S>): this;
222
+ useEntityStorage<S extends Message>(sourceType: GenMessage<S>, creator: CreateEntityStorage<S>, prepare?: PrepareDatastoreEntityStorage<S>): this;
174
223
  /**
175
224
  * Builds a Datastore storage factory from this configuration.
176
225
  *
@@ -194,60 +243,163 @@ export declare class DatastoreStorageFactory extends StorageFactory implements T
194
243
  *
195
244
  * @param client The caller-owned Datastore client.
196
245
  * @param recordCreators Custom record-storage providers by record family.
246
+ * @param recordPreparers Declarative preparation callbacks by record family.
197
247
  * @param layouts Physical record layouts by record family.
198
248
  * @param entityCreators Custom Entity persistence providers by Entity type.
249
+ * @param entityPreparers Declarative preparation callbacks by Entity type.
199
250
  * @param namespaceConverter Converts complete tenants to native namespaces.
200
251
  * @param stringifiers Converts message-valued IDs and columns.
252
+ * @param eventStoreKinds Explicit native kinds by Event Store identity.
201
253
  * @internal
202
254
  */
203
255
  private constructor();
204
256
  /**
205
- * Registers the required provider-only Agent history capability.
257
+ * Checks the shared namespace metadata with a bounded read-only query.
258
+ * @returns Completion after the metadata read; failures can be retried.
206
259
  */
207
- private registerAgentHistory;
260
+ checkConnection(): Promise<void>;
208
261
  /**
209
- * Registers the native transactional Agent execution capability.
262
+ * Performs one exact-key metadata read for a native namespace.
263
+ * @param namespace Native namespace to inspect.
264
+ * @returns Completion after the metadata query.
210
265
  */
211
- private registerAgentExecution;
266
+ private probe;
212
267
  /**
213
- * Opens one Agent execution handle after factory lifecycle validation.
214
- *
215
- * @param input Requested fenced execution change.
216
- * @returns Tenant-scoped Agent execution storage handle.
217
- * @typeParam I Typed entity identifier.
218
- * @typeParam S Generated Entity state.
268
+ * Admits asynchronous physical preparation before invoking callbacks.
269
+ * @param operation Work to perform within the factory lifetime.
270
+ * @returns Completion or rejection from the admitted work.
219
271
  */
220
- private createAgentExecution;
272
+ private admit;
221
273
  /**
222
- * Opens the fixed execution kinds and existing Entity record families.
223
- *
224
- * @param input Requested fenced execution change.
225
- * @returns Tenant-scoped native record handles.
226
- * @typeParam I Typed entity identifier.
227
- * @typeParam S Generated Entity state.
274
+ * Tracks a history batch before synchronously capturing caller-supplied values.
275
+ * @param operation Complete immutable audit group.
276
+ * @returns The admitted group outcome.
228
277
  */
229
- private executionRows;
278
+ private admitHistory;
230
279
  /**
231
- * Opens optional existing Entity state and diagnostic record families.
232
- *
233
- * @param input Typed Agent repository and history configuration.
234
- * @returns Optional native state and diagnostic handles.
280
+ * Prepares a declared record family without opening a storage handle.
281
+ * @typeParam I Record identifier type.
282
+ * @typeParam R Stored record type.
283
+ * @param context Captured tenant context.
284
+ * @param spec The physical record declaration.
285
+ * @param group Optional history family.
286
+ * @param mode Creation or read-only checking.
287
+ * @returns Completion after native or custom preparation.
288
+ */
289
+ private prepareRecord;
290
+ /**
291
+ * Prepares a family within an existing factory admission.
292
+ * @typeParam I Record identifier type.
293
+ * @typeParam R Stored record type.
294
+ * @param context Captured tenant context.
295
+ * @param spec The physical record declaration.
296
+ * @param group Optional history family.
297
+ * @param mode Creation or read-only checking.
298
+ * @param allowCustom Whether ordinary custom creators are selected.
299
+ * @returns Completion after compatible preparation.
300
+ */
301
+ private prepareRecordAdmitted;
302
+ /**
303
+ * Prepares current Entity and enabled history declarations without storage handles.
304
+ * @typeParam I Entity identifier type.
305
+ * @typeParam S Entity state type.
306
+ * @param input The declarative Entity family.
307
+ * @param mode Creation or read-only checking.
308
+ * @returns Completion after all requested families are checked.
309
+ */
310
+ private prepareEntity;
311
+ /**
312
+ * Prepares the surviving Agent audit family.
313
+ * @typeParam I Agent identifier type.
314
+ * @param input Agent state and complete tenant context.
315
+ * @returns Completion after audit record compatibility is checked.
316
+ */
317
+ private prepareAgentHistory;
318
+ /**
319
+ * Creates native live Agent current, audit, and preference requirements.
320
+ * @param input Declarative Agent Entity layout.
321
+ * @param mode Creation or read-only metadata check.
322
+ * @returns Completion after native definitions are compatible.
235
323
  * @typeParam I Typed Agent identifier.
236
324
  * @typeParam S Generated Agent state.
237
325
  */
238
- private optionalExecutionRows;
326
+ private prepareAgentCommit;
327
+ /**
328
+ * Checks the two native Agent audit families after current Entity declarations.
329
+ * @param context Complete tenant context.
330
+ * @returns Completion after both families are accessible.
331
+ */
332
+ private prepareAgentMetadata;
239
333
  /**
240
- * Resolves one native kind through the existing record layout.
334
+ * Checks one native physical definition and its namespace read access.
335
+ * @typeParam I Record identifier type.
336
+ * @typeParam R Stored record type.
337
+ * @param context Complete tenant context.
338
+ * @param spec The declared record family.
339
+ * @param group Optional physical group.
340
+ * @param explicitKind Configured or fixed native kind.
341
+ * @returns Completion after a compatible namespace read.
342
+ */
343
+ private prepareNative;
344
+ /**
345
+ * Checks one retained definition and records only successful readiness.
346
+ * @param namespace Native namespace to inspect.
347
+ * @param family Canonical physical family key.
348
+ * @param entry Existing compatible physical declaration.
349
+ * @returns Completion after the read-only metadata check.
350
+ */
351
+ private probePrepared;
352
+ /**
353
+ * Records a successful native handle's pure layout for later compatibility checks.
354
+ * @typeParam I Record identifier type.
355
+ * @typeParam R Stored record type.
356
+ * @param context Complete tenant context.
357
+ * @param spec The declared record family.
358
+ * @param group Optional physical group.
359
+ * @param explicitKind Configured or fixed native kind.
360
+ * @param mapping Actual native mapping from an opened handle.
361
+ */
362
+ private declareNative;
363
+ /**
364
+ * Finds the pure native namespace, kind, and record layout declaration.
365
+ * @typeParam I Record identifier type.
366
+ * @typeParam R Stored record type.
367
+ * @param context Complete tenant context.
368
+ * @param spec The declared record family.
369
+ * @param group Optional physical group.
370
+ * @param explicitKind Configured or fixed native kind.
371
+ * @param mapping Actual native mapping from an opened handle.
372
+ * @returns Canonical physical identity and signature.
373
+ */
374
+ private nativeDefinition;
375
+ /**
376
+ * Returns a configured or default native record kind.
241
377
  *
242
- * @param context Captured event storage context.
243
- * @param fixedKind Fixed native Datastore kind.
244
- * @param group Fixed storage group.
245
- * @param spec Typed record layout.
246
- * @returns Typed native record handle.
247
- * @typeParam I Typed entity identifier.
248
- * @typeParam R Typed persisted record.
378
+ * @typeParam I Record identifier type.
379
+ * @typeParam R Stored record message type.
380
+ * @param spec Declared record family.
381
+ * @param group Optional physical group.
382
+ * @param explicitKind Kind from a record layout.
383
+ * @returns The selected native kind.
384
+ */
385
+ private selectedKind;
386
+ /**
387
+ * Converts one complete tenant boundary to its native namespace.
388
+ * @param context Complete tenant context.
389
+ * @returns Its native Datastore namespace.
390
+ */
391
+ private nativeNamespace;
392
+ /**
393
+ * Captures physical column declarations without evaluating record callbacks.
394
+ * @typeParam R Stored record type.
395
+ * @param columns Declared query columns.
396
+ * @returns Stable physical column signature.
397
+ */
398
+ private columnSignature;
399
+ /**
400
+ * Registers the required provider-only Agent history capability.
249
401
  */
250
- private executionRecord;
402
+ private registerAgentHistory;
251
403
  /**
252
404
  * Creates the selected Entity provider bundle.
253
405
  *
@@ -257,6 +409,41 @@ export declare class DatastoreStorageFactory extends StorageFactory implements T
257
409
  * @returns The coherent Entity storage handle.
258
410
  */
259
411
  createEntityStorage<I, S extends Message>(input: EntityStorageInput<I, S>): DatastoreEntityStorageHandle<I, S>;
412
+ /**
413
+ * Registers a coherent Entity bundle for factory shutdown.
414
+ *
415
+ * @param bundle The coherent Entity storage bundle.
416
+ * @returns The tracked Entity storage bundle.
417
+ * @typeParam I Entity identifier or record type.
418
+ * @typeParam S Generated Entity state message type.
419
+ */
420
+ private retainBundle;
421
+ /**
422
+ * Acquires direct built-in commit access without an unused Entity read bundle.
423
+ *
424
+ * @param input The captured Entity persistence input.
425
+ * @returns The provider commit handle.
426
+ * @typeParam I Entity identifier or record type.
427
+ * @typeParam S Generated Entity state message type.
428
+ */
429
+ private createEntityCommitStorage;
430
+ /**
431
+ * Wraps a custom bundle while retaining its complete cleanup obligation.
432
+ * @param custom Registered custom Entity storage creator.
433
+ * @param input Captured Entity storage layout.
434
+ * @typeParam I Typed Entity identifier.
435
+ * @typeParam S Generated Entity state.
436
+ * @returns The adapted custom commit handle.
437
+ */
438
+ private createCustomCommitStorage;
439
+ /**
440
+ * Creates repeatable cleanup methods that retain a bundle until closure settles.
441
+ *
442
+ * @param bundle The complete provider bundle.
443
+ * @param onRemove Removes the settled factory root.
444
+ * @returns Repeatable close methods.
445
+ */
446
+ private retainCleanup;
260
447
  /**
261
448
  * Creates provider-specific Datastore record storage.
262
449
  *
@@ -269,7 +456,7 @@ export declare class DatastoreStorageFactory extends StorageFactory implements T
269
456
  */
270
457
  protected onCreateRecordStorage<I, R extends Message>(context: StorageContext, recordSpec: RecordSpec<I, R>, group?: StorageGroup): RecordStorage<I, R>;
271
458
  /**
272
- * Opens the built-in record provider for generated Entity families.
459
+ * Acquires the built-in record provider for generated Entity families.
273
460
  *
274
461
  * @typeParam I Record identifier type.
275
462
  * @typeParam R Stored record message type.
@@ -280,7 +467,18 @@ export declare class DatastoreStorageFactory extends StorageFactory implements T
280
467
  */
281
468
  private createEntityRecordStorage;
282
469
  /**
283
- * Resolves the registered creator and physical layout for a record family.
470
+ * Acquires one native record handle and retains its pure physical definition.
471
+ * @typeParam I Record identifier type.
472
+ * @typeParam R Stored record type.
473
+ * @param context Complete tenant context.
474
+ * @param spec The declared record family.
475
+ * @param group Optional physical group.
476
+ * @param kind Configured or fixed native kind.
477
+ * @returns The native record handle.
478
+ */
479
+ private openNative;
480
+ /**
481
+ * Finds the registered creator and physical layout for a record family.
284
482
  *
285
483
  * @typeParam I Record identifier type.
286
484
  * @typeParam R Stored record message type.
@@ -298,7 +496,15 @@ export declare class DatastoreStorageFactory extends StorageFactory implements T
298
496
  tenantCatalog(): TenantCatalog;
299
497
  /**
300
498
  * Closes the factory and its native tenant catalog.
499
+ *
500
+ * @returns Completion after retained resources are closed.
501
+ */
502
+ close(): Promise<void>;
503
+ /**
504
+ * Waits for admitted commits before closing remaining factory resources.
505
+ *
506
+ * @returns Completion after admitted work and cleanup settle.
301
507
  */
302
- close(): void;
508
+ private drain;
303
509
  }
304
510
  //# sourceMappingURL=storage-factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage-factory.d.ts","sourceRoot":"","sources":["../../src/datastore/storage-factory.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC3B,MAAM,sCAAsC,CAAC;AAQ9C,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,m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