@wix/categories 1.0.45 → 1.0.47

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.
@@ -51,8 +51,20 @@ interface Category$1 {
51
51
  *
52
52
  * > **Note:** Returned only when you pass `"BREADCRUMBS"` to the `fields` array in Categories API requests.
53
53
  * @readonly
54
+ * @deprecated Category breadcrumbs.
55
+ *
56
+ * > **Note:** Returned only when you pass `"BREADCRUMBS"` to the `fields` array in Categories API requests.
57
+ * @replacedBy breadcrumbs_info
58
+ * @targetRemovalDate 2024-09-12
54
59
  */
55
60
  breadcrumbs?: BreadcrumbItemValues$1;
61
+ /**
62
+ * Category breadcrumbs.
63
+ *
64
+ * > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Categories API requests.
65
+ * @readonly
66
+ */
67
+ breadcrumbsInfo?: BreadcrumbsInfo$1;
56
68
  /** Parent category reference data. */
57
69
  parentCategory?: ParentCategory$1;
58
70
  /**
@@ -106,7 +118,7 @@ interface Image$1 {
106
118
  }
107
119
  interface BreadcrumbItemValues$1 {
108
120
  /**
109
- * List of breadcrumb data.
121
+ * List of breadcrumb data. The current category isn't included in the list.
110
122
  * @readonly
111
123
  */
112
124
  values?: BreadcrumbItem$1[];
@@ -119,6 +131,21 @@ interface BreadcrumbItem$1 {
119
131
  /** Category slug. */
120
132
  categorySlug?: string;
121
133
  }
134
+ interface BreadcrumbsInfo$1 {
135
+ /**
136
+ * List of breadcrumb data. The current category isn't included in the list.
137
+ * @readonly
138
+ */
139
+ breadcrumbs?: Breadcrumb$1[];
140
+ }
141
+ interface Breadcrumb$1 {
142
+ /** Category ID. */
143
+ categoryId?: string;
144
+ /** Category name. */
145
+ categoryName?: string;
146
+ /** Category slug. */
147
+ categorySlug?: string;
148
+ }
122
149
  interface ParentCategory$1 {
123
150
  /**
124
151
  * Parent category ID.
@@ -1394,7 +1421,8 @@ declare enum SingleEntityOpsRequestedFields$1 {
1394
1421
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
1395
1422
  BREADCRUMBS = "BREADCRUMBS",
1396
1423
  DESCRIPTION = "DESCRIPTION",
1397
- RICH_CONTENT_DESCRIPTION = "RICH_CONTENT_DESCRIPTION"
1424
+ RICH_CONTENT_DESCRIPTION = "RICH_CONTENT_DESCRIPTION",
1425
+ BREADCRUMBS_INFO = "BREADCRUMBS_INFO"
1398
1426
  }
1399
1427
  interface CreateCategoryResponse$1 {
1400
1428
  /** Created category. */
@@ -1491,7 +1519,8 @@ interface CursorPaging$1 {
1491
1519
  }
1492
1520
  declare enum RequestedFields$1 {
1493
1521
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
1494
- BREADCRUMBS = "BREADCRUMBS"
1522
+ BREADCRUMBS = "BREADCRUMBS",
1523
+ BREADCRUMBS_INFO = "BREADCRUMBS_INFO"
1495
1524
  }
1496
1525
  interface QueryCategoriesResponse$1 {
1497
1526
  /** Categories which satisfy the provided query. */
@@ -2092,7 +2121,7 @@ interface BulkAddItemsToCategoryResponse$1 {
2092
2121
  bulkActionMetadata?: BulkActionMetadata$1;
2093
2122
  }
2094
2123
  interface BulkItemsToCategoryResult$1 {
2095
- /** Bulk action metadata for category. */
2124
+ /** Bulk action metadata for item reference. */
2096
2125
  itemMetadata?: ItemReferenceMetadata$1;
2097
2126
  }
2098
2127
  interface ItemReferenceMetadata$1 {
@@ -2257,6 +2286,14 @@ interface BreadcrumbItemNonNullableFields$1 {
2257
2286
  interface BreadcrumbItemValuesNonNullableFields$1 {
2258
2287
  values: BreadcrumbItemNonNullableFields$1[];
2259
2288
  }
2289
+ interface BreadcrumbNonNullableFields$1 {
2290
+ categoryId: string;
2291
+ categoryName: string;
2292
+ categorySlug: string;
2293
+ }
2294
+ interface BreadcrumbsInfoNonNullableFields$1 {
2295
+ breadcrumbs: BreadcrumbNonNullableFields$1[];
2296
+ }
2260
2297
  interface TagNonNullableFields$1 {
2261
2298
  type: string;
2262
2299
  children: string;
@@ -2526,6 +2563,7 @@ interface CategoryNonNullableFields$1 {
2526
2563
  itemCounter: number;
2527
2564
  totalItemCounter: number;
2528
2565
  breadcrumbs?: BreadcrumbItemValuesNonNullableFields$1;
2566
+ breadcrumbsInfo?: BreadcrumbsInfoNonNullableFields$1;
2529
2567
  seoData?: SeoSchemaNonNullableFields$1;
2530
2568
  richContentDescription?: RichContentNonNullableFields$1;
2531
2569
  treeReference?: TreeReferenceNonNullableFields$1;
@@ -2731,8 +2769,20 @@ interface Category {
2731
2769
  *
2732
2770
  * > **Note:** Returned only when you pass `"BREADCRUMBS"` to the `fields` array in Categories API requests.
2733
2771
  * @readonly
2772
+ * @deprecated Category breadcrumbs.
2773
+ *
2774
+ * > **Note:** Returned only when you pass `"BREADCRUMBS"` to the `fields` array in Categories API requests.
2775
+ * @replacedBy breadcrumbs_info
2776
+ * @targetRemovalDate 2024-09-12
2734
2777
  */
2735
2778
  breadcrumbs?: BreadcrumbItemValues;
2779
+ /**
2780
+ * Category breadcrumbs.
2781
+ *
2782
+ * > **Note:** Returned only when you pass `"BREADCRUMBS_INFO"` to the `fields` array in Categories API requests.
2783
+ * @readonly
2784
+ */
2785
+ breadcrumbsInfo?: BreadcrumbsInfo;
2736
2786
  /** Parent category reference data. */
2737
2787
  parentCategory?: ParentCategory;
2738
2788
  /**
@@ -2763,7 +2813,7 @@ interface Category {
2763
2813
  }
2764
2814
  interface BreadcrumbItemValues {
2765
2815
  /**
2766
- * List of breadcrumb data.
2816
+ * List of breadcrumb data. The current category isn't included in the list.
2767
2817
  * @readonly
2768
2818
  */
2769
2819
  values?: BreadcrumbItem[];
@@ -2776,6 +2826,21 @@ interface BreadcrumbItem {
2776
2826
  /** Category slug. */
2777
2827
  categorySlug?: string;
2778
2828
  }
2829
+ interface BreadcrumbsInfo {
2830
+ /**
2831
+ * List of breadcrumb data. The current category isn't included in the list.
2832
+ * @readonly
2833
+ */
2834
+ breadcrumbs?: Breadcrumb[];
2835
+ }
2836
+ interface Breadcrumb {
2837
+ /** Category ID. */
2838
+ categoryId?: string;
2839
+ /** Category name. */
2840
+ categoryName?: string;
2841
+ /** Category slug. */
2842
+ categorySlug?: string;
2843
+ }
2779
2844
  interface ParentCategory {
2780
2845
  /**
2781
2846
  * Parent category ID.
@@ -4051,7 +4116,8 @@ declare enum SingleEntityOpsRequestedFields {
4051
4116
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
4052
4117
  BREADCRUMBS = "BREADCRUMBS",
4053
4118
  DESCRIPTION = "DESCRIPTION",
4054
- RICH_CONTENT_DESCRIPTION = "RICH_CONTENT_DESCRIPTION"
4119
+ RICH_CONTENT_DESCRIPTION = "RICH_CONTENT_DESCRIPTION",
4120
+ BREADCRUMBS_INFO = "BREADCRUMBS_INFO"
4055
4121
  }
4056
4122
  interface CreateCategoryResponse {
4057
4123
  /** Created category. */
@@ -4148,7 +4214,8 @@ interface CursorPaging {
4148
4214
  }
4149
4215
  declare enum RequestedFields {
4150
4216
  UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
4151
- BREADCRUMBS = "BREADCRUMBS"
4217
+ BREADCRUMBS = "BREADCRUMBS",
4218
+ BREADCRUMBS_INFO = "BREADCRUMBS_INFO"
4152
4219
  }
4153
4220
  interface QueryCategoriesResponse {
4154
4221
  /** Categories which satisfy the provided query. */
@@ -4749,7 +4816,7 @@ interface BulkAddItemsToCategoryResponse {
4749
4816
  bulkActionMetadata?: BulkActionMetadata;
4750
4817
  }
4751
4818
  interface BulkItemsToCategoryResult {
4752
- /** Bulk action metadata for category. */
4819
+ /** Bulk action metadata for item reference. */
4753
4820
  itemMetadata?: ItemReferenceMetadata;
4754
4821
  }
4755
4822
  interface ItemReferenceMetadata {
@@ -4908,6 +4975,14 @@ interface BreadcrumbItemNonNullableFields {
4908
4975
  interface BreadcrumbItemValuesNonNullableFields {
4909
4976
  values: BreadcrumbItemNonNullableFields[];
4910
4977
  }
4978
+ interface BreadcrumbNonNullableFields {
4979
+ categoryId: string;
4980
+ categoryName: string;
4981
+ categorySlug: string;
4982
+ }
4983
+ interface BreadcrumbsInfoNonNullableFields {
4984
+ breadcrumbs: BreadcrumbNonNullableFields[];
4985
+ }
4911
4986
  interface TagNonNullableFields {
4912
4987
  type: string;
4913
4988
  children: string;
@@ -5177,6 +5252,7 @@ interface CategoryNonNullableFields {
5177
5252
  itemCounter: number;
5178
5253
  totalItemCounter: number;
5179
5254
  breadcrumbs?: BreadcrumbItemValuesNonNullableFields;
5255
+ breadcrumbsInfo?: BreadcrumbsInfoNonNullableFields;
5180
5256
  seoData?: SeoSchemaNonNullableFields;
5181
5257
  richContentDescription?: RichContentNonNullableFields;
5182
5258
  treeReference?: TreeReferenceNonNullableFields;