@wix/auto_sdk_blog_categories 1.0.17 → 1.0.19
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 +6 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -16
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +6 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -16
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -16
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -13
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -16
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +4 -3
package/build/cjs/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
2
2
|
import { Category, CreateCategoryOptions, UpdateCategory, UpdateCategoryOptions, GetCategoryOptions, GetCategoryResponse, GetCategoryBySlugOptions, GetCategoryBySlugResponse, ListCategoriesOptions, ListCategoriesResponse, QueryCategoriesOptions, CategoriesQueryBuilder, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope } from './index.typings.js';
|
3
|
-
export { ActionEvent, ApplicationError, BaseEventMetadata, BlogPaging, BulkActionMetadata, BulkCategoryResult, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CategoriesQueryResult, CategoryLanguageCount, CategoryTranslation, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Field, FocalPoint, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, GetCategoryBySlugRequest, GetCategoryRequest, IdentificationData, IdentificationDataIdOneOf, InitialCategoriesCopied, ItemMetadata, Keyword, ListCategoriesRequest, MaskedCategory, MessageEnvelope, MetaData, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SeoSchema, Settings, SortOrder, Sorting, Tag, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType } from './index.typings.js';
|
3
|
+
export { ActionEvent, ApplicationError, BaseEventMetadata, BlogPaging, BulkActionMetadata, BulkCategoryResult, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CategoriesQueryResult, CategoryLanguageCount, CategoryTranslation, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Field, FieldWithLiterals, FocalPoint, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, GetCategoryBySlugRequest, GetCategoryRequest, IdentificationData, IdentificationDataIdOneOf, InitialCategoriesCopied, ItemMetadata, Keyword, ListCategoriesRequest, MaskedCategory, MessageEnvelope, MetaData, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCategoriesRequest, QueryCategoriesResponse, RestoreInfo, SeoSchema, Settings, SortOrder, SortOrderWithLiterals, Sorting, Tag, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
|
4
4
|
|
5
|
-
type CategoryNonNullablePaths = `_id` | `label` | `postCount` | `title` | `slug` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
|
6
5
|
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
7
6
|
interface CreateCategorySignature {
|
8
7
|
/**
|
@@ -10,7 +9,7 @@ interface CreateCategorySignature {
|
|
10
9
|
* @param - Category info.
|
11
10
|
* @returns Category info.
|
12
11
|
*/
|
13
|
-
(category: NonNullablePaths<Category, `label
|
12
|
+
(category: NonNullablePaths<Category, `label`, 2>, options?: CreateCategoryOptions): Promise<NonNullablePaths<Category, `_id` | `label` | `postCount` | `title` | `slug` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`, 6>>;
|
14
13
|
}
|
15
14
|
declare function updateCategory$1(httpClient: HttpClient): UpdateCategorySignature;
|
16
15
|
interface UpdateCategorySignature {
|
@@ -19,7 +18,7 @@ interface UpdateCategorySignature {
|
|
19
18
|
* @param - Category ID.
|
20
19
|
* @returns Category info.
|
21
20
|
*/
|
22
|
-
(_id: string, category: UpdateCategory, options?: UpdateCategoryOptions): Promise<NonNullablePaths<Category,
|
21
|
+
(_id: string, category: UpdateCategory, options?: UpdateCategoryOptions): Promise<NonNullablePaths<Category, `_id` | `label` | `postCount` | `title` | `slug` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`, 6>>;
|
23
22
|
}
|
24
23
|
declare function getCategory$1(httpClient: HttpClient): GetCategorySignature;
|
25
24
|
interface GetCategorySignature {
|
@@ -28,9 +27,7 @@ interface GetCategorySignature {
|
|
28
27
|
* @param - Category ID.
|
29
28
|
* @param - Options specifying which fields to return.
|
30
29
|
*/
|
31
|
-
(categoryId: string, options?: GetCategoryOptions): Promise<NonNullablePaths<GetCategoryResponse, {
|
32
|
-
[P in CategoryNonNullablePaths]: `category.${P}`;
|
33
|
-
}[CategoryNonNullablePaths]>>;
|
30
|
+
(categoryId: string, options?: GetCategoryOptions): Promise<NonNullablePaths<GetCategoryResponse, `category._id` | `category.label` | `category.postCount` | `category.title` | `category.slug` | `category.seoData.tags` | `category.seoData.tags.${number}.type` | `category.seoData.tags.${number}.children` | `category.seoData.tags.${number}.custom` | `category.seoData.tags.${number}.disabled` | `category.seoData.settings.preventAutoRedirect` | `category.seoData.settings.keywords` | `category.seoData.settings.keywords.${number}.term` | `category.seoData.settings.keywords.${number}.isMain`, 7>>;
|
34
31
|
}
|
35
32
|
declare function getCategoryBySlug$1(httpClient: HttpClient): GetCategoryBySlugSignature;
|
36
33
|
interface GetCategoryBySlugSignature {
|
@@ -45,9 +42,7 @@ interface GetCategoryBySlugSignature {
|
|
45
42
|
* The end of a category's URL. For example, `'https:/example.com/blog/category/{my-category-slug}'`. Case sensitive and generally based on the category `label` if not specified.
|
46
43
|
* @param - Options specifying which fields to return.
|
47
44
|
*/
|
48
|
-
(slug: string, options?: GetCategoryBySlugOptions): Promise<NonNullablePaths<GetCategoryBySlugResponse, {
|
49
|
-
[P in CategoryNonNullablePaths]: `category.${P}`;
|
50
|
-
}[CategoryNonNullablePaths]>>;
|
45
|
+
(slug: string, options?: GetCategoryBySlugOptions): Promise<NonNullablePaths<GetCategoryBySlugResponse, `category._id` | `category.label` | `category.postCount` | `category.title` | `category.slug` | `category.seoData.tags` | `category.seoData.tags.${number}.type` | `category.seoData.tags.${number}.children` | `category.seoData.tags.${number}.custom` | `category.seoData.tags.${number}.disabled` | `category.seoData.settings.preventAutoRedirect` | `category.seoData.settings.keywords` | `category.seoData.settings.keywords.${number}.term` | `category.seoData.settings.keywords.${number}.isMain`, 7>>;
|
51
46
|
}
|
52
47
|
declare function listCategories$1(httpClient: HttpClient): ListCategoriesSignature;
|
53
48
|
interface ListCategoriesSignature {
|
@@ -66,9 +61,7 @@ interface ListCategoriesSignature {
|
|
66
61
|
* List Categories is sorted by `displayPosition` in descending order. This cannot be overridden.
|
67
62
|
* @param - Filter and paging options.
|
68
63
|
*/
|
69
|
-
(options?: ListCategoriesOptions): Promise<NonNullablePaths<ListCategoriesResponse, {
|
70
|
-
[P in CategoryNonNullablePaths]: `categories.${number}.${P}`;
|
71
|
-
}[CategoryNonNullablePaths] | `metaData.count` | `metaData.offset` | `metaData.total`>>;
|
64
|
+
(options?: ListCategoriesOptions): Promise<NonNullablePaths<ListCategoriesResponse, `categories` | `categories.${number}._id` | `categories.${number}.label` | `categories.${number}.postCount` | `categories.${number}.title` | `categories.${number}.slug` | `categories.${number}.seoData.settings.preventAutoRedirect` | `metaData.count` | `metaData.offset` | `metaData.total`, 6>>;
|
72
65
|
}
|
73
66
|
declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
|
74
67
|
interface QueryCategoriesSignature {
|