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

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.
@@ -18,14 +18,12 @@ import {} from "@spine-event-engine/storage/provider";
18
18
  import { AgentExecutionRecords, AgentHistoryRecords, eventHistorySpec, stateHistorySpec, } from "@spine-event-engine/storage/provider";
19
19
  import { eventStoreRecordSpec } from "@spine-event-engine/storage/provider";
20
20
  import { EntityCommitStorageFactories } from "@spine-event-engine/storage/provider";
21
- import { DeliveryCleanupStorageFactories } from "@spine-event-engine/storage/provider";
22
21
  import { AgentHistoryStorageFactories } from "@spine-event-engine/storage/provider";
23
22
  import { AgentExecutionStorageFactories } from "@spine-event-engine/storage/provider";
24
23
  import { DatastoreEntityCommitStorage, DatastoreEntityStorage, } from "./entity-history.js";
25
24
  import { DatastoreRecordStorage } from "./record-storage.js";
26
25
  import { DatastoreAgentHistory, AgentHistoryHash } from "./agent-history.js";
27
26
  import { DatastoreAgentExecution } from "./agent-execution.js";
28
- import { DatastoreDeliveryCleanupStorage } from "./delivery-cleanup.js";
29
27
  import { DefaultNamespaceConverter, NamespaceAssignments, } from "./namespace.js";
30
28
  import { DatastoreTenantCatalog } from "./tenant-catalog.js";
31
29
  const maxClientSideScan = 1_000;
