@seedtactics/insight-client 17.0.0-beta.8 → 17.0.0

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.
@@ -93,22 +93,18 @@ function logType(entry, fmsInfo) {
93
93
  else {
94
94
  return "Depart";
95
95
  }
96
- case api.LogType.BasketIdentityAssociation:
97
- return `${basketName} Identity Association`;
98
- case api.LogType.BasketIdentityAssociationCorrection:
99
- return `${basketName} Identity Correction`;
96
+ case api.LogType.BasketObservation:
97
+ return `${basketName} Observation`;
98
+ case api.LogType.BasketObservationCorrection:
99
+ return `${basketName} Observation Correction`;
100
100
  case api.LogType.BasketContentSnapshot:
101
101
  return `${basketName} Content Snapshot`;
102
- case api.LogType.BasketLocationObservation:
103
- return `${basketName} Location Observation`;
104
- case api.LogType.BasketLocationObservationCorrection:
105
- return `${basketName} Location Correction`;
106
102
  case api.LogType.BasketRegionSurvey:
107
103
  return `${basketName} Region Survey`;
108
104
  case api.LogType.BasketMisload:
109
- return `${basketName} Inspection Hold`;
105
+ return `${basketName} Misload`;
110
106
  case api.LogType.BasketMisloadResolution:
111
- return `${basketName} Inspection Resolution`;
107
+ return `${basketName} Misload Resolution`;
112
108
  case api.LogType.MachineCycle:
113
109
  if (entry.startofcycle) {
114
110
  return "Start Cycle";
@@ -220,37 +216,23 @@ function display(props, fmsInfo) {
220
216
  return (_jsxs("span", { children: [basketContainerName(entry, basketName), " departed from ", entry.loc, entry.locnum > 0 ? ` position ${entry.locnum}` : ""] }));
221
217
  }
222
218
  }
223
- case api.LogType.BasketIdentityAssociation: {
219
+ case api.LogType.BasketObservation: {
224
220
  const basketName = basketDisplayName(fmsInfo.basketName);
225
221
  const episodeCount = entry.details?.episodeCount;
226
222
  const source = entry.details?.sourceName;
227
223
  const note = entry.details?.note;
228
- return (_jsxs("span", { children: [source === undefined ? "" : `${source} recorded `, episodeCount === undefined
229
- ? `content episodes associated with ${basketName} ${entry.pal}`
230
- : `${episodeCount} content episode${episodeCount === "1" ? "" : "s"} associated with ${basketName} ${entry.pal}`, entry.details?.location === undefined && entry.details?.locationTitle === undefined
224
+ return (_jsxs("span", { children: [source ?? "Source", " observed ", basketName, " ", entry.pal, " at ", evidencePosition(entry), episodeCount === undefined || episodeCount === "0"
231
225
  ? ""
232
- : ` at ${evidencePosition(entry)}`, note === undefined ? "" : `: ${note}`] }));
226
+ : ` with direct continuity to ${episodeCount} tracked content episode${episodeCount === "1" ? "" : "s"}`, note === undefined ? "" : `: ${note}`] }));
233
227
  }
234
- case api.LogType.BasketIdentityAssociationCorrection: {
228
+ case api.LogType.BasketObservationCorrection: {
235
229
  const basketName = basketDisplayName(fmsInfo.basketName);
236
- return (_jsxs("span", { children: ["Identity association for ", basketName, " ", entry.pal, " corrected"] }));
230
+ return (_jsxs("span", { children: ["Observation of ", basketName, " ", entry.pal, " corrected"] }));
237
231
  }
238
232
  case api.LogType.BasketContentSnapshot: {
239
233
  const basketName = basketDisplayName(fmsInfo.basketName);
240
234
  return (_jsxs("span", { children: [basketContainerName(entry, basketName), " contained ", displayMat(entry.material)] }));
241
235
  }
242
- case api.LogType.BasketLocationObservation: {
243
- const basketName = basketDisplayName(fmsInfo.basketName);
244
- const operator = entry.details?.sourceName ?? entry.details?.operator ?? "Operator";
245
- return (_jsxs("span", { children: [operator, " observed ", basketName, " ", entry.pal, " at ", evidencePosition(entry)] }));
246
- }
247
- case api.LogType.BasketLocationObservationCorrection: {
248
- const basketName = basketDisplayName(fmsInfo.basketName);
249
- const operator = entry.details?.sourceName ?? entry.details?.operator ?? "Operator";
250
- const location = evidencePosition(entry);
251
- const replacementBasketId = entry.details?.replacementBasketId;
252
- return replacementBasketId === undefined ? (_jsxs("span", { children: [operator, " retracted the observation of ", basketName, " ", entry.pal, " at ", location] })) : (_jsxs("span", { children: [operator, " changed the observation of ", basketName, " ", entry.pal, " at ", location, " to", " ", basketName, " ", replacementBasketId, " at ", location] }));
253
- }
254
236
  case api.LogType.BasketRegionSurvey: {
255
237
  const basketName = basketDisplayName(fmsInfo.basketName);
256
238
  const source = entry.details?.sourceName;
package/dist/index.html CHANGED
@@ -43,7 +43,7 @@
43
43
  }
44
44
  }
45
45
  </style>
46
- <script type="module" crossorigin src="/assets/index-CUu2qHWT.js"></script>
46
+ <script type="module" crossorigin src="/assets/index-C4HZdhRu.js"></script>
47
47
  <link rel="stylesheet" crossorigin href="/assets/index-DXfAwuj-.css">
48
48
  </head>
49
49
  <body>
@@ -308,14 +308,12 @@ export declare enum LogType {
308
308
  BasketLoadUnload = "BasketLoadUnload",
309
309
  BasketCycle = "BasketCycle",
310
310
  BasketInLocation = "BasketInLocation",
311
- BasketIdentityAssociation = "BasketIdentityAssociation",
312
311
  BasketContentSnapshot = "BasketContentSnapshot",
313
- BasketLocationObservation = "BasketLocationObservation",
314
- BasketLocationObservationCorrection = "BasketLocationObservationCorrection",
315
- BasketIdentityAssociationCorrection = "BasketIdentityAssociationCorrection",
316
312
  BasketRegionSurvey = "BasketRegionSurvey",
317
313
  BasketMisload = "BasketMisload",
318
- BasketMisloadResolution = "BasketMisloadResolution"
314
+ BasketMisloadResolution = "BasketMisloadResolution",
315
+ BasketObservation = "BasketObservation",
316
+ BasketObservationCorrection = "BasketObservationCorrection"
319
317
  }
320
318
  export declare class ToolUse implements IToolUse {
321
319
  tool: string;
@@ -2653,14 +2653,12 @@ export var LogType;
2653
2653
  LogType["BasketLoadUnload"] = "BasketLoadUnload";
2654
2654
  LogType["BasketCycle"] = "BasketCycle";
2655
2655
  LogType["BasketInLocation"] = "BasketInLocation";
2656
- LogType["BasketIdentityAssociation"] = "BasketIdentityAssociation";
2657
2656
  LogType["BasketContentSnapshot"] = "BasketContentSnapshot";
2658
- LogType["BasketLocationObservation"] = "BasketLocationObservation";
2659
- LogType["BasketLocationObservationCorrection"] = "BasketLocationObservationCorrection";
2660
- LogType["BasketIdentityAssociationCorrection"] = "BasketIdentityAssociationCorrection";
2661
2657
  LogType["BasketRegionSurvey"] = "BasketRegionSurvey";
2662
2658
  LogType["BasketMisload"] = "BasketMisload";
2663
2659
  LogType["BasketMisloadResolution"] = "BasketMisloadResolution";
2660
+ LogType["BasketObservation"] = "BasketObservation";
2661
+ LogType["BasketObservationCorrection"] = "BasketObservationCorrection";
2664
2662
  })(LogType || (LogType = {}));
2665
2663
  export class ToolUse {
2666
2664
  constructor(data) {
@@ -5519,11 +5517,11 @@ export class ProgramRevision {
5519
5517
  }
5520
5518
  }
5521
5519
  function formatDate(d) {
5522
- return (d.getFullYear() +
5520
+ return (d.getUTCFullYear() +
5523
5521
  "-" +
5524
- (d.getMonth() < 9 ? "0" + (d.getMonth() + 1) : d.getMonth() + 1) +
5522
+ (d.getUTCMonth() < 9 ? "0" + (d.getUTCMonth() + 1) : d.getUTCMonth() + 1) +
5525
5523
  "-" +
5526
- (d.getDate() < 10 ? "0" + d.getDate() : d.getDate()));
5524
+ (d.getUTCDate() < 10 ? "0" + d.getUTCDate() : d.getUTCDate()));
5527
5525
  }
5528
5526
  export class ApiException extends Error {
5529
5527
  constructor(message, status, response, headers, result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedtactics/insight-client",
3
- "version": "17.0.0-beta.8",
3
+ "version": "17.0.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "url": "https://github.com/SeedTactics/fms-insight"