// src/table-reservations-v1-experience-experiences.universal.ts
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
import {
  renameKeysFromSDKRequestToRESTRequest,
  renameKeysFromRESTResponseToSDKResponse
} from "@wix/sdk-runtime/rename-all-nested-keys";

// src/table-reservations-v1-experience-experiences.http.ts
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
function resolveWixTableReservationsExperienceV1ExperiencesServiceUrl(opts) {
  const domainToMappings = {
    "manage._base_domain_": [
      {
        srcPath: "/_api/experiences",
        destPath: ""
      },
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "bo._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "wixbo.ai": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "wix-bo.com": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "editor._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "blocks._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "create.editorx": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "dev._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "apps._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "www.wixapis.com": [
      {
        srcPath: "/table-reservations/experiences",
        destPath: ""
      }
    ],
    "*.dev.wix-code.com": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "www._base_domain_": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    "editor.wixapps.net": [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ],
    _: [
      {
        srcPath: "/_api/table-reservations/experiences",
        destPath: ""
      }
    ]
  };
  return resolveUrl(Object.assign(opts, { domainToMappings }));
}
var PACKAGE_NAME = "@wix/auto_sdk_table-reservations_experiences";
function createExperience(payload) {
  function __createExperience({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "experience.createdDate" },
          { path: "experience.updatedDate" },
          {
            path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
          },
          {
            path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
          }
        ]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
          }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "POST",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.CreateExperience",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experience.createdDate" },
            { path: "experience.updatedDate" },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __createExperience;
}
function getExperience(payload) {
  function __getExperience({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "GET",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperience",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences/{experienceId}",
        data: payload,
        host
      }),
      params: toURLSearchParams(payload),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experience.createdDate" },
            { path: "experience.updatedDate" },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getExperience;
}
function getExperienceBySlug(payload) {
  function __getExperienceBySlug({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "GET",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.GetExperienceBySlug",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences/slug/{slug}",
        data: payload,
        host
      }),
      params: toURLSearchParams(payload),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experience.createdDate" },
            { path: "experience.updatedDate" },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getExperienceBySlug;
}
function updateExperience(payload) {
  function __updateExperience({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "experience.createdDate" },
          { path: "experience.updatedDate" },
          {
            path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
          },
          {
            path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
          }
        ]
      },
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
          },
          {
            path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
          }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "PATCH",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.UpdateExperience",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences/{experience.id}",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experience.createdDate" },
            { path: "experience.updatedDate" },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experience.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experience.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateExperience;
}
function queryExperiences(payload) {
  function __queryExperiences({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "GET",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.QueryExperiences",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences/query",
        data: payload,
        host
      }),
      params: toURLSearchParams(payload, true),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experiences.createdDate" },
            { path: "experiences.updatedDate" },
            {
              path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            }
          ]
        }
      ]),
      fallback: [
        {
          method: "POST",
          url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
            protoPath: "/v1/experiences/query",
            data: payload,
            host
          }),
          data: payload
        }
      ]
    };
    return metadata;
  }
  return __queryExperiences;
}
function searchExperiences(payload) {
  function __searchExperiences({ host }) {
    const serializedData = transformPaths(payload, [
      {
        transformFn: transformSDKFloatToRESTFloat,
        paths: [
          { path: "search.aggregations.range.buckets.from" },
          { path: "search.aggregations.range.buckets.to" },
          {
            path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
          },
          {
            path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
          }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "GET",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.SearchExperiences",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/experiences/search",
        data: serializedData,
        host
      }),
      params: toURLSearchParams(serializedData, true),
      transformResponse: (payload2) => transformPaths(payload2, [
        {
          transformFn: transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "experiences.createdDate" },
            { path: "experiences.updatedDate" },
            {
              path: "experiences.configuration.displayInfo.richContent.metadata.createdTimestamp"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.metadata.updatedTimestamp"
            }
          ]
        },
        {
          transformFn: transformRESTFloatToSDKFloat,
          paths: [
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.image.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.items.video.thumbnail.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.galleryData.options.item.ratio"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.imageData.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lat"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.mapData.mapSettings.lng"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.poll.options.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.pollData.design.poll.background.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.appEmbedData.image.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.videoData.video.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.videoData.thumbnail.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.audioData.audio.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.audioData.coverImage.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backgroundImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdropImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.layoutData.backdrop.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.shapeData.shape.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerX"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.centerY"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.background.gradient.stops.position"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.cardData.backgroundImage.media.duration"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.tocData.fontSize"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.tocData.itemSpacing"
            },
            {
              path: "experiences.configuration.displayInfo.richContent.nodes.smartBlockCellData.shape.duration"
            },
            { path: "aggregationData.results.ranges.results.from" },
            { path: "aggregationData.results.ranges.results.to" },
            {
              path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
            },
            {
              path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
            },
            {
              path: "aggregationData.results.nested.results.results.*.range.from"
            },
            {
              path: "aggregationData.results.nested.results.results.*.range.to"
            },
            { path: "aggregationData.results.scalar.value" },
            {
              path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
            },
            {
              path: "aggregationData.results.nested.results.results.*.scalar.value"
            }
          ]
        }
      ]),
      fallback: [
        {
          method: "POST",
          url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
            protoPath: "/v1/experiences/search",
            data: serializedData,
            host
          }),
          data: serializedData
        }
      ]
    };
    return metadata;
  }
  return __searchExperiences;
}
function bulkUpdateExperienceTags(payload) {
  function __bulkUpdateExperienceTags({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "POST",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTags",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/bulk/experiences/update-tags",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUpdateExperienceTags;
}
function bulkUpdateExperienceTagsByFilter(payload) {
  function __bulkUpdateExperienceTagsByFilter({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "POST",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUpdateExperienceTagsByFilter",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/bulk/experiences/update-tags-by-filter",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUpdateExperienceTagsByFilter;
}
function bulkArchiveExperiences(payload) {
  function __bulkArchiveExperiences({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "POST",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkArchiveExperiences",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/bulk/experiences/archive",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkArchiveExperiences;
}
function bulkUnarchiveExperiences(payload) {
  function __bulkUnarchiveExperiences({ host }) {
    const metadata = {
      entityFqdn: "wix.table_reservations.v1.experience",
      method: "POST",
      methodFqn: "wix.table_reservations.experience.v1.ExperiencesService.BulkUnarchiveExperiences",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixTableReservationsExperienceV1ExperiencesServiceUrl({
        protoPath: "/v1/bulk/experiences/unarchive",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkUnarchiveExperiences;
}

// src/table-reservations-v1-experience-experiences.universal.ts
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
import { transformSDKPageURLV2ToRESTPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transformations/page-url-v2";
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
var TableAvailabilityType = /* @__PURE__ */ ((TableAvailabilityType2) => {
  TableAvailabilityType2["ANY_ONLINE_TABLE"] = "ANY_ONLINE_TABLE";
  TableAvailabilityType2["SPECIFIC_TABLES"] = "SPECIFIC_TABLES";
  return TableAvailabilityType2;
})(TableAvailabilityType || {});
var TableAssignmentType = /* @__PURE__ */ ((TableAssignmentType2) => {
  TableAssignmentType2["AUTOMATIC"] = "AUTOMATIC";
  TableAssignmentType2["MANUAL"] = "MANUAL";
  return TableAssignmentType2;
})(TableAssignmentType || {});
var TableManagementMode = /* @__PURE__ */ ((TableManagementMode2) => {
  TableManagementMode2["ON"] = "ON";
  TableManagementMode2["OFF"] = "OFF";
  return TableManagementMode2;
})(TableManagementMode || {});
var Unit = /* @__PURE__ */ ((Unit2) => {
  Unit2["MINUTES"] = "MINUTES";
  Unit2["HOURS"] = "HOURS";
  Unit2["DAYS"] = "DAYS";
  return Unit2;
})(Unit || {});
var Mode = /* @__PURE__ */ ((Mode2) => {
  Mode2["AUTOMATIC"] = "AUTOMATIC";
  Mode2["MANUAL"] = "MANUAL";
  return Mode2;
})(Mode || {});
var StartDaysAndTimesDayOfWeek = /* @__PURE__ */ ((StartDaysAndTimesDayOfWeek2) => {
  StartDaysAndTimesDayOfWeek2["MONDAY"] = "MONDAY";
  StartDaysAndTimesDayOfWeek2["TUESDAY"] = "TUESDAY";
  StartDaysAndTimesDayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
  StartDaysAndTimesDayOfWeek2["THURSDAY"] = "THURSDAY";
  StartDaysAndTimesDayOfWeek2["FRIDAY"] = "FRIDAY";
  StartDaysAndTimesDayOfWeek2["SATURDAY"] = "SATURDAY";
  StartDaysAndTimesDayOfWeek2["SUNDAY"] = "SUNDAY";
  return StartDaysAndTimesDayOfWeek2;
})(StartDaysAndTimesDayOfWeek || {});
var Recurrence = /* @__PURE__ */ ((Recurrence2) => {
  Recurrence2["WEEKLY"] = "WEEKLY";
  Recurrence2["ONE_TIME"] = "ONE_TIME";
  return Recurrence2;
})(Recurrence || {});
var NodeType = /* @__PURE__ */ ((NodeType2) => {
  NodeType2["PARAGRAPH"] = "PARAGRAPH";
  NodeType2["TEXT"] = "TEXT";
  NodeType2["HEADING"] = "HEADING";
  NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
  NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
  NodeType2["LIST_ITEM"] = "LIST_ITEM";
  NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
  NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
  NodeType2["VIDEO"] = "VIDEO";
  NodeType2["DIVIDER"] = "DIVIDER";
  NodeType2["FILE"] = "FILE";
  NodeType2["GALLERY"] = "GALLERY";
  NodeType2["GIF"] = "GIF";
  NodeType2["HTML"] = "HTML";
  NodeType2["IMAGE"] = "IMAGE";
  NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
  NodeType2["MAP"] = "MAP";
  NodeType2["POLL"] = "POLL";
  NodeType2["APP_EMBED"] = "APP_EMBED";
  NodeType2["BUTTON"] = "BUTTON";
  NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
  NodeType2["TABLE"] = "TABLE";
  NodeType2["EMBED"] = "EMBED";
  NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
  NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
  NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
  NodeType2["TABLE_CELL"] = "TABLE_CELL";
  NodeType2["TABLE_ROW"] = "TABLE_ROW";
  NodeType2["EXTERNAL"] = "EXTERNAL";
  NodeType2["AUDIO"] = "AUDIO";
  NodeType2["CAPTION"] = "CAPTION";
  NodeType2["LAYOUT"] = "LAYOUT";
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
  NodeType2["SHAPE"] = "SHAPE";
  NodeType2["CARD"] = "CARD";
  NodeType2["TOC"] = "TOC";
  NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
  NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
  return NodeType2;
})(NodeType || {});
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
  BackgroundType2["COLOR"] = "COLOR";
  BackgroundType2["GRADIENT"] = "GRADIENT";
  return BackgroundType2;
})(BackgroundType || {});
var GradientType = /* @__PURE__ */ ((GradientType2) => {
  GradientType2["LINEAR"] = "LINEAR";
  GradientType2["RADIAL"] = "RADIAL";
  return GradientType2;
})(GradientType || {});
var WidthType = /* @__PURE__ */ ((WidthType2) => {
  WidthType2["CONTENT"] = "CONTENT";
  WidthType2["SMALL"] = "SMALL";
  WidthType2["ORIGINAL"] = "ORIGINAL";
  WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
  return WidthType2;
})(WidthType || {});
var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
  PluginContainerDataAlignment2["CENTER"] = "CENTER";
  PluginContainerDataAlignment2["LEFT"] = "LEFT";
  PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
  return PluginContainerDataAlignment2;
})(PluginContainerDataAlignment || {});
var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
  ButtonDataType2["LINK"] = "LINK";
  ButtonDataType2["ACTION"] = "ACTION";
  return ButtonDataType2;
})(ButtonDataType || {});
var Target = /* @__PURE__ */ ((Target2) => {
  Target2["SELF"] = "SELF";
  Target2["BLANK"] = "BLANK";
  Target2["PARENT"] = "PARENT";
  Target2["TOP"] = "TOP";
  return Target2;
})(Target || {});
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
  TextAlignment2["AUTO"] = "AUTO";
  TextAlignment2["LEFT"] = "LEFT";
  TextAlignment2["RIGHT"] = "RIGHT";
  TextAlignment2["CENTER"] = "CENTER";
  TextAlignment2["JUSTIFY"] = "JUSTIFY";
  return TextAlignment2;
})(TextAlignment || {});
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
  LineStyle2["SINGLE"] = "SINGLE";
  LineStyle2["DOUBLE"] = "DOUBLE";
  LineStyle2["DASHED"] = "DASHED";
  LineStyle2["DOTTED"] = "DOTTED";
  return LineStyle2;
})(LineStyle || {});
var Width = /* @__PURE__ */ ((Width2) => {
  Width2["LARGE"] = "LARGE";
  Width2["MEDIUM"] = "MEDIUM";
  Width2["SMALL"] = "SMALL";
  return Width2;
})(Width || {});
var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
  DividerDataAlignment2["CENTER"] = "CENTER";
  DividerDataAlignment2["LEFT"] = "LEFT";
  DividerDataAlignment2["RIGHT"] = "RIGHT";
  return DividerDataAlignment2;
})(DividerDataAlignment || {});
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
  ViewMode2["NONE"] = "NONE";
  ViewMode2["FULL"] = "FULL";
  ViewMode2["MINI"] = "MINI";
  return ViewMode2;
})(ViewMode || {});
var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
  LayoutType2["COLLAGE"] = "COLLAGE";
  LayoutType2["MASONRY"] = "MASONRY";
  LayoutType2["GRID"] = "GRID";
  LayoutType2["THUMBNAIL"] = "THUMBNAIL";
  LayoutType2["SLIDER"] = "SLIDER";
  LayoutType2["SLIDESHOW"] = "SLIDESHOW";
  LayoutType2["PANORAMA"] = "PANORAMA";
  LayoutType2["COLUMN"] = "COLUMN";
  LayoutType2["MAGIC"] = "MAGIC";
  LayoutType2["FULLSIZE"] = "FULLSIZE";
  return LayoutType2;
})(LayoutType || {});
var Orientation = /* @__PURE__ */ ((Orientation2) => {
  Orientation2["ROWS"] = "ROWS";
  Orientation2["COLUMNS"] = "COLUMNS";
  return Orientation2;
})(Orientation || {});
var Crop = /* @__PURE__ */ ((Crop2) => {
  Crop2["FILL"] = "FILL";
  Crop2["FIT"] = "FIT";
  return Crop2;
})(Crop || {});
var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
  ThumbnailsAlignment2["TOP"] = "TOP";
  ThumbnailsAlignment2["RIGHT"] = "RIGHT";
  ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
  ThumbnailsAlignment2["LEFT"] = "LEFT";
  ThumbnailsAlignment2["NONE"] = "NONE";
  return ThumbnailsAlignment2;
})(ThumbnailsAlignment || {});
var GIFType = /* @__PURE__ */ ((GIFType2) => {
  GIFType2["NORMAL"] = "NORMAL";
  GIFType2["STICKER"] = "STICKER";
  return GIFType2;
})(GIFType || {});
var Source = /* @__PURE__ */ ((Source2) => {
  Source2["HTML"] = "HTML";
  Source2["ADSENSE"] = "ADSENSE";
  Source2["AI"] = "AI";
  Source2["AI_WIDGET"] = "AI_WIDGET";
  return Source2;
})(Source || {});
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
  StylesPosition2["START"] = "START";
  StylesPosition2["END"] = "END";
  StylesPosition2["TOP"] = "TOP";
  StylesPosition2["HIDDEN"] = "HIDDEN";
  return StylesPosition2;
})(StylesPosition || {});
var MapType = /* @__PURE__ */ ((MapType2) => {
  MapType2["ROADMAP"] = "ROADMAP";
  MapType2["SATELITE"] = "SATELITE";
  MapType2["HYBRID"] = "HYBRID";
  MapType2["TERRAIN"] = "TERRAIN";
  return MapType2;
})(MapType || {});
var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
  ViewRole2["CREATOR"] = "CREATOR";
  ViewRole2["VOTERS"] = "VOTERS";
  ViewRole2["EVERYONE"] = "EVERYONE";
  return ViewRole2;
})(ViewRole || {});
var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
  VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
  VoteRole2["ALL"] = "ALL";
  return VoteRole2;
})(VoteRole || {});
var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
  PollLayoutType2["LIST"] = "LIST";
  PollLayoutType2["GRID"] = "GRID";
  return PollLayoutType2;
})(PollLayoutType || {});
var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
  PollLayoutDirection2["LTR"] = "LTR";
  PollLayoutDirection2["RTL"] = "RTL";
  return PollLayoutDirection2;
})(PollLayoutDirection || {});
var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
  PollDesignBackgroundType2["COLOR"] = "COLOR";
  PollDesignBackgroundType2["IMAGE"] = "IMAGE";
  PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
  return PollDesignBackgroundType2;
})(PollDesignBackgroundType || {});
var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
  DecorationType2["BOLD"] = "BOLD";
  DecorationType2["ITALIC"] = "ITALIC";
  DecorationType2["UNDERLINE"] = "UNDERLINE";
  DecorationType2["SPOILER"] = "SPOILER";
  DecorationType2["ANCHOR"] = "ANCHOR";
  DecorationType2["MENTION"] = "MENTION";
  DecorationType2["LINK"] = "LINK";
  DecorationType2["COLOR"] = "COLOR";
  DecorationType2["FONT_SIZE"] = "FONT_SIZE";
  DecorationType2["EXTERNAL"] = "EXTERNAL";
  DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
  DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
  DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
  DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
  return DecorationType2;
})(DecorationType || {});
var FontType = /* @__PURE__ */ ((FontType2) => {
  FontType2["PX"] = "PX";
  FontType2["EM"] = "EM";
  return FontType2;
})(FontType || {});
var Position = /* @__PURE__ */ ((Position2) => {
  Position2["START"] = "START";
  Position2["END"] = "END";
  Position2["TOP"] = "TOP";
  return Position2;
})(Position || {});
var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
  AspectRatio2["SQUARE"] = "SQUARE";
  AspectRatio2["RECTANGLE"] = "RECTANGLE";
  return AspectRatio2;
})(AspectRatio || {});
var Resizing = /* @__PURE__ */ ((Resizing2) => {
  Resizing2["FILL"] = "FILL";
  Resizing2["FIT"] = "FIT";
  return Resizing2;
})(Resizing || {});
var Placement = /* @__PURE__ */ ((Placement2) => {
  Placement2["IMAGE"] = "IMAGE";
  Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
  return Placement2;
})(Placement || {});
var Type = /* @__PURE__ */ ((Type2) => {
  Type2["CONTAINED"] = "CONTAINED";
  Type2["FRAMELESS"] = "FRAMELESS";
  return Type2;
})(Type || {});
var Alignment = /* @__PURE__ */ ((Alignment2) => {
  Alignment2["START"] = "START";
  Alignment2["CENTER"] = "CENTER";
  Alignment2["END"] = "END";
  return Alignment2;
})(Alignment || {});
var Layout = /* @__PURE__ */ ((Layout2) => {
  Layout2["STACKED"] = "STACKED";
  Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
  return Layout2;
})(Layout || {});
var AppType = /* @__PURE__ */ ((AppType2) => {
  AppType2["PRODUCT"] = "PRODUCT";
  AppType2["EVENT"] = "EVENT";
  AppType2["BOOKING"] = "BOOKING";
  return AppType2;
})(AppType || {});
var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
  InitialExpandedItems2["FIRST"] = "FIRST";
  InitialExpandedItems2["ALL"] = "ALL";
  InitialExpandedItems2["NONE"] = "NONE";
  return InitialExpandedItems2;
})(InitialExpandedItems || {});
var Direction = /* @__PURE__ */ ((Direction2) => {
  Direction2["LTR"] = "LTR";
  Direction2["RTL"] = "RTL";
  return Direction2;
})(Direction || {});
var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
  VerticalAlignment2["TOP"] = "TOP";
  VerticalAlignment2["MIDDLE"] = "MIDDLE";
  VerticalAlignment2["BOTTOM"] = "BOTTOM";
  return VerticalAlignment2;
})(VerticalAlignment || {});
var NullValue = /* @__PURE__ */ ((NullValue2) => {
  NullValue2["NULL_VALUE"] = "NULL_VALUE";
  return NullValue2;
})(NullValue || {});
var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
  ImageScalingScaling2["AUTO"] = "AUTO";
  ImageScalingScaling2["CONTAIN"] = "CONTAIN";
  ImageScalingScaling2["COVER"] = "COVER";
  return ImageScalingScaling2;
})(ImageScalingScaling || {});
var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
  ImagePosition2["CENTER"] = "CENTER";
  ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
  ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
  ImagePosition2["TOP"] = "TOP";
  ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
  ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
  ImagePosition2["BOTTOM"] = "BOTTOM";
  ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
  ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
  return ImagePosition2;
})(ImagePosition || {});
var Origin = /* @__PURE__ */ ((Origin2) => {
  Origin2["IMAGE"] = "IMAGE";
  Origin2["LAYOUT"] = "LAYOUT";
  return Origin2;
})(Origin || {});
var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
  LayoutDataBackgroundType2["COLOR"] = "COLOR";
  LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
  return LayoutDataBackgroundType2;
})(LayoutDataBackgroundType || {});
var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
  BackdropType2["COLOR"] = "COLOR";
  BackdropType2["GRADIENT"] = "GRADIENT";
  return BackdropType2;
})(BackdropType || {});
var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
  VerticalAlignmentAlignment2["TOP"] = "TOP";
  VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
  VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
  return VerticalAlignmentAlignment2;
})(VerticalAlignmentAlignment || {});
var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
  ResponsivenessBehaviour2["STACK"] = "STACK";
  ResponsivenessBehaviour2["WRAP"] = "WRAP";
  return ResponsivenessBehaviour2;
})(ResponsivenessBehaviour || {});
var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
  DesignTarget2["LAYOUT"] = "LAYOUT";
  DesignTarget2["CELL"] = "CELL";
  return DesignTarget2;
})(DesignTarget || {});
var Scaling = /* @__PURE__ */ ((Scaling2) => {
  Scaling2["AUTO"] = "AUTO";
  Scaling2["CONTAIN"] = "CONTAIN";
  Scaling2["COVER"] = "COVER";
  return Scaling2;
})(Scaling || {});
var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
  ImagePositionPosition2["CENTER"] = "CENTER";
  ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
  ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
  ImagePositionPosition2["TOP"] = "TOP";
  ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
  ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
  ImagePositionPosition2["BOTTOM"] = "BOTTOM";
  ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
  ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
  return ImagePositionPosition2;
})(ImagePositionPosition || {});
var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
  CardDataBackgroundType2["COLOR"] = "COLOR";
  CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
  return CardDataBackgroundType2;
})(CardDataBackgroundType || {});
var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
  ListStyle2["PLAIN"] = "PLAIN";
  ListStyle2["NUMBERED"] = "NUMBERED";
  ListStyle2["LETTERS"] = "LETTERS";
  ListStyle2["ROMAN"] = "ROMAN";
  ListStyle2["BULLETED"] = "BULLETED";
  ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
  ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
  return ListStyle2;
})(ListStyle || {});
var Indentation = /* @__PURE__ */ ((Indentation2) => {
  Indentation2["NESTED"] = "NESTED";
  Indentation2["FLAT"] = "FLAT";
  return Indentation2;
})(Indentation || {});
var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
  SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
  SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
  SmartBlockDataType2["STATS"] = "STATS";
  SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
  SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
  SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
  SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
  SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
  SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
  SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
  SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
  SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
  SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
  SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
  return SmartBlockDataType2;
})(SmartBlockDataType || {});
var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
  ColumnSize2["SMALL"] = "SMALL";
  ColumnSize2["MEDIUM"] = "MEDIUM";
  ColumnSize2["LARGE"] = "LARGE";
  ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
  return ColumnSize2;
})(ColumnSize || {});
var PaymentPolicyType = /* @__PURE__ */ ((PaymentPolicyType2) => {
  PaymentPolicyType2["PER_GUEST"] = "PER_GUEST";
  PaymentPolicyType2["FREE"] = "FREE";
  return PaymentPolicyType2;
})(PaymentPolicyType || {});
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
  SortOrder2["ASC"] = "ASC";
  SortOrder2["DESC"] = "DESC";
  return SortOrder2;
})(SortOrder || {});
var SortType = /* @__PURE__ */ ((SortType2) => {
  SortType2["COUNT"] = "COUNT";
  SortType2["VALUE"] = "VALUE";
  return SortType2;
})(SortType || {});
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
  SortDirection2["DESC"] = "DESC";
  SortDirection2["ASC"] = "ASC";
  return SortDirection2;
})(SortDirection || {});
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
  MissingValues2["EXCLUDE"] = "EXCLUDE";
  MissingValues2["INCLUDE"] = "INCLUDE";
  return MissingValues2;
})(MissingValues || {});
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
  ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
  ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
  ScalarType2["MIN"] = "MIN";
  ScalarType2["MAX"] = "MAX";
  return ScalarType2;
})(ScalarType || {});
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
  NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
  NestedAggregationType2["VALUE"] = "VALUE";
  NestedAggregationType2["RANGE"] = "RANGE";
  NestedAggregationType2["SCALAR"] = "SCALAR";
  NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
  return NestedAggregationType2;
})(NestedAggregationType || {});
var Interval = /* @__PURE__ */ ((Interval2) => {
  Interval2["YEAR"] = "YEAR";
  Interval2["MONTH"] = "MONTH";
  Interval2["WEEK"] = "WEEK";
  Interval2["DAY"] = "DAY";
  Interval2["HOUR"] = "HOUR";
  Interval2["MINUTE"] = "MINUTE";
  Interval2["SECOND"] = "SECOND";
  return Interval2;
})(Interval || {});
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
  AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
  AggregationType2["VALUE"] = "VALUE";
  AggregationType2["RANGE"] = "RANGE";
  AggregationType2["SCALAR"] = "SCALAR";
  AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
  AggregationType2["NESTED"] = "NESTED";
  return AggregationType2;
})(AggregationType || {});
var SearchDetailsMode = /* @__PURE__ */ ((SearchDetailsMode2) => {
  SearchDetailsMode2["OR"] = "OR";
  SearchDetailsMode2["AND"] = "AND";
  return SearchDetailsMode2;
})(SearchDetailsMode || {});
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
  PlacementType2["BEFORE"] = "BEFORE";
  PlacementType2["AFTER"] = "AFTER";
  PlacementType2["REPLACE"] = "REPLACE";
  return PlacementType2;
})(PlacementType || {});
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
  DayOfWeek2["MONDAY"] = "MONDAY";
  DayOfWeek2["TUESDAY"] = "TUESDAY";
  DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
  DayOfWeek2["THURSDAY"] = "THURSDAY";
  DayOfWeek2["FRIDAY"] = "FRIDAY";
  DayOfWeek2["SATURDAY"] = "SATURDAY";
  DayOfWeek2["SUNDAY"] = "SUNDAY";
  return DayOfWeek2;
})(DayOfWeek || {});
var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
  ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
  ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
  ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
  return ResolutionMethod2;
})(ResolutionMethod || {});
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
  WebhookIdentityType2["MEMBER"] = "MEMBER";
  WebhookIdentityType2["WIX_USER"] = "WIX_USER";
  WebhookIdentityType2["APP"] = "APP";
  return WebhookIdentityType2;
})(WebhookIdentityType || {});
async function createExperience2(experience) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = transformPaths2(
    renameKeysFromSDKRequestToRESTRequest({ experience }, [
      "experience.configuration.displayInfo.richContent"
    ]),
    [
      {
        transformFn: transformSDKPageURLV2ToRESTPageURLV2,
        paths: [
          { path: "experience.experiencePageUrl" },
          {
            path: "experience.configuration.reservationForm.privacyPolicy.url"
          },
          {
            path: "experience.configuration.reservationForm.termsAndConditions.url"
          }
        ]
      },
      {
        transformFn: transformSDKImageToRESTImage,
        paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
      }
    ]
  );
  const reqOpts = createExperience(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experience.experiencePageUrl" },
            {
              path: "experience.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experience.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experience.configuration.displayInfo.richContent"]
    )?.experience;
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { experience: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["experience"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function getExperience2(experienceId) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest(
    { experienceId },
    []
  );
  const reqOpts = getExperience(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experience.experiencePageUrl" },
            {
              path: "experience.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experience.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experience.configuration.displayInfo.richContent"]
    )?.experience;
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { experienceId: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["experienceId"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function getExperienceBySlug2(slug) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest({ slug }, []);
  const reqOpts = getExperienceBySlug(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experience.experiencePageUrl" },
            {
              path: "experience.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experience.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experience.configuration.displayInfo.richContent"]
    );
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { slug: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["slug"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function updateExperience2(_id, experience) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = transformPaths2(
    renameKeysFromSDKRequestToRESTRequest(
      { experience: { ...experience, id: _id } },
      ["experience.configuration.displayInfo.richContent"]
    ),
    [
      {
        transformFn: transformSDKPageURLV2ToRESTPageURLV2,
        paths: [
          { path: "experience.experiencePageUrl" },
          {
            path: "experience.configuration.reservationForm.privacyPolicy.url"
          },
          {
            path: "experience.configuration.reservationForm.termsAndConditions.url"
          }
        ]
      },
      {
        transformFn: transformSDKImageToRESTImage,
        paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
      }
    ]
  );
  const reqOpts = updateExperience(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experience.experiencePageUrl" },
            {
              path: "experience.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experience.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experience.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experience.configuration.displayInfo.richContent"]
    )?.experience;
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: { experience: "$[1]" },
        explicitPathsToArguments: { "experience.id": "$[0]" },
        singleArgumentUnchanged: false
      },
      ["_id", "experience"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
function queryExperiences2() {
  const { httpClient, sideEffects } = arguments[0];
  return queryBuilder({
    func: async (payload) => {
      const reqOpts = queryExperiences(payload);
      sideEffects?.onSiteCall?.();
      try {
        const result = await httpClient.request(reqOpts);
        sideEffects?.onSuccess?.(result);
        return result;
      } catch (err) {
        sideEffects?.onError?.(err);
        throw err;
      }
    },
    requestTransformer: (query) => {
      const args = [query, {}];
      return renameKeysFromSDKRequestToRESTRequest(
        { ...args?.[1], query: args?.[0] },
        []
      );
    },
    responseTransformer: ({ data }) => {
      const transformedData = renameKeysFromRESTResponseToSDKResponse(
        transformPaths2(data, [
          {
            transformFn: transformRESTPageURLV2ToSDKPageURLV2,
            paths: [
              { path: "experiences.experiencePageUrl" },
              {
                path: "experiences.configuration.reservationForm.privacyPolicy.url"
              },
              {
                path: "experiences.configuration.reservationForm.termsAndConditions.url"
              }
            ]
          },
          {
            transformFn: transformRESTImageToSDKImage,
            paths: [
              { path: "experiences.configuration.displayInfo.coverImage" }
            ]
          }
        ]),
        ["experiences.configuration.displayInfo.richContent"]
      );
      return {
        items: transformedData?.experiences,
        pagingMetadata: transformedData?.pagingMetadata
      };
    },
    errorTransformer: (err) => {
      const transformedError = sdkTransformError(err, {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { query: "$[0]" },
        singleArgumentUnchanged: false
      });
      throw transformedError;
    },
    pagingMethod: "CURSOR",
    transformationPaths: {}
  });
}
async function typedQueryExperiences(query) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest({ query }, []);
  const reqOpts = queryExperiences(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experiences.experiencePageUrl" },
            {
              path: "experiences.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experiences.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experiences.configuration.displayInfo.richContent"]
    );
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { query: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["query"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
var utils = {
  query: {
    ...createQueryUtils()
  },
  search: {
    ...createSearchUtils()
  }
};
async function searchExperiences2(search) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest({ search }, []);
  const reqOpts = searchExperiences(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(
      transformPaths2(result.data, [
        {
          transformFn: transformRESTPageURLV2ToSDKPageURLV2,
          paths: [
            { path: "experiences.experiencePageUrl" },
            {
              path: "experiences.configuration.reservationForm.privacyPolicy.url"
            },
            {
              path: "experiences.configuration.reservationForm.termsAndConditions.url"
            }
          ]
        },
        {
          transformFn: transformRESTImageToSDKImage,
          paths: [{ path: "experiences.configuration.displayInfo.coverImage" }]
        }
      ]),
      ["experiences.configuration.displayInfo.richContent"]
    );
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { search: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["search"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkUpdateExperienceTags2(experienceIds, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = renameKeysFromSDKRequestToRESTRequest(
    {
      experienceIds,
      assignTags: options?.assignTags,
      unassignTags: options?.unassignTags
    },
    []
  );
  const reqOpts = bulkUpdateExperienceTags(
    payload
  );
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(result.data, []);
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          experienceIds: "$[0]",
          assignTags: "$[1].assignTags",
          unassignTags: "$[1].unassignTags"
        },
        singleArgumentUnchanged: false
      },
      ["experienceIds", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkUpdateExperienceTagsByFilter2(filter, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = renameKeysFromSDKRequestToRESTRequest(
    {
      filter,
      assignTags: options?.assignTags,
      unassignTags: options?.unassignTags
    },
    []
  );
  const reqOpts = bulkUpdateExperienceTagsByFilter(
    payload
  );
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(result.data, []);
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          filter: "$[0]",
          assignTags: "$[1].assignTags",
          unassignTags: "$[1].unassignTags"
        },
        singleArgumentUnchanged: false
      },
      ["filter", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkArchiveExperiences2(experienceIds) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest(
    { experienceIds },
    []
  );
  const reqOpts = bulkArchiveExperiences(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(result.data, []);
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { experienceIds: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["experienceIds"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkUnarchiveExperiences2(experienceIds) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = renameKeysFromSDKRequestToRESTRequest(
    { experienceIds },
    []
  );
  const reqOpts = bulkUnarchiveExperiences(
    payload
  );
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return renameKeysFromRESTResponseToSDKResponse(result.data, []);
  } catch (err) {
    const transformedError = sdkTransformError(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { experienceIds: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["experienceIds"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
export {
  AggregationType,
  Alignment,
  AppType,
  AspectRatio,
  BackdropType,
  BackgroundType,
  ButtonDataType,
  CardDataBackgroundType,
  ColumnSize,
  Crop,
  DayOfWeek,
  DecorationType,
  DesignTarget,
  Direction,
  DividerDataAlignment,
  FontType,
  GIFType,
  GradientType,
  ImagePosition,
  ImagePositionPosition,
  ImageScalingScaling,
  Indentation,
  InitialExpandedItems,
  Interval,
  Layout,
  LayoutDataBackgroundType,
  LayoutType,
  LineStyle,
  ListStyle,
  MapType,
  MissingValues,
  Mode,
  NestedAggregationType,
  NodeType,
  NullValue,
  Orientation,
  Origin,
  PaymentPolicyType,
  Placement,
  PlacementType,
  PluginContainerDataAlignment,
  PollDesignBackgroundType,
  PollLayoutDirection,
  PollLayoutType,
  Position,
  Recurrence,
  Resizing,
  ResolutionMethod,
  ResponsivenessBehaviour,
  ScalarType,
  Scaling,
  SearchDetailsMode,
  SmartBlockDataType,
  SortDirection,
  SortOrder,
  SortType,
  Source,
  StartDaysAndTimesDayOfWeek,
  StylesPosition,
  TableAssignmentType,
  TableAvailabilityType,
  TableManagementMode,
  Target,
  TextAlignment,
  ThumbnailsAlignment,
  Type,
  Unit,
  VerticalAlignment,
  VerticalAlignmentAlignment,
  ViewMode,
  ViewRole,
  VoteRole,
  WebhookIdentityType,
  Width,
  WidthType,
  bulkArchiveExperiences2 as bulkArchiveExperiences,
  bulkUnarchiveExperiences2 as bulkUnarchiveExperiences,
  bulkUpdateExperienceTags2 as bulkUpdateExperienceTags,
  bulkUpdateExperienceTagsByFilter2 as bulkUpdateExperienceTagsByFilter,
  createExperience2 as createExperience,
  getExperience2 as getExperience,
  getExperienceBySlug2 as getExperienceBySlug,
  queryExperiences2 as queryExperiences,
  searchExperiences2 as searchExperiences,
  typedQueryExperiences,
  updateExperience2 as updateExperience,
  utils
};
//# sourceMappingURL=index.typings.mjs.map