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

@wix/blog_posts

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/blog_posts - npm Package Compare versions

Comparing version 1.0.59 to 1.0.60

16

build/cjs/src/blog-v3-post-posts.context.d.ts

@@ -5,6 +5,6 @@ import { getPost as publicGetPost, getPostBySlug as publicGetPostBySlug, listPosts as publicListPosts, queryPosts as publicQueryPosts, getPostMetrics as publicGetPostMetrics, queryPostCountStats as publicQueryPostCountStats, getTotalPosts as publicGetTotalPosts } from './blog-v3-post-posts.public';

import { onPostCreated as publicOnPostCreated } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
import { onPostDeleted as publicOnPostDeleted } from './blog-v3-post-posts.public';
import { onPostLiked as publicOnPostLiked } from './blog-v3-post-posts.public';
import { onPostUnliked as publicOnPostUnliked } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
export declare const getPost: MaybeContext<BuildRESTFunction<typeof publicGetPost> & typeof publicGetPost>;

@@ -23,8 +23,2 @@ export declare const getPostBySlug: MaybeContext<BuildRESTFunction<typeof publicGetPostBySlug> & typeof publicGetPostBySlug>;

export declare const onPostCreated: ReturnType<typeof createEventModule<_publicOnPostCreatedType>>;
export { publicOnPostUpdated };
export type _publicOnPostUpdatedType = typeof publicOnPostUpdated;
/**
* Triggered when a post is updated.
*/
export declare const onPostUpdated: ReturnType<typeof createEventModule<_publicOnPostUpdatedType>>;
export { publicOnPostDeleted };

@@ -48,3 +42,9 @@ export type _publicOnPostDeletedType = typeof publicOnPostDeleted;

