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

@wix/blog_categories

Package Overview
Dependencies
Maintainers
26
Versions
45
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.18 to 1.0.19

184

build/cjs/src/blog-v3-category-categories.http.js

@@ -10,17 +10,19 @@ "use strict";

const domainToMappings = {
'api._api_base_domain_': [
'manage._base_domain_': [
{
srcPath: '/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/bulk/category',
destPath: '/v3/bulk/category',
},
],
'*.pub.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
{

@@ -30,75 +32,19 @@ srcPath: '/_api/communities-blog-node-api/v3/categories',

},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
'apps._base_domain_': [
'wixbo.ai': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
_: [
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
{
srcPath: '/_api/communities-blog-node-api/_api/blogs/this',
destPath: '/_api/blogs/this',
},
{
srcPath: '/_api/communities-blog-node-api/_api/categories',
destPath: '/_api/categories',
},
{
srcPath: '/_api/communities-blog-node-api/_api/site-properties',
destPath: '/_api/site-properties',
},
{
srcPath: '/_api/communities-blog-node-api/_api/posts/content',
destPath: '/_api/posts/content',
},
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
'editor._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},

@@ -108,4 +54,4 @@ ],

{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},

@@ -115,103 +61,45 @@ ],

{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'*.pub.wix-code.com': [
_: [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
'apps._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'wixbo.ai': [
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'manage._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'dev._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'www.wixapis.com': [
{
srcPath: '/blog/v2',
destPath: '/v2',
srcPath: '/blog/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/blog/v3',
destPath: '/v3',
},
{
srcPath: '/v2/stats',
destPath: '/v2/stats',
},
{
srcPath: '/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
{
srcPath: '/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/blog/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/blog/v3/categories',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/blog/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/blog/v2/stats',
destPath: '/v2/stats',
},
],

@@ -218,0 +106,0 @@ };

12

build/cjs/src/blog-v3-category-categories.public.d.ts
import { HttpClient, EventDefinition } from '@wix/sdk-types';
import { Category, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, GetCategoryBySlugOptions, GetCategoryOptions, ListCategoriesOptions, QueryCategoriesOptions } from './blog-v3-category-categories.universal';
import { CategoryCreatedEvent, CategoryDeletedEvent, CategoryUpdatedEvent, GetCategoryBySlugOptions, GetCategoryOptions, ListCategoriesOptions, QueryCategoriesOptions } from './blog-v3-category-categories.universal';
export declare const __metadata: {

@@ -10,6 +10,6 @@ PACKAGE_NAME: string;

export declare function queryCategories(httpClient: HttpClient): (options?: QueryCategoriesOptions) => import("./blog-v3-category-categories.universal").CategoriesQueryBuilder;
export declare const onCategoryCreated: EventDefinition<DomainCreatedEvent<Category>, "wix.blog.category_created">;
export declare const onCategoryUpdated: EventDefinition<DomainUpdatedEvent<Category>, "wix.blog.category_updated">;
export declare const onCategoryDeleted: EventDefinition<DomainDeletedEvent<Category>, "wix.blog.category_deleted">;
export { Field, SortOrder } 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, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, EventMetadata, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';
export declare const onCategoryCreated: EventDefinition<CategoryCreatedEvent, "wix.blog.category_created">;
export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEvent, "wix.blog.category_updated">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEvent, "wix.blog.category_deleted">;
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';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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.onCategoryDeleted = exports.onCategoryUpdated = exports.onCategoryCreated = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.__metadata = void 0;
const sdk_types_1 = require("@wix/sdk-types");

@@ -54,2 +54,3 @@ const blog_v3_category_categories_universal_1 = require("./blog-v3-category-categories.universal");

Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return blog_v3_category_categories_universal_2.SortOrder; } });
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return blog_v3_category_categories_universal_2.WebhookIdentityType; } });
//# sourceMappingURL=blog-v3-category-categories.public.js.map

