"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// index.typings.ts
var index_typings_exports = {};
__export(index_typings_exports, {
  AggregationType: () => AggregationType,
  Alignment: () => Alignment,
  AppType: () => AppType,
  AspectRatio: () => AspectRatio,
  BackdropType: () => BackdropType,
  BackgroundType: () => BackgroundType,
  BannerPosition: () => BannerPosition,
  ButtonDataType: () => ButtonDataType,
  CardDataBackgroundType: () => CardDataBackgroundType,
  CardStylesType: () => CardStylesType,
  CheckoutType: () => CheckoutType,
  ColumnSize: () => ColumnSize,
  ConferenceType: () => ConferenceType,
  Crop: () => Crop,
  DecorationType: () => DecorationType,
  DesignTarget: () => DesignTarget,
  Direction: () => Direction,
  DividerDataAlignment: () => DividerDataAlignment,
  EventStatus: () => EventStatus,
  EventType: () => EventType,
  FontType: () => FontType,
  GIFType: () => GIFType,
  GradientType: () => GradientType,
  ImagePosition: () => ImagePosition,
  ImagePositionPosition: () => ImagePositionPosition,
  ImageScalingScaling: () => ImageScalingScaling,
  Indentation: () => Indentation,
  InitialExpandedItems: () => InitialExpandedItems,
  InputControlType: () => InputControlType,
  Interval: () => Interval,
  Layout: () => Layout,
  LayoutDataBackgroundType: () => LayoutDataBackgroundType,
  LayoutType: () => LayoutType,
  LineStyle: () => LineStyle,
  ListStyle: () => ListStyle,
  LocationType: () => LocationType,
  MapType: () => MapType,
  MissingValues: () => MissingValues,
  Mode: () => Mode,
  NestedAggregationType: () => NestedAggregationType,
  NodeType: () => NodeType,
  NullValue: () => NullValue,
  Orientation: () => Orientation,
  Origin: () => Origin,
  Placement: () => Placement,
  PluginContainerDataAlignment: () => PluginContainerDataAlignment,
  PollDesignBackgroundType: () => PollDesignBackgroundType,
  PollLayoutDirection: () => PollLayoutDirection,
  PollLayoutType: () => PollLayoutType,
  Position: () => Position,
  RegistrationStatus: () => RegistrationStatus,
  RequestedFields: () => RequestedFields,
  Resizing: () => Resizing,
  ResponsivenessBehaviour: () => ResponsivenessBehaviour,
  RsvpStatus: () => RsvpStatus,
  RsvpStatusOptions: () => RsvpStatusOptions,
  ScalarType: () => ScalarType,
  Scaling: () => Scaling,
  SmartBlockDataType: () => SmartBlockDataType,
  SortDirection: () => SortDirection,
  SortOrder: () => SortOrder,
  SortType: () => SortType,
  Source: () => Source,
  State: () => State,
  Status: () => Status,
  StylesPosition: () => StylesPosition,
  SubdivisionType: () => SubdivisionType,
  Target: () => Target,
  TaxType: () => TaxType,
  TextAlignment: () => TextAlignment,
  ThumbnailsAlignment: () => ThumbnailsAlignment,
  Type: () => Type,
  ValueType: () => ValueType,
  VerticalAlignment: () => VerticalAlignment,
  VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
  ViewMode: () => ViewMode,
  ViewRole: () => ViewRole,
  VisitorType: () => VisitorType,
  VoteRole: () => VoteRole,
  WebhookIdentityType: () => WebhookIdentityType,
  Width: () => Width,
  WidthType: () => WidthType,
  bulkDeleteRsvpsByFilter: () => bulkDeleteRsvpsByFilter2,
  bulkUpdateRsvps: () => bulkUpdateRsvps2,
  cancelRsvpGuestsCheckIn: () => cancelRsvpGuestsCheckIn2,
  checkInRsvpGuests: () => checkInRsvpGuests2,
  countRsvps: () => countRsvps2,
  createRsvp: () => createRsvp2,
  deleteRsvp: () => deleteRsvp2,
  getRsvp: () => getRsvp2,
  listCurrentRsvps: () => listCurrentRsvps2,
  listRsvpSummary: () => listRsvpSummary2,
  queryRsvps: () => queryRsvps2,
  searchRsvps: () => searchRsvps2,
  typedQueryRsvps: () => typedQueryRsvps,
  updateRsvp: () => updateRsvp2,
  utils: () => utils
});
module.exports = __toCommonJS(index_typings_exports);

