@simonarcher/fika-types 2.3.0 → 2.3.1
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/bean-scans.d.ts +11 -0
- package/package.json +1 -1
package/dist/bean-scans.d.ts
CHANGED
|
@@ -65,6 +65,17 @@ export interface BeanScanListItem {
|
|
|
65
65
|
ocrText?: string;
|
|
66
66
|
action: BeanScanAction;
|
|
67
67
|
matchedBeanId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Denormalised matched-bean fields, hydrated server-side via a batched
|
|
70
|
+
* coffee_beans + roasters lookup against `matchedBeanId`. Set when the
|
|
71
|
+
* scan resolved to a real catalog bean — i.e. action ∈ {saved, tried}
|
|
72
|
+
* always, and action === 'created_new' once the curator approves the
|
|
73
|
+
* submission. While a created_new submission is still pending, these
|
|
74
|
+
* remain undefined; clients use that to distinguish "Submitted /
|
|
75
|
+
* Pending review" from "Approved / Now in catalog".
|
|
76
|
+
*/
|
|
77
|
+
matchedBeanName?: string;
|
|
78
|
+
matchedRoasterName?: string;
|
|
68
79
|
/**
|
|
69
80
|
* Denormalised top candidate, derived server-side from the persisted
|
|
70
81
|
* `candidates` jsonb. Lets the list render a meaningful primary line
|