export declare const onPostUnliked: ReturnType<typeof createEventModule<_publicOnPostUnlikedType>>;
export { publicOnPostUpdated };
export type _publicOnPostUpdatedType = typeof publicOnPostUpdated;
/**
* Triggered when a post is updated.
*/
export declare const onPostUpdated: ReturnType<typeof createEventModule<_publicOnPostUpdatedType>>;
export { NodeType, WidthType, PluginContainerDataAlignment, Type, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, ModerationStatusStatus, WebhookIdentityType, GetPostsSort, PostFieldField, GetPostTemplatesSort, Origin, Status, Field, SortOrder, QueryPublicationsCountStatsRequestOrder, Order, } from './blog-v3-post-posts.universal';
export { Post, CoverMedia, CoverMediaMediaOneOf, PostCountInfo, Metrics, SeoSchema, Keyword, Tag, Settings, RichContent, Node, NodeDataOneOf, NodeStyle, ButtonData, Border, Colors, PluginContainerData, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Spoiler, Height, Styles, Link, LinkDataOneOf, Rel, CodeBlockData, TextStyle, DividerData, FileData, FileSource, FileSourceDataOneOf, PDFSettings, GalleryData, V1Media, Image, Video, Item, ItemDataOneOf, GalleryOptions, Layout, ItemStyle, Thumbnails, GIFData, GIF, HeadingData, HTMLData, HTMLDataDataOneOf, ImageData, LinkPreviewData, MapData, MapSettings, ParagraphData, PollData, Permissions, Option, PollSettings, PollLayout, OptionLayout, Gradient, Background, BackgroundBackgroundOneOf, PollDesign, OptionDesign, Poll, PollDataLayout, Design, TextData, Decoration, DecorationDataOneOf, AnchorData, ColorData, LinkData, MentionData, FontSizeData, SpoilerData, AppEmbedData, AppEmbedDataAppDataOneOf, BookingData, EventData, VideoData, PlaybackOptions, EmbedData, Oembed, CollapsibleListData, TableData, Dimensions, TableCellData, CellStyle, BorderColors, ListValue, AudioData, OrderedListData, BulletedListData, BlockquoteData, CaptionData, Metadata, DocumentStyle, TextNodeStyle, ModerationDetails, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, PostTranslation, OldBlogMigratedEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, ListDemoPostsRequest, BlogPaging, ListDemoPostsResponse, MetaData, ListTemplatesRequest, ListTemplatesResponse, Category, CategoryTranslation, GetTemplateRequest, GetTemplateResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, DraftPost, DraftPostTranslation, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, PostLiked, PostLikedInitiatorOneOf, PostUnliked, PostUnlikedInitiatorOneOf, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostOwnerChanged, InitialPostsCopied, GetPostRequest, GetPostResponse, GetPostBySlugRequest, GetPostBySlugResponse, ListPostsRequest, ListPostsResponse, QueryPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryPostsResponse, PagingMetadataV2, Cursors, GetPostMetricsRequest, GetPostMetricsResponse, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, ViewPostRequest, ViewPostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, UnlikePostResponse, PinPostRequest, PinPostResponse, UnpinPostRequest, UnpinPostResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, Reactions, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsResponse, PeriodPublicationsCount, QueryPostCountStatsRequest, QueryPostCountStatsResponse, PeriodPostCount, GetTotalPublicationsRequest, GetTotalPublicationsResponse, GetTotalPostsRequest, GetTotalPostsResponse, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, GetPostResponseNonNullableFields, GetPostBySlugResponseNonNullableFields, ListPostsResponseNonNullableFields, QueryPostsResponseNonNullableFields, GetPostMetricsResponseNonNullableFields, QueryPostCountStatsResponseNonNullableFields, GetTotalPostsResponseNonNullableFields, BaseEventMetadata, EventMetadata, PostCreatedEnvelope, PostUpdatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, GetPostOptions, GetPostBySlugOptions, ListPostsOptions, QueryPostsOptions, PostsQueryResult, PostsQueryBuilder, QueryPostCountStatsOptions, GetTotalPostsOptions, } from './blog-v3-post-posts.universal';
export { Post, CoverMedia, CoverMediaMediaOneOf, FocalPoint, PostCountInfo, Metrics, SeoSchema, Keyword, Tag, Settings, RichContent, Node, NodeDataOneOf, NodeStyle, ButtonData, Border, Colors, PluginContainerData, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Spoiler, Height, Styles, Link, LinkDataOneOf, Rel, CodeBlockData, TextStyle, DividerData, FileData, FileSource, FileSourceDataOneOf, PDFSettings, GalleryData, V1Media, Image, Video, Item, ItemDataOneOf, GalleryOptions, Layout, ItemStyle, Thumbnails, GIFData, GIF, HeadingData, HTMLData, HTMLDataDataOneOf, ImageData, LinkPreviewData, MapData, MapSettings, ParagraphData, PollData, Permissions, Option, PollSettings, PollLayout, OptionLayout, Gradient, Background, BackgroundBackgroundOneOf, PollDesign, OptionDesign, Poll, PollDataLayout, Design, TextData, Decoration, DecorationDataOneOf, AnchorData, ColorData, LinkData, MentionData, FontSizeData, SpoilerData, AppEmbedData, AppEmbedDataAppDataOneOf, BookingData, EventData, VideoData, PlaybackOptions, EmbedData, Oembed, CollapsibleListData, TableData, Dimensions, TableCellData, CellStyle, BorderColors, ListValue, AudioData, OrderedListData, BulletedListData, BlockquoteData, CaptionData, Metadata, DocumentStyle, TextNodeStyle, ModerationDetails, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, PostTranslation, OldBlogMigratedEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, ListDemoPostsRequest, BlogPaging, ListDemoPostsResponse, MetaData, ListTemplatesRequest, ListTemplatesResponse, Category, CategoryTranslation, GetTemplateRequest, GetTemplateResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, DraftPost, DraftPostTranslation, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, PostLiked, PostLikedInitiatorOneOf, PostUnliked, PostUnlikedInitiatorOneOf, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostOwnerChanged, InitialPostsCopied, GetPostRequest, GetPostResponse, GetPostBySlugRequest, GetPostBySlugResponse, ListPostsRequest, ListPostsResponse, QueryPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryPostsResponse, PagingMetadataV2, Cursors, GetPostMetricsRequest, GetPostMetricsResponse, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, ViewPostRequest, ViewPostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, UnlikePostResponse, PinPostRequest, PinPostResponse, UnpinPostRequest, UnpinPostResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, Reactions, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsResponse, PeriodPublicationsCount, QueryPostCountStatsRequest, QueryPostCountStatsResponse, PeriodPostCount, GetTotalPublicationsRequest, GetTotalPublicationsResponse, GetTotalPostsRequest, GetTotalPostsResponse, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, GetPostResponseNonNullableFields, GetPostBySlugResponseNonNullableFields, ListPostsResponseNonNullableFields, QueryPostsResponseNonNullableFields, GetPostMetricsResponseNonNullableFields, QueryPostCountStatsResponseNonNullableFields, GetTotalPostsResponseNonNullableFields, BaseEventMetadata, EventMetadata, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope, GetPostOptions, GetPostBySlugOptions, ListPostsOptions, QueryPostsOptions, PostsQueryResult, PostsQueryBuilder, QueryPostCountStatsOptions, GetTotalPostsOptions, } from './blog-v3-post-posts.universal';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetPostTemplatesSort = exports.PostFieldField = exports.GetPostsSort = exports.WebhookIdentityType = exports.ModerationStatusStatus = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Source = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.Type = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.onPostUnliked = exports.publicOnPostUnliked = exports.onPostLiked = exports.publicOnPostLiked = exports.onPostDeleted = exports.publicOnPostDeleted = exports.onPostUpdated = exports.publicOnPostUpdated = exports.onPostCreated = exports.publicOnPostCreated = exports.getTotalPosts = exports.queryPostCountStats = exports.getPostMetrics = exports.queryPosts = exports.listPosts = exports.getPostBySlug = exports.getPost = void 0;
exports.GetPostTemplatesSort = exports.PostFieldField = exports.GetPostsSort = exports.WebhookIdentityType = exports.ModerationStatusStatus = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Source = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.Type = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.onPostUpdated = exports.publicOnPostUpdated = exports.onPostUnliked = exports.publicOnPostUnliked = exports.onPostLiked = exports.publicOnPostLiked = exports.onPostDeleted = exports.publicOnPostDeleted = exports.onPostCreated = exports.publicOnPostCreated = exports.getTotalPosts = exports.queryPostCountStats = exports.getPostMetrics = exports.queryPosts = exports.listPosts = exports.getPostBySlug = exports.getPost = void 0;
exports.Order = exports.QueryPublicationsCountStatsRequestOrder = exports.SortOrder = exports.Field = exports.Status = exports.Origin = void 0;

@@ -11,9 +11,9 @@ const blog_v3_post_posts_public_1 = require("./blog-v3-post-posts.public");

