@wix/auto_sdk_stores_product-groups-v-3 1.0.0
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.
- package/build/cjs/index.d.ts +11 -0
- package/build/cjs/index.js +1279 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +7 -0
- package/build/cjs/index.typings.js +1141 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1393 -0
- package/build/cjs/meta.js +939 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.ts +1824 -0
- package/build/es/index.d.mts +11 -0
- package/build/es/index.mjs +1226 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +7 -0
- package/build/es/index.typings.mjs +1087 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1393 -0
- package/build/es/meta.mjs +884 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.mts +1824 -0
- package/build/internal/cjs/index.d.ts +162 -0
- package/build/internal/cjs/index.js +1279 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +21 -0
- package/build/internal/cjs/index.typings.js +1141 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1393 -0
- package/build/internal/cjs/meta.js +939 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.ts +1986 -0
- package/build/internal/es/index.d.mts +162 -0
- package/build/internal/es/index.mjs +1226 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +21 -0
- package/build/internal/es/index.typings.mjs +1087 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1393 -0
- package/build/internal/es/meta.mjs +884 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.mts +1986 -0
- package/meta/package.json +3 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/stores-catalog-v3-product-group-product-groups-v-3.universal.ts","../../../src/stores-catalog-v3-product-group-product-groups-v-3.http.ts"],"sourcesContent":["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 { 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 related products based on a shared customization\n * (option or modifier). Each member product is automatically assigned to\n * represent a specific choice of that customization.\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.\n * To prevent conflicting changes,\n * 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.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared customization (option or modifier) that defines\n * the grouping attribute. 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 choices in the storefront.\n * Choices not listed here will appear after the listed ones.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Products that belong to this group, with their derived choice and status.\n * Ordered according to `choice_order`.\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group.\n * Useful for external catalog sync systems. Unique per site.\n * If not provided during creation, a random UUID is automatically 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 catalog [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `grouping_customization_id` (for example, name and render type).\n *\n * > **Note:** Returned only when you pass `\"GROUPING_CUSTOMIZATION\"` to the `fields` array in Product Groups API requests.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /**\n * Custom field data for the product group.\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)\n * must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\n/** Represents a product within a product group, with its derived choice and status. */\nexport interface ProductGroupMember {\n /**\n * The member product ID.\n * @minLength 1\n * @maxLength 36\n */\n productId?: string;\n /**\n * The choice derived from the product's option or modifier data\n * for the group's `grouping_customization_id`.\n */\n choice?: ProductChoice;\n /**\n * The product's URL slug, for storefront navigation between siblings.\n * @minLength 1\n * @maxLength 200\n */\n slug?: string | null;\n /** The product's inventory availability status, for rendering out-of-stock choices as disabled. */\n inventoryAvailabilityStatus?: AvailabilityStatusWithLiterals;\n /**\n * Membership status. Indicates whether the product qualifies for display in the group.\n * + `ACTIVE` — Product has exactly one choice for the group's customization and is visible.\n * + `HIDDEN` — Merchant manually hid this product from site visitors.\n * + `OUT_OF_SYNC` — Product no longer qualifies for the group. For example, the group's\n * customization was removed from the product, or the product has multiple choices for it.\n */\n status?: MembershipStatusWithLiterals;\n /**\n * The product's name, materialized for search indexing.\n * @maxLength 100\n */\n productName?: string | null;\n}\n\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).\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 `customizationRenderType: 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).\n * @minLength 3\n * @maxLength 20\n * @format COLOR_HEX\n */\n colorCode?: string;\n}\n\nexport enum ChoiceType {\n /** For a `customizationRenderType` of `TEXT_CHOICES`. */\n CHOICE_TEXT = 'CHOICE_TEXT',\n /** For `customizationRenderType: 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 is active and visible in the group. */\n ACTIVE = 'ACTIVE',\n /** Merchant manually hid this product from site visitors. */\n HIDDEN = 'HIDDEN',\n /** Product no longer qualifies (missing customization, multiple choices, etc.). */\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\nexport interface GroupingCustomization {\n /**\n * @minLength 1\n * @maxLength 36\n */\n _id?: string | null;\n /**\n * @minLength 1\n * @maxLength 50\n */\n key?: string | null;\n /**\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n customizationType?: CustomizationTypeWithLiterals;\n customizationRenderType?: CustomizationRenderTypeWithLiterals;\n}\n\nexport enum CustomizationType {\n PRODUCT_OPTION = 'PRODUCT_OPTION',\n MODIFIER = 'MODIFIER',\n}\n\n/** @enumType */\nexport type CustomizationTypeWithLiterals =\n | CustomizationType\n | 'PRODUCT_OPTION'\n | 'MODIFIER';\n\nexport enum CustomizationRenderType {\n FREE_TEXT = 'FREE_TEXT',\n TEXT_CHOICES = 'TEXT_CHOICES',\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 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\nexport interface ProductGroupTagsModified {\n /** Updated ProductGroup. */\n productGroup?: ProductGroup;\n /** Tags that were assigned to the ProductGroup. */\n assignedTags?: Tags;\n /** Tags that were unassigned from the ProductGroup. */\n unassignedTags?: Tags;\n}\n\nexport interface CreateProductGroupRequest {\n /** The product group to create. */\n productGroup: ProductGroup;\n /**\n * Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport enum ProductGroupRequestedFields {\n /** Provides details of the customization referenced by `grouping_customization_id` (see `ProductGroup.grouping_customization`). */\n GROUPING_CUSTOMIZATION = 'GROUPING_CUSTOMIZATION',\n}\n\n/** @enumType */\nexport type ProductGroupRequestedFieldsWithLiterals =\n | ProductGroupRequestedFields\n | 'GROUPING_CUSTOMIZATION';\n\nexport interface CreateProductGroupResponse {\n /** The created product group. */\n productGroup?: ProductGroup;\n /**\n * Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupRequest {\n /** The product group to update with the desired field values. */\n productGroup: ProductGroup;\n /**\n * Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateProductGroupResponse {\n /** The updated product group. */\n productGroup?: ProductGroup;\n /**\n * Fields to include on the returned product_group (e.g. GROUPING_CUSTOMIZATION).\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 * Fields to include on the returned product group (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface GetProductGroupResponse {\n /** The requested product group. */\n productGroup?: ProductGroup;\n /**\n * Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface QueryProductGroupsRequest {\n /** WQL query — filter, sort, and cursor-based paging criteria. */\n query?: CursorQuery;\n /**\n * Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 /** List of product groups matching the query. */\n productGroups?: ProductGroup[];\n /** Paging metadata for the next cursor. */\n pagingMetadata?: CursorPagingMetadata;\n /**\n * Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 /** WQL search — filter, free-text search, sort, and cursor-based paging. */\n search?: CursorSearch;\n /**\n * Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 /** List of product groups matching the search. */\n productGroups?: ProductGroup[];\n /** Paging metadata for the next cursor. */\n pagingMetadata?: CursorPagingMetadata;\n /** Aggregation data from the search. */\n aggregationData?: AggregationData;\n /**\n * Optional expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 * List of product groups to create.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: ProductGroup[];\n /** Whether to return the created product group entities in the response. */\n returnEntity?: boolean;\n /**\n * Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface BulkCreateProductGroupsResponse {\n /**\n * Results for each product group creation attempt, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkProductGroupResult[];\n /** Aggregated success/failure counts. */\n bulkActionMetadata?: BulkActionMetadata;\n /**\n * Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).\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/** The result of a single item in a bulk create operation. */\nexport interface BulkProductGroupResult {\n itemMetadata?: ItemMetadata;\n /** Only populated if `return_entity` was `true` and the operation 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 * List of product groups to update, each with its own field mask.\n * @minSize 1\n * @maxSize 100\n */\n productGroups: MaskedProductGroup[];\n /** Whether to return the updated product group entities in the response. */\n returnEntity?: boolean;\n /**\n * Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\nexport interface MaskedProductGroup {\n /** The product group to update. `product_group.id` and `product_group.revision` are required. */\n productGroup?: ProductGroup;\n}\n\nexport interface BulkUpdateProductGroupsResponse {\n /**\n * Results for each product group update attempt, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success/failure counts. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\n/** The result of a single item in a bulk update operation. */\nexport interface BulkUpdateProductGroupsResponseBulkProductGroupResult {\n itemMetadata?: ItemMetadata;\n /** Only populated if `return_entity` was `true` and the operation 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. Duplicates are silently de-duplicated. Products already in the group are skipped.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\nexport interface AssignProductsToProductGroupResponse {\n /** Per-item results, one entry per product ID in the request. */\n results?: ProductAssignmentResult[];\n}\n\nexport interface ProductAssignmentResult {\n /** ID of the product. */\n productId?: string;\n /** Whether the assignment succeeded. */\n success?: boolean;\n /** Error details if the assignment failed. */\n error?: ApplicationError;\n}\n\nexport interface UnassignProductsFromProductGroupRequest {\n /**\n * ID of the product group to unassign products from.\n * @format GUID\n */\n productGroupId: string;\n /**\n * IDs of the products to unassign. Duplicates are silently 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-item results, one entry per product ID in the request. */\n results?: ProductUnassignmentResult[];\n}\n\nexport interface ProductUnassignmentResult {\n /** ID of the product */\n productId?: string;\n /** Whether the unassignment succeeded. */\n success?: boolean;\n /** Error details if the unassignment failed. */\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 * Results for each product group deletion attempt, in request order.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteProductGroupsResponseBulkProductGroupResult[];\n /** Aggregated success/failure counts. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteProductGroupsResponseBulkProductGroupResult {\n /** Metadata regarding the specific single delete operation. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface BulkUpdateProductGroupTagsRequest {\n /**\n * List of product group IDs whose tags will be updated.\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n productGroupIds: string[];\n /** List of tags to assign. */\n assignTags?: Tags;\n /** List of tags to unassign. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsResponse {\n /**\n * Results.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProductGroupTagsResult[];\n /** Aggregated success/failure counts. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProductGroupTagsResult {\n /** Metadata regarding the specific single update operation. */\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. Supported fields for filtering: `id`, `handle`.\n * Pass an empty object `{}` to target all product groups.\n */\n filter: Record<string, any> | null;\n /** List of tags to assign. */\n assignTags?: Tags;\n /** List of tags to unassign. */\n unassignTags?: Tags;\n}\n\nexport interface BulkUpdateProductGroupTagsByFilterResponse {\n /**\n * Job ID.\n *\n * Pass this ID to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/introduction) to retrieve job details and metadata..\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 new product group.\n * @param productGroup - The 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 The 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 | `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 productGroup: productGroup,\n fields: options?.fields,\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(result.data)?.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 * Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates a product group.\n * Each time the product group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the product group.\n * This ensures you're working with the latest product group and prevents unintended overwrites.\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 The 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 | `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 = renameKeysFromSDKRequestToRESTRequest({\n productGroup: { ...productGroup, id: _id },\n fields: options?.fields,\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(result.data)?.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.\n * To prevent conflicting changes,\n * 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.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * ID of the shared customization (option or modifier) that defines\n * the grouping attribute. 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 choices in the storefront.\n * Choices not listed here will appear after the listed ones.\n * @maxSize 100\n * @format GUID\n */\n choiceOrder?: string[];\n /**\n * Products that belong to this group, with their derived choice and status.\n * Ordered according to `choice_order`.\n * @readonly\n * @maxSize 100\n */\n members?: ProductGroupMember[];\n /**\n * Unique human-friendly identifier for the product group.\n *\n * Unlike the auto-generated `id`, the handle can be set when creating a product group.\n * Useful for external catalog sync systems. Unique per site.\n * If not provided during creation, a random UUID is automatically 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 catalog [customization](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/introduction) referenced by `grouping_customization_id` (for example, name and render type).\n *\n * > **Note:** Returned only when you pass `\"GROUPING_CUSTOMIZATION\"` to the `fields` array in Product Groups API requests.\n * @readonly\n */\n groupingCustomization?: GroupingCustomization;\n /**\n * Custom field data for the product group.\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)\n * must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /** Tags */\n tags?: Tags;\n}\n\nexport interface UpdateProductGroupOptions {\n /**\n * Fields to include on the returned `product_group` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Deletes a product group.\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 * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\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 The requested 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 | `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(result.data)?.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 * Fields to include on the returned product group (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Queries product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\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\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 expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 | `fields`,\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 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(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', '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 * Searches product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) with full-text search support.\n * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\n * @param search - WQL search — filter, free-text search, sort, 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 | `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(result.data)!;\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 expansions on each returned product group (e.g. `GROUPING_CUSTOMIZATION`).\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 * @param productGroups - List of 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 | `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 = renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\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(result.data)!;\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 /** Whether to return the created product group entities in the response. */\n returnEntity?: boolean;\n /**\n * Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates multiple product groups in a single request.\n * Each item carries its own `field_mask` to allow partial updates per item.\n * The current `revision` must be passed for each product group to prevent conflicting changes.\n * @param productGroups - List of product groups to update, each with its own field mask.\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 | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n productGroups: productGroups,\n returnEntity: options?.returnEntity,\n fields: options?.fields,\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(result.data)!;\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 /** Whether to return the updated product group entities in the response. */\n returnEntity?: boolean;\n /**\n * Fields to include on each returned `item` (e.g. `GROUPING_CUSTOMIZATION`).\n * @maxSize 10\n */\n fields?: ProductGroupRequestedFieldsWithLiterals[];\n}\n\n/**\n * Assigns multiple products to a product group in a single request.\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. Duplicates are silently de-duplicated. Products already in the group are skipped.\n * @minSize 1\n * @maxSize 100\n * @minLength 1\n * @maxLength 36\n */\n productIds: string[];\n}\n\n/**\n * Removes multiple products from a product group in a single request.\n * @param productGroupId - ID of the product group to unassign 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. Duplicates are silently 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 * @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 * Synchronously update tags on multiple product groups, by list of product group IDs.\n * A tag that appears both in the list of assign and unassign tags, will be assigned.\n * @param productGroupIds - List of product group IDs whose tags will be 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 /** List of tags to assign. */\n assignTags?: Tags;\n /** List of tags to unassign. */\n unassignTags?: Tags;\n}\n\n/**\n * Asynchronously update tags on multiple product groups, by provided filter.\n * An empty filter will update all product groups.\n * A tag that appears both in the list of assign and unassign tags, will be assigned.\n * @param filter - Filter object. Supported fields for filtering: `id`, `handle`.\n * Pass an empty object `{}` to target all product groups.\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 /** List of tags to assign. */\n assignTags?: Tags;\n /** List of tags to unassign. */\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/** Creates a new product group. */\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 ],\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 ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProductGroup;\n}\n\n/**\n * Updates a product group.\n * Each time the product group is updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the product group.\n * This ensures you're working with the latest product group and prevents unintended overwrites.\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 ],\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 ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProductGroup;\n}\n\n/** Deletes a product group. */\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 * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\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 ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProductGroup;\n}\n\n/**\n * Queries product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\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 ],\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 * Searches product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) with full-text search support.\n * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.\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 ],\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/** Creates multiple product groups in a single request. */\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 ],\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 ],\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 * Each item carries its own `field_mask` to allow partial updates per item.\n * The current `revision` must be passed for each product group to prevent conflicting changes.\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 ],\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 ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateProductGroups;\n}\n\n/** Assigns multiple products to a product group in a single request. */\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/** Removes multiple products from a product group in a single request. */\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/** Deletes multiple product groups in a single request. */\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 * Synchronously update tags on multiple product groups, by list of product group IDs.\n * A tag that appears both in the list of assign and unassign tags, will be assigned.\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 update tags on multiple product groups, by provided filter.\n * An empty filter will update all product groups.\n * A tag that appears both in the list of assign and unassign tags, will be assigned.\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"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,4DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF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AAAA,MACA,CAAC,mBAAmB,SAAS;AAAA,IAC/B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAsBA,eAAsBC,oCACpB,QACA,SAKA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,IACA,YAAY,SAAS;AAAA,IACrB,cAAc,SAAS;AAAA,EACzB,CAAC;AAED,QAAM,UACqC;AAAA,IACvC;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO,wCAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,cAAc;AAAA,QAChB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,UAAU,SAAS;AAAA,IACtB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","ChoiceType","AvailabilityStatus","MembershipStatus","CustomizationType","CustomizationRenderType","ProductGroupRequestedFields","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","WebhookIdentityType","createProductGroup","updateProductGroup","deleteProductGroup","getProductGroup","queryProductGroups","searchProductGroups","bulkCreateProductGroups","bulkUpdateProductGroups","assignProductsToProductGroup","unassignProductsFromProductGroup","bulkDeleteProductGroups","bulkUpdateProductGroupTags","bulkUpdateProductGroupTagsByFilter"]}
|