@vendure-platform/create 0.2.4-nightly.202606090705 → 0.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assets/storefront/messages/de.json +1 -0
  3. package/dist/assets/storefront/messages/en.json +1 -0
  4. package/dist/assets/storefront/package.json +1 -1
  5. package/dist/assets/storefront/src/app/[locale]/(catalog)/product/[slug]/actions.ts +57 -2
  6. package/dist/assets/storefront/src/app/[locale]/account/quick-order/actions.ts +5 -3
  7. package/dist/assets/storefront/src/app/[locale]/account/shopping-lists/actions.ts +3 -1
  8. package/dist/assets/storefront/src/app/[locale]/cart/actions.ts +19 -0
  9. package/dist/assets/storefront/src/graphql-env.d.ts +3 -1
  10. package/dist/assets/storefront/src/lib/vendure/mutations.ts +22 -12
  11. package/dist/assets/storefront/src/lib/vendure/queries.ts +26 -0
  12. package/dist/assets/storefront/src/schema.graphql +24 -1
  13. package/package.json +2 -2
  14. package/dist/assets/demo-data/assets/branding/logo.svg +0 -4
  15. package/dist/assets/demo-data/assets/images/absorbent-pad.webp +0 -0
  16. package/dist/assets/demo-data/assets/images/adjustable-wrench.webp +0 -0
  17. package/dist/assets/demo-data/assets/images/anchor-bolt.webp +0 -0
  18. package/dist/assets/demo-data/assets/images/angle-grinder.webp +0 -0
  19. package/dist/assets/demo-data/assets/images/barrier-tape.webp +0 -0
  20. package/dist/assets/demo-data/assets/images/bench-grinder.webp +0 -0
  21. package/dist/assets/demo-data/assets/images/bracket.webp +0 -0
  22. package/dist/assets/demo-data/assets/images/broom.webp +0 -0
  23. package/dist/assets/demo-data/assets/images/bucket.webp +0 -0
  24. package/dist/assets/demo-data/assets/images/cable-gland.webp +0 -0
  25. package/dist/assets/demo-data/assets/images/cable-tie.webp +0 -0
  26. package/dist/assets/demo-data/assets/images/cable-tray.webp +0 -0
  27. package/dist/assets/demo-data/assets/images/cable.webp +0 -0
  28. package/dist/assets/demo-data/assets/images/chimney-base-kit.webp +0 -0
  29. package/dist/assets/demo-data/assets/images/chimney-cowl-bird-guard.webp +0 -0
  30. package/dist/assets/demo-data/assets/images/chimney-cowl-open.webp +0 -0
  31. package/dist/assets/demo-data/assets/images/chimney-storm-collar.webp +0 -0
  32. package/dist/assets/demo-data/assets/images/chimney-wall-bracket.webp +0 -0
  33. package/dist/assets/demo-data/assets/images/circular-saw.webp +0 -0
  34. package/dist/assets/demo-data/assets/images/cleaning-spray.webp +0 -0
  35. package/dist/assets/demo-data/assets/images/conduit.webp +0 -0
  36. package/dist/assets/demo-data/assets/images/cordless-drill.webp +0 -0
  37. package/dist/assets/demo-data/assets/images/drill-bits.webp +0 -0
  38. package/dist/assets/demo-data/assets/images/dust-mask.webp +0 -0
  39. package/dist/assets/demo-data/assets/images/ear-defenders.webp +0 -0
  40. package/dist/assets/demo-data/assets/images/ear-plugs.webp +0 -0
  41. package/dist/assets/demo-data/assets/images/extension-lead.webp +0 -0
  42. package/dist/assets/demo-data/assets/images/eye-wash-station.webp +0 -0
  43. package/dist/assets/demo-data/assets/images/face-shield.webp +0 -0
  44. package/dist/assets/demo-data/assets/images/file-set.webp +0 -0
  45. package/dist/assets/demo-data/assets/images/first-aid-kit.webp +0 -0
  46. package/dist/assets/demo-data/assets/images/floor-sign.webp +0 -0
  47. package/dist/assets/demo-data/assets/images/flue-bend-45.webp +0 -0
  48. package/dist/assets/demo-data/assets/images/flue-bend-90.webp +0 -0
  49. package/dist/assets/demo-data/assets/images/flue-section-1000mm.webp +0 -0
  50. package/dist/assets/demo-data/assets/images/flue-section-250mm.webp +0 -0
  51. package/dist/assets/demo-data/assets/images/flue-section-500mm.webp +0 -0
  52. package/dist/assets/demo-data/assets/images/fuse.webp +0 -0
  53. package/dist/assets/demo-data/assets/images/glove-dispenser.webp +0 -0
  54. package/dist/assets/demo-data/assets/images/grinding-disc.webp +0 -0
  55. package/dist/assets/demo-data/assets/images/hacksaw.webp +0 -0
  56. package/dist/assets/demo-data/assets/images/hammer.webp +0 -0
  57. package/dist/assets/demo-data/assets/images/hand-sanitiser.webp +0 -0
  58. package/dist/assets/demo-data/assets/images/head-torch.webp +0 -0
  59. package/dist/assets/demo-data/assets/images/heat-gun.webp +0 -0
  60. package/dist/assets/demo-data/assets/images/hex-bolt.webp +0 -0
  61. package/dist/assets/demo-data/assets/images/hex-key-set.webp +0 -0
  62. package/dist/assets/demo-data/assets/images/hex-nut.webp +0 -0
  63. package/dist/assets/demo-data/assets/images/hi-vis-jacket.webp +0 -0
  64. package/dist/assets/demo-data/assets/images/hi-vis-vest.webp +0 -0
  65. package/dist/assets/demo-data/assets/images/hose-clamp.webp +0 -0
  66. package/dist/assets/demo-data/assets/images/impact-driver.webp +0 -0
  67. package/dist/assets/demo-data/assets/images/jigsaw.webp +0 -0
  68. package/dist/assets/demo-data/assets/images/junction-box.webp +0 -0
  69. package/dist/assets/demo-data/assets/images/knee-pads.webp +0 -0
  70. package/dist/assets/demo-data/assets/images/machine-screw.webp +0 -0
  71. package/dist/assets/demo-data/assets/images/made-to-order-configurable-chimney.webp +0 -0
  72. package/dist/assets/demo-data/assets/images/mallet.webp +0 -0
  73. package/dist/assets/demo-data/assets/images/mcb.webp +0 -0
  74. package/dist/assets/demo-data/assets/images/mop.webp +0 -0
  75. package/dist/assets/demo-data/assets/images/paper-towels.webp +0 -0
  76. package/dist/assets/demo-data/assets/images/pipe-wrench.webp +0 -0
  77. package/dist/assets/demo-data/assets/images/pliers-set.webp +0 -0
  78. package/dist/assets/demo-data/assets/images/pry-bar.webp +0 -0
  79. package/dist/assets/demo-data/assets/images/rcd.webp +0 -0
  80. package/dist/assets/demo-data/assets/images/reciprocating-saw.webp +0 -0
  81. package/dist/assets/demo-data/assets/images/rivet.webp +0 -0
  82. package/dist/assets/demo-data/assets/images/roof-flashing-high-pitch.webp +0 -0
  83. package/dist/assets/demo-data/assets/images/roof-flashing-low-pitch.webp +0 -0
  84. package/dist/assets/demo-data/assets/images/safety-boots.webp +0 -0
  85. package/dist/assets/demo-data/assets/images/safety-glasses.webp +0 -0
  86. package/dist/assets/demo-data/assets/images/safety-harness.webp +0 -0
  87. package/dist/assets/demo-data/assets/images/safety-helmet.webp +0 -0
  88. package/dist/assets/demo-data/assets/images/safety-sign.webp +0 -0
  89. package/dist/assets/demo-data/assets/images/sanding-disc.webp +0 -0
  90. package/dist/assets/demo-data/assets/images/saw-blade.webp +0 -0
  91. package/dist/assets/demo-data/assets/images/screwdriver-set.webp +0 -0
  92. package/dist/assets/demo-data/assets/images/screwdriver.webp +0 -0
  93. package/dist/assets/demo-data/assets/images/self-tapping-screw.webp +0 -0
  94. package/dist/assets/demo-data/assets/images/socket-set.webp +0 -0
  95. package/dist/assets/demo-data/assets/images/socket.webp +0 -0
  96. package/dist/assets/demo-data/assets/images/spanner-set.webp +0 -0
  97. package/dist/assets/demo-data/assets/images/spanner.webp +0 -0
  98. package/dist/assets/demo-data/assets/images/spill-kit.webp +0 -0
  99. package/dist/assets/demo-data/assets/images/spirit-level.webp +0 -0
  100. package/dist/assets/demo-data/assets/images/switch.webp +0 -0
  101. package/dist/assets/demo-data/assets/images/tape-measure.webp +0 -0
  102. package/dist/assets/demo-data/assets/images/terminal-block.webp +0 -0
  103. package/dist/assets/demo-data/assets/images/threaded-rod.webp +0 -0
  104. package/dist/assets/demo-data/assets/images/torque-wrench.webp +0 -0
  105. package/dist/assets/demo-data/assets/images/utility-knife.webp +0 -0
  106. package/dist/assets/demo-data/assets/images/wall-pass-sleeve.webp +0 -0
  107. package/dist/assets/demo-data/assets/images/wall-plug.webp +0 -0
  108. package/dist/assets/demo-data/assets/images/washer.webp +0 -0
  109. package/dist/assets/demo-data/assets/images/waste-bin.webp +0 -0
  110. package/dist/assets/demo-data/assets/images/wire-connector.webp +0 -0
  111. package/dist/assets/demo-data/assets/images/wire-cutters.webp +0 -0
  112. package/dist/assets/demo-data/assets/images/wood-screw.webp +0 -0
  113. package/dist/assets/demo-data/assets/images/work-gloves.webp +0 -0
  114. package/dist/assets/demo-data/assets/images/work-light.webp +0 -0
  115. package/dist/assets/demo-data/assets/initial-data.json +0 -667
  116. package/dist/assets/demo-data/assets/products.csv +0 -779
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.0 (2026-06-29)
2
+
3
+ Version bump only — no functional changes in @vendure-platform/create.
4
+
1
5
  ## 0.2.3 (2026-05-27)
