@mercurjs/types 2.2.0-canary.29 → 2.2.0-canary.30

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/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export * as HttpTypes from "./http";
6
6
  export * from "./payout";
7
7
  export * from "./offer";
8
8
  export { ProductStatus } from "./product/status";
9
- export { AttributeType, ProductChangeStatus, ProductChangeActionType, type ProductDTO, type ProductVariantDTO, type ProductCategoryDTO, type ProductAttributeDTO, type ProductAttributeValueDTO, type ProductChangeDTO, type ProductChangeActionDTO, type CreateProductDTO, type UpdateProductDTO, type CreateProductVariantDTO, type CreateProductAttributeDTO, type UpdateProductAttributeDTO, type CreateProductAttributeValueDTO, type UpdateProductAttributeValueDTO, type UpsertProductAttributeValueDTO, type ProductAttributeInputDTO, type CreateProductChangeDTO, type CreateProductChangeActionDTO, } from "./product";
9
+ export { AttributeType, ProductChangeStatus, ProductChangeActionType, type ProductDTO, type ProductVariantDTO, type ProductCategoryDTO, type ProductAttributeDTO, type ProductAttributeValueDTO, type WrappedProductAttributeDTO, type WrappedProductAttributeValueDTO, type ProductChangeDTO, type ProductChangeActionDTO, type CreateProductDTO, type CreateProductAttributeDTO, type UpdateProductAttributeDTO, type CreateProductAttributeValueDTO, type UpdateProductAttributeValueDTO, type UpsertProductAttributeValueDTO, type ProductAttributeBatchAdd, type ProductAttributeBatchUpdate, type ProductAttributeBatchInput, type CreateProductChangeDTO, type CreateProductChangeActionDTO, } from "./product";
10
10
  export * from "./modules";
11
11
  export * from "./custom-fields";
12
12
  export * from "./dashboard";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAG/B,cAAc,UAAU,CAAA;AAGxB,cAAc,eAAe,CAAA;AAG7B,cAAc,cAAc,CAAA;AAG5B,OAAO,KAAK,SAAS,MAAM,QAAQ,CAAA;AA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K,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,GAClC,MAAM,WAAW,CAAA;AAGlB,cAAc,WAAW,CAAA;AAGzB,cAAc,iBAAiB,CAAA;AAG/B,cAAc,aAAa,CAAA;AAG3B,cAAc,iBAAiB,CAAA"}
