@wix/auto_sdk_categories_categories 1.0.64 → 1.0.66
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/{categories-v1-category-categories.universal-D3bNXid_.d.ts → categories-v1-category-categories.universal-BlFKA1o5.d.ts} +30 -9
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +63 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -3
- package/build/cjs/index.typings.js +54 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -2
- package/build/cjs/meta.js +38 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{categories-v1-category-categories.universal-D3bNXid_.d.mts → categories-v1-category-categories.universal-BlFKA1o5.d.mts} +30 -9
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +62 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -3
- package/build/es/index.typings.mjs +53 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -2
- package/build/es/meta.mjs +37 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{categories-v1-category-categories.universal-D3bNXid_.d.ts → categories-v1-category-categories.universal-CbeMRTiB.d.ts} +49 -9
- package/build/internal/cjs/index.d.ts +17 -3
- package/build/internal/cjs/index.js +63 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -3
- package/build/internal/cjs/index.typings.js +54 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +17 -2
- package/build/internal/cjs/meta.js +38 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{categories-v1-category-categories.universal-D3bNXid_.d.mts → categories-v1-category-categories.universal-CbeMRTiB.d.mts} +49 -9
- package/build/internal/es/index.d.mts +17 -3
- package/build/internal/es/index.mjs +62 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -3
- package/build/internal/es/index.typings.mjs +53 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +17 -2
- package/build/internal/es/meta.mjs +37 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3538,6 +3538,20 @@ interface GetArrangedItemsResponse {
|
|
|
3538
3538
|
*/
|
|
3539
3539
|
items?: ItemReference[];
|
|
3540
3540
|
}
|
|
3541
|
+
interface SetItemCategoriesRequest {
|
|
3542
|
+
/** The item to update. */
|
|
3543
|
+
item: ItemReference;
|
|
3544
|
+
/**
|
|
3545
|
+
* List of category IDs to set for the item.
|
|
3546
|
+
* @format GUID
|
|
3547
|
+
* @maxSize 1000
|
|
3548
|
+
*/
|
|
3549
|
+
categoryIds: string[];
|
|
3550
|
+
/** Category tree reference details. */
|
|
3551
|
+
treeReference: TreeReference;
|
|
3552
|
+
}
|
|
3553
|
+
interface SetItemCategoriesResponse {
|
|
3554
|
+
}
|
|
3541
3555
|
interface GetCategoriesTreeRequest {
|
|
3542
3556
|
/** Category tree reference details. */
|
|
3543
3557
|
treeReference?: TreeReference;
|
|
@@ -3791,6 +3805,11 @@ type SetArrangedItemsApplicationErrors = {
|
|
|
3791
3805
|
description?: string;
|
|
3792
3806
|
data?: Record<string, any>;
|
|
3793
3807
|
};
|
|
3808
|
+
type SetItemCategoriesApplicationErrors = {
|
|
3809
|
+
code?: 'MANAGED_CATEGORY_OPERATION_NOT_ALLOWED';
|
|
3810
|
+
description?: string;
|
|
3811
|
+
data?: Record<string, any>;
|
|
3812
|
+
};
|
|
3794
3813
|
interface BaseEventMetadata {
|
|
3795
3814
|
/**
|
|
3796
3815
|
* App instance ID.
|
|
@@ -4088,7 +4107,6 @@ interface CreateCategoryOptions {
|
|
|
4088
4107
|
* @requiredField treeReference.appNamespace
|
|
4089
4108
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4090
4109
|
* @applicableIdentity APP
|
|
4091
|
-
* @applicableIdentity VISITOR
|
|
4092
4110
|
* @returns Category.
|
|
4093
4111
|
* @fqn com.wix.categories.api.v1.CategoriesService.GetCategory
|
|
4094
4112
|
*/
|
|
@@ -4262,7 +4280,6 @@ declare function deleteCategory(categoryId: string, treeReference: NonNullablePa
|
|
|
4262
4280
|
* @public
|
|
4263
4281
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4264
4282
|
* @applicableIdentity APP
|
|
4265
|
-
* @applicableIdentity VISITOR
|
|
4266
4283
|
* @fqn com.wix.categories.api.v1.CategoriesService.QueryCategories
|
|
4267
4284
|
*/
|
|
4268
4285
|
declare function queryCategories(options: QueryCategoriesOptions): CategoriesQueryBuilder;
|
|
@@ -4528,7 +4545,6 @@ type CategorySearch = {
|
|
|
4528
4545
|
* @requiredField options.treeReference.appNamespace
|
|
4529
4546
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4530
4547
|
* @applicableIdentity APP
|
|
4531
|
-
* @applicableIdentity VISITOR
|
|
4532
4548
|
* @fqn com.wix.categories.api.v1.CategoriesService.CountCategories
|
|
4533
4549
|
*/
|
|
4534
4550
|
declare function countCategories(options?: NonNullablePaths<CountCategoriesOptions, `treeReference` | `treeReference.appNamespace`, 3>): Promise<NonNullablePaths<CountCategoriesResponse, `count`, 2>>;
|
|
@@ -4813,7 +4829,6 @@ interface BulkRemoveItemFromCategoriesOptions {
|
|
|
4813
4829
|
* @requiredField treeReference.appNamespace
|
|
4814
4830
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4815
4831
|
* @applicableIdentity APP
|
|
4816
|
-
* @applicableIdentity VISITOR
|
|
4817
4832
|
* @fqn com.wix.categories.api.v1.CategoriesService.ListItemsInCategory
|
|
4818
4833
|
*/
|
|
4819
4834
|
declare function listItemsInCategory(categoryId: string, treeReference: NonNullablePaths<TreeReference, `appNamespace`, 2>, options?: ListItemsInCategoryOptions): Promise<NonNullablePaths<ListItemsInCategoryResponse, `items` | `items.${number}.catalogItemId` | `items.${number}.appId`, 4>>;
|
|
@@ -4856,7 +4871,6 @@ interface ListItemsInCategoryOptionsPagingMethodOneOf {
|
|
|
4856
4871
|
* @requiredField options.treeReference.appNamespace
|
|
4857
4872
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4858
4873
|
* @applicableIdentity APP
|
|
4859
|
-
* @applicableIdentity VISITOR
|
|
4860
4874
|
* @fqn com.wix.categories.api.v1.CategoriesService.ListCategoriesForItem
|
|
4861
4875
|
*/
|
|
4862
4876
|
declare function listCategoriesForItem(item: ItemReference, options: NonNullablePaths<ListCategoriesForItemOptions, `treeReference` | `treeReference.appNamespace`, 3>): Promise<NonNullablePaths<ListCategoriesForItemResponse, `directCategoryIds` | `allCategoryIds`, 2>>;
|
|
@@ -4876,7 +4890,6 @@ interface ListCategoriesForItemOptions {
|
|
|
4876
4890
|
* @requiredField options.treeReference.appNamespace
|
|
4877
4891
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4878
4892
|
* @applicableIdentity APP
|
|
4879
|
-
* @applicableIdentity VISITOR
|
|
4880
4893
|
* @fqn com.wix.categories.api.v1.CategoriesService.ListCategoriesForItems
|
|
4881
4894
|
*/
|
|
4882
4895
|
declare function listCategoriesForItems(items: NonNullablePaths<ItemReference, `appId` | `catalogItemId`, 2>[], options: NonNullablePaths<ListCategoriesForItemsOptions, `treeReference` | `treeReference.appNamespace`, 3>): Promise<NonNullablePaths<ListCategoriesForItemsResponse, `categoriesForItems` | `categoriesForItems.${number}.item.catalogItemId` | `categoriesForItems.${number}.item.appId`, 5>>;
|
|
@@ -4889,7 +4902,6 @@ interface ListCategoriesForItemsOptions {
|
|
|
4889
4902
|
* @public
|
|
4890
4903
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4891
4904
|
* @applicableIdentity APP
|
|
4892
|
-
* @applicableIdentity VISITOR
|
|
4893
4905
|
* @fqn com.wix.categories.api.v1.CategoriesService.ListTrees
|
|
4894
4906
|
*/
|
|
4895
4907
|
declare function listTrees(): Promise<NonNullablePaths<ListTreesResponse, `trees` | `trees.${number}.appNamespace`, 4>>;
|
|
@@ -4928,9 +4940,18 @@ interface SetArrangedItemsOptions {
|
|
|
4928
4940
|
* @requiredField treeReference.appNamespace
|
|
4929
4941
|
* @permissionId CATEGORIES.CATEGORY_READ
|
|
4930
4942
|
* @applicableIdentity APP
|
|
4931
|
-
* @applicableIdentity VISITOR
|
|
4932
4943
|
* @fqn com.wix.categories.api.v1.CategoriesService.GetArrangedItems
|
|
4933
4944
|
*/
|
|
4934
4945
|
declare function getArrangedItems(categoryId: string, treeReference: NonNullablePaths<TreeReference, `appNamespace`, 2>): Promise<NonNullablePaths<GetArrangedItemsResponse, `items` | `items.${number}.catalogItemId` | `items.${number}.appId`, 4>>;
|
|
4946
|
+
interface SetItemCategoriesOptions {
|
|
4947
|
+
/**
|
|
4948
|
+
* List of category IDs to set for the item.
|
|
4949
|
+
* @format GUID
|
|
4950
|
+
* @maxSize 1000
|
|
4951
|
+
*/
|
|
4952
|
+
categoryIds: string[];
|
|
4953
|
+
/** Category tree reference details. */
|
|
4954
|
+
treeReference: TreeReference;
|
|
4955
|
+
}
|
|
4935
4956
|
|
|
4936
|
-
export { type CategoryCreatedEnvelope as $, type BulkRemoveItemsFromCategoryResponse as A, type BulkUpdateCategoriesOptions as B, type Category as C, type DeleteCategoryApplicationErrors as D, type BulkRemoveItemsFromCategoryApplicationErrors as E, type BulkRemoveItemFromCategoriesOptions as F, type GetCategoryOptions as G, type BulkRemoveItemFromCategoriesResponse as H, type ItemReference as I, type BulkRemoveItemFromCategoriesApplicationErrors as J, type ListItemsInCategoryResponse as K, type ListItemsInCategoryOptions as L, type MoveCategoryOptions as M, type ListCategoriesForItemOptions as N, type ListCategoriesForItemResponse as O, type ListCategoriesForItemsOptions as P, type QueryCategoriesOptions as Q, type ListCategoriesForItemsResponse as R, type SearchCategoriesOptions as S, type TreeReference as T, type UpdateCategory as U, type ListTreesResponse as V, type SetArrangedItemsOptions as W, type SetArrangedItemsResponse as X, type SetArrangedItemsApplicationErrors as Y, type GetArrangedItemsResponse as Z, type CategoryMovedEnvelope as _, type CreateCategoryOptions as a, type RichContent as a$, type CategoryDeletedEnvelope as a0, type CategoryItemAddedToCategoryEnvelope as a1, type CategoryItemRemovedFromCategoryEnvelope as a2, type CategoryItemsArrangedInCategoryEnvelope as a3, type CategoryUpdatedEnvelope as a4, NodeType as a5, WidthType as a6, PluginContainerDataAlignment as a7, ButtonDataType as a8, Target as a9, Layout as aA, AppType as aB, InitialExpandedItems as aC, Direction as aD, VerticalAlignment as aE, NullValue as aF, SingleEntityOpsRequestedFields as aG, SortOrder as aH, RequestedFields as aI, SortType as aJ, SortDirection as aK, MissingValues as aL, ScalarType as aM, NestedAggregationType as aN, Interval as aO, AggregationType as aP, Mode as aQ, Position as aR, MoveItemInCategoryRequestPosition as aS, WebhookIdentityType as aT, type BreadcrumbsInfo as aU, type Breadcrumb as aV, type ParentCategory as aW, type SeoSchema as aX, type Keyword as aY, type Tag as aZ, type Settings as a_, TextAlignment as aa, LineStyle as ab, Width as ac, DividerDataAlignment as ad, ViewMode as ae, LayoutType as af, Orientation as ag, Crop as ah, ThumbnailsAlignment as ai, GIFType as aj, Source as ak, StylesPosition as al, MapType as am, ViewRole as an, VoteRole as ao, PollLayoutType as ap, PollLayoutDirection as aq, BackgroundType as ar, DecorationType as as, FontType as at, ImageStylesPosition as au, AspectRatio as av, Resizing as aw, Placement as ax, Type as ay, Alignment as az, type CreateCategoryApplicationErrors as b, type ColorData as b$, type Node as b0, type NodeDataOneOf as b1, type NodeStyle as b2, type ButtonData as b3, type Border as b4, type Colors as b5, type PluginContainerData as b6, type PluginContainerDataWidth as b7, type PluginContainerDataWidthDataOneOf as b8, type Spoiler as b9, type HTMLDataDataOneOf as bA, type ImageData as bB, type StylesBorder as bC, type ImageDataStyles as bD, type LinkPreviewData as bE, type LinkPreviewDataStyles as bF, type MapData as bG, type MapSettings as bH, type ParagraphData as bI, type PollData as bJ, type Permissions as bK, type Option as bL, type PollSettings as bM, type PollLayout as bN, type OptionLayout as bO, type Gradient as bP, type Background as bQ, type BackgroundBackgroundOneOf as bR, type PollDesign as bS, type OptionDesign as bT, type Poll as bU, type PollDataLayout as bV, type Design as bW, type TextData as bX, type Decoration as bY, type DecorationDataOneOf as bZ, type AnchorData as b_, type Height as ba, type Styles as bb, type Link as bc, type LinkDataOneOf as bd, type Rel as be, type CodeBlockData as bf, type TextStyle as bg, type DividerData as bh, type FileData as bi, type FileSource as bj, type FileSourceDataOneOf as bk, type PDFSettings as bl, type GalleryData as bm, type Media as bn, type Image as bo, type Video as bp, type Item as bq, type ItemDataOneOf as br, type GalleryOptions as bs, type GalleryOptionsLayout as bt, type ItemStyle as bu, type Thumbnails as bv, type GIFData as bw, type GIF as bx, type HeadingData as by, type HTMLData as bz, type UpdateCategoryOptions as c, type ListCompactCategoriesByIdsRequest as c$, type LinkData as c0, type MentionData as c1, type FontSizeData as c2, type SpoilerData as c3, type AppEmbedData as c4, type AppEmbedDataAppDataOneOf as c5, type BookingData as c6, type EventData as c7, type ButtonStyles as c8, type ImageStyles as c9, type App as cA, type Page as cB, type URI as cC, type File as cD, type CustomTag as cE, type CategoryMoved as cF, type ItemAddedToCategory as cG, type ItemsAddedToCategory as cH, type ItemRemovedFromCategory as cI, type ItemsRemovedFromCategory as cJ, type ItemsArrangedInCategory as cK, type CreateCategoryRequest as cL, type CreateCategoryResponse as cM, type GetCategoryRequest as cN, type GetCategoryResponse as cO, type UpdateCategoryRequest as cP, type UpdateCategoryResponse as cQ, type DeleteCategoryRequest as cR, type DeleteCategoryResponse as cS, type QueryCategoriesRequest as cT, type CursorQuery as cU, type CursorQueryPagingMethodOneOf as cV, type Sorting as cW, type CursorPaging as cX, type QueryCategoriesResponse as cY, type CursorPagingMetadata as cZ, type Cursors as c_, type RibbonStyles as ca, type CardStyles as cb, type PricingData as cc, type VideoData as cd, type PlaybackOptions as ce, type EmbedData as cf, type Oembed as cg, type CollapsibleListData as ch, type TableData as ci, type Dimensions as cj, type TableCellData as ck, type CellStyle as cl, type BorderColors as cm, type ListValue as cn, type AudioData as co, type OrderedListData as cp, type BulletedListData as cq, type BlockquoteData as cr, type CaptionData as cs, type LayoutCellData as ct, type Metadata as cu, type DocumentStyle as cv, type TextNodeStyle as cw, type ExtendedFields as cx, type InvalidateCache as cy, type InvalidateCacheGetByOneOf as cz, type UpdateCategoryApplicationErrors as d, type BulkRemoveItemsFromCategoryRequest as d$, type ListCompactCategoriesByIdsResponse as d0, type CompactCategory as d1, type SearchCategoriesRequest as d2, type CursorSearch as d3, type CursorSearchPagingMethodOneOf as d4, type Aggregation as d5, type AggregationKindOneOf as d6, type RangeBucket as d7, type IncludeMissingValuesOptions as d8, type ValueAggregation as d9, type DateHistogramResults as dA, type NestedResults as dB, type AggregationResults as dC, type AggregationResultsResultOneOf as dD, type DeprecatedSearchCategoriesWithOffsetRequest as dE, type OffsetSearch as dF, type OffsetSearchPagingMethodOneOf as dG, type Paging as dH, type DeprecatedSearchCategoriesWithOffsetResponse as dI, type PagingMetadata as dJ, type CountCategoriesRequest as dK, type MoveCategoryRequest as dL, type BulkUpdateCategoriesRequest as dM, type BulkCategoriesResult as dN, type ItemMetadata as dO, type ApplicationError as dP, type BulkActionMetadata as dQ, type UpdateCategoryVisibilityRequest as dR, type BulkShowCategoriesRequest as dS, type BulkDeleteCategoriesRequest as dT, type BulkDeleteCategoriesResponse as dU, type BulkDeleteCategoriesResponseBulkCategoriesResult as dV, type BulkAddItemsToCategoryRequest as dW, type BulkItemsToCategoryResult as dX, type ItemReferenceMetadata as dY, type BulkAddItemToCategoriesRequest as dZ, type BulkItemToCategoriesResult as d_, type ValueAggregationOptionsOneOf as da, type RangeAggregation as db, type ScalarAggregation as dc, type DateHistogramAggregation as dd, type NestedAggregationItem as de, type NestedAggregationItemKindOneOf as df, type NestedAggregation as dg, type SearchDetails as dh, type AggregationData as di, type ValueAggregationResult as dj, type RangeAggregationResult as dk, type NestedAggregationResults as dl, type NestedAggregationResultsResultOneOf as dm, type ValueResults as dn, type RangeResults as dp, type AggregationResultsScalarResult as dq, type NestedValueAggregationResult as dr, type ValueResult as ds, type RangeResult as dt, type ScalarResult as du, type NestedResultValue as dv, type NestedResultValueResultOneOf as dw, type Results as dx, type DateHistogramResult as dy, type GroupByValueResults as dz, type CategoriesQueryBuilder as e, type AppTypeWithLiterals as e$, type BulkRemoveItemFromCategoriesRequest as e0, type ListItemsInCategoryRequest as e1, type ListItemsInCategoryRequestPagingMethodOneOf as e2, type PagingMetadataV2 as e3, type ListCategoriesForItemRequest as e4, type ListCategoriesForItemsRequest as e5, type MapItemToCategories as e6, type ListTreesRequest as e7, type MoveItemInCategoryRequest as e8, type MoveItemInCategoryResponse as e9, type TextAlignmentWithLiterals as eA, type LineStyleWithLiterals as eB, type WidthWithLiterals as eC, type DividerDataAlignmentWithLiterals as eD, type ViewModeWithLiterals as eE, type LayoutTypeWithLiterals as eF, type OrientationWithLiterals as eG, type CropWithLiterals as eH, type ThumbnailsAlignmentWithLiterals as eI, type GIFTypeWithLiterals as eJ, type SourceWithLiterals as eK, type StylesPositionWithLiterals as eL, type MapTypeWithLiterals as eM, type ViewRoleWithLiterals as eN, type VoteRoleWithLiterals as eO, type PollLayoutTypeWithLiterals as eP, type PollLayoutDirectionWithLiterals as eQ, type BackgroundTypeWithLiterals as eR, type DecorationTypeWithLiterals as eS, type FontTypeWithLiterals as eT, type ImageStylesPositionWithLiterals as eU, type AspectRatioWithLiterals as eV, type ResizingWithLiterals as eW, type PlacementWithLiterals as eX, type TypeWithLiterals as eY, type AlignmentWithLiterals as eZ, type LayoutWithLiterals as e_, type SetArrangedItemsRequest as ea, type GetArrangedItemsRequest as eb, type GetCategoriesTreeRequest as ec, type GetCategoriesTreeResponse as ed, type CategoryTreeNode as ee, type DomainEvent as ef, type DomainEventBodyOneOf as eg, type EntityCreatedEvent as eh, type RestoreInfo as ei, type EntityUpdatedEvent as ej, type EntityDeletedEvent as ek, type ActionEvent as el, type Empty as em, type MessageEnvelope as en, type IdentificationData as eo, type IdentificationDataIdOneOf as ep, type BaseEventMetadata as eq, type EventMetadata as er, type CategoriesQueryResult as es, type CategorySearchSpec as et, type ListItemsInCategoryOptionsPagingMethodOneOf as eu, type NodeTypeWithLiterals as ev, type WidthTypeWithLiterals as ew, type PluginContainerDataAlignmentWithLiterals as ex, type ButtonDataTypeWithLiterals as ey, type TargetWithLiterals as ez, type CategorySearch as f, type InitialExpandedItemsWithLiterals as f0, type DirectionWithLiterals as f1, type VerticalAlignmentWithLiterals as f2, type NullValueWithLiterals as f3, type SingleEntityOpsRequestedFieldsWithLiterals as f4, type SortOrderWithLiterals as f5, type RequestedFieldsWithLiterals as f6, type SortTypeWithLiterals as f7, type SortDirectionWithLiterals as f8, type MissingValuesWithLiterals as f9, bulkAddItemsToCategory as fA, bulkAddItemToCategories as fB, bulkRemoveItemsFromCategory as fC, bulkRemoveItemFromCategories as fD, listItemsInCategory as fE, listCategoriesForItem as fF, listCategoriesForItems as fG, listTrees as fH, setArrangedItems as fI, getArrangedItems as fJ, type ScalarTypeWithLiterals as fa, type NestedAggregationTypeWithLiterals as fb, type IntervalWithLiterals as fc, type AggregationTypeWithLiterals as fd, type ModeWithLiterals as fe, type PositionWithLiterals as ff, type MoveItemInCategoryRequestPositionWithLiterals as fg, type WebhookIdentityTypeWithLiterals as fh, type CommonSearchWithEntityContext as fi, onCategoryMoved as fj, onCategoryCreated as fk, onCategoryDeleted as fl, onCategoryItemAddedToCategory as fm, onCategoryItemRemovedFromCategory as fn, onCategoryItemsArrangedInCategory as fo, onCategoryUpdated as fp, createCategory as fq, getCategory as fr, updateCategory as fs, deleteCategory as ft, queryCategories as fu, countCategories as fv, moveCategory as fw, bulkUpdateCategories as fx, updateCategoryVisibility as fy, bulkShowCategories as fz, type SearchCategoriesResponse as g, type CountCategoriesOptions as h, type CountCategoriesResponse as i, type MoveCategoryResponse as j, type MoveCategoryApplicationErrors as k, type MaskedCategory as l, type BulkUpdateCategoriesResponse as m, type BulkUpdateCategoriesApplicationErrors as n, type UpdateCategoryVisibilityOptions as o, type UpdateCategoryVisibilityResponse as p, type UpdateCategoryVisibilityApplicationErrors as q, type BulkShowCategoriesOptions as r, type BulkShowCategoriesResponse as s, type BulkAddItemsToCategoryOptions as t, type BulkAddItemsToCategoryResponse as u, type BulkAddItemsToCategoryApplicationErrors as v, type BulkAddItemToCategoriesOptions as w, type BulkAddItemToCategoriesResponse as x, type BulkAddItemToCategoriesApplicationErrors as y, type BulkRemoveItemsFromCategoryOptions as z };
|
|
4957
|
+
export { type CategoryCreatedEnvelope as $, type BulkRemoveItemsFromCategoryResponse as A, type BulkUpdateCategoriesOptions as B, type Category as C, type DeleteCategoryApplicationErrors as D, type BulkRemoveItemsFromCategoryApplicationErrors as E, type BulkRemoveItemFromCategoriesOptions as F, type GetCategoryOptions as G, type BulkRemoveItemFromCategoriesResponse as H, type ItemReference as I, type BulkRemoveItemFromCategoriesApplicationErrors as J, type ListItemsInCategoryResponse as K, type ListItemsInCategoryOptions as L, type MoveCategoryOptions as M, type ListCategoriesForItemOptions as N, type ListCategoriesForItemResponse as O, type ListCategoriesForItemsOptions as P, type QueryCategoriesOptions as Q, type ListCategoriesForItemsResponse as R, type SearchCategoriesOptions as S, type TreeReference as T, type UpdateCategory as U, type ListTreesResponse as V, type SetArrangedItemsOptions as W, type SetArrangedItemsResponse as X, type SetArrangedItemsApplicationErrors as Y, type GetArrangedItemsResponse as Z, type CategoryMovedEnvelope as _, type CreateCategoryOptions as a, type RichContent as a$, type CategoryDeletedEnvelope as a0, type CategoryItemAddedToCategoryEnvelope as a1, type CategoryItemRemovedFromCategoryEnvelope as a2, type CategoryItemsArrangedInCategoryEnvelope as a3, type CategoryUpdatedEnvelope as a4, NodeType as a5, WidthType as a6, PluginContainerDataAlignment as a7, ButtonDataType as a8, Target as a9, Layout as aA, AppType as aB, InitialExpandedItems as aC, Direction as aD, VerticalAlignment as aE, NullValue as aF, SingleEntityOpsRequestedFields as aG, SortOrder as aH, RequestedFields as aI, SortType as aJ, SortDirection as aK, MissingValues as aL, ScalarType as aM, NestedAggregationType as aN, Interval as aO, AggregationType as aP, Mode as aQ, Position as aR, MoveItemInCategoryRequestPosition as aS, WebhookIdentityType as aT, type BreadcrumbsInfo as aU, type Breadcrumb as aV, type ParentCategory as aW, type SeoSchema as aX, type Keyword as aY, type Tag as aZ, type Settings as a_, TextAlignment as aa, LineStyle as ab, Width as ac, DividerDataAlignment as ad, ViewMode as ae, LayoutType as af, Orientation as ag, Crop as ah, ThumbnailsAlignment as ai, GIFType as aj, Source as ak, StylesPosition as al, MapType as am, ViewRole as an, VoteRole as ao, PollLayoutType as ap, PollLayoutDirection as aq, BackgroundType as ar, DecorationType as as, FontType as at, ImageStylesPosition as au, AspectRatio as av, Resizing as aw, Placement as ax, Type as ay, Alignment as az, type CreateCategoryApplicationErrors as b, type ColorData as b$, type Node as b0, type NodeDataOneOf as b1, type NodeStyle as b2, type ButtonData as b3, type Border as b4, type Colors as b5, type PluginContainerData as b6, type PluginContainerDataWidth as b7, type PluginContainerDataWidthDataOneOf as b8, type Spoiler as b9, type HTMLDataDataOneOf as bA, type ImageData as bB, type StylesBorder as bC, type ImageDataStyles as bD, type LinkPreviewData as bE, type LinkPreviewDataStyles as bF, type MapData as bG, type MapSettings as bH, type ParagraphData as bI, type PollData as bJ, type Permissions as bK, type Option as bL, type PollSettings as bM, type PollLayout as bN, type OptionLayout as bO, type Gradient as bP, type Background as bQ, type BackgroundBackgroundOneOf as bR, type PollDesign as bS, type OptionDesign as bT, type Poll as bU, type PollDataLayout as bV, type Design as bW, type TextData as bX, type Decoration as bY, type DecorationDataOneOf as bZ, type AnchorData as b_, type Height as ba, type Styles as bb, type Link as bc, type LinkDataOneOf as bd, type Rel as be, type CodeBlockData as bf, type TextStyle as bg, type DividerData as bh, type FileData as bi, type FileSource as bj, type FileSourceDataOneOf as bk, type PDFSettings as bl, type GalleryData as bm, type Media as bn, type Image as bo, type Video as bp, type Item as bq, type ItemDataOneOf as br, type GalleryOptions as bs, type GalleryOptionsLayout as bt, type ItemStyle as bu, type Thumbnails as bv, type GIFData as bw, type GIF as bx, type HeadingData as by, type HTMLData as bz, type UpdateCategoryOptions as c, type ListCompactCategoriesByIdsRequest as c$, type LinkData as c0, type MentionData as c1, type FontSizeData as c2, type SpoilerData as c3, type AppEmbedData as c4, type AppEmbedDataAppDataOneOf as c5, type BookingData as c6, type EventData as c7, type ButtonStyles as c8, type ImageStyles as c9, type App as cA, type Page as cB, type URI as cC, type File as cD, type CustomTag as cE, type CategoryMoved as cF, type ItemAddedToCategory as cG, type ItemsAddedToCategory as cH, type ItemRemovedFromCategory as cI, type ItemsRemovedFromCategory as cJ, type ItemsArrangedInCategory as cK, type CreateCategoryRequest as cL, type CreateCategoryResponse as cM, type GetCategoryRequest as cN, type GetCategoryResponse as cO, type UpdateCategoryRequest as cP, type UpdateCategoryResponse as cQ, type DeleteCategoryRequest as cR, type DeleteCategoryResponse as cS, type QueryCategoriesRequest as cT, type CursorQuery as cU, type CursorQueryPagingMethodOneOf as cV, type Sorting as cW, type CursorPaging as cX, type QueryCategoriesResponse as cY, type CursorPagingMetadata as cZ, type Cursors as c_, type RibbonStyles as ca, type CardStyles as cb, type PricingData as cc, type VideoData as cd, type PlaybackOptions as ce, type EmbedData as cf, type Oembed as cg, type CollapsibleListData as ch, type TableData as ci, type Dimensions as cj, type TableCellData as ck, type CellStyle as cl, type BorderColors as cm, type ListValue as cn, type AudioData as co, type OrderedListData as cp, type BulletedListData as cq, type BlockquoteData as cr, type CaptionData as cs, type LayoutCellData as ct, type Metadata as cu, type DocumentStyle as cv, type TextNodeStyle as cw, type ExtendedFields as cx, type InvalidateCache as cy, type InvalidateCacheGetByOneOf as cz, type UpdateCategoryApplicationErrors as d, type BulkRemoveItemsFromCategoryRequest as d$, type ListCompactCategoriesByIdsResponse as d0, type CompactCategory as d1, type SearchCategoriesRequest as d2, type CursorSearch as d3, type CursorSearchPagingMethodOneOf as d4, type Aggregation as d5, type AggregationKindOneOf as d6, type RangeBucket as d7, type IncludeMissingValuesOptions as d8, type ValueAggregation as d9, type DateHistogramResults as dA, type NestedResults as dB, type AggregationResults as dC, type AggregationResultsResultOneOf as dD, type DeprecatedSearchCategoriesWithOffsetRequest as dE, type OffsetSearch as dF, type OffsetSearchPagingMethodOneOf as dG, type Paging as dH, type DeprecatedSearchCategoriesWithOffsetResponse as dI, type PagingMetadata as dJ, type CountCategoriesRequest as dK, type MoveCategoryRequest as dL, type BulkUpdateCategoriesRequest as dM, type BulkCategoriesResult as dN, type ItemMetadata as dO, type ApplicationError as dP, type BulkActionMetadata as dQ, type UpdateCategoryVisibilityRequest as dR, type BulkShowCategoriesRequest as dS, type BulkDeleteCategoriesRequest as dT, type BulkDeleteCategoriesResponse as dU, type BulkDeleteCategoriesResponseBulkCategoriesResult as dV, type BulkAddItemsToCategoryRequest as dW, type BulkItemsToCategoryResult as dX, type ItemReferenceMetadata as dY, type BulkAddItemToCategoriesRequest as dZ, type BulkItemToCategoriesResult as d_, type ValueAggregationOptionsOneOf as da, type RangeAggregation as db, type ScalarAggregation as dc, type DateHistogramAggregation as dd, type NestedAggregationItem as de, type NestedAggregationItemKindOneOf as df, type NestedAggregation as dg, type SearchDetails as dh, type AggregationData as di, type ValueAggregationResult as dj, type RangeAggregationResult as dk, type NestedAggregationResults as dl, type NestedAggregationResultsResultOneOf as dm, type ValueResults as dn, type RangeResults as dp, type AggregationResultsScalarResult as dq, type NestedValueAggregationResult as dr, type ValueResult as ds, type RangeResult as dt, type ScalarResult as du, type NestedResultValue as dv, type NestedResultValueResultOneOf as dw, type Results as dx, type DateHistogramResult as dy, type GroupByValueResults as dz, type CategoriesQueryBuilder as e, type TypeWithLiterals as e$, type BulkRemoveItemFromCategoriesRequest as e0, type ListItemsInCategoryRequest as e1, type ListItemsInCategoryRequestPagingMethodOneOf as e2, type PagingMetadataV2 as e3, type ListCategoriesForItemRequest as e4, type ListCategoriesForItemsRequest as e5, type MapItemToCategories as e6, type ListTreesRequest as e7, type MoveItemInCategoryRequest as e8, type MoveItemInCategoryResponse as e9, type PluginContainerDataAlignmentWithLiterals as eA, type ButtonDataTypeWithLiterals as eB, type TargetWithLiterals as eC, type TextAlignmentWithLiterals as eD, type LineStyleWithLiterals as eE, type WidthWithLiterals as eF, type DividerDataAlignmentWithLiterals as eG, type ViewModeWithLiterals as eH, type LayoutTypeWithLiterals as eI, type OrientationWithLiterals as eJ, type CropWithLiterals as eK, type ThumbnailsAlignmentWithLiterals as eL, type GIFTypeWithLiterals as eM, type SourceWithLiterals as eN, type StylesPositionWithLiterals as eO, type MapTypeWithLiterals as eP, type ViewRoleWithLiterals as eQ, type VoteRoleWithLiterals as eR, type PollLayoutTypeWithLiterals as eS, type PollLayoutDirectionWithLiterals as eT, type BackgroundTypeWithLiterals as eU, type DecorationTypeWithLiterals as eV, type FontTypeWithLiterals as eW, type ImageStylesPositionWithLiterals as eX, type AspectRatioWithLiterals as eY, type ResizingWithLiterals as eZ, type PlacementWithLiterals as e_, type SetArrangedItemsRequest as ea, type GetArrangedItemsRequest as eb, type SetItemCategoriesRequest as ec, type SetItemCategoriesResponse as ed, type GetCategoriesTreeRequest as ee, type GetCategoriesTreeResponse as ef, type CategoryTreeNode as eg, type DomainEvent as eh, type DomainEventBodyOneOf as ei, type EntityCreatedEvent as ej, type RestoreInfo as ek, type EntityUpdatedEvent as el, type EntityDeletedEvent as em, type ActionEvent as en, type Empty as eo, type MessageEnvelope as ep, type IdentificationData as eq, type IdentificationDataIdOneOf as er, type BaseEventMetadata as es, type EventMetadata as et, type CategoriesQueryResult as eu, type CategorySearchSpec as ev, type ListItemsInCategoryOptionsPagingMethodOneOf as ew, type SetItemCategoriesOptions as ex, type NodeTypeWithLiterals as ey, type WidthTypeWithLiterals as ez, type CategorySearch as f, type AlignmentWithLiterals as f0, type LayoutWithLiterals as f1, type AppTypeWithLiterals as f2, type InitialExpandedItemsWithLiterals as f3, type DirectionWithLiterals as f4, type VerticalAlignmentWithLiterals as f5, type NullValueWithLiterals as f6, type SingleEntityOpsRequestedFieldsWithLiterals as f7, type SortOrderWithLiterals as f8, type RequestedFieldsWithLiterals as f9, moveCategory as fA, bulkUpdateCategories as fB, updateCategoryVisibility as fC, bulkShowCategories as fD, bulkAddItemsToCategory as fE, bulkAddItemToCategories as fF, bulkRemoveItemsFromCategory as fG, bulkRemoveItemFromCategories as fH, listItemsInCategory as fI, listCategoriesForItem as fJ, listCategoriesForItems as fK, listTrees as fL, setArrangedItems as fM, getArrangedItems as fN, type SortTypeWithLiterals as fa, type SortDirectionWithLiterals as fb, type MissingValuesWithLiterals as fc, type ScalarTypeWithLiterals as fd, type NestedAggregationTypeWithLiterals as fe, type IntervalWithLiterals as ff, type AggregationTypeWithLiterals as fg, type ModeWithLiterals as fh, type PositionWithLiterals as fi, type MoveItemInCategoryRequestPositionWithLiterals as fj, type WebhookIdentityTypeWithLiterals as fk, type SetItemCategoriesApplicationErrors as fl, type CommonSearchWithEntityContext as fm, onCategoryMoved as fn, onCategoryCreated as fo, onCategoryDeleted as fp, onCategoryItemAddedToCategory as fq, onCategoryItemRemovedFromCategory as fr, onCategoryItemsArrangedInCategory as fs, onCategoryUpdated as ft, createCategory as fu, getCategory as fv, updateCategory as fw, deleteCategory as fx, queryCategories as fy, countCategories as fz, type SearchCategoriesResponse as g, type CountCategoriesOptions as h, type CountCategoriesResponse as i, type MoveCategoryResponse as j, type MoveCategoryApplicationErrors as k, type MaskedCategory as l, type BulkUpdateCategoriesResponse as m, type BulkUpdateCategoriesApplicationErrors as n, type UpdateCategoryVisibilityOptions as o, type UpdateCategoryVisibilityResponse as p, type UpdateCategoryVisibilityApplicationErrors as q, type BulkShowCategoriesOptions as r, type BulkShowCategoriesResponse as s, type BulkAddItemsToCategoryOptions as t, type BulkAddItemsToCategoryResponse as u, type BulkAddItemsToCategoryApplicationErrors as v, type BulkAddItemToCategoriesOptions as w, type BulkAddItemToCategoriesResponse as x, type BulkAddItemToCategoriesApplicationErrors as y, type BulkRemoveItemsFromCategoryOptions as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { C as Category, a as CreateCategoryOptions, b as CreateCategoryApplicationErrors, T as TreeReference, G as GetCategoryOptions, U as UpdateCategory, c as UpdateCategoryOptions, d as UpdateCategoryApplicationErrors, D as DeleteCategoryApplicationErrors, Q as QueryCategoriesOptions, e as CategoriesQueryBuilder, f as CategorySearch, S as SearchCategoriesOptions, g as SearchCategoriesResponse, h as CountCategoriesOptions, i as CountCategoriesResponse, M as MoveCategoryOptions, j as MoveCategoryResponse, k as MoveCategoryApplicationErrors, l as MaskedCategory, B as BulkUpdateCategoriesOptions, m as BulkUpdateCategoriesResponse, n as BulkUpdateCategoriesApplicationErrors, o as UpdateCategoryVisibilityOptions, p as UpdateCategoryVisibilityResponse, q as UpdateCategoryVisibilityApplicationErrors, r as BulkShowCategoriesOptions, s as BulkShowCategoriesResponse, I as ItemReference, t as BulkAddItemsToCategoryOptions, u as BulkAddItemsToCategoryResponse, v as BulkAddItemsToCategoryApplicationErrors, w as BulkAddItemToCategoriesOptions, x as BulkAddItemToCategoriesResponse, y as BulkAddItemToCategoriesApplicationErrors, z as BulkRemoveItemsFromCategoryOptions, A as BulkRemoveItemsFromCategoryResponse, E as BulkRemoveItemsFromCategoryApplicationErrors, F as BulkRemoveItemFromCategoriesOptions, H as BulkRemoveItemFromCategoriesResponse, J as BulkRemoveItemFromCategoriesApplicationErrors, L as ListItemsInCategoryOptions, K as ListItemsInCategoryResponse, N as ListCategoriesForItemOptions, O as ListCategoriesForItemResponse, P as ListCategoriesForItemsOptions, R as ListCategoriesForItemsResponse, V as ListTreesResponse, W as SetArrangedItemsOptions, X as SetArrangedItemsResponse, Y as SetArrangedItemsApplicationErrors, Z as GetArrangedItemsResponse, _ as CategoryMovedEnvelope, $ as CategoryCreatedEnvelope, a0 as CategoryDeletedEnvelope, a1 as CategoryItemAddedToCategoryEnvelope, a2 as CategoryItemRemovedFromCategoryEnvelope, a3 as CategoryItemsArrangedInCategoryEnvelope, a4 as CategoryUpdatedEnvelope } from './categories-v1-category-categories.universal-
|
|
3
|
-
export {
|
|
2
|
+
import { C as Category, a as CreateCategoryOptions, b as CreateCategoryApplicationErrors, T as TreeReference, G as GetCategoryOptions, U as UpdateCategory, c as UpdateCategoryOptions, d as UpdateCategoryApplicationErrors, D as DeleteCategoryApplicationErrors, Q as QueryCategoriesOptions, e as CategoriesQueryBuilder, f as CategorySearch, S as SearchCategoriesOptions, g as SearchCategoriesResponse, h as CountCategoriesOptions, i as CountCategoriesResponse, M as MoveCategoryOptions, j as MoveCategoryResponse, k as MoveCategoryApplicationErrors, l as MaskedCategory, B as BulkUpdateCategoriesOptions, m as BulkUpdateCategoriesResponse, n as BulkUpdateCategoriesApplicationErrors, o as UpdateCategoryVisibilityOptions, p as UpdateCategoryVisibilityResponse, q as UpdateCategoryVisibilityApplicationErrors, r as BulkShowCategoriesOptions, s as BulkShowCategoriesResponse, I as ItemReference, t as BulkAddItemsToCategoryOptions, u as BulkAddItemsToCategoryResponse, v as BulkAddItemsToCategoryApplicationErrors, w as BulkAddItemToCategoriesOptions, x as BulkAddItemToCategoriesResponse, y as BulkAddItemToCategoriesApplicationErrors, z as BulkRemoveItemsFromCategoryOptions, A as BulkRemoveItemsFromCategoryResponse, E as BulkRemoveItemsFromCategoryApplicationErrors, F as BulkRemoveItemFromCategoriesOptions, H as BulkRemoveItemFromCategoriesResponse, J as BulkRemoveItemFromCategoriesApplicationErrors, L as ListItemsInCategoryOptions, K as ListItemsInCategoryResponse, N as ListCategoriesForItemOptions, O as ListCategoriesForItemResponse, P as ListCategoriesForItemsOptions, R as ListCategoriesForItemsResponse, V as ListTreesResponse, W as SetArrangedItemsOptions, X as SetArrangedItemsResponse, Y as SetArrangedItemsApplicationErrors, Z as GetArrangedItemsResponse, _ as CategoryMovedEnvelope, $ as CategoryCreatedEnvelope, a0 as CategoryDeletedEnvelope, a1 as CategoryItemAddedToCategoryEnvelope, a2 as CategoryItemRemovedFromCategoryEnvelope, a3 as CategoryItemsArrangedInCategoryEnvelope, a4 as CategoryUpdatedEnvelope } from './categories-v1-category-categories.universal-BlFKA1o5.js';
|
|
3
|
+
export { en as ActionEvent, d5 as Aggregation, di as AggregationData, d6 as AggregationKindOneOf, dC as AggregationResults, dD as AggregationResultsResultOneOf, dq as AggregationResultsScalarResult, aP as AggregationType, fg as AggregationTypeWithLiterals, az as Alignment, f0 as AlignmentWithLiterals, b_ as AnchorData, cA as App, c4 as AppEmbedData, c5 as AppEmbedDataAppDataOneOf, aB as AppType, f2 as AppTypeWithLiterals, dP as ApplicationError, av as AspectRatio, eY as AspectRatioWithLiterals, co as AudioData, bQ as Background, bR as BackgroundBackgroundOneOf, ar as BackgroundType, eU as BackgroundTypeWithLiterals, es as BaseEventMetadata, cr as BlockquoteData, c6 as BookingData, b4 as Border, cm as BorderColors, aV as Breadcrumb, aU as BreadcrumbsInfo, dQ as BulkActionMetadata, dZ as BulkAddItemToCategoriesRequest, dW as BulkAddItemsToCategoryRequest, dN as BulkCategoriesResult, dT as BulkDeleteCategoriesRequest, dU as BulkDeleteCategoriesResponse, dV as BulkDeleteCategoriesResponseBulkCategoriesResult, d_ as BulkItemToCategoriesResult, dX as BulkItemsToCategoryResult, e0 as BulkRemoveItemFromCategoriesRequest, d$ as BulkRemoveItemsFromCategoryRequest, dS as BulkShowCategoriesRequest, dM as BulkUpdateCategoriesRequest, cq as BulletedListData, b3 as ButtonData, a8 as ButtonDataType, eB as ButtonDataTypeWithLiterals, c8 as ButtonStyles, cs as CaptionData, cb as CardStyles, eu as CategoriesQueryResult, cF as CategoryMoved, ev as CategorySearchSpec, eg as CategoryTreeNode, cl as CellStyle, bf as CodeBlockData, ch as CollapsibleListData, b$ as ColorData, b5 as Colors, fm as CommonSearchWithEntityContext, d1 as CompactCategory, dK as CountCategoriesRequest, cL as CreateCategoryRequest, cM as CreateCategoryResponse, ah as Crop, eK as CropWithLiterals, cX as CursorPaging, cZ as CursorPagingMetadata, cU as CursorQuery, cV as CursorQueryPagingMethodOneOf, d3 as CursorSearch, d4 as CursorSearchPagingMethodOneOf, c_ as Cursors, cE as CustomTag, dd as DateHistogramAggregation, dy as DateHistogramResult, dA as DateHistogramResults, bY as Decoration, bZ as DecorationDataOneOf, as as DecorationType, eV as DecorationTypeWithLiterals, cR as DeleteCategoryRequest, cS as DeleteCategoryResponse, dE as DeprecatedSearchCategoriesWithOffsetRequest, dI as DeprecatedSearchCategoriesWithOffsetResponse, bW as Design, cj as Dimensions, aD as Direction, f4 as DirectionWithLiterals, bh as DividerData, ad as DividerDataAlignment, eG as DividerDataAlignmentWithLiterals, cv as DocumentStyle, eh as DomainEvent, ei as DomainEventBodyOneOf, cf as EmbedData, eo as Empty, ej as EntityCreatedEvent, em as EntityDeletedEvent, el as EntityUpdatedEvent, c7 as EventData, et as EventMetadata, cx as ExtendedFields, cD as File, bi as FileData, bj as FileSource, bk as FileSourceDataOneOf, c2 as FontSizeData, at as FontType, eW as FontTypeWithLiterals, bx as GIF, bw as GIFData, aj as GIFType, eM as GIFTypeWithLiterals, bm as GalleryData, bs as GalleryOptions, bt as GalleryOptionsLayout, eb as GetArrangedItemsRequest, ee as GetCategoriesTreeRequest, ef as GetCategoriesTreeResponse, cN as GetCategoryRequest, cO as GetCategoryResponse, bP as Gradient, dz as GroupByValueResults, bz as HTMLData, bA as HTMLDataDataOneOf, by as HeadingData, ba as Height, eq as IdentificationData, er as IdentificationDataIdOneOf, bo as Image, bB as ImageData, bD as ImageDataStyles, c9 as ImageStyles, au as ImageStylesPosition, eX as ImageStylesPositionWithLiterals, d8 as IncludeMissingValuesOptions, aC as InitialExpandedItems, f3 as InitialExpandedItemsWithLiterals, aO as Interval, ff as IntervalWithLiterals, cy as InvalidateCache, cz as InvalidateCacheGetByOneOf, bq as Item, cG as ItemAddedToCategory, br as ItemDataOneOf, dO as ItemMetadata, dY as ItemReferenceMetadata, cI as ItemRemovedFromCategory, bu as ItemStyle, cH as ItemsAddedToCategory, cK as ItemsArrangedInCategory, cJ as ItemsRemovedFromCategory, aY as Keyword, aA as Layout, ct as LayoutCellData, af as LayoutType, eI as LayoutTypeWithLiterals, f1 as LayoutWithLiterals, ab as LineStyle, eE as LineStyleWithLiterals, bc as Link, c0 as LinkData, bd as LinkDataOneOf, bE as LinkPreviewData, bF as LinkPreviewDataStyles, e4 as ListCategoriesForItemRequest, e5 as ListCategoriesForItemsRequest, c$ as ListCompactCategoriesByIdsRequest, d0 as ListCompactCategoriesByIdsResponse, ew as ListItemsInCategoryOptionsPagingMethodOneOf, e1 as ListItemsInCategoryRequest, e2 as ListItemsInCategoryRequestPagingMethodOneOf, e7 as ListTreesRequest, cn as ListValue, bG as MapData, e6 as MapItemToCategories, bH as MapSettings, am as MapType, eP as MapTypeWithLiterals, bn as Media, c1 as MentionData, ep as MessageEnvelope, cu as Metadata, aL as MissingValues, fc as MissingValuesWithLiterals, aQ as Mode, fh as ModeWithLiterals, dL as MoveCategoryRequest, e8 as MoveItemInCategoryRequest, aS as MoveItemInCategoryRequestPosition, fj as MoveItemInCategoryRequestPositionWithLiterals, e9 as MoveItemInCategoryResponse, dg as NestedAggregation, de as NestedAggregationItem, df as NestedAggregationItemKindOneOf, dl as NestedAggregationResults, dm as NestedAggregationResultsResultOneOf, aN as NestedAggregationType, fe as NestedAggregationTypeWithLiterals, dv as NestedResultValue, dw as NestedResultValueResultOneOf, dB as NestedResults, dr as NestedValueAggregationResult, b0 as Node, b1 as NodeDataOneOf, b2 as NodeStyle, a5 as NodeType, ey as NodeTypeWithLiterals, aF as NullValue, f6 as NullValueWithLiterals, cg as Oembed, dF as OffsetSearch, dG as OffsetSearchPagingMethodOneOf, bL as Option, bT as OptionDesign, bO as OptionLayout, cp as OrderedListData, ag as Orientation, eJ as OrientationWithLiterals, bl as PDFSettings, cB as Page, dH as Paging, dJ as PagingMetadata, e3 as PagingMetadataV2, bI as ParagraphData, aW as ParentCategory, bK as Permissions, ax as Placement, e_ as PlacementWithLiterals, ce as PlaybackOptions, b6 as PluginContainerData, a7 as PluginContainerDataAlignment, eA as PluginContainerDataAlignmentWithLiterals, b7 as PluginContainerDataWidth, b8 as PluginContainerDataWidthDataOneOf, bU as Poll, bJ as PollData, bV as PollDataLayout, bS as PollDesign, bN as PollLayout, aq as PollLayoutDirection, eT as PollLayoutDirectionWithLiterals, ap as PollLayoutType, eS as PollLayoutTypeWithLiterals, bM as PollSettings, aR as Position, fi as PositionWithLiterals, cc as PricingData, cT as QueryCategoriesRequest, cY as QueryCategoriesResponse, db as RangeAggregation, dk as RangeAggregationResult, d7 as RangeBucket, dt as RangeResult, dp as RangeResults, be as Rel, aI as RequestedFields, f9 as RequestedFieldsWithLiterals, aw as Resizing, eZ as ResizingWithLiterals, ek as RestoreInfo, dx as Results, ca as RibbonStyles, a$ as RichContent, dc as ScalarAggregation, du as ScalarResult, aM as ScalarType, fd as ScalarTypeWithLiterals, d2 as SearchCategoriesRequest, dh as SearchDetails, aX as SeoSchema, ea as SetArrangedItemsRequest, fl as SetItemCategoriesApplicationErrors, ex as SetItemCategoriesOptions, ec as SetItemCategoriesRequest, ed as SetItemCategoriesResponse, a_ as Settings, aG as SingleEntityOpsRequestedFields, f7 as SingleEntityOpsRequestedFieldsWithLiterals, aK as SortDirection, fb as SortDirectionWithLiterals, aH as SortOrder, f8 as SortOrderWithLiterals, aJ as SortType, fa as SortTypeWithLiterals, cW as Sorting, ak as Source, eN as SourceWithLiterals, b9 as Spoiler, c3 as SpoilerData, bb as Styles, bC as StylesBorder, al as StylesPosition, eO as StylesPositionWithLiterals, ck as TableCellData, ci as TableData, aZ as Tag, a9 as Target, eC as TargetWithLiterals, aa as TextAlignment, eD as TextAlignmentWithLiterals, bX as TextData, cw as TextNodeStyle, bg as TextStyle, bv as Thumbnails, ai as ThumbnailsAlignment, eL as ThumbnailsAlignmentWithLiterals, ay as Type, e$ as TypeWithLiterals, cC as URI, cP as UpdateCategoryRequest, cQ as UpdateCategoryResponse, dR as UpdateCategoryVisibilityRequest, d9 as ValueAggregation, da as ValueAggregationOptionsOneOf, dj as ValueAggregationResult, ds as ValueResult, dn as ValueResults, aE as VerticalAlignment, f5 as VerticalAlignmentWithLiterals, bp as Video, cd as VideoData, ae as ViewMode, eH as ViewModeWithLiterals, an as ViewRole, eQ as ViewRoleWithLiterals, ao as VoteRole, eR as VoteRoleWithLiterals, aT as WebhookIdentityType, fk as WebhookIdentityTypeWithLiterals, ac as Width, a6 as WidthType, ez as WidthTypeWithLiterals, eF as WidthWithLiterals } from './categories-v1-category-categories.universal-BlFKA1o5.js';
|
|
4
4
|
|
|
5
5
|
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
|
6
6
|
interface CreateCategorySignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -97,6 +97,7 @@ __export(index_exports, {
|
|
|
97
97
|
queryCategories: () => queryCategories4,
|
|
98
98
|
searchCategories: () => searchCategories4,
|
|
99
99
|
setArrangedItems: () => setArrangedItems4,
|
|
100
|
+
setItemCategories: () => setItemCategories4,
|
|
100
101
|
updateCategory: () => updateCategory4,
|
|
101
102
|
updateCategoryVisibility: () => updateCategoryVisibility4
|
|
102
103
|
});
|
|
@@ -1353,6 +1354,24 @@ function getArrangedItems(payload) {
|
|
|
1353
1354
|
}
|
|
1354
1355
|
return __getArrangedItems;
|
|
1355
1356
|
}
|
|
1357
|
+
function setItemCategories(payload) {
|
|
1358
|
+
function __setItemCategories({ host }) {
|
|
1359
|
+
const metadata = {
|
|
1360
|
+
entityFqdn: "wix.categories.v1.category",
|
|
1361
|
+
method: "POST",
|
|
1362
|
+
methodFqn: "com.wix.categories.api.v1.CategoriesService.SetItemCategories",
|
|
1363
|
+
packageName: PACKAGE_NAME,
|
|
1364
|
+
url: resolveComWixCategoriesApiV1CategoriesServiceUrl({
|
|
1365
|
+
protoPath: "/v1/categories/set-item-categories",
|
|
1366
|
+
data: payload,
|
|
1367
|
+
host
|
|
1368
|
+
}),
|
|
1369
|
+
data: payload
|
|
1370
|
+
};
|
|
1371
|
+
return metadata;
|
|
1372
|
+
}
|
|
1373
|
+
return __setItemCategories;
|
|
1374
|
+
}
|
|
1356
1375
|
|
|
1357
1376
|
// src/categories-v1-category-categories.universal.ts
|
|
1358
1377
|
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
@@ -2509,6 +2528,40 @@ async function getArrangedItems2(categoryId, treeReference) {
|
|
|
2509
2528
|
throw transformedError;
|
|
2510
2529
|
}
|
|
2511
2530
|
}
|
|
2531
|
+
async function setItemCategories2(item, options) {
|
|
2532
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2533
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
|
2534
|
+
{
|
|
2535
|
+
item,
|
|
2536
|
+
categoryIds: options?.categoryIds,
|
|
2537
|
+
treeReference: options?.treeReference
|
|
2538
|
+
},
|
|
2539
|
+
[]
|
|
2540
|
+
);
|
|
2541
|
+
const reqOpts = setItemCategories(payload);
|
|
2542
|
+
sideEffects?.onSiteCall?.();
|
|
2543
|
+
try {
|
|
2544
|
+
const result = await httpClient.request(reqOpts);
|
|
2545
|
+
sideEffects?.onSuccess?.(result);
|
|
2546
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
|
|
2547
|
+
} catch (err) {
|
|
2548
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2549
|
+
err,
|
|
2550
|
+
{
|
|
2551
|
+
spreadPathsToArguments: {},
|
|
2552
|
+
explicitPathsToArguments: {
|
|
2553
|
+
item: "$[0]",
|
|
2554
|
+
categoryIds: "$[1].categoryIds",
|
|
2555
|
+
treeReference: "$[1].treeReference"
|
|
2556
|
+
},
|
|
2557
|
+
singleArgumentUnchanged: false
|
|
2558
|
+
},
|
|
2559
|
+
["item", "options"]
|
|
2560
|
+
);
|
|
2561
|
+
sideEffects?.onError?.(err);
|
|
2562
|
+
throw transformedError;
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2512
2565
|
|
|
2513
2566
|
// src/categories-v1-category-categories.public.ts
|
|
2514
2567
|
function createCategory3(httpClient) {
|
|
@@ -2682,6 +2735,14 @@ function getArrangedItems3(httpClient) {
|
|
|
2682
2735
|
{ httpClient }
|
|
2683
2736
|
);
|
|
2684
2737
|
}
|
|
2738
|
+
function setItemCategories3(httpClient) {
|
|
2739
|
+
return (item, options) => setItemCategories2(
|
|
2740
|
+
item,
|
|
2741
|
+
options,
|
|
2742
|
+
// @ts-ignore
|
|
2743
|
+
{ httpClient }
|
|
2744
|
+
);
|
|
2745
|
+
}
|
|
2685
2746
|
var onCategoryMoved = (0, import_sdk_types.EventDefinition)(
|
|
2686
2747
|
"wix.categories.v1.category_category_moved",
|
|
2687
2748
|
true,
|
|
@@ -2975,6 +3036,7 @@ var listCategoriesForItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRES
|
|
|
2975
3036
|
var listTrees4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listTrees3);
|
|
2976
3037
|
var setArrangedItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setArrangedItems3);
|
|
2977
3038
|
var getArrangedItems4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getArrangedItems3);
|
|
3039
|
+
var setItemCategories4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setItemCategories3);
|
|
2978
3040
|
var onCategoryMoved2 = (0, import_event_definition_modules.createEventModule)(onCategoryMoved);
|
|
2979
3041
|
var onCategoryCreated2 = (0, import_event_definition_modules.createEventModule)(onCategoryCreated);
|
|
2980
3042
|
var onCategoryDeleted2 = (0, import_event_definition_modules.createEventModule)(onCategoryDeleted);
|
|
@@ -3061,6 +3123,7 @@ var onCategoryUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
|
3061
3123
|
queryCategories,
|
|
3062
3124
|
searchCategories,
|
|
3063
3125
|
setArrangedItems,
|
|
3126
|
+
setItemCategories,
|
|
3064
3127
|
updateCategory,
|
|
3065
3128
|
updateCategoryVisibility
|
|
3066
3129
|
});
|