const blog_v3_post_posts_public_3 = require("./blog-v3-post-posts.public");
Object.defineProperty(exports, "publicOnPostUpdated", { enumerable: true, get: function () { return blog_v3_post_posts_public_3.onPostUpdated; } });
Object.defineProperty(exports, "publicOnPostDeleted", { enumerable: true, get: function () { return blog_v3_post_posts_public_3.onPostDeleted; } });
const blog_v3_post_posts_public_4 = require("./blog-v3-post-posts.public");
Object.defineProperty(exports, "publicOnPostDeleted", { enumerable: true, get: function () { return blog_v3_post_posts_public_4.onPostDeleted; } });
Object.defineProperty(exports, "publicOnPostLiked", { enumerable: true, get: function () { return blog_v3_post_posts_public_4.onPostLiked; } });
const blog_v3_post_posts_public_5 = require("./blog-v3-post-posts.public");
Object.defineProperty(exports, "publicOnPostLiked", { enumerable: true, get: function () { return blog_v3_post_posts_public_5.onPostLiked; } });
Object.defineProperty(exports, "publicOnPostUnliked", { enumerable: true, get: function () { return blog_v3_post_posts_public_5.onPostUnliked; } });
const blog_v3_post_posts_public_6 = require("./blog-v3-post-posts.public");
Object.defineProperty(exports, "publicOnPostUnliked", { enumerable: true, get: function () { return blog_v3_post_posts_public_6.onPostUnliked; } });
Object.defineProperty(exports, "publicOnPostUpdated", { enumerable: true, get: function () { return blog_v3_post_posts_public_6.onPostUpdated; } });
exports.getPost = (0, rest_modules_1.createRESTModule)(blog_v3_post_posts_public_1.getPost);

@@ -31,17 +31,17 @@ exports.getPostBySlug = (0, rest_modules_1.createRESTModule)(blog_v3_post_posts_public_1.getPostBySlug);

/**
* Triggered when a post is updated.
*/
exports.onPostUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_3.onPostUpdated);
/**
* Triggered when a post is deleted.
*/
exports.onPostDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_4.onPostDeleted);
exports.onPostDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_3.onPostDeleted);
/**
* Triggered when a post is liked.
*/
exports.onPostLiked = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_5.onPostLiked);
exports.onPostLiked = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_4.onPostLiked);
/**
* Triggered when a post is unliked.
*/
exports.onPostUnliked = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_6.onPostUnliked);
exports.onPostUnliked = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_5.onPostUnliked);
/**
* Triggered when a post is updated.
*/
exports.onPostUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_post_posts_public_6.onPostUpdated);
var blog_v3_post_posts_universal_1 = require("./blog-v3-post-posts.universal");

@@ -48,0 +48,0 @@ Object.defineProperty(exports, "NodeType", { enumerable: true, get: function () { return blog_v3_post_posts_universal_1.NodeType; } });

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

export declare const onPostCreated: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
export declare const onPostUpdated: EventDefinition<PostUpdatedEnvelope, "wix.blog.v3.post_updated">;
export declare const onPostDeleted: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
export declare const onPostLiked: EventDefinition<PostLikedEnvelope, "wix.blog.v3.post_liked">;
export declare const onPostUnliked: EventDefinition<PostUnlikedEnvelope, "wix.blog.v3.post_unliked">;
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetPostBySlugOptions, GetPostBySlugRequest, GetPostBySlugResponse, GetPostBySlugResponseNonNullableFields, GetPostMetricsRequest, GetPostMetricsResponse, GetPostMetricsResponseNonNullableFields, GetPostOptions, GetPostRequest, GetPostResponse, GetPostResponseNonNullableFields, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsOptions, GetTotalPostsRequest, GetTotalPostsResponse, GetTotalPostsResponseNonNullableFields, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsOptions, ListPostsRequest, ListPostsResponse, ListPostsResponseNonNullableFields, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Post, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostCreatedEnvelope, PostDeletedEnvelope, PostFieldField, PostLiked, PostLikedEnvelope, PostLikedInitiatorOneOf, PostOwnerChanged, PostTranslation, PostUnliked, PostUnlikedEnvelope, PostUnlikedInitiatorOneOf, PostUpdatedEnvelope, PostsQueryBuilder, PostsQueryResult, QueryPostCountStatsOptions, QueryPostCountStatsRequest, QueryPostCountStatsResponse, QueryPostCountStatsResponseNonNullableFields, QueryPostsOptions, QueryPostsRequest, QueryPostsResponse, QueryPostsResponseNonNullableFields, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, RestoreInfo, RichContent, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-post-posts.universal';
export declare const onPostUpdated: EventDefinition<PostUpdatedEnvelope, "wix.blog.v3.post_updated">;
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetPostBySlugOptions, GetPostBySlugRequest, GetPostBySlugResponse, GetPostBySlugResponseNonNullableFields, GetPostMetricsRequest, GetPostMetricsResponse, GetPostMetricsResponseNonNullableFields, GetPostOptions, GetPostRequest, GetPostResponse, GetPostResponseNonNullableFields, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsOptions, GetTotalPostsRequest, GetTotalPostsResponse, GetTotalPostsResponseNonNullableFields, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsOptions, ListPostsRequest, ListPostsResponse, ListPostsResponseNonNullableFields, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Post, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostCreatedEnvelope, PostDeletedEnvelope, PostFieldField, PostLiked, PostLikedEnvelope, PostLikedInitiatorOneOf, PostOwnerChanged, PostTranslation, PostUnliked, PostUnlikedEnvelope, PostUnlikedInitiatorOneOf, PostUpdatedEnvelope, PostsQueryBuilder, PostsQueryResult, QueryPostCountStatsOptions, QueryPostCountStatsRequest, QueryPostCountStatsResponse, QueryPostCountStatsResponseNonNullableFields, QueryPostsOptions, QueryPostsRequest, QueryPostsResponse, QueryPostsResponseNonNullableFields, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, RestoreInfo, RichContent, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-post-posts.universal';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookIdentityType = exports.VoteRole = exports.ViewRole = exports.ViewMode = exports.VerticalAlignment = exports.Type = exports.ThumbnailsAlignment = exports.TextAlignment = exports.Target = exports.Status = exports.Source = exports.SortOrder = exports.QueryPublicationsCountStatsRequestOrder = exports.PostFieldField = exports.PollLayoutType = exports.PollLayoutDirection = exports.PluginContainerDataAlignment = exports.Origin = exports.Orientation = exports.Order = exports.NullValue = exports.NodeType = exports.ModerationStatusStatus = exports.MapType = exports.LineStyle = exports.LayoutType = exports.InitialExpandedItems = exports.GetPostsSort = exports.GetPostTemplatesSort = exports.FontType = exports.Field = exports.Direction = exports.DecorationType = exports.Crop = exports.BackgroundType = exports.AppType = exports.Alignment = exports.onPostUnliked = exports.onPostLiked = exports.onPostDeleted = exports.onPostUpdated = exports.onPostCreated = exports.getTotalPosts = exports.queryPostCountStats = exports.getPostMetrics = exports.queryPosts = exports.listPosts = exports.getPostBySlug = exports.getPost = exports.__metadata = void 0;
exports.WebhookIdentityType = exports.VoteRole = exports.ViewRole = exports.ViewMode = exports.VerticalAlignment = exports.Type = exports.ThumbnailsAlignment = exports.TextAlignment = exports.Target = exports.Status = exports.Source = exports.SortOrder = exports.QueryPublicationsCountStatsRequestOrder = exports.PostFieldField = exports.PollLayoutType = exports.PollLayoutDirection = exports.PluginContainerDataAlignment = exports.Origin = exports.Orientation = exports.Order = exports.NullValue = exports.NodeType = exports.ModerationStatusStatus = exports.MapType = exports.LineStyle = exports.LayoutType = exports.InitialExpandedItems = exports.GetPostsSort = exports.GetPostTemplatesSort = exports.FontType = exports.Field = exports.Direction = exports.DecorationType = exports.Crop = exports.BackgroundType = exports.AppType = exports.Alignment = exports.onPostUpdated = exports.onPostUnliked = exports.onPostLiked = exports.onPostDeleted = exports.onPostCreated = exports.getTotalPosts = exports.queryPostCountStats = exports.getPostMetrics = exports.queryPosts = exports.listPosts = exports.getPostBySlug = exports.getPost = exports.__metadata = void 0;
exports.WidthType = exports.Width = void 0;

