@seedtactics/insight-client 17.0.0-beta.0 → 17.0.0-beta.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.
@@ -41,6 +41,7 @@ export var MoveMaterialNodeKindType;
41
41
  MoveMaterialNodeKindType[MoveMaterialNodeKindType["PalletFaceZone"] = 4] = "PalletFaceZone";
42
42
  MoveMaterialNodeKindType[MoveMaterialNodeKindType["QueueZone"] = 5] = "QueueZone";
43
43
  MoveMaterialNodeKindType[MoveMaterialNodeKindType["BasketZone"] = 6] = "BasketZone";
44
+ MoveMaterialNodeKindType[MoveMaterialNodeKindType["BasketSlotZone"] = 7] = "BasketSlotZone";
44
45
  })(MoveMaterialNodeKindType || (MoveMaterialNodeKindType = {}));
45
46
  export function uniqueIdForNodeKind(kind) {
46
47
  switch (kind.type) {
@@ -58,6 +59,8 @@ export function uniqueIdForNodeKind(kind) {
58
59
  return "QueueZone-" + kind.queue;
59
60
  case MoveMaterialNodeKindType.BasketZone:
60
61
  return "BasketZone-" + kind.basketId.toString();
62
+ case MoveMaterialNodeKindType.BasketSlotZone:
63
+ return `BasketSlotZone-${kind.basketId}-${kind.slot}`;
61
64
  }
62
65
  }
63
66
  export function memoPropsForNodeKind(kind) {
@@ -74,6 +77,8 @@ export function memoPropsForNodeKind(kind) {
74
77
  return [kind.type, kind.queue];
75
78
  case MoveMaterialNodeKindType.BasketZone:
76
79
  return [kind.type, kind.basketId];
80
+ case MoveMaterialNodeKindType.BasketSlotZone:
81
+ return [kind.type, kind.basketId, kind.slot];
77
82
  }
78
83
  }
79
84
  function groupMatByKind(allNodes) {
@@ -82,6 +87,7 @@ function groupMatByKind(allNodes) {
82
87
  const faces = new Map();
83
88
  const queues = new Map();
84
89
  const baskets = new Map();
90
+ const basketSlots = new Map();
85
91
  const material = new Array();
86
92
  for (const node of allNodes.values()) {
87
93
  switch (node.type) {
@@ -101,6 +107,9 @@ function groupMatByKind(allNodes) {
101
107
  case MoveMaterialNodeKindType.BasketZone:
102
108
  baskets.set(node.basketId, node.elem);
103
109
  break;
110
+ case MoveMaterialNodeKindType.BasketSlotZone:
111
+ basketSlots.set(`${node.basketId}:${node.slot}`, node.elem);
112
+ break;
104
113
  case MoveMaterialNodeKindType.Material:
105
114
  if (node.material) {
106
115
  material.push([node.elem, node.material]);
@@ -108,7 +117,7 @@ function groupMatByKind(allNodes) {
108
117
  break;
109
118
  }
110
119
  }
111
- return { freeMaterial, completedMaterial, faces, queues, baskets, material };
120
+ return { freeMaterial, completedMaterial, faces, queues, baskets, basketSlots, material };
112
121
  }
113
122
  export function computeArrows(container, allNodes) {
114
123
  if (!container) {
@@ -261,7 +270,10 @@ export function computeArrows(container, allNodes) {
261
270
  const basketId = mat.action.loadToBasketId;
262
271
  if (basketId === undefined)
263
272
  break;
264
- const dest = byKind.baskets.get(basketId);
273
+ const dest = mat.action.loadToBasketSlot === undefined
274
+ ? byKind.baskets.get(basketId)
275
+ : (byKind.basketSlots.get(`${basketId}:${mat.action.loadToBasketSlot}`) ??
276
+ byKind.baskets.get(basketId));
265
277
  const lastSlotUsed = basketDestUsed.get(basketId) ?? 0;
266
278
  basketDestUsed.set(basketId, lastSlotUsed + 1);
267
279
  arrows.push({
@@ -9,3 +9,4 @@ export { defaultChooseModes } from "./components/ChooseMode.js";
9
9
  export type { ChooseModeItem } from "./components/ChooseMode.js";
10
10
  export { RouteLocation } from "./components/routes.js";
11
11
  export { authenticatedFetch } from "./network/backend.js";
12
+ export type { BasketMovementCompletionCommand, BasketMovementCompletionReceipt, BasketLocationCorrectionCommand, SubmitBasketLocationCorrection, SubmitBasketMovementCompletion, } from "./components/station-monitor/BasketMovementArrival.js";
package/dist/index.html CHANGED
@@ -43,7 +43,7 @@
43
43
  }
44
44
  }
45
45
  </style>
46
- <script type="module" crossorigin src="/assets/index-BkKYqUM0.js"></script>
46
+ <script type="module" crossorigin src="/assets/index-BvhibzJZ.js"></script>
47
47
  <link rel="stylesheet" crossorigin href="/assets/index-DXfAwuj-.css">
48
48
  </head>
49
49
  <body>
@@ -233,6 +233,8 @@ 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;
236
238
  constructor(data?: ILogEntry);
237
239
  init(_data?: any): void;
238
240
  static fromJS(data: any): LogEntry;
@@ -257,6 +259,8 @@ export interface ILogEntry {
257
259
  [key: string]: string;
258
260
  } | undefined;
259
261
  tooluse?: ToolUse[] | undefined;
262
+ foreignId?: string | undefined;
263
+ correlationId?: string | undefined;
260
264
  }
261
265
  export declare class LogMaterial implements ILogMaterial {
262
266
  id: number;
@@ -308,8 +312,14 @@ export declare enum LogType {
308
312
  BasketLoadUnload = "BasketLoadUnload",
309
313
  BasketCycle = "BasketCycle",
310
314
  BasketInLocation = "BasketInLocation",
311
- BasketIdentityHint = "BasketIdentityHint",
312
- BasketContentSnapshot = "BasketContentSnapshot"
315
+ BasketIdentityAssociation = "BasketIdentityAssociation",
316
+ BasketContentSnapshot = "BasketContentSnapshot",
317
+ BasketLocationObservation = "BasketLocationObservation",
318
+ BasketLocationObservationCorrection = "BasketLocationObservationCorrection",
319
+ BasketIdentityAssociationCorrection = "BasketIdentityAssociationCorrection",
320
+ BasketRegionSurvey = "BasketRegionSurvey",
321
+ BasketMisload = "BasketMisload",
322
+ BasketMisloadResolution = "BasketMisloadResolution"
313
323
  }
314
324
  export declare class ToolUse implements IToolUse {
315
325
  tool: string;
@@ -1105,7 +1115,7 @@ export declare enum BasketLocationEnum {
1105
1115
  }
1106
1116
  export declare class BasketMoveInstruction implements IBasketMoveInstruction {
1107
1117
  instructionId: string;
1108
- basketId: number;
1118
+ basketId?: number | undefined;
1109
1119
  source: BasketPosition;
1110
1120
  destination: BasketPosition;
1111
1121
  reason: BasketMoveReason;
@@ -1118,7 +1128,7 @@ export declare class BasketMoveInstruction implements IBasketMoveInstruction {
1118
1128
  }
1119
1129
  export interface IBasketMoveInstruction {
1120
1130
  instructionId: string;
1121
- basketId: number;
1131
+ basketId?: number | undefined;
1122
1132
  source: BasketPosition;
1123
1133
  destination: BasketPosition;
1124
1134
  reason: BasketMoveReason;
@@ -2539,6 +2539,8 @@ 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"];
2542
2544
  }
2543
2545
  }
2544
2546
  static fromJS(data) {
@@ -2583,6 +2585,8 @@ export class LogEntry {
2583
2585
  for (let item of this.tooluse)
2584
2586
  data["tooluse"].push(item ? item.toJSON() : undefined);
2585
2587
  }
2588
+ data["foreignId"] = this.foreignId;
2589
+ data["correlationId"] = this.correlationId;
2586
2590
  return data;
2587
2591
  }
2588
2592
  }
@@ -2653,8 +2657,14 @@ export var LogType;
2653
2657
  LogType["BasketLoadUnload"] = "BasketLoadUnload";
2654
2658
  LogType["BasketCycle"] = "BasketCycle";
2655
2659
  LogType["BasketInLocation"] = "BasketInLocation";
2656
- LogType["BasketIdentityHint"] = "BasketIdentityHint";
2660
+ LogType["BasketIdentityAssociation"] = "BasketIdentityAssociation";
2657
2661
  LogType["BasketContentSnapshot"] = "BasketContentSnapshot";
2662
+ LogType["BasketLocationObservation"] = "BasketLocationObservation";
2663
+ LogType["BasketLocationObservationCorrection"] = "BasketLocationObservationCorrection";
2664
+ LogType["BasketIdentityAssociationCorrection"] = "BasketIdentityAssociationCorrection";
2665
+ LogType["BasketRegionSurvey"] = "BasketRegionSurvey";
2666
+ LogType["BasketMisload"] = "BasketMisload";
2667
+ LogType["BasketMisloadResolution"] = "BasketMisloadResolution";
2658
2668
  })(LogType || (LogType = {}));
2659
2669
  export class ToolUse {
2660
2670
  constructor(data) {
@@ -5513,11 +5523,11 @@ export class ProgramRevision {
5513
5523
  }
5514
5524
  }
5515
5525
  function formatDate(d) {
5516
- return (d.getUTCFullYear() +
5526
+ return (d.getFullYear() +
5517
5527
  "-" +
5518
- (d.getUTCMonth() < 9 ? "0" + (d.getUTCMonth() + 1) : d.getUTCMonth() + 1) +
5528
+ (d.getMonth() < 9 ? "0" + (d.getMonth() + 1) : d.getMonth() + 1) +
5519
5529
  "-" +
5520
- (d.getUTCDate() < 10 ? "0" + d.getUTCDate() : d.getUTCDate()));
5530
+ (d.getDate() < 10 ? "0" + d.getDate() : d.getDate()));
5521
5531
  }
5522
5532
  export class ApiException extends Error {
5523
5533
  constructor(message, status, response, headers, result) {
@@ -15,7 +15,7 @@ export interface JobAPI {
15
15
  cancelLoad(materialId: number, operName: string | null, request: Readonly<api.ICancelLoadRequest>): Promise<void>;
16
16
  swapMaterialOnPallet(materialId: number, operName: string | null, mat: Readonly<api.IMatToPutOnPallet>): Promise<void>;
17
17
  invalidatePalletCycle(materialId: number, operName: string | null | undefined, changeCastingTo: string | null | undefined, changeJobUniqueTo: string | null | undefined, process: number): Promise<Readonly<api.IMaterialDetails> | null | undefined>;
18
- unscheduledRebookings(signal?: AbortSignal): Promise<ReadonlyArray<Readonly<api.IRebooking>>>;
18
+ unscheduledRebookings(signal?: AbortSignal): Promise<ReadonlyArray<Readonly<api.IRebooking>> | null>;
19
19
  }
20
20
  export interface FmsAPI {
21
21
  fMSInformation(): Promise<Readonly<api.IFMSInfo>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seedtactics/insight-client",
3
- "version": "17.0.0-beta.0",
3
+ "version": "17.0.0-beta.2",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "url": "https://github.com/SeedTactics/fms-insight"