@wix/auto_sdk_restaurants_item-modifier-groups 1.0.46 → 1.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.http.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.context.ts"],"sourcesContent":["export * from './src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.context.js';\n","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 BulkCreateModifierGroupsOptions,\n BulkCreateModifierGroupsResponse,\n BulkDeleteModifierGroupsResponse,\n BulkUpdateModifierGroupsOptions,\n BulkUpdateModifierGroupsResponse,\n CountModifierGroupsApplicationErrors,\n CountModifierGroupsOptions,\n CountModifierGroupsResponse,\n CursorQuery,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupResponse,\n ListModifierGroupsOptions,\n MaskedModifierGroup,\n ModifierGroup,\n ModifierGroupsQueryBuilder,\n QueryModifierGroupsResponse,\n UpdateModifierGroup,\n bulkCreateModifierGroups as universalBulkCreateModifierGroups,\n bulkDeleteModifierGroups as universalBulkDeleteModifierGroups,\n bulkUpdateModifierGroups as universalBulkUpdateModifierGroups,\n countModifierGroups as universalCountModifierGroups,\n createModifierGroup as universalCreateModifierGroup,\n deleteModifierGroup as universalDeleteModifierGroup,\n getModifierGroup as universalGetModifierGroup,\n listModifierGroups as universalListModifierGroups,\n queryModifierGroups as universalQueryModifierGroups,\n typedQueryModifierGroups as universalTypedQueryModifierGroups,\n updateModifierGroup as universalUpdateModifierGroup,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\nexport function createModifierGroup(\n httpClient: HttpClient\n): CreateModifierGroupSignature {\n return (modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>) =>\n universalCreateModifierGroup(\n modifierGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n * @param - Modifier group details.\n * @returns Modifier group.\n */\n (modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function getModifierGroup(\n httpClient: HttpClient\n): GetModifierGroupSignature {\n return (modifierGroupId: string) =>\n universalGetModifierGroup(\n modifierGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n * @param - Modifier group ID.\n * @returns Modifier group.\n */\n (modifierGroupId: string): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function listModifierGroups(\n httpClient: HttpClient\n): ListModifierGroupsSignature {\n return (options?: ListModifierGroupsOptions) =>\n universalListModifierGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n */\n (options?: ListModifierGroupsOptions): Promise<\n NonNullablePaths<ListModifierGroupResponse, `modifierGroups`, 2>\n >;\n}\n\nexport function queryModifierGroups(\n httpClient: HttpClient\n): QueryModifierGroupsSignature {\n return () =>\n universalQueryModifierGroups(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryModifierGroupsSignature {\n /**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n */\n (): ModifierGroupsQueryBuilder;\n}\n\nexport function typedQueryModifierGroups(\n httpClient: HttpClient\n): TypedQueryModifierGroupsSignature {\n return (query: CursorQuery) =>\n universalTypedQueryModifierGroups(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryModifierGroupsSignature {\n /** */\n (query: CursorQuery): Promise<\n NonNullablePaths<QueryModifierGroupsResponse, `modifierGroups`, 2>\n >;\n}\n\nexport function countModifierGroups(\n httpClient: HttpClient\n): CountModifierGroupsSignature {\n return (options?: CountModifierGroupsOptions) =>\n universalCountModifierGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CountModifierGroupsSignature {\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n */\n (options?: CountModifierGroupsOptions): Promise<\n NonNullablePaths<CountModifierGroupsResponse, `count`, 2> & {\n __applicationErrorsType?: CountModifierGroupsApplicationErrors;\n }\n >;\n}\n\nexport function updateModifierGroup(\n httpClient: HttpClient\n): UpdateModifierGroupSignature {\n return (\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n ) =>\n universalUpdateModifierGroup(\n _id,\n modifierGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n * @param - Modifier group ID.\n * @returns Updated modifier group.\n */\n (\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n ): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function deleteModifierGroup(\n httpClient: HttpClient\n): DeleteModifierGroupSignature {\n return (modifierGroupId: string) =>\n universalDeleteModifierGroup(\n modifierGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n * @param - Modifier group ID.\n */\n (modifierGroupId: string): Promise<void>;\n}\n\nexport function bulkCreateModifierGroups(\n httpClient: HttpClient\n): BulkCreateModifierGroupsSignature {\n return (\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n ) =>\n universalBulkCreateModifierGroups(\n modifierGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n * @param - Modifier groups details.\n */\n (\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateModifierGroupsResponse,\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 bulkUpdateModifierGroups(\n httpClient: HttpClient\n): BulkUpdateModifierGroupsSignature {\n return (\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n ) =>\n universalBulkUpdateModifierGroups(\n modifierGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n * @param - Modifier groups to update.\n */\n (\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateModifierGroupsResponse,\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 bulkDeleteModifierGroups(\n httpClient: HttpClient\n): BulkDeleteModifierGroupsSignature {\n return (ids: string[]) =>\n universalBulkDeleteModifierGroups(\n ids,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteModifierGroupsSignature {\n /** @param - Modifier Group IDs. */\n (ids: string[]): Promise<\n NonNullablePaths<\n BulkDeleteModifierGroupsResponse,\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 onItemModifierGroupCreated = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_created',\n true,\n (event: ItemModifierGroupCreatedEnvelope) =>\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)<ItemModifierGroupCreatedEnvelope>();\nexport const onItemModifierGroupDeleted = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_deleted',\n true,\n (event: ItemModifierGroupDeletedEnvelope) =>\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)<ItemModifierGroupDeletedEnvelope>();\nexport const onItemModifierGroupUpdated = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_updated',\n true,\n (event: ItemModifierGroupUpdatedEnvelope) =>\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)<ItemModifierGroupUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n AddModifiersToGroupUnlimitedRequest,\n AddModifiersToGroupUnlimitedResponse,\n AdditionalChargeInfo,\n App,\n ApplicationError,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateModifierGroupsOptions,\n BulkCreateModifierGroupsRequest,\n BulkCreateModifierGroupsResponse,\n BulkCreateModifierGroupsResult,\n BulkDeleteModifierGroupsRequest,\n BulkDeleteModifierGroupsResponse,\n BulkDeleteModifierGroupsResult,\n BulkItemResult,\n BulkUpdateAttachedToOrphanItemRequest,\n BulkUpdateAttachedToOrphanItemResponse,\n BulkUpdateBusinessLocationIdsPerEntityRequest,\n BulkUpdateBusinessLocationIdsPerEntityResponse,\n BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n BulkUpdateBusinessLocationIdsRequest,\n BulkUpdateBusinessLocationIdsResponse,\n BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n BulkUpdateModifierGroupsOptions,\n BulkUpdateModifierGroupsRequest,\n BulkUpdateModifierGroupsResponse,\n BulkUpdateModifierGroupsResult,\n CloneModifierGroupsRequest,\n CloneModifierGroupsResponse,\n CountModifierGroupsOptions,\n CountModifierGroupsRequest,\n CountModifierGroupsResponse,\n CreateModifierGroupRequest,\n CreateModifierGroupResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DeleteLocationIdsFromModifiers,\n DeleteModifierGroupRequest,\n DeleteModifierGroupResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReferenceInfo,\n File,\n GetModifierGroupRequest,\n GetModifierGroupResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ItemMetadata,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupRequest,\n ListModifierGroupResponse,\n ListModifierGroupsOptions,\n MaskedModifierGroup,\n MessageEnvelope,\n Modifier,\n ModifierGroup,\n ModifierGroupIdAttachedToOrphanItem,\n ModifierGroupIdLocationIds,\n ModifierGroupsQueryBuilder,\n ModifierGroupsQueryResult,\n Page,\n QueryModifierGroupsRequest,\n QueryModifierGroupsResponse,\n RestoreInfo,\n Rule,\n SortOrder,\n Sorting,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n URI,\n UpdateModifierGroup,\n UpdateModifierGroupRequest,\n UpdateModifierGroupResponse,\n WebhookIdentityType,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsMenusV1ItemModifierGroup from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the modifier group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the modifier group was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Modifier group name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Group of item modifiers.\n * @maxSize 500\n */\n modifiers?: Modifier[];\n /** Modifier group details. */\n rule?: Rule;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\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 modifier groups are available.\n * @maxSize 100\n * @format GUID\n * @readonly\n */\n businessLocationIds?: string[];\n}\n\nexport interface Modifier {\n /**\n * Item modifier ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Whether the item modifier is pre-selected.\n * Default: `false`.\n */\n preSelected?: boolean | null;\n /** Item modifier price details. */\n additionalChargeInfo?: AdditionalChargeInfo;\n}\n\nexport interface AdditionalChargeInfo {\n /**\n * Additional charge for the item modifier. A value of `0` means the item modifier is free.\n * @decimalValue options { gte:0.00, maxScale:3 }\n */\n additionalCharge?: string | null;\n}\n\nexport interface Rule {\n /** Whether the items from the modifier group must be selected. */\n required?: boolean | null;\n /**\n * Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\n * Default: `0`.\n * @max 10\n */\n minSelections?: number | null;\n /**\n * Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`.\n * @max 12\n */\n maxSelections?: number | null;\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 modifier group 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 /**\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\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}\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 DeleteLocationIdsFromModifiers {\n /**\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[];\n /**\n * @format GUID\n * @maxSize 1000\n */\n modifierIds?: string[];\n}\n\nexport interface CreateModifierGroupRequest {\n /** Modifier group details. */\n modifierGroup: ModifierGroup;\n}\n\nexport interface CreateModifierGroupResponse {\n /** Modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface GetModifierGroupRequest {\n /**\n * Modifier group ID.\n * @format GUID\n */\n modifierGroupId: string;\n}\n\nexport interface GetModifierGroupResponse {\n /** Modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface ListModifierGroupRequest {\n /**\n * Modifier group IDs.\n * @format GUID\n * @maxSize 500\n */\n modifierGroupIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * 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 ListModifierGroupResponse {\n /** Retrieved modifier groups. */\n modifierGroups?: ModifierGroup[];\n /** The 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 /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if 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 QueryModifierGroupsRequest {\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 in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\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 QueryModifierGroupsResponse {\n /** Retrieved modifier groups. */\n modifierGroups?: ModifierGroup[];\n /** Metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CountModifierGroupsRequest {\n /** Filter for counting modifier groups. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountModifierGroupsResponse {\n /** Counted modifier groups. */\n count?: number;\n}\n\nexport interface UpdateModifierGroupRequest {\n /** Modifier group to update. */\n modifierGroup: ModifierGroup;\n}\n\nexport interface UpdateModifierGroupResponse {\n /** Updated modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface DeleteModifierGroupRequest {\n /**\n * Modifier group ID.\n * @format GUID\n */\n modifierGroupId: string;\n}\n\nexport interface DeleteModifierGroupResponse {}\n\nexport interface BulkCreateModifierGroupsRequest {\n /**\n * Modifier groups details.\n * @maxSize 100\n */\n modifierGroups: ModifierGroup[];\n /** Whether to receive the created modifier groups in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateModifierGroupsResponse {\n /** Information about the created modifier groups. */\n results?: BulkCreateModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateModifierGroupsResult {\n /** Metadata for group modifier creation. */\n itemMetadata?: ItemMetadata;\n /** Created modifier group. */\n modifierGroup?: ModifierGroup;\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 BulkUpdateModifierGroupsRequest {\n /**\n * Modifier groups to update.\n * @minSize 1\n * @maxSize 100\n */\n modifierGroups: MaskedModifierGroup[];\n /** Whether to receive the updated modifier groups in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedModifierGroup {\n /** Modifier group to update. */\n modifierGroup?: ModifierGroup;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface BulkUpdateModifierGroupsResponse {\n /**\n * Information about the updated modifier groups.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateModifierGroupsResult {\n /** Metadata for group modifier update. */\n itemMetadata?: ItemMetadata;\n /** Updated modifier group. Only returned if `returnEntity` is set to `true`. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface BulkDeleteModifierGroupsRequest {\n /**\n * Modifier Group IDs.\n * @format GUID\n * @maxSize 200\n */\n ids: string[];\n}\n\nexport interface BulkDeleteModifierGroupsResponse {\n /** Information about the deleted modifier group. */\n results?: BulkDeleteModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteModifierGroupsResult {\n /** Metadata for group modifier deletion. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateBusinessLocationIdsRequest {\n /**\n * Modifier group IDs\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n modifierGroupIds?: string[];\n /**\n * Business Location IDs.\n * @maxSize 100\n * @format GUID\n */\n businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsResponse {\n /**\n * Information about the updated modifier groups.\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 modifierGroupIdLocationIds?: ModifierGroupIdLocationIds[];\n}\n\nexport interface ModifierGroupIdLocationIds {\n /**\n * Modifier group ID\n * @format GUID\n */\n modifierGroupId?: string;\n /**\n * Business Location IDs\n * @maxSize 100\n * @format GUID\n */\n businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsPerEntityResponse {\n /**\n * Information about the updated modifier groups.\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 modifierGroupIdAttachedToOrphanItem?: ModifierGroupIdAttachedToOrphanItem[];\n}\n\nexport interface ModifierGroupIdAttachedToOrphanItem {\n /**\n * Modifier group ID\n * @format GUID\n */\n modifierGroupId?: string;\n /** Attached to orphan item */\n attachedToOrphanItem?: boolean;\n}\n\nexport interface BulkUpdateAttachedToOrphanItemResponse {\n /**\n * Information about the updated modifier groups.\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 AddModifiersToGroupUnlimitedRequest {\n /**\n * Modifier group ID to add modifiers to.\n * @format GUID\n */\n modifierGroupId?: string;\n /**\n * List of modifier IDs to add to the modifier group. Limited to 500 items.\n * @format GUID\n * @minSize 1\n * @maxSize 500\n */\n modifierIds?: string[];\n}\n\nexport interface AddModifiersToGroupUnlimitedResponse {\n /** Updated modifier group with the new modifiers added. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface CloneModifierGroupsRequest {\n /**\n * The MetaSiteId to clone from.\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CloneModifierGroupsResponse {}\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}\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/** @docsIgnore */\nexport type CountModifierGroupsApplicationErrors = {\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}\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}\n\nexport interface ItemModifierGroupCreatedEnvelope {\n entity: ModifierGroup;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_created\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupCreated(\n handler: (event: ItemModifierGroupCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierGroupDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_deleted\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupDeleted(\n handler: (event: ItemModifierGroupDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierGroupUpdatedEnvelope {\n entity: ModifierGroup;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_updated\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupUpdated(\n handler: (event: ItemModifierGroupUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n * @param modifierGroup - Modifier group details.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroup\n * @requiredField modifierGroup.name\n * @permissionId RESTAURANTS.MODIFIER_GROUP_CREATE\n * @applicableIdentity APP\n * @returns Modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.CreateModifierGroup\n */\nexport async function createModifierGroup(\n modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroup: modifierGroup,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.createModifierGroup(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { modifierGroup: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n * @param modifierGroupId - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroupId\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @returns Modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.GetModifierGroup\n */\nexport async function getModifierGroup(\n modifierGroupId: string\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroupId: modifierGroupId,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.getModifierGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { modifierGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.ListModifierGroups\n */\nexport async function listModifierGroups(\n options?: ListModifierGroupsOptions\n): Promise<NonNullablePaths<ListModifierGroupResponse, `modifierGroups`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n modifierGroupIds: options?.modifierGroupIds,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.listModifierGroups(\n payload\n );\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 modifierGroupIds: '$[0].modifierGroupIds',\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 ListModifierGroupsOptions {\n /**\n * Modifier group IDs.\n * @format GUID\n * @maxSize 500\n */\n modifierGroupIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n}\n\n/**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups\n */\nexport function queryModifierGroups(): ModifierGroupsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ModifierGroup,\n 'CURSOR',\n QueryModifierGroupsRequest,\n QueryModifierGroupsResponse\n >({\n func: async (payload: QueryModifierGroupsRequest) => {\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.queryModifierGroups(\n payload\n );\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: QueryModifierGroupsRequest['query']) => {\n const args = [query, {}] as [QueryModifierGroupsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryModifierGroupsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.modifierGroups,\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 ModifierGroupsQueryResult extends QueryCursorResult {\n items: ModifierGroup[];\n query: ModifierGroupsQueryBuilder;\n next: () => Promise<ModifierGroupsQueryResult>;\n prev: () => Promise<ModifierGroupsQueryResult>;\n}\n\nexport interface ModifierGroupsQueryBuilder {\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:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'modifiers.preSelected'\n | 'rule.required'\n | 'rule.minSelections'\n | 'rule.maxSelections',\n value: any\n ) => ModifierGroupsQueryBuilder;\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:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'modifiers.preSelected'\n | 'rule.required'\n | 'rule.minSelections'\n | 'rule.maxSelections',\n value: any\n ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: 'name',\n value: string\n ) => ModifierGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'name' | 'modifiers.id' | 'rule.required',\n value: any\n ) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'modifiers' | 'rule',\n value: boolean\n ) => ModifierGroupsQueryBuilder;\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) => ModifierGroupsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ModifierGroupsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups\n * @requiredField query\n */\nexport async function typedQueryModifierGroups(\n query: CursorQuery\n): Promise<NonNullablePaths<QueryModifierGroupsResponse, `modifierGroups`, 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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.queryModifierGroups(\n payload\n );\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\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.CountModifierGroups\n */\nexport async function countModifierGroups(\n options?: CountModifierGroupsOptions\n): Promise<\n NonNullablePaths<CountModifierGroupsResponse, `count`, 2> & {\n __applicationErrorsType?: CountModifierGroupsApplicationErrors;\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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.countModifierGroups(\n payload\n );\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 CountModifierGroupsOptions {\n /** Filter for counting modifier groups. */\n filter?: Record<string, any> | null;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n * @param _id - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField modifierGroup\n * @requiredField modifierGroup.revision\n * @permissionId RESTAURANTS.MODIFIER_GROUP_UPDATE\n * @applicableIdentity APP\n * @returns Updated modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.UpdateModifierGroup\n */\nexport async function updateModifierGroup(\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroup: { ...modifierGroup, id: _id },\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.updateModifierGroup(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { modifierGroup: '$[1]' },\n explicitPathsToArguments: { 'modifierGroup.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'modifierGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateModifierGroup {\n /**\n * Modifier group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the modifier group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the modifier group was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Modifier group name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Group of item modifiers.\n * @maxSize 500\n */\n modifiers?: Modifier[];\n /** Modifier group details. */\n rule?: Rule;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\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 modifier groups are available.\n * @maxSize 100\n * @format GUID\n * @readonly\n */\n businessLocationIds?: string[];\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n * @param modifierGroupId - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroupId\n * @permissionId RESTAURANTS.MODIFIER_GROUP_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.DeleteModifierGroup\n */\nexport async function deleteModifierGroup(\n modifierGroupId: string\n): 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 modifierGroupId: modifierGroupId,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.deleteModifierGroup(\n payload\n );\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: { modifierGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n * @param modifierGroups - Modifier groups details.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroups\n * @permissionId RESTAURANTS.MODIFIER_GROUP_CREATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkCreateModifierGroups\n */\nexport async function bulkCreateModifierGroups(\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateModifierGroupsResponse,\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 modifierGroups: modifierGroups,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkCreateModifierGroups(\n payload\n );\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 modifierGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['modifierGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateModifierGroupsOptions {\n /** Whether to receive the created modifier groups in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n * @param modifierGroups - Modifier groups to update.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroups\n * @requiredField modifierGroups.modifierGroup._id\n * @requiredField modifierGroups.modifierGroup.revision\n * @permissionId RESTAURANTS.MODIFIER_GROUP_UPDATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkUpdateModifierGroups\n */\nexport async function bulkUpdateModifierGroups(\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateModifierGroupsResponse,\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 modifierGroups: modifierGroups,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkUpdateModifierGroups(\n payload\n );\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 modifierGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['modifierGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateModifierGroupsOptions {\n /** Whether to receive the updated modifier groups in the response. */\n returnEntity?: boolean;\n}\n\n/** @param ids - Modifier Group IDs.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId RESTAURANTS.MODIFIER_GROUP_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkDeleteModifierGroups\n */\nexport async function bulkDeleteModifierGroups(\n ids: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteModifierGroupsResponse,\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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkDeleteModifierGroups(\n payload\n );\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 resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/item-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_item-modifier-groups';\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n */\nexport function createModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __createModifierGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.CreateModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n */\nexport function getModifierGroup(payload: object): RequestOptionsFactory<any> {\n function __getModifierGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.GetModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroupId}',\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: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n */\nexport function listModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __listModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.ListModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups',\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: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listModifierGroups;\n}\n\n/**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n */\nexport function queryModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/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: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryModifierGroups;\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n */\nexport function countModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __countModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.CountModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countModifierGroups;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n */\nexport function updateModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateModifierGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.UpdateModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroup.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: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n */\nexport function deleteModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteModifierGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.DeleteModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n */\nexport function bulkCreateModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateModifierGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkCreateModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifier-groups/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.modifierGroup.createdDate' },\n { path: 'results.modifierGroup.updatedDate' },\n {\n path: 'results.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateModifierGroups;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n */\nexport function bulkUpdateModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateModifierGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'modifierGroups.mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroups.modifierGroup.createdDate' },\n { path: 'modifierGroups.modifierGroup.updatedDate' },\n {\n path: 'modifierGroups.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkUpdateModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifiers-groups/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.modifierGroup.createdDate' },\n { path: 'results.modifierGroup.updatedDate' },\n {\n path: 'results.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateModifierGroups;\n}\n\nexport function bulkDeleteModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkDeleteModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifiers-groups/delete',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteModifierGroups;\n}\n","import {\n createModifierGroup as publicCreateModifierGroup,\n getModifierGroup as publicGetModifierGroup,\n listModifierGroups as publicListModifierGroups,\n queryModifierGroups as publicQueryModifierGroups,\n typedQueryModifierGroups as publicTypedQueryModifierGroups,\n countModifierGroups as publicCountModifierGroups,\n updateModifierGroup as publicUpdateModifierGroup,\n deleteModifierGroup as publicDeleteModifierGroup,\n bulkCreateModifierGroups as publicBulkCreateModifierGroups,\n bulkUpdateModifierGroups as publicBulkUpdateModifierGroups,\n bulkDeleteModifierGroups as publicBulkDeleteModifierGroups,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.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 CursorQuery,\n ModifierGroupsQueryBuilder,\n typedQueryModifierGroups as universalTypedQueryModifierGroups,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nimport { onItemModifierGroupCreated as publicOnItemModifierGroupCreated } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\nimport { onItemModifierGroupDeleted as publicOnItemModifierGroupDeleted } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\nimport { onItemModifierGroupUpdated as publicOnItemModifierGroupUpdated } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\n\nfunction customQueryModifierGroups(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryModifierGroups(httpClient)(),\n typedQueryFunction: (query: CursorQuery) =>\n publicTypedQueryModifierGroups(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): ModifierGroupsQueryBuilder;\n function overloadedQuery(\n query: CursorQuery\n ): ReturnType<typeof universalTypedQueryModifierGroups>;\n function overloadedQuery(query?: CursorQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicCreateModifierGroup> &\n typeof publicCreateModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicCreateModifierGroup);\nexport const getModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicGetModifierGroup> &\n typeof publicGetModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicGetModifierGroup);\nexport const listModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicListModifierGroups> &\n typeof publicListModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicListModifierGroups);\nexport const countModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicCountModifierGroups> &\n typeof publicCountModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicCountModifierGroups);\nexport const updateModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicUpdateModifierGroup> &\n typeof publicUpdateModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicUpdateModifierGroup);\nexport const deleteModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicDeleteModifierGroup> &\n typeof publicDeleteModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicDeleteModifierGroup);\nexport const bulkCreateModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateModifierGroups> &\n typeof publicBulkCreateModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateModifierGroups);\nexport const bulkUpdateModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateModifierGroups> &\n typeof publicBulkUpdateModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateModifierGroups);\nexport const bulkDeleteModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteModifierGroups> &\n typeof publicBulkDeleteModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteModifierGroups);\nexport const queryModifierGroups: MaybeContext<\n BuildRESTFunction<typeof customQueryModifierGroups> &\n typeof customQueryModifierGroups\n> = /*#__PURE__*/ createRESTModule(customQueryModifierGroups);\n/** */\nexport const onItemModifierGroupCreated: BuildEventDefinition<\n typeof publicOnItemModifierGroupCreated\n> &\n typeof publicOnItemModifierGroupCreated = createEventModule(\n publicOnItemModifierGroupCreated\n);\n/** */\nexport const onItemModifierGroupDeleted: BuildEventDefinition<\n typeof publicOnItemModifierGroupDeleted\n> &\n typeof publicOnItemModifierGroupDeleted = createEventModule(\n publicOnItemModifierGroupDeleted\n);\n/** */\nexport const onItemModifierGroupUpdated: BuildEventDefinition<\n typeof publicOnItemModifierGroupUpdated\n> &\n typeof publicOnItemModifierGroupUpdated = createEventModule(\n publicOnItemModifierGroupUpdated\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nexport {\n ModifierGroup,\n Modifier,\n AdditionalChargeInfo,\n Rule,\n ExtendedFields,\n ExternalReferenceInfo,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n DeleteLocationIdsFromModifiers,\n CreateModifierGroupRequest,\n CreateModifierGroupResponse,\n GetModifierGroupRequest,\n GetModifierGroupResponse,\n ListModifierGroupRequest,\n CursorPaging,\n ListModifierGroupResponse,\n CursorPagingMetadata,\n Cursors,\n QueryModifierGroupsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QueryModifierGroupsResponse,\n CountModifierGroupsRequest,\n CountModifierGroupsResponse,\n UpdateModifierGroupRequest,\n UpdateModifierGroupResponse,\n DeleteModifierGroupRequest,\n DeleteModifierGroupResponse,\n BulkCreateModifierGroupsRequest,\n BulkCreateModifierGroupsResponse,\n BulkCreateModifierGroupsResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdateModifierGroupsRequest,\n MaskedModifierGroup,\n BulkUpdateModifierGroupsResponse,\n BulkUpdateModifierGroupsResult,\n BulkDeleteModifierGroupsRequest,\n BulkDeleteModifierGroupsResponse,\n BulkDeleteModifierGroupsResult,\n BulkUpdateBusinessLocationIdsRequest,\n BulkUpdateBusinessLocationIdsResponse,\n BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n BulkUpdateBusinessLocationIdsPerEntityRequest,\n ModifierGroupIdLocationIds,\n BulkUpdateBusinessLocationIdsPerEntityResponse,\n BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n BulkUpdateAttachedToOrphanItemRequest,\n ModifierGroupIdAttachedToOrphanItem,\n BulkUpdateAttachedToOrphanItemResponse,\n BulkItemResult,\n AddModifiersToGroupUnlimitedRequest,\n AddModifiersToGroupUnlimitedResponse,\n CloneModifierGroupsRequest,\n CloneModifierGroupsResponse,\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 BaseEventMetadata,\n EventMetadata,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupsOptions,\n ModifierGroupsQueryResult,\n ModifierGroupsQueryBuilder,\n CountModifierGroupsOptions,\n UpdateModifierGroup,\n BulkCreateModifierGroupsOptions,\n BulkUpdateModifierGroupsOptions,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CountModifierGroupsApplicationErrors,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH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K,2DAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMV,uBAGK,2DAAiB,yBAAyB;AAErD,IAAMW,kCAG+B;AAAA,EAC1C;AACF;AAEO,IAAMC,kCAG+B;AAAA,EAC1C;AACF;AAEO,IAAMC,kCAG+B;AAAA,EAC1C;AACF;","names":["bulkCreateModifierGroups","bulkDeleteModifierGroups","bulkUpdateModifierGroups","countModifierGroups","createModifierGroup","deleteModifierGroup","getModifierGroup","listModifierGroups","onItemModifierGroupCreated","onItemModifierGroupDeleted","onItemModifierGroupUpdated","queryModifierGroups","updateModifierGroup","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createModifierGroup","sdkTransformError","getModifierGroup","listModifierGroups","queryModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","createModifierGroup","getModifierGroup","listModifierGroups","queryModifierGroups","typedQueryModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","import_rest_modules","queryModifierGroups","typedQueryModifierGroups","createModifierGroup","getModifierGroup","listModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","onItemModifierGroupCreated","onItemModifierGroupDeleted","onItemModifierGroupUpdated"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.http.ts","../../src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.context.ts"],"sourcesContent":["export * from './src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.context.js';\n","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 BulkCreateModifierGroupsOptions,\n BulkCreateModifierGroupsResponse,\n BulkDeleteModifierGroupsResponse,\n BulkUpdateModifierGroupsOptions,\n BulkUpdateModifierGroupsResponse,\n CountModifierGroupsApplicationErrors,\n CountModifierGroupsOptions,\n CountModifierGroupsResponse,\n CursorQuery,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupResponse,\n ListModifierGroupsOptions,\n MaskedModifierGroup,\n ModifierGroup,\n ModifierGroupsQueryBuilder,\n QueryModifierGroupsResponse,\n UpdateModifierGroup,\n bulkCreateModifierGroups as universalBulkCreateModifierGroups,\n bulkDeleteModifierGroups as universalBulkDeleteModifierGroups,\n bulkUpdateModifierGroups as universalBulkUpdateModifierGroups,\n countModifierGroups as universalCountModifierGroups,\n createModifierGroup as universalCreateModifierGroup,\n deleteModifierGroup as universalDeleteModifierGroup,\n getModifierGroup as universalGetModifierGroup,\n listModifierGroups as universalListModifierGroups,\n queryModifierGroups as universalQueryModifierGroups,\n typedQueryModifierGroups as universalTypedQueryModifierGroups,\n updateModifierGroup as universalUpdateModifierGroup,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\nexport function createModifierGroup(\n httpClient: HttpClient\n): CreateModifierGroupSignature {\n return (modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>) =>\n universalCreateModifierGroup(\n modifierGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n * @param - Modifier group details.\n * @returns Modifier group.\n */\n (modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function getModifierGroup(\n httpClient: HttpClient\n): GetModifierGroupSignature {\n return (modifierGroupId: string) =>\n universalGetModifierGroup(\n modifierGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n * @param - Modifier group ID.\n * @returns Modifier group.\n */\n (modifierGroupId: string): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function listModifierGroups(\n httpClient: HttpClient\n): ListModifierGroupsSignature {\n return (options?: ListModifierGroupsOptions) =>\n universalListModifierGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n */\n (options?: ListModifierGroupsOptions): Promise<\n NonNullablePaths<ListModifierGroupResponse, `modifierGroups`, 2>\n >;\n}\n\nexport function queryModifierGroups(\n httpClient: HttpClient\n): QueryModifierGroupsSignature {\n return () =>\n universalQueryModifierGroups(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryModifierGroupsSignature {\n /**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n */\n (): ModifierGroupsQueryBuilder;\n}\n\nexport function typedQueryModifierGroups(\n httpClient: HttpClient\n): TypedQueryModifierGroupsSignature {\n return (query: CursorQuery) =>\n universalTypedQueryModifierGroups(\n query,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryModifierGroupsSignature {\n /** */\n (query: CursorQuery): Promise<\n NonNullablePaths<QueryModifierGroupsResponse, `modifierGroups`, 2>\n >;\n}\n\nexport function countModifierGroups(\n httpClient: HttpClient\n): CountModifierGroupsSignature {\n return (options?: CountModifierGroupsOptions) =>\n universalCountModifierGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CountModifierGroupsSignature {\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n */\n (options?: CountModifierGroupsOptions): Promise<\n NonNullablePaths<CountModifierGroupsResponse, `count`, 2> & {\n __applicationErrorsType?: CountModifierGroupsApplicationErrors;\n }\n >;\n}\n\nexport function updateModifierGroup(\n httpClient: HttpClient\n): UpdateModifierGroupSignature {\n return (\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n ) =>\n universalUpdateModifierGroup(\n _id,\n modifierGroup,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n * @param - Modifier group ID.\n * @returns Updated modifier group.\n */\n (\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n ): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\n >\n >;\n}\n\nexport function deleteModifierGroup(\n httpClient: HttpClient\n): DeleteModifierGroupSignature {\n return (modifierGroupId: string) =>\n universalDeleteModifierGroup(\n modifierGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteModifierGroupSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n * @param - Modifier group ID.\n */\n (modifierGroupId: string): Promise<void>;\n}\n\nexport function bulkCreateModifierGroups(\n httpClient: HttpClient\n): BulkCreateModifierGroupsSignature {\n return (\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n ) =>\n universalBulkCreateModifierGroups(\n modifierGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n * @param - Modifier groups details.\n */\n (\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateModifierGroupsResponse,\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 bulkUpdateModifierGroups(\n httpClient: HttpClient\n): BulkUpdateModifierGroupsSignature {\n return (\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n ) =>\n universalBulkUpdateModifierGroups(\n modifierGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateModifierGroupsSignature {\n /**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n * @param - Modifier groups to update.\n */\n (\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateModifierGroupsResponse,\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 bulkDeleteModifierGroups(\n httpClient: HttpClient\n): BulkDeleteModifierGroupsSignature {\n return (ids: string[]) =>\n universalBulkDeleteModifierGroups(\n ids,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteModifierGroupsSignature {\n /** @param - Modifier Group IDs. */\n (ids: string[]): Promise<\n NonNullablePaths<\n BulkDeleteModifierGroupsResponse,\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 onItemModifierGroupCreated = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_created',\n true,\n (event: ItemModifierGroupCreatedEnvelope) =>\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)<ItemModifierGroupCreatedEnvelope>();\nexport const onItemModifierGroupDeleted = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_deleted',\n true,\n (event: ItemModifierGroupDeletedEnvelope) =>\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)<ItemModifierGroupDeletedEnvelope>();\nexport const onItemModifierGroupUpdated = EventDefinition(\n 'wix.restaurants.menus.v1.item_modifier_group_updated',\n true,\n (event: ItemModifierGroupUpdatedEnvelope) =>\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)<ItemModifierGroupUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n AddModifiersToGroupUnlimitedRequest,\n AddModifiersToGroupUnlimitedResponse,\n AdditionalChargeInfo,\n App,\n ApplicationError,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateModifierGroupsOptions,\n BulkCreateModifierGroupsRequest,\n BulkCreateModifierGroupsResponse,\n BulkCreateModifierGroupsResult,\n BulkDeleteModifierGroupsRequest,\n BulkDeleteModifierGroupsResponse,\n BulkDeleteModifierGroupsResult,\n BulkItemResult,\n BulkUpdateAttachedToOrphanItemRequest,\n BulkUpdateAttachedToOrphanItemResponse,\n BulkUpdateBusinessLocationIdsPerEntityRequest,\n BulkUpdateBusinessLocationIdsPerEntityResponse,\n BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n BulkUpdateBusinessLocationIdsRequest,\n BulkUpdateBusinessLocationIdsResponse,\n BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n BulkUpdateModifierGroupsOptions,\n BulkUpdateModifierGroupsRequest,\n BulkUpdateModifierGroupsResponse,\n BulkUpdateModifierGroupsResult,\n CloneModifierGroupsRequest,\n CloneModifierGroupsResponse,\n CountModifierGroupsOptions,\n CountModifierGroupsRequest,\n CountModifierGroupsResponse,\n CreateModifierGroupRequest,\n CreateModifierGroupResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DeleteLocationIdsFromModifiers,\n DeleteModifierGroupRequest,\n DeleteModifierGroupResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReferenceInfo,\n File,\n GetModifierGroupRequest,\n GetModifierGroupResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ItemMetadata,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupRequest,\n ListModifierGroupResponse,\n ListModifierGroupsOptions,\n MaskedModifierGroup,\n MessageEnvelope,\n Modifier,\n ModifierGroup,\n ModifierGroupIdAttachedToOrphanItem,\n ModifierGroupIdLocationIds,\n ModifierGroupsQueryBuilder,\n ModifierGroupsQueryResult,\n Page,\n QueryModifierGroupsRequest,\n QueryModifierGroupsResponse,\n RestoreInfo,\n Rule,\n SortOrder,\n Sorting,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n URI,\n UpdateModifierGroup,\n UpdateModifierGroupRequest,\n UpdateModifierGroupResponse,\n WebhookIdentityType,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.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 { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsMenusV1ItemModifierGroup from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the modifier group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the modifier group was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Modifier group name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Group of item modifiers.\n * @maxSize 500\n */\n modifiers?: Modifier[];\n /** Modifier group details. */\n rule?: Rule;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\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 modifier groups are available.\n * @maxSize 100\n * @format GUID\n * @readonly\n */\n businessLocationIds?: string[];\n}\n\nexport interface Modifier {\n /**\n * Item modifier ID.\n * @format GUID\n */\n _id?: string;\n /**\n * Whether the item modifier is pre-selected.\n * Default: `false`.\n */\n preSelected?: boolean | null;\n /** Item modifier price details. */\n additionalChargeInfo?: AdditionalChargeInfo;\n}\n\nexport interface AdditionalChargeInfo {\n /**\n * Additional charge for the item modifier. A value of `0` means the item modifier is free.\n * @decimalValue options { gte:0.00, maxScale:3 }\n */\n additionalCharge?: string | null;\n}\n\nexport interface Rule {\n /** Whether the items from the modifier group must be selected. */\n required?: boolean | null;\n /**\n * Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\n * Default: `0`.\n * @max 12\n */\n minSelections?: number | null;\n /**\n * Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`.\n * @max 12\n */\n maxSelections?: number | null;\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 modifier group 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 /**\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\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}\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 DeleteLocationIdsFromModifiers {\n /**\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[];\n /**\n * @format GUID\n * @maxSize 1000\n */\n modifierIds?: string[];\n}\n\nexport interface CreateModifierGroupRequest {\n /** Modifier group details. */\n modifierGroup: ModifierGroup;\n}\n\nexport interface CreateModifierGroupResponse {\n /** Modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface GetModifierGroupRequest {\n /**\n * Modifier group ID.\n * @format GUID\n */\n modifierGroupId: string;\n}\n\nexport interface GetModifierGroupResponse {\n /** Modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface ListModifierGroupRequest {\n /**\n * Modifier group IDs.\n * @format GUID\n * @maxSize 500\n */\n modifierGroupIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * 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 ListModifierGroupResponse {\n /** Retrieved modifier groups. */\n modifierGroups?: ModifierGroup[];\n /** The 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 /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if 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 QueryModifierGroupsRequest {\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 in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\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 QueryModifierGroupsResponse {\n /** Retrieved modifier groups. */\n modifierGroups?: ModifierGroup[];\n /** Metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CountModifierGroupsRequest {\n /** Filter for counting modifier groups. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountModifierGroupsResponse {\n /** Counted modifier groups. */\n count?: number;\n}\n\nexport interface UpdateModifierGroupRequest {\n /** Modifier group to update. */\n modifierGroup: ModifierGroup;\n}\n\nexport interface UpdateModifierGroupResponse {\n /** Updated modifier group. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface DeleteModifierGroupRequest {\n /**\n * Modifier group ID.\n * @format GUID\n */\n modifierGroupId: string;\n}\n\nexport interface DeleteModifierGroupResponse {}\n\nexport interface BulkCreateModifierGroupsRequest {\n /**\n * Modifier groups details.\n * @maxSize 100\n */\n modifierGroups: ModifierGroup[];\n /** Whether to receive the created modifier groups in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateModifierGroupsResponse {\n /** Information about the created modifier groups. */\n results?: BulkCreateModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateModifierGroupsResult {\n /** Metadata for group modifier creation. */\n itemMetadata?: ItemMetadata;\n /** Created modifier group. */\n modifierGroup?: ModifierGroup;\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 BulkUpdateModifierGroupsRequest {\n /**\n * Modifier groups to update.\n * @minSize 1\n * @maxSize 100\n */\n modifierGroups: MaskedModifierGroup[];\n /** Whether to receive the updated modifier groups in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedModifierGroup {\n /** Modifier group to update. */\n modifierGroup?: ModifierGroup;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface BulkUpdateModifierGroupsResponse {\n /**\n * Information about the updated modifier groups.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateModifierGroupsResult {\n /** Metadata for group modifier update. */\n itemMetadata?: ItemMetadata;\n /** Updated modifier group. Only returned if `returnEntity` is set to `true`. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface BulkDeleteModifierGroupsRequest {\n /**\n * Modifier Group IDs.\n * @format GUID\n * @maxSize 200\n */\n ids: string[];\n}\n\nexport interface BulkDeleteModifierGroupsResponse {\n /** Information about the deleted modifier group. */\n results?: BulkDeleteModifierGroupsResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteModifierGroupsResult {\n /** Metadata for group modifier deletion. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateBusinessLocationIdsRequest {\n /**\n * Modifier group IDs\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n modifierGroupIds?: string[];\n /**\n * Business Location IDs.\n * @maxSize 100\n * @format GUID\n */\n businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsResponse {\n /**\n * Information about the updated modifier groups.\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 modifierGroupIdLocationIds?: ModifierGroupIdLocationIds[];\n}\n\nexport interface ModifierGroupIdLocationIds {\n /**\n * Modifier group ID\n * @format GUID\n */\n modifierGroupId?: string;\n /**\n * Business Location IDs\n * @maxSize 100\n * @format GUID\n */\n businessLocationIds?: string[];\n}\n\nexport interface BulkUpdateBusinessLocationIdsPerEntityResponse {\n /**\n * Information about the updated modifier groups.\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 modifierGroupIdAttachedToOrphanItem?: ModifierGroupIdAttachedToOrphanItem[];\n}\n\nexport interface ModifierGroupIdAttachedToOrphanItem {\n /**\n * Modifier group ID\n * @format GUID\n */\n modifierGroupId?: string;\n /** Attached to orphan item */\n attachedToOrphanItem?: boolean;\n}\n\nexport interface BulkUpdateAttachedToOrphanItemResponse {\n /**\n * Information about the updated modifier groups.\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 AddModifiersToGroupUnlimitedRequest {\n /**\n * Modifier group ID to add modifiers to.\n * @format GUID\n */\n modifierGroupId?: string;\n /**\n * List of modifier IDs to add to the modifier group. Limited to 500 items.\n * @format GUID\n * @minSize 1\n * @maxSize 500\n */\n modifierIds?: string[];\n}\n\nexport interface AddModifiersToGroupUnlimitedResponse {\n /** Updated modifier group with the new modifiers added. */\n modifierGroup?: ModifierGroup;\n}\n\nexport interface CloneModifierGroupsRequest {\n /**\n * The MetaSiteId to clone from.\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CloneModifierGroupsResponse {}\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}\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/** @docsIgnore */\nexport type CountModifierGroupsApplicationErrors = {\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}\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}\n\nexport interface ItemModifierGroupCreatedEnvelope {\n entity: ModifierGroup;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_created\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupCreated(\n handler: (event: ItemModifierGroupCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierGroupDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_deleted\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupDeleted(\n handler: (event: ItemModifierGroupDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface ItemModifierGroupUpdatedEnvelope {\n entity: ModifierGroup;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.item_modifier_group_updated\n * @serviceIdentifier wix.restaurants.menus.v1.ModifierGroupsService\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onItemModifierGroupUpdated(\n handler: (event: ItemModifierGroupUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n * @param modifierGroup - Modifier group details.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroup\n * @requiredField modifierGroup.name\n * @permissionId RESTAURANTS.MODIFIER_GROUP_CREATE\n * @applicableIdentity APP\n * @returns Modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.CreateModifierGroup\n */\nexport async function createModifierGroup(\n modifierGroup: NonNullablePaths<ModifierGroup, `name`, 2>\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroup: modifierGroup,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.createModifierGroup(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { modifierGroup: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n * @param modifierGroupId - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroupId\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @returns Modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.GetModifierGroup\n */\nexport async function getModifierGroup(\n modifierGroupId: string\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroupId: modifierGroupId,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.getModifierGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { modifierGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.ListModifierGroups\n */\nexport async function listModifierGroups(\n options?: ListModifierGroupsOptions\n): Promise<NonNullablePaths<ListModifierGroupResponse, `modifierGroups`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n modifierGroupIds: options?.modifierGroupIds,\n paging: options?.paging,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.listModifierGroups(\n payload\n );\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 modifierGroupIds: '$[0].modifierGroupIds',\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 ListModifierGroupsOptions {\n /**\n * Modifier group IDs.\n * @format GUID\n * @maxSize 500\n */\n modifierGroupIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n}\n\n/**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups\n */\nexport function queryModifierGroups(): ModifierGroupsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ModifierGroup,\n 'CURSOR',\n QueryModifierGroupsRequest,\n QueryModifierGroupsResponse\n >({\n func: async (payload: QueryModifierGroupsRequest) => {\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.queryModifierGroups(\n payload\n );\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: QueryModifierGroupsRequest['query']) => {\n const args = [query, {}] as [QueryModifierGroupsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryModifierGroupsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.modifierGroups,\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 ModifierGroupsQueryResult extends QueryCursorResult {\n items: ModifierGroup[];\n query: ModifierGroupsQueryBuilder;\n next: () => Promise<ModifierGroupsQueryResult>;\n prev: () => Promise<ModifierGroupsQueryResult>;\n}\n\nexport interface ModifierGroupsQueryBuilder {\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:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'modifiers.preSelected'\n | 'rule.required'\n | 'rule.minSelections'\n | 'rule.maxSelections',\n value: any\n ) => ModifierGroupsQueryBuilder;\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:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'modifiers.preSelected'\n | 'rule.required'\n | 'rule.minSelections'\n | 'rule.maxSelections',\n value: any\n ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\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 ) => ModifierGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: 'name',\n value: string\n ) => ModifierGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'name' | 'modifiers.id' | 'rule.required',\n value: any\n ) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'modifiers' | 'rule',\n value: boolean\n ) => ModifierGroupsQueryBuilder;\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) => ModifierGroupsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ModifierGroupsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ModifierGroupsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups\n * @requiredField query\n */\nexport async function typedQueryModifierGroups(\n query: CursorQuery\n): Promise<NonNullablePaths<QueryModifierGroupsResponse, `modifierGroups`, 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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.queryModifierGroups(\n payload\n );\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\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.MODIFIER_GROUP_READ\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.CountModifierGroups\n */\nexport async function countModifierGroups(\n options?: CountModifierGroupsOptions\n): Promise<\n NonNullablePaths<CountModifierGroupsResponse, `count`, 2> & {\n __applicationErrorsType?: CountModifierGroupsApplicationErrors;\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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.countModifierGroups(\n payload\n );\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 CountModifierGroupsOptions {\n /** Filter for counting modifier groups. */\n filter?: Record<string, any> | null;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n * @param _id - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField modifierGroup\n * @requiredField modifierGroup.revision\n * @permissionId RESTAURANTS.MODIFIER_GROUP_UPDATE\n * @applicableIdentity APP\n * @returns Updated modifier group.\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.UpdateModifierGroup\n */\nexport async function updateModifierGroup(\n _id: string,\n modifierGroup: NonNullablePaths<UpdateModifierGroup, `revision`, 2>\n): Promise<\n NonNullablePaths<\n ModifierGroup,\n `modifiers` | `modifiers.${number}._id` | `businessLocationIds`,\n 4\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 modifierGroup: { ...modifierGroup, id: _id },\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.updateModifierGroup(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.modifierGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { modifierGroup: '$[1]' },\n explicitPathsToArguments: { 'modifierGroup.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'modifierGroup']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateModifierGroup {\n /**\n * Modifier group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the modifier group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the modifier group was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Modifier group name.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Group of item modifiers.\n * @maxSize 500\n */\n modifiers?: Modifier[];\n /** Modifier group details. */\n rule?: Rule;\n /** Extended fields. */\n extendedFields?: ExtendedFields;\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 modifier groups are available.\n * @maxSize 100\n * @format GUID\n * @readonly\n */\n businessLocationIds?: string[];\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n * @param modifierGroupId - Modifier group ID.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroupId\n * @permissionId RESTAURANTS.MODIFIER_GROUP_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.DeleteModifierGroup\n */\nexport async function deleteModifierGroup(\n modifierGroupId: string\n): 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 modifierGroupId: modifierGroupId,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.deleteModifierGroup(\n payload\n );\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: { modifierGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['modifierGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n * @param modifierGroups - Modifier groups details.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroups\n * @permissionId RESTAURANTS.MODIFIER_GROUP_CREATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkCreateModifierGroups\n */\nexport async function bulkCreateModifierGroups(\n modifierGroups: ModifierGroup[],\n options?: BulkCreateModifierGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateModifierGroupsResponse,\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 modifierGroups: modifierGroups,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkCreateModifierGroups(\n payload\n );\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 modifierGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['modifierGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateModifierGroupsOptions {\n /** Whether to receive the created modifier groups in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n * @param modifierGroups - Modifier groups to update.\n * @public\n * @documentationMaturity preview\n * @requiredField modifierGroups\n * @requiredField modifierGroups.modifierGroup._id\n * @requiredField modifierGroups.modifierGroup.revision\n * @permissionId RESTAURANTS.MODIFIER_GROUP_UPDATE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkUpdateModifierGroups\n */\nexport async function bulkUpdateModifierGroups(\n modifierGroups: NonNullablePaths<\n MaskedModifierGroup,\n `modifierGroup._id` | `modifierGroup.revision`,\n 3\n >[],\n options?: BulkUpdateModifierGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateModifierGroupsResponse,\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 modifierGroups: modifierGroups,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkUpdateModifierGroups(\n payload\n );\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 modifierGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['modifierGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateModifierGroupsOptions {\n /** Whether to receive the updated modifier groups in the response. */\n returnEntity?: boolean;\n}\n\n/** @param ids - Modifier Group IDs.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId RESTAURANTS.MODIFIER_GROUP_DELETE\n * @applicableIdentity APP\n * @fqn wix.restaurants.menus.v1.ModifierGroupsService.BulkDeleteModifierGroups\n */\nexport async function bulkDeleteModifierGroups(\n ids: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteModifierGroupsResponse,\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 ambassadorWixRestaurantsMenusV1ItemModifierGroup.bulkDeleteModifierGroups(\n payload\n );\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 resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-modifier-group',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/item-modifier-group',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifier-groups/create',\n destPath: '/v1/bulk/modifier-groups/create',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/delete',\n destPath: '/v1/bulk/modifiers-groups/delete',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/modifiers-groups/update',\n destPath: '/v1/bulk/modifiers-groups/update',\n },\n {\n srcPath: '/restaurants/menus/v1/modifier-groups',\n destPath: '/v1/modifier-groups',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-modifier-group',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_item-modifier-groups';\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a modifier group.\n *\n * To create multiple modifier groups at once, use [Bulk Create Modifiers](https://dev.wix.com/docs/rest/business-solutions/restaurants/menus/item-modifier-groups/bulk-create-modifier-groups).\n */\nexport function createModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __createModifierGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.CreateModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a modifier group by the ID.\n */\nexport function getModifierGroup(payload: object): RequestOptionsFactory<any> {\n function __getModifierGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.GetModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroupId}',\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: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 modifier groups.\n */\nexport function listModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __listModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.ListModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups',\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: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listModifierGroups;\n}\n\n/**\n * Creates a query to retrieve a list of item modifier groups.\n *\n * The `queryModifierGroups()` function builds a query to retrieve a list of item modifier groups and returns a `ModifierGroupsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/item-modifier-groups/modifier-groups-query-builder/find) function.\n *\n * You can refine the query by chaining `ModifierGroupsQueryBuilder` functions onto the query. `ModifierGroupsQueryBuilder` functions enable you to filter, sort, and control the results that `queryModifierGroups()` returns.\n *\n * `queryModifierGroups()` runs with the following `ModifierGroupsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(500)`](/item-modifier-groups/modifier-groups-query-builder/limit)\n *\n * The following `ModifierGroupsQueryBuilder` functions are supported for `queryModifierGroups()`. For a full description of the item modifier group object, see the object returned for the [`items`](/item-modifier-groups/modifier-groups-query-result/items) property in `ModifierGroupsQueryResult`.\n */\nexport function queryModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.QueryModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/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: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryModifierGroups;\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 modifier groups that match a specified filter.\n *\n * If a filter isn't passed in the request, the endpoint returns the count of all modifier groups.\n */\nexport function countModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __countModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.CountModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countModifierGroups;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a modifier group.\n *\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating the modifier group. This ensures you're working with the latest modifier group information, and it prevents unintended overwrites.\n */\nexport function updateModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateModifierGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.UpdateModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroup.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: 'modifierGroup.createdDate' },\n { path: 'modifierGroup.updatedDate' },\n { path: 'modifierGroup.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a modifier group.\n */\nexport function deleteModifierGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteModifierGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.DeleteModifierGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/modifier-groups/{modifierGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteModifierGroup;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple modifier groups.\n */\nexport function bulkCreateModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateModifierGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroups.createdDate' },\n { path: 'modifierGroups.updatedDate' },\n { path: 'modifierGroups.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkCreateModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifier-groups/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.modifierGroup.createdDate' },\n { path: 'results.modifierGroup.updatedDate' },\n {\n path: 'results.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateModifierGroups;\n}\n\n/**\n * > **Note:** The Item Modifier Groups API only works with the Wix Restaurants Menus (New) app. Make sure you downloaded this app from [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple item modifier groups at once. This function supports partial updates.\n * Each time a modifier group is updated, its revision increments by 1. The existing revision must be included when updating an item modifier group. This ensures you're working with the latest item information, and prevents unintended overwrites.\n * Up to 100 modifier groups can be returned per request.\n */\nexport function bulkUpdateModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateModifierGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'modifierGroups.mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'modifierGroups.modifierGroup.createdDate' },\n { path: 'modifierGroups.modifierGroup.updatedDate' },\n {\n path: 'modifierGroups.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkUpdateModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifiers-groups/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.modifierGroup.createdDate' },\n { path: 'results.modifierGroup.updatedDate' },\n {\n path: 'results.modifierGroup.externalReferenceInfo.lastSyncDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateModifierGroups;\n}\n\nexport function bulkDeleteModifierGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteModifierGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.item_modifier_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.restaurants.menus.v1.ModifierGroupsService.BulkDeleteModifierGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixRestaurantsMenusV1ModifierGroupsServiceUrl({\n protoPath: '/v1/bulk/modifiers-groups/delete',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteModifierGroups;\n}\n","import {\n createModifierGroup as publicCreateModifierGroup,\n getModifierGroup as publicGetModifierGroup,\n listModifierGroups as publicListModifierGroups,\n queryModifierGroups as publicQueryModifierGroups,\n typedQueryModifierGroups as publicTypedQueryModifierGroups,\n countModifierGroups as publicCountModifierGroups,\n updateModifierGroup as publicUpdateModifierGroup,\n deleteModifierGroup as publicDeleteModifierGroup,\n bulkCreateModifierGroups as publicBulkCreateModifierGroups,\n bulkUpdateModifierGroups as publicBulkUpdateModifierGroups,\n bulkDeleteModifierGroups as publicBulkDeleteModifierGroups,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.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 CursorQuery,\n ModifierGroupsQueryBuilder,\n typedQueryModifierGroups as universalTypedQueryModifierGroups,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nimport { onItemModifierGroupCreated as publicOnItemModifierGroupCreated } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\nimport { onItemModifierGroupDeleted as publicOnItemModifierGroupDeleted } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\nimport { onItemModifierGroupUpdated as publicOnItemModifierGroupUpdated } from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.js';\n\nfunction customQueryModifierGroups(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: () => publicQueryModifierGroups(httpClient)(),\n typedQueryFunction: (query: CursorQuery) =>\n publicTypedQueryModifierGroups(httpClient)(query),\n hasOptionsParameter: false,\n });\n\n function overloadedQuery(): ModifierGroupsQueryBuilder;\n function overloadedQuery(\n query: CursorQuery\n ): ReturnType<typeof universalTypedQueryModifierGroups>;\n function overloadedQuery(query?: CursorQuery): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\nexport const createModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicCreateModifierGroup> &\n typeof publicCreateModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicCreateModifierGroup);\nexport const getModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicGetModifierGroup> &\n typeof publicGetModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicGetModifierGroup);\nexport const listModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicListModifierGroups> &\n typeof publicListModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicListModifierGroups);\nexport const countModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicCountModifierGroups> &\n typeof publicCountModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicCountModifierGroups);\nexport const updateModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicUpdateModifierGroup> &\n typeof publicUpdateModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicUpdateModifierGroup);\nexport const deleteModifierGroup: MaybeContext<\n BuildRESTFunction<typeof publicDeleteModifierGroup> &\n typeof publicDeleteModifierGroup\n> = /*#__PURE__*/ createRESTModule(publicDeleteModifierGroup);\nexport const bulkCreateModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateModifierGroups> &\n typeof publicBulkCreateModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateModifierGroups);\nexport const bulkUpdateModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateModifierGroups> &\n typeof publicBulkUpdateModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateModifierGroups);\nexport const bulkDeleteModifierGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteModifierGroups> &\n typeof publicBulkDeleteModifierGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteModifierGroups);\nexport const queryModifierGroups: MaybeContext<\n BuildRESTFunction<typeof customQueryModifierGroups> &\n typeof customQueryModifierGroups\n> = /*#__PURE__*/ createRESTModule(customQueryModifierGroups);\n/** */\nexport const onItemModifierGroupCreated: BuildEventDefinition<\n typeof publicOnItemModifierGroupCreated\n> &\n typeof publicOnItemModifierGroupCreated = createEventModule(\n publicOnItemModifierGroupCreated\n);\n/** */\nexport const onItemModifierGroupDeleted: BuildEventDefinition<\n typeof publicOnItemModifierGroupDeleted\n> &\n typeof publicOnItemModifierGroupDeleted = createEventModule(\n publicOnItemModifierGroupDeleted\n);\n/** */\nexport const onItemModifierGroupUpdated: BuildEventDefinition<\n typeof publicOnItemModifierGroupUpdated\n> &\n typeof publicOnItemModifierGroupUpdated = createEventModule(\n publicOnItemModifierGroupUpdated\n);\n\nexport {\n SortOrder,\n WebhookIdentityType,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nexport {\n ModifierGroup,\n Modifier,\n AdditionalChargeInfo,\n Rule,\n ExtendedFields,\n ExternalReferenceInfo,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n DeleteLocationIdsFromModifiers,\n CreateModifierGroupRequest,\n CreateModifierGroupResponse,\n GetModifierGroupRequest,\n GetModifierGroupResponse,\n ListModifierGroupRequest,\n CursorPaging,\n ListModifierGroupResponse,\n CursorPagingMetadata,\n Cursors,\n QueryModifierGroupsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QueryModifierGroupsResponse,\n CountModifierGroupsRequest,\n CountModifierGroupsResponse,\n UpdateModifierGroupRequest,\n UpdateModifierGroupResponse,\n DeleteModifierGroupRequest,\n DeleteModifierGroupResponse,\n BulkCreateModifierGroupsRequest,\n BulkCreateModifierGroupsResponse,\n BulkCreateModifierGroupsResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n BulkUpdateModifierGroupsRequest,\n MaskedModifierGroup,\n BulkUpdateModifierGroupsResponse,\n BulkUpdateModifierGroupsResult,\n BulkDeleteModifierGroupsRequest,\n BulkDeleteModifierGroupsResponse,\n BulkDeleteModifierGroupsResult,\n BulkUpdateBusinessLocationIdsRequest,\n BulkUpdateBusinessLocationIdsResponse,\n BulkUpdateBusinessLocationIdsResponseBulkItemResult,\n BulkUpdateBusinessLocationIdsPerEntityRequest,\n ModifierGroupIdLocationIds,\n BulkUpdateBusinessLocationIdsPerEntityResponse,\n BulkUpdateBusinessLocationIdsPerEntityResponseBulkItemResult,\n BulkUpdateAttachedToOrphanItemRequest,\n ModifierGroupIdAttachedToOrphanItem,\n BulkUpdateAttachedToOrphanItemResponse,\n BulkItemResult,\n AddModifiersToGroupUnlimitedRequest,\n AddModifiersToGroupUnlimitedResponse,\n CloneModifierGroupsRequest,\n CloneModifierGroupsResponse,\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 BaseEventMetadata,\n EventMetadata,\n ItemModifierGroupCreatedEnvelope,\n ItemModifierGroupDeletedEnvelope,\n ItemModifierGroupUpdatedEnvelope,\n ListModifierGroupsOptions,\n ModifierGroupsQueryResult,\n ModifierGroupsQueryBuilder,\n CountModifierGroupsOptions,\n UpdateModifierGroup,\n BulkCreateModifierGroupsOptions,\n BulkUpdateModifierGroupsOptions,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\nexport {\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CountModifierGroupsApplicationErrors,\n} from './restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACH9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,M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AAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,4CAA4C;AAAA,UACpD,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAoC;;;AG3ZpC,IAAAC,uBAAiC;AACjC,sCAAkC;AAOlC,iCAA0C;AAU1C,SAAS,0BAA0B,YAAwB;AACzD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,MAAMC,qBAA0B,UAAU,EAAE;AAAA,IAClE,oBAAoB,CAAC,UACnBC,0BAA+B,UAAU,EAAE,KAAK;AAAA,IAClD,qBAAqB;AAAA,EACvB,CAAC;AAMD,WAAS,gBAAgB,OAA0B;AACjD,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AACrD,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMV,uBAGK,2DAAiB,yBAAyB;AAErD,IAAMW,kCAG+B;AAAA,EAC1C;AACF;AAEO,IAAMC,kCAG+B;AAAA,EAC1C;AACF;AAEO,IAAMC,kCAG+B;AAAA,EAC1C;AACF;","names":["bulkCreateModifierGroups","bulkDeleteModifierGroups","bulkUpdateModifierGroups","countModifierGroups","createModifierGroup","deleteModifierGroup","getModifierGroup","listModifierGroups","onItemModifierGroupCreated","onItemModifierGroupDeleted","onItemModifierGroupUpdated","queryModifierGroups","updateModifierGroup","import_rename_all_nested_keys","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","createModifierGroup","sdkTransformError","getModifierGroup","listModifierGroups","queryModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","createModifierGroup","getModifierGroup","listModifierGroups","queryModifierGroups","typedQueryModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","import_rest_modules","queryModifierGroups","typedQueryModifierGroups","createModifierGroup","getModifierGroup","listModifierGroups","countModifierGroups","updateModifierGroup","deleteModifierGroup","bulkCreateModifierGroups","bulkUpdateModifierGroups","bulkDeleteModifierGroups","onItemModifierGroupCreated","onItemModifierGroupDeleted","onItemModifierGroupUpdated"]}