@instruments/materialgraph 1.2.0 → 1.3.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.
|
@@ -48,6 +48,8 @@ export type FindSampledTogetherRow = {
|
|
|
48
48
|
proportion: number;
|
|
49
49
|
}[];
|
|
50
50
|
variantId: string;
|
|
51
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample. Separate from surface finish, color family and derived color names. */
|
|
52
|
+
variantLabel: string | null;
|
|
51
53
|
variantName: string | null;
|
|
52
54
|
};
|
|
53
55
|
export type FindSampledTogetherOutput = {
|
|
@@ -63,6 +65,8 @@ export type FindSampledTogetherOutput = {
|
|
|
63
65
|
/** The id or name this seed came from. */
|
|
64
66
|
resolvedFrom: string;
|
|
65
67
|
variantId: string;
|
|
68
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample. Separate from surface finish, color family and derived color names. */
|
|
69
|
+
variantLabel: string | null;
|
|
66
70
|
variantName: string | null;
|
|
67
71
|
}[];
|
|
68
72
|
/** Seed ids outside the materials catalog; present only when at least one was. */
|
|
@@ -91,6 +91,8 @@ export type UnresolvedColor = {
|
|
|
91
91
|
input: string | null;
|
|
92
92
|
};
|
|
93
93
|
export type ColorVariantMatch = {
|
|
94
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample. Separate from surface finish, color family and derived color names. */
|
|
95
|
+
variantLabel: string | null;
|
|
94
96
|
productType: {
|
|
95
97
|
id: string;
|
|
96
98
|
name: string;
|
|
@@ -156,6 +158,8 @@ export type ColorRankedSeed = {
|
|
|
156
158
|
};
|
|
157
159
|
/** RERANK's own card — the same shape `ColorVariantMatch` above (`brandId`, `code`), plus its perceptual distance. */
|
|
158
160
|
export type ColorRankMatch = {
|
|
161
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample. Separate from surface finish, color family and derived color names. */
|
|
162
|
+
variantLabel: string | null;
|
|
159
163
|
brand: string;
|
|
160
164
|
brandId: string;
|
|
161
165
|
code: string | null;
|
package/get-variant-types.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export type GetVariantOutput = {
|
|
|
94
94
|
/** The variant's Material Bank SKU. Absent means none is recorded. */
|
|
95
95
|
materialBankId?: string;
|
|
96
96
|
name: string;
|
|
97
|
-
/** The trimmed source variant label; null when unknown. Separate from surface finish and derived color names. */
|
|
97
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample, whose own name identifies its color. Separate from surface finish, color family and derived color names. */
|
|
98
98
|
variantLabel: string | null;
|
|
99
99
|
/** Requested blocks or attributes the variant's product type does not carry. */
|
|
100
100
|
notApplicable?: ListVariantsNotApplicable;
|
package/list-variants-types.d.ts
CHANGED
|
@@ -207,7 +207,7 @@ export type ListVariantsItem = {
|
|
|
207
207
|
/** The variant's Material Bank SKU. Absent means none is recorded. */
|
|
208
208
|
materialBankId?: string;
|
|
209
209
|
name: string;
|
|
210
|
-
/** The trimmed source variant label; null when unknown. Separate from surface finish and derived color names. */
|
|
210
|
+
/** The trimmed source variant label; null when unknown or for a paint color sample, whose own name identifies its color. Separate from surface finish, color family and derived color names. */
|
|
211
211
|
variantLabel: string | null;
|
|
212
212
|
notApplicable?: ListVariantsNotApplicable;
|
|
213
213
|
preference?: ListVariantsPreference;
|