@seedtactics/insight-client 17.0.0-beta.2 → 17.0.0-beta.4
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/assets/{index-BvhibzJZ.js → index-CUu2qHWT.js} +2 -2
- package/dist/components/log-entry-container-name.d.ts +3 -3
- package/dist/components/log-entry-container-name.js +3 -3
- package/dist/index.html +1 -1
- package/dist/network/api.d.ts +4 -8
- package/dist/network/api.js +10 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as api from "../network/api.js";
|
|
2
|
-
type
|
|
3
|
-
type BasketCycleEntry =
|
|
4
|
-
export declare function basketContainerName(entry:
|
|
2
|
+
type BasketNameEntry = Readonly<Pick<api.ILogEntry, "pal" | "basketContentEpisodeId">>;
|
|
3
|
+
type BasketCycleEntry = BasketNameEntry & Readonly<Pick<api.ILogEntry, "startofcycle" | "basketCycleEndContentEpisodeIds">>;
|
|
4
|
+
export declare function basketContainerName(entry: BasketNameEntry, basketName: string): string;
|
|
5
5
|
export declare function basketCycleDescription(entry: BasketCycleEntry, basketName: string): string;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function basketContainerName(entry, basketName) {
|
|
2
|
-
if (entry.
|
|
3
|
-
return `${basketName} fragment ${entry.
|
|
2
|
+
if (entry.basketContentEpisodeId)
|
|
3
|
+
return `${basketName} fragment ${entry.basketContentEpisodeId.slice(0, 8)}`;
|
|
4
4
|
if (entry.pal > 0)
|
|
5
5
|
return `${basketName} ${entry.pal}`;
|
|
6
6
|
return basketName;
|
|
@@ -9,7 +9,7 @@ export function basketCycleDescription(entry, basketName) {
|
|
|
9
9
|
const container = basketContainerName(entry, basketName);
|
|
10
10
|
if (entry.startofcycle)
|
|
11
11
|
return `${container} started cycle`;
|
|
12
|
-
const fragmentCount = entry.
|
|
12
|
+
const fragmentCount = entry.basketCycleEndContentEpisodeIds?.length ?? 0;
|
|
13
13
|
const fragments = fragmentCount > 0
|
|
14
14
|
? ` from ${fragmentCount} UUID fragment${fragmentCount === 1 ? "" : "s"}`
|
|
15
15
|
: "";
|
package/dist/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
</style>
|
|
46
|
-
<script type="module" crossorigin src="/assets/index-
|
|
46
|
+
<script type="module" crossorigin src="/assets/index-CUu2qHWT.js"></script>
|
|
47
47
|
<link rel="stylesheet" crossorigin href="/assets/index-DXfAwuj-.css">
|
|
48
48
|
</head>
|
|
49
49
|
<body>
|
package/dist/network/api.d.ts
CHANGED
|
@@ -223,8 +223,8 @@ export declare class LogEntry implements ILogEntry {
|
|
|
223
223
|
loc: string;
|
|
224
224
|
locnum: number;
|
|
225
225
|
pal: number;
|
|
226
|
-
|
|
227
|
-
|
|
226
|
+
basketContentEpisodeId?: string | undefined;
|
|
227
|
+
basketCycleEndContentEpisodeIds?: string[] | undefined;
|
|
228
228
|
program: string;
|
|
229
229
|
result: string;
|
|
230
230
|
elapsed: string;
|
|
@@ -233,8 +233,6 @@ export declare class LogEntry implements ILogEntry {
|
|
|
233
233
|
[key: string]: string;
|
|
234
234
|
} | undefined;
|
|
235
235
|
tooluse?: ToolUse[] | undefined;
|
|
236
|
-
foreignId?: string | undefined;
|
|
237
|
-
correlationId?: string | undefined;
|
|
238
236
|
constructor(data?: ILogEntry);
|
|
239
237
|
init(_data?: any): void;
|
|
240
238
|
static fromJS(data: any): LogEntry;
|
|
@@ -249,8 +247,8 @@ export interface ILogEntry {
|
|
|
249
247
|
loc: string;
|
|
250
248
|
locnum: number;
|
|
251
249
|
pal: number;
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
basketContentEpisodeId?: string | undefined;
|
|
251
|
+
basketCycleEndContentEpisodeIds?: string[] | undefined;
|
|
254
252
|
program: string;
|
|
255
253
|
result: string;
|
|
256
254
|
elapsed: string;
|
|
@@ -259,8 +257,6 @@ export interface ILogEntry {
|
|
|
259
257
|
[key: string]: string;
|
|
260
258
|
} | undefined;
|
|
261
259
|
tooluse?: ToolUse[] | undefined;
|
|
262
|
-
foreignId?: string | undefined;
|
|
263
|
-
correlationId?: string | undefined;
|
|
264
260
|
}
|
|
265
261
|
export declare class LogMaterial implements ILogMaterial {
|
|
266
262
|
id: number;
|
package/dist/network/api.js
CHANGED
|
@@ -2517,11 +2517,11 @@ export class LogEntry {
|
|
|
2517
2517
|
this.loc = _data["loc"];
|
|
2518
2518
|
this.locnum = _data["locnum"];
|
|
2519
2519
|
this.pal = _data["pal"];
|
|
2520
|
-
this.
|
|
2521
|
-
if (Array.isArray(_data["
|
|
2522
|
-
this.
|
|
2523
|
-
for (let item of _data["
|
|
2524
|
-
this.
|
|
2520
|
+
this.basketContentEpisodeId = _data["basketContentEpisodeId"];
|
|
2521
|
+
if (Array.isArray(_data["basketCycleEndContentEpisodeIds"])) {
|
|
2522
|
+
this.basketCycleEndContentEpisodeIds = [];
|
|
2523
|
+
for (let item of _data["basketCycleEndContentEpisodeIds"])
|
|
2524
|
+
this.basketCycleEndContentEpisodeIds.push(item);
|
|
2525
2525
|
}
|
|
2526
2526
|
this.program = _data["program"];
|
|
2527
2527
|
this.result = _data["result"];
|
|
@@ -2539,8 +2539,6 @@ export class LogEntry {
|
|
|
2539
2539
|
for (let item of _data["tooluse"])
|
|
2540
2540
|
this.tooluse.push(ToolUse.fromJS(item));
|
|
2541
2541
|
}
|
|
2542
|
-
this.foreignId = _data["foreignId"];
|
|
2543
|
-
this.correlationId = _data["correlationId"];
|
|
2544
2542
|
}
|
|
2545
2543
|
}
|
|
2546
2544
|
static fromJS(data) {
|
|
@@ -2563,11 +2561,11 @@ export class LogEntry {
|
|
|
2563
2561
|
data["loc"] = this.loc;
|
|
2564
2562
|
data["locnum"] = this.locnum;
|
|
2565
2563
|
data["pal"] = this.pal;
|
|
2566
|
-
data["
|
|
2567
|
-
if (Array.isArray(this.
|
|
2568
|
-
data["
|
|
2569
|
-
for (let item of this.
|
|
2570
|
-
data["
|
|
2564
|
+
data["basketContentEpisodeId"] = this.basketContentEpisodeId;
|
|
2565
|
+
if (Array.isArray(this.basketCycleEndContentEpisodeIds)) {
|
|
2566
|
+
data["basketCycleEndContentEpisodeIds"] = [];
|
|
2567
|
+
for (let item of this.basketCycleEndContentEpisodeIds)
|
|
2568
|
+
data["basketCycleEndContentEpisodeIds"].push(item);
|
|
2571
2569
|
}
|
|
2572
2570
|
data["program"] = this.program;
|
|
2573
2571
|
data["result"] = this.result;
|
|
@@ -2585,8 +2583,6 @@ export class LogEntry {
|
|
|
2585
2583
|
for (let item of this.tooluse)
|
|
2586
2584
|
data["tooluse"].push(item ? item.toJSON() : undefined);
|
|
2587
2585
|
}
|
|
2588
|
-
data["foreignId"] = this.foreignId;
|
|
2589
|
-
data["correlationId"] = this.correlationId;
|
|
2590
2586
|
return data;
|
|
2591
2587
|
}
|
|
2592
2588
|
}
|