@@ -128,71 +128,2 @@ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");

]), ['entity.rich_content']))();
exports.onPostUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.post_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.firstPublishedDate' },
{ path: 'entity.lastPublishedDate' },
{ path: 'entity.richContent.metadata.createdTimestamp' },
{ path: 'entity.richContent.metadata.updatedTimestamp' },
{ path: 'entity.moderationDetails.submittedDate' },
{ path: 'entity.moderationDetails.moderationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: page_url_1.transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [
{ path: 'entity.heroImage' },
{ path: 'entity.coverMedia.image' },
{ path: 'entity.media.wixMedia.image' },
],
},
{
transformFn: bytes_1.transformRESTBytesToSDKBytes,
paths: [{ path: 'entity.richContentCompressed' }],
},
{
transformFn: video_1.transformRESTVideoToSDKVideo,
paths: [{ path: 'entity.coverMedia.video' }],
},
{
transformFn: float_1.transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.metrics.averageRating' },
{
path: 'entity.richContent.nodes.galleryData.items.image.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.thumbnail.duration',
},
{ path: 'entity.richContent.nodes.galleryData.options.item.ratio' },
{ path: 'entity.richContent.nodes.imageData.image.duration' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lat' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lng' },
{ path: 'entity.richContent.nodes.pollData.poll.image.duration' },
{
path: 'entity.richContent.nodes.pollData.poll.options.image.duration',
},
{
path: 'entity.richContent.nodes.pollData.design.poll.background.image.duration',
},
{ path: 'entity.richContent.nodes.appEmbedData.image.duration' },
{ path: 'entity.richContent.nodes.videoData.video.duration' },
{ path: 'entity.richContent.nodes.videoData.thumbnail.duration' },
{ path: 'entity.richContent.nodes.audioData.audio.duration' },
{ path: 'entity.richContent.nodes.audioData.coverImage.duration' },
],
},
{
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.wixMedia.videoV2' }],
},
]), ['entity.rich_content']))();
exports.onPostDeleted = (0, sdk_types_1.EventDefinition)('wix.blog.v3.post_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [

@@ -290,2 +221,71 @@ {

]), ['entity.rich_content']))();
exports.onPostUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.post_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.firstPublishedDate' },
{ path: 'entity.lastPublishedDate' },
{ path: 'entity.richContent.metadata.createdTimestamp' },
{ path: 'entity.richContent.metadata.updatedTimestamp' },
{ path: 'entity.moderationDetails.submittedDate' },
{ path: 'entity.moderationDetails.moderationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: page_url_1.transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [
{ path: 'entity.heroImage' },
{ path: 'entity.coverMedia.image' },
{ path: 'entity.media.wixMedia.image' },
],
},
{
transformFn: bytes_1.transformRESTBytesToSDKBytes,
paths: [{ path: 'entity.richContentCompressed' }],
},
{
transformFn: video_1.transformRESTVideoToSDKVideo,
paths: [{ path: 'entity.coverMedia.video' }],
},
{
transformFn: float_1.transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.metrics.averageRating' },
{
path: 'entity.richContent.nodes.galleryData.items.image.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.thumbnail.duration',
},
{ path: 'entity.richContent.nodes.galleryData.options.item.ratio' },
{ path: 'entity.richContent.nodes.imageData.image.duration' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lat' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lng' },
{ path: 'entity.richContent.nodes.pollData.poll.image.duration' },
{
path: 'entity.richContent.nodes.pollData.poll.options.image.duration',
},
{
path: 'entity.richContent.nodes.pollData.design.poll.background.image.duration',
},
{ path: 'entity.richContent.nodes.appEmbedData.image.duration' },
{ path: 'entity.richContent.nodes.videoData.video.duration' },
{ path: 'entity.richContent.nodes.videoData.thumbnail.duration' },
{ path: 'entity.richContent.nodes.audioData.audio.duration' },
{ path: 'entity.richContent.nodes.audioData.coverImage.duration' },
],
},
{
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.wixMedia.videoV2' }],
},
]), ['entity.rich_content']))();
var blog_v3_post_posts_universal_2 = require("./blog-v3-post-posts.universal");

