@instruments/materialgraph 0.41.0 → 0.42.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.
- package/association-types.d.ts +1 -0
- package/catalogue-types.d.ts +2 -1
- package/find-sampled-together-types.d.ts +2 -0
- package/find-variants-by-color-types.d.ts +4 -0
- package/get-variant-types.d.ts +2 -0
- package/list-variants-types.d.ts +2 -0
- package/package.json +1 -1
- package/response-schemas.generated.js +30 -30
- package/types.d.ts +1 -0
- package/webmcp.generated.js +4 -4
package/association-types.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export type DeclaredAssociation = {
|
|
|
52
52
|
sampleable?: boolean;
|
|
53
53
|
/** Canonical thumbnail; null when the variant has no eligible image. */
|
|
54
54
|
imageUrl: string | null;
|
|
55
|
+
hex?: string | null;
|
|
55
56
|
/** Review receipt; proposed types are never accepted categories. */
|
|
56
57
|
productTypeReceipt: ProductTypeReceipt;
|
|
57
58
|
declared: DeclaredProvenance;
|
package/catalogue-types.d.ts
CHANGED
|
@@ -133,7 +133,8 @@ export type CatalogueCollectionsOptions = {
|
|
|
133
133
|
};
|
|
134
134
|
/** One representative product image carried by a catalogue collection. */
|
|
135
135
|
export type CatalogueCollectionSampleProduct = {
|
|
136
|
-
imageUrl: string;
|
|
136
|
+
imageUrl: string | null;
|
|
137
|
+
hex?: string | null;
|
|
137
138
|
productId: string;
|
|
138
139
|
productName: string;
|
|
139
140
|
variantId: string;
|
|
@@ -32,6 +32,7 @@ export type FindSampledTogetherRow = {
|
|
|
32
32
|
colorFit?: number | null;
|
|
33
33
|
/** Present with `include: ["image"]`. */
|
|
34
34
|
imageUrl?: string | null;
|
|
35
|
+
hex?: string | null;
|
|
35
36
|
/** Mean lift over the seeds it pairs with; above 1 is above average. */
|
|
36
37
|
lift: number;
|
|
37
38
|
product: string;
|
|
@@ -57,6 +58,7 @@ export type FindSampledTogetherOutput = {
|
|
|
57
58
|
brand: string;
|
|
58
59
|
/** Present with `include: ["image"]`. */
|
|
59
60
|
imageUrl?: string | null;
|
|
61
|
+
hex?: string | null;
|
|
60
62
|
product: string;
|
|
61
63
|
/** The id or name this seed came from. */
|
|
62
64
|
resolvedFrom: string;
|
|
@@ -61,6 +61,7 @@ export type PaintCatalogVariant = {
|
|
|
61
61
|
brand: string;
|
|
62
62
|
color: string | null;
|
|
63
63
|
imageUrl: string | null;
|
|
64
|
+
hex?: string | null;
|
|
64
65
|
product: string;
|
|
65
66
|
variantId: string;
|
|
66
67
|
variantName: string | null;
|
|
@@ -104,6 +105,7 @@ export type ColorVariantMatch = {
|
|
|
104
105
|
/** Share of the request's colors this variant matched, 0 to 1. Never a probability. */
|
|
105
106
|
coverage: number;
|
|
106
107
|
imageUrl: string | null;
|
|
108
|
+
hex?: string | null;
|
|
107
109
|
product: string;
|
|
108
110
|
productId: string;
|
|
109
111
|
variantId: string;
|
|
@@ -141,6 +143,7 @@ export type ColorRankedSeed = {
|
|
|
141
143
|
brandSlug: string;
|
|
142
144
|
color: string | null;
|
|
143
145
|
imageUrl: string | null;
|
|
146
|
+
hex?: string | null;
|
|
144
147
|
product: string;
|
|
145
148
|
productId: string;
|
|
146
149
|
variantId: string;
|
|
@@ -155,6 +158,7 @@ export type ColorRankMatch = {
|
|
|
155
158
|
/** CIEDE2000 difference to the settled reference color (0 = identical); null without a settled palette. */
|
|
156
159
|
distance: number | null;
|
|
157
160
|
imageUrl: string | null;
|
|
161
|
+
hex?: string | null;
|
|
158
162
|
product: string;
|
|
159
163
|
productId: string;
|
|
160
164
|
variantId: string;
|
package/get-variant-types.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ export type GetVariantOutput = {
|
|
|
53
53
|
/** The represented library color; null when none is established. */
|
|
54
54
|
colorOptionValueId: string | null;
|
|
55
55
|
code: string | null;
|
|
56
|
+
/** Settled card color. Paint cards show this hex and have no photo. */
|
|
57
|
+
hex?: string | null;
|
|
56
58
|
image: {
|
|
57
59
|
alt: string;
|
|
58
60
|
url: string;
|
package/list-variants-types.d.ts
CHANGED
|
@@ -192,6 +192,8 @@ export type ListVariantsItem = {
|
|
|
192
192
|
colorOptionValueId: string | null;
|
|
193
193
|
code: string | null;
|
|
194
194
|
/** Present only when `include` has `image`. */
|
|
195
|
+
/** Settled card color. Paint cards show this hex and have no photo. */
|
|
196
|
+
hex?: string | null;
|
|
195
197
|
image?: {
|
|
196
198
|
alt: string;
|
|
197
199
|
url: string;
|