import { GoogleProtoDuration } from '@wix/metro-runtime/ambassador'; import { ListScheduleItemsRequest as ListScheduleItemsRequest$1, ListScheduleItemsResponse as ListScheduleItemsResponse$1, QueryScheduleItemsRequest as QueryScheduleItemsRequest$1, QueryScheduleItemsResponse as QueryScheduleItemsResponse$1, GetScheduleItemRequest as GetScheduleItemRequest$1, GetScheduleItemResponse as GetScheduleItemResponse$1, AddScheduleItemRequest as AddScheduleItemRequest$1, AddScheduleItemResponse as AddScheduleItemResponse$1, UpdateScheduleItemRequest as UpdateScheduleItemRequest$1, UpdateScheduleItemResponse as UpdateScheduleItemResponse$1, DeleteScheduleItemRequest as DeleteScheduleItemRequest$1, DeleteScheduleItemResponse as DeleteScheduleItemResponse$1, DiscardDraftRequest as DiscardDraftRequest$1, DiscardDraftResponse as DiscardDraftResponse$1, PublishDraftRequest as PublishDraftRequest$1, PublishDraftResponse as PublishDraftResponse$1, RescheduleDraftRequest as RescheduleDraftRequest$1, RescheduleDraftResponse as RescheduleDraftResponse$1 } from './index.typings.js'; import '@wix/sdk-types'; /** Schedule item describes the schedule within an event. Each event may contain multiple schedule items. */ interface ScheduleItem { /** * Schedule item ID. * @format GUID * @readonly */ id?: string; /** Whether a schedule item is hidden from guests. */ hidden?: boolean; /** * Schedule item name. * @maxLength 120 */ name?: string; /** Time slot of a schedule item. */ timeSlot?: TimeInterval; /** * Rich text schedule item description. * @maxLength 10000 */ description?: string; /** * Stage or room name in which a session takes place. * @maxLength 30 */ stageName?: string; /** * Schedule item tags. Used to organize the items by a theme. * @maxSize 5 * @minLength 1 * @maxLength 30 */ tags?: string[]; /** Schedule item status. */ status?: ScheduleStatusWithLiterals; /** * Date and time the schedule item was created. * @readonly */ createdDate?: Date | null; /** * Date and time the schedule item was updated. * @readonly */ updatedDate?: Date | null; /** * Event ID to which the schedule item belongs. * @format GUID * @readonly */ eventId?: string; /** * Whether the schedule item is a draft. * @readonly */ draft?: boolean; } /** Time interval on the timeline between two points in time. */ interface TimeInterval { /** Start of the time slot interval, inclusive. */ start?: Date | null; /** End of the time slot interval, exclusive. */ end?: Date | null; /** * Time zone ID in TZ database format, e.g., `"EST"`, `"America/Los_Angeles"`. * Defaults to `"Etc/UTC"` when not set. * @minLength 1 * @maxLength 100 */ timeZoneId?: string | null; } declare enum ScheduleStatus { /** Item is scheduled for a future date. */ SCHEDULED = "SCHEDULED", /** Item is canceled. */ CANCELED = "CANCELED" } /** @enumType */ type ScheduleStatusWithLiterals = ScheduleStatus | 'SCHEDULED' | 'CANCELED'; interface ListScheduleItemsRequest { /** * Event ID to which the schedule items belong. * @format GUID * @maxSize 100 */ eventId?: string[]; /** * Schedule item state filter. * * Defaults to `["PUBLISHED", "VISIBLE"]` when no filters are specified.
* If neither `"PUBLISHED"` nor `"DRAFT"` are specified, assumes `"PUBLISHED"`, for example: [`"HIDDEN"`] becomes [`"HIDDEN"`, `"PUBLISHED"`]. * If neither `"VISIBLE"` nor `"HIDDEN"` are specified, assumes `"VISIBLE"`, for example: [`"DRAFT"`] becomes [`"DRAFT"`, `"VISIBLE"`]. * @maxSize 20 */ state?: StateFilterWithLiterals[]; /** Filters schedule items starting on or after specified point in time. Inclusive. */ startingFrom?: Date | null; /** Filters schedule items starting before specified point in time. Non-inclusive. */ startingBefore?: Date | null; /** * *Deprecated:** Use `paging` instead. * @max 1000 * @deprecated */ offset?: number; /** * *Deprecated:** Use `paging` instead. * @max 100 * @deprecated */ limit?: number; /** * Filter facets. * @minLength 1 * @maxLength 100 * @maxSize 20 */ facet?: string[]; /** * Item IDs filter. * @format GUID * @maxSize 100 */ itemId?: string[]; /** * Tags filter. * @minLength 1 * @maxLength 30 * @maxSize 50 */ tag?: string[]; /** * Stage names filter. * @maxLength 30 * @maxSize 50 */ stageName?: string[]; /** * Pointer to page of results using offset. * See [Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging#paging). */ paging?: Paging; } declare enum StateFilter { /** Schedule item is published. */ PUBLISHED = "PUBLISHED", /** Schedule item is in draft. */ DRAFT = "DRAFT", /** Schedule item is visible to the event's guests. */ VISIBLE = "VISIBLE", /** Schedule item is hidden to the event's guests. */ HIDDEN = "HIDDEN" } /** @enumType */ type StateFilterWithLiterals = StateFilter | 'PUBLISHED' | 'DRAFT' | 'VISIBLE' | 'HIDDEN'; interface Paging { /** * Number of items to load per page. * @max 1000 */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface ListScheduleItemsResponse { /** * *Deprecated:** Use `pagingMetadata.total` instead. * @readonly * @deprecated */ total?: number; /** * *Deprecated.** * @deprecated */ limit?: number; /** * *Deprecated:** Use `pagingMetadata.offset` instead. * @deprecated */ offset?: number; /** Schedule items. */ items?: ScheduleItem[]; /** * Facets. * @readonly */ facets?: Record; /** * Whether there are draft changes which have not been published. * @readonly */ draftNotPublished?: boolean | null; /** Paging metadata. */ pagingMetadata?: PagingMetadataV2; } interface FacetCounts { /** Facet counts aggregated per value. */ counts?: Record; } interface PagingMetadataV2 { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */ cursors?: Cursors; } interface Cursors { /** * Cursor string pointing to the next page in the list of results. * @maxLength 16000 */ next?: string | null; /** * Cursor pointing to the previous page in the list of results. * @maxLength 16000 */ prev?: string | null; } interface QueryScheduleItemsRequest { query?: QueryV2; } interface QueryV2 extends QueryV2PagingMethodOneOf { /** * Pointer to page of results using offset. * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */ paging?: Paging; /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */ filter?: Record | null; /** * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). * @maxSize 20 */ sort?: Sorting[]; } /** @oneof */ interface QueryV2PagingMethodOneOf { /** * Pointer to page of results using offset. * See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */ paging?: Paging; } interface Sorting { /** * Name of the field to sort by * @maxLength 100 */ fieldName?: string; /** Sort order (ASC/DESC). Defaults to ASC */ order?: SortOrderWithLiterals; } declare enum SortOrder { ASC = "ASC", DESC = "DESC" } /** @enumType */ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC'; interface QueryScheduleItemsResponse { pagingMetadata?: PagingMetadataV2; /** Schedule items. */ items?: ScheduleItem[]; } interface GetScheduleItemRequest { /** Event ID to which the schedule item belongs. */ eventId?: string; /** * Schedule item ID. * @format GUID */ itemId: string; /** Whether to include draft schedule items in the response. */ includeDraft?: boolean; } interface GetScheduleItemResponse { /** Schedule item. */ item?: ScheduleItem; /** Draft of the schedule item. */ draft?: ScheduleItem; } interface AddScheduleItemRequest { /** * Event ID to add the schedule item to. * @format GUID */ eventId: string; /** Schedule item. */ item?: ScheduleItemData; } /** Schedule item describes the schedule within an event. Each event may contain multiple schedule items. */ interface ScheduleItemData { /** Whether the schedule item is hidden from guests. */ hidden?: boolean; /** * Schedule item name. * @maxLength 120 */ name?: string; /** Time slot of a schedule item. */ timeSlot?: TimeInterval; /** * Rich text schedule item description. * @maxLength 10000 */ description?: string; /** * Stage or room name in which a session takes place. * @maxLength 30 */ stageName?: string; /** * Schedule item tags. Used to organize the items by a theme. * @maxSize 5 * @minLength 1 * @maxLength 30 */ tags?: string[]; /** Schedule item status. */ status?: ScheduleStatusWithLiterals; } interface AddScheduleItemResponse { /** Schedule item. */ item?: ScheduleItem; } interface UpdateScheduleItemRequest { /** * Event ID to which the schedule item belongs. * @format GUID */ eventId: string; /** * Schedule item ID to update. * @format GUID */ itemId: string; /** Schedule item info. */ item?: ScheduleItemData; /** * Set of field paths to update. * When fields are empty, request is interpreted as full update. * Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics. */ fields?: string[]; } interface UpdateScheduleItemResponse { /** Schedule item. */ item?: ScheduleItem; } interface DeleteScheduleItemRequest { /** * Event ID to which the schedule item belongs. * @format GUID */ eventId: string; /** * Schedule items to delete. * @format GUID * @minSize 1 * @maxSize 100 */ itemIds?: string[]; } interface DeleteScheduleItemResponse { } interface DiscardDraftRequest { /** * Event ID to which the draft schedule item belongs. * @format GUID */ eventId: string; } interface DiscardDraftResponse { } interface PublishDraftRequest { /** * Event ID to which the draft schedule item belongs. * @format GUID */ eventId: string; } interface PublishDraftResponse { } interface RescheduleDraftRequest { /** * Event ID to which the draft schedule item belongs. * @format GUID */ eventId: string; /** * Time zone ID in TZ database format, e.g., `"EST"`, `"America/Los_Angeles"`. * @maxLength 100 */ timeZoneId: string; /** Offset added or subtracted from schedule item start & end times. */ timeSlotOffset?: GoogleProtoDuration; } interface RescheduleDraftResponse { } interface ListBookmarksRequest { /** * Event ID to which the schedule item belongs. * @format GUID */ eventId?: string; } interface ListBookmarksResponse { /** Schedule items. */ items?: ScheduleItem[]; } interface CreateBookmarkRequest { /** * Event ID to which the schedule item belongs. * @format GUID */ eventId?: string; /** * Schedule item ID. * @format GUID */ itemId?: string; } interface CreateBookmarkResponse { } interface DeleteBookmarkRequest { /** * Event ID to which the schedule item belongs. * @format GUID */ eventId?: string; /** * Schedule item ID. * @format GUID */ itemId?: string; } interface DeleteBookmarkResponse { } /** @docsIgnore */ type QueryScheduleItemsApplicationErrors = { code?: 'FILTER_PARSER_ERROR'; description?: string; data?: Record; }; type __PublicMethodMetaInfo = { getUrl: (context: any) => string; httpMethod: K; path: string; pathParams: M; __requestType: T; __originalRequestType: S; __responseType: Q; __originalResponseType: R; }; declare function listScheduleItems(): __PublicMethodMetaInfo<'GET', {}, ListScheduleItemsRequest$1, ListScheduleItemsRequest, ListScheduleItemsResponse$1, ListScheduleItemsResponse>; declare function queryScheduleItems(): __PublicMethodMetaInfo<'POST', {}, QueryScheduleItemsRequest$1, QueryScheduleItemsRequest, QueryScheduleItemsResponse$1, QueryScheduleItemsResponse>; declare function getScheduleItem(): __PublicMethodMetaInfo<'GET', { itemId: string; }, GetScheduleItemRequest$1, GetScheduleItemRequest, GetScheduleItemResponse$1, GetScheduleItemResponse>; declare function addScheduleItem(): __PublicMethodMetaInfo<'POST', {}, AddScheduleItemRequest$1, AddScheduleItemRequest, AddScheduleItemResponse$1, AddScheduleItemResponse>; declare function updateScheduleItem(): __PublicMethodMetaInfo<'PATCH', { itemId: string; }, UpdateScheduleItemRequest$1, UpdateScheduleItemRequest, UpdateScheduleItemResponse$1, UpdateScheduleItemResponse>; declare function deleteScheduleItem(): __PublicMethodMetaInfo<'DELETE', {}, DeleteScheduleItemRequest$1, DeleteScheduleItemRequest, DeleteScheduleItemResponse$1, DeleteScheduleItemResponse>; declare function discardDraft(): __PublicMethodMetaInfo<'DELETE', {}, DiscardDraftRequest$1, DiscardDraftRequest, DiscardDraftResponse$1, DiscardDraftResponse>; declare function publishDraft(): __PublicMethodMetaInfo<'POST', {}, PublishDraftRequest$1, PublishDraftRequest, PublishDraftResponse$1, PublishDraftResponse>; declare function rescheduleDraft(): __PublicMethodMetaInfo<'POST', {}, RescheduleDraftRequest$1, RescheduleDraftRequest, RescheduleDraftResponse$1, RescheduleDraftResponse>; export { type AddScheduleItemRequest as AddScheduleItemRequestOriginal, type AddScheduleItemResponse as AddScheduleItemResponseOriginal, type CreateBookmarkRequest as CreateBookmarkRequestOriginal, type CreateBookmarkResponse as CreateBookmarkResponseOriginal, type Cursors as CursorsOriginal, type DeleteBookmarkRequest as DeleteBookmarkRequestOriginal, type DeleteBookmarkResponse as DeleteBookmarkResponseOriginal, type DeleteScheduleItemRequest as DeleteScheduleItemRequestOriginal, type DeleteScheduleItemResponse as DeleteScheduleItemResponseOriginal, type DiscardDraftRequest as DiscardDraftRequestOriginal, type DiscardDraftResponse as DiscardDraftResponseOriginal, type FacetCounts as FacetCountsOriginal, type GetScheduleItemRequest as GetScheduleItemRequestOriginal, type GetScheduleItemResponse as GetScheduleItemResponseOriginal, type ListBookmarksRequest as ListBookmarksRequestOriginal, type ListBookmarksResponse as ListBookmarksResponseOriginal, type ListScheduleItemsRequest as ListScheduleItemsRequestOriginal, type ListScheduleItemsResponse as ListScheduleItemsResponseOriginal, type PagingMetadataV2 as PagingMetadataV2Original, type Paging as PagingOriginal, type PublishDraftRequest as PublishDraftRequestOriginal, type PublishDraftResponse as PublishDraftResponseOriginal, type QueryScheduleItemsApplicationErrors as QueryScheduleItemsApplicationErrorsOriginal, type QueryScheduleItemsRequest as QueryScheduleItemsRequestOriginal, type QueryScheduleItemsResponse as QueryScheduleItemsResponseOriginal, type QueryV2 as QueryV2Original, type QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal, type RescheduleDraftRequest as RescheduleDraftRequestOriginal, type RescheduleDraftResponse as RescheduleDraftResponseOriginal, type ScheduleItemData as ScheduleItemDataOriginal, type ScheduleItem as ScheduleItemOriginal, ScheduleStatus as ScheduleStatusOriginal, type ScheduleStatusWithLiterals as ScheduleStatusWithLiteralsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, StateFilter as StateFilterOriginal, type StateFilterWithLiterals as StateFilterWithLiteralsOriginal, type TimeInterval as TimeIntervalOriginal, type UpdateScheduleItemRequest as UpdateScheduleItemRequestOriginal, type UpdateScheduleItemResponse as UpdateScheduleItemResponseOriginal, type __PublicMethodMetaInfo, addScheduleItem, deleteScheduleItem, discardDraft, getScheduleItem, listScheduleItems, publishDraft, queryScheduleItems, rescheduleDraft, updateScheduleItem };