2
6
 
3
7
  ### 🩹 Fixes
@@ -218,6 +218,7 @@
218
218
  "qty": "Menge: {quantity}",
219
219
  "pcs": "{count} Stk.",
220
220
  "equalsNPcs": "= {count} Stk.",
221
+ "editConfiguration": "Bearbeiten",
221
222
  "configGroupSummary": "{positions, plural, one {# Position} other {# Positionen}} · {pieces, plural, one {# Stück} other {# Stück}}",
222
223
  "availableStoreCredits": "Verfügbares Guthaben",
223
224
  "quoteCheckout": "Angebots-Checkout",
@@ -218,6 +218,7 @@
218
218
  "qty": "Qty: {quantity}",
219
219
  "pcs": "{count} pcs",
220
220
  "equalsNPcs": "= {count} pcs",
221
+ "editConfiguration": "Edit",
221
222
  "configGroupSummary": "{positions, plural, one {# position} other {# positions}} · {pieces, plural, one {# piece} other {# pieces}}",
222
223
  "availableStoreCredits": "Available store credits",
223
224
  "quoteCheckout": "Quote Checkout",
@@ -37,7 +37,7 @@
37
37
  "@radix-ui/react-toggle": "^1.1.10",
38
38
  "@radix-ui/react-toggle-group": "^1.1.11",