@@ -292,0 +292,0 @@ Object.defineProperty(exports, "Alignment", { enumerable: true, get: function () { return blog_v3_post_posts_universal_2.Alignment; } });

@@ -5,6 +5,6 @@ import { getPost as publicGetPost, getPostBySlug as publicGetPostBySlug, listPosts as publicListPosts, queryPosts as publicQueryPosts, getPostMetrics as publicGetPostMetrics, queryPostCountStats as publicQueryPostCountStats, getTotalPosts as publicGetTotalPosts } from './blog-v3-post-posts.public';

import { onPostCreated as publicOnPostCreated } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
import { onPostDeleted as publicOnPostDeleted } from './blog-v3-post-posts.public';
import { onPostLiked as publicOnPostLiked } from './blog-v3-post-posts.public';
import { onPostUnliked as publicOnPostUnliked } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
export declare const getPost: MaybeContext<BuildRESTFunction<typeof publicGetPost> & typeof publicGetPost>;

@@ -23,8 +23,2 @@ export declare const getPostBySlug: MaybeContext<BuildRESTFunction<typeof publicGetPostBySlug> & typeof publicGetPostBySlug>;

export declare const onPostCreated: ReturnType<typeof createEventModule<_publicOnPostCreatedType>>;
export { publicOnPostUpdated };
export type _publicOnPostUpdatedType = typeof publicOnPostUpdated;
/**
* Triggered when a post is updated.
*/
export declare const onPostUpdated: ReturnType<typeof createEventModule<_publicOnPostUpdatedType>>;
export { publicOnPostDeleted };

@@ -48,3 +42,9 @@ export type _publicOnPostDeletedType = typeof publicOnPostDeleted;