@@ -38,39 +36,27 @@ export class DatastoreStorageFactory extends StorageFactory {
38
36
  */
39
37
  #client;
40
38
  /**
41
-
42
- * Custom record providers by family.
43
-
39
+ * Custom record creators indexed by source and record type.
44
40
  */
45
41
  #recordCreators;
46
42
  /**
47
-
48
- * Physical kinds by record family.
49
-
43
+ * Physical layouts indexed by source and record type.
50
44
  */
51
45
  #layouts;
52
46
  /**
53
-
54
- * Custom Entity providers by state type.
55
-
47
+ * Custom Entity creators indexed by state type.
56
48
  */
57
49
  #entityCreators;
58
50
  /**
59
-
60
- * Complete tenant-to-namespace conversion.
61
-
51
+ * Reversible tenant namespace assignment.
62
52
  */
63
53
  #namespaceConverter;
64
54
  /**
65
-
66
- * Schema-bound message stringifiers.
67
-
55
+ * Message-valued ID and column conversion registry.
68
56
  */
69
57
  #stringifiers;
70
58
  /**
71
-
72
- * Native tenant catalog for the selected client.
73
-
59
+ * Native tenant namespace catalog.
74
60
  */
75
61
  #catalog;
76
62
  /**
@@ -104,9 +90,6 @@ export class DatastoreStorageFactory extends StorageFactory {
104
90
  EntityCommitStorageFactories.register(this, {
105
91
  createEntityCommitStorage: (input) => this.createEntityStorage(input).commits,
106
92
  });
107
- DeliveryCleanupStorageFactories.register(this, {
108
- createDeliveryCleanupStorage: () => new DatastoreDeliveryCleanupStorage((context, spec) => this.cleanupStorage(context, spec)),
109
- });
110
93
  this.registerAgentHistory();
111
94
  this.registerAgentExecution();
112
95
  }
@@ -210,10 +193,10 @@ export class DatastoreStorageFactory extends StorageFactory {
210
193
  /**
211
194
  * Creates the selected Entity provider bundle.
212
195
  *
196
+ * @typeParam I Entity identifier type.
197
+ * @typeParam S Entity state message type.
213
198
  * @param input The Entity persistence contract.
214
199
  * @returns The coherent Entity storage handle.
215
- * @typeParam I Typed Entity identifier.
216
- * @typeParam S Entity state message.
217
200
  */
218
201
  createEntityStorage(input) {
219
202
  if (!this.isOpen())
@@ -229,12 +212,12 @@ export class DatastoreStorageFactory extends StorageFactory {
229
212
  /**
230
213
  * Creates provider-specific Datastore record storage.
231
214
  *
215
+ * @typeParam I Record identifier type.
216
+ * @typeParam R Stored record message type.
232
217
  * @param context The storage context.
233
218
  * @param recordSpec The record specification.
234
219
  * @param group Separates records that share one source type.
235
220
  * @returns The created Datastore record storage.
236
- * @typeParam I Typed record identifier.
237
- * @typeParam R Stored record message.
238
221
  */
239
222
  onCreateRecordStorage(context, recordSpec, group) {
240
223
  const resolved = this.resolve(recordSpec, group, true);
@@ -244,41 +227,28 @@ export class DatastoreStorageFactory extends StorageFactory {
244
227
  return new DatastoreRecordStorage(context, recordSpec, this.#client, maxClientSideScan, group, resolved.layout?.kind, this.#namespaceConverter, this.#stringifiers);
245
228
  }
246
229
  /**
247
- * Creates a canonical Entity record handle without a custom provider callback.
230
+ * Opens the built-in record provider for generated Entity families.
248
231
  *
249
- * @param context Complete storage and tenant scope.
250
- * @param recordSpec Generated record layout.
251
- * @param group Optional record family group.
252
- * @returns Native record handle.
253
- * @typeParam I Typed record identifier.
254
- * @typeParam R Stored record message.
232
+ * @typeParam I Record identifier type.
233
+ * @typeParam R Stored record message type.
234
+ * @param context Identifies the storage tenant and context.
235
+ * @param recordSpec Defines the generated record family.
236
+ * @param group Selects an optional grouped history family.
237
+ * @returns A built-in Datastore record handle.
255
238
  */
256
239
  createEntityRecordStorage(context, recordSpec, group) {
257
240
  const resolved = this.resolve(recordSpec, group, false);
258
241
  return new DatastoreRecordStorage(context, recordSpec, this.#client, maxClientSideScan, group, resolved.layout?.kind, this.#namespaceConverter, this.#stringifiers);
259
242
  }
260
243
  /**
261
- * Creates a canonical delivery-cleanup record handle.
244
+ * Resolves the registered creator and physical layout for a record family.
262
245
  *
263
- * @param context Complete storage and tenant scope.
264
- * @param recordSpec Generated record layout.
265
- * @returns Native record handle.
266
- * @typeParam I Typed record identifier.
267
- * @typeParam R Stored record message.
268
- */
269
- cleanupStorage(context, recordSpec) {
270
- const resolved = this.resolve(recordSpec, undefined, false);
271
- return new DatastoreRecordStorage(context, recordSpec, this.#client, maxClientSideScan, undefined, resolved.layout?.kind, this.#namespaceConverter, this.#stringifiers);
272
- }
273
- /**
274
- * Resolves a declared record family's native kind and optional callback.
275
- *
276
- * @param recordSpec Generated record layout.
277
- * @param group Optional record family group.
278
- * @param includeCreator Whether custom callbacks are permitted.
279
- * @returns Matching custom provider and physical layout, when configured.
280
- * @typeParam I Typed record identifier.
281
- * @typeParam R Stored record message.
246
+ * @typeParam I Record identifier type.
247
+ * @typeParam R Stored record message type.
248
+ * @param recordSpec Defines the requested family.
249
+ * @param group Selects an optional grouped family.
250
+ * @param includeCreator Allows a custom record creator for ordinary records.
251
+ * @returns Matching custom creator and physical layout, when registered.
282
252
  */
283
253
  resolve(recordSpec, group, includeCreator) {
284
254
  const source = recordSpec.sourceType.typeName;
@@ -310,49 +280,39 @@ export class DatastoreStorageFactory extends StorageFactory {
310
280
  }
311
281
  /**
312
282
 
313
- * Builds a Datastore factory from caller-supplied client and layout options.
283
+ * Configures a Datastore storage factory before construction.
314
284
 
315
285
  */
316
286
  class Builder {
317
287
  create;
318
288
  /**
319
- * Caller-supplied Datastore client.
289
+ * Caller-supplied client required by build.
320
290
  */
321
291
  #client;
322
292
  /**
323
-
324
- * Custom providers by record-family identity.
325
-
293
+ * Custom record creators indexed by family.
326
294
  */
327
295
  #recordCreators = new Map();
328
296
  /**
329
-
330
- * Physical kinds by record-family identity.
331
-
297
+ * Physical kind layouts indexed by family.
332
298
  */
333
299
  #layouts = new Map();
334
300
  /**
335
-
336
- * Custom Entity providers by generated state type.
337
-
301
+ * Custom Entity creators indexed by state type.
338
302
  */
339
303
  #entityCreators = new Map();
340
304
  /**
341
-
342
- * Complete tenant-to-namespace converter.
343
-
305
+ * Converter for multitenant Datastore namespaces.
344
306
  */
345
307
  #namespaceConverter = new DefaultNamespaceConverter();
346
308
  /**
347
-
348
- * Schema-bound message stringifiers.
349
-
309
+ * Converter for message-valued IDs and columns.
350
310
  */
351
311
  #stringifiers = new StringifierRegistry();
352
312
  /**
353
- * Binds the resolved configuration to a factory constructor.
313
+ * Creates a builder with the selected factory constructor.
354
314
  *
355
- * @param create Creates the configured Datastore factory.
315
+ * @param create Constructs the configured factory.
356
316
  */
357
317
  constructor(create) {
358
318
  this.create = create;
@@ -360,7 +320,7 @@ class Builder {
360
320
  /**
361
321
  * Sets the caller-supplied Datastore client.
362
322
  *
363
- * @param client Datastore client.
323
+ * @param client Connects to the chosen Datastore project.
364
324
  * @returns This builder.
365
325
  */
366
326
  setClient(client) {
@@ -368,9 +328,9 @@ class Builder {
368
328
  return this;
369
329
  }
370
330
  /**
371
- * Sets reversible complete tenant namespace conversion.
331
+ * Sets reversible tenant namespace conversion.
372
332
  *
373
- * @param converter Tenant namespace converter.
333
+ * @param converter Converts complete tenant identities.
374
334
  * @returns This builder.
375
335
  */
376
336
  setNamespaceConverter(converter) {
@@ -378,9 +338,9 @@ class Builder {
378
338
  return this;
379
339
  }
380
340
  /**
381
- * Sets schema-bound message stringifiers for IDs and columns.
341
+ * Sets message-valued ID and column converters.
382
342
  *
383
- * @param registry Custom message stringifiers.
343
+ * @param registry Supplies schema-bound message stringifiers.
384
344
  * @returns This builder.
385
345
  */
386
346
  setStringifierRegistry(registry) {
@@ -388,13 +348,13 @@ class Builder {
388
348
  return this;
389
349
  }
390
350
  /**
391
- * Maps a record family to one native Datastore kind.
351
+ * Registers a physical kind for one source and record family.
392
352
  *
393
- * @param first Source or record message type.
394
- * @param second Record message type or kind layout.
395
- * @param third Kind layout for a source-record pair.
353
+ * @typeParam R Stored record message type.
354
+ * @param first Record type, or source type when three arguments are supplied.
355
+ * @param second Layout, or record type when three arguments are supplied.
356
+ * @param third Layout for a source-specific registration.
396
357
  * @returns This builder.
397
- * @typeParam R Stored record message.
398
358
  */
399
359
  organizeRecords(first, second, third) {
400
360
  const [source, record, layout] = third === undefined ? [undefined, first, second] : [first, second, third];
@@ -402,13 +362,13 @@ class Builder {
402
362
  return this;
403
363
  }
404
364
  /**
405
- * Registers one custom record provider for a record family.
365
+ * Registers a custom record provider for one family.
406
366
  *
407
- * @param first Source or record message type.
408
- * @param second Record message type or provider callback.
409
- * @param third Provider callback for a source-record pair.
367
+ * @typeParam R Stored record message type.
368
+ * @param first Record type, or source type when three arguments are supplied.
369
+ * @param second Creator, or record type when three arguments are supplied.
370
+ * @param third Creator for a source-specific registration.
410
371
  * @returns This builder.
411
- * @typeParam R Stored record message.
412
372
  */
413
373
  useRecordStorage(first, second, third) {
414
374
  const [source, record, creator] = third === undefined
@@ -418,21 +378,21 @@ class Builder {
418
378
  return this;
419
379
  }
420
380
  /**
421
- * Registers one custom Entity provider for a generated state type.
381
+ * Registers a custom persistence provider for an Entity state type.
422
382
  *
423
- * @param sourceType Generated Entity state type.
424
- * @param creator Custom Entity provider callback.
383
+ * @typeParam S Entity state message type.
384
+ * @param sourceType Selects the Entity state type.
385
+ * @param creator Builds its storage handle.
425
386
  * @returns This builder.
426
- * @typeParam S Entity state message.
427
387
  */
428
388
  useEntityStorage(sourceType, creator) {
429
389
  this.#entityCreators.set(sourceType.typeName, creator);
430
390
  return this;
431
391
  }
432
392
  /**
433
- * Builds the configured Datastore factory.
393
+ * Builds a factory after validating its client and kind registrations.
434
394
  *
435
- * @returns Factory bound to the supplied client and layout configuration.
395
+ * @returns The configured Datastore storage factory.
436
396
  */
437
397
  build() {
438
398
  if (this.#client === undefined)
@@ -442,10 +402,10 @@ class Builder {
442
402
  }
443
403
  }
444
404
  /**
445
- * Groups current Entity records, histories, and commit access in one handle.
405
+ * Combines generated Entity records and commit access for one source.
446
406
  *
447
- * @typeParam I Typed Entity identifier.
448
- * @typeParam S Entity state message.
407
+ * @typeParam I Entity identifier type.
408
+ * @typeParam S Entity state message type.
449
409
  */
450
410
  class DefaultEntityHandle {
451
411
  /**
@@ -453,34 +413,26 @@ class DefaultEntityHandle {
453
413
  */
454
414
  current;
455
415
  /**
456
-
457
- * Retained Entity state history.
458
-
416
+ * Retained state history access.
459
417
  */
460
418
  states;
461
419
  /**
462
-
463
- * Retained diagnostic Event history.
464
-
420
+ * Retained diagnostic history access.
465
421
  */
466
422
  events;
467
423
  /**
468
-
469
- * Atomic Entity commit access.
470
-
424
+ * Ordered Entity commit access.
471
425
  */
472
426
  commits;
473
427
  /**
474
-
475
- * Backing Entity storage handle.
476
-
428
+ * Shared record-family handles.
477
429
  */
478
430
  #storage;
479
431
  /**
480
- * Binds Entity storage and commit access to one closeable handle.
432
+ * Connects the generated storage and commit handle.
481
433
  *
482
- * @param storage Current record and history access.
483
- * @param commits Atomic Entity commit access.
434
+ * @param storage Opens current and retained Entity records.
435
+ * @param commits Writes one prepared Entity mutation.
484
436
  */
485
437
  constructor(storage, commits) {
486
438
  this.#storage = storage;
@@ -490,17 +442,15 @@ class DefaultEntityHandle {
490
442
  this.commits = commits;
491
443
  }
492
444
  /**
493
- * Checks whether the backing Entity storage remains open.
445
+ * Returns whether the generated storage remains open.
494
446
  *
495
- * @returns Whether operations are accepted.
447
+ * @returns Whether operations remain available.
496
448
  */
497
449
  isOpen() {
498
450
  return this.#storage.isOpen();
499
451
  }
500
452
  /**
501
-
502
- * Closes all Entity storage and commit handles.
503
-
453
+ * Closes generated records and commit access.
504
454
  */
505
455
  close() {
506
456
  this.#storage.close();
@@ -1 +1 @@
1
- {"version":3,"file":"storage-factory.js","sourceRoot":"","sources":["../../src/datastore/storage-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EACL,aAAa,EACb,cAAc,GAIf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGN,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAQ5E,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAItF,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;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