Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/blog_categories

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog_categories - npm Package Compare versions

Comparing version 1.0.49 to 1.0.50

16

build/cjs/src/blog-v3-category-categories.context.d.ts

@@ -5,4 +5,4 @@ import { getCategory as publicGetCategory, getCategoryBySlug as publicGetCategoryBySlug, listCategories as publicListCategories, queryCategories as publicQueryCategories } from './blog-v3-category-categories.public';

import { onCategoryCreated as publicOnCategoryCreated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
import { onCategoryUpdated as publicOnCategoryUpdated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
export declare const getCategory: MaybeContext<BuildRESTFunction<typeof publicGetCategory> & typeof publicGetCategory>;

@@ -18,2 +18,8 @@ export declare const getCategoryBySlug: MaybeContext<BuildRESTFunction<typeof publicGetCategoryBySlug> & typeof publicGetCategoryBySlug>;

export declare const onCategoryCreated: ReturnType<typeof createEventModule<_publicOnCategoryCreatedType>>;
export { publicOnCategoryDeleted };
export type _publicOnCategoryDeletedType = typeof publicOnCategoryDeleted;
/**
* Triggered when a category is deleted.
*/
export declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { publicOnCategoryUpdated };

@@ -25,9 +31,3 @@ export type _publicOnCategoryUpdatedType = typeof publicOnCategoryUpdated;

export declare const onCategoryUpdated: ReturnType<typeof createEventModule<_publicOnCategoryUpdatedType>>;
export { publicOnCategoryDeleted };
export type _publicOnCategoryDeletedType = typeof publicOnCategoryDeleted;
/**
* Triggered when a category is deleted.
*/
export declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal';
export { Category, 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, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEnvelope, CategoryUpdatedEnvelope, CategoryDeletedEnvelope, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';
export { Category, 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, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookIdentityType = exports.SortOrder = exports.Field = exports.onCategoryDeleted = exports.publicOnCategoryDeleted = exports.onCategoryUpdated = exports.publicOnCategoryUpdated = exports.onCategoryCreated = exports.publicOnCategoryCreated = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = void 0;
exports.WebhookIdentityType = exports.SortOrder = exports.Field = exports.onCategoryUpdated = exports.publicOnCategoryUpdated = exports.onCategoryDeleted = exports.publicOnCategoryDeleted = exports.onCategoryCreated = exports.publicOnCategoryCreated = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = void 0;
const blog_v3_category_categories_public_1 = require("./blog-v3-category-categories.public");

@@ -10,5 +10,5 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");

const blog_v3_category_categories_public_3 = require("./blog-v3-category-categories.public");
Object.defineProperty(exports, "publicOnCategoryUpdated", { enumerable: true, get: function () { return blog_v3_category_categories_public_3.onCategoryUpdated; } });
Object.defineProperty(exports, "publicOnCategoryDeleted", { enumerable: true, get: function () { return blog_v3_category_categories_public_3.onCategoryDeleted; } });
const blog_v3_category_categories_public_4 = require("./blog-v3-category-categories.public");
Object.defineProperty(exports, "publicOnCategoryDeleted", { enumerable: true, get: function () { return blog_v3_category_categories_public_4.onCategoryDeleted; } });
Object.defineProperty(exports, "publicOnCategoryUpdated", { enumerable: true, get: function () { return blog_v3_category_categories_public_4.onCategoryUpdated; } });
exports.getCategory = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_1.getCategory);

@@ -23,9 +23,9 @@ exports.getCategoryBySlug = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_1.getCategoryBySlug);

/**
* Triggered when a category is updated.
* Triggered when a category is deleted.
*/
exports.onCategoryUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_3.onCategoryUpdated);
exports.onCategoryDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_3.onCategoryDeleted);
/**
* Triggered when a category is deleted.
* Triggered when a category is updated.
*/
exports.onCategoryDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_4.onCategoryDeleted);
exports.onCategoryUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_4.onCategoryUpdated);
var blog_v3_category_categories_universal_1 = require("./blog-v3-category-categories.universal");

@@ -32,0 +32,0 @@ Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return blog_v3_category_categories_universal_1.Field; } });

