agl 43.3.1 → 43.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +10 -0
- package/dist_serve/bundle.js +1 -1
- package/dist_serve/bundle.js.map +1 -1
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.controller.d.ts +11 -4
- package/dist_ts/classes.controller.js +25 -53
- package/dist_ts/classes.flexservice.d.ts +12 -1
- package/dist_ts/classes.flexservice.js +44 -13
- package/dist_ts/classes.flexstore.d.ts +20 -0
- package/dist_ts/classes.flexstore.js +30 -1
- package/dist_ts/interfaces.flexipc.d.ts +17 -9
- package/dist_ts/interfaces.flexipc.js +19 -20
- package/package.json +5 -5
- package/readme.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.controller.ts +27 -56
- package/ts/classes.flexservice.ts +57 -14
- package/ts/classes.flexstore.ts +40 -0
- package/ts/interfaces.flexipc.ts +43 -27
- package/ts_web/00_commitinfo_data.ts +1 -1
|
@@ -9,6 +9,15 @@ export interface IFlexTranscriptMigrationPage {
|
|
|
9
9
|
sessionIds: string[];
|
|
10
10
|
nextCursor?: TFlexObjectId;
|
|
11
11
|
}
|
|
12
|
+
/** What the store read for one FlexHarness load of a storage key (AGL-1713). */
|
|
13
|
+
export interface IFlexScopeLoadReads {
|
|
14
|
+
/** Private snapshots read from the database; a cached one costs no read and is not counted. */
|
|
15
|
+
snapshots: number;
|
|
16
|
+
/** Their JSON bytes. */
|
|
17
|
+
bytes: number;
|
|
18
|
+
/** Decoding them: base64, chunk and snapshot SHA-256, concatenation, UTF-8 and `JSON.parse`. */
|
|
19
|
+
decodeMs: number;
|
|
20
|
+
}
|
|
12
21
|
export interface IFlexStoreOptions {
|
|
13
22
|
database: plugins.nosqldb.SmartdataDb;
|
|
14
23
|
controllerId: string;
|
|
@@ -191,6 +200,12 @@ export declare class FlexStore implements plugins.flexharness.IFlexHarnessStores
|
|
|
191
200
|
/** Transcripts by id; they are addressed by their content, so a cached one never goes stale. */
|
|
192
201
|
private readonly transcriptCache;
|
|
193
202
|
private transcriptCacheBytes;
|
|
203
|
+
/**
|
|
204
|
+
* What FlexHarness's load of each storage key has read so far: opened by the load's first read,
|
|
205
|
+
* its scope snapshot, and ended by the load's report (`takeScopeLoadReads`), a purge or the
|
|
206
|
+
* close. At most one entry per storage key, numbers only.
|
|
207
|
+
*/
|
|
208
|
+
private readonly scopeLoadReads;
|
|
194
209
|
constructor(optionsArg: IFlexStoreOptions);
|
|
195
210
|
init(): Promise<void>;
|
|
196
211
|
getLegacyMigrationStores(): plugins.flexharness.IFlexHarnessStores;
|
|
@@ -230,6 +245,11 @@ export declare class FlexStore implements plugins.flexharness.IFlexHarnessStores
|
|
|
230
245
|
* again by a new publication. Saves prove only the records they add.
|
|
231
246
|
*/
|
|
232
247
|
scrubPublicRecords(abortSignalArg?: AbortSignal): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* The reads of FlexHarness's load of a storage key since it began, which end here: FlexHarness
|
|
250
|
+
* reports each load once it ended, whatever its outcome.
|
|
251
|
+
*/
|
|
252
|
+
takeScopeLoadReads(storageKeyArg: string): IFlexScopeLoadReads;
|
|
233
253
|
close(): Promise<void>;
|
|
234
254
|
private loadScope;
|
|
235
255
|
private saveScope;
|