{"version":3,"sources":["../../../src/restaurants-menus-v1-item-modifier-item-modifiers.public.ts","../../../src/restaurants-menus-v1-item-modifier-item-modifiers.universal.ts","../../../src/restaurants-menus-v1-item-modifier-item-modifiers.http.ts","../../../src/restaurants-menus-v1-item-modifier-item-modifiers.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  BulkCreateModifiersOptions,\n  BulkCreateModifiersResponse,\n  BulkDeleteModifiersResponse,\n  BulkUpdateModifiersOptions,\n  BulkUpdateModifiersResponse,\n  CountModifiersApplicationErrors,\n  CountModifiersOptions,\n  CountModifiersResponse,\n  ItemModifierCreatedEnvelope,\n  ItemModifierDeletedEnvelope,\n  ItemModifierUpdatedEnvelope,\n  ListModifiersOptions,\n  ListModifiersResponse,\n  MaskedModifier,\n  Modifier,\n  ModifierQuery,\n  ModifiersQueryBuilder,\n  QueryModifiersResponse,\n  UpdateModifier,\n  bulkCreateModifiers as universalBulkCreateModifiers,\n  bulkDeleteModifiers as universalBulkDeleteModifiers,\n  bulkUpdateModifiers as universalBulkUpdateModifiers,\n  countModifiers as universalCountModifiers,\n  createModifier as universalCreateModifier,\n  deleteModifier as universalDeleteModifier,\n  getModifier as universalGetModifier,\n  listModifiers as universalListModifiers,\n  queryModifiers as universalQueryModifiers,\n  typedQueryModifiers as universalTypedQueryModifiers,\n  updateModifier as universalUpdateModifier,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\nexport function createModifier(\n  httpClient: HttpClient\n): CreateModifierSignature {\n  return (modifier: NonNullablePaths<Modifier, `name`, 2>) =>\n    universalCreateModifier(\n      modifier,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateModifierSignature {\n  /**\n   * > **Note:** The Item Modifiers API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Creates an item modifier.\n   *\n   * To create multiple item modifiers at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-create-modifiers).\n   * @param - Item modifier to create.\n   * @returns Created item modifier.\n   */\n  (modifier: NonNullablePaths<Modifier, `name`, 2>): Promise<\n    NonNullablePaths<Modifier, `businessLocationIds`, 2>\n  >;\n}\n\nexport function getModifier(httpClient: HttpClient): GetModifierSignature {\n  return (modifierId: string) =>\n    universalGetModifier(\n      modifierId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetModifierSignature {\n  /**\n   * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Retrieves an item modifier by ID.\n   * @param - ID of the item modifier to retrieve.\n   * @returns Retrieved item modifier.\n   */\n  (modifierId: string): Promise<\n    NonNullablePaths<Modifier, `businessLocationIds`, 2>\n  >;\n}\n\nexport function listModifiers(httpClient: HttpClient): ListModifiersSignature {\n  return (options?: ListModifiersOptions) =>\n    universalListModifiers(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListModifiersSignature {\n  /**\n   * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Retrieves a list of up to 500 item modifiers.\n   */\n  (options?: ListModifiersOptions): Promise<\n    NonNullablePaths<ListModifiersResponse, `modifiers`, 2>\n  >;\n}\n\nexport function updateModifier(\n  httpClient: HttpClient\n): UpdateModifierSignature {\n  return (\n    _id: string,\n    modifier: NonNullablePaths<UpdateModifier, `revision`, 2>\n  ) =>\n    universalUpdateModifier(\n      _id,\n      modifier,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateModifierSignature {\n  /**\n   * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Updates an item modifier.\n   *\n   * To update multiple item modifiers at once, use [Bulk Update Item Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-update-modifiers).\n   *\n   * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating an item modifier. This ensures you're working with the latest item modifier information, and it prevents unintended overwrites.\n   * @param - Item modifier ID.\n   * @returns Updated item modifier.\n   */\n  (\n    _id: string,\n    modifier: NonNullablePaths<UpdateModifier, `revision`, 2>\n  ): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>>;\n}\n\nexport function bulkCreateModifiers(\n  httpClient: HttpClient\n): BulkCreateModifiersSignature {\n  return (modifiers: Modifier[], options?: BulkCreateModifiersOptions) =>\n    universalBulkCreateModifiers(\n      modifiers,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkCreateModifiersSignature {\n  /**\n   * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Creates multiple item modifiers.\n   * @param - List of item modifiers to create.\n   */\n  (modifiers: Modifier[], options?: BulkCreateModifiersOptions): Promise<\n    NonNullablePaths<\n      BulkCreateModifiersResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      6\n    >\n  >;\n}\n\nexport function bulkUpdateModifiers(\n  httpClient: HttpClient\n): BulkUpdateModifiersSignature {\n  return (modifiers: MaskedModifier[], options?: BulkUpdateModifiersOptions) =>\n    universalBulkUpdateModifiers(\n      modifiers,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkUpdateModifiersSignature {\n  /**\n   * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Updates multiple item modifiers at once.\n   * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating the item modifier. This ensures you're working with the latest item modifier information, and prevents unintended overwrites.\n   * @param - List of item modifiers to update.\n   */\n  (modifiers: MaskedModifier[], options?: BulkUpdateModifiersOptions): Promise<\n    NonNullablePaths<\n      BulkUpdateModifiersResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      6\n    >\n  >;\n}\n\nexport function deleteModifier(\n  httpClient: HttpClient\n): DeleteModifierSignature {\n  return (modifierId: string) =>\n    universalDeleteModifier(\n      modifierId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteModifierSignature {\n  /**\n   * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   * Deletes an item modifier.\n   * @param - ID of the item modifier to delete.\n   */\n  (modifierId: string): Promise<void>;\n}\n\nexport function queryModifiers(\n  httpClient: HttpClient\n): QueryModifiersSignature {\n  return () =>\n    universalQueryModifiers(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryModifiersSignature {\n  /**\n   * Creates a query to retrieve a list of item modifiers.\n   *\n   * The `queryModifiers()` function builds a query to retrieve a list of item modifiers and returns a `ModifiersQueryBuilder` object.\n   *\n   * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifiers/modifiers-query-builder/find) function.\n   *\n   * You can refine the query by chaining `ModifiersQueryBuilder` functions onto the query. `ModifiersQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifiers()` returns.\n   *\n   * `queryModifiers()` runs with the following `ModifiersQueryBuilder` defaults, which you can override:\n   *\n   * * [`limit(500)`](/item-modifiers/modifiers-query-builder/limit)\n   *\n   * The following `ModifiersQueryBuilder` functions are supported for `queryModifiers()`. For a full description of the item modifier object, see the object returned for the [`items`](/item-modifiers/modifiers-query-result/items) property in `ModifiersQueryResult`.\n   */\n  (): ModifiersQueryBuilder;\n}\n\nexport function typedQueryModifiers(\n  httpClient: HttpClient\n): TypedQueryModifiersSignature {\n  return (query: ModifierQuery) =>\n    universalTypedQueryModifiers(\n      query,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface TypedQueryModifiersSignature {\n  /** */\n  (query: ModifierQuery): Promise<\n    NonNullablePaths<QueryModifiersResponse, `modifiers`, 2>\n  >;\n}\n\nexport function countModifiers(\n  httpClient: HttpClient\n): CountModifiersSignature {\n  return (options?: CountModifiersOptions) =>\n    universalCountModifiers(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CountModifiersSignature {\n  /**\n   * > **Note:** The Item API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Retrieves the number of modifiers that match a specified filter.\n   *\n   * If a filter isn't passed in the request, the endpoint returns the count of all modifiers.\n   */\n  (options?: CountModifiersOptions): Promise<\n    NonNullablePaths<CountModifiersResponse, `count`, 2> & {\n      __applicationErrorsType?: CountModifiersApplicationErrors;\n    }\n  >;\n}\n\nexport function bulkDeleteModifiers(\n  httpClient: HttpClient\n): BulkDeleteModifiersSignature {\n  return (ids: string[]) =>\n    universalBulkDeleteModifiers(\n      ids,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface BulkDeleteModifiersSignature {\n  /**\n   * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n   *\n   * Deletes multiple item Modifiers at once.\n   * @param - Item Modifier IDs.\n   */\n  (ids: string[]): Promise<\n    NonNullablePaths<\n      BulkDeleteModifiersResponse,\n      | `results`\n      | `results.${number}.itemMetadata.originalIndex`\n      | `results.${number}.itemMetadata.success`\n      | `results.${number}.itemMetadata.error.code`\n      | `results.${number}.itemMetadata.error.description`\n      | `bulkActionMetadata.totalSuccesses`\n      | `bulkActionMetadata.totalFailures`\n      | `bulkActionMetadata.undetailedFailures`,\n      6\n    >\n  >;\n}\n\nexport const onItemModifierCreated = EventDefinition(\n  'wix.restaurants.menus.v1.item_modifier_created',\n  true,\n  (event: ItemModifierCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.externalReferenceInfo.lastSyncDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<ItemModifierCreatedEnvelope>();\nexport const onItemModifierDeleted = EventDefinition(\n  'wix.restaurants.menus.v1.item_modifier_deleted',\n  true,\n  (event: ItemModifierDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'undefined.createdDate' },\n            { path: 'undefined.updatedDate' },\n            { path: 'undefined.externalReferenceInfo.lastSyncDate' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n      ])\n    )\n)<ItemModifierDeletedEnvelope>();\nexport const onItemModifierUpdated = EventDefinition(\n  'wix.restaurants.menus.v1.item_modifier_updated',\n  true,\n  (event: ItemModifierUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.externalReferenceInfo.lastSyncDate' },\n            { path: 'metadata.eventTime' },\n            { path: 'modifiedFields.createdDate' },\n            { path: 'modifiedFields.updatedDate' },\n            { path: 'modifiedFields.externalReferenceInfo.lastSyncDate' },\n          ],\n        },\n      ])\n    )\n)<ItemModifierUpdatedEnvelope>();\n\nexport {\n  AccountInfo,\n  AccountInfoMetadata,\n  ActionEvent,\n  App,\n  ApplicationError,\n  BaseEventMetadata,\n  BulkActionMetadata,\n  BulkCreateModifierResult,\n  BulkCreateModifiersOptions,\n  BulkCreateModifiersRequest,\n  BulkCreateModifiersResponse,\n  BulkDeleteModifiersRequest,\n  BulkDeleteModifiersResponse,\n  BulkDeleteModifiersResult,\n  BulkItemResult,\n  BulkUpdateAttachedToOrphanItemRequest,\n  BulkUpdateAttachedToOrphanItemResponse,\n  BulkUpdateBusinessLocationIdsPerEntityRequest,\n  BulkUpdateBusinessLocationIdsPerEntityResponse,\n  BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n  BulkUpdateBusinessLocationIdsRequest,\n  BulkUpdateBusinessLocationIdsResponse,\n  BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n  BulkUpdateModifierResult,\n  BulkUpdateModifiersOptions,\n  BulkUpdateModifiersRequest,\n  BulkUpdateModifiersResponse,\n  CloneModifiersRequest,\n  CloneModifiersResponse,\n  CountModifiersOptions,\n  CountModifiersRequest,\n  CountModifiersResponse,\n  CreateModifierRequest,\n  CreateModifierResponse,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  CustomTag,\n  DeleteModifierRequest,\n  DeleteModifierResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  ExtendedFields,\n  ExternalReferenceInfo,\n  File,\n  GetModifierRequest,\n  GetModifierResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  InvalidateCache,\n  InvalidateCacheGetByOneOf,\n  ItemMetadata,\n  ItemModifierCreatedEnvelope,\n  ItemModifierDeletedEnvelope,\n  ItemModifierUpdatedEnvelope,\n  ListModifiersOptions,\n  ListModifiersRequest,\n  ListModifiersResponse,\n  MaskedModifier,\n  MessageEnvelope,\n  Modifier,\n  ModifierIdAttachedToOrphanItem,\n  ModifierIdLocationIds,\n  ModifierQuerySpec,\n  ModifiersQueryBuilder,\n  ModifiersQueryResult,\n  Page,\n  Pages,\n  QueryModifiersRequest,\n  QueryModifiersResponse,\n  RestoreInfo,\n  SortOrder,\n  Sorting,\n  SyncContentToMultilingualRequest,\n  SyncContentToMultilingualResponse,\n  URI,\n  URIs,\n  UpdateModifier,\n  UpdateModifierRequest,\n  UpdateModifierResponse,\n  WebhookIdentityType,\n  utils,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n  HttpClient,\n  HttpResponse,\n  NonNullablePaths,\n  QuerySpec,\n  Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsMenusV1ItemModifier from './restaurants-menus-v1-item-modifier-item-modifiers.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\n/**\n * An item modifier is a type of menu item that serves as an addition to a menu item.\n * Read more about [item modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/introduction).\n */\nexport interface Modifier {\n  /**\n   * Item modifier ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the item modifier is updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the item modifier. <br />\n   *\n   * Ignored when creating an item modifier.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the item modifier was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the item modifier was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Item modifier display name.\n   * @minLength 1\n   * @maxLength 200\n   */\n  name?: string | null;\n  /** Extended fields. */\n  extendedFields?: ExtendedFields;\n  /**\n   * Whether the modifier is in stock.\n   * Default: `true`.\n   */\n  inStock?: boolean | null;\n  /**\n   * IDs of the business locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where these item modifiers are available.\n   * @maxSize 100\n   * @format GUID\n   * @readonly\n   */\n  businessLocationIds?: string[];\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ExternalReferenceInfo {\n  /**\n   * ID of the external integrator app\\system associated with this object.\n   * @format GUID\n   */\n  externalAppId?: string | null;\n  /**\n   * Reference to an external resource ID. Used to link this object to a specific entity in an external system.\n   * @maxLength 100\n   */\n  externalEntityId?: string | null;\n  /** Last time this item modifier was synced with the external app. */\n  lastSyncDate?: Date | null;\n  /** Whether the connection to the external system is currently active. */\n  connected?: boolean | null;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n  /**\n   * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  siteId?: string;\n  /** Invalidate by App */\n  app?: App;\n  /** Invalidate by page id */\n  page?: Page;\n  /** Invalidate by URI path */\n  uri?: URI;\n  /** Invalidate by file (for media files such as PDFs) */\n  file?: File;\n  /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n  customTag?: CustomTag;\n  /** Invalidate by multiple page ids */\n  pages?: Pages;\n  /** Invalidate by multiple URI paths */\n  uris?: URIs;\n  /**\n   * tell us why you're invalidating the cache. You don't need to add your app name\n   * @maxLength 256\n   */\n  reason?: string | null;\n  /** Is local DS */\n  localDc?: boolean;\n  hardPurge?: boolean;\n  /**\n   * Optional caller-provided ID for tracking this invalidation through the system.\n   * When set, the corresponding CDN purge completion event will include this ID,\n   * allowing you to confirm when the invalidation has fully propagated.\n   * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n   * @maxLength 256\n   */\n  correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n  /**\n   * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  siteId?: string;\n  /** Invalidate by App */\n  app?: App;\n  /** Invalidate by page id */\n  page?: Page;\n  /** Invalidate by URI path */\n  uri?: URI;\n  /** Invalidate by file (for media files such as PDFs) */\n  file?: File;\n  /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n  customTag?: CustomTag;\n  /** Invalidate by multiple page ids */\n  pages?: Pages;\n  /** Invalidate by multiple URI paths */\n  uris?: URIs;\n}\n\nexport interface App {\n  /**\n   * The AppDefId\n   * @minLength 1\n   */\n  appDefId?: string;\n  /**\n   * The instance Id\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface Page {\n  /**\n   * the msid the page is on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Page ID\n   * @minLength 1\n   */\n  pageId?: string;\n}\n\nexport interface URI {\n  /**\n   * the msid the URI is on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n   * @minLength 1\n   */\n  uriPath?: string;\n}\n\nexport interface File {\n  /**\n   * the msid the file is related to\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by filename (for media files such as PDFs)\n   * @minLength 1\n   * @maxLength 256\n   */\n  fileName?: string;\n}\n\nexport interface CustomTag {\n  /**\n   * the msid the tag is related to\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Tag to invalidate by\n   * @minLength 1\n   * @maxLength 256\n   */\n  tag?: string;\n}\n\nexport interface Pages {\n  /**\n   * the msid the pages are on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by multiple Page IDs in a single message\n   * @maxSize 100\n   * @minLength 1\n   */\n  pageIds?: string[];\n}\n\nexport interface URIs {\n  /**\n   * the msid the URIs are on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n   * @maxSize 100\n   * @minLength 1\n   */\n  uriPaths?: string[];\n}\n\nexport interface CreateModifierRequest {\n  /** Item modifier to create. */\n  modifier: Modifier;\n}\n\nexport interface CreateModifierResponse {\n  /** Created item modifier. */\n  modifier?: Modifier;\n}\n\nexport interface GetModifierRequest {\n  /**\n   * ID of the item modifier to retrieve.\n   * @format GUID\n   */\n  modifierId: string;\n}\n\nexport interface GetModifierResponse {\n  /** Retrieved item modifier. */\n  modifier?: Modifier;\n}\n\nexport interface ListModifiersRequest {\n  /**\n   * IDs of the item modifiers to retrieve.\n   * @format GUID\n   * @maxSize 500\n   */\n  modifierIds?: string[];\n  /** Metadata of the paginated results. */\n  paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to load.\n   * @max 500\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * You can get the relevant cursor token\n   * from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   */\n  cursor?: string | null;\n}\n\nexport interface ListModifiersResponse {\n  /** Retrieved item modifiers. */\n  modifiers?: Modifier[];\n  /** Metadata of the paginated results. */\n  metadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Cursor pointing to the next page and the previous page in the list of results. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more results after the current page.\n   * If `true`, another page of results can be retrieved.\n   * If `false`, this is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /** Cursor pointing to next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface UpdateModifierRequest {\n  /** Item Modifier with updated properties. */\n  modifier: Modifier;\n}\n\nexport interface UpdateModifierResponse {\n  /** Updated item modifier. */\n  modifier?: Modifier;\n}\n\nexport interface BulkCreateModifiersRequest {\n  /**\n   * List of item modifiers to create.\n   * @maxSize 100\n   */\n  modifiers: Modifier[];\n  /**\n   * Whether the created item modifiers are included in the response. <br />\n   * Default: `false`.\n   */\n  returnEntity?: boolean;\n}\n\nexport interface BulkCreateModifiersResponse {\n  /** Information about the created item modifiers. */\n  results?: BulkCreateModifierResult[];\n  /** Metadata for Bulk Create Modifiers API call. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateModifierResult {\n  /** Metadata for creation of the item modifer. */\n  itemMetadata?: ItemMetadata;\n  /** Created item modifier. */\n  modifier?: Modifier;\n}\n\nexport interface ItemMetadata {\n  /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n  _id?: string | null;\n  /** Index of the item within the request array. Allows for correlation between request and response items. */\n  originalIndex?: number;\n  /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n  success?: boolean;\n  /** Details about the error in case of failure. */\n  error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n  /** Number of items that were successfully processed. */\n  totalSuccesses?: number;\n  /** Number of items that couldn't be processed. */\n  totalFailures?: number;\n  /** Number of failures without details because detailed failure threshold was exceeded. */\n  undetailedFailures?: number;\n}\n\nexport interface BulkUpdateModifiersRequest {\n  /**\n   * List of item modifiers to update.\n   * @minSize 1\n   * @maxSize 100\n   */\n  modifiers: MaskedModifier[];\n  /** Whether the updated item modifiers are included in the response. */\n  returnEntity?: boolean;\n}\n\nexport interface MaskedModifier {\n  /** Item modifier to update. */\n  modifier?: Modifier;\n  /** Explicit list of fields to update. */\n  mask?: string[];\n}\n\nexport interface BulkUpdateModifiersResponse {\n  /**\n   * Information about the updated item modifiers.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateModifierResult[];\n  /** Metadata for Bulk Update Modifiers API call. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateModifierResult {\n  /** Metadata for the update of the item modifer. */\n  itemMetadata?: ItemMetadata;\n  /** Updated item modifier. */\n  modifier?: Modifier;\n}\n\nexport interface DeleteModifierRequest {\n  /**\n   * ID of the item modifier to delete.\n   * @format GUID\n   */\n  modifierId: string;\n}\n\nexport interface DeleteModifierResponse {}\n\nexport interface QueryModifiersRequest {\n  /** Query options. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n   * for more information.\n   */\n  filter?: Record<string, any> | null;\n  /** Sort object. */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface QueryModifiersResponse {\n  /** Retrieved item modifiers. */\n  modifiers?: Modifier[];\n  /** Metadata of the paginated results. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CountModifiersRequest {\n  /** Filter for counting modifiers. */\n  filter?: Record<string, any> | null;\n}\n\nexport interface CountModifiersResponse {\n  /** Counted modifiers. */\n  count?: number;\n}\n\nexport interface BulkDeleteModifiersRequest {\n  /**\n   * Item Modifier IDs.\n   * @format GUID\n   * @maxSize 200\n   */\n  ids: string[];\n}\n\nexport interface BulkDeleteModifiersResponse {\n  /** Information about the deleted modifiers. */\n  results?: BulkDeleteModifiersResult[];\n  /** Metadata for the API call. */\n  bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteModifiersResult {\n  /** Metadata for modifiers deletion. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface CloneModifiersRequest {\n  /**\n   * The MetaSiteId to clone from\n   * @format GUID\n   */\n  metaSiteId?: string;\n}\n\nexport interface CloneModifiersResponse {}\n\nexport interface BulkUpdateBusinessLocationIdsRequest {\n  /**\n   * modifier ids\n   * @format GUID\n   * @minSize 1\n   * @maxSize 100\n   */\n  modifierIds?: string[];\n  /**\n   * Business Location Ids.\n   * @maxSize 20\n   * @format GUID\n   */\n  businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsResponse {\n  /**\n   * Information about the updated modifiers.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateBusinessLocationIdsResponseBulkItemResult[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsResponseBulkItemResult {\n  /** Metadata for item update. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateBusinessLocationIdsPerEntityRequest {\n  /**\n   * @minSize 1\n   * @maxSize 100\n   */\n  modifierIdLocationIds?: ModifierIdLocationIds[];\n}\n\nexport interface ModifierIdLocationIds {\n  /**\n   * modifier ID\n   * @format GUID\n   */\n  modifierId?: string;\n  /**\n   * Business Location IDs\n   * @maxSize 20\n   * @format GUID\n   */\n  businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsPerEntityResponse {\n  /**\n   * Information about the updated modifiers.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult {\n  /** Metadata for item update. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateAttachedToOrphanItemRequest {\n  /**\n   * @minSize 1\n   * @maxSize 100\n   */\n  modifierIdAttachedToOrphanItem?: ModifierIdAttachedToOrphanItem[];\n}\n\nexport interface ModifierIdAttachedToOrphanItem {\n  /**\n   * Modifier ID\n   * @format GUID\n   */\n  modifierId?: string;\n  /** Attached to orphan item */\n  attachedToOrphanItem?: boolean;\n}\n\nexport interface BulkUpdateAttachedToOrphanItemResponse {\n  /**\n   * Information about the updated modifiers.\n   * @minSize 1\n   * @maxSize 100\n   */\n  results?: BulkItemResult[];\n}\n\nexport interface BulkItemResult {\n  /** Metadata for item update. */\n  itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface Empty {}\n\nexport interface SyncContentToMultilingualRequest {\n  /**\n   * MetaSite ID\n   * @format GUID\n   */\n  metaSiteId?: string;\n}\n\nexport interface SyncContentToMultilingualResponse {}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CountModifiersApplicationErrors = {\n  code?: 'TOO_MANY_TO_COUNT';\n  description?: string;\n  data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Details related to the account */\n  accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n  accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n  /** ID of the Wix account associated with the event */\n  accountId: string;\n  /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n  siteId?: string;\n  /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n  parentAccountId?: string;\n}\n\nexport interface ItemModifierCreatedEnvelope {\n  entity: Modifier;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_created\n * @serviceIdentifier wix.restaurants.menus_item_modifier.v1.ModifiersService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onItemModifierCreated(\n  handler: (event: ItemModifierCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_deleted\n * @serviceIdentifier wix.restaurants.menus_item_modifier.v1.ModifiersService\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onItemModifierDeleted(\n  handler: (event: ItemModifierDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierUpdatedEnvelope {\n  entity: Modifier;\n  metadata: EventMetadata;\n  /** @hidden */\n  modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_updated\n * @serviceIdentifier wix.restaurants.menus_item_modifier.v1.ModifiersService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onItemModifierUpdated(\n  handler: (event: ItemModifierUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * > **Note:** The Item Modifiers API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates an item modifier.\n *\n * To create multiple item modifiers at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-create-modifiers).\n * @param modifier - Item modifier to create.\n * @public\n * @documentationMaturity preview\n * @requiredField modifier\n * @requiredField modifier.name\n * @permissionId RESTAURANTS.MODIFIER_CREATE\n * @applicableIdentity APP\n * @returns Created item modifier.\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.CreateModifier\n */\nexport async function createModifier(\n  modifier: NonNullablePaths<Modifier, `name`, 2>\n): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ modifier: modifier });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.createModifier(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifier!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { modifier: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['modifier']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves an item modifier by ID.\n * @param modifierId - ID of the item modifier to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierId\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @applicableIdentity APP\n * @returns Retrieved item modifier.\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.GetModifier\n */\nexport async function getModifier(\n  modifierId: string\n): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifierId: modifierId,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.getModifier(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifier!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { modifierId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['modifierId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 item modifiers.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.ListModifiers\n */\nexport async function listModifiers(\n  options?: ListModifiersOptions\n): Promise<NonNullablePaths<ListModifiersResponse, `modifiers`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifierIds: options?.modifierIds,\n    paging: options?.paging,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.listModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          modifierIds: '$[0].modifierIds',\n          paging: '$[0].paging',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ListModifiersOptions {\n  /**\n   * IDs of the item modifiers to retrieve.\n   * @format GUID\n   * @maxSize 500\n   */\n  modifierIds?: string[];\n  /** Metadata of the paginated results. */\n  paging?: CursorPaging;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates an item modifier.\n *\n * To update multiple item modifiers at once, use [Bulk Update Item Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-update-modifiers).\n *\n * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating an item modifier. This ensures you're working with the latest item modifier information, and it prevents unintended overwrites.\n * @param _id - Item modifier ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField modifier\n * @requiredField modifier.revision\n * @permissionId RESTAURANTS.MODIFIER_UPDATE\n * @applicableIdentity APP\n * @returns Updated item modifier.\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.UpdateModifier\n */\nexport async function updateModifier(\n  _id: string,\n  modifier: NonNullablePaths<UpdateModifier, `revision`, 2>\n): Promise<NonNullablePaths<Modifier, `businessLocationIds`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifier: { ...modifier, id: _id },\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.updateModifier(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifier!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: { modifier: '$[1]' },\n        explicitPathsToArguments: { 'modifier.id': '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'modifier']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateModifier {\n  /**\n   * Item modifier ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the item modifier is updated.\n   * To prevent conflicting changes,\n   * the current revision must be passed when updating the item modifier. <br />\n   *\n   * Ignored when creating an item modifier.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the item modifier was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the item modifier was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Item modifier display name.\n   * @minLength 1\n   * @maxLength 200\n   */\n  name?: string | null;\n  /** Extended fields. */\n  extendedFields?: ExtendedFields;\n  /**\n   * Whether the modifier is in stock.\n   * Default: `true`.\n   */\n  inStock?: boolean | null;\n  /**\n   * IDs of the business locations ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where these item modifiers are available.\n   * @maxSize 100\n   * @format GUID\n   * @readonly\n   */\n  businessLocationIds?: string[];\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple item modifiers.\n * @param modifiers - List of item modifiers to create.\n * @public\n * @documentationMaturity preview\n * @requiredField modifiers\n * @permissionId RESTAURANTS.MODIFIER_CREATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkCreateModifiers\n */\nexport async function bulkCreateModifiers(\n  modifiers: Modifier[],\n  options?: BulkCreateModifiersOptions\n): Promise<\n  NonNullablePaths<\n    BulkCreateModifiersResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifiers: modifiers,\n    returnEntity: options?.returnEntity,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.bulkCreateModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          modifiers: '$[0]',\n          returnEntity: '$[1].returnEntity',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['modifiers', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface BulkCreateModifiersOptions {\n  /**\n   * Whether the created item modifiers are included in the response. <br />\n   * Default: `false`.\n   */\n  returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifiers at once.\n * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating the item modifier. This ensures you're working with the latest item modifier information, and prevents unintended overwrites.\n * @param modifiers - List of item modifiers to update.\n * @public\n * @documentationMaturity preview\n * @requiredField modifiers\n * @permissionId RESTAURANTS.MODIFIER_UPDATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkUpdateModifiers\n */\nexport async function bulkUpdateModifiers(\n  modifiers: MaskedModifier[],\n  options?: BulkUpdateModifiersOptions\n): Promise<\n  NonNullablePaths<\n    BulkUpdateModifiersResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifiers: modifiers,\n    returnEntity: options?.returnEntity,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.bulkUpdateModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          modifiers: '$[0]',\n          returnEntity: '$[1].returnEntity',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['modifiers', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface BulkUpdateModifiersOptions {\n  /** Whether the updated item modifiers are included in the response. */\n  returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n * Deletes an item modifier.\n * @param modifierId - ID of the item modifier to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierId\n * @permissionId RESTAURANTS.MODIFIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.DeleteModifier\n */\nexport async function deleteModifier(modifierId: string): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    modifierId: modifierId,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.deleteModifier(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { modifierId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['modifierId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Creates a query to retrieve a list of item modifiers.\n *\n * The `queryModifiers()` function builds a query to retrieve a list of item modifiers and returns a `ModifiersQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifiers/modifiers-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifiersQueryBuilder` functions onto the query. `ModifiersQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifiers()` returns.\n *\n * `queryModifiers()` runs with the following `ModifiersQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifiers/modifiers-query-builder/limit)\n *\n * The following `ModifiersQueryBuilder` functions are supported for `queryModifiers()`. For a full description of the item modifier object, see the object returned for the [`items`](/item-modifiers/modifiers-query-result/items) property in `ModifiersQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.QueryModifiers\n */\nexport function queryModifiers(): ModifiersQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    Modifier,\n    'CURSOR',\n    QueryModifiersRequest,\n    QueryModifiersResponse\n  >({\n    func: async (payload: QueryModifiersRequest) => {\n      const reqOpts =\n        ambassadorWixRestaurantsMenusV1ItemModifier.queryModifiers(payload);\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryModifiersRequest['query']) => {\n      const args = [query, {}] as [QueryModifiersRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({ data }: HttpResponse<QueryModifiersResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.modifiers,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface ModifiersQueryResult extends QueryCursorResult {\n  items: Modifier[];\n  query: ModifiersQueryBuilder;\n  next: () => Promise<ModifiersQueryResult>;\n  prev: () => Promise<ModifiersQueryResult>;\n}\n\nexport interface ModifiersQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => ModifiersQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (propertyName: '_id' | 'name', value: any) => ModifiersQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => ModifiersQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => ModifiersQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<ModifiersQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.QueryModifiers\n * @requiredField query\n */\nexport async function typedQueryModifiers(\n  query: ModifierQuery\n): Promise<NonNullablePaths<QueryModifiersResponse, `modifiers`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.queryModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['query']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ModifierQuerySpec extends QuerySpec {\n  paging: 'cursor';\n  wql: [\n    {\n      fields: ['_id', 'name'];\n      operators: ['$eq', '$in', '$ne', '$nin'];\n      sort: 'NONE';\n    },\n    {\n      fields: ['_createdDate', '_updatedDate'];\n      operators: ['$eq', '$gt', '$gte', '$lt', '$lte', '$ne'];\n      sort: 'NONE';\n    }\n  ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n  Modifier,\n  ModifierQuerySpec\n>;\nexport type ModifierQuery = {\n  /** \n  Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.  \n  */\n  cursorPaging?: {\n    /** \n  Maximum number of items to load. \n  @max: 500 \n  */\n    limit?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n      | null;\n    /** \n  Pointer to the next or previous page in the list of results.\n\n  You can get the relevant cursor token\n  from the `pagingMetadata` object in the previous call's response.\n  Not relevant for the first request.  \n  */\n    cursor?:\n      | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n      | null;\n  };\n  /** \n  Filter object.\n  See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n  for more information.  \n  */\n  filter?: CommonQueryWithEntityContext['filter'] | null;\n  /** \n  Sort object.  \n  */\n  sort?: {\n    /** \n  Name of the field to sort by. \n  @maxLength: 512 \n  */\n    fieldName?: NonNullable<\n      CommonQueryWithEntityContext['sort']\n    >[number]['fieldName'];\n    /** \n  Sort order.  \n  */\n    order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n  }[];\n};\n\nexport const utils = {\n  query: {\n    ...createQueryUtils<Modifier, ModifierQuerySpec, ModifierQuery>(),\n  },\n};\n\n/**\n * > **Note:** The Item API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves the number of modifiers that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifiers.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.CountModifiers\n */\nexport async function countModifiers(options?: CountModifiersOptions): Promise<\n  NonNullablePaths<CountModifiersResponse, `count`, 2> & {\n    __applicationErrorsType?: CountModifiersApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    filter: options?.filter,\n  });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.countModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { filter: '$[0].filter' },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CountModifiersOptions {\n  /** Filter for counting modifiers. */\n  filter?: Record<string, any> | null;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple item Modifiers at once.\n * @param ids - Item Modifier IDs.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId RESTAURANTS.MODIFIER_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkDeleteModifiers\n */\nexport async function bulkDeleteModifiers(\n  ids: string[]\n): Promise<\n  NonNullablePaths<\n    BulkDeleteModifiersResponse,\n    | `results`\n    | `results.${number}.itemMetadata.originalIndex`\n    | `results.${number}.itemMetadata.success`\n    | `results.${number}.itemMetadata.error.code`\n    | `results.${number}.itemMetadata.error.description`\n    | `bulkActionMetadata.totalSuccesses`\n    | `bulkActionMetadata.totalFailures`\n    | `bulkActionMetadata.undetailedFailures`,\n    6\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });\n\n  const reqOpts =\n    ambassadorWixRestaurantsMenusV1ItemModifier.bulkDeleteModifiers(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { ids: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['ids']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'editor.wixapps.net': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/delete',\n        destPath: '/v1/bulk/modifiers/delete',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/modifiers/count',\n        destPath: '/v1/modifiers/count',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/create',\n        destPath: '/v1/bulk/modifiers/create',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/delete',\n        destPath: '/v1/bulk/modifiers/delete',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/modifiers/count',\n        destPath: '/v1/modifiers/count',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/create',\n        destPath: '/v1/bulk/modifiers/create',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/restaurants/item-modifiers',\n        destPath: '',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/create',\n        destPath: '/v1/bulk/modifiers/create',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/update',\n        destPath: '/v1/bulk/modifiers/update',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/bulk/modifiers/delete',\n        destPath: '/v1/bulk/modifiers/delete',\n      },\n      {\n        srcPath: '/restaurants/menus/v1/modifiers/count',\n        destPath: '/v1/modifiers/count',\n      },\n    ],\n    'apps._base_domain_': [\n      {\n        srcPath: '/_api/restaurants-menus-item-modifier',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_item-modifiers';\n\n/**\n * > **Note:** The Item Modifiers API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates an item modifier.\n *\n * To create multiple item modifiers at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-create-modifiers).\n */\nexport function createModifier(payload: object): RequestOptionsFactory<any> {\n  function __createModifier({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'modifier.createdDate' },\n          { path: 'modifier.updatedDate' },\n          { path: 'modifier.externalReferenceInfo.lastSyncDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.CreateModifier',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'modifier.createdDate' },\n              { path: 'modifier.updatedDate' },\n              { path: 'modifier.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createModifier;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves an item modifier by ID.\n */\nexport function getModifier(payload: object): RequestOptionsFactory<any> {\n  function __getModifier({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.GetModifier',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers/{modifierId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'modifier.createdDate' },\n              { path: 'modifier.updatedDate' },\n              { path: 'modifier.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getModifier;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 item modifiers.\n */\nexport function listModifiers(payload: object): RequestOptionsFactory<any> {\n  function __listModifiers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.ListModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'modifiers.createdDate' },\n              { path: 'modifiers.updatedDate' },\n              { path: 'modifiers.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listModifiers;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates an item modifier.\n *\n * To update multiple item modifiers at once, use [Bulk Update Item Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifiers/bulk-update-modifiers).\n *\n * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating an item modifier. This ensures you're working with the latest item modifier information, and it prevents unintended overwrites.\n */\nexport function updateModifier(payload: object): RequestOptionsFactory<any> {\n  function __updateModifier({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'modifier.createdDate' },\n          { path: 'modifier.updatedDate' },\n          { path: 'modifier.externalReferenceInfo.lastSyncDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'PATCH' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.UpdateModifier',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers/{modifier.id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'modifier.createdDate' },\n              { path: 'modifier.updatedDate' },\n              { path: 'modifier.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateModifier;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple item modifiers.\n */\nexport function bulkCreateModifiers(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkCreateModifiers({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'modifiers.createdDate' },\n          { path: 'modifiers.updatedDate' },\n          { path: 'modifiers.externalReferenceInfo.lastSyncDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkCreateModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/bulk/modifiers/create',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.modifier.createdDate' },\n              { path: 'results.modifier.updatedDate' },\n              { path: 'results.modifier.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkCreateModifiers;\n}\n\n/**\n * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifiers at once.\n * Each time an item modifier is updated, its revision increments by 1. The existing revision must be included when updating the item modifier. This ensures you're working with the latest item modifier information, and prevents unintended overwrites.\n */\nexport function bulkUpdateModifiers(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkUpdateModifiers({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'modifiers.mask' }],\n      },\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'modifiers.modifier.createdDate' },\n          { path: 'modifiers.modifier.updatedDate' },\n          { path: 'modifiers.modifier.externalReferenceInfo.lastSyncDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkUpdateModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/bulk/modifiers/update',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'results.modifier.createdDate' },\n              { path: 'results.modifier.updatedDate' },\n              { path: 'results.modifier.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __bulkUpdateModifiers;\n}\n\n/**\n * > **Note:** The Item modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n * Deletes an item modifier.\n */\nexport function deleteModifier(payload: object): RequestOptionsFactory<any> {\n  function __deleteModifier({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'DELETE' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.DeleteModifier',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers/{modifierId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteModifier;\n}\n\n/**\n * Creates a query to retrieve a list of item modifiers.\n *\n * The `queryModifiers()` function builds a query to retrieve a list of item modifiers and returns a `ModifiersQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifiers/modifiers-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifiersQueryBuilder` functions onto the query. `ModifiersQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifiers()` returns.\n *\n * `queryModifiers()` runs with the following `ModifiersQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifiers/modifiers-query-builder/limit)\n *\n * The following `ModifiersQueryBuilder` functions are supported for `queryModifiers()`. For a full description of the item modifier object, see the object returned for the [`items`](/item-modifiers/modifiers-query-result/items) property in `ModifiersQueryResult`.\n */\nexport function queryModifiers(payload: object): RequestOptionsFactory<any> {\n  function __queryModifiers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.QueryModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'modifiers.createdDate' },\n              { path: 'modifiers.updatedDate' },\n              { path: 'modifiers.externalReferenceInfo.lastSyncDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryModifiers;\n}\n\n/**\n * > **Note:** The Item API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves the number of modifiers that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifiers.\n */\nexport function countModifiers(payload: object): RequestOptionsFactory<any> {\n  function __countModifiers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.CountModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/modifiers/count',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __countModifiers;\n}\n\n/**\n * > **Note:** The Item Modifier API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple item Modifiers at once.\n */\nexport function bulkDeleteModifiers(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __bulkDeleteModifiers({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.menus.v1.item_modifier',\n      method: 'DELETE' as any,\n      methodFqn:\n        'wix.restaurants.menus_item_modifier.v1.ModifiersService.BulkDeleteModifiers',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixRestaurantsMenusItemModifierV1ModifiersServiceUrl({\n        protoPath: '/v1/bulk/modifiers/delete',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __bulkDeleteModifiers;\n}\n","import {\n  createModifier as publicCreateModifier,\n  getModifier as publicGetModifier,\n  listModifiers as publicListModifiers,\n  updateModifier as publicUpdateModifier,\n  bulkCreateModifiers as publicBulkCreateModifiers,\n  bulkUpdateModifiers as publicBulkUpdateModifiers,\n  deleteModifier as publicDeleteModifier,\n  queryModifiers as publicQueryModifiers,\n  typedQueryModifiers as publicTypedQueryModifiers,\n  countModifiers as publicCountModifiers,\n  bulkDeleteModifiers as publicBulkDeleteModifiers,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n  BuildRESTFunction,\n  MaybeContext,\n  BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n  ModifierQuery,\n  ModifiersQueryBuilder,\n  typedQueryModifiers as universalTypedQueryModifiers,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\nimport { onItemModifierCreated as publicOnItemModifierCreated } from './restaurants-menus-v1-item-modifier-item-modifiers.public.js';\nimport { onItemModifierDeleted as publicOnItemModifierDeleted } from './restaurants-menus-v1-item-modifier-item-modifiers.public.js';\nimport { onItemModifierUpdated as publicOnItemModifierUpdated } from './restaurants-menus-v1-item-modifier-item-modifiers.public.js';\n\nfunction customQueryModifiers(httpClient: HttpClient) {\n  const router = createQueryOverloadRouter({\n    builderQueryFunction: () => publicQueryModifiers(httpClient)(),\n    typedQueryFunction: (query: ModifierQuery) =>\n      publicTypedQueryModifiers(httpClient)(query),\n    hasOptionsParameter: false,\n  });\n\n  function overloadedQuery(): ModifiersQueryBuilder;\n  function overloadedQuery(\n    query: ModifierQuery\n  ): ReturnType<typeof universalTypedQueryModifiers>;\n  function overloadedQuery(query?: ModifierQuery): any {\n    return router(...arguments);\n  }\n\n  return overloadedQuery;\n}\n\nexport const createModifier: MaybeContext<\n  BuildRESTFunction<typeof publicCreateModifier> & typeof publicCreateModifier\n> = /*#__PURE__*/ createRESTModule(publicCreateModifier);\nexport const getModifier: MaybeContext<\n  BuildRESTFunction<typeof publicGetModifier> & typeof publicGetModifier\n> = /*#__PURE__*/ createRESTModule(publicGetModifier);\nexport const listModifiers: MaybeContext<\n  BuildRESTFunction<typeof publicListModifiers> & typeof publicListModifiers\n> = /*#__PURE__*/ createRESTModule(publicListModifiers);\nexport const updateModifier: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateModifier> & typeof publicUpdateModifier\n> = /*#__PURE__*/ createRESTModule(publicUpdateModifier);\nexport const bulkCreateModifiers: MaybeContext<\n  BuildRESTFunction<typeof publicBulkCreateModifiers> &\n    typeof publicBulkCreateModifiers\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateModifiers);\nexport const bulkUpdateModifiers: MaybeContext<\n  BuildRESTFunction<typeof publicBulkUpdateModifiers> &\n    typeof publicBulkUpdateModifiers\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateModifiers);\nexport const deleteModifier: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteModifier> & typeof publicDeleteModifier\n> = /*#__PURE__*/ createRESTModule(publicDeleteModifier);\nexport const countModifiers: MaybeContext<\n  BuildRESTFunction<typeof publicCountModifiers> & typeof publicCountModifiers\n> = /*#__PURE__*/ createRESTModule(publicCountModifiers);\nexport const bulkDeleteModifiers: MaybeContext<\n  BuildRESTFunction<typeof publicBulkDeleteModifiers> &\n    typeof publicBulkDeleteModifiers\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteModifiers);\nexport const queryModifiers: MaybeContext<\n  BuildRESTFunction<typeof customQueryModifiers> & typeof customQueryModifiers\n> = /*#__PURE__*/ createRESTModule(customQueryModifiers);\n/** */\nexport const onItemModifierCreated: BuildEventDefinition<\n  typeof publicOnItemModifierCreated\n> &\n  typeof publicOnItemModifierCreated = createEventModule(\n  publicOnItemModifierCreated\n);\n/** */\nexport const onItemModifierDeleted: BuildEventDefinition<\n  typeof publicOnItemModifierDeleted\n> &\n  typeof publicOnItemModifierDeleted = createEventModule(\n  publicOnItemModifierDeleted\n);\n/** */\nexport const onItemModifierUpdated: BuildEventDefinition<\n  typeof publicOnItemModifierUpdated\n> &\n  typeof publicOnItemModifierUpdated = createEventModule(\n  publicOnItemModifierUpdated\n);\n\nexport {\n  SortOrder,\n  WebhookIdentityType,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\nexport {\n  Modifier,\n  ExtendedFields,\n  ExternalReferenceInfo,\n  InvalidateCache,\n  InvalidateCacheGetByOneOf,\n  App,\n  Page,\n  URI,\n  File,\n  CustomTag,\n  Pages,\n  URIs,\n  CreateModifierRequest,\n  CreateModifierResponse,\n  GetModifierRequest,\n  GetModifierResponse,\n  ListModifiersRequest,\n  CursorPaging,\n  ListModifiersResponse,\n  CursorPagingMetadata,\n  Cursors,\n  UpdateModifierRequest,\n  UpdateModifierResponse,\n  BulkCreateModifiersRequest,\n  BulkCreateModifiersResponse,\n  BulkCreateModifierResult,\n  ItemMetadata,\n  ApplicationError,\n  BulkActionMetadata,\n  BulkUpdateModifiersRequest,\n  MaskedModifier,\n  BulkUpdateModifiersResponse,\n  BulkUpdateModifierResult,\n  DeleteModifierRequest,\n  DeleteModifierResponse,\n  QueryModifiersRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  QueryModifiersResponse,\n  CountModifiersRequest,\n  CountModifiersResponse,\n  BulkDeleteModifiersRequest,\n  BulkDeleteModifiersResponse,\n  BulkDeleteModifiersResult,\n  CloneModifiersRequest,\n  CloneModifiersResponse,\n  BulkUpdateBusinessLocationIdsRequest,\n  BulkUpdateBusinessLocationIdsResponse,\n  BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n  BulkUpdateBusinessLocationIdsPerEntityRequest,\n  ModifierIdLocationIds,\n  BulkUpdateBusinessLocationIdsPerEntityResponse,\n  BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n  BulkUpdateAttachedToOrphanItemRequest,\n  ModifierIdAttachedToOrphanItem,\n  BulkUpdateAttachedToOrphanItemResponse,\n  BulkItemResult,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  Empty,\n  SyncContentToMultilingualRequest,\n  SyncContentToMultilingualResponse,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  BaseEventMetadata,\n  EventMetadata,\n  AccountInfoMetadata,\n  ItemModifierCreatedEnvelope,\n  ItemModifierDeletedEnvelope,\n  ItemModifierUpdatedEnvelope,\n  ListModifiersOptions,\n  UpdateModifier,\n  BulkCreateModifiersOptions,\n  BulkUpdateModifiersOptions,\n  ModifiersQueryResult,\n  ModifiersQueryBuilder,\n  ModifierQuerySpec,\n  CountModifiersOptions,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\nexport { utils } from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\nexport {\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CountModifiersApplicationErrors,\n  CommonQueryWithEntityContext,\n  ModifierQuery,\n} from './restaurants-menus-v1-item-modifier-item-modifiers.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACH9D,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,4DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,Q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AiBA,eAAoB;AAChD,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMV,kBAEK,iCAAiB,oBAAoB;AAEhD,IAAMW,yBAG0B;AAAA,EACrC;AACF;AAEO,IAAMC,yBAG0B;AAAA,EACrC;AACF;AAEO,IAAMC,yBAG0B;AAAA,EACrC;AACF;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","SortOrder","WebhookIdentityType","createModifier","getModifier","listModifiers","updateModifier","bulkCreateModifiers","bulkUpdateModifiers","deleteModifier","queryModifiers","countModifiers","bulkDeleteModifiers","createModifier","getModifier","listModifiers","updateModifier","bulkCreateModifiers","bulkUpdateModifiers","deleteModifier","queryModifiers","typedQueryModifiers","countModifiers","bulkDeleteModifiers","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","queryModifiers","typedQueryModifiers","createModifier","getModifier","listModifiers","updateModifier","bulkCreateModifiers","bulkUpdateModifiers","deleteModifier","countModifiers","bulkDeleteModifiers","onItemModifierCreated","onItemModifierDeleted","onItemModifierUpdated"]}