39
39
  "@radix-ui/react-tooltip": "^1.2.8",
40
- "@vendure-platform/storefront-client": "^0.2.4-nightly.202606090705",
40
+ "@vendure-platform/storefront-client": "^0.3.0",
41
41
  "class-variance-authority": "^0.7.1",
42
42
  "clsx": "^2.1.1",
43
43
  "cmdk": "^1.1.1",
@@ -1,8 +1,18 @@
1
1
  'use server';
2
2
 
3
3
  import { client } from '@/lib/vendure/api';
4
- import { AddToCartMutation, AddGiftCardToOrderMutation, AddConfigurationToOrderMutation } from '@/lib/vendure/mutations';
5
- import { GetProductDetailQuery, EvaluateConfigurationQuery } from '@/lib/vendure/queries';
4
+ import {
5
+ AddToCartMutation,
6
+ AddGiftCardToOrderMutation,
7
+ AddConfigurationToOrderMutation,
8
+ UpdateConfigurationOnOrderMutation,
9
+ } from '@/lib/vendure/mutations';
10
+ import {
11
+ GetProductDetailQuery,
12
+ EvaluateConfigurationQuery,
13
+ GetActiveOrderConfigurationsQuery,
14
+ type ActiveOrderConfiguration,
15
+ } from '@/lib/vendure/queries';
6
16
  import { updateTag } from 'next/cache';
7
17
  import { setAuthToken } from '@/lib/auth';
8
18
  import { normalizeQuantity } from '@/lib/quantity';
