@wix/blog_draft-posts
Advanced tools
Comparing version 1.0.52 to 1.0.53
@@ -5,4 +5,4 @@ import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftCreated as publicOnDraftCreated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftDeleted as publicOnDraftDeleted } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
export declare const createDraftPost: MaybeContext<BuildRESTFunction<typeof publicCreateDraftPost> & typeof publicCreateDraftPost>; | ||
@@ -28,2 +28,8 @@ export declare const bulkCreateDraftPosts: MaybeContext<BuildRESTFunction<typeof publicBulkCreateDraftPosts> & typeof publicBulkCreateDraftPosts>; | ||
export declare const onDraftCreated: ReturnType<typeof createEventModule<_publicOnDraftCreatedType>>; | ||
export { publicOnDraftUpdated }; | ||
export type _publicOnDraftUpdatedType = typeof publicOnDraftUpdated; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export declare const onDraftUpdated: ReturnType<typeof createEventModule<_publicOnDraftUpdatedType>>; | ||
export { publicOnDraftDeleted }; | ||
@@ -35,9 +41,3 @@ export type _publicOnDraftDeletedType = typeof publicOnDraftDeleted; | ||
export declare const onDraftDeleted: ReturnType<typeof createEventModule<_publicOnDraftDeletedType>>; | ||
export { publicOnDraftUpdated }; | ||
export type _publicOnDraftUpdatedType = typeof publicOnDraftUpdated; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export declare const onDraftUpdated: ReturnType<typeof createEventModule<_publicOnDraftUpdatedType>>; | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, TotalDraftPostsGroupingField, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, } from './blog-v3-draft-draft-posts.universal'; | ||
export { DraftPost, CoverMedia, CoverMediaMediaOneOf, 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, SeoSchema, Keyword, Tag, Settings, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, DraftPostTranslation, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, TotalDraftPosts, InitialDraftPostsCopied, CreateDraftPostRequest, CreateDraftPostResponse, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkDraftPostResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateDraftPostsRequest, MaskedDraftPosts, BulkUpdateDraftPostsResponse, DraftPostOwnerChanged, ListDeletedDraftPostsRequest, BlogPaging, ListDeletedDraftPostsResponse, MetaData, GetDraftPostRequest, GetDraftPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostRequest, UpdateDraftPostResponse, DeleteDraftPostRequest, DeleteDraftPostResponse, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, ListDraftPostsRequest, ListDraftPostsResponse, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, QueryDraftPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryDraftPostsResponse, PagingMetadataV2, Cursors, PublishDraftPostRequest, PublishDraftPostResponse, UnpublishPostRequest, UnpublishPostResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, TranslateCategoryRequest, TranslateCategoryResponse, Category, CategoryTranslation, TranslateDraftRequest, TranslateDraftResponse, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, PostAmountByLanguage, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RejectDraftPostRequest, RejectDraftPostResponse, ApproveDraftPostRequest, ApproveDraftPostResponse, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, CreateDraftPostResponseNonNullableFields, BulkCreateDraftPostsResponseNonNullableFields, BulkUpdateDraftPostsResponseNonNullableFields, ListDeletedDraftPostsResponseNonNullableFields, GetDraftPostResponseNonNullableFields, UpdateDraftPostResponseNonNullableFields, BulkDeleteDraftPostsResponseNonNullableFields, ListDraftPostsResponseNonNullableFields, GetDeletedDraftPostResponseNonNullableFields, RestoreFromTrashBinResponseNonNullableFields, QueryDraftPostsResponseNonNullableFields, PublishDraftPostResponseNonNullableFields, BaseEventMetadata, EventMetadata, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftUpdatedEnvelope, CreateDraftPostOptions, BulkCreateDraftPostsOptions, BulkUpdateDraftPostsOptions, ListDeletedDraftPostsOptions, GetDraftPostOptions, UpdateDraftPost, UpdateDraftPostOptions, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, ListDraftPostsOptions, QueryDraftPostsOptions, DraftPostsQueryResult, DraftPostsQueryBuilder, } from './blog-v3-draft-draft-posts.universal'; | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, TotalDraftPostsGroupingField, } from './blog-v3-draft-draft-posts.universal'; | ||
export { DraftPost, CoverMedia, CoverMediaMediaOneOf, 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, SeoSchema, Keyword, Tag, Settings, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, DraftPostTranslation, InitialDraftPostsCopied, CreateDraftPostRequest, CreateDraftPostResponse, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkDraftPostResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateDraftPostsRequest, MaskedDraftPosts, BulkUpdateDraftPostsResponse, DraftPostOwnerChanged, ListDeletedDraftPostsRequest, BlogPaging, ListDeletedDraftPostsResponse, MetaData, GetDraftPostRequest, GetDraftPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostRequest, UpdateDraftPostResponse, DeleteDraftPostRequest, DeleteDraftPostResponse, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, ListDraftPostsRequest, ListDraftPostsResponse, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, QueryDraftPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryDraftPostsResponse, PagingMetadataV2, Cursors, PublishDraftPostRequest, PublishDraftPostResponse, UnpublishPostRequest, UnpublishPostResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, TotalDraftPosts, TranslateCategoryRequest, TranslateCategoryResponse, Category, CategoryTranslation, TranslateDraftRequest, TranslateDraftResponse, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, PostAmountByLanguage, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RejectDraftPostRequest, RejectDraftPostResponse, ApproveDraftPostRequest, ApproveDraftPostResponse, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, CreateDraftPostResponseNonNullableFields, BulkCreateDraftPostsResponseNonNullableFields, BulkUpdateDraftPostsResponseNonNullableFields, ListDeletedDraftPostsResponseNonNullableFields, GetDraftPostResponseNonNullableFields, UpdateDraftPostResponseNonNullableFields, BulkDeleteDraftPostsResponseNonNullableFields, ListDraftPostsResponseNonNullableFields, GetDeletedDraftPostResponseNonNullableFields, RestoreFromTrashBinResponseNonNullableFields, QueryDraftPostsResponseNonNullableFields, PublishDraftPostResponseNonNullableFields, BaseEventMetadata, EventMetadata, DraftCreatedEnvelope, DraftUpdatedEnvelope, DraftDeletedEnvelope, CreateDraftPostOptions, BulkCreateDraftPostsOptions, BulkUpdateDraftPostsOptions, ListDeletedDraftPostsOptions, GetDraftPostOptions, UpdateDraftPost, UpdateDraftPostOptions, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, ListDraftPostsOptions, QueryDraftPostsOptions, DraftPostsQueryResult, DraftPostsQueryBuilder, } from './blog-v3-draft-draft-posts.universal'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = exports.onDraftUpdated = exports.publicOnDraftUpdated = exports.onDraftDeleted = exports.publicOnDraftDeleted = exports.onDraftCreated = exports.publicOnDraftCreated = exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = void 0; | ||
exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.TotalDraftPostsGroupingField = exports.ModerationStatusStatus = void 0; | ||
exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = exports.onDraftDeleted = exports.publicOnDraftDeleted = exports.onDraftUpdated = exports.publicOnDraftUpdated = exports.onDraftCreated = exports.publicOnDraftCreated = exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = void 0; | ||
exports.TotalDraftPostsGroupingField = exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.ModerationStatusStatus = void 0; | ||
const blog_v3_draft_draft_posts_public_1 = require("./blog-v3-draft-draft-posts.public"); | ||
@@ -11,5 +11,5 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules"); | ||
const blog_v3_draft_draft_posts_public_3 = require("./blog-v3-draft-draft-posts.public"); | ||
Object.defineProperty(exports, "publicOnDraftDeleted", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_public_3.onDraftDeleted; } }); | ||
Object.defineProperty(exports, "publicOnDraftUpdated", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_public_3.onDraftUpdated; } }); | ||
const blog_v3_draft_draft_posts_public_4 = require("./blog-v3-draft-draft-posts.public"); | ||
Object.defineProperty(exports, "publicOnDraftUpdated", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_public_4.onDraftUpdated; } }); | ||
Object.defineProperty(exports, "publicOnDraftDeleted", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_public_4.onDraftDeleted; } }); | ||
exports.createDraftPost = (0, rest_modules_1.createRESTModule)(blog_v3_draft_draft_posts_public_1.createDraftPost); | ||
@@ -34,9 +34,9 @@ exports.bulkCreateDraftPosts = (0, rest_modules_1.createRESTModule)(blog_v3_draft_draft_posts_public_1.bulkCreateDraftPosts); | ||
/** | ||
* Triggered when a draft post is deleted. | ||
* Triggered when a draft post is updated. | ||
*/ | ||
exports.onDraftDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_draft_draft_posts_public_3.onDraftDeleted); | ||
exports.onDraftUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_draft_draft_posts_public_3.onDraftUpdated); | ||
/** | ||
* Triggered when a draft post is updated. | ||
* Triggered when a draft post is deleted. | ||
*/ | ||
exports.onDraftUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_draft_draft_posts_public_4.onDraftUpdated); | ||
exports.onDraftDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_draft_draft_posts_public_4.onDraftDeleted); | ||
var blog_v3_draft_draft_posts_universal_1 = require("./blog-v3-draft-draft-posts.universal"); | ||
@@ -74,3 +74,2 @@ Object.defineProperty(exports, "Origin", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.Origin; } }); | ||
Object.defineProperty(exports, "ModerationStatusStatus", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.ModerationStatusStatus; } }); | ||
Object.defineProperty(exports, "TotalDraftPostsGroupingField", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.TotalDraftPostsGroupingField; } }); | ||
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.Type; } }); | ||
@@ -82,2 +81,3 @@ Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.Field; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.WebhookIdentityType; } }); | ||
Object.defineProperty(exports, "TotalDraftPostsGroupingField", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_1.TotalDraftPostsGroupingField; } }); | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map |
@@ -156,4 +156,4 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onDraftCreated: EventDefinition<DraftCreatedEnvelope, "wix.blog.v3.draft_created">; | ||
export declare const onDraftUpdated: EventDefinition<DraftUpdatedEnvelope, "wix.blog.v3.draft_updated">; | ||
export declare const onDraftDeleted: EventDefinition<DraftDeletedEnvelope, "wix.blog.v3.draft_deleted">; | ||
export declare const onDraftUpdated: EventDefinition<DraftUpdatedEnvelope, "wix.blog.v3.draft_updated">; | ||
export { Action, ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateDraftPostsOptions, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkCreateDraftPostsResponseNonNullableFields, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, BulkDeleteDraftPostsResponseNonNullableFields, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsRequest, BulkUpdateDraftPostsResponse, BulkUpdateDraftPostsResponseNonNullableFields, BulletedListData, ButtonData, ButtonDataType, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostOptions, CreateDraftPostRequest, CreateDraftPostResponse, CreateDraftPostResponseNonNullableFields, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeleteDraftPostOptions, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftPost, DraftPostOwnerChanged, DraftPostTranslation, DraftPostsQueryBuilder, DraftPostsQueryResult, DraftUpdatedEnvelope, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, GetDeletedDraftPostResponseNonNullableFields, GetDraftPostOptions, GetDraftPostRequest, GetDraftPostResponse, GetDraftPostResponseNonNullableFields, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialDraftPostsCopied, InitialExpandedItems, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDeletedDraftPostsOptions, ListDeletedDraftPostsRequest, ListDeletedDraftPostsResponse, ListDeletedDraftPostsResponseNonNullableFields, ListDraftPostsOptions, ListDraftPostsRequest, ListDraftPostsResponse, ListDraftPostsResponseNonNullableFields, ListValue, MapData, MapSettings, MapType, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, PostAmountByLanguage, PublishDraftPostRequest, PublishDraftPostResponse, PublishDraftPostResponseNonNullableFields, QueryDraftPostsOptions, QueryDraftPostsRequest, QueryDraftPostsResponse, QueryDraftPostsResponseNonNullableFields, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, RestoreFromTrashBinResponseNonNullableFields, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RichContent, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TotalDraftPosts, TotalDraftPostsGroupingField, TranslateCategoryRequest, TranslateCategoryResponse, TranslateDraftRequest, TranslateDraftResponse, Type, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPost, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostOptions, UpdateDraftPostRequest, UpdateDraftPostResponse, UpdateDraftPostResponseNonNullableFields, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-draft-draft-posts.universal'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VerticalAlignment = exports.Type = exports.TotalDraftPostsGroupingField = exports.ThumbnailsAlignment = exports.TextAlignment = exports.Target = exports.Status = exports.Source = exports.SortOrder = exports.PollLayoutType = exports.PollLayoutDirection = exports.PluginContainerDataAlignment = exports.Origin = exports.Orientation = exports.NullValue = exports.NodeType = exports.ModerationStatusStatus = exports.MapType = exports.LineStyle = exports.LayoutType = exports.InitialExpandedItems = exports.GetDraftPostsSort = exports.FontType = exports.Field = exports.Direction = exports.DecorationType = exports.Crop = exports.ButtonDataType = exports.BackgroundType = exports.AppType = exports.Alignment = exports.Action = exports.onDraftUpdated = exports.onDraftDeleted = exports.onDraftCreated = exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = exports.__metadata = void 0; | ||
exports.VerticalAlignment = exports.Type = exports.TotalDraftPostsGroupingField = exports.ThumbnailsAlignment = exports.TextAlignment = exports.Target = exports.Status = exports.Source = exports.SortOrder = exports.PollLayoutType = exports.PollLayoutDirection = exports.PluginContainerDataAlignment = exports.Origin = exports.Orientation = exports.NullValue = exports.NodeType = exports.ModerationStatusStatus = exports.MapType = exports.LineStyle = exports.LayoutType = exports.InitialExpandedItems = exports.GetDraftPostsSort = exports.FontType = exports.Field = exports.Direction = exports.DecorationType = exports.Crop = exports.ButtonDataType = exports.BackgroundType = exports.AppType = exports.Alignment = exports.Action = exports.onDraftDeleted = exports.onDraftUpdated = exports.onDraftCreated = exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = exports.__metadata = void 0; | ||
exports.WidthType = exports.Width = exports.WebhookIdentityType = exports.VoteRole = exports.ViewRole = exports.ViewMode = void 0; | ||
@@ -166,2 +166,68 @@ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys"); | ||
])))(); | ||
exports.onDraftUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.draft_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
{ | ||
transformFn: image_1.transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.heroImage' }, | ||
{ path: 'entity.coverMedia.image' }, | ||
{ path: 'entity.media.wixMedia.image' }, | ||
], | ||
}, | ||
{ | ||
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.editedDate' }, | ||
{ path: 'entity.scheduledPublishDate' }, | ||
{ path: 'entity.firstPublishedDate' }, | ||
{ path: 'entity.createdDate' }, | ||
{ 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: video_1.transformRESTVideoToSDKVideo, | ||
paths: [{ path: 'entity.coverMedia.video' }], | ||
}, | ||
{ | ||
transformFn: float_1.transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ | ||
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' }], | ||
}, | ||
])))(); | ||
exports.onDraftDeleted = (0, sdk_types_1.EventDefinition)('wix.blog.v3.draft_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
@@ -244,68 +310,2 @@ { | ||
])))(); | ||
exports.onDraftUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.v3.draft_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
{ | ||
transformFn: image_1.transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.heroImage' }, | ||
{ path: 'entity.coverMedia.image' }, | ||
{ path: 'entity.media.wixMedia.image' }, | ||
], | ||
}, | ||
{ | ||
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.editedDate' }, | ||
{ path: 'entity.scheduledPublishDate' }, | ||
{ path: 'entity.firstPublishedDate' }, | ||
{ path: 'entity.createdDate' }, | ||
{ 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: video_1.transformRESTVideoToSDKVideo, | ||
paths: [{ path: 'entity.coverMedia.video' }], | ||
}, | ||
{ | ||
transformFn: float_1.transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ | ||
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' }], | ||
}, | ||
])))(); | ||
var blog_v3_draft_draft_posts_universal_2 = require("./blog-v3-draft-draft-posts.universal"); | ||
@@ -312,0 +312,0 @@ Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return blog_v3_draft_draft_posts_universal_2.Action; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.TotalDraftPostsGroupingField = exports.ModerationStatusStatus = exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = void 0; | ||
exports.TotalDraftPostsGroupingField = exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.ModerationStatusStatus = exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = void 0; | ||
var Origin; | ||
@@ -392,9 +392,2 @@ (function (Origin) { | ||
})(ModerationStatusStatus || (exports.ModerationStatusStatus = ModerationStatusStatus = {})); | ||
var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (exports.TotalDraftPostsGroupingField = TotalDraftPostsGroupingField = {})); | ||
var Type; | ||
@@ -469,2 +462,9 @@ (function (Type) { | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (exports.TotalDraftPostsGroupingField = TotalDraftPostsGroupingField = {})); | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.types.js.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.TotalDraftPostsGroupingField = exports.ModerationStatusStatus = exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = void 0; | ||
exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = exports.TotalDraftPostsGroupingField = exports.WebhookIdentityType = exports.SortOrder = exports.GetDraftPostsSort = exports.Action = exports.Field = exports.Type = exports.ModerationStatusStatus = exports.Status = 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.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.Origin = void 0; | ||
exports.publishDraftPost = exports.queryDraftPosts = void 0; | ||
@@ -431,9 +431,2 @@ const transform_error_1 = require("@wix/sdk-runtime/transform-error"); | ||
})(ModerationStatusStatus || (exports.ModerationStatusStatus = ModerationStatusStatus = {})); | ||
var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (exports.TotalDraftPostsGroupingField = TotalDraftPostsGroupingField = {})); | ||
var Type; | ||
@@ -508,2 +501,9 @@ (function (Type) { | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (exports.TotalDraftPostsGroupingField = TotalDraftPostsGroupingField = {})); | ||
/** | ||
@@ -510,0 +510,0 @@ * Creates a draft post. |
@@ -5,4 +5,4 @@ import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftCreated as publicOnDraftCreated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftDeleted as publicOnDraftDeleted } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
export declare const createDraftPost: MaybeContext<BuildRESTFunction<typeof publicCreateDraftPost> & typeof publicCreateDraftPost>; | ||
@@ -28,2 +28,8 @@ export declare const bulkCreateDraftPosts: MaybeContext<BuildRESTFunction<typeof publicBulkCreateDraftPosts> & typeof publicBulkCreateDraftPosts>; | ||
export declare const onDraftCreated: ReturnType<typeof createEventModule<_publicOnDraftCreatedType>>; | ||
export { publicOnDraftUpdated }; | ||
export type _publicOnDraftUpdatedType = typeof publicOnDraftUpdated; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export declare const onDraftUpdated: ReturnType<typeof createEventModule<_publicOnDraftUpdatedType>>; | ||
export { publicOnDraftDeleted }; | ||
@@ -35,9 +41,3 @@ export type _publicOnDraftDeletedType = typeof publicOnDraftDeleted; | ||
export declare const onDraftDeleted: ReturnType<typeof createEventModule<_publicOnDraftDeletedType>>; | ||
export { publicOnDraftUpdated }; | ||
export type _publicOnDraftUpdatedType = typeof publicOnDraftUpdated; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export declare const onDraftUpdated: ReturnType<typeof createEventModule<_publicOnDraftUpdatedType>>; | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, TotalDraftPostsGroupingField, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, } from './blog-v3-draft-draft-posts.universal'; | ||
export { DraftPost, CoverMedia, CoverMediaMediaOneOf, 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, SeoSchema, Keyword, Tag, Settings, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, DraftPostTranslation, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, TotalDraftPosts, InitialDraftPostsCopied, CreateDraftPostRequest, CreateDraftPostResponse, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkDraftPostResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateDraftPostsRequest, MaskedDraftPosts, BulkUpdateDraftPostsResponse, DraftPostOwnerChanged, ListDeletedDraftPostsRequest, BlogPaging, ListDeletedDraftPostsResponse, MetaData, GetDraftPostRequest, GetDraftPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostRequest, UpdateDraftPostResponse, DeleteDraftPostRequest, DeleteDraftPostResponse, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, ListDraftPostsRequest, ListDraftPostsResponse, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, QueryDraftPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryDraftPostsResponse, PagingMetadataV2, Cursors, PublishDraftPostRequest, PublishDraftPostResponse, UnpublishPostRequest, UnpublishPostResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, TranslateCategoryRequest, TranslateCategoryResponse, Category, CategoryTranslation, TranslateDraftRequest, TranslateDraftResponse, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, PostAmountByLanguage, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RejectDraftPostRequest, RejectDraftPostResponse, ApproveDraftPostRequest, ApproveDraftPostResponse, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, CreateDraftPostResponseNonNullableFields, BulkCreateDraftPostsResponseNonNullableFields, BulkUpdateDraftPostsResponseNonNullableFields, ListDeletedDraftPostsResponseNonNullableFields, GetDraftPostResponseNonNullableFields, UpdateDraftPostResponseNonNullableFields, BulkDeleteDraftPostsResponseNonNullableFields, ListDraftPostsResponseNonNullableFields, GetDeletedDraftPostResponseNonNullableFields, RestoreFromTrashBinResponseNonNullableFields, QueryDraftPostsResponseNonNullableFields, PublishDraftPostResponseNonNullableFields, BaseEventMetadata, EventMetadata, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftUpdatedEnvelope, CreateDraftPostOptions, BulkCreateDraftPostsOptions, BulkUpdateDraftPostsOptions, ListDeletedDraftPostsOptions, GetDraftPostOptions, UpdateDraftPost, UpdateDraftPostOptions, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, ListDraftPostsOptions, QueryDraftPostsOptions, DraftPostsQueryResult, DraftPostsQueryBuilder, } from './blog-v3-draft-draft-posts.universal'; | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, TotalDraftPostsGroupingField, } from './blog-v3-draft-draft-posts.universal'; | ||
export { DraftPost, CoverMedia, CoverMediaMediaOneOf, 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, SeoSchema, Keyword, Tag, Settings, Media, MediaMediaOneOf, WixMedia, VideoResolution, EmbedMedia, EmbedThumbnail, EmbedVideo, DraftPostTranslation, InitialDraftPostsCopied, CreateDraftPostRequest, CreateDraftPostResponse, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkDraftPostResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateDraftPostsRequest, MaskedDraftPosts, BulkUpdateDraftPostsResponse, DraftPostOwnerChanged, ListDeletedDraftPostsRequest, BlogPaging, ListDeletedDraftPostsResponse, MetaData, GetDraftPostRequest, GetDraftPostResponse, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostRequest, UpdateDraftPostResponse, DeleteDraftPostRequest, DeleteDraftPostResponse, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, ListDraftPostsRequest, ListDraftPostsResponse, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, QueryDraftPostsRequest, Sorting, PlatformQuery, PlatformQueryPagingMethodOneOf, Paging, CursorPaging, QueryDraftPostsResponse, PagingMetadataV2, Cursors, PublishDraftPostRequest, PublishDraftPostResponse, UnpublishPostRequest, UnpublishPostResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, TotalDraftPosts, TranslateCategoryRequest, TranslateCategoryResponse, Category, CategoryTranslation, TranslateDraftRequest, TranslateDraftResponse, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, PostAmountByLanguage, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RejectDraftPostRequest, RejectDraftPostResponse, ApproveDraftPostRequest, ApproveDraftPostResponse, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, CreateDraftPostResponseNonNullableFields, BulkCreateDraftPostsResponseNonNullableFields, BulkUpdateDraftPostsResponseNonNullableFields, ListDeletedDraftPostsResponseNonNullableFields, GetDraftPostResponseNonNullableFields, UpdateDraftPostResponseNonNullableFields, BulkDeleteDraftPostsResponseNonNullableFields, ListDraftPostsResponseNonNullableFields, GetDeletedDraftPostResponseNonNullableFields, RestoreFromTrashBinResponseNonNullableFields, QueryDraftPostsResponseNonNullableFields, PublishDraftPostResponseNonNullableFields, BaseEventMetadata, EventMetadata, DraftCreatedEnvelope, DraftUpdatedEnvelope, DraftDeletedEnvelope, CreateDraftPostOptions, BulkCreateDraftPostsOptions, BulkUpdateDraftPostsOptions, ListDeletedDraftPostsOptions, GetDraftPostOptions, UpdateDraftPost, UpdateDraftPostOptions, DeleteDraftPostOptions, BulkDeleteDraftPostsOptions, ListDraftPostsOptions, QueryDraftPostsOptions, DraftPostsQueryResult, DraftPostsQueryBuilder, } from './blog-v3-draft-draft-posts.universal'; |
@@ -5,4 +5,4 @@ import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost, } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftCreated as publicOnDraftCreated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftDeleted as publicOnDraftDeleted } from './blog-v3-draft-draft-posts.public'; | ||
import { onDraftUpdated as publicOnDraftUpdated } from './blog-v3-draft-draft-posts.public'; | ||
export const createDraftPost = /*#__PURE__*/ createRESTModule(publicCreateDraftPost); | ||
@@ -27,2 +27,7 @@ export const bulkCreateDraftPosts = /*#__PURE__*/ createRESTModule(publicBulkCreateDraftPosts); | ||
export const onDraftCreated = createEventModule(publicOnDraftCreated); | ||
export { publicOnDraftUpdated }; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export const onDraftUpdated = createEventModule(publicOnDraftUpdated); | ||
export { publicOnDraftDeleted }; | ||
@@ -33,8 +38,3 @@ /** | ||
export const onDraftDeleted = createEventModule(publicOnDraftDeleted); | ||
export { publicOnDraftUpdated }; | ||
/** | ||
* Triggered when a draft post is updated. | ||
*/ | ||
export const onDraftUpdated = createEventModule(publicOnDraftUpdated); | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, TotalDraftPostsGroupingField, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, } from './blog-v3-draft-draft-posts.universal'; | ||
export { Origin, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, Source, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Status, ModerationStatusStatus, Type, Field, Action, GetDraftPostsSort, SortOrder, WebhookIdentityType, TotalDraftPostsGroupingField, } from './blog-v3-draft-draft-posts.universal'; | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.context.js.map |
@@ -156,4 +156,4 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onDraftCreated: EventDefinition<DraftCreatedEnvelope, "wix.blog.v3.draft_created">; | ||
export declare const onDraftUpdated: EventDefinition<DraftUpdatedEnvelope, "wix.blog.v3.draft_updated">; | ||
export declare const onDraftDeleted: EventDefinition<DraftDeletedEnvelope, "wix.blog.v3.draft_deleted">; | ||
export declare const onDraftUpdated: EventDefinition<DraftUpdatedEnvelope, "wix.blog.v3.draft_updated">; | ||
export { Action, ActionEvent, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, ApplicationError, ApproveDraftPostRequest, ApproveDraftPostResponse, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BaseEventMetadata, BlockquoteData, BlogPaging, BookingData, Border, BorderColors, BulkActionMetadata, BulkCreateDraftPostsOptions, BulkCreateDraftPostsRequest, BulkCreateDraftPostsResponse, BulkCreateDraftPostsResponseNonNullableFields, BulkDeleteDraftPostsOptions, BulkDeleteDraftPostsRequest, BulkDeleteDraftPostsResponse, BulkDeleteDraftPostsResponseNonNullableFields, BulkDraftPostResult, BulkRejectDraftPostRequest, BulkRejectDraftPostResponse, BulkRevertToUnpublishedRequest, BulkRevertToUnpublishedResponse, BulkUpdateDraftPostLanguageRequest, BulkUpdateDraftPostLanguageResponse, BulkUpdateDraftPostsOptions, BulkUpdateDraftPostsRequest, BulkUpdateDraftPostsResponse, BulkUpdateDraftPostsResponseNonNullableFields, BulletedListData, ButtonData, ButtonDataType, CaptionData, Category, CategoryTranslation, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, CoverMedia, CoverMediaMediaOneOf, CreateDraftPostOptions, CreateDraftPostRequest, CreateDraftPostResponse, CreateDraftPostResponseNonNullableFields, Crop, CursorPaging, Cursors, Decoration, DecorationDataOneOf, DecorationType, DeleteDraftPostOptions, DeleteDraftPostRequest, DeleteDraftPostResponse, Design, Dimensions, Direction, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DraftCreatedEnvelope, DraftDeletedEnvelope, DraftPost, DraftPostOwnerChanged, DraftPostTranslation, DraftPostsQueryBuilder, DraftPostsQueryResult, DraftUpdatedEnvelope, EmbedData, EmbedMedia, EmbedThumbnail, EmbedVideo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, EventMetadata, Field, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GalleryData, GalleryOptions, GetDeletedDraftPostRequest, GetDeletedDraftPostResponse, GetDeletedDraftPostResponseNonNullableFields, GetDraftPostOptions, GetDraftPostRequest, GetDraftPostResponse, GetDraftPostResponseNonNullableFields, GetDraftPostTotalsRequest, GetDraftPostTotalsResponse, GetDraftPostsSort, GetPostAmountsByLanguageRequest, GetPostAmountsByLanguageResponse, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, InitialDraftPostsCopied, InitialExpandedItems, IsDraftPostAutoTranslatableRequest, IsDraftPostAutoTranslatableResponse, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, ListDeletedDraftPostsOptions, ListDeletedDraftPostsRequest, ListDeletedDraftPostsResponse, ListDeletedDraftPostsResponseNonNullableFields, ListDraftPostsOptions, ListDraftPostsRequest, ListDraftPostsResponse, ListDraftPostsResponseNonNullableFields, ListValue, MapData, MapSettings, MapType, MarkPostAsInModerationRequest, MarkPostAsInModerationResponse, MaskedDraftPosts, Media, MediaMediaOneOf, MentionData, MessageEnvelope, MetaData, Metadata, ModerationDetails, ModerationStatusStatus, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, Origin, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, PlatformQuery, PlatformQueryPagingMethodOneOf, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, PostAmountByLanguage, PublishDraftPostRequest, PublishDraftPostResponse, PublishDraftPostResponseNonNullableFields, QueryDraftPostsOptions, QueryDraftPostsRequest, QueryDraftPostsResponse, QueryDraftPostsResponseNonNullableFields, RejectDraftPostRequest, RejectDraftPostResponse, Rel, RemoveFromTrashBinRequest, RemoveFromTrashBinResponse, RestoreFromTrashBinRequest, RestoreFromTrashBinResponse, RestoreFromTrashBinResponseNonNullableFields, RestoreInfo, RevertToUnpublishedRequest, RevertToUnpublishedResponse, RichContent, SeoSchema, Settings, SortOrder, Sorting, Source, Spoiler, SpoilerData, Status, Styles, TableCellData, TableData, Tag, Target, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, TotalDraftPosts, TotalDraftPostsGroupingField, TranslateCategoryRequest, TranslateCategoryResponse, TranslateDraftRequest, TranslateDraftResponse, Type, UnpublishPostRequest, UnpublishPostResponse, UpdateDraftPost, UpdateDraftPostContentRequest, UpdateDraftPostContentRequestDraftContentOneOf, UpdateDraftPostContentResponse, UpdateDraftPostLanguageRequest, UpdateDraftPostLanguageResponse, UpdateDraftPostOptions, UpdateDraftPostRequest, UpdateDraftPostResponse, UpdateDraftPostResponseNonNullableFields, V1Media, VerticalAlignment, Video, VideoData, VideoResolution, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, WixMedia, } from './blog-v3-draft-draft-posts.universal'; |
@@ -148,2 +148,68 @@ import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys'; | ||
])))(); | ||
export const onDraftUpdated = EventDefinition('wix.blog.v3.draft_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
{ | ||
transformFn: transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.heroImage' }, | ||
{ path: 'entity.coverMedia.image' }, | ||
{ path: 'entity.media.wixMedia.image' }, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.editedDate' }, | ||
{ path: 'entity.scheduledPublishDate' }, | ||
{ path: 'entity.firstPublishedDate' }, | ||
{ path: 'entity.createdDate' }, | ||
{ 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: transformRESTVideoToSDKVideo, | ||
paths: [{ path: 'entity.coverMedia.video' }], | ||
}, | ||
{ | ||
transformFn: transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ | ||
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' }], | ||
}, | ||
])))(); | ||
export const onDraftDeleted = EventDefinition('wix.blog.v3.draft_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
@@ -226,69 +292,3 @@ { | ||
])))(); | ||
export const onDraftUpdated = EventDefinition('wix.blog.v3.draft_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
{ | ||
transformFn: transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.heroImage' }, | ||
{ path: 'entity.coverMedia.image' }, | ||
{ path: 'entity.media.wixMedia.image' }, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.editedDate' }, | ||
{ path: 'entity.scheduledPublishDate' }, | ||
{ path: 'entity.firstPublishedDate' }, | ||
{ path: 'entity.createdDate' }, | ||
{ 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: transformRESTVideoToSDKVideo, | ||
paths: [{ path: 'entity.coverMedia.video' }], | ||
}, | ||
{ | ||
transformFn: transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ | ||
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' }], | ||
}, | ||
])))(); | ||
export { Action, Alignment, AppType, BackgroundType, ButtonDataType, Crop, DecorationType, Direction, Field, FontType, GetDraftPostsSort, InitialExpandedItems, LayoutType, LineStyle, MapType, ModerationStatusStatus, NodeType, NullValue, Orientation, Origin, PluginContainerDataAlignment, PollLayoutDirection, PollLayoutType, SortOrder, Source, Status, Target, TextAlignment, ThumbnailsAlignment, TotalDraftPostsGroupingField, Type, VerticalAlignment, ViewMode, ViewRole, VoteRole, WebhookIdentityType, Width, WidthType, } from './blog-v3-draft-draft-posts.universal'; | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.public.js.map |
@@ -389,9 +389,2 @@ export var Origin; | ||
})(ModerationStatusStatus || (ModerationStatusStatus = {})); | ||
export var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (TotalDraftPostsGroupingField = {})); | ||
export var Type; | ||
@@ -466,2 +459,9 @@ (function (Type) { | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (TotalDraftPostsGroupingField = {})); | ||
//# sourceMappingURL=blog-v3-draft-draft-posts.types.js.map |
@@ -403,9 +403,2 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
})(ModerationStatusStatus || (ModerationStatusStatus = {})); | ||
export var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (TotalDraftPostsGroupingField = {})); | ||
export var Type; | ||
@@ -480,2 +473,9 @@ (function (Type) { | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var TotalDraftPostsGroupingField; | ||
(function (TotalDraftPostsGroupingField) { | ||
/** Groups results by status. */ | ||
TotalDraftPostsGroupingField["STATUS"] = "STATUS"; | ||
/** Groups results by language. */ | ||
TotalDraftPostsGroupingField["LANGUAGE"] = "LANGUAGE"; | ||
})(TotalDraftPostsGroupingField || (TotalDraftPostsGroupingField = {})); | ||
/** | ||
@@ -482,0 +482,0 @@ * Creates a draft post. |
{ | ||
"name": "@wix/blog_draft-posts", | ||
"version": "1.0.52", | ||
"version": "1.0.53", | ||
"publishConfig": { | ||
@@ -49,3 +49,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "3827cfbe77a97dec1a4cc0dd471b388a8b833765d3fbece5d987db17" | ||
"falconPackageHash": "c4ada92591e1ca53175480e30d0947e8ba2a812c8911fd592cd580c4" | ||
} |
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 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 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 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
1624758
38341