// src/events-v2-rsvp-rsvp-v-2.universal.ts
var import_transform_error = require("@wix/sdk-runtime/transform-error");
var import_query_builder = require("@wix/sdk-runtime/query-builder");
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");

// src/events-v2-rsvp-rsvp-v-2.http.ts
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
var import_float = require("@wix/sdk-runtime/transformations/float");
var import_float2 = require("@wix/sdk-runtime/transformations/float");
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
function resolveWixEventsRsvpsV2RsvpManagementUrl(opts) {
  const domainToMappings = {
    "manage._base_domain_": [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ],
    "www.wixapis.com": [
      {
        srcPath: "/events/v2/rsvps",
        destPath: "/v2/rsvps"
      },
      {
        srcPath: "/events/v2/bulk/rsvps",
        destPath: "/v2/bulk/rsvps"
      }
    ],
    _: [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ],
    "*.dev.wix-code.com": [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ],
    "editor._base_domain_": [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ],
    "blocks._base_domain_": [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ],
    "create.editorx": [
      {
        srcPath: "/_api/events-rsvps",
        destPath: ""
      }
    ]
  };
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
}
var PACKAGE_NAME = "@wix/auto_sdk_events_rsvp-v-2";
function searchRsvps(payload) {
  function __searchRsvps({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_float.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.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.SearchRsvps",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/search",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvps.createdDate" },
            { path: "rsvps.updatedDate" },
            { path: "rsvps.form.inputValues.dateTime" },
            { path: "rsvps.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvps.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvps.form.inputValues.number" },
            {
              path: "rsvps.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvps.form.inputValues.address.address.geocode.longitude"
            },
            { 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"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __searchRsvps;
}
function queryRsvps(payload) {
  function __queryRsvps({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.QueryRsvps",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/query",
        data: payload,
        host
      }),
      data: payload,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvps.createdDate" },
            { path: "rsvps.updatedDate" },
            { path: "rsvps.form.inputValues.dateTime" },
            { path: "rsvps.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvps.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvps.form.inputValues.number" },
            {
              path: "rsvps.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvps.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __queryRsvps;
}
function countRsvps(payload) {
  function __countRsvps({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.CountRsvps",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/count",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __countRsvps;
}
function getRsvp(payload) {
  function __getRsvp({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "GET",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.GetRsvp",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/{rsvpId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvp.createdDate" },
            { path: "rsvp.updatedDate" },
            { path: "rsvp.form.inputValues.dateTime" },
            { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvp.form.inputValues.number" },
            {
              path: "rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __getRsvp;
}
function createRsvp(payload) {
  function __createRsvp({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "rsvp.createdDate" },
          { path: "rsvp.updatedDate" },
          { path: "rsvp.form.inputValues.dateTime" },
          { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
          { path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "rsvp.form.inputValues.number" },
          { path: "rsvp.form.inputValues.address.address.geocode.latitude" },
          { path: "rsvp.form.inputValues.address.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.CreateRsvp",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvp.createdDate" },
            { path: "rsvp.updatedDate" },
            { path: "rsvp.form.inputValues.dateTime" },
            { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvp.form.inputValues.number" },
            {
              path: "rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __createRsvp;
}
function updateRsvp(payload) {
  function __updateRsvp({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "rsvp.createdDate" },
          { path: "rsvp.updatedDate" },
          { path: "rsvp.form.inputValues.dateTime" },
          { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
          { path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate" }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "rsvp.form.inputValues.number" },
          { path: "rsvp.form.inputValues.address.address.geocode.latitude" },
          { path: "rsvp.form.inputValues.address.address.geocode.longitude" }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "PATCH",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.UpdateRsvp",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/{rsvp.id}",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvp.createdDate" },
            { path: "rsvp.updatedDate" },
            { path: "rsvp.form.inputValues.dateTime" },
            { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvp.form.inputValues.number" },
            {
              path: "rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __updateRsvp;
}
function deleteRsvp(payload) {
  function __deleteRsvp({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "DELETE",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.DeleteRsvp",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/{rsvpId}",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload)
    };
    return metadata;
  }
  return __deleteRsvp;
}
function bulkUpdateRsvps(payload) {
  function __bulkUpdateRsvps({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
        paths: [{ path: "rsvps.fieldMask" }]
      },
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [
          { path: "rsvps.rsvp.createdDate" },
          { path: "rsvps.rsvp.updatedDate" },
          { path: "rsvps.rsvp.form.inputValues.dateTime" },
          { path: "rsvps.rsvp.guestList.guests.checkInDetails.checkInDate" },
          {
            path: "rsvps.rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
          }
        ]
      },
      {
        transformFn: import_float.transformSDKFloatToRESTFloat,
        paths: [
          { path: "rsvps.rsvp.form.inputValues.number" },
          {
            path: "rsvps.rsvp.form.inputValues.address.address.geocode.latitude"
          },
          {
            path: "rsvps.rsvp.form.inputValues.address.address.geocode.longitude"
          }
        ]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "PATCH",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.BulkUpdateRsvps",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/bulk/rsvps/update",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "results.rsvp.createdDate" },
            { path: "results.rsvp.updatedDate" },
            { path: "results.rsvp.form.inputValues.dateTime" },
            {
              path: "results.rsvp.guestList.guests.checkInDetails.checkInDate"
            },
            {
              path: "results.rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "results.rsvp.form.inputValues.number" },
            {
              path: "results.rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "results.rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __bulkUpdateRsvps;
}
function bulkDeleteRsvpsByFilter(payload) {
  function __bulkDeleteRsvpsByFilter({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.BulkDeleteRsvpsByFilter",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/bulk/rsvps/delete-by-filter",
        data: payload,
        host
      }),
      data: payload
    };
    return metadata;
  }
  return __bulkDeleteRsvpsByFilter;
}
function checkInRsvpGuests(payload) {
  function __checkInRsvpGuests({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [{ path: "checkInDate" }]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.CheckInRsvpGuests",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/{rsvpId}/check-in",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvp.createdDate" },
            { path: "rsvp.updatedDate" },
            { path: "rsvp.form.inputValues.dateTime" },
            { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvp.form.inputValues.number" },
            {
              path: "rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __checkInRsvpGuests;
}
function cancelRsvpGuestsCheckIn(payload) {
  function __cancelRsvpGuestsCheckIn({ host }) {
    const serializedData = (0, import_transform_paths.transformPaths)(payload, [
      {
        transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
        paths: [{ path: "checkInCanceledDate" }]
      }
    ]);
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "POST",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.CancelRsvpGuestsCheckIn",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/{rsvpId}/cancel-check-in",
        data: serializedData,
        host
      }),
      data: serializedData,
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvp.createdDate" },
            { path: "rsvp.updatedDate" },
            { path: "rsvp.form.inputValues.dateTime" },
            { path: "rsvp.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvp.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvp.form.inputValues.number" },
            {
              path: "rsvp.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvp.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __cancelRsvpGuestsCheckIn;
}
function listRsvpSummary(payload) {
  function __listRsvpSummary({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "GET",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.ListRsvpSummary",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/summaries",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload)
    };
    return metadata;
  }
  return __listRsvpSummary;
}
function listCurrentRsvps(payload) {
  function __listCurrentRsvps({ host }) {
    const metadata = {
      entityFqdn: "wix.events.v2.rsvp",
      method: "GET",
      methodFqn: "wix.events.rsvps.v2.RsvpManagement.ListCurrentRsvps",
      packageName: PACKAGE_NAME,
      migrationOptions: {
        optInTransformResponse: true
      },
      url: resolveWixEventsRsvpsV2RsvpManagementUrl({
        protoPath: "/v2/rsvps/current",
        data: payload,
        host
      }),
      params: (0, import_rest_modules.toURLSearchParams)(payload),
      transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
        {
          transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
          paths: [
            { path: "rsvps.createdDate" },
            { path: "rsvps.updatedDate" },
            { path: "rsvps.form.inputValues.dateTime" },
            { path: "rsvps.guestList.guests.checkInDetails.checkInDate" },
            {
              path: "rsvps.guestList.guests.checkInDetails.checkInCanceledDate"
            }
          ]
        },
        {
          transformFn: import_float2.transformRESTFloatToSDKFloat,
          paths: [
            { path: "rsvps.form.inputValues.number" },
            {
              path: "rsvps.form.inputValues.address.address.geocode.latitude"
            },
            {
              path: "rsvps.form.inputValues.address.address.geocode.longitude"
            }
          ]
        }
      ])
    };
    return metadata;
  }
  return __listCurrentRsvps;
}

// src/events-v2-rsvp-rsvp-v-2.universal.ts
var import_address = require("@wix/sdk-runtime/transformations/address");
var import_address2 = require("@wix/sdk-runtime/transformations/address");
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
  SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
  SubdivisionType2["COUNTRY"] = "COUNTRY";
  return SubdivisionType2;
})(SubdivisionType || {});
var RsvpStatus = /* @__PURE__ */ ((RsvpStatus2) => {
  RsvpStatus2["YES"] = "YES";
  RsvpStatus2["NO"] = "NO";
  RsvpStatus2["WAITLIST"] = "WAITLIST";
  return RsvpStatus2;
})(RsvpStatus || {});
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["COUNT_DISTINCT"] = "COUNT_DISTINCT";
  ScalarType2["MIN"] = "MIN";
  ScalarType2["MAX"] = "MAX";
  return ScalarType2;
})(ScalarType || {});
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
  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["VALUE"] = "VALUE";
  AggregationType2["RANGE"] = "RANGE";
  AggregationType2["SCALAR"] = "SCALAR";
  AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
  AggregationType2["NESTED"] = "NESTED";
  return AggregationType2;
})(AggregationType || {});
var Mode = /* @__PURE__ */ ((Mode2) => {
  Mode2["OR"] = "OR";
  Mode2["AND"] = "AND";
  return Mode2;
})(Mode || {});
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
  RequestedFields2["DETAILS"] = "DETAILS";
  RequestedFields2["FORM"] = "FORM";
  RequestedFields2["CONTACT_DETAILS"] = "CONTACT_DETAILS";
  return RequestedFields2;
})(RequestedFields || {});
var LocationType = /* @__PURE__ */ ((LocationType2) => {
  LocationType2["VENUE"] = "VENUE";
  LocationType2["ONLINE"] = "ONLINE";
  return LocationType2;
})(LocationType || {});
var Status = /* @__PURE__ */ ((Status2) => {
  Status2["ONE_TIME"] = "ONE_TIME";
  Status2["RECURRING"] = "RECURRING";
  Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
  Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
  Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
  return Status2;
})(Status || {});
var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
  EventStatus2["SCHEDULED"] = "SCHEDULED";
  EventStatus2["STARTED"] = "STARTED";
  EventStatus2["ENDED"] = "ENDED";
  EventStatus2["CANCELED"] = "CANCELED";
  EventStatus2["DRAFT"] = "DRAFT";
  return EventStatus2;
})(EventStatus || {});
var EventType = /* @__PURE__ */ ((EventType2) => {
  EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
  EventType2["RSVP"] = "RSVP";
  EventType2["TICKETS"] = "TICKETS";
  EventType2["EXTERNAL"] = "EXTERNAL";
  EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
  return EventType2;
})(EventType || {});
var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
  RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
  RegistrationStatus2["CLOSED"] = "CLOSED";
  RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
  RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
  RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
  RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
  RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
  RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
  return RegistrationStatus2;
})(RegistrationStatus || {});
var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
  RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
  RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
  return RsvpStatusOptions2;
})(RsvpStatusOptions || {});
var TaxType = /* @__PURE__ */ ((TaxType2) => {
  TaxType2["INCLUDED"] = "INCLUDED";
  TaxType2["ADDED"] = "ADDED";
  TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
  return TaxType2;
})(TaxType || {});
var CheckoutType = /* @__PURE__ */ ((CheckoutType2) => {
  CheckoutType2["EVENTS_APP"] = "EVENTS_APP";
  CheckoutType2["ECOMM_PLATFORM"] = "ECOMM_PLATFORM";
  return CheckoutType2;
})(CheckoutType || {});
var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
  VisitorType2["VISITOR"] = "VISITOR";
  VisitorType2["MEMBER"] = "MEMBER";
  VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
  return VisitorType2;
})(VisitorType || {});
var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
  InputControlType2["INPUT"] = "INPUT";
  InputControlType2["TEXTAREA"] = "TEXTAREA";
  InputControlType2["DROPDOWN"] = "DROPDOWN";
  InputControlType2["RADIO"] = "RADIO";
  InputControlType2["CHECKBOX"] = "CHECKBOX";
  InputControlType2["NAME"] = "NAME";
  InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
  InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
  InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
  InputControlType2["DATE"] = "DATE";
  return InputControlType2;
})(InputControlType || {});
var ValueType = /* @__PURE__ */ ((ValueType2) => {
  ValueType2["TEXT"] = "TEXT";
  ValueType2["NUMBER"] = "NUMBER";
  ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
  ValueType2["DATE_TIME"] = "DATE_TIME";
  ValueType2["ADDRESS"] = "ADDRESS";
  return ValueType2;
})(ValueType || {});
var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
  ConferenceType2["MEETING"] = "MEETING";
  ConferenceType2["WEBINAR"] = "WEBINAR";
  return ConferenceType2;
})(ConferenceType || {});
var State = /* @__PURE__ */ ((State2) => {
  State2["MANUAL"] = "MANUAL";
  State2["AUTO"] = "AUTO";
  State2["RECURRING_EVENT"] = "RECURRING_EVENT";
  State2["HIDDEN"] = "HIDDEN";
  return State2;
})(State || {});
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 CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
  CardStylesType2["CONTAINED"] = "CONTAINED";
  CardStylesType2["FRAMELESS"] = "FRAMELESS";
  return CardStylesType2;
})(CardStylesType || {});
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 BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
  BannerPosition2["TOP"] = "TOP";
  BannerPosition2["BOTTOM"] = "BOTTOM";
  return BannerPosition2;
})(BannerPosition || {});
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 Type = /* @__PURE__ */ ((Type2) => {
  Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
  Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
  Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
  return Type2;
})(Type || {});
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 searchRsvps2(search, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    search,
    fields: options?.fields
  });
  const reqOpts = searchRsvps(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvps.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { search: "$[0]", fields: "$[1].fields" },
        singleArgumentUnchanged: false
      },
      ["search", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
var utils = {
  search: {
    ...(0, import_search_builder_utils.createSearchUtils)()
  },
  query: {
    ...(0, import_query_builder_utils.createQueryUtils)()
  }
};
function queryRsvps2(options) {
  const { httpClient, sideEffects } = arguments[1];
  return (0, import_query_builder.queryBuilder)({
    func: async (payload) => {
      const reqOpts = queryRsvps({
        ...payload,
        ...options ?? {}
      });
      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, options];
      return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
        ...args?.[1],
        query: args?.[0]
      });
    },
    responseTransformer: ({ data }) => {
      const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
        (0, import_transform_paths2.transformPaths)(data, [
          {
            transformFn: import_address2.transformRESTAddressToSDKAddress,
            paths: [{ path: "rsvps.form.inputValues.address.address" }]
          }
        ])
      );
      return {
        items: transformedData?.rsvps,
        pagingMetadata: transformedData?.pagingMetadata
      };
    },
    errorTransformer: (err) => {
      const transformedError = (0, import_transform_error.transformError)(err, {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { query: "$[0]" },
        singleArgumentUnchanged: false
      });
      throw transformedError;
    },
    pagingMethod: "CURSOR",
    transformationPaths: {}
  });
}
async function typedQueryRsvps(query, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    query,
    ...options
  });
  const reqOpts = queryRsvps(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvps.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { query: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["query", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function countRsvps2(options) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    filter: options?.filter,
    search: options?.search
  });
  const reqOpts = countRsvps(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          filter: "$[0].filter",
          search: "$[0].search"
        },
        singleArgumentUnchanged: false
      },
      ["options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function getRsvp2(rsvpId, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    rsvpId,
    fields: options?.fields
  });
  const reqOpts = getRsvp(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvp.form.inputValues.address.address" }]
        }
      ])
    )?.rsvp;
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { rsvpId: "$[0]", fields: "$[1].fields" },
        singleArgumentUnchanged: false
      },
      ["rsvpId", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function createRsvp2(rsvp, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_transform_paths2.transformPaths)(
    (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
      rsvp,
      options: options?.options,
      fields: options?.fields
    }),
    [
      {
        transformFn: import_address.transformSDKAddressToRESTAddress,
        paths: [{ path: "rsvp.form.inputValues.address.address" }]
      }
    ]
  );
  const reqOpts = createRsvp(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvp.form.inputValues.address.address" }]
        }
      ])
    )?.rsvp;
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          rsvp: "$[0]",
          options: "$[1].options",
          fields: "$[1].fields"
        },
        singleArgumentUnchanged: false
      },
      ["rsvp", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function updateRsvp2(_id, rsvp, options) {
  const { httpClient, sideEffects } = arguments[3];
  const payload = (0, import_transform_paths2.transformPaths)(
    (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
      rsvp: { ...rsvp, id: _id },
      options: options?.options,
      fields: options?.fields
    }),
    [
      {
        transformFn: import_address.transformSDKAddressToRESTAddress,
        paths: [{ path: "rsvp.form.inputValues.address.address" }]
      }
    ]
  );
  const reqOpts = updateRsvp(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvp.form.inputValues.address.address" }]
        }
      ])
    )?.rsvp;
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: { rsvp: "$[1]" },
        explicitPathsToArguments: {
          "rsvp.id": "$[0]",
          options: "$[2].options",
          fields: "$[2].fields"
        },
        singleArgumentUnchanged: false
      },
      ["_id", "rsvp", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function deleteRsvp2(rsvpId) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ rsvpId });
  const reqOpts = deleteRsvp(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { rsvpId: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["rsvpId"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkUpdateRsvps2(rsvps, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_transform_paths2.transformPaths)(
    (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
      rsvps,
      returnEntity: options?.returnEntity,
      fields: options?.fields,
      options: options?.options
    }),
    [
      {
        transformFn: import_address.transformSDKAddressToRESTAddress,
        paths: [{ path: "rsvps.rsvp.form.inputValues.address.address" }]
      }
    ]
  );
  const reqOpts = bulkUpdateRsvps(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "results.rsvp.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          rsvps: "$[0]",
          returnEntity: "$[1].returnEntity",
          fields: "$[1].fields",
          options: "$[1].options"
        },
        singleArgumentUnchanged: false
      },
      ["rsvps", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function bulkDeleteRsvpsByFilter2(filter, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    filter,
    search: options?.search
  });
  const reqOpts = bulkDeleteRsvpsByFilter(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { filter: "$[0]", search: "$[1].search" },
        singleArgumentUnchanged: false
      },
      ["filter", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function checkInRsvpGuests2(rsvpId, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    rsvpId,
    guestIds: options?.guestIds,
    fields: options?.fields,
    checkInDate: options?.checkInDate
  });
  const reqOpts = checkInRsvpGuests(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvp.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          rsvpId: "$[0]",
          guestIds: "$[1].guestIds",
          fields: "$[1].fields",
          checkInDate: "$[1].checkInDate"
        },
        singleArgumentUnchanged: false
      },
      ["rsvpId", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function cancelRsvpGuestsCheckIn2(rsvpId, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    rsvpId,
    guestIds: options?.guestIds,
    fields: options?.fields,
    checkInCanceledDate: options?.checkInCanceledDate
  });
  const reqOpts = cancelRsvpGuestsCheckIn(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvp.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          rsvpId: "$[0]",
          guestIds: "$[1].guestIds",
          fields: "$[1].fields",
          checkInCanceledDate: "$[1].checkInCanceledDate"
        },
        singleArgumentUnchanged: false
      },
      ["rsvpId", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function listRsvpSummary2(eventId) {
  const { httpClient, sideEffects } = arguments[1];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ eventId });
  const reqOpts = listRsvpSummary(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: { eventId: "$[0]" },
        singleArgumentUnchanged: false
      },
      ["eventId"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
async function listCurrentRsvps2(eventId, options) {
  const { httpClient, sideEffects } = arguments[2];
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
    eventId,
    fields: options?.fields,
    paging: options?.paging
  });
  const reqOpts = listCurrentRsvps(payload);
  sideEffects?.onSiteCall?.();
  try {
    const result = await httpClient.request(reqOpts);
    sideEffects?.onSuccess?.(result);
    return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
      (0, import_transform_paths2.transformPaths)(result.data, [
        {
          transformFn: import_address2.transformRESTAddressToSDKAddress,
          paths: [{ path: "rsvps.form.inputValues.address.address" }]
        }
      ])
    );
  } catch (err) {
    const transformedError = (0, import_transform_error.transformError)(
      err,
      {
        spreadPathsToArguments: {},
        explicitPathsToArguments: {
          eventId: "$[0]",
          fields: "$[1].fields",
          paging: "$[1].paging"
        },
        singleArgumentUnchanged: false
      },
      ["eventId", "options"]
    );
    sideEffects?.onError?.(err);
    throw transformedError;
  }
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  AggregationType,
  Alignment,
  AppType,
  AspectRatio,
  BackdropType,
  BackgroundType,
  BannerPosition,
  ButtonDataType,
  CardDataBackgroundType,
  CardStylesType,
  CheckoutType,
  ColumnSize,
  ConferenceType,
  Crop,
  DecorationType,
  DesignTarget,
  Direction,
  DividerDataAlignment,
  EventStatus,
  EventType,
  FontType,
  GIFType,
  GradientType,
  ImagePosition,
  ImagePositionPosition,
  ImageScalingScaling,
  Indentation,
  InitialExpandedItems,
  InputControlType,
  Interval,
  Layout,
  LayoutDataBackgroundType,
  LayoutType,
  LineStyle,
  ListStyle,
  LocationType,
  MapType,
  MissingValues,
  Mode,
  NestedAggregationType,
  NodeType,
  NullValue,
  Orientation,
  Origin,
  Placement,
  PluginContainerDataAlignment,
  PollDesignBackgroundType,
  PollLayoutDirection,
  PollLayoutType,
  Position,
  RegistrationStatus,
  RequestedFields,
  Resizing,
  ResponsivenessBehaviour,
  RsvpStatus,
  RsvpStatusOptions,
  ScalarType,
  Scaling,
  SmartBlockDataType,
  SortDirection,
  SortOrder,
  SortType,
  Source,
  State,
  Status,
  StylesPosition,
  SubdivisionType,
  Target,
  TaxType,
  TextAlignment,
  ThumbnailsAlignment,
  Type,
  ValueType,
  VerticalAlignment,
  VerticalAlignmentAlignment,
  ViewMode,
  ViewRole,
  VisitorType,
  VoteRole,
  WebhookIdentityType,
  Width,
  WidthType,
  bulkDeleteRsvpsByFilter,
  bulkUpdateRsvps,
  cancelRsvpGuestsCheckIn,
  checkInRsvpGuests,
  countRsvps,
  createRsvp,
  deleteRsvp,
  getRsvp,
  listCurrentRsvps,
  listRsvpSummary,
  queryRsvps,
  searchRsvps,
  typedQueryRsvps,
  updateRsvp,
  utils
});
//# sourceMappingURL=index.typings.js.map