import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { PublishItemOptions, PublishItemResponse, PublishItemApplicationErrors, PublishItemByIdOptions, PublishItemByIdResponse, PublishItemByIdApplicationErrors, CreateDraftItemOptions, Item, PublishMultiStoryDraftOptions, PublishMultiStoryDraftResponse, PublishMultiStoryDraftApplicationErrors, GetItemsResponse, Query, QueryItemsResponse, CancelScheduledItemResponse, CancelScheduledItemApplicationErrors, UpdateItem, UpdateItemApplicationErrors, RescheduleItemOptions, RescheduleItemResponse, RescheduleItemApplicationErrors, DeleteItemApplicationErrors, BulkPublishItemsOptions, BulkPublishItemsResponse, BulkPublishItemsApplicationErrors, ItemPublishFailedEnvelope, ItemPublishScheduledEnvelope, ItemPublishStartedEnvelope, ItemPublishedEnvelope } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, ApplicationError, AssetReference, BaseEventMetadata, BulkActionMetadata, BulkItemsResult, BulkPublishItemsPolicy, BulkPublishItemsPolicyWithLiterals, BulkPublishItemsRequest, CancelScheduledItemRequest, Channel, ChannelName, ChannelNameWithLiterals, CommentTrigger, ConsumerInfo, ConsumerType, ConsumerTypeWithLiterals, ConversionFunnel, CreateDraftItemRequest, CreateDraftItemResponse, DeleteItemRequest, DeleteItemResponse, DomainEvent, DomainEventBodyOneOf, DraftInfo, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, FacebokActivity, FacebookImpressions, FacebookInsights, FacebookInteractions, FacebookPost, FacebookPostUrlOneOf, FacebookReactions, FacebookReel, FacebookStory, GbpInsights, GbpPost, GbpPostCallToAction, GbpPostCallToActionType, GbpPostCallToActionTypeWithLiterals, GetItemRequest, GetItemResponse, GetItemsRequest, GetOrCreateWixelBindingByFileRequest, GetOrCreateWixelBindingByFileResponse, IdentificationData, IdentificationDataIdOneOf, InsightsSummary, InstagramInsights, InstagramPost, InstagramPostUrlOneOf, InstagramStory, InstagramStoryInsights, IsEligibleForSchedulingRequest, IsEligibleForSchedulingResponse, ItemAutomation, ItemAutomationActionOneOf, ItemAutomationTriggerOneOf, ItemAutomationsWrapper, ItemDataOneOf, ItemExtras, ItemMetadata, ItemPublishFailed, ItemPublishScheduled, ItemPublishStarted, ItemPublished, ItemType, ItemTypeWithLiterals, LinkMetadata, LinkedinPost, LinkedinPostInsights, LinkedinPostUrlOneOf, Media, MediaType, MediaTypeWithLiterals, MediaWrapper, MessageEnvelope, Paging, PagingMetadata, PinterestInsights, PinterestPost, PublicationErrorDetails, PublishDraftRequest, PublishDraftResponse, PublishItemByIdRequest, PublishItemRequest, PublishMultiStoryDraftRequest, PublishingTarget, QueryItemsRequest, RescheduleItemRequest, RestoreInfo, SchedulingInfo, SchedulingRestrictedReason, SchedulingRestrictedReasonWithLiterals, SendPrivateReplyAction, SiteAnalytics, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, TikTokInsights, TikTokPhoto, TikTokPrivacyLevel, TikTokPrivacyLevelWithLiterals, TikTokVideo, TwitterInsights, TwitterPost, TwitterPostUrlOneOf, Type, TypeWithLiterals, UpdateItemRequest, UpdateItemResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, YouTubeShort, YouTubeVideo, YoutubeInsights } from './index.typings.js'; declare function publishItem$1(httpClient: HttpClient): PublishItemSignature; interface PublishItemSignature { /** * Publishes an item to a connected social channel. * * Use this method to publish a fully-formed post in a single call. To publish a previously created draft, call Publish Item By ID. To save a post without publishing it, call Create Draft Item. To schedule the post, set `item.schedulingInfo.scheduledDate`; otherwise it's published immediately. * * Published items appear on the site's Social Media Marketing page in the dashboard. */ (options?: NonNullablePaths): Promise & { __applicationErrorsType?: PublishItemApplicationErrors; }>; } declare function publishItemById$1(httpClient: HttpClient): PublishItemByIdSignature; interface PublishItemByIdSignature { /** * Publishes a previously created item by its `id`. * * The item can be a draft or a scheduled item. To schedule the item for a future date, set `scheduledDate`; otherwise it's published immediately. * * Published items appear on the site's Social Media Marketing page in the dashboard. * @param - ID of the item to publish. */ (_id: string, options?: PublishItemByIdOptions): Promise & { __applicationErrorsType?: PublishItemByIdApplicationErrors; }>; } declare function createDraftItem$1(httpClient: HttpClient): CreateDraftItemSignature; interface CreateDraftItemSignature { /** * Creates a draft item. * * A draft is an item that's saved but not yet published, with a `status` of `DRAFT`. Drafts appear on the site's Social Media Marketing page in the dashboard, where they can be reviewed and published. To publish a draft, call Publish Item By ID. * * The item's `type` and content must match a combination supported by the target channel. See `item.type` for the supported combinations. * @returns Created draft item. */ (options?: NonNullablePaths): Promise>; } declare function publishMultiStoryDraft$1(httpClient: HttpClient): PublishMultiStoryDraftSignature; interface PublishMultiStoryDraftSignature { /** * Publishes a multi-story draft as a sequence of single-media story items. * * The draft's media list is split into individual story items that are published sequentially * in media order, stopping on the first failure. Each story item gets a derived `referenceId` * of `{draftReferenceId}:story:{index}` (the draft `id` is used when the draft has no `referenceId`). * Story items already published by a previous call are skipped, so the method can be safely retried * after a partial failure. The draft is deleted only after all story items are published. * To schedule the story sequence, set `schedulingInfo.scheduledDate`; otherwise it's published immediately. * @param - ID of the multi-story draft to publish. * @returns PublishMultiStoryDraftResponse */ (_id: string, options?: PublishMultiStoryDraftOptions): Promise & { __applicationErrorsType?: PublishMultiStoryDraftApplicationErrors; }>; } declare function getItem$1(httpClient: HttpClient): GetItemSignature; interface GetItemSignature { /** * Retrieves an item by ID. * @param - ID of the item to retrieve. * @returns Retrieved item. */ (_id: string): Promise>; } declare function getItems$1(httpClient: HttpClient): GetItemsSignature; interface GetItemsSignature { /** * Retrieves a list of items by their IDs. * @param - IDs of the items to retrieve. */ (ids: string[]): Promise>; } declare function queryItems$1(httpClient: HttpClient): QueryItemsSignature; interface QueryItemsSignature { /** * Retrieves a list of items, given the provided paging, filtering, and sorting. * * Query Items runs with these defaults, which you can override: * - `paging.limit` is `50` * - `paging.offset` is `0` * * To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection). * @param - Query options, including paging, filtering, and sorting. */ (query: Query): Promise>; } declare function cancelScheduledItem$1(httpClient: HttpClient): CancelScheduledItemSignature; interface CancelScheduledItemSignature { /** * Cancels the scheduling of a scheduled item. * * The item is no longer published at its scheduled time. Only an item with a `status` of `SCHEDULED` can be canceled. * @param - ID of the scheduled item to cancel. */ (_id: string): Promise & { __applicationErrorsType?: CancelScheduledItemApplicationErrors; }>; } declare function updateItem$1(httpClient: HttpClient): UpdateItemSignature; interface UpdateItemSignature { /** * Updates an item. * * Provide the `id` of the item to update along with the fields to change. Only the fields you include are changed. To change a scheduled item's publish date, call Reschedule Item instead. * @param - Item ID. * @returns Updated item. */ (_id: string, item: UpdateItem): Promise & { __applicationErrorsType?: UpdateItemApplicationErrors; }>; } declare function rescheduleItem$1(httpClient: HttpClient): RescheduleItemSignature; interface RescheduleItemSignature { /** * Changes the scheduled publish date of a scheduled item. * * Only an item with a `status` of `SCHEDULED` can be rescheduled. * @param - ID of the scheduled item to reschedule. */ (_id: string, options?: RescheduleItemOptions): Promise & { __applicationErrorsType?: RescheduleItemApplicationErrors; }>; } declare function deleteItem$1(httpClient: HttpClient): DeleteItemSignature; interface DeleteItemSignature { /** * Deletes an item. * @returns DeleteItemResponse */ (_id: string): Promise; } declare function bulkPublishItems$1(httpClient: HttpClient): BulkPublishItemsSignature; interface BulkPublishItemsSignature { /** * Publishes multiple items in a single call. * * Each item is published independently. To publish a single item, call Publish Item. * @param - Items to publish. */ (items: NonNullablePaths[], options?: BulkPublishItemsOptions): Promise & { __applicationErrorsType?: BulkPublishItemsApplicationErrors; }>; } declare const onItemPublishFailed$1: EventDefinition; declare const onItemPublishScheduled$1: EventDefinition; declare const onItemPublishStarted$1: EventDefinition; declare const onItemPublished$1: EventDefinition; declare const publishItem: MaybeContext & typeof publishItem$1>; declare const publishItemById: MaybeContext & typeof publishItemById$1>; declare const createDraftItem: MaybeContext & typeof createDraftItem$1>; declare const publishMultiStoryDraft: MaybeContext & typeof publishMultiStoryDraft$1>; declare const getItem: MaybeContext & typeof getItem$1>; declare const getItems: MaybeContext & typeof getItems$1>; declare const queryItems: MaybeContext & typeof queryItems$1>; declare const cancelScheduledItem: MaybeContext & typeof cancelScheduledItem$1>; declare const updateItem: MaybeContext & typeof updateItem$1>; declare const rescheduleItem: MaybeContext & typeof rescheduleItem$1>; declare const deleteItem: MaybeContext & typeof deleteItem$1>; declare const bulkPublishItems: MaybeContext & typeof bulkPublishItems$1>; /** */ declare const onItemPublishFailed: BuildEventDefinition & typeof onItemPublishFailed$1; /** */ declare const onItemPublishScheduled: BuildEventDefinition & typeof onItemPublishScheduled$1; /** */ declare const onItemPublishStarted: BuildEventDefinition & typeof onItemPublishStarted$1; /** */ declare const onItemPublished: BuildEventDefinition & typeof onItemPublished$1; export { BulkPublishItemsApplicationErrors, BulkPublishItemsOptions, BulkPublishItemsResponse, CancelScheduledItemApplicationErrors, CancelScheduledItemResponse, CreateDraftItemOptions, DeleteItemApplicationErrors, GetItemsResponse, Item, ItemPublishFailedEnvelope, ItemPublishScheduledEnvelope, ItemPublishStartedEnvelope, ItemPublishedEnvelope, PublishItemApplicationErrors, PublishItemByIdApplicationErrors, PublishItemByIdOptions, PublishItemByIdResponse, PublishItemOptions, PublishItemResponse, PublishMultiStoryDraftApplicationErrors, PublishMultiStoryDraftOptions, PublishMultiStoryDraftResponse, Query, QueryItemsResponse, RescheduleItemApplicationErrors, RescheduleItemOptions, RescheduleItemResponse, UpdateItem, UpdateItemApplicationErrors, bulkPublishItems, cancelScheduledItem, createDraftItem, deleteItem, getItem, getItems, onItemPublishFailed, onItemPublishScheduled, onItemPublishStarted, onItemPublished, publishItem, publishItemById, publishMultiStoryDraft, queryItems, rescheduleItem, updateItem };