@@ -9,112 +9,3 @@ "use strict";

function resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(opts) {
const domainToMappings = {
'manage._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/bulk/category',
destPath: '/v3/bulk/category',
},
{
srcPath: '/_api/communities-blog-node-api/v3/bulk/categories',
destPath: '/v3/bulk/categories',
},
],
'*.pub.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'wixbo.ai': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'wix-bo.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'editor._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'blocks._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'create.editorx': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
_: [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'apps._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www.wixapis.com': [
{
srcPath: '/blog/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'api._api_base_domain_': [
{
srcPath: '/category-service-api-proxy',
destPath: '',
},
],
};
const domainToMappings = {};
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));

@@ -121,0 +12,0 @@ }

@@ -69,4 +69,4 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types';

export declare const onCategoryCreated: EventDefinition<CategoryCreatedEnvelope, "wix.blog.v3.category_created">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEnvelope, "wix.blog.v3.category_updated">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
export { ActionEvent, ApplicationError, BaseEventMetadata, BlogPaging, BulkActionMetadata, BulkCategoryResult, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CategoriesQueryBuilder, CategoriesQueryResult, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryLanguageCount, CategoryTranslation, CategoryUpdatedEnvelope, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Field, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, GetCategoryBySlugOptions, GetCategoryBySlugRequest, GetCategoryBySlugResponse, GetCategoryBySlugResponseNonNullableFields, GetCategoryOptions, GetCategoryRequest, GetCategoryResponse, GetCategoryResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, InitialCategoriesCopied, ItemMetadata, Keyword, ListCategoriesOptions, ListCategoriesRequest, ListCategoriesResponse, ListCategoriesResponseNonNullableFields, MaskedCategory, MessageEnvelope, MetaData, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCategoriesOptions, QueryCategoriesRequest, QueryCategoriesResponse, QueryCategoriesResponseNonNullableFields, RestoreInfo, SeoSchema, Settings, SortOrder, Sorting, Tag, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType, } from './blog-v3-category-categories.universal';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookIdentityType = exports.SortOrder = exports.Field = exports.onCategoryDeleted = exports.onCategoryUpdated = exports.onCategoryCreated = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.__metadata = void 0;
exports.WebhookIdentityType = exports.SortOrder = exports.Field = exports.onCategoryUpdated = exports.onCategoryDeleted = exports.onCategoryCreated = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.__metadata = void 0;
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");

@@ -53,10 +53,13 @@ const image_1 = require("@wix/sdk-runtime/transformations/image");

])))();
exports.onCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.category_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
exports.onCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.blog.v3.category_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: page_url_1.transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
paths: [
{ path: 'undefined.url' },
{ path: 'undefined.translations.url' },
],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [{ path: 'entity.coverImage' }],
paths: [{ path: 'undefined.coverImage' }],
},

@@ -66,3 +69,3 @@ {

paths: [
{ path: 'entity.updatedDate' },
{ path: 'undefined.updatedDate' },
{ path: 'metadata.eventTime' },

@@ -72,13 +75,10 @@ ],

])))();
exports.onCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.blog.v3.category_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
exports.onCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.category_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: page_url_1.transformRESTPageURLToSDKPageURL,
paths: [
{ path: 'undefined.url' },
{ path: 'undefined.translations.url' },
],
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [{ path: 'undefined.coverImage' }],
paths: [{ path: 'entity.coverImage' }],
},

