@wix/auto_sdk_stores_product-groups-v-3 1.0.2 → 1.0.3

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.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +1 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +2 -2
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/{stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.d.ts → stores-catalog-v3-product-group-product-groups-v-3.universal-B5wc7PDG.d.ts} +1 -1
  8. package/build/es/index.d.mts +2 -2
  9. package/build/es/index.mjs.map +1 -1
  10. package/build/es/index.typings.d.mts +1 -1
  11. package/build/es/index.typings.mjs.map +1 -1
  12. package/build/es/meta.d.mts +2 -2
  13. package/build/es/meta.mjs.map +1 -1
  14. package/build/es/{stores-catalog-v3-product-group-product-groups-v-3.universal-DsSjziN0.d.mts → stores-catalog-v3-product-group-product-groups-v-3.universal-B5wc7PDG.d.mts} +1 -1
  15. package/build/internal/cjs/index.d.ts +2 -2
  16. package/build/internal/cjs/index.js.map +1 -1
  17. package/build/internal/cjs/index.typings.d.ts +2 -2
  18. package/build/internal/cjs/index.typings.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +2 -2
  20. package/build/internal/cjs/meta.js.map +1 -1
  21. package/build/internal/cjs/{stores-catalog-v3-product-group-product-groups-v-3.universal-_2LkBNhE.d.ts → stores-catalog-v3-product-group-product-groups-v-3.universal-ktOUVWjS.d.ts} +1 -1
  22. package/build/internal/es/index.d.mts +2 -2
  23. package/build/internal/es/index.mjs.map +1 -1
  24. package/build/internal/es/index.typings.d.mts +2 -2
  25. package/build/internal/es/index.typings.mjs.map +1 -1
  26. package/build/internal/es/meta.d.mts +2 -2
  27. package/build/internal/es/meta.mjs.map +1 -1
  28. package/build/internal/es/{stores-catalog-v3-product-group-product-groups-v-3.universal-_2LkBNhE.d.mts → stores-catalog-v3-product-group-product-groups-v-3.universal-ktOUVWjS.d.mts} +1 -1
  29. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.universal.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.http.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.public.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.context.ts"],"sourcesContent":["export * from './src/stores-catalog-v3-product-group-product-groups-v-3.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n Search as SearchSdkType,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n SearchSpec,\n} from '@wix/sdk-types';\nimport * as ambassadorWixStoresCatalogV3ProductGroup from './stores-catalog-v3-product-group-product-groups-v-3.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\nimport { createSearchUtils } from '@wix/sdk-runtime/search-builder-utils';\n\n/**\n * A product group aggregates products that share an option or modifier (the group's grouping customization). Each member product represents a single choice of that customization, such as a different color of the same item.\n *\n * Product groups power the option-based product gallery: each variant is displayed as its own gallery card, and sibling members are linked together on the product page so site visitors can switch between choices.\n */\nexport interface ProductGroup {\n /**\n * Product group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the product group is updated. To prevent conflicting changes, the current revision must be passed when updating the product group.\n *\n * Ignored when creating a product group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the product group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the product group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Product group name. For example, `\"Classic T-Shirt\"`.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that defines the grouping attribute. For example, the ID of the `\"Color\"` option.\n *\n * Can't be changed after creation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n * @immutable\n */\n groupingCustomizationId?: string | null;\n /**\n * Ordered list of choice IDs that defines the display order of members in the storefront. Members are sorted in `members` according to this order. Choice IDs not listed here are appended after the listed ones, sorted alphabetically by choice name, with choice ID as a tiebreaker.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Members of the product group, sorted according to `choiceOrder`. Each member entry represents a product, its derived choice for the group's grouping customization, and its membership status.\n *\n * Read-only. To add or remove members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) or [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group, useful for external catalog sync systems that need a stable, externally managed identifier.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group. Unique per site. If not provided during creation, a random UUID is generated. Can't be changed after creation.\n * @minLength 1\n * @maxLength 100\n * @readonly\n * @immutable\n */\n handle?: string | null;\n /**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `groupingCustomizationId`, such as its name and render type.\n *\n * Returned only when `\"GROUPING_CUSTOMIZATION\"` is passed in the `fields` array of the request.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /** Product Group media. */\n media?: ProductGroupMedia;\n /**\n * Custom field data for the product group.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the product group. Use tags to organize and filter product groups in queries. */\n tags?: Tags;\n}\n\n/** A product's membership in a product group, including its derived choice value and current status. Member entries are populated automatically from each product's option or modifier data. */\nexport interface ProductGroupMember {\n /**\n * ID of the member product.\n * @minLength 1\n * @maxLength 36\n */\n productId?: string;\n /** Choice derived from the product's option or modifier data for the group's `groupingCustomizationId`. For example, `\"Red\"` for a `\"Color\"` grouping customization. */\n choice?: ProductChoice;\n /**\n * URL slug of the member product. Use this to build storefront links between sibling members.\n * @minLength 1\n * @maxLength 200\n */\n slug?: string | null;\n /** Inventory availability status of the member product. Use this to render out-of-stock choices as disabled. */\n inventoryAvailabilityStatus?: AvailabilityStatusWithLiterals;\n /** Membership status, indicating whether the product currently qualifies for display in the group. */\n status?: MembershipStatusWithLiterals;\n /**\n * Name of the member product.\n * @maxLength 100\n */\n productName?: string | null;\n}\n\n/** A single choice value (for example, `\"Red\"`) derived from a member product's option or modifier data for the group's grouping customization. */\nexport interface ProductChoice extends ProductChoiceValueOneOf {\n /**\n * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000`.\n * @minLength 3\n * @maxLength 20\n * @format COLOR_HEX\n */\n colorCode?: string;\n /**\n * Choice ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Choice type.\n *\n * > **Notes:**\n * > + For a `customizationRenderType` of `SWATCH_CHOICES`, the supported `choiceType` value is `ONE_COLOR`.\n * > + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is `CHOICE_TEXT`.\n * @immutable\n */\n choiceType?: ChoiceTypeWithLiterals;\n /**\n * A read-only identifier generated from the choice name.\n *\n * Use `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration).\n * @readonly\n * @minLength 1\n * @maxLength 50\n */\n key?: string | null;\n /**\n * Choice name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n}\n\n/** @oneof */\nexport interface ProductChoiceValueOneOf {\n /**\n * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000`.\n * @minLength 3\n * @maxLength 20\n * @format COLOR_HEX\n */\n colorCode?: string;\n}\n\nexport enum ChoiceType {\n /** Used for a `customizationRenderType` of `TEXT_CHOICES`. */\n CHOICE_TEXT = 'CHOICE_TEXT',\n /** Used for a `customizationRenderType` of `SWATCH_CHOICES`. */\n ONE_COLOR = 'ONE_COLOR',\n}\n\n/** @enumType */\nexport type ChoiceTypeWithLiterals = ChoiceType | 'CHOICE_TEXT' | 'ONE_COLOR';\n\nexport enum AvailabilityStatus {\n /** All variants are in stock and available for purchase. */\n IN_STOCK = 'IN_STOCK',\n /** All variants are out of stock. */\n OUT_OF_STOCK = 'OUT_OF_STOCK',\n /** Some variants are out of stock and some are in stock and available for purchase. */\n PARTIALLY_OUT_OF_STOCK = 'PARTIALLY_OUT_OF_STOCK',\n}\n\n/** @enumType */\nexport type AvailabilityStatusWithLiterals =\n | AvailabilityStatus\n | 'IN_STOCK'\n | 'OUT_OF_STOCK'\n | 'PARTIALLY_OUT_OF_STOCK';\n\nexport enum MembershipStatus {\n /** Product has exactly one choice for the group's grouping customization and is visible on the storefront. */\n ACTIVE = 'ACTIVE',\n /** Product is hidden from site visitors (its `visible` field is `false`). Returned only to callers that have the `readNonVisible` permission. */\n HIDDEN = 'HIDDEN',\n /** Product no longer qualifies for the group. For example, the grouping customization has been removed from the product, or the product has multiple choices for it. Returned only to callers that have the `readNonVisible` permission. */\n OUT_OF_SYNC = 'OUT_OF_SYNC',\n}\n\n/** @enumType */\nexport type MembershipStatusWithLiterals =\n | MembershipStatus\n | 'ACTIVE'\n | 'HIDDEN'\n | 'OUT_OF_SYNC';\n\n/**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) (option or modifier) that defines a product group's grouping attribute.\n *\n * Available on `productGroup` when `\"GROUPING_CUSTOMIZATION\"` is included in the `fields` array of the request.\n */\nexport interface GroupingCustomization {\n /**\n * Customization ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string | null;\n /**\n * A read-only identifier generated from the customization name, used in catalog reference objects.\n * @minLength 1\n * @maxLength 50\n */\n key?: string | null;\n /**\n * Customization name. For example, `\"Color\"`.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Whether the customization is a product option (creates variants) or a modifier (doesn't create variants). */\n customizationType?: CustomizationTypeWithLiterals;\n /** How the customization's choices are displayed on the storefront. */\n customizationRenderType?: CustomizationRenderTypeWithLiterals;\n}\n\nexport enum CustomizationType {\n /** Customization is a product option that creates purchasable variants. */\n PRODUCT_OPTION = 'PRODUCT_OPTION',\n /** Customization is a modifier that doesn't create variants. */\n MODIFIER = 'MODIFIER',\n}\n\n/** @enumType */\nexport type CustomizationTypeWithLiterals =\n | CustomizationType\n | 'PRODUCT_OPTION'\n | 'MODIFIER';\n\nexport enum CustomizationRenderType {\n /** Rendered as a free-text input. Not supported as a grouping customization. */\n FREE_TEXT = 'FREE_TEXT',\n /** Rendered as selectable text labels. */\n TEXT_CHOICES = 'TEXT_CHOICES',\n /** Rendered as selectable color swatches. */\n SWATCH_CHOICES = 'SWATCH_CHOICES',\n}\n\n/** @enumType */\nexport type CustomizationRenderTypeWithLiterals =\n | CustomizationRenderType\n | 'FREE_TEXT'\n | 'TEXT_CHOICES'\n | 'SWATCH_CHOICES';\n\nexport interface ProductGroupMedia\n extends ProductGroupMediaSetByOneOf,\n ProductGroupMediaMediaOneOf {\n /**\n * Set media by ID of an existing file in Wix Media Manager.\n * @minLength 1\n * @maxLength 200\n */\n _id?: string;\n /**\n * Set media using an external media URL.\n * Not implemented yet.\n * @internal\n * @format WEB_URL\n */\n url?: string;\n /**\n * Image details. Populated when media is resolved from Wix Media Manager.\n * @readonly\n */\n image?: string;\n /**\n * Image alt text.\n * @minLength 1\n * @maxLength 1000\n */\n altText?: string | null;\n /**\n * Media display name.\n *\n * Overrides the default media name. Can be passed only when the media is set by a URL in this item's `url` field.\n * @maxLength 80\n */\n displayName?: string | null;\n /**\n * Media type.\n * @readonly\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Media thumbnail.\n * > **Note:** Returned only when you pass `\"THUMBNAIL\"` to the `fields` array in Products API requests.\n * @readonly\n */\n thumbnail?: Thumbnail;\n /**\n * ID used to upload media to Wix Media Manager.\n * @readonly\n * @format GUID\n */\n uploadId?: string;\n}\n\n/** @oneof */\nexport interface ProductGroupMediaSetByOneOf {\n /**\n * Set media by ID of an existing file in Wix Media Manager.\n * @minLength 1\n * @maxLength 200\n */\n _id?: string;\n /**\n * Set media using an external media URL.\n * Not implemented yet.\n * @internal\n * @format WEB_URL\n */\n url?: string;\n}\n\n/** @oneof */\nexport interface ProductGroupMediaMediaOneOf {\n /**\n * Image details. Populated when media is resolved from Wix Media Manager.\n * @readonly\n */\n image?: string;\n}\n\nexport enum MediaType {\n /** Image media type. */\n IMAGE = 'IMAGE',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals = MediaType | 'IMAGE';\n\nexport interface Thumbnail {\n /**\n * Thumbnail url.\n * @format WEB_URL\n */\n url?: string;\n /** Thumbnail height. */\n height?: number;\n /** Thumbnail width. */\n width?: number;\n /**\n * Thumbnail alt text.\n * @minLength 1\n * @maxLength 1000\n */\n altText?: string | 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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Action event payload triggered when tags are assigned to or unassigned from a product group. */\nexport interface ProductGroupTagsModified {\n /** Updated product group. */\n productGroup?: ProductGroup;\n /** Tags that were assigned to the product group as part of this update. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the product group as part of this update. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateProductGroupRequest {\n /** Product group to create. */\n productGroup: ProductGroup;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/** Optional fields to expand on a returned product group. */\nexport enum ProductGroupRequestedFields {\n /** Expands `productGroup.groupingCustomization` with details of the customization referenced by `groupingCustomizationId`, such as its name and render type. */\n GROUPING_CUSTOMIZATION = 'GROUPING_CUSTOMIZATION',\n /** Returns an optimized thumbnail image with standard dimensions, suitable for listings or previews. */\n THUMBNAIL = 'THUMBNAIL',\n}\n\n/** @enumType */\nexport type ProductGroupRequestedFieldsWithLiterals =\n | ProductGroupRequestedFields\n | 'GROUPING_CUSTOMIZATION'\n | 'THUMBNAIL';\n\nexport interface CreateProductGroupResponse {\n /** Created product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupRequest {\n /** Product group to update. */\n productGroup: ProductGroup;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupResponse {\n /** Updated product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface DeleteProductGroupRequest {\n /**\n * ID of the product group to delete.\n * @format GUID\n */\n productGroupId: string;\n}\n\nexport interface DeleteProductGroupResponse {}\n\nexport interface GetProductGroupRequest {\n /**\n * ID of the product group to retrieve.\n * @format GUID\n */\n productGroupId: string;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface GetProductGroupResponse {\n /** Retrieved product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface QueryProductGroupsRequest {\n /** Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information. */\n query?: CursorQuery;\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\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 CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryProductGroupsResponse {\n /** Retrieved product groups. */\n productGroups?: ProductGroup[];\n /** Paging metadata. Use the cursor from this object to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /**\n * Optional fields that were expanded on each returned product group.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface SearchProductGroupsRequest {\n /** Search options, including free-text search, filtering, sorting, and cursor-based paging. */\n search?: CursorSearch;\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * UTC offset or IANA time zone. Valid values are\n * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n * and IANA time zone IDs, such as Europe/Rome.\n *\n * Affects all filters and aggregations returned values.\n * You may override this behavior in a specific filter by providing\n * timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Aggregation extends AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Sort by number of matches. */\n COUNT = 'COUNT',\n /** Sort by value of the field alphabetically. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Sort in descending order. */\n DESC = 'DESC',\n /** Sort in ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify custom bucket name. Defaults are [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n * @maxLength 20\n */\n addToBucket?: string;\n}\n\nexport enum ScalarType {\n /** Count of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Whether to sort by number of matches or value of the field. */\n sortType?: SortTypeWithLiterals;\n /** Whether to sort in ascending or descending order. */\n sortDirection?: SortDirectionWithLiterals;\n /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */\n limit?: number | null;\n /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Define the operator for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n /** Yearly interval */\n YEAR = 'YEAR',\n /** Monthly interval */\n MONTH = 'MONTH',\n /** Weekly interval */\n WEEK = 'WEEK',\n /** Daily interval */\n DAY = 'DAY',\n /** Hourly interval */\n HOUR = 'HOUR',\n /** Minute interval */\n MINUTE = 'MINUTE',\n /** Second interval */\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n | Interval\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: NestedAggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Multi-level aggregation, where each next aggregation is nested within previous one. */\n NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each next aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface SearchDetails {\n /** Defines how separate search terms in `expression` are combined. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** Any of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchProductGroupsResponse {\n /** Retrieved product groups. */\n productGroups?: ProductGroup[];\n /** Paging metadata. Use the cursor from this object to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Aggregation data computed for the search, if any aggregations were requested. */\n aggregationData?: AggregationData;\n /**\n * Optional fields that were expanded on each returned product group.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface AggregationData {\n /**\n * key = aggregation name (as derived from search request).\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number;\n}\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * User-defined name of aggregation, matches the one provided in request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that matches result. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, matches the one provided in request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in ISO 8601 format.\n * @maxLength 100\n */\n value?: string;\n /** Count of documents in the bucket. */\n count?: number;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form.\n * Aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /**\n * User-defined name of aggregation as derived from search request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that must match provided kind as derived from search request. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by as derived from search request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n}\n\nexport interface BulkCreateProductGroupsRequest {\n /**\n * Product groups to create.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: ProductGroup[];\n /**\n * Whether the response includes the created product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface BulkCreateProductGroupsResponse {\n /**\n * Per-item results, one entry per product group in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n /**\n * Optional fields that were expanded on each returned `item`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n * @format GUID\n */\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 for this item was successful. When `false`, the `error` field is returned. */\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\n/** Result of a single item in a bulk create operation. */\nexport interface BulkProductGroupResult {\n /** Metadata for the create attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n /** Created product group. Populated only when `returnEntity` is `true` and the create succeeded. */\n item?: ProductGroup;\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 BulkUpdateProductGroupsRequest {\n /**\n * Product groups to update, each with its own field mask for partial updates.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: MaskedProductGroup[];\n /**\n * Whether the response includes the updated product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/** A product group paired with its own field mask for partial updates in a bulk operation. */\nexport interface MaskedProductGroup {\n /** Product group to update. `productGroup.id` and `productGroup.revision` are required. */\n productGroup?: ProductGroup;\n}\n\nexport interface BulkUpdateProductGroupsResponse {\n /**\n * Per-item results, one entry per product group in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk update operation. */\nexport interface BulkUpdateProductGroupsResponseBulkProductGroupResult {\n /** Metadata for the update attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n /** Updated product group. Populated only when `returnEntity` is `true` and the update succeeded. */\n item?: ProductGroup;\n}\n\nexport interface AssignProductsToProductGroupRequest {\n /**\n * ID of the product group to assign products to.\n * @format GUID\n */\n productGroupId: string;\n /**\n * IDs of the products to assign. Duplicate IDs are de-duplicated. Products already in the group are skipped and returned as successes.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\nexport interface AssignProductsToProductGroupResponse {\n /** Per-product results, one entry per product ID in the request. */\n results?: ProductAssignmentResult[];\n}\n\n/** Result of assigning a single product to the group. */\nexport interface ProductAssignmentResult {\n /** ID of the product. */\n productId?: string;\n /** Whether the assignment succeeded for this product. */\n success?: boolean;\n /** Error details when the assignment failed for this product. */\n error?: ApplicationError;\n}\n\nexport interface UnassignProductsFromProductGroupRequest {\n /**\n * ID of the product group to remove products from.\n * @format GUID\n */\n productGroupId: string;\n /**\n * IDs of the products to unassign. Duplicate IDs are de-duplicated. All products must currently be members of the group.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\nexport interface UnassignProductsFromProductGroupResponse {\n /** Per-product results, one entry per product ID in the request. */\n results?: ProductUnassignmentResult[];\n}\n\n/** Result of unassigning a single product from the group. */\nexport interface ProductUnassignmentResult {\n /** ID of the product. */\n productId?: string;\n /** Whether the unassignment succeeded for this product. */\n success?: boolean;\n /** Error details when the unassignment failed for this product. */\n error?: ApplicationError;\n}\n\nexport interface BulkDeleteProductGroupsRequest {\n /**\n * IDs of the product groups to delete.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n productGroupIds: string[];\n}\n\nexport interface BulkDeleteProductGroupsResponse {\n /**\n * Per-item results, one entry per product group ID in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk delete operation. */\nexport interface BulkDeleteProductGroupsResponseBulkProductGroupResult {\n /** Metadata for the delete attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateProductGroupTagsRequest {\n /**\n * IDs of the product groups whose tags are updated.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n productGroupIds: string[];\n /** Tags to assign to each product group. */\n assignTags?: Tags;\n /** Tags to unassign from each product group. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsResponse {\n /**\n * Per-item results, one entry per product group ID in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupTagsResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk tag-update operation. */\nexport interface BulkUpdateProductGroupTagsResult {\n /** Metadata for the update attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateProductGroupTagsByFilterRequest {\n /**\n * Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n */\n filter: Record<string, any> | null;\n /** Tags to assign to each matching product group. */\n assignTags?: Tags;\n /** Tags to unassign from each matching product group. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsByFilterResponse {\n /**\n * Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) to retrieve the status of the asynchronous operation.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateProductGroupTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateProductGroupTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n * @param productGroup - Product group to create.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroup\n * @requiredField productGroup.groupingCustomizationId\n * @requiredField productGroup.name\n * @permissionId stores:catalog:v3:product_group:create_product_group\n * @applicableIdentity APP\n * @returns Created product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup\n */\nexport async function createProductGroup(\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroup: productGroup,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.createProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroup: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroup', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n * @param _id - Product group ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField productGroup\n * @requiredField productGroup.revision\n * @permissionId stores:catalog:v3:product_group:update_product_group\n * @applicableIdentity APP\n * @returns Updated product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup\n */\nexport async function updateProductGroup(\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroup: { ...productGroup, id: _id },\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.updateProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { productGroup: '$[1]' },\n explicitPathsToArguments: {\n 'productGroup.id': '$[0]',\n fields: '$[2].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'productGroup', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProductGroup {\n /**\n * Product group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the product group is updated. To prevent conflicting changes, the current revision must be passed when updating the product group.\n *\n * Ignored when creating a product group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the product group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the product group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Product group name. For example, `\"Classic T-Shirt\"`.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that defines the grouping attribute. For example, the ID of the `\"Color\"` option.\n *\n * Can't be changed after creation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n * @immutable\n */\n groupingCustomizationId?: string | null;\n /**\n * Ordered list of choice IDs that defines the display order of members in the storefront. Members are sorted in `members` according to this order. Choice IDs not listed here are appended after the listed ones, sorted alphabetically by choice name, with choice ID as a tiebreaker.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Members of the product group, sorted according to `choiceOrder`. Each member entry represents a product, its derived choice for the group's grouping customization, and its membership status.\n *\n * Read-only. To add or remove members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) or [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group, useful for external catalog sync systems that need a stable, externally managed identifier.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group. Unique per site. If not provided during creation, a random UUID is generated. Can't be changed after creation.\n * @minLength 1\n * @maxLength 100\n * @readonly\n * @immutable\n */\n handle?: string | null;\n /**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `groupingCustomizationId`, such as its name and render type.\n *\n * Returned only when `\"GROUPING_CUSTOMIZATION\"` is passed in the `fields` array of the request.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /** Product Group media. */\n media?: ProductGroupMedia;\n /**\n * Custom field data for the product group.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the product group. Use tags to organize and filter product groups in queries. */\n tags?: Tags;\n}\n\nexport interface UpdateProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n * @param productGroupId - ID of the product group to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:delete_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup\n */\nexport async function deleteProductGroup(\n productGroupId: 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 productGroupId: productGroupId,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.deleteProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param productGroupId - ID of the product group to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:get_product_group\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @returns Retrieved product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup\n */\nexport async function getProductGroup(\n productGroupId: string,\n options?: GetProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\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 productGroupId: productGroupId,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.getProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroupId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @internal\n * @documentationMaturity preview\n * @permissionId stores:catalog:v3:product_group:query_product_groups\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups\n */\nexport function queryProductGroups(\n options?: QueryProductGroupsOptions\n): ProductGroupsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ProductGroup,\n 'CURSOR',\n QueryProductGroupsRequest,\n QueryProductGroupsResponse\n >({\n func: async (payload: QueryProductGroupsRequest) => {\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.queryProductGroups({\n ...payload,\n ...(options ?? {}),\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: QueryProductGroupsRequest['query']) => {\n const args = [query, options] as [\n QueryProductGroupsRequest['query'],\n QueryProductGroupsOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryProductGroupsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n );\n\n return {\n items: transformedData?.productGroups,\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\nexport interface QueryProductGroupsOptions {\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[] | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProductGroupsQueryResult extends QueryCursorResult {\n items: ProductGroup[];\n query: ProductGroupsQueryBuilder;\n next: () => Promise<ProductGroupsQueryResult>;\n prev: () => Promise<ProductGroupsQueryResult>;\n}\n\nexport interface ProductGroupsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\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: '_id' | 'handle',\n value: string\n ) => ProductGroupsQueryBuilder;\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: (\n propertyName: '_id' | 'handle',\n value: any[]\n ) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'handle',\n value: boolean\n ) => ProductGroupsQueryBuilder;\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) => ProductGroupsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ProductGroupsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups\n * @requiredField query\n */\nexport async function typedQueryProductGroups(\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n): Promise<\n NonNullablePaths<\n QueryProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `fields`,\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 query: query,\n ...options,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.queryProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ProductGroupQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id', 'handle'];\n operators: '*';\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n ProductGroup,\n ProductGroupQuerySpec\n>;\nexport type ProductGroupQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n ProductGroup,\n ProductGroupQuerySpec,\n ProductGroupQuery\n >(),\n },\n search: {\n ...createSearchUtils<\n ProductGroup,\n ProductGroupSearchSpec,\n ProductGroupSearch\n >(),\n },\n};\n\n/**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param search - Search options, including free-text search, filtering, sorting, and cursor-based paging.\n * @internal\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId stores:catalog:v3:product_group:search_product_groups\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.SearchProductGroups\n */\nexport async function searchProductGroups(\n search: ProductGroupSearch,\n options?: SearchProductGroupsOptions\n): Promise<\n NonNullablePaths<\n SearchProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`\n | `fields`,\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 search: search,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.searchProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { search: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['search', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchProductGroupsOptions {\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface ProductGroupSearchSpec extends SearchSpec {\n searchable: ['members.productName', 'name'];\n aggregatable: [\n '_createdDate',\n '_id',\n 'groupingCustomizationId',\n 'members.productId',\n 'members.productName',\n 'name'\n ];\n paging: 'cursor';\n wql: [\n {\n operators: '*';\n fields: ['_createdDate', '_id', 'name'];\n sort: 'BOTH';\n },\n {\n operators: ['$hasAll', '$hasSome'];\n fields: ['members.productId', 'members.productName'];\n sort: 'NONE';\n },\n {\n operators: '*';\n fields: ['groupingCustomizationId'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonSearchWithEntityContext = SearchSdkType<\n ProductGroup,\n ProductGroupSearchSpec\n>;\nexport type ProductGroupSearch = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonSearchWithEntityContext['filter'] | null;\n /** \n List of sort objects.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 10 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonSearchWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];\n }[];\n /** \n Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. \n @maxSize: 10 \n */\n aggregations?: {\n /** \n Value aggregation. \n */\n value?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['value'];\n /** \n Range aggregation. \n */\n range?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['range'];\n /** \n Scalar aggregation. \n */\n scalar?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['scalar'];\n /** \n Date histogram aggregation. \n */\n dateHistogram?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['dateHistogram'];\n /** \n Nested aggregation. \n */\n nested?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['nested'];\n /** \n User-defined name of aggregation, should be unique, will appear in aggregation results. \n @maxLength: 100 \n */\n name?:\n | NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['name']\n | null;\n /** \n Type of aggregation, client must provide matching aggregation field below. \n */\n type?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['type'];\n /** \n Field to aggregate by, use dot notation to specify json path. \n @maxLength: 200 \n */\n fieldPath?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['fieldPath'];\n }[];\n /** \n Free text to match in searchable fields. \n */\n search?: {\n /** \n Defines how separate search terms in `expression` are combined. \n */\n mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];\n /** \n Search term or expression. \n @maxLength: 100 \n */\n expression?:\n | NonNullable<CommonSearchWithEntityContext['search']>['expression']\n | null;\n /** \n Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. \n @maxLength: 200,\n @maxSize: 20 \n */\n fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];\n /** \n Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). \n */\n fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];\n };\n /** \n UTC offset or IANA time zone. Valid values are\n ISO 8601 UTC offsets, such as +02:00 or -06:00,\n and IANA time zone IDs, such as Europe/Rome.\n\n Affects all filters and aggregations returned values.\n You may override this behavior in a specific filter by providing\n timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`. \n @maxLength: 50 \n */\n timeZone?: CommonSearchWithEntityContext['timeZone'] | null;\n};\n\n/**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n * @param productGroups - Product groups to create.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroups\n * @requiredField productGroups.groupingCustomizationId\n * @requiredField productGroups.name\n * @permissionId stores:catalog:v3:product_group:bulk_create_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups\n */\nexport async function bulkCreateProductGroups(\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n | `fields`,\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkCreateProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'results.item.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateProductGroupsOptions {\n /**\n * Whether the response includes the created product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n * @param productGroups - Product groups to update, each with its own field mask for partial updates.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroups\n * @requiredField productGroups.productGroup._id\n * @requiredField productGroups.productGroup.revision\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups\n */\nexport async function bulkUpdateProductGroups(\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroups.productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'results.item.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupsOptions {\n /**\n * Whether the response includes the updated product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @param productGroupId - ID of the product group to assign products to.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.productIds\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:assign_products_to_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup\n */\nexport async function assignProductsToProductGroup(\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n AssignProductsToProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\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 productGroupId: productGroupId,\n productIds: options?.productIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.assignProductsToProductGroup(\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 productGroupId: '$[0]',\n productIds: '$[1].productIds',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AssignProductsToProductGroupOptions {\n /**\n * IDs of the products to assign. Duplicate IDs are de-duplicated. Products already in the group are skipped and returned as successes.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\n/**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n * @param productGroupId - ID of the product group to remove products from.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.productIds\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:unassign_products_from_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup\n */\nexport async function unassignProductsFromProductGroup(\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n UnassignProductsFromProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\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 productGroupId: productGroupId,\n productIds: options?.productIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.unassignProductsFromProductGroup(\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 productGroupId: '$[0]',\n productIds: '$[1].productIds',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UnassignProductsFromProductGroupOptions {\n /**\n * IDs of the products to unassign. Duplicate IDs are de-duplicated. All products must currently be members of the group.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\n/**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n * @param productGroupIds - IDs of the product groups to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupIds\n * @permissionId stores:catalog:v3:product_group:bulk_delete_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups\n */\nexport async function bulkDeleteProductGroups(\n productGroupIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteProductGroupsResponse,\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({\n productGroupIds: productGroupIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkDeleteProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productGroupIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productGroupIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n * @param productGroupIds - IDs of the product groups whose tags are updated.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupIds\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags\n */\nexport async function bulkUpdateProductGroupTags(\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupTagsResponse,\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 __applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;\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 productGroupIds: productGroupIds,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroupTags(\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 productGroupIds: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupTagsOptions {\n /** Tags to assign to each product group. */\n assignTags?: Tags;\n /** Tags to unassign from each product group. */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n * @param filter - Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags_by_filter\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter\n */\nexport async function bulkUpdateProductGroupTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;\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 filter: filter,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroupTagsByFilter(\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 filter: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['filter', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupTagsByFilterOptions {\n /** Tags to assign to each matching product group. */\n assignTags?: Tags;\n /** Tags to unassign from each matching product group. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/product-group',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/stores/v3/product-groups',\n destPath: '/v3/product-groups',\n },\n {\n srcPath: '/stores/v3/bulk/product-groups',\n destPath: '/v3/bulk/product-groups',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_stores_product-groups-v-3';\n\n/**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n */\nexport function createProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __createProductGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProductGroup;\n}\n\n/**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n */\nexport function updateProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateProductGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroup.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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProductGroup;\n}\n\n/**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n */\nexport function deleteProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProductGroup;\n}\n\n/**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function getProductGroup(payload: object): RequestOptionsFactory<any> {\n function __getProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroupId}',\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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProductGroup;\n}\n\n/**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function queryProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryProductGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryProductGroups;\n}\n\n/**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function searchProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.SearchProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/search',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n },\n ],\n };\n\n return metadata;\n }\n\n return __searchProductGroups;\n}\n\n/**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n */\nexport function bulkCreateProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-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.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProductGroups;\n}\n\n/**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n */\nexport function bulkUpdateProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'productGroups.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroups.productGroup.createdDate' },\n { path: 'productGroups.productGroup.updatedDate' },\n { path: 'productGroups.productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-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.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroups;\n}\n\n/**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n */\nexport function assignProductsToProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __assignProductsToProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/assign-products',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignProductsToProductGroup;\n}\n\n/**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n */\nexport function unassignProductsFromProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __unassignProductsFromProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/unassign-products',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __unassignProductsFromProductGroup;\n}\n\n/**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n */\nexport function bulkDeleteProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProductGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteProductGroups;\n}\n\n/**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n */\nexport function bulkUpdateProductGroupTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroupTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroupTags;\n}\n\n/**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n */\nexport function bulkUpdateProductGroupTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroupTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroupTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AssignProductsToProductGroupOptions,\n AssignProductsToProductGroupResponse,\n BulkCreateProductGroupsOptions,\n BulkCreateProductGroupsResponse,\n BulkDeleteProductGroupsResponse,\n BulkUpdateProductGroupTagsApplicationErrors,\n BulkUpdateProductGroupTagsByFilterApplicationErrors,\n BulkUpdateProductGroupTagsByFilterOptions,\n BulkUpdateProductGroupTagsByFilterResponse,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupsOptions,\n BulkUpdateProductGroupsResponse,\n CreateProductGroupOptions,\n GetProductGroupOptions,\n MaskedProductGroup,\n ProductGroup,\n ProductGroupQuery,\n ProductGroupSearch,\n ProductGroupsQueryBuilder,\n QueryProductGroupsOptions,\n QueryProductGroupsResponse,\n SearchProductGroupsOptions,\n SearchProductGroupsResponse,\n UnassignProductsFromProductGroupOptions,\n UnassignProductsFromProductGroupResponse,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n assignProductsToProductGroup as universalAssignProductsToProductGroup,\n bulkCreateProductGroups as universalBulkCreateProductGroups,\n bulkDeleteProductGroups as universalBulkDeleteProductGroups,\n bulkUpdateProductGroupTags as universalBulkUpdateProductGroupTags,\n bulkUpdateProductGroupTagsByFilter as universalBulkUpdateProductGroupTagsByFilter,\n bulkUpdateProductGroups as universalBulkUpdateProductGroups,\n createProductGroup as universalCreateProductGroup,\n deleteProductGroup as universalDeleteProductGroup,\n getProductGroup as universalGetProductGroup,\n queryProductGroups as universalQueryProductGroups,\n searchProductGroups as universalSearchProductGroups,\n typedQueryProductGroups as universalTypedQueryProductGroups,\n unassignProductsFromProductGroup as universalUnassignProductsFromProductGroup,\n updateProductGroup as universalUpdateProductGroup,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/stores' };\n\n/** @internal */\nexport function createProductGroup(\n httpClient: HttpClient\n): CreateProductGroupSignature {\n return (\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n ) =>\n universalCreateProductGroup(\n productGroup,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateProductGroupSignature {\n /**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n * @param - Product group to create.\n * @returns Created product group.\n */\n (\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n ): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function updateProductGroup(\n httpClient: HttpClient\n): UpdateProductGroupSignature {\n return (\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n ) =>\n universalUpdateProductGroup(\n _id,\n productGroup,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateProductGroupSignature {\n /**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n * @param - Product group ID.\n * @returns Updated product group.\n */\n (\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n ): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function deleteProductGroup(\n httpClient: HttpClient\n): DeleteProductGroupSignature {\n return (productGroupId: string) =>\n universalDeleteProductGroup(\n productGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteProductGroupSignature {\n /**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n * @param - ID of the product group to delete.\n */\n (productGroupId: string): Promise<void>;\n}\n\n/** @internal */\nexport function getProductGroup(\n httpClient: HttpClient\n): GetProductGroupSignature {\n return (productGroupId: string, options?: GetProductGroupOptions) =>\n universalGetProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetProductGroupSignature {\n /**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param - ID of the product group to retrieve.\n * @returns Retrieved product group.\n */\n (productGroupId: string, options?: GetProductGroupOptions): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function queryProductGroups(\n httpClient: HttpClient\n): QueryProductGroupsSignature {\n return (options?: QueryProductGroupsOptions) =>\n universalQueryProductGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryProductGroupsSignature {\n /**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\n (options?: QueryProductGroupsOptions): ProductGroupsQueryBuilder;\n}\n\nexport function typedQueryProductGroups(\n httpClient: HttpClient\n): TypedQueryProductGroupsSignature {\n return (query: ProductGroupQuery, options?: QueryProductGroupsOptions) =>\n universalTypedQueryProductGroups(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryProductGroupsSignature {\n /** */\n (query: ProductGroupQuery, options?: QueryProductGroupsOptions): Promise<\n NonNullablePaths<\n QueryProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function searchProductGroups(\n httpClient: HttpClient\n): SearchProductGroupsSignature {\n return (search: ProductGroupSearch, options?: SearchProductGroupsOptions) =>\n universalSearchProductGroups(\n search,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchProductGroupsSignature {\n /**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param - Search options, including free-text search, filtering, sorting, and cursor-based paging.\n */\n (search: ProductGroupSearch, options?: SearchProductGroupsOptions): Promise<\n NonNullablePaths<\n SearchProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function bulkCreateProductGroups(\n httpClient: HttpClient\n): BulkCreateProductGroupsSignature {\n return (\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n ) =>\n universalBulkCreateProductGroups(\n productGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateProductGroupsSignature {\n /**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n * @param - Product groups to create.\n */\n (\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function bulkUpdateProductGroups(\n httpClient: HttpClient\n): BulkUpdateProductGroupsSignature {\n return (\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n ) =>\n universalBulkUpdateProductGroups(\n productGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupsSignature {\n /**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n * @param - Product groups to update, each with its own field mask for partial updates.\n */\n (\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function assignProductsToProductGroup(\n httpClient: HttpClient\n): AssignProductsToProductGroupSignature {\n return (\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n ) =>\n universalAssignProductsToProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AssignProductsToProductGroupSignature {\n /**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @param - ID of the product group to assign products to.\n */\n (\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n AssignProductsToProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function unassignProductsFromProductGroup(\n httpClient: HttpClient\n): UnassignProductsFromProductGroupSignature {\n return (\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n ) =>\n universalUnassignProductsFromProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UnassignProductsFromProductGroupSignature {\n /**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n * @param - ID of the product group to remove products from.\n */\n (\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n UnassignProductsFromProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function bulkDeleteProductGroups(\n httpClient: HttpClient\n): BulkDeleteProductGroupsSignature {\n return (productGroupIds: string[]) =>\n universalBulkDeleteProductGroups(\n productGroupIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteProductGroupsSignature {\n /**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n * @param - IDs of the product groups to delete.\n */\n (productGroupIds: string[]): Promise<\n NonNullablePaths<\n BulkDeleteProductGroupsResponse,\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\n/** @internal */\nexport function bulkUpdateProductGroupTags(\n httpClient: HttpClient\n): BulkUpdateProductGroupTagsSignature {\n return (\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n ) =>\n universalBulkUpdateProductGroupTags(\n productGroupIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupTagsSignature {\n /**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n * @param - IDs of the product groups whose tags are updated.\n */\n (\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupTagsResponse,\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 __applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function bulkUpdateProductGroupTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateProductGroupTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n ) =>\n universalBulkUpdateProductGroupTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupTagsByFilterSignature {\n /**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n * @param - Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n Aggregation,\n AggregationData,\n AggregationKindOneOf,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarResult,\n AggregationType,\n ApplicationError,\n AssignProductsToProductGroupOptions,\n AssignProductsToProductGroupRequest,\n AssignProductsToProductGroupResponse,\n AvailabilityStatus,\n BulkActionMetadata,\n BulkCreateProductGroupsOptions,\n BulkCreateProductGroupsRequest,\n BulkCreateProductGroupsResponse,\n BulkDeleteProductGroupsRequest,\n BulkDeleteProductGroupsResponse,\n BulkDeleteProductGroupsResponseBulkProductGroupResult,\n BulkProductGroupResult,\n BulkUpdateProductGroupTagsByFilterOptions,\n BulkUpdateProductGroupTagsByFilterRequest,\n BulkUpdateProductGroupTagsByFilterResponse,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsRequest,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupTagsResult,\n BulkUpdateProductGroupsOptions,\n BulkUpdateProductGroupsRequest,\n BulkUpdateProductGroupsResponse,\n BulkUpdateProductGroupsResponseBulkProductGroupResult,\n ChoiceType,\n CreateProductGroupOptions,\n CreateProductGroupRequest,\n CreateProductGroupResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Cursors,\n CustomizationRenderType,\n CustomizationType,\n DateHistogramAggregation,\n DateHistogramResult,\n DateHistogramResults,\n DeleteProductGroupRequest,\n DeleteProductGroupResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetProductGroupOptions,\n GetProductGroupRequest,\n GetProductGroupResponse,\n GroupByValueResults,\n GroupingCustomization,\n IdentificationData,\n IdentificationDataIdOneOf,\n IncludeMissingValuesOptions,\n Interval,\n ItemMetadata,\n MaskedProductGroup,\n MediaType,\n MembershipStatus,\n MessageEnvelope,\n MissingValues,\n Mode,\n NestedAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedAggregationType,\n NestedResultValue,\n NestedResultValueResultOneOf,\n NestedResults,\n NestedValueAggregationResult,\n ProductAssignmentResult,\n ProductChoice,\n ProductChoiceValueOneOf,\n ProductGroup,\n ProductGroupMedia,\n ProductGroupMediaMediaOneOf,\n ProductGroupMediaSetByOneOf,\n ProductGroupMember,\n ProductGroupQuerySpec,\n ProductGroupRequestedFields,\n ProductGroupSearchSpec,\n ProductGroupTagsModified,\n ProductGroupsQueryBuilder,\n ProductGroupsQueryResult,\n ProductUnassignmentResult,\n QueryProductGroupsOptions,\n QueryProductGroupsRequest,\n QueryProductGroupsResponse,\n RangeAggregation,\n RangeAggregationResult,\n RangeBucket,\n RangeResult,\n RangeResults,\n RestoreInfo,\n Results,\n ScalarAggregation,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchProductGroupsOptions,\n SearchProductGroupsRequest,\n SearchProductGroupsResponse,\n SortDirection,\n SortOrder,\n SortType,\n Sorting,\n TagList,\n Tags,\n Thumbnail,\n UnassignProductsFromProductGroupOptions,\n UnassignProductsFromProductGroupRequest,\n UnassignProductsFromProductGroupResponse,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n UpdateProductGroupRequest,\n UpdateProductGroupResponse,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n ValueAggregationResult,\n ValueResult,\n ValueResults,\n WebhookIdentityType,\n utils,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n","import {\n createProductGroup as publicCreateProductGroup,\n updateProductGroup as publicUpdateProductGroup,\n deleteProductGroup as publicDeleteProductGroup,\n getProductGroup as publicGetProductGroup,\n queryProductGroups as publicQueryProductGroups,\n typedQueryProductGroups as publicTypedQueryProductGroups,\n searchProductGroups as publicSearchProductGroups,\n bulkCreateProductGroups as publicBulkCreateProductGroups,\n bulkUpdateProductGroups as publicBulkUpdateProductGroups,\n assignProductsToProductGroup as publicAssignProductsToProductGroup,\n unassignProductsFromProductGroup as publicUnassignProductsFromProductGroup,\n bulkDeleteProductGroups as publicBulkDeleteProductGroups,\n bulkUpdateProductGroupTags as publicBulkUpdateProductGroupTags,\n bulkUpdateProductGroupTagsByFilter as publicBulkUpdateProductGroupTagsByFilter,\n} from './stores-catalog-v3-product-group-product-groups-v-3.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n ProductGroupQuery,\n ProductGroupsQueryBuilder,\n QueryProductGroupsOptions,\n typedQueryProductGroups as universalTypedQueryProductGroups,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n\nfunction customQueryProductGroups(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryProductGroupsOptions) =>\n publicQueryProductGroups(httpClient)(options),\n typedQueryFunction: (\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n ) => publicTypedQueryProductGroups(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n ): ReturnType<typeof universalTypedQueryProductGroups>;\n function overloadedQuery(\n options?: QueryProductGroupsOptions\n ): ProductGroupsQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: ProductGroupQuery | QueryProductGroupsOptions,\n options?: QueryProductGroupsOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\n/** @internal */\nexport const createProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicCreateProductGroup> &\n typeof publicCreateProductGroup\n> = /*#__PURE__*/ createRESTModule(publicCreateProductGroup);\n/** @internal */\nexport const updateProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicUpdateProductGroup> &\n typeof publicUpdateProductGroup\n> = /*#__PURE__*/ createRESTModule(publicUpdateProductGroup);\n/** @internal */\nexport const deleteProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicDeleteProductGroup> &\n typeof publicDeleteProductGroup\n> = /*#__PURE__*/ createRESTModule(publicDeleteProductGroup);\n/** @internal */\nexport const getProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicGetProductGroup> & typeof publicGetProductGroup\n> = /*#__PURE__*/ createRESTModule(publicGetProductGroup);\n/** @internal */\nexport const searchProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicSearchProductGroups> &\n typeof publicSearchProductGroups\n> = /*#__PURE__*/ createRESTModule(publicSearchProductGroups);\n/** @internal */\nexport const bulkCreateProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateProductGroups> &\n typeof publicBulkCreateProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateProductGroups);\n/** @internal */\nexport const bulkUpdateProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroups> &\n typeof publicBulkUpdateProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroups);\n/** @internal */\nexport const assignProductsToProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicAssignProductsToProductGroup> &\n typeof publicAssignProductsToProductGroup\n> = /*#__PURE__*/ createRESTModule(publicAssignProductsToProductGroup);\n/** @internal */\nexport const unassignProductsFromProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicUnassignProductsFromProductGroup> &\n typeof publicUnassignProductsFromProductGroup\n> = /*#__PURE__*/ createRESTModule(publicUnassignProductsFromProductGroup);\n/** @internal */\nexport const bulkDeleteProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteProductGroups> &\n typeof publicBulkDeleteProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteProductGroups);\n/** @internal */\nexport const bulkUpdateProductGroupTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroupTags> &\n typeof publicBulkUpdateProductGroupTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroupTags);\n/** @internal */\nexport const bulkUpdateProductGroupTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroupTagsByFilter> &\n typeof publicBulkUpdateProductGroupTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroupTagsByFilter);\nexport const queryProductGroups: MaybeContext<\n BuildRESTFunction<typeof customQueryProductGroups> &\n typeof customQueryProductGroups\n> = /*#__PURE__*/ createRESTModule(customQueryProductGroups);\n\nexport {\n ChoiceType,\n AvailabilityStatus,\n MembershipStatus,\n CustomizationType,\n CustomizationRenderType,\n MediaType,\n ProductGroupRequestedFields,\n SortOrder,\n SortType,\n SortDirection,\n MissingValues,\n ScalarType,\n NestedAggregationType,\n Interval,\n AggregationType,\n Mode,\n WebhookIdentityType,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport {\n ProductGroup,\n ProductGroupMember,\n ProductChoice,\n ProductChoiceValueOneOf,\n GroupingCustomization,\n ProductGroupMedia,\n ProductGroupMediaSetByOneOf,\n ProductGroupMediaMediaOneOf,\n Thumbnail,\n ExtendedFields,\n Tags,\n TagList,\n ProductGroupTagsModified,\n CreateProductGroupRequest,\n CreateProductGroupResponse,\n UpdateProductGroupRequest,\n UpdateProductGroupResponse,\n DeleteProductGroupRequest,\n DeleteProductGroupResponse,\n GetProductGroupRequest,\n GetProductGroupResponse,\n QueryProductGroupsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryProductGroupsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchProductGroupsRequest,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Aggregation,\n AggregationKindOneOf,\n RangeBucket,\n IncludeMissingValuesOptions,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n RangeAggregation,\n ScalarAggregation,\n DateHistogramAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregation,\n SearchDetails,\n SearchProductGroupsResponse,\n AggregationData,\n ValueAggregationResult,\n RangeAggregationResult,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n ValueResults,\n RangeResults,\n AggregationResultsScalarResult,\n NestedValueAggregationResult,\n ValueResult,\n RangeResult,\n ScalarResult,\n NestedResultValue,\n NestedResultValueResultOneOf,\n Results,\n DateHistogramResult,\n GroupByValueResults,\n DateHistogramResults,\n NestedResults,\n AggregationResults,\n AggregationResultsResultOneOf,\n BulkCreateProductGroupsRequest,\n BulkCreateProductGroupsResponse,\n ItemMetadata,\n ApplicationError,\n BulkProductGroupResult,\n BulkActionMetadata,\n BulkUpdateProductGroupsRequest,\n MaskedProductGroup,\n BulkUpdateProductGroupsResponse,\n BulkUpdateProductGroupsResponseBulkProductGroupResult,\n AssignProductsToProductGroupRequest,\n AssignProductsToProductGroupResponse,\n ProductAssignmentResult,\n UnassignProductsFromProductGroupRequest,\n UnassignProductsFromProductGroupResponse,\n ProductUnassignmentResult,\n BulkDeleteProductGroupsRequest,\n BulkDeleteProductGroupsResponse,\n BulkDeleteProductGroupsResponseBulkProductGroupResult,\n BulkUpdateProductGroupTagsRequest,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupTagsResult,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n BulkUpdateProductGroupTagsByFilterRequest,\n BulkUpdateProductGroupTagsByFilterResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n CreateProductGroupOptions,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n GetProductGroupOptions,\n QueryProductGroupsOptions,\n ProductGroupsQueryResult,\n ProductGroupsQueryBuilder,\n ProductGroupQuerySpec,\n SearchProductGroupsOptions,\n ProductGroupSearchSpec,\n BulkCreateProductGroupsOptions,\n BulkUpdateProductGroupsOptions,\n AssignProductsToProductGroupOptions,\n UnassignProductsFromProductGroupOptions,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsByFilterOptions,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport { utils } from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport {\n ChoiceTypeWithLiterals,\n AvailabilityStatusWithLiterals,\n MembershipStatusWithLiterals,\n CustomizationTypeWithLiterals,\n CustomizationRenderTypeWithLiterals,\n MediaTypeWithLiterals,\n ProductGroupRequestedFieldsWithLiterals,\n SortOrderWithLiterals,\n SortTypeWithLiterals,\n SortDirectionWithLiterals,\n MissingValuesWithLiterals,\n ScalarTypeWithLiterals,\n NestedAggregationTypeWithLiterals,\n IntervalWithLiterals,\n AggregationTypeWithLiterals,\n ModeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateProductGroupTagsApplicationErrors,\n BulkUpdateProductGroupTagsByFilterApplicationErrors,\n CommonQueryWithEntityContext,\n ProductGroupQuery,\n CommonSearchWithEntityContext,\n ProductGroupSearch,\n}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AElE,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAEzD,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAE5D,IAAMC,sCAGK,2DAAiBA,mCAAwC;AACpE,IAAMb,sBAGK,2DAAiB,wBAAwB;","names":["assignProductsToProductGroup","bulkCreateProductGroups","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","bulkUpdateProductGroups","createProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","searchProductGroups","unassignProductsFromProductGroup","updateProductGroup","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ChoiceType","AvailabilityStatus","MembershipStatus","CustomizationType","CustomizationRenderType","MediaType","ProductGroupRequestedFields","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","WebhookIdentityType","createProductGroup","sdkTransformError","updateProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","createProductGroup","updateProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","typedQueryProductGroups","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","import_rest_modules","queryProductGroups","typedQueryProductGroups","createProductGroup","updateProductGroup","deleteProductGroup","getProductGroup","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.universal.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.http.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.public.ts","../../src/stores-catalog-v3-product-group-product-groups-v-3.context.ts"],"sourcesContent":["export * from './src/stores-catalog-v3-product-group-product-groups-v-3.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n Search as SearchSdkType,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n SearchSpec,\n} from '@wix/sdk-types';\nimport * as ambassadorWixStoresCatalogV3ProductGroup from './stores-catalog-v3-product-group-product-groups-v-3.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\nimport { createSearchUtils } from '@wix/sdk-runtime/search-builder-utils';\n\n/**\n * A product group aggregates products that share an option or modifier (the group's grouping customization). Each member product represents a single choice of that customization, such as a different color of the same item.\n *\n * Product groups power the option-based product gallery: each variant is displayed as its own gallery card, and sibling members are linked together on the product page so site visitors can switch between choices.\n */\nexport interface ProductGroup {\n /**\n * Product group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the product group is updated. To prevent conflicting changes, the current revision must be passed when updating the product group.\n *\n * Ignored when creating a product group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the product group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the product group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Product group name. For example, `\"Classic T-Shirt\"`.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that defines the grouping attribute. For example, the ID of the `\"Color\"` option.\n *\n * Can't be changed after creation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n * @immutable\n */\n groupingCustomizationId?: string | null;\n /**\n * Ordered list of choice IDs that defines the display order of members in the storefront. Members are sorted in `members` according to this order. Choice IDs not listed here are appended after the listed ones, sorted alphabetically by choice name, with choice ID as a tiebreaker.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Members of the product group, sorted according to `choiceOrder`. Each member entry represents a product, its derived choice for the group's grouping customization, and its membership status.\n *\n * Read-only. To add or remove members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) or [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group, useful for external catalog sync systems that need a stable, externally managed identifier.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group. Unique per site. If not provided during creation, a random UUID is generated. Can't be changed after creation.\n * @minLength 1\n * @maxLength 100\n * @readonly\n * @immutable\n */\n handle?: string | null;\n /**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `groupingCustomizationId`, such as its name and render type.\n *\n * Returned only when `\"GROUPING_CUSTOMIZATION\"` is passed in the `fields` array of the request.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /** Product Group media. */\n media?: ProductGroupMedia;\n /**\n * Custom field data for the product group.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the product group. Use tags to organize and filter product groups in queries. */\n tags?: Tags;\n}\n\n/** A product's membership in a product group, including its derived choice value and current status. Member entries are populated automatically from each product's option or modifier data. */\nexport interface ProductGroupMember {\n /**\n * ID of the member product.\n * @minLength 1\n * @maxLength 36\n */\n productId?: string;\n /** Choice derived from the product's option or modifier data for the group's `groupingCustomizationId`. For example, `\"Red\"` for a `\"Color\"` grouping customization. */\n choice?: ProductChoice;\n /**\n * URL slug of the member product. Use this to build storefront links between sibling members.\n * @minLength 1\n * @maxLength 200\n */\n slug?: string | null;\n /** Inventory availability status of the member product. Use this to render out-of-stock choices as disabled. */\n inventoryAvailabilityStatus?: AvailabilityStatusWithLiterals;\n /** Membership status, indicating whether the product currently qualifies for display in the group. */\n status?: MembershipStatusWithLiterals;\n /**\n * Name of the member product.\n * @maxLength 100\n */\n productName?: string | null;\n}\n\n/** A single choice value (for example, `\"Red\"`) derived from a member product's option or modifier data for the group's grouping customization. */\nexport interface ProductChoice extends ProductChoiceValueOneOf {\n /**\n * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000`.\n * @minLength 3\n * @maxLength 20\n * @format COLOR_HEX\n */\n colorCode?: string;\n /**\n * Choice ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Choice type.\n *\n * > **Notes:**\n * > + For a `customizationRenderType` of `SWATCH_CHOICES`, the supported `choiceType` value is `ONE_COLOR`.\n * > + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is `CHOICE_TEXT`.\n * @immutable\n */\n choiceType?: ChoiceTypeWithLiterals;\n /**\n * A read-only identifier generated from the choice name.\n *\n * Use `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration).\n * @readonly\n * @minLength 1\n * @maxLength 50\n */\n key?: string | null;\n /**\n * Choice name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n}\n\n/** @oneof */\nexport interface ProductChoiceValueOneOf {\n /**\n * Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color). For example, `#FF0000`.\n * @minLength 3\n * @maxLength 20\n * @format COLOR_HEX\n */\n colorCode?: string;\n}\n\nexport enum ChoiceType {\n /** Used for a `customizationRenderType` of `TEXT_CHOICES`. */\n CHOICE_TEXT = 'CHOICE_TEXT',\n /** Used for a `customizationRenderType` of `SWATCH_CHOICES`. */\n ONE_COLOR = 'ONE_COLOR',\n}\n\n/** @enumType */\nexport type ChoiceTypeWithLiterals = ChoiceType | 'CHOICE_TEXT' | 'ONE_COLOR';\n\nexport enum AvailabilityStatus {\n /** All variants are in stock and available for purchase. */\n IN_STOCK = 'IN_STOCK',\n /** All variants are out of stock. */\n OUT_OF_STOCK = 'OUT_OF_STOCK',\n /** Some variants are out of stock and some are in stock and available for purchase. */\n PARTIALLY_OUT_OF_STOCK = 'PARTIALLY_OUT_OF_STOCK',\n}\n\n/** @enumType */\nexport type AvailabilityStatusWithLiterals =\n | AvailabilityStatus\n | 'IN_STOCK'\n | 'OUT_OF_STOCK'\n | 'PARTIALLY_OUT_OF_STOCK';\n\nexport enum MembershipStatus {\n /** Product has exactly one choice for the group's grouping customization and is visible on the storefront. */\n ACTIVE = 'ACTIVE',\n /** Product is hidden from site visitors (its `visible` field is `false`). Returned only to callers that have the `readNonVisible` permission. */\n HIDDEN = 'HIDDEN',\n /** Product no longer qualifies for the group. For example, the grouping customization has been removed from the product, or the product has multiple choices for it. Returned only to callers that have the `readNonVisible` permission. */\n OUT_OF_SYNC = 'OUT_OF_SYNC',\n}\n\n/** @enumType */\nexport type MembershipStatusWithLiterals =\n | MembershipStatus\n | 'ACTIVE'\n | 'HIDDEN'\n | 'OUT_OF_SYNC';\n\n/**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) (option or modifier) that defines a product group's grouping attribute.\n *\n * Available on `productGroup` when `\"GROUPING_CUSTOMIZATION\"` is included in the `fields` array of the request.\n */\nexport interface GroupingCustomization {\n /**\n * Customization ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string | null;\n /**\n * A read-only identifier generated from the customization name, used in catalog reference objects.\n * @minLength 1\n * @maxLength 50\n */\n key?: string | null;\n /**\n * Customization name. For example, `\"Color\"`.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Whether the customization is a product option (creates variants) or a modifier (doesn't create variants). */\n customizationType?: CustomizationTypeWithLiterals;\n /** How the customization's choices are displayed on the storefront. */\n customizationRenderType?: CustomizationRenderTypeWithLiterals;\n}\n\nexport enum CustomizationType {\n /** Customization is a product option that creates purchasable variants. */\n PRODUCT_OPTION = 'PRODUCT_OPTION',\n /** Customization is a modifier that doesn't create variants. */\n MODIFIER = 'MODIFIER',\n}\n\n/** @enumType */\nexport type CustomizationTypeWithLiterals =\n | CustomizationType\n | 'PRODUCT_OPTION'\n | 'MODIFIER';\n\nexport enum CustomizationRenderType {\n /** Rendered as a free-text input. Not supported as a grouping customization. */\n FREE_TEXT = 'FREE_TEXT',\n /** Rendered as selectable text labels. */\n TEXT_CHOICES = 'TEXT_CHOICES',\n /** Rendered as selectable color swatches. */\n SWATCH_CHOICES = 'SWATCH_CHOICES',\n}\n\n/** @enumType */\nexport type CustomizationRenderTypeWithLiterals =\n | CustomizationRenderType\n | 'FREE_TEXT'\n | 'TEXT_CHOICES'\n | 'SWATCH_CHOICES';\n\nexport interface ProductGroupMedia\n extends ProductGroupMediaSetByOneOf,\n ProductGroupMediaMediaOneOf {\n /**\n * Set media by ID of an existing file in Wix Media Manager.\n * @minLength 1\n * @maxLength 200\n */\n _id?: string;\n /**\n * Set media using an external media URL.\n * Not implemented yet.\n * @internal\n * @format WEB_URL\n */\n url?: string;\n /**\n * Image details. Populated when media is resolved from Wix Media Manager.\n * @readonly\n */\n image?: string;\n /**\n * Image alt text.\n * @minLength 1\n * @maxLength 1000\n */\n altText?: string | null;\n /**\n * Media display name.\n *\n * Overrides the default media name. Can be passed only when the media is set by a URL in this item's `url` field.\n * @maxLength 80\n */\n displayName?: string | null;\n /**\n * Media type.\n * @readonly\n */\n mediaType?: MediaTypeWithLiterals;\n /**\n * Media thumbnail.\n * > **Note:** Returned only when you pass `\"THUMBNAIL\"` to the `fields` array in Products API requests.\n * @readonly\n */\n thumbnail?: Thumbnail;\n /**\n * ID used to upload media to Wix Media Manager.\n * @readonly\n * @format GUID\n */\n uploadId?: string;\n}\n\n/** @oneof */\nexport interface ProductGroupMediaSetByOneOf {\n /**\n * Set media by ID of an existing file in Wix Media Manager.\n * @minLength 1\n * @maxLength 200\n */\n _id?: string;\n /**\n * Set media using an external media URL.\n * Not implemented yet.\n * @internal\n * @format WEB_URL\n */\n url?: string;\n}\n\n/** @oneof */\nexport interface ProductGroupMediaMediaOneOf {\n /**\n * Image details. Populated when media is resolved from Wix Media Manager.\n * @readonly\n */\n image?: string;\n}\n\nexport enum MediaType {\n /** Image media type. */\n IMAGE = 'IMAGE',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals = MediaType | 'IMAGE';\n\nexport interface Thumbnail {\n /**\n * Thumbnail url.\n * @format WEB_URL\n */\n url?: string;\n /** Thumbnail height. */\n height?: number;\n /** Thumbnail width. */\n width?: number;\n /**\n * Thumbnail alt text.\n * @minLength 1\n * @maxLength 1000\n */\n altText?: string | 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\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * option (.wix.api.decomposite_of) = \"wix.commons.v2.tags.Foo\";\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * public_tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n publicTags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs.\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\n/** Action event payload triggered when tags are assigned to or unassigned from a product group. */\nexport interface ProductGroupTagsModified {\n /** Updated product group. */\n productGroup?: ProductGroup;\n /** Tags that were assigned to the product group as part of this update. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the product group as part of this update. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateProductGroupRequest {\n /** Product group to create. */\n productGroup: ProductGroup;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/** Optional fields to expand on a returned product group. */\nexport enum ProductGroupRequestedFields {\n /** Expands `productGroup.groupingCustomization` with details of the customization referenced by `groupingCustomizationId`, such as its name and render type. */\n GROUPING_CUSTOMIZATION = 'GROUPING_CUSTOMIZATION',\n /** Returns an optimized thumbnail image with standard dimensions, suitable for listings or previews. */\n THUMBNAIL = 'THUMBNAIL',\n}\n\n/** @enumType */\nexport type ProductGroupRequestedFieldsWithLiterals =\n | ProductGroupRequestedFields\n | 'GROUPING_CUSTOMIZATION'\n | 'THUMBNAIL';\n\nexport interface CreateProductGroupResponse {\n /** Created product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupRequest {\n /** Product group to update. */\n productGroup: ProductGroup;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupResponse {\n /** Updated product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface DeleteProductGroupRequest {\n /**\n * ID of the product group to delete.\n * @format GUID\n */\n productGroupId: string;\n}\n\nexport interface DeleteProductGroupResponse {}\n\nexport interface GetProductGroupRequest {\n /**\n * ID of the product group to retrieve.\n * @format GUID\n */\n productGroupId: string;\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface GetProductGroupResponse {\n /** Retrieved product group. */\n productGroup?: ProductGroup;\n /**\n * Optional fields that were expanded on the returned `productGroup`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface QueryProductGroupsRequest {\n /** Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information. */\n query?: CursorQuery;\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\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 CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryProductGroupsResponse {\n /** Retrieved product groups. */\n productGroups?: ProductGroup[];\n /** Paging metadata. Use the cursor from this object to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /**\n * Optional fields that were expanded on each returned product group.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface SearchProductGroupsRequest {\n /** Search options, including free-text search, filtering, sorting, and cursor-based paging. */\n search?: CursorSearch;\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * UTC offset or IANA time zone. Valid values are\n * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n * and IANA time zone IDs, such as Europe/Rome.\n *\n * Affects all filters and aggregations returned values.\n * You may override this behavior in a specific filter by providing\n * timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Aggregation extends AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Sort by number of matches. */\n COUNT = 'COUNT',\n /** Sort by value of the field alphabetically. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Sort in descending order. */\n DESC = 'DESC',\n /** Sort in ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify custom bucket name. Defaults are [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n * @maxLength 20\n */\n addToBucket?: string;\n}\n\nexport enum ScalarType {\n /** Count of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Whether to sort by number of matches or value of the field. */\n sortType?: SortTypeWithLiterals;\n /** Whether to sort in ascending or descending order. */\n sortDirection?: SortDirectionWithLiterals;\n /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */\n limit?: number | null;\n /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Define the operator for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n /** Yearly interval */\n YEAR = 'YEAR',\n /** Monthly interval */\n MONTH = 'MONTH',\n /** Weekly interval */\n WEEK = 'WEEK',\n /** Daily interval */\n DAY = 'DAY',\n /** Hourly interval */\n HOUR = 'HOUR',\n /** Minute interval */\n MINUTE = 'MINUTE',\n /** Second interval */\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n | Interval\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: NestedAggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Multi-level aggregation, where each next aggregation is nested within previous one. */\n NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each next aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface SearchDetails {\n /** Defines how separate search terms in `expression` are combined. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** Any of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchProductGroupsResponse {\n /** Retrieved product groups. */\n productGroups?: ProductGroup[];\n /** Paging metadata. Use the cursor from this object to retrieve the next page of results. */\n pagingMetadata?: CursorPagingMetadata;\n /** Aggregation data computed for the search, if any aggregations were requested. */\n aggregationData?: AggregationData;\n /**\n * Optional fields that were expanded on each returned product group.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface AggregationData {\n /**\n * key = aggregation name (as derived from search request).\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number;\n}\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * User-defined name of aggregation, matches the one provided in request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that matches result. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, matches the one provided in request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in ISO 8601 format.\n * @maxLength 100\n */\n value?: string;\n /** Count of documents in the bucket. */\n count?: number;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form.\n * Aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /**\n * User-defined name of aggregation as derived from search request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that must match provided kind as derived from search request. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by as derived from search request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n}\n\nexport interface BulkCreateProductGroupsRequest {\n /**\n * Product groups to create.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: ProductGroup[];\n /**\n * Whether the response includes the created product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface BulkCreateProductGroupsResponse {\n /**\n * Per-item results, one entry per product group in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n /**\n * Optional fields that were expanded on each returned `item`.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.\n * @format GUID\n */\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 for this item was successful. When `false`, the `error` field is returned. */\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\n/** Result of a single item in a bulk create operation. */\nexport interface BulkProductGroupResult {\n /** Metadata for the create attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n /** Created product group. Populated only when `returnEntity` is `true` and the create succeeded. */\n item?: ProductGroup;\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 BulkUpdateProductGroupsRequest {\n /**\n * Product groups to update, each with its own field mask for partial updates.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: MaskedProductGroup[];\n /**\n * Whether the response includes the updated product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/** A product group paired with its own field mask for partial updates in a bulk operation. */\nexport interface MaskedProductGroup {\n /** Product group to update. `productGroup.id` and `productGroup.revision` are required. */\n productGroup?: ProductGroup;\n}\n\nexport interface BulkUpdateProductGroupsResponse {\n /**\n * Per-item results, one entry per product group in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk update operation. */\nexport interface BulkUpdateProductGroupsResponseBulkProductGroupResult {\n /** Metadata for the update attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n /** Updated product group. Populated only when `returnEntity` is `true` and the update succeeded. */\n item?: ProductGroup;\n}\n\nexport interface AssignProductsToProductGroupRequest {\n /**\n * ID of the product group to assign products to.\n * @format GUID\n */\n productGroupId: string;\n /**\n * IDs of the products to assign. Duplicate IDs are de-duplicated. Products already in the group are skipped and returned as successes.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\nexport interface AssignProductsToProductGroupResponse {\n /** Per-product results, one entry per product ID in the request. */\n results?: ProductAssignmentResult[];\n}\n\n/** Result of assigning a single product to the group. */\nexport interface ProductAssignmentResult {\n /** ID of the product. */\n productId?: string;\n /** Whether the assignment succeeded for this product. */\n success?: boolean;\n /** Error details when the assignment failed for this product. */\n error?: ApplicationError;\n}\n\nexport interface UnassignProductsFromProductGroupRequest {\n /**\n * ID of the product group to remove products from.\n * @format GUID\n */\n productGroupId: string;\n /**\n * IDs of the products to unassign. Duplicate IDs are de-duplicated. All products must currently be members of the group.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\nexport interface UnassignProductsFromProductGroupResponse {\n /** Per-product results, one entry per product ID in the request. */\n results?: ProductUnassignmentResult[];\n}\n\n/** Result of unassigning a single product from the group. */\nexport interface ProductUnassignmentResult {\n /** ID of the product. */\n productId?: string;\n /** Whether the unassignment succeeded for this product. */\n success?: boolean;\n /** Error details when the unassignment failed for this product. */\n error?: ApplicationError;\n}\n\nexport interface BulkDeleteProductGroupsRequest {\n /**\n * IDs of the product groups to delete.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n productGroupIds: string[];\n}\n\nexport interface BulkDeleteProductGroupsResponse {\n /**\n * Per-item results, one entry per product group ID in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk delete operation. */\nexport interface BulkDeleteProductGroupsResponseBulkProductGroupResult {\n /** Metadata for the delete attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateProductGroupTagsRequest {\n /**\n * IDs of the product groups whose tags are updated.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n productGroupIds: string[];\n /** Tags to assign to each product group. */\n assignTags?: Tags;\n /** Tags to unassign from each product group. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsResponse {\n /**\n * Per-item results, one entry per product group ID in the request, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupTagsResult[];\n /** Aggregated success and failure counts for the bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** Result of a single item in a bulk tag-update operation. */\nexport interface BulkUpdateProductGroupTagsResult {\n /** Metadata for the update attempt, including success status and error details if it failed. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateProductGroupTagsByFilterRequest {\n /**\n * Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n */\n filter: Record<string, any> | null;\n /** Tags to assign to each matching product group. */\n assignTags?: Tags;\n /** Tags to unassign from each matching product group. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsByFilterResponse {\n /**\n * Job ID. Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job) to retrieve the status of the asynchronous operation.\n * @format GUID\n */\n jobId?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type BulkUpdateProductGroupTagsApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type BulkUpdateProductGroupTagsByFilterApplicationErrors = {\n code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n * @param productGroup - Product group to create.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroup\n * @requiredField productGroup.groupingCustomizationId\n * @requiredField productGroup.name\n * @permissionId stores:catalog:v3:product_group:create_product_group\n * @applicableIdentity APP\n * @returns Created product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup\n */\nexport async function createProductGroup(\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroup: productGroup,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.createProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroup: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroup', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n * @param _id - Product group ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField productGroup\n * @requiredField productGroup.revision\n * @permissionId stores:catalog:v3:product_group:update_product_group\n * @applicableIdentity APP\n * @returns Updated product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup\n */\nexport async function updateProductGroup(\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroup: { ...productGroup, id: _id },\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.updateProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { productGroup: '$[1]' },\n explicitPathsToArguments: {\n 'productGroup.id': '$[0]',\n fields: '$[2].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'productGroup', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProductGroup {\n /**\n * Product group ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the product group is updated. To prevent conflicting changes, the current revision must be passed when updating the product group.\n *\n * Ignored when creating a product group.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the product group was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the product group was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Product group name. For example, `\"Classic T-Shirt\"`.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that defines the grouping attribute. For example, the ID of the `\"Color\"` option.\n *\n * Can't be changed after creation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n * @immutable\n */\n groupingCustomizationId?: string | null;\n /**\n * Ordered list of choice IDs that defines the display order of members in the storefront. Members are sorted in `members` according to this order. Choice IDs not listed here are appended after the listed ones, sorted alphabetically by choice name, with choice ID as a tiebreaker.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Members of the product group, sorted according to `choiceOrder`. Each member entry represents a product, its derived choice for the group's grouping customization, and its membership status.\n *\n * Read-only. To add or remove members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) or [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group, useful for external catalog sync systems that need a stable, externally managed identifier.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group. Unique per site. If not provided during creation, a random UUID is generated. Can't be changed after creation.\n * @minLength 1\n * @maxLength 100\n * @readonly\n * @immutable\n */\n handle?: string | null;\n /**\n * Details of the [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `groupingCustomizationId`, such as its name and render type.\n *\n * Returned only when `\"GROUPING_CUSTOMIZATION\"` is passed in the `fields` array of the request.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /** Product Group media. */\n media?: ProductGroupMedia;\n /**\n * Custom field data for the product group.\n *\n * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags assigned to the product group. Use tags to organize and filter product groups in queries. */\n tags?: Tags;\n}\n\nexport interface UpdateProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n * @param productGroupId - ID of the product group to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:delete_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup\n */\nexport async function deleteProductGroup(\n productGroupId: 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 productGroupId: productGroupId,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.deleteProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productGroupId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productGroupId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param productGroupId - ID of the product group to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:get_product_group\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @returns Retrieved product group.\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup\n */\nexport async function getProductGroup(\n productGroupId: string,\n options?: GetProductGroupOptions\n): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\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 productGroupId: productGroupId,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.getProductGroup(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroup.media.image' }],\n },\n ])\n )?.productGroup!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroupId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetProductGroupOptions {\n /**\n * Optional fields to include on the returned `productGroup`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @internal\n * @documentationMaturity preview\n * @permissionId stores:catalog:v3:product_group:query_product_groups\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups\n */\nexport function queryProductGroups(\n options?: QueryProductGroupsOptions\n): ProductGroupsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n ProductGroup,\n 'CURSOR',\n QueryProductGroupsRequest,\n QueryProductGroupsResponse\n >({\n func: async (payload: QueryProductGroupsRequest) => {\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.queryProductGroups({\n ...payload,\n ...(options ?? {}),\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: QueryProductGroupsRequest['query']) => {\n const args = [query, options] as [\n QueryProductGroupsRequest['query'],\n QueryProductGroupsOptions\n ];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryProductGroupsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n );\n\n return {\n items: transformedData?.productGroups,\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\nexport interface QueryProductGroupsOptions {\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[] | undefined;\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProductGroupsQueryResult extends QueryCursorResult {\n items: ProductGroup[];\n query: ProductGroupsQueryBuilder;\n next: () => Promise<ProductGroupsQueryResult>;\n prev: () => Promise<ProductGroupsQueryResult>;\n}\n\nexport interface ProductGroupsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\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: '_id' | 'handle',\n value: string\n ) => ProductGroupsQueryBuilder;\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: (\n propertyName: '_id' | 'handle',\n value: any[]\n ) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id' | 'handle', value: any) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'handle',\n value: boolean\n ) => ProductGroupsQueryBuilder;\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) => ProductGroupsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ProductGroupsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ProductGroupsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups\n * @requiredField query\n */\nexport async function typedQueryProductGroups(\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n): Promise<\n NonNullablePaths<\n QueryProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `fields`,\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 query: query,\n ...options,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.queryProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ProductGroupQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['_id', 'handle'];\n operators: '*';\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n ProductGroup,\n ProductGroupQuerySpec\n>;\nexport type ProductGroupQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<\n ProductGroup,\n ProductGroupQuerySpec,\n ProductGroupQuery\n >(),\n },\n search: {\n ...createSearchUtils<\n ProductGroup,\n ProductGroupSearchSpec,\n ProductGroupSearch\n >(),\n },\n};\n\n/**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param search - Search options, including free-text search, filtering, sorting, and cursor-based paging.\n * @internal\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId stores:catalog:v3:product_group:search_product_groups\n * @permissionId stores:catalog:v3:product_group:read_non_visible\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.SearchProductGroups\n */\nexport async function searchProductGroups(\n search: ProductGroupSearch,\n options?: SearchProductGroupsOptions\n): Promise<\n NonNullablePaths<\n SearchProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`\n | `fields`,\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 search: search,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.searchProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { search: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['search', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SearchProductGroupsOptions {\n /**\n * Optional fields to include on each returned product group. For example, `\"GROUPING_CUSTOMIZATION\"` expands `productGroup.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface ProductGroupSearchSpec extends SearchSpec {\n searchable: ['members.productName', 'name'];\n aggregatable: [\n '_createdDate',\n '_id',\n 'groupingCustomizationId',\n 'members.productId',\n 'members.productName',\n 'name'\n ];\n paging: 'cursor';\n wql: [\n {\n operators: '*';\n fields: ['_createdDate', '_id', 'name'];\n sort: 'BOTH';\n },\n {\n operators: ['$hasAll', '$hasSome'];\n fields: ['members.productId', 'members.productName'];\n sort: 'NONE';\n },\n {\n operators: '*';\n fields: ['groupingCustomizationId'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonSearchWithEntityContext = SearchSdkType<\n ProductGroup,\n ProductGroupSearchSpec\n>;\nexport type ProductGroupSearch = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonSearchWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonSearchWithEntityContext['filter'] | null;\n /** \n List of sort objects.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 10 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonSearchWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];\n }[];\n /** \n Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. \n @maxSize: 10 \n */\n aggregations?: {\n /** \n Value aggregation. \n */\n value?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['value'];\n /** \n Range aggregation. \n */\n range?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['range'];\n /** \n Scalar aggregation. \n */\n scalar?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['scalar'];\n /** \n Date histogram aggregation. \n */\n dateHistogram?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['dateHistogram'];\n /** \n Nested aggregation. \n */\n nested?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['nested'];\n /** \n User-defined name of aggregation, should be unique, will appear in aggregation results. \n @maxLength: 100 \n */\n name?:\n | NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['name']\n | null;\n /** \n Type of aggregation, client must provide matching aggregation field below. \n */\n type?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['type'];\n /** \n Field to aggregate by, use dot notation to specify json path. \n @maxLength: 200 \n */\n fieldPath?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['fieldPath'];\n }[];\n /** \n Free text to match in searchable fields. \n */\n search?: {\n /** \n Defines how separate search terms in `expression` are combined. \n */\n mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];\n /** \n Search term or expression. \n @maxLength: 100 \n */\n expression?:\n | NonNullable<CommonSearchWithEntityContext['search']>['expression']\n | null;\n /** \n Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. \n @maxLength: 200,\n @maxSize: 20 \n */\n fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];\n /** \n Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). \n */\n fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];\n };\n /** \n UTC offset or IANA time zone. Valid values are\n ISO 8601 UTC offsets, such as +02:00 or -06:00,\n and IANA time zone IDs, such as Europe/Rome.\n\n Affects all filters and aggregations returned values.\n You may override this behavior in a specific filter by providing\n timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`. \n @maxLength: 50 \n */\n timeZone?: CommonSearchWithEntityContext['timeZone'] | null;\n};\n\n/**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n * @param productGroups - Product groups to create.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroups\n * @requiredField productGroups.groupingCustomizationId\n * @requiredField productGroups.name\n * @permissionId stores:catalog:v3:product_group:bulk_create_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups\n */\nexport async function bulkCreateProductGroups(\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n | `fields`,\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroups.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkCreateProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'results.item.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateProductGroupsOptions {\n /**\n * Whether the response includes the created product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n * @param productGroups - Product groups to update, each with its own field mask for partial updates.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroups\n * @requiredField productGroups.productGroup._id\n * @requiredField productGroups.productGroup.revision\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups\n */\nexport async function bulkUpdateProductGroups(\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'productGroups.productGroup.media.image' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'results.item.media.image' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n productGroups: '$[0]',\n returnEntity: '$[1].returnEntity',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroups', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupsOptions {\n /**\n * Whether the response includes the updated product groups under `results.item`.\n *\n * Default: `false`\n */\n returnEntity?: boolean;\n /**\n * Optional fields to include on each returned `item`. For example, `\"GROUPING_CUSTOMIZATION\"` expands `item.groupingCustomization` with customization details.\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @param productGroupId - ID of the product group to assign products to.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.productIds\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:assign_products_to_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup\n */\nexport async function assignProductsToProductGroup(\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n AssignProductsToProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\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 productGroupId: productGroupId,\n productIds: options?.productIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.assignProductsToProductGroup(\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 productGroupId: '$[0]',\n productIds: '$[1].productIds',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AssignProductsToProductGroupOptions {\n /**\n * IDs of the products to assign. Duplicate IDs are de-duplicated. Products already in the group are skipped and returned as successes.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\n/**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n * @param productGroupId - ID of the product group to remove products from.\n * @internal\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.productIds\n * @requiredField productGroupId\n * @permissionId stores:catalog:v3:product_group:unassign_products_from_product_group\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup\n */\nexport async function unassignProductsFromProductGroup(\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n): Promise<\n NonNullablePaths<\n UnassignProductsFromProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\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 productGroupId: productGroupId,\n productIds: options?.productIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.unassignProductsFromProductGroup(\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 productGroupId: '$[0]',\n productIds: '$[1].productIds',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UnassignProductsFromProductGroupOptions {\n /**\n * IDs of the products to unassign. Duplicate IDs are de-duplicated. All products must currently be members of the group.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\n/**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n * @param productGroupIds - IDs of the product groups to delete.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupIds\n * @permissionId stores:catalog:v3:product_group:bulk_delete_product_groups\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups\n */\nexport async function bulkDeleteProductGroups(\n productGroupIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteProductGroupsResponse,\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({\n productGroupIds: productGroupIds,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkDeleteProductGroups(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { productGroupIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['productGroupIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n * @param productGroupIds - IDs of the product groups whose tags are updated.\n * @internal\n * @documentationMaturity preview\n * @requiredField productGroupIds\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags\n */\nexport async function bulkUpdateProductGroupTags(\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupTagsResponse,\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 __applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;\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 productGroupIds: productGroupIds,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroupTags(\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 productGroupIds: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['productGroupIds', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupTagsOptions {\n /** Tags to assign to each product group. */\n assignTags?: Tags;\n /** Tags to unassign from each product group. */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n * @param filter - Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n * @internal\n * @documentationMaturity preview\n * @requiredField filter\n * @permissionId stores:catalog:v3:product_group:bulk_update_product_group_tags_by_filter\n * @applicableIdentity APP\n * @fqn wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter\n */\nexport async function bulkUpdateProductGroupTagsByFilter(\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n): Promise<\n NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;\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 filter: filter,\n assignTags: options?.assignTags,\n unassignTags: options?.unassignTags,\n });\n\n const reqOpts =\n ambassadorWixStoresCatalogV3ProductGroup.bulkUpdateProductGroupTagsByFilter(\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 filter: '$[0]',\n assignTags: '$[1].assignTags',\n unassignTags: '$[1].unassignTags',\n },\n singleArgumentUnchanged: false,\n },\n ['filter', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProductGroupTagsByFilterOptions {\n /** Tags to assign to each matching product group. */\n assignTags?: Tags;\n /** Tags to unassign from each matching product group. */\n unassignTags?: Tags;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/product-group',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/stores/v3/product-groups',\n destPath: '/v3/product-groups',\n },\n {\n srcPath: '/stores/v3/bulk/product-groups',\n destPath: '/v3/bulk/product-groups',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/product-group',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_stores_product-groups-v-3';\n\n/**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n */\nexport function createProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __createProductGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.CreateProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProductGroup;\n}\n\n/**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n */\nexport function updateProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateProductGroup({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.UpdateProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroup.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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProductGroup;\n}\n\n/**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n */\nexport function deleteProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.DeleteProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroupId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProductGroup;\n}\n\n/**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function getProductGroup(payload: object): RequestOptionsFactory<any> {\n function __getProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.GetProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/{productGroupId}',\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: 'productGroup.createdDate' },\n { path: 'productGroup.updatedDate' },\n { path: 'productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProductGroup;\n}\n\n/**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function queryProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryProductGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/query',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryProductGroups;\n}\n\n/**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\nexport function searchProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __searchProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'GET' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.SearchProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/search',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n },\n ],\n };\n\n return metadata;\n }\n\n return __searchProductGroups;\n}\n\n/**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n */\nexport function bulkCreateProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroups.createdDate' },\n { path: 'productGroups.updatedDate' },\n { path: 'productGroups.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkCreateProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-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.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateProductGroups;\n}\n\n/**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n */\nexport function bulkUpdateProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroups({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'productGroups.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'productGroups.productGroup.createdDate' },\n { path: 'productGroups.productGroup.updatedDate' },\n { path: 'productGroups.productGroup.media.image.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-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.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.media.image.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroups;\n}\n\n/**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n */\nexport function assignProductsToProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __assignProductsToProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.AssignProductsToProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/assign-products',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __assignProductsToProductGroup;\n}\n\n/**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n */\nexport function unassignProductsFromProductGroup(\n payload: object\n): RequestOptionsFactory<any> {\n function __unassignProductsFromProductGroup({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.UnassignProductsFromProductGroup',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/product-groups/unassign-products',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __unassignProductsFromProductGroup;\n}\n\n/**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n */\nexport function bulkDeleteProductGroups(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteProductGroups({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkDeleteProductGroups',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteProductGroups;\n}\n\n/**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n */\nexport function bulkUpdateProductGroupTags(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroupTags({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTags',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/update-tags',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroupTags;\n}\n\n/**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n */\nexport function bulkUpdateProductGroupTagsByFilter(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateProductGroupTagsByFilter({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.product_group',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.product_group.v3.ProductGroupService.BulkUpdateProductGroupTagsByFilter',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogProductGroupV3ProductGroupServiceUrl({\n protoPath: '/v3/bulk/product-groups/update-tags-by-filter',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroupTagsByFilter;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AssignProductsToProductGroupOptions,\n AssignProductsToProductGroupResponse,\n BulkCreateProductGroupsOptions,\n BulkCreateProductGroupsResponse,\n BulkDeleteProductGroupsResponse,\n BulkUpdateProductGroupTagsApplicationErrors,\n BulkUpdateProductGroupTagsByFilterApplicationErrors,\n BulkUpdateProductGroupTagsByFilterOptions,\n BulkUpdateProductGroupTagsByFilterResponse,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupsOptions,\n BulkUpdateProductGroupsResponse,\n CreateProductGroupOptions,\n GetProductGroupOptions,\n MaskedProductGroup,\n ProductGroup,\n ProductGroupQuery,\n ProductGroupSearch,\n ProductGroupsQueryBuilder,\n QueryProductGroupsOptions,\n QueryProductGroupsResponse,\n SearchProductGroupsOptions,\n SearchProductGroupsResponse,\n UnassignProductsFromProductGroupOptions,\n UnassignProductsFromProductGroupResponse,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n assignProductsToProductGroup as universalAssignProductsToProductGroup,\n bulkCreateProductGroups as universalBulkCreateProductGroups,\n bulkDeleteProductGroups as universalBulkDeleteProductGroups,\n bulkUpdateProductGroupTags as universalBulkUpdateProductGroupTags,\n bulkUpdateProductGroupTagsByFilter as universalBulkUpdateProductGroupTagsByFilter,\n bulkUpdateProductGroups as universalBulkUpdateProductGroups,\n createProductGroup as universalCreateProductGroup,\n deleteProductGroup as universalDeleteProductGroup,\n getProductGroup as universalGetProductGroup,\n queryProductGroups as universalQueryProductGroups,\n searchProductGroups as universalSearchProductGroups,\n typedQueryProductGroups as universalTypedQueryProductGroups,\n unassignProductsFromProductGroup as universalUnassignProductsFromProductGroup,\n updateProductGroup as universalUpdateProductGroup,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/stores' };\n\n/** @internal */\nexport function createProductGroup(\n httpClient: HttpClient\n): CreateProductGroupSignature {\n return (\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n ) =>\n universalCreateProductGroup(\n productGroup,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateProductGroupSignature {\n /**\n * Creates a product group.\n *\n * The `groupingCustomizationId` is the option or modifier ([customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction)) that all member products share, such as `\"Color\"`. It must reference an existing customization and can't be changed after the group is created.\n *\n * To populate the group's members, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group) after creation.\n *\n * To create multiple product groups in a single request, call [Bulk Create Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-create-product-groups).\n * @param - Product group to create.\n * @returns Created product group.\n */\n (\n productGroup: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >,\n options?: CreateProductGroupOptions\n ): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function updateProductGroup(\n httpClient: HttpClient\n): UpdateProductGroupSignature {\n return (\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n ) =>\n universalUpdateProductGroup(\n _id,\n productGroup,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateProductGroupSignature {\n /**\n * Updates a product group.\n *\n * Each time the product group is updated, `revision` increments by 1. The current `revision` must be passed when updating the product group. This ensures you're working with the latest product group and prevents unintended overwrites.\n *\n * `groupingCustomizationId` and `handle` can't be updated after creation.\n *\n * To update multiple product groups in a single request, call [Bulk Update Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-groups).\n * @param - Product group ID.\n * @returns Updated product group.\n */\n (\n _id: string,\n productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>,\n options?: UpdateProductGroupOptions\n ): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function deleteProductGroup(\n httpClient: HttpClient\n): DeleteProductGroupSignature {\n return (productGroupId: string) =>\n universalDeleteProductGroup(\n productGroupId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteProductGroupSignature {\n /**\n * Deletes a product group.\n *\n * Member products aren't deleted. Their reference to this product group is cleared asynchronously after the group is removed.\n *\n * To delete multiple product groups in a single request, call [Bulk Delete Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-delete-product-groups).\n * @param - ID of the product group to delete.\n */\n (productGroupId: string): Promise<void>;\n}\n\n/** @internal */\nexport function getProductGroup(\n httpClient: HttpClient\n): GetProductGroupSignature {\n return (productGroupId: string, options?: GetProductGroupOptions) =>\n universalGetProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetProductGroupSignature {\n /**\n * Retrieves a product group by ID.\n *\n * By default, the response includes only members with status `ACTIVE`. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param - ID of the product group to retrieve.\n * @returns Retrieved product group.\n */\n (productGroupId: string, options?: GetProductGroupOptions): Promise<\n NonNullablePaths<\n ProductGroup,\n | `choiceOrder`\n | `members`\n | `members.${number}.productId`\n | `members.${number}.choice.colorCode`\n | `members.${number}.choice._id`\n | `members.${number}.choice.choiceType`\n | `members.${number}.choice.name`\n | `members.${number}.inventoryAvailabilityStatus`\n | `members.${number}.status`\n | `groupingCustomization.name`\n | `groupingCustomization.customizationType`\n | `groupingCustomization.customizationRenderType`\n | `media._id`\n | `media.mediaType`\n | `media.thumbnail.url`\n | `media.thumbnail.height`\n | `media.thumbnail.width`\n | `media.uploadId`\n | `tags.privateTags.tagIds`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function queryProductGroups(\n httpClient: HttpClient\n): QueryProductGroupsSignature {\n return (options?: QueryProductGroupsOptions) =>\n universalQueryProductGroups(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryProductGroupsSignature {\n /**\n * Retrieves a list of up to 100 product groups, given the provided paging, filtering, and sorting.\n *\n * Query Product Groups runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order\n * - `cursorPaging.limit` is `100`\n *\n * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n */\n (options?: QueryProductGroupsOptions): ProductGroupsQueryBuilder;\n}\n\nexport function typedQueryProductGroups(\n httpClient: HttpClient\n): TypedQueryProductGroupsSignature {\n return (query: ProductGroupQuery, options?: QueryProductGroupsOptions) =>\n universalTypedQueryProductGroups(\n query,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TypedQueryProductGroupsSignature {\n /** */\n (query: ProductGroupQuery, options?: QueryProductGroupsOptions): Promise<\n NonNullablePaths<\n QueryProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function searchProductGroups(\n httpClient: HttpClient\n): SearchProductGroupsSignature {\n return (search: ProductGroupSearch, options?: SearchProductGroupsOptions) =>\n universalSearchProductGroups(\n search,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface SearchProductGroupsSignature {\n /**\n * Retrieves a list of product groups, given the provided paging, filtering, sorting, and free-text search.\n *\n * Search Product Groups supports a broader set of filterable and sortable fields than [Query Product Groups](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/query-product-groups), including member fields, and adds free-text matching on the group's `name` and member product names.\n *\n * By default, only members with status `ACTIVE` are included in the returned product groups. Members with status `HIDDEN` or `OUT_OF_SYNC` are returned only to callers that have the `readNonVisible` permission.\n * @param - Search options, including free-text search, filtering, sorting, and cursor-based paging.\n */\n (search: ProductGroupSearch, options?: SearchProductGroupsOptions): Promise<\n NonNullablePaths<\n SearchProductGroupsResponse,\n | `productGroups`\n | `productGroups.${number}.groupingCustomization.name`\n | `productGroups.${number}.groupingCustomization.customizationType`\n | `productGroups.${number}.groupingCustomization.customizationRenderType`\n | `productGroups.${number}.media._id`\n | `productGroups.${number}.media.mediaType`\n | `productGroups.${number}.media.thumbnail.url`\n | `productGroups.${number}.media.thumbnail.height`\n | `productGroups.${number}.media.thumbnail.width`\n | `productGroups.${number}.media.uploadId`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function bulkCreateProductGroups(\n httpClient: HttpClient\n): BulkCreateProductGroupsSignature {\n return (\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n ) =>\n universalBulkCreateProductGroups(\n productGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateProductGroupsSignature {\n /**\n * Creates multiple product groups in a single request.\n *\n * To create a single product group, call [Create Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/create-product-group).\n * @param - Product groups to create.\n */\n (\n productGroups: NonNullablePaths<\n ProductGroup,\n `groupingCustomizationId` | `name`,\n 2\n >[],\n options?: BulkCreateProductGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkCreateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n | `fields`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function bulkUpdateProductGroups(\n httpClient: HttpClient\n): BulkUpdateProductGroupsSignature {\n return (\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n ) =>\n universalBulkUpdateProductGroups(\n productGroups,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupsSignature {\n /**\n * Updates multiple product groups in a single request.\n *\n * Each item carries its own `fieldMask` to allow partial updates per item. The current `revision` must be passed for each product group to prevent conflicting changes.\n *\n * To update a single product group, call [Update Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/update-product-group).\n * @param - Product groups to update, each with its own field mask for partial updates.\n */\n (\n productGroups: NonNullablePaths<\n MaskedProductGroup,\n `productGroup._id` | `productGroup.revision`,\n 3\n >[],\n options?: BulkUpdateProductGroupsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupsResponse,\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 | `results.${number}.item.groupingCustomization.name`\n | `results.${number}.item.groupingCustomization.customizationType`\n | `results.${number}.item.groupingCustomization.customizationRenderType`\n | `results.${number}.item.media._id`\n | `results.${number}.item.media.mediaType`\n | `results.${number}.item.media.uploadId`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\n/** @internal */\nexport function assignProductsToProductGroup(\n httpClient: HttpClient\n): AssignProductsToProductGroupSignature {\n return (\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n ) =>\n universalAssignProductsToProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AssignProductsToProductGroupSignature {\n /**\n * Assigns one or more products to a product group.\n *\n * After a product is assigned to a group, the product's choice for the group's `groupingCustomizationId` is derived automatically and surfaced under the group's `members` array. Sibling product cards in the storefront gallery and product page are powered by this membership.\n *\n * Each product can belong to only one product group at a time. Duplicate IDs in the request are de-duplicated. Products already in the group are returned as successes with no change.\n *\n * The response contains a per-product result. A product that doesn't exist is returned as a failure with `PRODUCT_NOT_FOUND`. If assigning the requested products would exceed the group's maximum member count, the entire request fails with `MEMBER_LIMIT_EXCEEDED` and no products are assigned.\n *\n * To remove products from a group, call [Unassign Products from Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/unassign-products-from-product-group).\n * @param - ID of the product group to assign products to.\n */\n (\n productGroupId: string,\n options: NonNullablePaths<\n AssignProductsToProductGroupOptions,\n `productIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n AssignProductsToProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function unassignProductsFromProductGroup(\n httpClient: HttpClient\n): UnassignProductsFromProductGroupSignature {\n return (\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n ) =>\n universalUnassignProductsFromProductGroup(\n productGroupId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UnassignProductsFromProductGroupSignature {\n /**\n * Removes one or more products from a product group.\n *\n * Removed products are no longer represented in the group's `members` array, and they no longer appear as siblings on the storefront. The products themselves aren't deleted.\n *\n * Duplicate IDs in the request are de-duplicated. If any of the requested products aren't currently members of the group, the entire request fails with `PRODUCTS_NOT_IN_GROUP` and no products are unassigned.\n *\n * To add products to a group, call [Assign Products to Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/assign-products-to-product-group).\n * @param - ID of the product group to remove products from.\n */\n (\n productGroupId: string,\n options: NonNullablePaths<\n UnassignProductsFromProductGroupOptions,\n `productIds`,\n 2\n >\n ): Promise<\n NonNullablePaths<\n UnassignProductsFromProductGroupResponse,\n | `results`\n | `results.${number}.productId`\n | `results.${number}.success`\n | `results.${number}.error.code`\n | `results.${number}.error.description`,\n 5\n >\n >;\n}\n\n/** @internal */\nexport function bulkDeleteProductGroups(\n httpClient: HttpClient\n): BulkDeleteProductGroupsSignature {\n return (productGroupIds: string[]) =>\n universalBulkDeleteProductGroups(\n productGroupIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteProductGroupsSignature {\n /**\n * Deletes multiple product groups in a single request.\n *\n * Member products of each deleted group aren't deleted. Their references to the deleted groups are cleared asynchronously.\n *\n * To delete a single product group, call [Delete Product Group](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/delete-product-group).\n * @param - IDs of the product groups to delete.\n */\n (productGroupIds: string[]): Promise<\n NonNullablePaths<\n BulkDeleteProductGroupsResponse,\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\n/** @internal */\nexport function bulkUpdateProductGroupTags(\n httpClient: HttpClient\n): BulkUpdateProductGroupTagsSignature {\n return (\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n ) =>\n universalBulkUpdateProductGroupTags(\n productGroupIds,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupTagsSignature {\n /**\n * Adds or removes tags on multiple product groups.\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned. Tags that don't exist are ignored.\n *\n * To update tags on product groups that match a filter, call [Bulk Update Product Group Tags by Filter](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags-by-filter).\n * @param - IDs of the product groups whose tags are updated.\n */\n (\n productGroupIds: string[],\n options?: BulkUpdateProductGroupTagsOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateProductGroupTagsResponse,\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 __applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;\n }\n >;\n}\n\n/** @internal */\nexport function bulkUpdateProductGroupTagsByFilter(\n httpClient: HttpClient\n): BulkUpdateProductGroupTagsByFilterSignature {\n return (\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n ) =>\n universalBulkUpdateProductGroupTagsByFilter(\n filter,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateProductGroupTagsByFilterSignature {\n /**\n * Asynchronously adds or removes tags on multiple product groups that match the provided filter criteria. An empty filter targets all product groups on the site.\n *\n * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job).\n *\n * Specify which tags to assign and which tags to unassign. A tag that appears in both the list to assign and the list to unassign will be assigned.\n *\n * To update tags on a specific list of product groups, call [Bulk Update Product Group Tags](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/product-groups-v3/bulk-update-product-group-tags).\n * @param - Filter object selecting which product groups to update. Pass an empty object `{}` to target all product groups on the site.\n *\n * Supported properties: `id`, `handle`\n */\n (\n filter: Record<string, any>,\n options?: BulkUpdateProductGroupTagsByFilterOptions\n ): Promise<\n NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {\n __applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;\n }\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n Aggregation,\n AggregationData,\n AggregationKindOneOf,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarResult,\n AggregationType,\n ApplicationError,\n AssignProductsToProductGroupOptions,\n AssignProductsToProductGroupRequest,\n AssignProductsToProductGroupResponse,\n AvailabilityStatus,\n BulkActionMetadata,\n BulkCreateProductGroupsOptions,\n BulkCreateProductGroupsRequest,\n BulkCreateProductGroupsResponse,\n BulkDeleteProductGroupsRequest,\n BulkDeleteProductGroupsResponse,\n BulkDeleteProductGroupsResponseBulkProductGroupResult,\n BulkProductGroupResult,\n BulkUpdateProductGroupTagsByFilterOptions,\n BulkUpdateProductGroupTagsByFilterRequest,\n BulkUpdateProductGroupTagsByFilterResponse,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsRequest,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupTagsResult,\n BulkUpdateProductGroupsOptions,\n BulkUpdateProductGroupsRequest,\n BulkUpdateProductGroupsResponse,\n BulkUpdateProductGroupsResponseBulkProductGroupResult,\n ChoiceType,\n CreateProductGroupOptions,\n CreateProductGroupRequest,\n CreateProductGroupResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Cursors,\n CustomizationRenderType,\n CustomizationType,\n DateHistogramAggregation,\n DateHistogramResult,\n DateHistogramResults,\n DeleteProductGroupRequest,\n DeleteProductGroupResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n GetProductGroupOptions,\n GetProductGroupRequest,\n GetProductGroupResponse,\n GroupByValueResults,\n GroupingCustomization,\n IdentificationData,\n IdentificationDataIdOneOf,\n IncludeMissingValuesOptions,\n Interval,\n ItemMetadata,\n MaskedProductGroup,\n MediaType,\n MembershipStatus,\n MessageEnvelope,\n MissingValues,\n Mode,\n NestedAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedAggregationType,\n NestedResultValue,\n NestedResultValueResultOneOf,\n NestedResults,\n NestedValueAggregationResult,\n ProductAssignmentResult,\n ProductChoice,\n ProductChoiceValueOneOf,\n ProductGroup,\n ProductGroupMedia,\n ProductGroupMediaMediaOneOf,\n ProductGroupMediaSetByOneOf,\n ProductGroupMember,\n ProductGroupQuerySpec,\n ProductGroupRequestedFields,\n ProductGroupSearchSpec,\n ProductGroupTagsModified,\n ProductGroupsQueryBuilder,\n ProductGroupsQueryResult,\n ProductUnassignmentResult,\n QueryProductGroupsOptions,\n QueryProductGroupsRequest,\n QueryProductGroupsResponse,\n RangeAggregation,\n RangeAggregationResult,\n RangeBucket,\n RangeResult,\n RangeResults,\n RestoreInfo,\n Results,\n ScalarAggregation,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchProductGroupsOptions,\n SearchProductGroupsRequest,\n SearchProductGroupsResponse,\n SortDirection,\n SortOrder,\n SortType,\n Sorting,\n TagList,\n Tags,\n Thumbnail,\n UnassignProductsFromProductGroupOptions,\n UnassignProductsFromProductGroupRequest,\n UnassignProductsFromProductGroupResponse,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n UpdateProductGroupRequest,\n UpdateProductGroupResponse,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n ValueAggregationResult,\n ValueResult,\n ValueResults,\n WebhookIdentityType,\n utils,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n","import {\n createProductGroup as publicCreateProductGroup,\n updateProductGroup as publicUpdateProductGroup,\n deleteProductGroup as publicDeleteProductGroup,\n getProductGroup as publicGetProductGroup,\n queryProductGroups as publicQueryProductGroups,\n typedQueryProductGroups as publicTypedQueryProductGroups,\n searchProductGroups as publicSearchProductGroups,\n bulkCreateProductGroups as publicBulkCreateProductGroups,\n bulkUpdateProductGroups as publicBulkUpdateProductGroups,\n assignProductsToProductGroup as publicAssignProductsToProductGroup,\n unassignProductsFromProductGroup as publicUnassignProductsFromProductGroup,\n bulkDeleteProductGroups as publicBulkDeleteProductGroups,\n bulkUpdateProductGroupTags as publicBulkUpdateProductGroupTags,\n bulkUpdateProductGroupTagsByFilter as publicBulkUpdateProductGroupTagsByFilter,\n} from './stores-catalog-v3-product-group-product-groups-v-3.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { HttpClient } from '@wix/sdk-types';\nimport { createQueryOverloadRouter } from '@wix/sdk-runtime/query-method-router';\nimport {\n ProductGroupQuery,\n ProductGroupsQueryBuilder,\n QueryProductGroupsOptions,\n typedQueryProductGroups as universalTypedQueryProductGroups,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n\nfunction customQueryProductGroups(httpClient: HttpClient) {\n const router = createQueryOverloadRouter({\n builderQueryFunction: (options?: QueryProductGroupsOptions) =>\n publicQueryProductGroups(httpClient)(options),\n typedQueryFunction: (\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n ) => publicTypedQueryProductGroups(httpClient)(query, options),\n hasOptionsParameter: true,\n });\n\n function overloadedQuery(\n query: ProductGroupQuery,\n options?: QueryProductGroupsOptions\n ): ReturnType<typeof universalTypedQueryProductGroups>;\n function overloadedQuery(\n options?: QueryProductGroupsOptions\n ): ProductGroupsQueryBuilder;\n function overloadedQuery(\n queryOrOptions?: ProductGroupQuery | QueryProductGroupsOptions,\n options?: QueryProductGroupsOptions\n ): any {\n return router(...arguments);\n }\n\n return overloadedQuery;\n}\n\n/** @internal */\nexport const createProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicCreateProductGroup> &\n typeof publicCreateProductGroup\n> = /*#__PURE__*/ createRESTModule(publicCreateProductGroup);\n/** @internal */\nexport const updateProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicUpdateProductGroup> &\n typeof publicUpdateProductGroup\n> = /*#__PURE__*/ createRESTModule(publicUpdateProductGroup);\n/** @internal */\nexport const deleteProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicDeleteProductGroup> &\n typeof publicDeleteProductGroup\n> = /*#__PURE__*/ createRESTModule(publicDeleteProductGroup);\n/** @internal */\nexport const getProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicGetProductGroup> & typeof publicGetProductGroup\n> = /*#__PURE__*/ createRESTModule(publicGetProductGroup);\n/** @internal */\nexport const searchProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicSearchProductGroups> &\n typeof publicSearchProductGroups\n> = /*#__PURE__*/ createRESTModule(publicSearchProductGroups);\n/** @internal */\nexport const bulkCreateProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateProductGroups> &\n typeof publicBulkCreateProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateProductGroups);\n/** @internal */\nexport const bulkUpdateProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroups> &\n typeof publicBulkUpdateProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroups);\n/** @internal */\nexport const assignProductsToProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicAssignProductsToProductGroup> &\n typeof publicAssignProductsToProductGroup\n> = /*#__PURE__*/ createRESTModule(publicAssignProductsToProductGroup);\n/** @internal */\nexport const unassignProductsFromProductGroup: MaybeContext<\n BuildRESTFunction<typeof publicUnassignProductsFromProductGroup> &\n typeof publicUnassignProductsFromProductGroup\n> = /*#__PURE__*/ createRESTModule(publicUnassignProductsFromProductGroup);\n/** @internal */\nexport const bulkDeleteProductGroups: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteProductGroups> &\n typeof publicBulkDeleteProductGroups\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteProductGroups);\n/** @internal */\nexport const bulkUpdateProductGroupTags: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroupTags> &\n typeof publicBulkUpdateProductGroupTags\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroupTags);\n/** @internal */\nexport const bulkUpdateProductGroupTagsByFilter: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateProductGroupTagsByFilter> &\n typeof publicBulkUpdateProductGroupTagsByFilter\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateProductGroupTagsByFilter);\nexport const queryProductGroups: MaybeContext<\n BuildRESTFunction<typeof customQueryProductGroups> &\n typeof customQueryProductGroups\n> = /*#__PURE__*/ createRESTModule(customQueryProductGroups);\n\nexport {\n ChoiceType,\n AvailabilityStatus,\n MembershipStatus,\n CustomizationType,\n CustomizationRenderType,\n MediaType,\n ProductGroupRequestedFields,\n SortOrder,\n SortType,\n SortDirection,\n MissingValues,\n ScalarType,\n NestedAggregationType,\n Interval,\n AggregationType,\n Mode,\n WebhookIdentityType,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport {\n ProductGroup,\n ProductGroupMember,\n ProductChoice,\n ProductChoiceValueOneOf,\n GroupingCustomization,\n ProductGroupMedia,\n ProductGroupMediaSetByOneOf,\n ProductGroupMediaMediaOneOf,\n Thumbnail,\n ExtendedFields,\n Tags,\n TagList,\n ProductGroupTagsModified,\n CreateProductGroupRequest,\n CreateProductGroupResponse,\n UpdateProductGroupRequest,\n UpdateProductGroupResponse,\n DeleteProductGroupRequest,\n DeleteProductGroupResponse,\n GetProductGroupRequest,\n GetProductGroupResponse,\n QueryProductGroupsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n CursorPaging,\n QueryProductGroupsResponse,\n CursorPagingMetadata,\n Cursors,\n SearchProductGroupsRequest,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Aggregation,\n AggregationKindOneOf,\n RangeBucket,\n IncludeMissingValuesOptions,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n RangeAggregation,\n ScalarAggregation,\n DateHistogramAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregation,\n SearchDetails,\n SearchProductGroupsResponse,\n AggregationData,\n ValueAggregationResult,\n RangeAggregationResult,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n ValueResults,\n RangeResults,\n AggregationResultsScalarResult,\n NestedValueAggregationResult,\n ValueResult,\n RangeResult,\n ScalarResult,\n NestedResultValue,\n NestedResultValueResultOneOf,\n Results,\n DateHistogramResult,\n GroupByValueResults,\n DateHistogramResults,\n NestedResults,\n AggregationResults,\n AggregationResultsResultOneOf,\n BulkCreateProductGroupsRequest,\n BulkCreateProductGroupsResponse,\n ItemMetadata,\n ApplicationError,\n BulkProductGroupResult,\n BulkActionMetadata,\n BulkUpdateProductGroupsRequest,\n MaskedProductGroup,\n BulkUpdateProductGroupsResponse,\n BulkUpdateProductGroupsResponseBulkProductGroupResult,\n AssignProductsToProductGroupRequest,\n AssignProductsToProductGroupResponse,\n ProductAssignmentResult,\n UnassignProductsFromProductGroupRequest,\n UnassignProductsFromProductGroupResponse,\n ProductUnassignmentResult,\n BulkDeleteProductGroupsRequest,\n BulkDeleteProductGroupsResponse,\n BulkDeleteProductGroupsResponseBulkProductGroupResult,\n BulkUpdateProductGroupTagsRequest,\n BulkUpdateProductGroupTagsResponse,\n BulkUpdateProductGroupTagsResult,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n BulkUpdateProductGroupTagsByFilterRequest,\n BulkUpdateProductGroupTagsByFilterResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n CreateProductGroupOptions,\n UpdateProductGroup,\n UpdateProductGroupOptions,\n GetProductGroupOptions,\n QueryProductGroupsOptions,\n ProductGroupsQueryResult,\n ProductGroupsQueryBuilder,\n ProductGroupQuerySpec,\n SearchProductGroupsOptions,\n ProductGroupSearchSpec,\n BulkCreateProductGroupsOptions,\n BulkUpdateProductGroupsOptions,\n AssignProductsToProductGroupOptions,\n UnassignProductsFromProductGroupOptions,\n BulkUpdateProductGroupTagsOptions,\n BulkUpdateProductGroupTagsByFilterOptions,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport { utils } from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\nexport {\n ChoiceTypeWithLiterals,\n AvailabilityStatusWithLiterals,\n MembershipStatusWithLiterals,\n CustomizationTypeWithLiterals,\n CustomizationRenderTypeWithLiterals,\n MediaTypeWithLiterals,\n ProductGroupRequestedFieldsWithLiterals,\n SortOrderWithLiterals,\n SortTypeWithLiterals,\n SortDirectionWithLiterals,\n MissingValuesWithLiterals,\n ScalarTypeWithLiterals,\n NestedAggregationTypeWithLiterals,\n IntervalWithLiterals,\n AggregationTypeWithLiterals,\n ModeWithLiterals,\n WebhookIdentityTypeWithLiterals,\n BulkUpdateProductGroupTagsApplicationErrors,\n BulkUpdateProductGroupTagsByFilterApplicationErrors,\n CommonQueryWithEntityContext,\n ProductGroupQuery,\n CommonSearchWithEntityContext,\n ProductGroupSearch,\n} from './stores-catalog-v3-product-group-product-groups-v-3.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAAAA;AAAA,EAAA,+BAAAC;AAAA,EAAA,+BAAAC;AAAA,EAAA,kCAAAC;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ACf;AACJ;AA4BO,SAASC,4BACd,YACqC;AACrC,SAAO,CACL,iBACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAiCO,SAASC,oCACd,YAC6C;AAC7C,SAAO,CACL,QACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC/oBA,IAAAC,uBAAiC;AAGjC,iCAA0C;AAQ1C,SAAS,yBAAyB,YAAwB;AACxD,QAAM,aAAS,sDAA0B;AAAA,IACvC,sBAAsB,CAAC,YACrBC,oBAAyB,UAAU,EAAE,OAAO;AAAA,IAC9C,oBAAoB,CAClB,OACA,YACGC,yBAA8B,UAAU,EAAE,OAAO,OAAO;AAAA,IAC7D,qBAAqB;AAAA,EACvB,CAAC;AASD,WAAS,gBACP,gBACA,SACK;AACL,WAAO,OAAO,GAAG,SAAS;AAAA,EAC5B;AAEA,SAAO;AACT;AAGO,IAAMC,sBAGK,2DAAiBA,mBAAwB;AAEpD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AAEpD,IAAMC,sBAGK,2DAAiBA,mBAAwB;AAEpD,IAAMC,mBAEK,2DAAiBA,gBAAqB;AAEjD,IAAMC,uBAGK,2DAAiBA,oBAAyB;AAErD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAEzD,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAEzD,IAAMC,gCAGK,2DAAiBA,6BAAkC;AAE9D,IAAMC,oCAGK,2DAAiBA,iCAAsC;AAElE,IAAMC,2BAGK,2DAAiBA,wBAA6B;AAEzD,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAE5D,IAAMC,sCAGK,2DAAiBA,mCAAwC;AACpE,IAAMb,sBAGK,2DAAiB,wBAAwB;","names":["assignProductsToProductGroup","bulkCreateProductGroups","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","bulkUpdateProductGroups","createProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","searchProductGroups","unassignProductsFromProductGroup","updateProductGroup","import_float","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","ChoiceType","AvailabilityStatus","MembershipStatus","CustomizationType","CustomizationRenderType","MediaType","ProductGroupRequestedFields","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","WebhookIdentityType","createProductGroup","sdkTransformError","updateProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","createProductGroup","updateProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","typedQueryProductGroups","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter","import_rest_modules","queryProductGroups","typedQueryProductGroups","createProductGroup","updateProductGroup","deleteProductGroup","getProductGroup","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter"]}