@@ -113,6 +123,51 @@ export async function evaluateConfiguration(systemId: string, values: { fieldRef
113
123
  return { data: result.data.evaluateProductConfiguration };
114
124
  }
115
125
 
126
+ /**
127
+ * Loads a configuration attached to the ACTIVE order, for prefilling the
128
+ * configurator in edit mode. Returns null when the id does not belong to
129
+ * the caller's active order — an edit link from a stale cart must not leak
130
+ * another session's configuration.
131
+ */
132
+ export async function getActiveOrderConfiguration(
133
+ productConfigurationId: string,
134
+ ): Promise<ActiveOrderConfiguration | null> {
135
+ const [result, error] = await client.query(GetActiveOrderConfigurationsQuery, undefined);
136
+ if (error) return null;
137
+ return (
138
+ result.data.activeOrder?.productConfigurations?.find(c => c.id === productConfigurationId) ?? null
139
+ );
140
+ }
141
+
142
+ export async function updateConfigurationOnOrder(
143
+ productConfigurationId: string,
144
+ values: { fieldRef: string; value: string }[],
145
+ name?: string,
146
+ ) {
147
+ const guard = await cartGuard();
148
+ const guardError = getGuardError(guard);
149
+ if (guardError) {
150
+ return { success: false, error: guardError };
151
+ }
152
+
153
+ const [result, error] = await client.mutate(
154
+ UpdateConfigurationOnOrderMutation,
155
+ { input: { productConfigurationId, values, name: name || undefined } },
156
+ );
157
+
158
+ if (error) {
159
+ return { success: false, error: error.message || 'Failed to update configuration' };
160
+ }
161
+
162
+ if (result.authToken) {
163
+ await setAuthToken(result.authToken);
164
+ }
165
+
166
+ updateTag('cart');
167
+ updateTag('active-order');
168
+ return { success: true };
169
+ }
170
+
116
171
  export async function addConfigurationToOrder(systemId: string, values: { fieldRef: string; value: string }[], name?: string) {
117
172
  const guard = await cartGuard();
118
173
  const guardError = getGuardError(guard);
@@ -76,9 +76,11 @@ export async function saveToShoppingList(
76
76
  // Sequential to avoid race conditions — all mutations target the same list
77
77
  for (const item of items) {
78
78
  const [, error] = await client.mutate(AddToShoppingListMutation, {
79
- productVariantId: item.variantId,
80
- shoppingListId: targetListId,
81
- quantity: item.quantity,
79
+ input: {
80
+ productVariantId: item.variantId,
81
+ shoppingListId: targetListId,
82
+ quantity: item.quantity,
83
+ },
82
84
  });
83
85
  if (error) failedCount++;
84
86
  else addedCount++;
@@ -125,7 +125,9 @@ async function refreshSessionAndInvalidate(authToken?: string, extraTags?: strin
125
125
  }
126
126
 
127
127
  export async function addToShoppingList(productVariantId: string, shoppingListId?: string) {
128
- const [result, error] = await client.mutate(AddToShoppingListMutation, { productVariantId, shoppingListId });
128
+ const [result, error] = await client.mutate(AddToShoppingListMutation, {
129
+ input: { productVariantId, shoppingListId },
130
+ });
129
131
 
130
132
  if (error) {
131
133
  return { success: false, error: 'Failed to add item to shopping list' };
@@ -8,6 +8,7 @@ import {
8
8
  RemovePromotionCodeMutation,
9
9
  ApplyStoreCreditToOrderMutation,
10
10
  RemoveStoreCreditFromOrderMutation,
11
+ RemoveConfigurationFromOrderMutation,
11
12
  } from '@/lib/vendure/mutations';
12
13
  import {normalizeQuantity} from '@/lib/quantity';
13
14
  import {updateTag} from 'next/cache';
@@ -41,6 +42,24 @@ export async function removeFromCart(lineId: string) {
41
42
  return { success: true };
42
43
  }
43
44
 
45
+ /**
46
+ * Removes a whole configured system from the cart. Configurator-managed
47
+ * order lines are atomic — the interceptor blocks `removeOrderLine` on
48
+ * them, so this dedicated mutation is the only removal path.
49
+ */
50
+ export async function removeConfigurationFromCart(productConfigurationId: string) {
51
+ const guard = await cartGuard();
52
+ const guardError = getGuardError(guard);
53
+ if (guardError) return { success: false, error: guardError };
54
+
55
+ const [, error] = await client.mutate(RemoveConfigurationFromOrderMutation, {productConfigurationId});
56
+ if (error) {
57
+ return { success: false, error: error.message || 'Failed to remove configuration from cart' };
58
+ }
59
+ invalidateCart();
60
+ return { success: true };
61
+ }
62
+
44
63
  export async function adjustQuantity(lineId: string, quantity: number) {
45
64
  const guard = await cartGuard();
46
65
  const guardError = getGuardError(guard);
@@ -97,6 +97,7 @@ export type introspection_types = {
97
97
  'CreateCustomerCustomFieldsInput': { kind: 'INPUT_OBJECT'; name: 'CreateCustomerCustomFieldsInput'; isOneOf: false; inputFields: [{ name: 'globalDiscount'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; defaultValue: null }]; };
98
98
  'CreateCustomerInput': { kind: 'INPUT_OBJECT'; name: 'CreateCustomerInput'; isOneOf: false; inputFields: [{ name: 'title'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'firstName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'lastName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'phoneNumber'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'emailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'customFields'; type: { kind: 'INPUT_OBJECT'; name: 'CreateCustomerCustomFieldsInput'; ofType: null; }; defaultValue: null }]; };
99
99
  'CreateShoppingListInput': { kind: 'INPUT_OBJECT'; name: 'CreateShoppingListInput'; isOneOf: false; inputFields: [{ name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'description'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; };
100
+ 'CreateShoppingListItemInput': { kind: 'INPUT_OBJECT'; name: 'CreateShoppingListItemInput'; isOneOf: false; inputFields: [{ name: 'productVariantId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'shoppingListId'; type: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; defaultValue: null }, { name: 'note'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'quantity'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; defaultValue: null }, { name: 'sortOrder'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; defaultValue: null }, { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; defaultValue: null }]; };
100
101
  'CurrencyCode': { name: 'CurrencyCode'; enumValues: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL'; };
101
102
  'CurrentUser': { kind: 'OBJECT'; name: 'CurrentUser'; fields: { 'channels': { name: 'channels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CurrentUserChannel'; ofType: null; }; }; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'identifier': { name: 'identifier'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; };
102
103
  'CurrentUserChannel': { kind: 'OBJECT'; name: 'CurrentUserChannel'; fields: { 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'permissions': { name: 'permissions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Permission'; ofType: null; }; }; }; } }; 'token': { name: 'token'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; };
@@ -201,7 +202,7 @@ export type introspection_types = {
201
202
  'LogicalOperator': { name: 'LogicalOperator'; enumValues: 'AND' | 'OR'; };
202
203
  'MissingPasswordError': { kind: 'OBJECT'; name: 'MissingPasswordError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; };
203
204
  'Money': unknown;
204
- 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'acceptAndConvertQuote': { name: 'acceptAndConvertQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'acceptCompanyInvitation': { name: 'acceptCompanyInvitation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AcceptCompanyInvitationResult'; ofType: null; }; } }; 'acceptQuote': { name: 'acceptQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'addCompanyTaxId': { name: 'addCompanyTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'addGiftCardToOrder': { name: 'addGiftCardToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addItemToOrder': { name: 'addItemToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addItemsToOrder': { name: 'addItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'UpdateMultipleOrderItemsResult'; ofType: null; }; } }; 'addPaymentToOrder': { name: 'addPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddPaymentToOrderResult'; ofType: null; }; } }; 'addPaymentToOrderWithStoreCredit': { name: 'addPaymentToOrderWithStoreCredit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddPaymentToOrderWithStoreCreditResult'; ofType: null; }; } }; 'addProductConfigurationToOrder': { name: 'addProductConfigurationToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductConfiguration'; ofType: null; }; } }; 'addQuickOrderItemsToOrder': { name: 'addQuickOrderItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'QuickOrderAddToOrderResult'; ofType: null; }; } }; 'addQuoteComment': { name: 'addQuoteComment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'QuoteComment'; ofType: null; }; } }; 'addReorderToActiveOrder': { name: 'addReorderToActiveOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReorderResult'; ofType: null; }; } }; 'addShoppingListItemsToOrder': { name: 'addShoppingListItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addTaxId': { name: 'addTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'addToShoppingList': { name: 'addToShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'adjustOrderLine': { name: 'adjustOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCode': { name: 'applyCouponCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'applyStoreCreditToOrder': { name: 'applyStoreCreditToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyStoreCreditToOrderResult'; ofType: null; }; } }; 'assignCompanyUserRole': { name: 'assignCompanyUserRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyUser'; ofType: null; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'batchSubmitApprovalDecisions': { name: 'batchSubmitApprovalDecisions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'BatchApprovalDecisionResult'; ofType: null; }; }; }; } }; 'cancelQuoteCheckout': { name: 'cancelQuoteCheckout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'claimStoreCredit': { name: 'claimStoreCredit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ClaimStoreCreditResult'; ofType: null; }; } }; 'createCompanyAddress': { name: 'createCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAddress'; ofType: null; }; } }; 'createCompanyBusinessUnit': { name: 'createCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyBusinessUnit'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createShoppingList': { name: 'createShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'deleteCompanyAddress': { name: 'deleteCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCompanyBusinessUnit': { name: 'deleteCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteShoppingList': { name: 'deleteShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'inviteCompanyUser': { name: 'inviteCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'logSearchListViewed': { name: 'logSearchListViewed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'logSearchResultClicked': { name: 'logSearchResultClicked'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'moveShoppingListItems': { name: 'moveShoppingListItems'; type: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; } }; 'refreshCustomerVerification': { name: 'refreshCustomerVerification'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefreshCustomerVerificationResult'; ofType: null; }; } }; 'registerCompany': { name: 'registerCompany'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'registerCustomerAccount': { name: 'registerCustomerAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RegisterCustomerAccountResult'; ofType: null; }; } }; 'rejectQuote': { name: 'rejectQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'removeAllOrderLines': { name: 'removeAllOrderLines'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeCompanyTaxId': { name: 'removeCompanyTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'removeCompanyUser': { name: 'removeCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'removeCouponCode': { name: 'removeCouponCode'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeFromShoppingList': { name: 'removeFromShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'removeOrderLine': { name: 'removeOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeProductConfigurationFromOrder': { name: 'removeProductConfigurationFromOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'removeStoreCreditFromOrder': { name: 'removeStoreCreditFromOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'removeTaxId': { name: 'removeTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'requestPasswordReset': { name: 'requestPasswordReset'; type: { kind: 'UNION'; name: 'RequestPasswordResetResult'; ofType: null; } }; 'requestQuote': { name: 'requestQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestQuoteChanges': { name: 'requestQuoteChanges'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestQuoteFromCart': { name: 'requestQuoteFromCart'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestUpdateCustomerEmailAddress': { name: 'requestUpdateCustomerEmailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RequestUpdateCustomerEmailAddressResult'; ofType: null; }; } }; 'resetPassword': { name: 'resetPassword'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ResetPasswordResult'; ofType: null; }; } }; 'setCurrencyCodeForOrder': { name: 'setCurrencyCodeForOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'setCustomerForOrder': { name: 'setCustomerForOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForOrderResult'; ofType: null; }; } }; 'setDefaultTaxId': { name: 'setDefaultTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'setOrderBillingAddress': { name: 'setOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderShippingAddress': { name: 'setOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderShippingMethod': { name: 'setOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setShoppingListVisibility': { name: 'setShoppingListVisibility'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'submitApprovalDecision': { name: 'submitApprovalDecision'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApprovalRequest'; ofType: null; }; } }; 'submitQuoteRequest': { name: 'submitQuoteRequest'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'switchBusinessUnit': { name: 'switchBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'unsetOrderBillingAddress': { name: 'unsetOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'unsetOrderShippingAddress': { name: 'unsetOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'updateCompanyAccount': { name: 'updateCompanyAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'updateCompanyAddress': { name: 'updateCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAddress'; ofType: null; }; } }; 'updateCompanyBusinessUnit': { name: 'updateCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyBusinessUnit'; ofType: null; }; } }; 'updateCompanyUser': { name: 'updateCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyUser'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerEmailAddress': { name: 'updateCustomerEmailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerEmailAddressResult'; ofType: null; }; } }; 'updateCustomerPassword': { name: 'updateCustomerPassword'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerPasswordResult'; ofType: null; }; } }; 'updateShoppingList': { name: 'updateShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'updateShoppingListItem': { name: 'updateShoppingListItem'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingListItem'; ofType: null; }; } }; 'validateQuickOrderItems': { name: 'validateQuickOrderItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'QuickOrderValidationResult'; ofType: null; }; } }; 'verifyCustomerAccount': { name: 'verifyCustomerAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'VerifyCustomerAccountResult'; ofType: null; }; } }; }; };
205
+ 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'acceptAndConvertQuote': { name: 'acceptAndConvertQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'acceptCompanyInvitation': { name: 'acceptCompanyInvitation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AcceptCompanyInvitationResult'; ofType: null; }; } }; 'acceptQuote': { name: 'acceptQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'addCompanyTaxId': { name: 'addCompanyTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'addGiftCardToOrder': { name: 'addGiftCardToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addItemToOrder': { name: 'addItemToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addItemsToOrder': { name: 'addItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'UpdateMultipleOrderItemsResult'; ofType: null; }; } }; 'addPaymentToOrder': { name: 'addPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddPaymentToOrderResult'; ofType: null; }; } }; 'addPaymentToOrderWithStoreCredit': { name: 'addPaymentToOrderWithStoreCredit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddPaymentToOrderWithStoreCreditResult'; ofType: null; }; } }; 'addProductConfigurationToOrder': { name: 'addProductConfigurationToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductConfiguration'; ofType: null; }; } }; 'addQuickOrderItemsToOrder': { name: 'addQuickOrderItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'QuickOrderAddToOrderResult'; ofType: null; }; } }; 'addQuoteComment': { name: 'addQuoteComment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'QuoteComment'; ofType: null; }; } }; 'addReorderToActiveOrder': { name: 'addReorderToActiveOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ReorderResult'; ofType: null; }; } }; 'addShoppingListItemsToOrder': { name: 'addShoppingListItemsToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addTaxId': { name: 'addTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'addToShoppingList': { name: 'addToShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'adjustOrderLine': { name: 'adjustOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCode': { name: 'applyCouponCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'applyStoreCreditToOrder': { name: 'applyStoreCreditToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyStoreCreditToOrderResult'; ofType: null; }; } }; 'assignCompanyUserRole': { name: 'assignCompanyUserRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyUser'; ofType: null; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'batchSubmitApprovalDecisions': { name: 'batchSubmitApprovalDecisions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'BatchApprovalDecisionResult'; ofType: null; }; }; }; } }; 'cancelQuoteCheckout': { name: 'cancelQuoteCheckout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'claimStoreCredit': { name: 'claimStoreCredit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ClaimStoreCreditResult'; ofType: null; }; } }; 'createCompanyAddress': { name: 'createCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAddress'; ofType: null; }; } }; 'createCompanyBusinessUnit': { name: 'createCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyBusinessUnit'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createShoppingList': { name: 'createShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'deleteCompanyAddress': { name: 'deleteCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCompanyBusinessUnit': { name: 'deleteCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteShoppingList': { name: 'deleteShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'inviteCompanyUser': { name: 'inviteCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'logSearchListViewed': { name: 'logSearchListViewed'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'logSearchResultClicked': { name: 'logSearchResultClicked'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'moveShoppingListItems': { name: 'moveShoppingListItems'; type: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; } }; 'refreshCustomerVerification': { name: 'refreshCustomerVerification'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefreshCustomerVerificationResult'; ofType: null; }; } }; 'registerCompany': { name: 'registerCompany'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'registerCustomerAccount': { name: 'registerCustomerAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RegisterCustomerAccountResult'; ofType: null; }; } }; 'rejectQuote': { name: 'rejectQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'removeAllOrderLines': { name: 'removeAllOrderLines'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeCompanyTaxId': { name: 'removeCompanyTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'removeCompanyUser': { name: 'removeCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'removeCouponCode': { name: 'removeCouponCode'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeFromShoppingList': { name: 'removeFromShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'removeOrderLine': { name: 'removeOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeProductConfigurationFromOrder': { name: 'removeProductConfigurationFromOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'removeStoreCreditFromOrder': { name: 'removeStoreCreditFromOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'removeTaxId': { name: 'removeTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'requestPasswordReset': { name: 'requestPasswordReset'; type: { kind: 'UNION'; name: 'RequestPasswordResetResult'; ofType: null; } }; 'requestQuote': { name: 'requestQuote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestQuoteChanges': { name: 'requestQuoteChanges'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestQuoteFromCart': { name: 'requestQuoteFromCart'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'requestUpdateCustomerEmailAddress': { name: 'requestUpdateCustomerEmailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RequestUpdateCustomerEmailAddressResult'; ofType: null; }; } }; 'resetPassword': { name: 'resetPassword'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ResetPasswordResult'; ofType: null; }; } }; 'setCurrencyCodeForOrder': { name: 'setCurrencyCodeForOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'setCustomerForOrder': { name: 'setCustomerForOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForOrderResult'; ofType: null; }; } }; 'setDefaultTaxId': { name: 'setDefaultTaxId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxId'; ofType: null; }; } }; 'setOrderBillingAddress': { name: 'setOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderShippingAddress': { name: 'setOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'setOrderShippingMethod': { name: 'setOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setShoppingListVisibility': { name: 'setShoppingListVisibility'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'submitApprovalDecision': { name: 'submitApprovalDecision'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApprovalRequest'; ofType: null; }; } }; 'submitQuoteRequest': { name: 'submitQuoteRequest'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Quote'; ofType: null; }; } }; 'switchBusinessUnit': { name: 'switchBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'unsetOrderBillingAddress': { name: 'unsetOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'unsetOrderShippingAddress': { name: 'unsetOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ActiveOrderResult'; ofType: null; }; } }; 'updateCompanyAccount': { name: 'updateCompanyAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAccount'; ofType: null; }; } }; 'updateCompanyAddress': { name: 'updateCompanyAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyAddress'; ofType: null; }; } }; 'updateCompanyBusinessUnit': { name: 'updateCompanyBusinessUnit'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyBusinessUnit'; ofType: null; }; } }; 'updateCompanyUser': { name: 'updateCompanyUser'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CompanyUser'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerEmailAddress': { name: 'updateCustomerEmailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerEmailAddressResult'; ofType: null; }; } }; 'updateCustomerPassword': { name: 'updateCustomerPassword'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerPasswordResult'; ofType: null; }; } }; 'updateProductConfigurationOnOrder': { name: 'updateProductConfigurationOnOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductConfiguration'; ofType: null; }; } }; 'updateShoppingList': { name: 'updateShoppingList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingList'; ofType: null; }; } }; 'updateShoppingListItem': { name: 'updateShoppingListItem'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShoppingListItem'; ofType: null; }; } }; 'validateQuickOrderItems': { name: 'validateQuickOrderItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'QuickOrderValidationResult'; ofType: null; }; } }; 'verifyCustomerAccount': { name: 'verifyCustomerAccount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'VerifyCustomerAccountResult'; ofType: null; }; } }; }; };
205
206
  'NativeAuthInput': { kind: 'INPUT_OBJECT'; name: 'NativeAuthInput'; isOneOf: false; inputFields: [{ name: 'username'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'password'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }]; };