export declare const onPostUnliked: ReturnType<typeof createEventModule<_publicOnPostUnlikedType>>;
export { publicOnPostUpdated };
export type _publicOnPostUpdatedType = typeof publicOnPostUpdated;
/**
* Triggered when a post is updated.
*/
export declare const onPostUpdated: ReturnType<typeof createEventModule<_publicOnPostUpdatedType>>;
export { NodeType, WidthType, PluginContainerDataAlignment, Type, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, ModerationStatusStatus, WebhookIdentityType, GetPostsSort, PostFieldField, GetPostTemplatesSort, Origin, Status, Field, SortOrder, QueryPublicationsCountStatsRequestOrder, Order, } from './blog-v3-post-posts.universal';
export { Post, CoverMedia, CoverMediaMediaOneOf, PostCountInfo, Metrics, SeoSchema, Keyword, Tag, Settings, RichContent, Node, NodeDataOneOf, NodeStyle, ButtonData, Border, Colors, PluginContainerData, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Spoiler, Height, Styles, Link, LinkDataOneOf, Rel, CodeBlockData, TextStyle, DividerData, FileData, FileSource, FileSourceDataOneOf, PDFSettings, GalleryData, V1Media, Image, Video, Item, ItemDataOneOf, GalleryOptions, Layout, ItemStyle, Thumbnails, GIFData, GIF, HeadingData, HTMLData, HTMLDataDataOneOf, ImageData, LinkPreviewData, MapData, MapSettings, ParagraphData, PollData, Permissions, Option, PollSettings, PollLayout, OptionLayout, Gradient, Background, BackgroundBackgroundOneOf, PollDesign, OptionDesign, Poll, PollDataLayout, Design, TextData, Decoration, DecorationDataOneOf, AnchorData, ColorData, LinkData, MentionData, FontSizeData, SpoilerData, AppEmbedData, AppEmbedDataAppDataOneOf, BookingData, EventData, VideoData, PlaybackOptions, EmbedData, Oembed, CollapsibleListData, TableData, Dimensions, TableCellData, CellStyle, BorderColors, ListValue, AudioData, OrderedListData, BulletedListData, BlockquoteData, CaptionData, Metadata, DocumentStyle, TextNodeStyle, ModerationDetails, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, PostTranslation, OldBlogMigratedEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, ListDemoPostsRequest, BlogPaging, ListDemoPostsResponse, MetaData, ListTemplatesRequest, ListTemplatesResponse, Category, CategoryTranslation, GetTemplateRequest, GetTemplateResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, DraftPost, DraftPostTranslation, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, PostLiked, PostLikedInitiatorOneOf, PostUnliked, PostUnlikedInitiatorOneOf, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostOwnerChanged, InitialPostsCopied, GetPostRequest, GetPostResponse, GetPostBySlugRequest, GetPostBySlugResponse, ListPostsRequest, ListPostsResponse, QueryPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryPostsResponse, PagingMetadataV2, Cursors, GetPostMetricsRequest, GetPostMetricsResponse, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, ViewPostRequest, ViewPostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, UnlikePostResponse, PinPostRequest, PinPostResponse, UnpinPostRequest, UnpinPostResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, Reactions, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsResponse, PeriodPublicationsCount, QueryPostCountStatsRequest, QueryPostCountStatsResponse, PeriodPostCount, GetTotalPublicationsRequest, GetTotalPublicationsResponse, GetTotalPostsRequest, GetTotalPostsResponse, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, GetPostResponseNonNullableFields, GetPostBySlugResponseNonNullableFields, ListPostsResponseNonNullableFields, QueryPostsResponseNonNullableFields, GetPostMetricsResponseNonNullableFields, QueryPostCountStatsResponseNonNullableFields, GetTotalPostsResponseNonNullableFields, BaseEventMetadata, EventMetadata, PostCreatedEnvelope, PostUpdatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, GetPostOptions, GetPostBySlugOptions, ListPostsOptions, QueryPostsOptions, PostsQueryResult, PostsQueryBuilder, QueryPostCountStatsOptions, GetTotalPostsOptions, } from './blog-v3-post-posts.universal';
export { Post, CoverMedia, CoverMediaMediaOneOf, FocalPoint, PostCountInfo, Metrics, SeoSchema, Keyword, Tag, Settings, RichContent, Node, NodeDataOneOf, NodeStyle, ButtonData, Border, Colors, PluginContainerData, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Spoiler, Height, Styles, Link, LinkDataOneOf, Rel, CodeBlockData, TextStyle, DividerData, FileData, FileSource, FileSourceDataOneOf, PDFSettings, GalleryData, V1Media, Image, Video, Item, ItemDataOneOf, GalleryOptions, Layout, ItemStyle, Thumbnails, GIFData, GIF, HeadingData, HTMLData, HTMLDataDataOneOf, ImageData, LinkPreviewData, MapData, MapSettings, ParagraphData, PollData, Permissions, Option, PollSettings, PollLayout, OptionLayout, Gradient, Background, BackgroundBackgroundOneOf, PollDesign, OptionDesign, Poll, PollDataLayout, Design, TextData, Decoration, DecorationDataOneOf, AnchorData, ColorData, LinkData, MentionData, FontSizeData, SpoilerData, AppEmbedData, AppEmbedDataAppDataOneOf, BookingData, EventData, VideoData, PlaybackOptions, EmbedData, Oembed, CollapsibleListData, TableData, Dimensions, TableCellData, CellStyle, BorderColors, ListValue, AudioData, OrderedListData, BulletedListData, BlockquoteData, CaptionData, Metadata, DocumentStyle, TextNodeStyle, ModerationDetails, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, PostTranslation, OldBlogMigratedEvent, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, ListDemoPostsRequest, BlogPaging, ListDemoPostsResponse, MetaData, ListTemplatesRequest, ListTemplatesResponse, Category, CategoryTranslation, GetTemplateRequest, GetTemplateResponse, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, DraftPost, DraftPostTranslation, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, PostLiked, PostLikedInitiatorOneOf, PostUnliked, PostUnlikedInitiatorOneOf, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostOwnerChanged, InitialPostsCopied, GetPostRequest, GetPostResponse, GetPostBySlugRequest, GetPostBySlugResponse, ListPostsRequest, ListPostsResponse, QueryPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryPostsResponse, PagingMetadataV2, Cursors, GetPostMetricsRequest, GetPostMetricsResponse, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, ViewPostRequest, ViewPostResponse, LikePostRequest, LikePostResponse, UnlikePostRequest, UnlikePostResponse, PinPostRequest, PinPostResponse, UnpinPostRequest, UnpinPostResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, Reactions, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsResponse, PeriodPublicationsCount, QueryPostCountStatsRequest, QueryPostCountStatsResponse, PeriodPostCount, GetTotalPublicationsRequest, GetTotalPublicationsResponse, GetTotalPostsRequest, GetTotalPostsResponse, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, GetPostResponseNonNullableFields, GetPostBySlugResponseNonNullableFields, ListPostsResponseNonNullableFields, QueryPostsResponseNonNullableFields, GetPostMetricsResponseNonNullableFields, QueryPostCountStatsResponseNonNullableFields, GetTotalPostsResponseNonNullableFields, BaseEventMetadata, EventMetadata, PostCreatedEnvelope, PostDeletedEnvelope, PostLikedEnvelope, PostUnlikedEnvelope, PostUpdatedEnvelope, GetPostOptions, GetPostBySlugOptions, ListPostsOptions, QueryPostsOptions, PostsQueryResult, PostsQueryBuilder, QueryPostCountStatsOptions, GetTotalPostsOptions, } from './blog-v3-post-posts.universal';

@@ -5,6 +5,6 @@ import { getPost as publicGetPost, getPostBySlug as publicGetPostBySlug, listPosts as publicListPosts, queryPosts as publicQueryPosts, getPostMetrics as publicGetPostMetrics, queryPostCountStats as publicQueryPostCountStats, getTotalPosts as publicGetTotalPosts, } from './blog-v3-post-posts.public';

import { onPostCreated as publicOnPostCreated } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
import { onPostDeleted as publicOnPostDeleted } from './blog-v3-post-posts.public';
import { onPostLiked as publicOnPostLiked } from './blog-v3-post-posts.public';
import { onPostUnliked as publicOnPostUnliked } from './blog-v3-post-posts.public';
import { onPostUpdated as publicOnPostUpdated } from './blog-v3-post-posts.public';
export const getPost = /*#__PURE__*/ createRESTModule(publicGetPost);

@@ -22,7 +22,2 @@ export const getPostBySlug = /*#__PURE__*/ createRESTModule(publicGetPostBySlug);

