@wix/blog_categories
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -14,2 +14,2 @@ import { HttpClient, EventDefinition } from '@wix/sdk-types'; | ||
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal'; | ||
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Keyword, Tag, Settings, CategoryTranslation, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, CategoryLanguageCount, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEvent, CategoryUpdatedEvent, CategoryDeletedEvent, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal'; | ||
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Keyword, Tag, Settings, CategoryTranslation, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, CategoryLanguageCount, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEvent, CategoryUpdatedEvent, CategoryDeletedEvent, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal'; |
@@ -517,7 +517,7 @@ export interface Category { | ||
} | ||
export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> { | ||
createdEvent?: EntityCreatedEvent<T>; | ||
updatedEvent?: EntityUpdatedEvent<T>; | ||
deletedEvent?: EntityDeletedEvent<T>; | ||
actionEvent?: ActionEvent<T>; | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
@@ -560,21 +560,13 @@ * Unique event ID. | ||
} | ||
export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> { | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf<T> { | ||
createdEvent?: EntityCreatedEvent<T>; | ||
updatedEvent?: EntityUpdatedEvent<T>; | ||
deletedEvent?: EntityDeletedEvent<T>; | ||
actionEvent?: ActionEvent<T>; | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent<T> { | ||
entity?: T; | ||
export interface EntityCreatedEvent { | ||
entity?: string; | ||
} | ||
export interface EntityUpdatedEvent<T> { | ||
export interface EntityUpdatedEvent { | ||
/** | ||
@@ -585,10 +577,10 @@ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
*/ | ||
currentEntity?: T; | ||
currentEntity?: string; | ||
} | ||
export interface EntityDeletedEvent<T> { | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntity?: T | null; | ||
deletedEntity?: string | null; | ||
} | ||
export interface ActionEvent<T> { | ||
body?: T; | ||
export interface ActionEvent { | ||
body?: string; | ||
} | ||
@@ -840,2 +832,3 @@ export interface MessageEnvelope { | ||
* @webhook | ||
* @eventType wix.blog.category_created | ||
*/ | ||
@@ -856,2 +849,3 @@ export declare function onCategoryCreated(handler: (event: CategoryCreatedEvent) => void | Promise<void>): void; | ||
* @webhook | ||
* @eventType wix.blog.category_updated | ||
*/ | ||
@@ -871,2 +865,3 @@ export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEvent) => void | Promise<void>): void; | ||
* @webhook | ||
* @eventType wix.blog.category_deleted | ||
*/ | ||
@@ -873,0 +868,0 @@ export declare function onCategoryDeleted(handler: (event: CategoryDeletedEvent) => void | Promise<void>): void; |
@@ -14,2 +14,2 @@ import { HttpClient, EventDefinition } from '@wix/sdk-types'; | ||
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal'; | ||
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Keyword, Tag, Settings, CategoryTranslation, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, CategoryLanguageCount, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, DomainActionEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEvent, CategoryUpdatedEvent, CategoryDeletedEvent, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal'; | ||
export { Category, CoverMedia, CoverMediaMediaOneOf, SeoSchema, Keyword, Tag, Settings, CategoryTranslation, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, CategoryLanguageCount, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEvent, CategoryUpdatedEvent, CategoryDeletedEvent, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal'; |
@@ -517,7 +517,7 @@ export interface Category { | ||
} | ||
export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> { | ||
createdEvent?: EntityCreatedEvent<T>; | ||
updatedEvent?: EntityUpdatedEvent<T>; | ||
deletedEvent?: EntityDeletedEvent<T>; | ||
actionEvent?: ActionEvent<T>; | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
@@ -560,21 +560,13 @@ * Unique event ID. | ||
} | ||
export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> { | ||
} | ||
export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> { | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf<T> { | ||
createdEvent?: EntityCreatedEvent<T>; | ||
updatedEvent?: EntityUpdatedEvent<T>; | ||
deletedEvent?: EntityDeletedEvent<T>; | ||
actionEvent?: ActionEvent<T>; | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent<T> { | ||
entity?: T; | ||
export interface EntityCreatedEvent { | ||
entity?: string; | ||
} | ||
export interface EntityUpdatedEvent<T> { | ||
export interface EntityUpdatedEvent { | ||
/** | ||
@@ -585,10 +577,10 @@ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
*/ | ||
currentEntity?: T; | ||
currentEntity?: string; | ||
} | ||
export interface EntityDeletedEvent<T> { | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntity?: T | null; | ||
deletedEntity?: string | null; | ||
} | ||
export interface ActionEvent<T> { | ||
body?: T; | ||
export interface ActionEvent { | ||
body?: string; | ||
} | ||
@@ -840,2 +832,3 @@ export interface MessageEnvelope { | ||
* @webhook | ||
* @eventType wix.blog.category_created | ||
*/ | ||
@@ -856,2 +849,3 @@ export declare function onCategoryCreated(handler: (event: CategoryCreatedEvent) => void | Promise<void>): void; | ||
* @webhook | ||
* @eventType wix.blog.category_updated | ||
*/ | ||
@@ -871,2 +865,3 @@ export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEvent) => void | Promise<void>): void; | ||
* @webhook | ||
* @eventType wix.blog.category_deleted | ||
*/ | ||
@@ -873,0 +868,0 @@ export declare function onCategoryDeleted(handler: (event: CategoryDeletedEvent) => void | Promise<void>): void; |
{ | ||
"name": "@wix/blog_categories", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"publishConfig": { | ||
@@ -42,3 +42,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "e5c5bbe33f81c5a680c7bdac9d6482f48335dd8a7764c3f6cf03534b" | ||
"falconPackageHash": "488c7fc4053496298837a333798582134c743e6e4bc87f57320ea72a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12
279143
6092