206
207
  'NativeAuthStrategyError': { kind: 'OBJECT'; name: 'NativeAuthStrategyError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; };
207
208
  'NativeAuthenticationResult': { kind: 'UNION'; name: 'NativeAuthenticationResult'; fields: {}; possibleTypes: 'CurrentUser' | 'InvalidCredentialsError' | 'NativeAuthStrategyError' | 'NotVerifiedError'; };
@@ -424,6 +425,7 @@ export type introspection_types = {
424
425
  'UpdateOrderInput': { kind: 'INPUT_OBJECT'; name: 'UpdateOrderInput'; isOneOf: false; inputFields: [{ name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; defaultValue: null }]; };
425
426
  'UpdateOrderItemErrorResult': { kind: 'UNION'; name: 'UpdateOrderItemErrorResult'; fields: {}; possibleTypes: 'InsufficientStockError' | 'NegativeQuantityError' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError'; };
426
427
  'UpdateOrderItemsResult': { kind: 'UNION'; name: 'UpdateOrderItemsResult'; fields: {}; possibleTypes: 'InsufficientStockError' | 'NegativeQuantityError' | 'Order' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError'; };
428
+ 'UpdateProductConfigurationOnOrderInput': { kind: 'INPUT_OBJECT'; name: 'UpdateProductConfigurationOnOrderInput'; isOneOf: false; inputFields: [{ name: 'productConfigurationId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'values'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ConfiguratorValueInput'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; };
427
429
  'UpdateShoppingListInput': { kind: 'INPUT_OBJECT'; name: 'UpdateShoppingListInput'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'description'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }]; };
428
430
  'UpdateShoppingListItemInput': { kind: 'INPUT_OBJECT'; name: 'UpdateShoppingListItemInput'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'note'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'quantity'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; defaultValue: null }, { name: 'sortOrder'; type: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; defaultValue: null }, { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; defaultValue: null }]; };
429
431
  'Upload': unknown;
@@ -650,18 +650,8 @@ export const MoveShoppingListItemsMutation = graphql(
650
650
 
651
651
  export const AddToShoppingListMutation = graphql(
652
652
  `
653
- mutation AddToShoppingList(
654
- $productVariantId: ID!
655
- $shoppingListId: ID
656
- $note: String
657
- $quantity: Int
658
- ) {
659
- addToShoppingList(
660
- productVariantId: $productVariantId
661
- shoppingListId: $shoppingListId
662
- note: $note
663
- quantity: $quantity
664
- ) {
653
+ mutation AddToShoppingList($input: CreateShoppingListItemInput!) {
654
+ addToShoppingList(input: $input) {
665
655
  ...ShoppingListFields
666
656
  items {
667
657
  items {
@@ -1036,6 +1026,26 @@ export const AddConfigurationToOrderMutation = graphql(`
1036
1026
  }
1037
1027
  `);
1038
1028
 
1029
+ export const UpdateConfigurationOnOrderMutation = graphql(`
1030
+ mutation UpdateProductConfigurationOnOrder($input: UpdateProductConfigurationOnOrderInput!) {
1031
+ updateProductConfigurationOnOrder(input: $input) {
1032
+ id
1033
+ name
1034
+ state
1035
+ lines {
1036
+ id
1037
+ sourceKey
1038
+ quantity
1039
+ productVariant {
1040
+ id
1041
+ name
1042
+ sku
1043
+ }
1044
+ }
1045
+ }
1046
+ }
1047
+ `);
1048
+
1039
1049
  export const RemoveConfigurationFromOrderMutation = graphql(`
1040
1050
  mutation RemoveProductConfigurationFromOrder($productConfigurationId: ID!) {
1041
1051
  removeProductConfigurationFromOrder(productConfigurationId: $productConfigurationId) {
@@ -1355,6 +1355,32 @@ export type EvaluatedField = ConfigurationEvaluation['fields'][number];
1355
1355
  export type EvaluatedLine = ConfigurationEvaluation['lines'][number];
1356
1356
  export type EvaluatedExecutedRule = ConfigurationEvaluation['executedRules'][number];
1357
1357
 
1358
+ export const GetActiveOrderConfigurationsQuery = graphql(`
1359
+ query GetActiveOrderConfigurations {
1360
+ activeOrder {
1361
+ id
1362
+ productConfigurations {
1363
+ id
1364
+ name
1365
+ system {
1366
+ id
1367
+ code
1368
+ }
1369
+ fieldValues {
1370
+ id
1371
+ moduleCode
1372
+ fieldCode
1373
+ value
1374
+ }
1375
+ }
1376
+ }
1377
+ }
1378
+ `);
1379
+
1380
+ export type ActiveOrderConfiguration = NonNullable<
1381
+ NonNullable<ResultOf<typeof GetActiveOrderConfigurationsQuery>['activeOrder']>['productConfigurations']
1382
+ >[number];
1383
+
1358
1384
  // ── Quick Order ──
1359
1385
 
1360
1386
  export const QuickOrderSearchQuery = graphql(`
@@ -314,7 +314,7 @@ type Mutation {
314
314
  addTaxId(input: AddTaxIdInput!): TaxId!
315
315
  removeTaxId(id: ID!): DeletionResponse!
316
316
  setDefaultTaxId(id: ID!): TaxId!
317
- addToShoppingList(productVariantId: ID!, shoppingListId: ID, note: String, quantity: Int, sortOrder: Int): ShoppingList!
317
+ addToShoppingList(input: CreateShoppingListItemInput!): ShoppingList!
318
318
  removeFromShoppingList(itemIds: [ID!]!, shoppingListId: ID): ShoppingList!
319
319
  updateShoppingListItem(input: UpdateShoppingListItemInput!): ShoppingListItem!
320
320
  createShoppingList(input: CreateShoppingListInput!): ShoppingList!
@@ -376,6 +376,14 @@ type Mutation {
376
376
  """
377
377
  cancelQuoteCheckout: Boolean!
378
378
  addProductConfigurationToOrder(input: AddProductConfigurationToOrderInput!): ProductConfiguration!
379
+
380
+ """
381
+ Re-evaluates an existing configuration on the active order with new
382
+ field values and atomically replaces its BOM and order lines. The
383
+ ProductConfiguration keeps its identity — use this to edit a
384
+ configured system that is already in the cart.
385
+ """
386
+ updateProductConfigurationOnOrder(input: UpdateProductConfigurationOnOrderInput!): ProductConfiguration!
379
387
  removeProductConfigurationFromOrder(productConfigurationId: ID!): Order!
380
388
 
381
389
  """Submit a decision (only if current customer is an assigned approver)"""
@@ -4608,6 +4616,15 @@ type ProductVariantShoppingListData {
4608
4616
  addedAt: DateTime!
4609
4617
  }
4610
4618
 
4619
+ input CreateShoppingListItemInput {
4620
+ productVariantId: ID!
4621
+ shoppingListId: ID
4622
+ note: String
4623
+ quantity: Int
4624
+ sortOrder: Int
4625
+ customFields: JSON
4626
+ }
4627
+
4611
4628
  input UpdateShoppingListItemInput {
4612
4629
  id: ID!
4613
4630
  note: String
@@ -5448,6 +5465,12 @@ input AddProductConfigurationToOrderInput {
5448
5465
  name: String
5449
5466
  }
5450
5467
 
5468
+ input UpdateProductConfigurationOnOrderInput {
5469
+ productConfigurationId: ID!
5470
+ values: [ConfiguratorValueInput!]!
5471
+ name: String
5472
+ }
5473
+
5451
5474
  enum ApprovalRequestStatus {
5452
5475
  PENDING
5453
5476
  IN_PROGRESS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure-platform/create",
3
- "version": "0.2.4-nightly.202606090705",
3
+ "version": "0.3.0",
4
4
  "description": "CLI tool to scaffold a Vendure demo project with Vendure Platform plugins",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@clack/prompts": "^0.10.0",
40
- "@vendure-platform/plugin-meta": "0.2.4-nightly.202606090705",
40
+ "@vendure-platform/plugin-meta": "0.3.0",
41
41
  "commander": "^13.1.0",
42
42
  "fs-extra": "^11.3.0",
43
43
  "handlebars": "^4.7.8",
@@ -1,4 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 40 27">
2
- <path fill="#17C1FF" d="M10.746 12.008v9.263c0 .166.093.323.237.404l8.407 4.763c.302.17.671.17.973 0l8.407-4.762a.466.466 0 0 0 .237-.405v-9.263a.476.476 0 0 0-.714-.405l-7.93 4.491a.996.996 0 0 1-.973 0l-7.93-4.49a.476.476 0 0 0-.714.404Z"/>
3
- <path fill="#17C1FF" d="M8.893.072.486 4.832A.948.948 0 0 0 0 5.657v9.522c0 .166.092.323.237.405l8.176 4.633a.476.476 0 0 0 .714-.405V10.83c0-.341.185-.655.487-.824l7.93-4.491a.463.463 0 0 0 0-.81L9.366.072a.48.48 0 0 0-.477 0h.003ZM30.86.063l8.407 4.76c.301.17.486.486.486.825v9.522a.469.469 0 0 1-.237.405l-8.176 4.633a.476.476 0 0 1-.714-.405v-8.982a.945.945 0 0 0-.486-.824l-7.93-4.491a.463.463 0 0 1 0-.81L30.386.063a.48.48 0 0 1 .477 0h-.003Z"/>
4
- </svg>