@wix/auto_sdk_ecom_current-cart-v-2 1.0.30 → 1.0.32

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.
@@ -1138,11 +1138,11 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1138
1138
  WebhookIdentityType2["APP"] = "APP";
1139
1139
  return WebhookIdentityType2;
1140
1140
  })(WebhookIdentityType || {});
1141
- async function createCurrentCart2(cart, options) {
1142
- const { httpClient, sideEffects } = arguments[2];
1141
+ async function createCurrentCart2(options) {
1142
+ const { httpClient, sideEffects } = arguments[1];
1143
1143
  const payload = (0, import_transform_paths2.transformPaths)(
1144
1144
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1145
- cart,
1145
+ cart: options?.cart,
1146
1146
  catalogItems: options?.catalogItems,
1147
1147
  customItems: options?.customItems,
1148
1148
  couponCodes: options?.couponCodes,
@@ -1208,16 +1208,16 @@ async function createCurrentCart2(cart, options) {
1208
1208
  {
1209
1209
  spreadPathsToArguments: {},
1210
1210
  explicitPathsToArguments: {
1211
- cart: "$[0]",
1212
- catalogItems: "$[1].catalogItems",
1213
- customItems: "$[1].customItems",
1214
- couponCodes: "$[1].couponCodes",
1215
- deliveryMethod: "$[1].deliveryMethod",
1216
- giftCardCodes: "$[1].giftCardCodes"
1211
+ cart: "$[0].cart",
1212
+ catalogItems: "$[0].catalogItems",
1213
+ customItems: "$[0].customItems",
1214
+ couponCodes: "$[0].couponCodes",
1215
+ deliveryMethod: "$[0].deliveryMethod",
1216
+ giftCardCodes: "$[0].giftCardCodes"
1217
1217
  },
1218
1218
  singleArgumentUnchanged: false
1219
1219
  },
1220
- ["cart", "options"]
1220
+ ["options"]
1221
1221
  );
1222
1222
  sideEffects?.onError?.(err);
1223
1223
  throw transformedError;