@wix/auto_sdk_online-programs_sections 1.0.20 → 1.0.22

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.
@@ -679,61 +679,6 @@ function moveSection(payload) {
679
679
  }
680
680
  return __moveSection;
681
681
  }
682
- function publishSection(payload) {
683
- function __publishSection({ host }) {
684
- const metadata = {
685
- entityFqdn: "wix.online_programs.v3.section",
686
- method: "PATCH",
687
- methodFqn: "wix.onlineprograms.sections.v3.SectionsService.PublishSection",
688
- packageName: PACKAGE_NAME,
689
- migrationOptions: {
690
- optInTransformResponse: true
691
- },
692
- url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({
693
- protoPath: "/v3/sections/publish",
694
- data: payload,
695
- host
696
- }),
697
- data: payload,
698
- transformResponse: (payload2) => transformPaths(payload2, [
699
- {
700
- transformFn: transformRESTTimestampToSDKTimestamp,
701
- paths: [
702
- { path: "section.createdDate" },
703
- { path: "section.updatedDate" },
704
- { path: "section.description.image.urlExpirationDate" },
705
- { path: "section.description.video.urlExpirationDate" },
706
- {
707
- path: "section.description.video.resolutions.urlExpirationDate"
708
- },
709
- {
710
- path: "section.description.video.resolutions.poster.urlExpirationDate"
711
- },
712
- { path: "section.description.video.posters.urlExpirationDate" }
713
- ]
714
- },
715
- {
716
- transformFn: transformRESTFloatToSDKFloat,
717
- paths: [
718
- { path: "section.ordering" },
719
- { path: "section.description.image.focalPoint.x" },
720
- { path: "section.description.image.focalPoint.y" },
721
- {
722
- path: "section.description.video.resolutions.poster.focalPoint.x"
723
- },
724
- {
725
- path: "section.description.video.resolutions.poster.focalPoint.y"
726
- },
727
- { path: "section.description.video.posters.focalPoint.x" },
728
- { path: "section.description.video.posters.focalPoint.y" }
729
- ]
730
- }
731
- ])
732
- };
733
- return metadata;
734
- }
735
- return __publishSection;
736
- }
737
682
 
738
683
  // src/online-programs-v3-section-sections.universal.ts
739
684
  import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
@@ -1225,48 +1170,6 @@ async function moveSection2(options) {
1225
1170
  throw transformedError;
1226
1171
  }
1227
1172
  }
1228
- async function publishSection2(options) {
1229
- const { httpClient, sideEffects } = arguments[1];
1230
- const payload = renameKeysFromSDKRequestToRESTRequest({
1231
- sectionId: options?.sectionId,
1232
- revision: options?.revision,
1233
- fields: options?.fields
1234
- });
1235
- const reqOpts = publishSection(payload);
1236
- sideEffects?.onSiteCall?.();
1237
- try {
1238
- const result = await httpClient.request(reqOpts);
1239
- sideEffects?.onSuccess?.(result);
1240
- return renameKeysFromRESTResponseToSDKResponse(
1241
- transformPaths2(result.data, [
1242
- {
1243
- transformFn: transformRESTImageToSDKImage,
1244
- paths: [{ path: "section.description.image" }]
1245
- },
1246
- {
1247
- transformFn: transformRESTVideoV2ToSDKVideoV2,
1248
- paths: [{ path: "section.description.video" }]
1249
- }
1250
- ])
1251
- );
1252
- } catch (err) {
1253
- const transformedError = sdkTransformError(
1254
- err,
1255
- {
1256
- spreadPathsToArguments: {},
1257
- explicitPathsToArguments: {
1258
- sectionId: "$[0].sectionId",
1259
- revision: "$[0].revision",
1260
- fields: "$[0].fields"
1261
- },
1262
- singleArgumentUnchanged: false
1263
- },
1264
- ["options"]
1265
- );
1266
- sideEffects?.onError?.(err);
1267
- throw transformedError;
1268
- }
1269
- }
1270
1173
 
1271
1174
  // src/online-programs-v3-section-sections.public.ts
1272
1175
  function createSection3(httpClient) {
@@ -1346,13 +1249,6 @@ function moveSection3(httpClient) {
1346
1249
  { httpClient }
1347
1250
  );
1348
1251
  }
1349
- function publishSection3(httpClient) {
1350
- return (options) => publishSection2(
1351
- options,
1352
- // @ts-ignore
1353
- { httpClient }
1354
- );
1355
- }
1356
1252
 
1357
1253
  // src/online-programs-v3-section-sections.context.ts
1358
1254
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
@@ -1376,7 +1272,6 @@ var deleteSection4 = /* @__PURE__ */ createRESTModule(deleteSection3);
1376
1272
  var listSections4 = /* @__PURE__ */ createRESTModule(listSections3);
1377
1273
  var cloneSection4 = /* @__PURE__ */ createRESTModule(cloneSection3);
1378
1274
  var moveSection4 = /* @__PURE__ */ createRESTModule(moveSection3);
1379
- var publishSection4 = /* @__PURE__ */ createRESTModule(publishSection3);
1380
1275
  var querySections4 = /* @__PURE__ */ createRESTModule(customQuerySections);
1381
1276
  export {
1382
1277
  BulkActionType,
@@ -1394,7 +1289,6 @@ export {
1394
1289
  getSection4 as getSection,
1395
1290
  listSections4 as listSections,
1396
1291
  moveSection4 as moveSection,
1397
- publishSection4 as publishSection,
1398
1292
  querySections4 as querySections,
1399
1293
  updateSection4 as updateSection,
1400
1294
  utils