@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.
Files changed (43) hide show
  1. package/build/cjs/index.d.ts +11 -0
  2. package/build/cjs/index.js +1279 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +7 -0
  5. package/build/cjs/index.typings.js +1141 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1393 -0
  8. package/build/cjs/meta.js +939 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.ts +1824 -0
  11. package/build/es/index.d.mts +11 -0
  12. package/build/es/index.mjs +1226 -0
  13. package/build/es/index.mjs.map +1 -0
  14. package/build/es/index.typings.d.mts +7 -0
  15. package/build/es/index.typings.mjs +1087 -0
  16. package/build/es/index.typings.mjs.map +1 -0
  17. package/build/es/meta.d.mts +1393 -0
  18. package/build/es/meta.mjs +884 -0
  19. package/build/es/meta.mjs.map +1 -0
  20. package/build/es/package.json +3 -0
  21. package/build/es/stores-catalog-v3-product-group-product-groups-v-3.universal-BSxpFEZE.d.mts +1824 -0
  22. package/build/internal/cjs/index.d.ts +162 -0
  23. package/build/internal/cjs/index.js +1279 -0
  24. package/build/internal/cjs/index.js.map +1 -0
  25. package/build/internal/cjs/index.typings.d.ts +21 -0
  26. package/build/internal/cjs/index.typings.js +1141 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -0
  28. package/build/internal/cjs/meta.d.ts +1393 -0
  29. package/build/internal/cjs/meta.js +939 -0
  30. package/build/internal/cjs/meta.js.map +1 -0
  31. package/build/internal/cjs/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.ts +1986 -0
  32. package/build/internal/es/index.d.mts +162 -0
  33. package/build/internal/es/index.mjs +1226 -0
  34. package/build/internal/es/index.mjs.map +1 -0
  35. package/build/internal/es/index.typings.d.mts +21 -0
  36. package/build/internal/es/index.typings.mjs +1087 -0
  37. package/build/internal/es/index.typings.mjs.map +1 -0
  38. package/build/internal/es/meta.d.mts +1393 -0
  39. package/build/internal/es/meta.mjs +884 -0
  40. package/build/internal/es/meta.mjs.map +1 -0
  41. package/build/internal/es/stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.d.mts +1986 -0
  42. package/meta/package.json +3 -0
  43. package/package.json +55 -0