@@ -641,2 +641,42 @@ export interface Category {

}
export interface MessageEnvelope {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Stringify payload. */
data?: string;
}
export interface IdentificationData extends IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
/** @readonly */
identityType?: WebhookIdentityType;
}
/** @oneof */
export interface IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
}
export declare enum WebhookIdentityType {
UNKNOWN = "UNKNOWN",
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
MEMBER = "MEMBER",
WIX_USER = "WIX_USER",
APP = "APP"
}
export interface GetCategoryResponseNonNullableFields {

@@ -643,0 +683,0 @@ category?: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SortOrder = exports.Field = void 0;
exports.WebhookIdentityType = exports.SortOrder = exports.Field = void 0;
var Field;

@@ -24,2 +24,10 @@ (function (Field) {

})(SortOrder || (exports.SortOrder = SortOrder = {}));
var WebhookIdentityType;
(function (WebhookIdentityType) {
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
WebhookIdentityType["MEMBER"] = "MEMBER";
WebhookIdentityType["WIX_USER"] = "WIX_USER";
WebhookIdentityType["APP"] = "APP";
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
//# sourceMappingURL=blog-v3-category-categories.types.js.map

@@ -592,2 +592,42 @@ export interface Category {

}
export interface MessageEnvelope {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Stringify payload. */
data?: string;
}
export interface IdentificationData extends IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
/** @readonly */
identityType?: WebhookIdentityType;
}
/** @oneof */
export interface IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
}
export declare enum WebhookIdentityType {
UNKNOWN = "UNKNOWN",
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
MEMBER = "MEMBER",
WIX_USER = "WIX_USER",
APP = "APP"
}
export interface GetCategoryResponseNonNullableFields {

@@ -739,3 +779,11 @@ category?: {

}
export interface EventMetadata {
export interface BaseEventMetadata {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
}
export interface EventMetadata extends BaseEventMetadata {
/**

@@ -778,2 +826,6 @@ * Unique event ID.

}
export interface CategoryCreatedEvent {
entity: Category;
metadata: EventMetadata;
}
/**

@@ -789,3 +841,7 @@ * Triggered when a category is created.

*/
export declare function onCategoryCreated(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryCreated(handler: (event: CategoryCreatedEvent) => void | Promise<void>): void;
export interface CategoryUpdatedEvent {
entity: Category;
metadata: EventMetadata;
}
/**

@@ -801,3 +857,6 @@ * Triggered when a category is updated.

*/
export declare function onCategoryUpdated(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEvent) => void | Promise<void>): void;
export interface CategoryDeletedEvent {
metadata: EventMetadata;
}
/**

@@ -813,3 +872,3 @@ * Triggered when a category is deleted.

*/
export declare function onCategoryDeleted(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEvent) => void | Promise<void>): void;
/**

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

@@ -26,3 +26,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.SortOrder = exports.Field = void 0;
exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.WebhookIdentityType = exports.SortOrder = exports.Field = void 0;
const velo_1 = require("@wix/metro-runtime/velo");

@@ -60,2 +60,10 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error");

})(SortOrder || (exports.SortOrder = SortOrder = {}));
var WebhookIdentityType;
(function (WebhookIdentityType) {
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
WebhookIdentityType["MEMBER"] = "MEMBER";
WebhookIdentityType["WIX_USER"] = "WIX_USER";
WebhookIdentityType["APP"] = "APP";
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
const _category = {

@@ -62,0 +70,0 @@ url: 'wix.common.PageUrl',

@@ -7,17 +7,19 @@ import { toURLSearchParams } from '@wix/metro-runtime';

const domainToMappings = {
'api._api_base_domain_': [
'manage._base_domain_': [
{
srcPath: '/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/bulk/category',
destPath: '/v3/bulk/category',
},
],
'*.pub.wix-code.com': [
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
{

@@ -27,75 +29,19 @@ srcPath: '/_api/communities-blog-node-api/v3/categories',

},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
'apps._base_domain_': [
'wixbo.ai': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
_: [
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
{
srcPath: '/_api/communities-blog-node-api/_api/blogs/this',
destPath: '/_api/blogs/this',
},
{
srcPath: '/_api/communities-blog-node-api/_api/categories',
destPath: '/_api/categories',
},
{
srcPath: '/_api/communities-blog-node-api/_api/site-properties',
destPath: '/_api/site-properties',
},
{
srcPath: '/_api/communities-blog-node-api/_api/posts/content',
destPath: '/_api/posts/content',
},
{
srcPath: '/_api/communities-blog-node-api/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/_api/communities-blog-node-api/v2/stats',
destPath: '/v2/stats',
},
],
'editor._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},

@@ -105,4 +51,4 @@ ],

{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},

@@ -112,103 +58,45 @@ ],

{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'*.pub.wix-code.com': [
_: [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
],
'bo._base_domain_': [
'apps._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'wixbo.ai': [
'www._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'manage._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'social-blog._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'editor.wixapps.net': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'dev._base_domain_': [
{
srcPath: '/_api/communities-blog-node-api',
destPath: '',
},
],
'www.wixapis.com': [
{
srcPath: '/blog/v2',
destPath: '/v2',
srcPath: '/blog/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/blog/v3',
destPath: '/v3',
},
{
srcPath: '/v2/stats',
destPath: '/v2/stats',
},
{
srcPath: '/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/v3/categories',
destPath: '/v3/categories',
},
],
'*.dev.wix-code.com': [
{
srcPath: '/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/blog/v3/posts',
destPath: '/v3/posts',
},
{
srcPath: '/blog/v3/categories',
srcPath: '/_api/communities-blog-node-api/v3/categories',
destPath: '/v3/categories',
},
{
srcPath: '/blog/v3/tags',
destPath: '/v3/tags',
},
{
srcPath: '/blog/v2/stats',
destPath: '/v2/stats',
},
],

@@ -215,0 +103,0 @@ };

import { HttpClient, EventDefinition } from '@wix/sdk-types';
import { Category, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, GetCategoryBySlugOptions, GetCategoryOptions, ListCategoriesOptions, QueryCategoriesOptions } from './blog-v3-category-categories.universal';
import { CategoryCreatedEvent, CategoryDeletedEvent, CategoryUpdatedEvent, GetCategoryBySlugOptions, GetCategoryOptions, ListCategoriesOptions, QueryCategoriesOptions } from './blog-v3-category-categories.universal';
export declare const __metadata: {

@@ -10,6 +10,6 @@ PACKAGE_NAME: string;

export declare function queryCategories(httpClient: HttpClient): (options?: QueryCategoriesOptions) => import("./blog-v3-category-categories.universal").CategoriesQueryBuilder;
export declare const onCategoryCreated: EventDefinition<DomainCreatedEvent<Category>, "wix.blog.category_created">;
export declare const onCategoryUpdated: EventDefinition<DomainUpdatedEvent<Category>, "wix.blog.category_updated">;
export declare const onCategoryDeleted: EventDefinition<DomainDeletedEvent<Category>, "wix.blog.category_deleted">;
export { Field, SortOrder } 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, GetCategoryResponseNonNullableFields, GetCategoryBySlugResponseNonNullableFields, ListCategoriesResponseNonNullableFields, QueryCategoriesResponseNonNullableFields, EventMetadata, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal';
export declare const onCategoryCreated: EventDefinition<CategoryCreatedEvent, "wix.blog.category_created">;
export declare const onCategoryUpdated: EventDefinition<CategoryUpdatedEvent, "wix.blog.category_updated">;
export declare const onCategoryDeleted: EventDefinition<CategoryDeletedEvent, "wix.blog.category_deleted">;
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';

@@ -44,3 +44,3 @@ import { EventDefinition } from '@wix/sdk-types';

})();
export { Field, SortOrder } from './blog-v3-category-categories.universal';
export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal';
//# sourceMappingURL=blog-v3-category-categories.public.js.map

@@ -641,2 +641,42 @@ export interface Category {

}
export interface MessageEnvelope {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Stringify payload. */
data?: string;
}
export interface IdentificationData extends IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
/** @readonly */
identityType?: WebhookIdentityType;
}
/** @oneof */
export interface IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
}
export declare enum WebhookIdentityType {
UNKNOWN = "UNKNOWN",
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
MEMBER = "MEMBER",
WIX_USER = "WIX_USER",
APP = "APP"
}
export interface GetCategoryResponseNonNullableFields {

@@ -643,0 +683,0 @@ category?: {

@@ -21,2 +21,10 @@ export var Field;

})(SortOrder || (SortOrder = {}));
export var WebhookIdentityType;
(function (WebhookIdentityType) {
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
WebhookIdentityType["MEMBER"] = "MEMBER";
WebhookIdentityType["WIX_USER"] = "WIX_USER";
WebhookIdentityType["APP"] = "APP";
})(WebhookIdentityType || (WebhookIdentityType = {}));
//# sourceMappingURL=blog-v3-category-categories.types.js.map

