@instruments/materialgraph 1.1.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;
@@ -46,6 +46,7 @@ export type GetVariantIfc = {
46
46
  * false or zero.
47
47
  */
48
48
  export type GetVariantOutput = {
49
+ /** Whether this variant may appear in its Brand's catalog. Material-only lists also require Search Catalog membership. Reads by id include ineligible variants. */
49
50
  eligible: boolean;
50
51
  channels: string[];
51
52
  palette: {
@@ -93,6 +94,8 @@ export type GetVariantOutput = {
93
94
  /** The variant's Material Bank SKU. Absent means none is recorded. */
94
95
  materialBankId?: string;
95
96
  name: string;
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
+ variantLabel: string | null;
96
99
  /** Requested blocks or attributes the variant's product type does not carry. */
97
100
  notApplicable?: ListVariantsNotApplicable;
98
101
  /** Present when `ifc` was asked for. */
@@ -207,6 +207,8 @@ 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 or for a paint color sample, whose own name identifies its color. Separate from surface finish, color family and derived color names. */
211
+ variantLabel: string | null;
210
212
  notApplicable?: ListVariantsNotApplicable;
211
213
  preference?: ListVariantsPreference;
212
214
  product: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instruments/materialgraph",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {