@faststore/api 4.9.0-dev.5 → 4.9.0-dev.7

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/es/index.mjs CHANGED
@@ -80,7 +80,7 @@ const et = () => function(n = {}) {
80
80
  resolvers: n
81
81
  })
82
82
  );
83
- }, cn = "@faststore/api", ln = "4.9.0-dev.4", Ee = {
83
+ }, cn = "@faststore/api", ln = "4.9.0-dev.6", Ee = {
84
84
  name: cn,
85
85
  version: ln
86
86
  }, ct = qn("@faststore/api"), lt = (e, n = "Unknown Graphql Resolver") => (t, r, i, a) => {
@@ -261,7 +261,7 @@ const yt = "storefront/faststore.recommendation-shelf@v4", H = {
261
261
  "ConvertedToCart",
262
262
  "ConvertedToOrder"
263
263
  ]);
264
- function bt({
264
+ function Ct({
265
265
  page: e,
266
266
  perPage: n,
267
267
  status: t,
@@ -296,7 +296,7 @@ function bt({
296
296
  );
297
297
  }
298
298
  }
299
- function Ct({
299
+ function bt({
300
300
  page: e,
301
301
  perPage: n,
302
302
  status: t,
@@ -431,7 +431,7 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
431
431
  const w = O ? {
432
432
  startDateUtc: m?.deliveryWindow?.startDate,
433
433
  endDateUtc: m?.deliveryWindow?.endDate
434
- } : null, C = {
434
+ } : null, b = {
435
435
  logisticsInfo: Array.from({ length: p }, (I, D) => ({
436
436
  itemIndex: D,
437
437
  selectedDeliveryChannel: m?.deliveryChannel || null,
@@ -449,7 +449,7 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
449
449
  {
450
450
  ...H,
451
451
  headers: E,
452
- body: JSON.stringify(C)
452
+ body: JSON.stringify(b)
453
453
  },
454
454
  { storeCookies: o }
455
455
  );
@@ -499,9 +499,9 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
499
499
  const { salesChannel: O } = m, w = s({
500
500
  "content-type": "application/json",
501
501
  "X-FORWARDED-HOST": g
502
- }), C = new URLSearchParams();
503
- (!S || !l) && C.set("sc", O), l && C.set("refreshOutdatedData", p.toString());
504
- const E = l ? `/${l}` : "", I = `${a}/api/checkout/pub/orderForm${E}?${C}`;
502
+ }), b = new URLSearchParams();
503
+ (!S || !l) && b.set("sc", O), l && b.set("refreshOutdatedData", p.toString());
504
+ const E = l ? `/${l}` : "", I = `${a}/api/checkout/pub/orderForm${E}?${b}`;
505
505
  return y(
506
506
  I,
507
507
  {
@@ -536,14 +536,14 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
536
536
  const w = new URLSearchParams({
537
537
  allowOutdatedData: m,
538
538
  sc: S
539
- }), C = s({
539
+ }), b = s({
540
540
  "content-type": "application/json",
541
541
  "X-FORWARDED-HOST": g
542
542
  });
543
543
  return y(
544
544
  `${a}/api/checkout/pub/orderForm/${l}/items?${w}`,
545
545
  {
546
- headers: C,
546
+ headers: b,
547
547
  body: JSON.stringify({
548
548
  orderItems: p,
549
549
  noSplitItem: !O
@@ -586,14 +586,14 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
586
586
  "geoCoordinates",
587
587
  `${p?.longitude};${p?.latitude}`
588
588
  );
589
- const w = `${a}/api/checkout/pub/regions/?${O.toString()}`, C = s({
589
+ const w = `${a}/api/checkout/pub/regions/?${O.toString()}`, b = s({
590
590
  "content-type": "application/json",
591
591
  "X-FORWARDED-HOST": g
592
592
  });
593
593
  return y(
594
594
  w,
595
595
  {
596
- headers: C
596
+ headers: b
597
597
  },
598
598
  { storeCookies: o }
599
599
  );
@@ -740,7 +740,7 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
740
740
  dateFinal: S,
741
741
  text: O,
742
742
  clientEmail: w,
743
- perPage: C,
743
+ perPage: b,
744
744
  pendingMyApproval: E
745
745
  }) => {
746
746
  const I = new URLSearchParams();
@@ -765,7 +765,7 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
765
765
  O && I.append("text", O), p && p.length > 0 && I.append("status", p.filter(Boolean).join(",")), m && S ? I.append(
766
766
  "creation_date",
767
767
  `creationDate:[${m} TO ${S}]`
768
- ) : m ? I.append("creation_date", `creationDate:[${m} TO *]`) : S && I.append("creation_date", `creationDate:[* TO ${S}]`), w && I.append("clientEmail", w), l && I.append("page", l.toString()), C && I.append("per_page", C.toString()), E && I.append("my_pending_approvals", String(!0));
768
+ ) : m ? I.append("creation_date", `creationDate:[${m} TO *]`) : S && I.append("creation_date", `creationDate:[* TO ${S}]`), w && I.append("clientEmail", w), l && I.append("page", l.toString()), b && I.append("per_page", b.toString()), E && I.append("my_pending_approvals", String(!0));
769
769
  const D = s({
770
770
  "content-type": "application/json",
771
771
  "X-FORWARDED-HOST": g
@@ -1002,8 +1002,8 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
1002
1002
  },
1003
1003
  quotes: {
1004
1004
  listUserQuotes: (l) => {
1005
- bt(l);
1006
- const p = Ct(l), m = s({
1005
+ Ct(l);
1006
+ const p = bt(l), m = s({
1007
1007
  "content-type": "application/json",
1008
1008
  "X-FORWARDED-HOST": g
1009
1009
  });
@@ -1053,8 +1053,8 @@ const wt = ({ account: e, environment: n, incrementAddress: t, subDomainPrefix:
1053
1053
  ].join(w), A = `${w}--${O}--${w}`, _ = Buffer.from(D), P = Buffer.from(A), R = new Uint8Array(
1054
1054
  _.byteLength + l.byteLength + P.byteLength
1055
1055
  );
1056
- let b = 0;
1057
- return R.set(_, b), b += _.byteLength, R.set(l, b), b += l.byteLength, R.set(P, b), y(
1056
+ let C = 0;
1057
+ return R.set(_, C), C += _.byteLength, R.set(l, C), C += l.byteLength, R.set(P, C), y(
1058
1058
  `${a}/api/order-entry/upload?an=${e}`,
1059
1059
  {
1060
1060
  method: "POST",
@@ -1481,11 +1481,11 @@ const Jt = ({
1481
1481
  const P = De(Gt);
1482
1482
  return (await Promise.all(
1483
1483
  D.map(
1484
- (b) => P(async () => {
1484
+ (C) => P(async () => {
1485
1485
  try {
1486
1486
  return await m({
1487
1487
  field: I,
1488
- value: b,
1488
+ value: C,
1489
1489
  hideUnavailableItems: _,
1490
1490
  showInvisibleItems: A
1491
1491
  });
@@ -1495,7 +1495,7 @@ const Jt = ({
1495
1495
  })
1496
1496
  )
1497
1497
  )).filter(
1498
- (b) => b !== null
1498
+ (C) => C !== null
1499
1499
  );
1500
1500
  },
1501
1501
  suggestedTerms: (I) => {
@@ -1821,7 +1821,7 @@ const ge = (e) => e.toLowerCase(), re = (e, n) => {
1821
1821
  key: ({ key: e }) => e,
1822
1822
  label: ({ name: e }) => e,
1823
1823
  values: ({ values: e }) => e.sort((n, t) => n.name.localeCompare(t.name))
1824
- }, br = {
1824
+ }, Cr = {
1825
1825
  key: ({ key: e }) => e,
1826
1826
  label: ({ name: e }) => e,
1827
1827
  min: ({ values: e, key: n }, t, { storage: { searchArgs: r } }) => {
@@ -1842,7 +1842,7 @@ const ge = (e) => e.toLowerCase(), re = (e, n) => {
1842
1842
  absolute: o
1843
1843
  };
1844
1844
  }
1845
- }, Cr = {
1845
+ }, br = {
1846
1846
  value: ({ value: e }) => e,
1847
1847
  label: ({ name: e }) => e || "unknown",
1848
1848
  selected: ({ selected: e }) => e,
@@ -1968,7 +1968,7 @@ function Ur(e) {
1968
1968
  }
1969
1969
  };
1970
1970
  }
1971
- function bn(e) {
1971
+ function Cn(e) {
1972
1972
  return vn(
1973
1973
  `${e.name}:${JSON.stringify(e.value)}:${e.valueReference}`
1974
1974
  );
@@ -2006,7 +2006,7 @@ const Rr = (e) => {
2006
2006
  return [s];
2007
2007
  }
2008
2008
  return null;
2009
- }, Cn = (e, n) => {
2009
+ }, bn = (e, n) => {
2010
2010
  if (!Nr(n))
2011
2011
  return { updateShipping: !1, addressChanged: !1 };
2012
2012
  if (!Mr(e))
@@ -2030,7 +2030,7 @@ const Rr = (e) => {
2030
2030
  e.itemOffered.sku,
2031
2031
  e.seller.identifier,
2032
2032
  e.price < 0.01 ? "Gift" : void 0,
2033
- e.itemOffered.additionalProperty?.filter(wn).map(bn).join("-")
2033
+ e.itemOffered.additionalProperty?.filter(wn).map(Cn).join("-")
2034
2034
  ].filter(Boolean).join("::"), le = (e, n) => ({
2035
2035
  listPrice: e.listPrice / 100,
2036
2036
  price: e.sellingPrice / 100,
@@ -2098,7 +2098,7 @@ const We = (e) => {
2098
2098
  };
2099
2099
  })
2100
2100
  };
2101
- }, be = async (e, n, t, r) => ({
2101
+ }, Ce = async (e, n, t, r) => ({
2102
2102
  order: {
2103
2103
  orderNumber: e.orderFormId,
2104
2104
  acceptedOffer: e.items.map(async (i) => ({
@@ -2149,7 +2149,7 @@ const We = (e) => {
2149
2149
  }), Ge = async (e, n, { clients: { commerce: t } }) => {
2150
2150
  if (!n)
2151
2151
  return e;
2152
- const { updateShipping: r, addressChanged: i } = Cn(
2152
+ const { updateShipping: r, addressChanged: i } = bn(
2153
2153
  e,
2154
2154
  n
2155
2155
  );
@@ -2185,7 +2185,7 @@ const We = (e) => {
2185
2185
  n.salesChannel
2186
2186
  );
2187
2187
  return t ? (ce(e, t), n.salesChannel ? String(n.salesChannel) : null) : null;
2188
- }, Ye = (e, n, t, r) => r ? be(e, n, t, r) : null, Hr = async (e, { cart: { order: n }, session: t }, r) => {
2188
+ }, Ye = (e, n, t, r) => r ? Ce(e, n, t, r) : null, Hr = async (e, { cart: { order: n }, session: t }, r) => {
2189
2189
  const i = Wr(
2190
2190
  r.headers.cookie,
2191
2191
  "checkout.vtex.com"
@@ -2202,7 +2202,7 @@ const We = (e) => {
2202
2202
  d.messages.length !== 0 && await jr(g, r);
2203
2203
  const f = Q(r?.headers?.cookie ?? "")?.vtex_session, h = V(f), { acceptedOffer: v, shouldSplitItem: l } = n;
2204
2204
  if (qr(d, h)) {
2205
- const b = Xe(
2205
+ const C = Xe(
2206
2206
  r,
2207
2207
  d
2208
2208
  ), N = await He(
@@ -2211,37 +2211,37 @@ const We = (e) => {
2211
2211
  h
2212
2212
  ).then(We);
2213
2213
  if (g)
2214
- return be(
2214
+ return Ce(
2215
2215
  N,
2216
2216
  o,
2217
2217
  l,
2218
- b
2218
+ C
2219
2219
  );
2220
2220
  }
2221
2221
  const m = Xe(
2222
2222
  r,
2223
2223
  d
2224
- ), S = je(v), O = je(d.items.map(le)), w = Array.from(O.entries()), C = Array.from(S.entries()), { itemsToAdd: E, itemsToUpdate: I } = C.reduce(
2225
- (b, [N, Pe]) => {
2224
+ ), S = je(v), O = je(d.items.map(le)), w = Array.from(O.entries()), b = Array.from(S.entries()), { itemsToAdd: E, itemsToUpdate: I } = b.reduce(
2225
+ (C, [N, Pe]) => {
2226
2226
  const _e = O.get(N);
2227
2227
  if (!_e)
2228
- return Pe.forEach((W) => b.itemsToAdd.push(W)), b;
2228
+ return Pe.forEach((W) => C.itemsToAdd.push(W)), C;
2229
2229
  const [te, ...Fn] = _e;
2230
2230
  if (An(d.items, te.itemOffered.sku) || Dn(d.items, te.itemOffered.sku))
2231
- return b.itemsToUpdate.push(te), b;
2231
+ return C.itemsToUpdate.push(te), C;
2232
2232
  const Nn = Pe.reduce((W, Ln) => W + Ln.quantity, 0);
2233
- return b.itemsToUpdate.push({
2233
+ return C.itemsToUpdate.push({
2234
2234
  ...te,
2235
2235
  quantity: Nn
2236
- }), Fn.forEach((W) => b.itemsToUpdate.push({ ...W, quantity: 0 })), b;
2236
+ }), Fn.forEach((W) => C.itemsToUpdate.push({ ...W, quantity: 0 })), C;
2237
2237
  },
2238
2238
  {
2239
2239
  itemsToAdd: [],
2240
2240
  itemsToUpdate: []
2241
2241
  }
2242
- ), D = w.filter(([b]) => !S.has(b)).flatMap(([, b]) => b.map((N) => ({ ...N, quantity: 0 }))), A = [...E, ...I, ...D].map(
2242
+ ), D = w.filter(([C]) => !S.has(C)).flatMap(([, C]) => C.map((N) => ({ ...N, quantity: 0 }))), A = [...E, ...I, ...D].map(
2243
2243
  Vr
2244
- ), { updateShipping: _ } = t ? Cn(d, t) : { updateShipping: !1 };
2244
+ ), { updateShipping: _ } = t ? bn(d, t) : { updateShipping: !1 };
2245
2245
  if (A.length === 0 && !_)
2246
2246
  return Ye(
2247
2247
  d,
@@ -2255,15 +2255,15 @@ const We = (e) => {
2255
2255
  orderItems: A,
2256
2256
  shouldSplitItem: l
2257
2257
  }).then(
2258
- (b) => Ge(b, t, r)
2258
+ (C) => Ge(C, t, r)
2259
2259
  ) : P = await Ge(
2260
2260
  d,
2261
2261
  t,
2262
2262
  r
2263
- ), P = await Promise.resolve(P).then((b) => {
2263
+ ), P = await Promise.resolve(P).then((C) => {
2264
2264
  if (t?.marketingData) {
2265
2265
  const N = {
2266
- ...b.marketingData,
2266
+ ...C.marketingData,
2267
2267
  ...t.marketingData
2268
2268
  };
2269
2269
  return a.checkout.marketingData({
@@ -2271,14 +2271,14 @@ const We = (e) => {
2271
2271
  marketingData: N
2272
2272
  });
2273
2273
  }
2274
- return b;
2275
- }).then((b) => c && b.clientPreferencesData?.locale !== c ? a.checkout.clientPreferencesData({
2276
- id: b.orderFormId,
2274
+ return C;
2275
+ }).then((C) => c && C.clientPreferencesData?.locale !== c ? a.checkout.clientPreferencesData({
2276
+ id: C.orderFormId,
2277
2277
  clientPreferencesData: {
2278
- ...b.clientPreferencesData,
2278
+ ...C.clientPreferencesData,
2279
2279
  locale: c
2280
2280
  }
2281
- }) : b).then((b) => He(b, a, h)).then(We);
2281
+ }) : C).then((C) => He(C, a, h)).then(We);
2282
2282
  const R = Ae(
2283
2283
  d.messages,
2284
2284
  P.messages
@@ -2288,7 +2288,7 @@ const We = (e) => {
2288
2288
  o,
2289
2289
  l,
2290
2290
  m
2291
- ) : be(
2291
+ ) : Ce(
2292
2292
  P,
2293
2293
  o,
2294
2294
  l,
@@ -2440,7 +2440,7 @@ const si = async (e, { session: n, search: t }, { clients: r, headers: i, accoun
2440
2440
  r,
2441
2441
  i?.cookie,
2442
2442
  a
2443
- ), m = await r.commerce.session(f.toString()).catch(() => null), S = m?.namespaces.profile ?? null, O = m?.namespaces.shopper ?? null, w = m?.namespaces.store ?? null, C = m?.namespaces.authentication ?? null, E = m?.namespaces.checkout ?? null, I = m?.namespaces.public ?? null;
2443
+ ), m = await r.commerce.session(f.toString()).catch(() => null), S = m?.namespaces.profile ?? null, O = m?.namespaces.shopper ?? null, w = m?.namespaces.store ?? null, b = m?.namespaces.authentication ?? null, E = m?.namespaces.checkout ?? null, I = m?.namespaces.public ?? null;
2444
2444
  let D = null;
2445
2445
  if (v && S?.id?.value)
2446
2446
  try {
@@ -2481,7 +2481,7 @@ const si = async (e, { session: n, search: t }, { clients: r, headers: i, accoun
2481
2481
  */
2482
2482
  b2b: ai({
2483
2483
  isRepresentative: v,
2484
- authentication: C,
2484
+ authentication: b,
2485
2485
  shopper: O,
2486
2486
  publicData: I,
2487
2487
  profile: S,
@@ -2505,10 +2505,10 @@ const si = async (e, { session: n, search: t }, { clients: r, headers: i, accoun
2505
2505
  startOrderEntryOperation: Pr,
2506
2506
  startRecommendationSession: _r
2507
2507
  };
2508
- var Ce;
2508
+ var be;
2509
2509
  (function(e) {
2510
2510
  e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
2511
- })(Ce || (Ce = {}));
2511
+ })(be || (be = {}));
2512
2512
  const li = (e) => typeof e == "string" ? kn(e) : null;
2513
2513
  function kn(e) {
2514
2514
  try {
@@ -2523,7 +2523,7 @@ const di = (e) => typeof e == "object" ? JSON.stringify(e) : typeof e == "string
2523
2523
  parseValue: li,
2524
2524
  serialize: di,
2525
2525
  parseLiteral(e) {
2526
- return e.kind === Ce.STRING ? kn(e.value) : null;
2526
+ return e.kind === be.STRING ? kn(e.value) : null;
2527
2527
  }
2528
2528
  }), T = (e) => "Price" in e && "seller" in e && "product" in e, U = (e) => "skuName" in e, pi = {
2529
2529
  priceCurrency: async (e, n, t) => {
@@ -2617,10 +2617,10 @@ async function oe(e, n, t) {
2617
2617
  })();
2618
2618
  return i.set(r, o), o;
2619
2619
  }
2620
- const bi = (e, n) => {
2620
+ const Ci = (e, n) => {
2621
2621
  const t = e.findIndex((r) => we(r).split("/").at(-1) === n);
2622
2622
  return t < 0 ? 0 : t;
2623
- }, Ci = {
2623
+ }, bi = {
2624
2624
  productID: ({ itemId: e }) => e,
2625
2625
  name: ({ isVariantOf: e, name: n }) => n ?? e.productName,
2626
2626
  slug: ({ isVariantOf: { linkText: e }, itemId: n }) => ae(e, n),
@@ -2643,7 +2643,7 @@ const bi = (e, n) => {
2643
2643
  productId: c
2644
2644
  },
2645
2645
  itemId: u
2646
- } = e, d = bi(s, o), g = r[d], f = we(g).split("/"), h = t.storage.locale;
2646
+ } = e, d = Ci(s, o), g = r[d], f = we(g).split("/"), h = t.storage.locale;
2647
2647
  if (q(t) && h) {
2648
2648
  const v = await oe(t, c, h);
2649
2649
  if (v) {
@@ -2775,6 +2775,7 @@ const bi = (e, n) => {
2775
2775
  }, wi = /* @__PURE__ */ new Set(["allSpecifications"]), Di = {
2776
2776
  hasVariant: (e) => e.isVariantOf.items.map((n) => F(n, e.isVariantOf)),
2777
2777
  productGroupID: ({ isVariantOf: e }) => e.productId,
2778
+ productClusters: ({ isVariantOf: e }) => e.productClusters ?? [],
2778
2779
  name: (e) => e.isVariantOf.productName,
2779
2780
  skuVariants: (e) => e,
2780
2781
  additionalProperty: ({ isVariantOf: { specificationGroups: e } }) => e.filter(
@@ -2789,7 +2790,7 @@ const bi = (e, n) => {
2789
2790
  )
2790
2791
  )
2791
2792
  }, Ai = {
2792
- propertyID: (e) => e.propertyID || bn(e),
2793
+ propertyID: (e) => e.propertyID || Cn(e),
2793
2794
  name: ({ name: e }) => e,
2794
2795
  value: ({ value: e }) => e,
2795
2796
  valueReference: ({ valueReference: e }) => e
@@ -3598,11 +3599,11 @@ const Ki = {
3598
3599
  deliveryOptionsData: (e) => {
3599
3600
  const { shippingData: n, items: t } = e, r = n?.logisticsInfo || [], i = n?.selectedAddresses || n?.availableAddresses || [n?.address], a = r.reduce(
3600
3601
  (u, d) => {
3601
- const g = d?.selectedSla || "", f = d?.selectedDeliveryChannel || d?.deliveryChannel || "", h = d?.deliveryCompany || "", v = d?.deliveryWindow, l = d?.pickupStoreInfo, p = d?.shippingEstimate || "", m = d?.shippingEstimate ? Rn(d?.shippingEstimate) : "", S = d?.shippingEstimateDate || "", O = d?.addressId || "", w = d?.itemIndex ?? 0, C = t?.[w], E = C?.seller || "", I = `${g}|${f}|${h}|${E}|${p}|${S}|${O}|${v?.startDateUtc}|${v?.endDateUtc}`, D = i?.find(
3602
- (b) => b?.addressId === O
3602
+ const g = d?.selectedSla || "", f = d?.selectedDeliveryChannel || d?.deliveryChannel || "", h = d?.deliveryCompany || "", v = d?.deliveryWindow, l = d?.pickupStoreInfo, p = d?.shippingEstimate || "", m = d?.shippingEstimate ? Rn(d?.shippingEstimate) : "", S = d?.shippingEstimateDate || "", O = d?.addressId || "", w = d?.itemIndex ?? 0, b = t?.[w], E = b?.seller || "", I = `${g}|${f}|${h}|${E}|${p}|${S}|${O}|${v?.startDateUtc}|${v?.endDateUtc}`, D = i?.find(
3603
+ (C) => C?.addressId === O
3603
3604
  ), A = `${Qi[f] || ""} ${m} ${D?.neighborhood ? `to ${D?.neighborhood}` : ""}`.trim(), { taxPriceTagsTotal: _, taxPriceTags: P } = ea(
3604
- C?.priceTags ?? []
3605
- ), R = (C?.sellingPrice ?? 0) * (C?.quantity ?? 0) + (C?.tax ?? 0) + (_ ?? 0);
3605
+ b?.priceTags ?? []
3606
+ ), R = (b?.sellingPrice ?? 0) * (b?.quantity ?? 0) + (b?.tax ?? 0) + (_ ?? 0);
3606
3607
  return u[I] || (u[I] = {
3607
3608
  // static fields
3608
3609
  selectedSla: g,
@@ -3621,16 +3622,16 @@ const Ki = {
3621
3622
  total: 0,
3622
3623
  items: []
3623
3624
  }), u[I] && (u[I].items?.push({
3624
- id: C?.id || "",
3625
- uniqueId: C?.uniqueId || "",
3626
- name: C?.name || "",
3627
- quantity: C?.quantity || 0,
3628
- price: C?.price || 0,
3629
- sellingPrice: C?.sellingPrice || 0,
3630
- imageUrl: C?.imageUrl || "",
3625
+ id: b?.id || "",
3626
+ uniqueId: b?.uniqueId || "",
3627
+ name: b?.name || "",
3628
+ quantity: b?.quantity || 0,
3629
+ price: b?.price || 0,
3630
+ sellingPrice: b?.sellingPrice || 0,
3631
+ imageUrl: b?.imageUrl || "",
3631
3632
  taxPriceTags: P ?? [],
3632
3633
  taxPriceTagsTotal: _ ?? 0,
3633
- tax: C?.tax || 0,
3634
+ tax: b?.tax || 0,
3634
3635
  total: R
3635
3636
  }), u[I].quantityOfDifferentItems = (u[I].quantityOfDifferentItems ?? 0) + 1, u[I].total = (u[I].total ?? 0) + R), u;
3636
3637
  },
@@ -3673,12 +3674,12 @@ function ea(e) {
3673
3674
  const na = {
3674
3675
  StoreCollection: Sn,
3675
3676
  StoreAggregateOffer: ur,
3676
- StoreProduct: Ci,
3677
+ StoreProduct: bi,
3677
3678
  StoreSeo: Vi,
3678
3679
  StoreFacet: vr,
3679
3680
  StoreFacetBoolean: Or,
3680
- StoreFacetRange: br,
3681
- StoreFacetValueBoolean: Cr,
3681
+ StoreFacetRange: Cr,
3682
+ StoreFacetValueBoolean: br,
3682
3683
  StoreOffer: pi,
3683
3684
  StoreAggregateRating: pr,
3684
3685
  StoreReview: $i,
@@ -4788,7 +4789,7 @@ type StoreOrderFormCartItem {
4788
4789
  seller: String!
4789
4790
  unitMultiplier: Float
4790
4791
  }
4791
- `, ba = `"""
4792
+ `, Ca = `"""
4792
4793
  Organization.
4793
4794
  """
4794
4795
  type StoreOrganization {
@@ -4829,7 +4830,7 @@ type StoreContract {
4829
4830
  """
4830
4831
  isDefault: Boolean!
4831
4832
  }
4832
- `, Ca = `"""
4833
+ `, ba = `"""
4833
4834
  Whenever you make a query that allows for pagination, such as \`allProducts\` or \`allCollections\`, you can check \`StorePageInfo\` to learn more about the complete set of items and use it to paginate your queries.
4834
4835
  """
4835
4836
  type StorePageInfo {
@@ -5208,6 +5209,10 @@ type StoreProductGroup {
5208
5209
  """
5209
5210
  productGroupID: String!
5210
5211
  """
5212
+ Product clusters (collections) the product group belongs to.
5213
+ """
5214
+ productClusters: [StoreProductCluster!]!
5215
+ """
5211
5216
  Product group name.
5212
5217
  """
5213
5218
  name: String!
@@ -5222,6 +5227,20 @@ type StoreProductGroup {
5222
5227
  """
5223
5228
  skuVariants: SkuVariants
5224
5229
  }
5230
+
5231
+ """
5232
+ A product cluster (collection) associated with a product group.
5233
+ """
5234
+ type StoreProductCluster {
5235
+ """
5236
+ Product cluster ID.
5237
+ """
5238
+ id: String!
5239
+ """
5240
+ Product cluster name.
5241
+ """
5242
+ name: String!
5243
+ }
5225
5244
  `, ka = `type Profile {
5226
5245
  """
5227
5246
  Collection of user's address
@@ -7713,8 +7732,8 @@ type UserOrderBudgetAllocationLinkedEntity {
7713
7732
  "./order.graphql": Ia,
7714
7733
  "./orderCommercialAuthorizaton.graphql": va,
7715
7734
  "./orderEntry.graphql": Oa,
7716
- "./organization.graphql": ba,
7717
- "./pageInfo.graphql": Ca,
7735
+ "./organization.graphql": Ca,
7736
+ "./pageInfo.graphql": ba,
7718
7737
  "./password.graphql": wa,
7719
7738
  "./person.graphql": Da,
7720
7739
  "./pickupPoints.graphql": Aa,