@@ -592,2 +592,42 @@ export interface Category {

}
export interface MessageEnvelope {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
/** Stringify payload. */
data?: string;
}
export interface IdentificationData extends IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
/** @readonly */
identityType?: WebhookIdentityType;
}
/** @oneof */
export interface IdentificationDataIdOneOf {
/** ID of a site visitor that has not logged in to the site. */
anonymousVisitorId?: string;
/** ID of a site visitor that has logged in to the site. */
memberId?: string;
/** ID of a Wix user (site owner, contributor, etc.). */
wixUserId?: string;
/** ID of an app. */
appId?: string;
}
export declare enum WebhookIdentityType {
UNKNOWN = "UNKNOWN",
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
MEMBER = "MEMBER",
WIX_USER = "WIX_USER",
APP = "APP"
}
export interface GetCategoryResponseNonNullableFields {

@@ -739,3 +779,11 @@ category?: {

}
export interface EventMetadata {
export interface BaseEventMetadata {
/** App instance ID. */
instanceId?: string | null;
/** Event type. */
eventType?: string;
/** The identification type and identity data. */
identity?: IdentificationData;
}
export interface EventMetadata extends BaseEventMetadata {
/**

@@ -778,2 +826,6 @@ * Unique event ID.

}
export interface CategoryCreatedEvent {
entity: Category;
metadata: EventMetadata;
}
/**

@@ -789,3 +841,7 @@ * Triggered when a category is created.

*/
export declare function onCategoryCreated(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryCreated(handler: (event: CategoryCreatedEvent) => void | Promise<void>): void;
export interface CategoryUpdatedEvent {
entity: Category;
metadata: EventMetadata;
}
/**

@@ -801,3 +857,6 @@ * Triggered when a category is updated.

*/
export declare function onCategoryUpdated(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEvent) => void | Promise<void>): void;
export interface CategoryDeletedEvent {
metadata: EventMetadata;
}
/**

@@ -813,3 +872,3 @@ * Triggered when a category is deleted.

*/
export declare function onCategoryDeleted(handler: (event: Category, metadata: EventMetadata) => void | Promise<void>): void;
export declare function onCategoryDeleted(handler: (event: CategoryDeletedEvent) => void | Promise<void>): void;
/**

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

@@ -33,2 +33,10 @@ import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';

})(SortOrder || (SortOrder = {}));
export var WebhookIdentityType;
(function (WebhookIdentityType) {
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
WebhookIdentityType["MEMBER"] = "MEMBER";
WebhookIdentityType["WIX_USER"] = "WIX_USER";
WebhookIdentityType["APP"] = "APP";
})(WebhookIdentityType || (WebhookIdentityType = {}));
const _category = {

@@ -35,0 +43,0 @@ url: 'wix.common.PageUrl',

{
"name": "@wix/blog_categories",
"version": "1.0.18",
"version": "1.0.19",
"publishConfig": {

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

"@wix/sdk-runtime": "^0.2.10",
"@wix/sdk-types": "^1.6.0"
"@wix/sdk-types": "^1.6.2"
},

@@ -43,3 +43,3 @@ "devDependencies": {

},
"falconPackageHash": "5d3c8ea3563fcf3d43589a4fe26396d2b2baeb83351a95314932113e"
"falconPackageHash": "e5c5bbe33f81c5a680c7bdac9d6482f48335dd8a7764c3f6cf03534b"
}

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

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