@@ -36,6 +36,8 @@ export declare enum ProductChangeActionType {
36
36
  VARIANT_REMOVE = "VARIANT_REMOVE",
37
37
  ATTRIBUTE_ADD = "ATTRIBUTE_ADD",
38
38
  ATTRIBUTE_REMOVE = "ATTRIBUTE_REMOVE",
39
+ ATTRIBUTE_UPDATE = "ATTRIBUTE_UPDATE",
40
+ PRODUCT_ADD = "PRODUCT_ADD",
39
41
  PRODUCT_DELETE = "PRODUCT_DELETE",
40
42
  /**
41
43
  * Operator asked the vendor to revise a submission. Auto-applied
@@ -52,6 +54,7 @@ export interface ProductAttributeValueDTO {
52
54
  rank: number;
53
55
  is_active: boolean;
54
56
  metadata: Record<string, unknown> | null;
57
+ product_option_value_id: string | null;
55
58
  attribute?: ProductAttributeDTO;
56
59
  attribute_id?: string;
57
60
  variants?: ProductVariantDTO[];
@@ -80,6 +83,7 @@ export interface ProductAttributeDTO {
80
83
  * still populates the column until step 5 retires it.
81
84
  */
82
85
  product_id?: string | null;
86
+ product_option_id: string | null;
83
87
  metadata: Record<string, unknown> | null;
84
88
  values?: ProductAttributeValueDTO[];
85
89
  /**
@@ -95,6 +99,34 @@ export interface ProductAttributeDTO {
95
99
  updated_at: string | Date;
96
100
  deleted_at: string | Date | null;
97
101
  }
102
+ /**
103
+ * A product attribute grouped for a single product by
104
+ * `wrapProductWithProductAttributes`: the parent attribute's full value set
105
+ * (`all_values`) plus the values actually selected on that product (`values`).
106
+ */
107
+ export interface WrappedProductAttributeValueDTO {
108
+ id: string;
109
+ name: string;
110
+ rank?: number;
111
+ }
112
+ export interface WrappedProductAttributeDTO {
113
+ id: string;
114
+ name?: string;
115
+ handle?: string | null;
116
+ type?: AttributeType;
117
+ is_variant_axis?: boolean;
118
+ is_required?: boolean;
119
+ rank?: number;
120
+ /**
121
+ * `true` when this is a product-scoped (inline) attribute — one created on
122
+ * this product rather than a shared catalog attribute. Surfaced from the
123
+ * read-only `scoped_attributes` link so the dashboard edit form can offer the
124
+ * create-style inputs (editable title, free-form values) for it.
125
+ */
126
+ is_scoped?: boolean;
127
+ all_values: WrappedProductAttributeValueDTO[];
128
+ values: WrappedProductAttributeValueDTO[];
129
+ }
98
130
  export interface ProductChangeActionDTO {
99
131
  id: string;
100
132
  product_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/product/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,kBAAkB,EAChC,iBAAiB,IAAI,yBAAyB,EAC9C,kBAAkB,IAAI,0BAA0B,EAChD,eAAe,EAChB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAK5C;;;GAGG;AACH,oBAAY,aAAa;IACvB,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,oBAAY,mBAAmB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED;;;;GAIG;AACH,oBAAY,uBAAuB;IACjC,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC;;;;;OAKG;IACH,gB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ARIANT_REMOVE";
42
42
  ProductChangeActionType["ATTRIBUTE_ADD"] = "ATTRIBUTE_ADD";
43
43
  ProductChangeActionType["ATTRIBUTE_REMOVE"] = "ATTRIBUTE_REMOVE";
44
+ ProductChangeActionType["ATTRIBUTE_UPDATE"] = "ATTRIBUTE_UPDATE";
45
+ ProductChangeActionType["PRODUCT_ADD"] = "PRODUCT_ADD";
44
46
  ProductChangeActionType["PRODUCT_DELETE"] = "PRODUCT_DELETE";
45
47
  /**
46
48
  * Operator asked the vendor to revise a submission. Auto-applied
@@ -1,11 +1,11 @@
1
- import type { CreateProductDTO as UpstreamCreateProductDTO, UpdateProductDTO as UpstreamUpdateProductDTO, CreateProductVariantDTO as UpstreamCreateProductVariantDTO } from "@medusajs/types";
1
+ import type { CreateProductDTO as UpstreamCreateProductDTO } from "@medusajs/types";
2
2
  import { AttributeType, ProductChangeStatus } from "./common";
3
- import { ProductStatus } from "./status";
4
3
  export interface CreateProductAttributeValueDTO {
5
4
  handle?: string;
6
5
  name: string;
7
6
  rank?: number;
8
7
  is_active?: boolean;
8
+ product_option_value_id?: string | null;
9
9
  metadata?: Record<string, unknown> | null;
10
10
  }
11
11
  export interface UpdateProductAttributeValueDTO {
@@ -13,6 +13,7 @@ export interface UpdateProductAttributeValueDTO {
13
13
  name?: string;
14
14
  rank?: number;
15
15
  is_active?: boolean;
16
+ product_option_value_id?: string | null;
16
17
  metadata?: Record<string, unknown> | null;
17
18
  }
18
19
  export interface UpsertProductAttributeValueDTO extends UpdateProductAttributeValueDTO {
@@ -30,6 +31,7 @@ export interface CreateProductAttributeDTO {
30
31
  is_active?: boolean;
31
32
  created_by?: string | null;
32
33
  product_id?: string | null;
34
+ product_option_id?: string | null;
33
35
  metadata?: Record<string, unknown> | null;
34
36
  values?: CreateProductAttributeValueDTO[];
35
37
  }
@@ -43,26 +45,53 @@ export interface UpdateProductAttributeDTO {
43
45
  is_variant_axis?: boolean;
44
46
  rank?: number;
45
47
  is_active?: boolean;
48
+ product_option_id?: string | null;
46
49
  metadata?: Record<string, unknown> | null;
47
50
  }
48
51
  /**
49
- * Inline input for product attributes. Each entry is either:
52
+ * A single attribute to attach to a product. You can pass one of the
53
+ * following forms:
50
54
  *
51
- * 1. A global attribute reference: `{ attribute_id, value_ids?: [...] }`
52
- * Links an existing ProductAttribute. Use `value_ids` for known IDs,
53
- * or `values` (names) to upsert values on the attribute.
54
- *
55
- * 2. An inline custom attribute: `{ name, type, values: ["Red", "Blue"] }`
56
- * Creates a new ProductAttribute with `product_id` set (scoped to product).
55
+ * 1. **Existing select / axis attribute** `{ id, value_ids }`. Links the
56
+ * referenced `ProductAttributeValue`s to the product. For a variant-axis
57
+ * `multi_select` attribute the `value_ids` are the per-product subset of the
58
+ * mirror `ProductOption`'s values; for a non-axis select they are plain
59
+ * value links.
60
+ * 2. **Existing text / unit / toggle attribute** — `{ id, value }`. `text` and
61
+ * `unit` create a new value named `String(value)` and link it; `toggle`
62
+ * links the existing seeded `"true"` / `"false"` value matching the boolean
63
+ * (toggle values are never created here).
64
+ * 3. **Inline axis attribute** — `{ title, values, is_variant_axis: true }`.
65
+ * Creates an exclusive `ProductOption(is_exclusive: true)` on the product, a
66
+ * product-scoped `ProductAttribute` (`product_id` set), and the value mirror.
67
+ * 4. **Inline non-axis attribute** — `{ title, type, value | values }`. Creates
68
+ * a product-scoped attribute plus its value(s) and links them. `type` is
69
+ * required unless it is inferable (`is_variant_axis` ⇒ `multi_select`,
70
+ * boolean `value` ⇒ `toggle`).
57
71
  */
58
- export type ProductAttributeInputDTO = {
59
- attribute_id: string;
72
+ export type ProductAttributeBatchAdd = {
73
+ /** The id of an existing attribute to attach. */
74
+ id: string;
75
+ /**
76
+ * The ids of the attribute values to associate with the product
77
+ * (select types) or the per-product subset of a variant axis.
78
+ */
60
79
  value_ids?: string[];
61
- values?: string[];
80
+ /** A free-form scalar for `text` / `unit` / `toggle` attributes. */
81
+ value?: string | number | boolean;
62
82
  } | {
63
- name: string;
64
- type: AttributeType;
83
+ /** The name of the inline attribute to create (product-scoped). */
84
+ title: string;
85
+ /**
86
+ * The attribute type. Inferred when omitted: `is_variant_axis` ⇒
87
+ * `multi_select`, a boolean `value` ⇒ `toggle`, otherwise `text`.
88
+ */
89
+ type?: AttributeType;
90
+ /** The value names to create (axis / multi-value attributes). */
65
91
  values?: string[];
92
+ /** A single free-form scalar for `text` / `unit` attributes. */
93
+ value?: string | number | boolean;
94
+ /** Whether this inline attribute is a variant axis (`multi_select` only). */
66
95
  is_variant_axis?: boolean;
67
96
  is_filterable?: boolean;
68
97
  is_required?: boolean;
@@ -70,40 +99,76 @@ export type ProductAttributeInputDTO = {
70
99
  metadata?: Record<string, unknown> | null;
71
100
  };
72
101
  /**
73
- * `attribute_values` accepts either:
74
- * - An array of `ProductAttributeValue` IDs (already resolved).
75
- * - A map of attribute key (attribute `handle` or `name`) to value name(s),
76
- * resolved to IDs by the service against the parent product's variant
77
- * attributes.
102
+ * The details to update one attribute's selection on a product. The meaning of
103
+ * `add` / `remove` / `value` depends on the attribute's type:
78
104
  *
79
- * @example `["pattrval_red", "pattrval_small"]`
80
- * @example `{ Color: "Red", Size: ["S", "M"] }`
105
+ * - **Shared axis** (`multi_select` + `is_variant_axis`, global): `add` /
106
+ * `remove` are attribute `value_ids` adjusting the per-product value subset of
107
+ * the mirror option.
108
+ * - **Exclusive / inline axis** (product-scoped): `add` carries new value
109
+ * objects `{ value }` to create on the exclusive option; `remove` carries the
110
+ * `product_option_value` ids to drop. The option mirror is kept in sync.
111
+ * - **text / unit / toggle**: `value` is the new scalar — `text`/`unit` create a
112
+ * new value and swap the product link; `toggle` swaps the linked
113
+ * `true`/`false` value.
81
114
  */
82
- type VariantAttributeValuesInput = string[] | Record<string, string | string[]>;
83
- export type CreateProductVariantDTO = UpstreamCreateProductVariantDTO & {
84
- attribute_values?: VariantAttributeValuesInput;
85
- };
86
- export type CreateProductDTO = Omit<UpstreamCreateProductDTO, "status"> & {
87
- status?: ProductStatus;
88
- variants?: CreateProductVariantDTO[];
115
+ export type ProductAttributeBatchUpdate = {
116
+ /** The id of the existing attribute to update. */
117
+ id: string;
89
118
  /**
90
- * Product variant attributes. Each entry is either:
91
- * - A global attribute reference: `{ attribute_id, value_ids: ["pattrval_..."] }`
92
- * - An inline custom attribute: `{ name, type, values: ["Red", "Blue"] }`
119
+ * A new name for the attribute. Only honoured for product-scoped (inline)
120
+ * attributes renaming propagates to the mirror `ProductOption`'s title for
121
+ * axis attributes. Ignored for shared/global catalog attributes.
93
122
  */
94
- variant_attributes?: ProductAttributeInputDTO[];
123
+ title?: string;
95
124
  /**
96
- * Non-variant product-level attributes. Same format as variant_attributes.
97
- * Creates product-scoped attributes and links their values to the product.
125
+ * The attribute value ids to add (shared axis subset) or new value objects
126
+ * `{ value }` to create (exclusive axis), mirroring
127
+ * `ProductOptionProductValueUpdate.add`.
98
128
  */
99
- product_attributes?: ProductAttributeInputDTO[];
129
+ add?: (string | {
130
+ value: string;
131
+ })[];
132
+ /**
133
+ * The attribute value ids (shared axis) or product option value ids
134
+ * (exclusive axis) to remove.
135
+ */
136
+ remove?: string[];
137
+ /** The new free-form scalar for `text` / `unit` / `toggle` attributes. */
138
+ value?: string | number | boolean;
139
+ };
140
+ /**
141
+ * Input for the attribute batch attach/detach/update engine
142
+ * (`createAndLinkProductAttributesToProductWorkflow`). Applied in the order
143
+ * **remove → add → update** so a same-call remove + re-add of one attribute
144
+ * resolves correctly.
145
+ */
146
+ export type ProductAttributeBatchInput = {
147
+ /** The id of the product whose attributes are being managed. */
148
+ product_id: string;
149
+ /** The attributes to attach to the product. See {@link ProductAttributeBatchAdd}. */
150
+ add?: ProductAttributeBatchAdd[];
151
+ /**
152
+ * The ids of the attributes to detach from the product. Shared axis →
153
+ * unlink the mirror option; exclusive/scoped → delete the attribute (and its
154
+ * exclusive option); non-axis → drop the value links.
155
+ */
156
+ remove?: string[];
157
+ /** The attribute selections to mutate. See {@link ProductAttributeBatchUpdate}. */
158
+ update?: ProductAttributeBatchUpdate[];
100
159
  };
101
- export type UpdateProductDTO = Omit<UpstreamUpdateProductDTO, "status"> & {
102
- status?: ProductStatus;
103
- /** See {@link CreateProductDTO.variant_attributes}. */
104
- variant_attributes?: ProductAttributeInputDTO[];
105
- /** See {@link CreateProductDTO.product_attributes}. */
106
- product_attributes?: ProductAttributeInputDTO[];
160
+ export type CreateProductDTO = Omit<UpstreamCreateProductDTO, "options"> & {
161
+ /**
162
+ * Unified product attribute input resolved by the Mercur create-products
163
+ * wrapper into native options / value links. Each entry is one of the
164
+ * {@link ProductAttributeBatchAdd} forms. Variant-axis `multi_select`
165
+ * attributes become native (shared or exclusive) `ProductOption`s that
166
+ * variants bind to via their `options` name-map.
167
+ *
168
+ * Callers do NOT pass native `options`: the wrapper seeds a default option so
169
+ * the product is creatable, and axis attributes add the real options.
170
+ */
171
+ attributes?: ProductAttributeBatchAdd[];
107
172
  };
108
173
  export interface CreateProductChangeDTO {
109
174
  product_id: string;
@@ -123,5 +188,4 @@ export interface CreateProductChangeActionDTO {
123
188
  internal_note?: string;
124
189
  applied?: boolean;
125
190
  }
126
- export {};
127
191
  //# sourceMappingURL=mutations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../src/product/mutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,IAAI,wBAAwB,EAC5C,gBAAgB,IAAI,wBAAwB,EAC5C,uBAAuB,IAAI,+BAA+B,EAC3D,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAIxC,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,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E,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mercurjs/types",
3
- "version": "2.2.0-canary.29",
3
+ "version": "2.2.0-canary.30",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mercurjs/mercur",
@@ -36,7 +36,7 @@
36
36
  "dev": "tsc --watch"
37
37
  },
38
38
  "dependencies": {
39
- "@medusajs/types": "2.13.4"
39
+ "@medusajs/types": "options-preview"
40
40
  },
41
41
  "devDependencies": {
42
42
  "typescript": "5.9.3"