@@ -0,0 +1,162 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { P as ProductGroup, C as CreateProductGroupOptions, U as UpdateProductGroup, a as UpdateProductGroupOptions, G as GetProductGroupOptions, b as ProductGroupSearch, S as SearchProductGroupsOptions, c as SearchProductGroupsResponse, B as BulkCreateProductGroupsOptions, d as BulkCreateProductGroupsResponse, M as MaskedProductGroup, e as BulkUpdateProductGroupsOptions, f as BulkUpdateProductGroupsResponse, A as AssignProductsToProductGroupOptions, g as AssignProductsToProductGroupResponse, h as UnassignProductsFromProductGroupOptions, i as UnassignProductsFromProductGroupResponse, j as BulkDeleteProductGroupsResponse, k as BulkUpdateProductGroupTagsOptions, l as BulkUpdateProductGroupTagsResponse, m as BulkUpdateProductGroupTagsApplicationErrors, n as BulkUpdateProductGroupTagsByFilterOptions, o as BulkUpdateProductGroupTagsByFilterResponse, p as BulkUpdateProductGroupTagsByFilterApplicationErrors, q as ProductGroupQuery, Q as QueryProductGroupsOptions, t as typedQueryProductGroups, r as ProductGroupsQueryBuilder } from './stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.js';
3
+ export { be as AccountInfo, b8 as ActionEvent, ah as Aggregation, au as AggregationData, ai as AggregationKindOneOf, aN as AggregationResults, aO as AggregationResultsResultOneOf, aB as AggregationResultsScalarResult, J as AggregationType, bw as AggregationTypeWithLiterals, aR as ApplicationError, aW as AssignProductsToProductGroupRequest, u as AvailabilityStatus, bk as AvailabilityStatusWithLiterals, aT as BulkActionMetadata, aP as BulkCreateProductGroupsRequest, a_ as BulkDeleteProductGroupsRequest, a$ as BulkDeleteProductGroupsResponseBulkProductGroupResult, aS as BulkProductGroupResult, ba as BulkUpdateProductGroupTagsByFilterRequest, b0 as BulkUpdateProductGroupTagsRequest, b1 as BulkUpdateProductGroupTagsResult, aU as BulkUpdateProductGroupsRequest, aV as BulkUpdateProductGroupsResponseBulkProductGroupResult, s as ChoiceType, bj as ChoiceTypeWithLiterals, bz as CommonQueryWithEntityContext, bA as CommonSearchWithEntityContext, _ as CreateProductGroupRequest, $ as CreateProductGroupResponse, aa as CursorPaging, ac as CursorPagingMetadata, a7 as CursorQuery, a8 as CursorQueryPagingMethodOneOf, af as CursorSearch, ag as CursorSearchPagingMethodOneOf, ad as Cursors, x as CustomizationRenderType, bn as CustomizationRenderTypeWithLiterals, w as CustomizationType, bm as CustomizationTypeWithLiterals, ap as DateHistogramAggregation, aJ as DateHistogramResult, aL as DateHistogramResults, a2 as DeleteProductGroupRequest, a3 as DeleteProductGroupResponse, b2 as DomainEvent, b3 as DomainEventBodyOneOf, b9 as Empty, b4 as EntityCreatedEvent, b7 as EntityDeletedEvent, b6 as EntityUpdatedEvent, V as ExtendedFields, a4 as GetProductGroupRequest, a5 as GetProductGroupResponse, aK as GroupByValueResults, T as GroupingCustomization, bc as IdentificationData, bd as IdentificationDataIdOneOf, ak as IncludeMissingValuesOptions, I as Interval, bv as IntervalWithLiterals, aQ as ItemMetadata, v as MembershipStatus, bl as MembershipStatusWithLiterals, bb as MessageEnvelope, F as MissingValues, bs as MissingValuesWithLiterals, K as Mode, bx as ModeWithLiterals, as as NestedAggregation, aq as NestedAggregationItem, ar as NestedAggregationItemKindOneOf, ax as NestedAggregationResults, ay as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bu as NestedAggregationTypeWithLiterals, aG as NestedResultValue, aH as NestedResultValueResultOneOf, aM as NestedResults, aC as NestedValueAggregationResult, aX as ProductAssignmentResult, O as ProductChoice, R as ProductChoiceValueOneOf, L as ProductGroupMember, bg as ProductGroupQuerySpec, y as ProductGroupRequestedFields, bo as ProductGroupRequestedFieldsWithLiterals, bh as ProductGroupSearchSpec, Z as ProductGroupTagsModified, bf as ProductGroupsQueryResult, aZ as ProductUnassignmentResult, a6 as QueryProductGroupsRequest, ab as QueryProductGroupsResponse, an as RangeAggregation, aw as RangeAggregationResult, aj as RangeBucket, aE as RangeResult, aA as RangeResults, b5 as RestoreInfo, aI as Results, ao as ScalarAggregation, aF as ScalarResult, H as ScalarType, bt as ScalarTypeWithLiterals, at as SearchDetails, ae as SearchProductGroupsRequest, E as SortDirection, br as SortDirectionWithLiterals, z as SortOrder, bp as SortOrderWithLiterals, D as SortType, bq as SortTypeWithLiterals, a9 as Sorting, Y as TagList, X as Tags, aY as UnassignProductsFromProductGroupRequest, a0 as UpdateProductGroupRequest, a1 as UpdateProductGroupResponse, al as ValueAggregation, am as ValueAggregationOptionsOneOf, av as ValueAggregationResult, aD as ValueResult, az as ValueResults, W as WebhookIdentityType, by as WebhookIdentityTypeWithLiterals, bi as utils } from './stores-catalog-v3-product-group-product-groups-v-3.universal-4XnTTWRs.js';
4
+
5
+ /** @internal */
6
+ declare function createProductGroup$1(httpClient: HttpClient): CreateProductGroupSignature;
7
+ interface CreateProductGroupSignature {
8
+ /**
9
+ * Creates a new product group.
10
+ * @param - The product group to create.
11
+ * @returns The created product group.
12
+ */
13
+ (productGroup: NonNullablePaths<ProductGroup, `groupingCustomizationId` | `name`, 2>, options?: CreateProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
14
+ }
15
+ /** @internal */
16
+ declare function updateProductGroup$1(httpClient: HttpClient): UpdateProductGroupSignature;
17
+ interface UpdateProductGroupSignature {
18
+ /**
19
+ * Updates a product group.
20
+ * Each time the product group is updated, `revision` increments by 1.
21
+ * The current `revision` must be passed when updating the product group.
22
+ * This ensures you're working with the latest product group and prevents unintended overwrites.
23
+ * @param - Product group ID.
24
+ * @returns The updated product group.
25
+ */
26
+ (_id: string, productGroup: NonNullablePaths<UpdateProductGroup, `revision`, 2>, options?: UpdateProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
27
+ }
28
+ /** @internal */
29
+ declare function deleteProductGroup$1(httpClient: HttpClient): DeleteProductGroupSignature;
30
+ interface DeleteProductGroupSignature {
31
+ /**
32
+ * Deletes a product group.
33
+ * @param - ID of the product group to delete.
34
+ */
35
+ (productGroupId: string): Promise<void>;
36
+ }
37
+ /** @internal */
38
+ declare function getProductGroup$1(httpClient: HttpClient): GetProductGroupSignature;
39
+ interface GetProductGroupSignature {
40
+ /**
41
+ * Retrieves a product group by ID.
42
+ * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.
43
+ * @param - ID of the product group to retrieve.
44
+ * @returns The requested product group.
45
+ */
46
+ (productGroupId: string, options?: GetProductGroupOptions): Promise<NonNullablePaths<ProductGroup, `choiceOrder` | `members` | `members.${number}.productId` | `members.${number}.choice.colorCode` | `members.${number}.choice._id` | `members.${number}.choice.choiceType` | `members.${number}.choice.name` | `members.${number}.inventoryAvailabilityStatus` | `members.${number}.status` | `groupingCustomization.name` | `groupingCustomization.customizationType` | `groupingCustomization.customizationRenderType` | `tags.privateTags.tagIds`, 5>>;
47
+ }
48
+ /** @internal */
49
+ declare function searchProductGroups$1(httpClient: HttpClient): SearchProductGroupsSignature;
50
+ interface SearchProductGroupsSignature {
51
+ /**
52
+ * Searches product groups using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) with full-text search support.
53
+ * Without `read_non_visible` permission, members with status `HIDDEN` or `OUT_OF_SYNC` are filtered out.
54
+ * @param - WQL search — filter, free-text search, sort, and cursor-based paging.
55
+ */
56
+ (search: ProductGroupSearch, options?: SearchProductGroupsOptions): Promise<NonNullablePaths<SearchProductGroupsResponse, `productGroups` | `productGroups.${number}.groupingCustomization.name` | `productGroups.${number}.groupingCustomization.customizationType` | `productGroups.${number}.groupingCustomization.customizationRenderType` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath` | `fields`, 6>>;
57
+ }
58
+ /** @internal */
59
+ declare function bulkCreateProductGroups$1(httpClient: HttpClient): BulkCreateProductGroupsSignature;
60
+ interface BulkCreateProductGroupsSignature {
61
+ /**
62
+ * Creates multiple product groups in a single request.
63
+ * @param - List of product groups to create.
64
+ */
65
+ (productGroups: NonNullablePaths<ProductGroup, `groupingCustomizationId` | `name`, 2>[], options?: BulkCreateProductGroupsOptions): Promise<NonNullablePaths<BulkCreateProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.groupingCustomization.name` | `results.${number}.item.groupingCustomization.customizationType` | `results.${number}.item.groupingCustomization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures` | `fields`, 6>>;
66
+ }
67
+ /** @internal */
68
+ declare function bulkUpdateProductGroups$1(httpClient: HttpClient): BulkUpdateProductGroupsSignature;
69
+ interface BulkUpdateProductGroupsSignature {
70
+ /**
71
+ * Updates multiple product groups in a single request.
72
+ * Each item carries its own `field_mask` to allow partial updates per item.
73
+ * The current `revision` must be passed for each product group to prevent conflicting changes.
74
+ * @param - List of product groups to update, each with its own field mask.
75
+ */
76
+ (productGroups: NonNullablePaths<MaskedProductGroup, `productGroup._id` | `productGroup.revision`, 3>[], options?: BulkUpdateProductGroupsOptions): Promise<NonNullablePaths<BulkUpdateProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.groupingCustomization.name` | `results.${number}.item.groupingCustomization.customizationType` | `results.${number}.item.groupingCustomization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
77
+ }
78
+ /** @internal */
79
+ declare function assignProductsToProductGroup$1(httpClient: HttpClient): AssignProductsToProductGroupSignature;
80
+ interface AssignProductsToProductGroupSignature {
81
+ /**
82
+ * Assigns multiple products to a product group in a single request.
83
+ * @param - ID of the product group to assign products to.
84
+ */
85
+ (productGroupId: string, options: NonNullablePaths<AssignProductsToProductGroupOptions, `productIds`, 2>): Promise<NonNullablePaths<AssignProductsToProductGroupResponse, `results` | `results.${number}.productId` | `results.${number}.success` | `results.${number}.error.code` | `results.${number}.error.description`, 5>>;
86
+ }
87
+ /** @internal */
88
+ declare function unassignProductsFromProductGroup$1(httpClient: HttpClient): UnassignProductsFromProductGroupSignature;
89
+ interface UnassignProductsFromProductGroupSignature {
90
+ /**
91
+ * Removes multiple products from a product group in a single request.
92
+ * @param - ID of the product group to unassign products from.
93
+ */
94
+ (productGroupId: string, options: NonNullablePaths<UnassignProductsFromProductGroupOptions, `productIds`, 2>): Promise<NonNullablePaths<UnassignProductsFromProductGroupResponse, `results` | `results.${number}.productId` | `results.${number}.success` | `results.${number}.error.code` | `results.${number}.error.description`, 5>>;
95
+ }
96
+ /** @internal */
97
+ declare function bulkDeleteProductGroups$1(httpClient: HttpClient): BulkDeleteProductGroupsSignature;
98
+ interface BulkDeleteProductGroupsSignature {
99
+ /**
100
+ * Deletes multiple product groups in a single request.
101
+ * @param - IDs of the product groups to delete.
102
+ */
103
+ (productGroupIds: string[]): Promise<NonNullablePaths<BulkDeleteProductGroupsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
104
+ }
105
+ /** @internal */
106
+ declare function bulkUpdateProductGroupTags$1(httpClient: HttpClient): BulkUpdateProductGroupTagsSignature;
107
+ interface BulkUpdateProductGroupTagsSignature {
108
+ /**
109
+ * Synchronously update tags on multiple product groups, by list of product group IDs.
110
+ * A tag that appears both in the list of assign and unassign tags, will be assigned.
111
+ * @param - List of product group IDs whose tags will be updated.
112
+ */
113
+ (productGroupIds: string[], options?: BulkUpdateProductGroupTagsOptions): Promise<NonNullablePaths<BulkUpdateProductGroupTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
114
+ __applicationErrorsType?: BulkUpdateProductGroupTagsApplicationErrors;
115
+ }>;
116
+ }
117
+ /** @internal */
118
+ declare function bulkUpdateProductGroupTagsByFilter$1(httpClient: HttpClient): BulkUpdateProductGroupTagsByFilterSignature;
119
+ interface BulkUpdateProductGroupTagsByFilterSignature {
120
+ /**
121
+ * Asynchronously update tags on multiple product groups, by provided filter.
122
+ * An empty filter will update all product groups.
123
+ * A tag that appears both in the list of assign and unassign tags, will be assigned.
124
+ * @param - Filter object. Supported fields for filtering: `id`, `handle`.
125
+ * Pass an empty object `{}` to target all product groups.
126
+ */
127
+ (filter: Record<string, any>, options?: BulkUpdateProductGroupTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateProductGroupTagsByFilterResponse, `jobId`, 2> & {
128
+ __applicationErrorsType?: BulkUpdateProductGroupTagsByFilterApplicationErrors;
129
+ }>;
130
+ }
131
+
132
+ declare function customQueryProductGroups(httpClient: HttpClient): {
133
+ (query: ProductGroupQuery, options?: QueryProductGroupsOptions): ReturnType<typeof typedQueryProductGroups>;
134
+ (options?: QueryProductGroupsOptions): ProductGroupsQueryBuilder;
135
+ };
136
+ /** @internal */
137
+ declare const createProductGroup: MaybeContext<BuildRESTFunction<typeof createProductGroup$1> & typeof createProductGroup$1>;
138
+ /** @internal */
139
+ declare const updateProductGroup: MaybeContext<BuildRESTFunction<typeof updateProductGroup$1> & typeof updateProductGroup$1>;
140
+ /** @internal */
141
+ declare const deleteProductGroup: MaybeContext<BuildRESTFunction<typeof deleteProductGroup$1> & typeof deleteProductGroup$1>;
142
+ /** @internal */
143
+ declare const getProductGroup: MaybeContext<BuildRESTFunction<typeof getProductGroup$1> & typeof getProductGroup$1>;
144
+ /** @internal */
145
+ declare const searchProductGroups: MaybeContext<BuildRESTFunction<typeof searchProductGroups$1> & typeof searchProductGroups$1>;
146
+ /** @internal */
147
+ declare const bulkCreateProductGroups: MaybeContext<BuildRESTFunction<typeof bulkCreateProductGroups$1> & typeof bulkCreateProductGroups$1>;
148
+ /** @internal */
149
+ declare const bulkUpdateProductGroups: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductGroups$1> & typeof bulkUpdateProductGroups$1>;
150
+ /** @internal */
151
+ declare const assignProductsToProductGroup: MaybeContext<BuildRESTFunction<typeof assignProductsToProductGroup$1> & typeof assignProductsToProductGroup$1>;
152
+ /** @internal */
153
+ declare const unassignProductsFromProductGroup: MaybeContext<BuildRESTFunction<typeof unassignProductsFromProductGroup$1> & typeof unassignProductsFromProductGroup$1>;
154
+ /** @internal */
155
+ declare const bulkDeleteProductGroups: MaybeContext<BuildRESTFunction<typeof bulkDeleteProductGroups$1> & typeof bulkDeleteProductGroups$1>;
156
+ /** @internal */
157
+ declare const bulkUpdateProductGroupTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductGroupTags$1> & typeof bulkUpdateProductGroupTags$1>;
158
+ /** @internal */
159
+ declare const bulkUpdateProductGroupTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateProductGroupTagsByFilter$1> & typeof bulkUpdateProductGroupTagsByFilter$1>;
160
+ declare const queryProductGroups: MaybeContext<BuildRESTFunction<typeof customQueryProductGroups> & typeof customQueryProductGroups>;
161
+
162
+ export { AssignProductsToProductGroupOptions, AssignProductsToProductGroupResponse, BulkCreateProductGroupsOptions, BulkCreateProductGroupsResponse, BulkDeleteProductGroupsResponse, BulkUpdateProductGroupTagsApplicationErrors, BulkUpdateProductGroupTagsByFilterApplicationErrors, BulkUpdateProductGroupTagsByFilterOptions, BulkUpdateProductGroupTagsByFilterResponse, BulkUpdateProductGroupTagsOptions, BulkUpdateProductGroupTagsResponse, BulkUpdateProductGroupsOptions, BulkUpdateProductGroupsResponse, CreateProductGroupOptions, GetProductGroupOptions, MaskedProductGroup, ProductGroup, ProductGroupQuery, ProductGroupSearch, ProductGroupsQueryBuilder, QueryProductGroupsOptions, SearchProductGroupsOptions, SearchProductGroupsResponse, UnassignProductsFromProductGroupOptions, UnassignProductsFromProductGroupResponse, UpdateProductGroup, UpdateProductGroupOptions, assignProductsToProductGroup, bulkCreateProductGroups, bulkDeleteProductGroups, bulkUpdateProductGroupTags, bulkUpdateProductGroupTagsByFilter, bulkUpdateProductGroups, createProductGroup, deleteProductGroup, getProductGroup, queryProductGroups, searchProductGroups, unassignProductsFromProductGroup, updateProductGroup };