export const onPostCreated = createEventModule(publicOnPostCreated);
export { publicOnPostUpdated };
/**
* Triggered when a post is updated.
*/
export const onPostUpdated = createEventModule(publicOnPostUpdated);
export { publicOnPostDeleted };

@@ -43,3 +38,8 @@ /**

export const onPostUnliked = createEventModule(publicOnPostUnliked);
export { publicOnPostUpdated };
/**
* Triggered when a post is updated.
*/
export const onPostUpdated = createEventModule(publicOnPostUpdated);
export { NodeType, WidthType, PluginContainerDataAlignment, Type, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, ModerationStatusStatus, WebhookIdentityType, GetPostsSort, PostFieldField, GetPostTemplatesSort, Origin, Status, Field, SortOrder, QueryPublicationsCountStatsRequestOrder, Order, } from './blog-v3-post-posts.universal';
//# sourceMappingURL=blog-v3-post-posts.context.js.map

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

export declare const onPostCreated: EventDefinition<PostCreatedEnvelope, "wix.blog.v3.post_created">;
export declare const onPostUpdated: EventDefinition<PostUpdatedEnvelope, "wix.blog.v3.post_updated">;
export declare const onPostDeleted: EventDefinition<PostDeletedEnvelope, "wix.blog.v3.post_deleted">;
export declare const onPostLiked: EventDefinition<PostLikedEnvelope, "wix.blog.v3.post_liked">;
export declare const onPostUnliked: EventDefinition<PostUnlikedEnvelope, "wix.blog.v3.post_unliked">;
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetPostBySlugOptions, GetPostBySlugRequest, GetPostBySlugResponse, GetPostBySlugResponseNonNullableFields, GetPostMetricsRequest, GetPostMetricsResponse, GetPostMetricsResponseNonNullableFields, GetPostOptions, GetPostRequest, GetPostResponse, GetPostResponseNonNullableFields, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsOptions, GetTotalPostsRequest, GetTotalPostsResponse, GetTotalPostsResponseNonNullableFields, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsOptions, ListPostsRequest, ListPostsResponse, ListPostsResponseNonNullableFields, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Post, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostCreatedEnvelope, PostDeletedEnvelope, PostFieldField, PostLiked, PostLikedEnvelope, PostLikedInitiatorOneOf, PostOwnerChanged, PostTranslation, PostUnliked, PostUnlikedEnvelope, PostUnlikedInitiatorOneOf, PostUpdatedEnvelope, PostsQueryBuilder, PostsQueryResult, QueryPostCountStatsOptions, QueryPostCountStatsRequest, QueryPostCountStatsResponse, QueryPostCountStatsResponseNonNullableFields, QueryPostsOptions, QueryPostsRequest, QueryPostsResponse, QueryPostsResponseNonNullableFields, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, RestoreInfo, RichContent, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-post-posts.universal';
export declare const onPostUpdated: EventDefinition<PostUpdatedEnvelope, "wix.blog.v3.post_updated">;
export { ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkGetPostMetricsRequest, BulkGetPostMetricsResponse, BulkGetPostReactionsRequest, BulkGetPostReactionsResponse, BulletedListData, ButtonData, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertDraftJsToRichContentRequest, ConvertDraftJsToRichContentResponse, ConvertRichContentToDraftJsRequest, ConvertRichContentToDraftJsResponse, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostFromTemplateRequest, CreateDraftPostFromTemplateResponse, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftPost, DraftPostTranslation, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FocalPoint, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetPostBySlugOptions, GetPostBySlugRequest, GetPostBySlugResponse, GetPostBySlugResponseNonNullableFields, GetPostMetricsRequest, GetPostMetricsResponse, GetPostMetricsResponseNonNullableFields, GetPostOptions, GetPostRequest, GetPostResponse, GetPostResponseNonNullableFields, GetPostTemplatesSort, GetPostsSort, GetTemplateRequest, GetTemplateResponse, GetTotalLikesPerMemberRequest, GetTotalLikesPerMemberResponse, GetTotalPostsOptions, GetTotalPostsRequest, GetTotalPostsResponse, GetTotalPostsResponseNonNullableFields, GetTotalPublicationsRequest, GetTotalPublicationsResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialExpandedItems, InitialPostsCopied, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutType, LikePostRequest, LikePostResponse, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDemoPostsRequest, ListDemoPostsResponse, ListPostsArchiveRequest, ListPostsArchiveResponse, ListPostsOptions, ListPostsRequest, ListPostsResponse, ListPostsResponseNonNullableFields, ListTemplatesRequest, ListTemplatesResponse, ListValue, MapData, MapSettings, MapType, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, Metrics, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, OldBlogMigratedEvent, Option, OptionDesign, OptionLayout, Order, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, PeriodPostCount, PeriodPublicationsCount, Permissions, PinPostRequest, PinPostResponse, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Post, PostCountInfo, PostCountersUpdated, PostCountersUpdatedInitiatorOneOf, PostCreatedEnvelope, PostDeletedEnvelope, PostFieldField, PostLiked, PostLikedEnvelope, PostLikedInitiatorOneOf, PostOwnerChanged, PostTranslation, PostUnliked, PostUnlikedEnvelope, PostUnlikedInitiatorOneOf, PostUpdatedEnvelope, PostsQueryBuilder, PostsQueryResult, QueryPostCountStatsOptions, QueryPostCountStatsRequest, QueryPostCountStatsResponse, QueryPostCountStatsResponseNonNullableFields, QueryPostsOptions, QueryPostsRequest, QueryPostsResponse, QueryPostsResponseNonNullableFields, QueryPublicationsCountStatsRequest, QueryPublicationsCountStatsRequestOrder, QueryPublicationsCountStatsResponse, Reactions, Rel, RestoreInfo, RichContent, SendActionEventRequest, SendActionEventRequestActionOneOf, SendActionEventResponse, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, UnlikePostRequest, UnlikePostResponse, UnpinPostRequest, UnpinPostResponse, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewPostRequest, ViewPostResponse, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-post-posts.universal';

@@ -117,71 +117,2 @@ import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';

]), ['entity.rich_content']))();
export const onPostUpdated = EventDefinition('wix.blog.v3.post_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.firstPublishedDate' },
{ path: 'entity.lastPublishedDate' },
{ path: 'entity.richContent.metadata.createdTimestamp' },
{ path: 'entity.richContent.metadata.updatedTimestamp' },
{ path: 'entity.moderationDetails.submittedDate' },
{ path: 'entity.moderationDetails.moderationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [
{ path: 'entity.heroImage' },
{ path: 'entity.coverMedia.image' },
{ path: 'entity.media.wixMedia.image' },
],
},
{
transformFn: transformRESTBytesToSDKBytes,
paths: [{ path: 'entity.richContentCompressed' }],
},
{
transformFn: transformRESTVideoToSDKVideo,
paths: [{ path: 'entity.coverMedia.video' }],
},
{
transformFn: transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.metrics.averageRating' },
{
path: 'entity.richContent.nodes.galleryData.items.image.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.thumbnail.duration',
},
{ path: 'entity.richContent.nodes.galleryData.options.item.ratio' },
{ path: 'entity.richContent.nodes.imageData.image.duration' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lat' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lng' },
{ path: 'entity.richContent.nodes.pollData.poll.image.duration' },
{
path: 'entity.richContent.nodes.pollData.poll.options.image.duration',
},
{
path: 'entity.richContent.nodes.pollData.design.poll.background.image.duration',
},
{ path: 'entity.richContent.nodes.appEmbedData.image.duration' },
{ path: 'entity.richContent.nodes.videoData.video.duration' },
{ path: 'entity.richContent.nodes.videoData.thumbnail.duration' },
{ path: 'entity.richContent.nodes.audioData.audio.duration' },
{ path: 'entity.richContent.nodes.audioData.coverImage.duration' },
],
},
{
transformFn: transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.wixMedia.videoV2' }],
},
]), ['entity.rich_content']))();
export const onPostDeleted = EventDefinition('wix.blog.v3.post_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [

@@ -279,3 +210,72 @@ {

]), ['entity.rich_content']))();
export const onPostUpdated = EventDefinition('wix.blog.v3.post_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.firstPublishedDate' },
{ path: 'entity.lastPublishedDate' },
{ path: 'entity.richContent.metadata.createdTimestamp' },
{ path: 'entity.richContent.metadata.updatedTimestamp' },
{ path: 'entity.moderationDetails.submittedDate' },
{ path: 'entity.moderationDetails.moderationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: transformRESTPageURLToSDKPageURL,
paths: [{ path: 'entity.url' }, { path: 'entity.translations.url' }],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [
{ path: 'entity.heroImage' },
{ path: 'entity.coverMedia.image' },
{ path: 'entity.media.wixMedia.image' },
],
},
{
transformFn: transformRESTBytesToSDKBytes,
paths: [{ path: 'entity.richContentCompressed' }],
},
{
transformFn: transformRESTVideoToSDKVideo,
paths: [{ path: 'entity.coverMedia.video' }],
},
{
transformFn: transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.metrics.averageRating' },
{
path: 'entity.richContent.nodes.galleryData.items.image.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.media.duration',
},
{
path: 'entity.richContent.nodes.galleryData.items.video.thumbnail.duration',
},
{ path: 'entity.richContent.nodes.galleryData.options.item.ratio' },
{ path: 'entity.richContent.nodes.imageData.image.duration' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lat' },
{ path: 'entity.richContent.nodes.mapData.mapSettings.lng' },
{ path: 'entity.richContent.nodes.pollData.poll.image.duration' },
{
path: 'entity.richContent.nodes.pollData.poll.options.image.duration',
},
{
path: 'entity.richContent.nodes.pollData.design.poll.background.image.duration',
},
{ path: 'entity.richContent.nodes.appEmbedData.image.duration' },
{ path: 'entity.richContent.nodes.videoData.video.duration' },
{ path: 'entity.richContent.nodes.videoData.thumbnail.duration' },
{ path: 'entity.richContent.nodes.audioData.audio.duration' },
{ path: 'entity.richContent.nodes.audioData.coverImage.duration' },
],
},
{
transformFn: transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.wixMedia.videoV2' }],
},
]), ['entity.rich_content']))();
export { Alignment, AppType, BackgroundType, Crop, DecorationType, Direction, Field, FontType, GetPostTemplatesSort, GetPostsSort, InitialExpandedItems, LayoutType, LineStyle, MapType, ModerationStatusStatus, NodeType, NullValue, Order, Orientation, Origin, PluginContainerDataAlignment, PollLayoutDirection, PollLayoutType, PostFieldField, QueryPublicationsCountStatsRequestOrder, SortOrder, Source, Status, Target, TextAlignment, ThumbnailsAlignment, Type, VerticalAlignment, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, } from './blog-v3-post-posts.universal';
//# sourceMappingURL=blog-v3-post-posts.public.js.map
{
"name": "@wix/blog_posts",
"version": "1.0.59",
"version": "1.0.60",
"publishConfig": {

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

},
"falconPackageHash": "830a8d7714a75c5e57ba402f9307ba293fa7847af427499cc91187bd"
"falconPackageHash": "7de4b8ed95a2159fee5be5ec1cff3241934715ddf92f8857c5b0c634"
}

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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