@wix/auto_sdk_online-programs_sections 1.0.29 → 1.0.31

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.
@@ -781,10 +781,10 @@ async function cloneSection2(sectionId, options) {
781
781
  throw transformedError;
782
782
  }
783
783
  }
784
- async function moveSection2(options) {
785
- const { httpClient, sideEffects } = arguments[1];
784
+ async function moveSection2(sectionId, options) {
785
+ const { httpClient, sideEffects } = arguments[2];
786
786
  const payload = renameKeysFromSDKRequestToRESTRequest({
787
- sectionId: options?.sectionId,
787
+ sectionId,
788
788
  afterSectionId: options?.afterSectionId,
789
789
  revision: options?.revision,
790
790
  fields: options?.fields
@@ -801,14 +801,14 @@ async function moveSection2(options) {
801
801
  {
802
802
  spreadPathsToArguments: {},
803
803
  explicitPathsToArguments: {
804
- sectionId: "$[0].sectionId",
805
- afterSectionId: "$[0].afterSectionId",
806
- revision: "$[0].revision",
807
- fields: "$[0].fields"
804
+ sectionId: "$[0]",
805
+ afterSectionId: "$[1].afterSectionId",
806
+ revision: "$[1].revision",
807
+ fields: "$[1].fields"
808
808
  },
809
809
  singleArgumentUnchanged: false
810
810
  },
811
- ["options"]
811
+ ["sectionId", "options"]
812
812
  );
813
813
  sideEffects?.onError?.(err);
814
814
  throw transformedError;
@@ -887,7 +887,8 @@ function cloneSection3(httpClient) {
887
887
  );
888
888
  }
889
889
  function moveSection3(httpClient) {
890
- return (options) => moveSection2(
890
+ return (sectionId, options) => moveSection2(
891
+ sectionId,
891
892
  options,
892
893
  // @ts-ignore
893
894
  { httpClient }