@@ -88,3 +88,3 @@ {

paths: [
{ path: 'undefined.updatedDate' },
{ path: 'entity.updatedDate' },
{ path: 'metadata.eventTime' },

@@ -91,0 +91,0 @@ ],

@@ -654,8 +654,7 @@ export interface Category {

export declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
export interface CategoryUpdatedEnvelope {
entity: Category;
export interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
/**
* Triggered when a category is updated.
* Triggered when a category is deleted.
* @permissionScope Read Blog

@@ -669,10 +668,11 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_updated
* @eventType wix.blog.v3.category_deleted
*/
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
export interface CategoryDeletedEnvelope {
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
export interface CategoryUpdatedEnvelope {
entity: Category;
metadata: EventMetadata;
}
/**
* Triggered when a category is deleted.
* Triggered when a category is updated.
* @permissionScope Read Blog

@@ -686,5 +686,5 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_deleted
* @eventType wix.blog.v3.category_updated
*/
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
/**

@@ -691,0 +691,0 @@ * Gets a category by the specified ID.

@@ -5,4 +5,4 @@ import { getCategory as publicGetCategory, getCategoryBySlug as publicGetCategoryBySlug, listCategories as publicListCategories, queryCategories as publicQueryCategories } from './blog-v3-category-categories.public';

import { onCategoryCreated as publicOnCategoryCreated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
import { onCategoryUpdated as publicOnCategoryUpdated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
export declare const getCategory: MaybeContext<BuildRESTFunction<typeof publicGetCategory> & typeof publicGetCategory>;

@@ -18,2 +18,8 @@ export declare const getCategoryBySlug: MaybeContext<BuildRESTFunction<typeof publicGetCategoryBySlug> & typeof publicGetCategoryBySlug>;

export declare const onCategoryCreated: ReturnType<typeof createEventModule<_publicOnCategoryCreatedType>>;
export { publicOnCategoryDeleted };
export type _publicOnCategoryDeletedType = typeof publicOnCategoryDeleted;
/**
* Triggered when a category is deleted.
*/
export declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { publicOnCategoryUpdated };

@@ -25,9 +31,3 @@ export type _publicOnCategoryUpdatedType = typeof publicOnCategoryUpdated;

export declare const onCategoryUpdated: ReturnType<typeof createEventModule<_publicOnCategoryUpdatedType>>;
export { publicOnCategoryDeleted };
export type _publicOnCategoryDeletedType = typeof publicOnCategoryDeleted;
/**
* Triggered when a category is deleted.
*/
export declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal';
export { Category, 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, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEnvelope, CategoryUpdatedEnvelope, CategoryDeletedEnvelope, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';
export { Category, 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, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, BaseEventMetadata, EventMetadata, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';

@@ -5,4 +5,4 @@ import { getCategory as publicGetCategory, getCategoryBySlug as publicGetCategoryBySlug, listCategories as publicListCategories, queryCategories as publicQueryCategories, } from './blog-v3-category-categories.public';

import { onCategoryCreated as publicOnCategoryCreated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
import { onCategoryUpdated as publicOnCategoryUpdated } from './blog-v3-category-categories.public';
import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public';
export const getCategory = /*#__PURE__*/ createRESTModule(publicGetCategory);

@@ -17,2 +17,7 @@ export const getCategoryBySlug = /*#__PURE__*/ createRESTModule(publicGetCategoryBySlug);

export const onCategoryCreated = createEventModule(publicOnCategoryCreated);
export { publicOnCategoryDeleted };
/**
* Triggered when a category is deleted.
*/
export const onCategoryDeleted = createEventModule(publicOnCategoryDeleted);
export { publicOnCategoryUpdated };

@@ -23,8 +28,3 @@ /**

export const onCategoryUpdated = createEventModule(publicOnCategoryUpdated);
export { publicOnCategoryDeleted };
/**
* Triggered when a category is deleted.
*/
export const onCategoryDeleted = createEventModule(publicOnCategoryDeleted);
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal';
//# sourceMappingURL=blog-v3-category-categories.context.js.map

@@ -6,112 +6,3 @@ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';

function resolveComWixpressNpmCommunitiesPlatformizedBlogV3CategoryServiceUrl(opts) {
const domainToMappings = {
'manage._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/bulk/category',
destPath: '/v3/bulk/category',
},
{
srcPath: '/_api/communities-blog-node-api/v3/bulk/categories',
destPath: '/v3/bulk/categories',
},
],
'*.pub.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'wixbo.ai': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'wix-bo.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'editor._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'blocks._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'create.editorx': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
_: [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'apps._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www.wixapis.com': [
{
srcPath: '/blog/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'api._api_base_domain_': [
{
srcPath: '/category-service-api-proxy',
destPath: '',
},
],
};
const domainToMappings = {};
return resolveUrl(Object.assign(opts, { domainToMappings }));

@@ -118,0 +9,0 @@ }

@@ -69,4 +69,4 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types';

export declare const onCategoryCreated: EventDefinition<CategoryCreatedEnvelope, "wix.blog.v3.category_created">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEnvelope, "wix.blog.v3.category_updated">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
export { ActionEvent, ApplicationError, BaseEventMetadata, BlogPaging, BulkActionMetadata, BulkCategoryResult, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CategoriesQueryBuilder, CategoriesQueryResult, Category, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryLanguageCount, CategoryTranslation, CategoryUpdatedEnvelope, CreateCategoryRequest, CreateCategoryResponse, CursorPaging, Cursors, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Field, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, GetCategoryBySlugOptions, GetCategoryBySlugRequest, GetCategoryBySlugResponse, GetCategoryBySlugResponseNonNullableFields, GetCategoryOptions, GetCategoryRequest, GetCategoryResponse, GetCategoryResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, InitialCategoriesCopied, ItemMetadata, Keyword, ListCategoriesOptions, ListCategoriesRequest, ListCategoriesResponse, ListCategoriesResponseNonNullableFields, MaskedCategory, MessageEnvelope, MetaData, Paging, PagingMetadataV2, PlatformQuery, PlatformQueryPagingMethodOneOf, QueryCategoriesOptions, QueryCategoriesRequest, QueryCategoriesResponse, QueryCategoriesResponseNonNullableFields, RestoreInfo, SeoSchema, Settings, SortOrder, Sorting, Tag, UpdateCategoryRequest, UpdateCategoryResponse, WebhookIdentityType, } from './blog-v3-category-categories.universal';

@@ -46,10 +46,13 @@ import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';

])))();
export const onCategoryUpdated = EventDefinition('wix.blog.v3.category_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
export const onCategoryDeleted = EventDefinition('wix.blog.v3.category_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
paths: [
{ path: 'undefined.url' },
{ path: 'undefined.translations.url' },
],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [{ path: 'entity.coverImage' }],
paths: [{ path: 'undefined.coverImage' }],
},

@@ -59,3 +62,3 @@ {

paths: [
{ path: 'entity.updatedDate' },
{ path: 'undefined.updatedDate' },
{ path: 'metadata.eventTime' },

@@ -65,13 +68,10 @@ ],

])))();
export const onCategoryDeleted = EventDefinition('wix.blog.v3.category_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
export const onCategoryUpdated = EventDefinition('wix.blog.v3.category_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTPageURLToSDKPageURL,
paths: [
{ path: 'undefined.url' },
{ path: 'undefined.translations.url' },
],
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [{ path: 'undefined.coverImage' }],
paths: [{ path: 'entity.coverImage' }],
},

@@ -81,3 +81,3 @@ {

paths: [
{ path: 'undefined.updatedDate' },
{ path: 'entity.updatedDate' },
{ path: 'metadata.eventTime' },

@@ -84,0 +84,0 @@ ],

@@ -654,8 +654,7 @@ export interface Category {

export declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
export interface CategoryUpdatedEnvelope {
entity: Category;
export interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
/**
* Triggered when a category is updated.
* Triggered when a category is deleted.
* @permissionScope Read Blog

@@ -669,10 +668,11 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_updated
* @eventType wix.blog.v3.category_deleted
*/
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
export interface CategoryDeletedEnvelope {
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
export interface CategoryUpdatedEnvelope {
entity: Category;
metadata: EventMetadata;
}
/**
* Triggered when a category is deleted.
* Triggered when a category is updated.
* @permissionScope Read Blog

@@ -686,5 +686,5 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_deleted
* @eventType wix.blog.v3.category_updated
*/
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
/**

@@ -691,0 +691,0 @@ * Gets a category by the specified ID.

{
"name": "@wix/blog_categories",
"version": "1.0.49",
"version": "1.0.50",
"publishConfig": {

@@ -49,3 +49,3 @@ "registry": "https://registry.npmjs.org/",

},
"falconPackageHash": "cf1f5e94890357b72a0ee86458faaa8ba03edb3856002f6d2af64c43"
"falconPackageHash": "bf4162380c87fd1daf5e2d7fac2925f37c87d6e04358985c72757b4e"
}

@@ -1119,2 +1119,5 @@ type HostModule<T, H extends Host> = {

}
interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
interface CategoryUpdatedEnvelope {

@@ -1124,5 +1127,2 @@ entity: Category;

}
interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
interface GetCategoryOptions {

@@ -1279,4 +1279,4 @@ /** List of category fields to be included in the response. By default, any fields not passed are not returned. */

declare const onCategoryCreated$1: EventDefinition<CategoryCreatedEnvelope, "wix.blog.v3.category_created">;
declare const onCategoryDeleted$1: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
declare const onCategoryUpdated$1: EventDefinition<CategoryUpdatedEnvelope, "wix.blog.v3.category_updated">;
declare const onCategoryDeleted$1: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;

@@ -1296,2 +1296,8 @@ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;

type _publicOnCategoryDeletedType = typeof onCategoryDeleted$1;
/**
* Triggered when a category is deleted.
*/
declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
type _publicOnCategoryUpdatedType = typeof onCategoryUpdated$1;

@@ -1303,8 +1309,2 @@ /**

type _publicOnCategoryDeletedType = typeof onCategoryDeleted$1;
/**
* Triggered when a category is deleted.
*/
declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type BlogPaging, type BulkActionMetadata, type BulkCategoryResult, type BulkCreateCategoriesRequest, type BulkCreateCategoriesResponse, type BulkDeleteCategoryRequest, type BulkDeleteCategoryResponse, type BulkUpdateCategoriesRequest, type BulkUpdateCategoriesResponse, type CategoriesQueryBuilder, type CategoriesQueryResult, type Category, type CategoryCreatedEnvelope, type CategoryDeletedEnvelope, type CategoryLanguageCount, type CategoryTranslation, type CategoryUpdatedEnvelope, type CreateCategoryRequest, type CreateCategoryResponse, type CursorPaging, type Cursors, type DeleteCategoryRequest, type DeleteCategoryResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, Field, type GetCategoriesCountByLanguageRequest, type GetCategoriesCountByLanguageResponse, type GetCategoryBySlugOptions, type GetCategoryBySlugRequest, type GetCategoryBySlugResponse, type GetCategoryBySlugResponseNonNullableFields, type GetCategoryOptions, type GetCategoryRequest, type GetCategoryResponse, type GetCategoryResponseNonNullableFields, type IdentificationData, type IdentificationDataIdOneOf, type InitialCategoriesCopied, type ItemMetadata, type Keyword, type ListCategoriesOptions, type ListCategoriesRequest, type ListCategoriesResponse, type ListCategoriesResponseNonNullableFields, type MaskedCategory, type MessageEnvelope, type MetaData, type Paging, type PagingMetadataV2, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type QueryCategoriesOptions, type QueryCategoriesRequest, type QueryCategoriesResponse, type QueryCategoriesResponseNonNullableFields, type RestoreInfo, type SeoSchema, type Settings, SortOrder, type Sorting, type Tag, type UpdateCategoryRequest, type UpdateCategoryResponse, WebhookIdentityType, type _publicOnCategoryCreatedType, type _publicOnCategoryDeletedType, type _publicOnCategoryUpdatedType, getCategory, getCategoryBySlug, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, onCategoryCreated$1 as publicOnCategoryCreated, onCategoryDeleted$1 as publicOnCategoryDeleted, onCategoryUpdated$1 as publicOnCategoryUpdated, queryCategories };

@@ -1119,2 +1119,5 @@ type HostModule<T, H extends Host> = {

}
interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
interface CategoryUpdatedEnvelope {

@@ -1124,5 +1127,2 @@ entity: Category;

}
interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
interface GetCategoryOptions {

@@ -1279,4 +1279,4 @@ /** List of category fields to be included in the response. By default, any fields not passed are not returned. */

declare const onCategoryCreated$1: EventDefinition<CategoryCreatedEnvelope, "wix.blog.v3.category_created">;
declare const onCategoryDeleted$1: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;
declare const onCategoryUpdated$1: EventDefinition<CategoryUpdatedEnvelope, "wix.blog.v3.category_updated">;
declare const onCategoryDeleted$1: EventDefinition<CategoryDeletedEnvelope, "wix.blog.v3.category_deleted">;

@@ -1296,2 +1296,8 @@ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;

type _publicOnCategoryDeletedType = typeof onCategoryDeleted$1;
/**
* Triggered when a category is deleted.
*/
declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
type _publicOnCategoryUpdatedType = typeof onCategoryUpdated$1;

@@ -1303,8 +1309,2 @@ /**

type _publicOnCategoryDeletedType = typeof onCategoryDeleted$1;
/**
* Triggered when a category is deleted.
*/
declare const onCategoryDeleted: ReturnType<typeof createEventModule<_publicOnCategoryDeletedType>>;
export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type BlogPaging, type BulkActionMetadata, type BulkCategoryResult, type BulkCreateCategoriesRequest, type BulkCreateCategoriesResponse, type BulkDeleteCategoryRequest, type BulkDeleteCategoryResponse, type BulkUpdateCategoriesRequest, type BulkUpdateCategoriesResponse, type CategoriesQueryBuilder, type CategoriesQueryResult, type Category, type CategoryCreatedEnvelope, type CategoryDeletedEnvelope, type CategoryLanguageCount, type CategoryTranslation, type CategoryUpdatedEnvelope, type CreateCategoryRequest, type CreateCategoryResponse, type CursorPaging, type Cursors, type DeleteCategoryRequest, type DeleteCategoryResponse, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, Field, type GetCategoriesCountByLanguageRequest, type GetCategoriesCountByLanguageResponse, type GetCategoryBySlugOptions, type GetCategoryBySlugRequest, type GetCategoryBySlugResponse, type GetCategoryBySlugResponseNonNullableFields, type GetCategoryOptions, type GetCategoryRequest, type GetCategoryResponse, type GetCategoryResponseNonNullableFields, type IdentificationData, type IdentificationDataIdOneOf, type InitialCategoriesCopied, type ItemMetadata, type Keyword, type ListCategoriesOptions, type ListCategoriesRequest, type ListCategoriesResponse, type ListCategoriesResponseNonNullableFields, type MaskedCategory, type MessageEnvelope, type MetaData, type Paging, type PagingMetadataV2, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type QueryCategoriesOptions, type QueryCategoriesRequest, type QueryCategoriesResponse, type QueryCategoriesResponseNonNullableFields, type RestoreInfo, type SeoSchema, type Settings, SortOrder, type Sorting, type Tag, type UpdateCategoryRequest, type UpdateCategoryResponse, WebhookIdentityType, type _publicOnCategoryCreatedType, type _publicOnCategoryDeletedType, type _publicOnCategoryUpdatedType, getCategory, getCategoryBySlug, listCategories, onCategoryCreated, onCategoryDeleted, onCategoryUpdated, onCategoryCreated$1 as publicOnCategoryCreated, onCategoryDeleted$1 as publicOnCategoryDeleted, onCategoryUpdated$1 as publicOnCategoryUpdated, queryCategories };

@@ -654,8 +654,7 @@ interface Category {

declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
interface CategoryUpdatedEnvelope {
entity: Category;
interface CategoryDeletedEnvelope {
metadata: EventMetadata;
}
/**
* Triggered when a category is updated.
* Triggered when a category is deleted.
* @permissionScope Read Blog

@@ -669,10 +668,11 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_updated
* @eventType wix.blog.v3.category_deleted
*/
declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
interface CategoryDeletedEnvelope {
declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
interface CategoryUpdatedEnvelope {
entity: Category;
metadata: EventMetadata;
}
/**
* Triggered when a category is deleted.
* Triggered when a category is updated.
* @permissionScope Read Blog

@@ -686,5 +686,5 @@ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS

* @webhook
* @eventType wix.blog.v3.category_deleted
* @eventType wix.blog.v3.category_updated
*/
declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
/**

@@ -691,0 +691,0 @@ * Gets a category by the specified ID.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc