import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { Step, CreateStepOptions, BulkCreateStepsOptions, BulkCreateStepsResponse, GetStepOptions, UpdateStep, UpdateStepOptions, MaskedStep, BulkUpdateStepsOptions, BulkUpdateStepsResponse, MoveStepOptions, MoveStepResponse, CloneStepOptions, CloneStepResponse, StepCreatedEnvelope, StepDeletedEnvelope, StepMovedEnvelope, StepUpdatedEnvelope, StepQuery, QueryStepsOptions, typedQuerySteps, StepsQueryBuilder } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, AddressLocation, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkActionType, BulkActionTypeWithLiterals, BulkCloneStepRequest, BulkCloneStepResponse, BulkCreateStepMigrationRequest, BulkCreateStepMigrationResponse, BulkCreateStepRequest, BulkCreateStepResponse, BulkCreateStepsRequest, BulkStepResult, BulkUpdateStepResult, BulkUpdateStepsRequest, CloneStepRequest, CommonBulkActionMetadata, CommonItemMetadata, CommonQueryWithEntityContext, CreateStepRequest, CreateStepResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteAllProgramStepsRequest, DeleteAllProgramStepsResponse, DeleteByFilterOperation, DeleteByIdsOperation, DeleteStepRequest, DeleteStepResponse, Description, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DescriptionMediaOneOf, DocumentImage, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EnumWithLiterals, EventMetadata, ExtendedFields, FocalPoint, GetStepOrderingNeighborsRequest, GetStepOrderingNeighborsResponse, GetStepRequest, GetStepResponse, IdentificationData, IdentificationDataIdOneOf, IndexDocument, ItemMetadata, ListAllProgramStepsRequest, ListAllProgramStepsResponse, ListStepOrderingMetadataRequest, ListStepOrderingMetadataResponse, MessageEnvelope, MoveStepRequest, Placement, PlacementWithLiterals, QueryStepsRequest, QueryStepsResponse, QueryStepsWithoutPagingRequest, QueryStepsWithoutPagingResponse, QuizOptions, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, RestoreStepFromTrashRequest, RestoreStepFromTrashResponse, SearchIndexingNotification, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, StepMoved, StepOrderingMetadata, StepQuerySpec, StepStepTypeOptionsOneOf, StepType, StepTypeWithLiterals, StepsQueryResult, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateStepRequest, UpdateStepResponse, VideoOptions, VideoOptionsVideoSourceOneOf, VideoResolution, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixVideo, utils } from './index.typings.js'; declare function createStep$1(httpClient: HttpClient): CreateStepSignature; interface CreateStepSignature { /** * Creates a step. * * Specify the parent section in `step.sectionId`. * The service derives the parent program automatically. * To create a quiz step, create or clone the quiz separately, then specify its ID in `step.quizOptions.id`. * * To create multiple steps in a single API call, call [BulkCreateSteps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-create-steps). * @param - Step to create. * @returns Created step. */ (step: NonNullablePaths, options?: CreateStepOptions): Promise>; } declare function bulkCreateSteps$1(httpClient: HttpClient): BulkCreateStepsSignature; interface BulkCreateStepsSignature { /** * Creates up to 100 steps in a single API call. * * Specify the parent section in each step's `sectionId`. * The service derives the parent program automatically. * To create quiz steps, create or clone the quizzes separately, then specify their IDs in each step's `quizOptions.id`. * * This is the preferred bulk-create method. * To create a single step, call [CreateStep](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/create-step). * @param - Steps to create. */ (steps: NonNullablePaths[], options?: BulkCreateStepsOptions): Promise>; } declare function getStep$1(httpClient: HttpClient): GetStepSignature; interface GetStepSignature { /** * Retrieves a step. * * Use `descriptionFieldSet` to control how much description content to return. * Some returned fields depend on the caller's permissions. * @param - Step ID. * @returns Retrieved step. */ (stepId: string, options?: GetStepOptions): Promise>; } declare function updateStep$1(httpClient: HttpClient): UpdateStepSignature; interface UpdateStepSignature { /** * Updates a step. * * Each time the step is updated, `revision` increments by 1. The current `revision` must be passed when updating the step. This ensures you're working with the latest step and prevents unintended overwrites. * * Use this method to update step content and quiz settings. * To move a step within a section or to another section, call [MoveStep](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/move-step) instead of updating `step.sectionId`. * To attach a quiz to the step, create or clone the quiz separately, then specify its ID in `step.quizOptions.id`. * * To update multiple steps in a single API call, call [BulkUpdateSteps](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/bulk-update-steps). * @param - Step ID. * @returns Updated step. */ (_id: string, step: NonNullablePaths, options?: UpdateStepOptions): Promise>; } declare function bulkUpdateSteps$1(httpClient: HttpClient): BulkUpdateStepsSignature; interface BulkUpdateStepsSignature { /** * Updates up to 100 steps in a single API call. * * Each time a step is updated, `revision` increments by 1. The current `revision` must be passed when updating the step. This ensures you're working with the latest step and prevents unintended overwrites. * * Use this method for content updates across multiple steps. Each `steps.step.revision` must be the current revision. * A partial step may omit `sectionId` and `programId`; the service resolves those values from the existing step. * If a requested `steps.step.id` does not identify an existing step, its result is returned as a failed item. * To move a step within a section or to another section, call [MoveStep](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/move-step). * * To update a single step, call [UpdateStep](https://dev.wix.com/docs/api-reference/business-management/online-programs/steps/update-step). * @param - Steps to update. A missing `step.id` is returned as a failed item result. */ (steps: NonNullablePaths[], options?: BulkUpdateStepsOptions): Promise>; } declare function deleteStep$1(httpClient: HttpClient): DeleteStepSignature; interface DeleteStepSignature { /** * Deletes a step from active program content. * * The public API doesn't provide a restore flow for deleted steps. * * If the deleted step is the last step that references a quiz, the quiz is also deleted. * @param - Step ID. */ (stepId: string): Promise; } declare function moveStep$1(httpClient: HttpClient): MoveStepSignature; interface MoveStepSignature { /** * Moves a step within a section or to a different section. * * Each time the step is updated, `revision` increments by 1. Pass the current `revision` when possible to protect against conflicting updates. * * If `afterStepId` isn't specified, the step is moved to the beginning of the target section. * The step's ordering is recalculated automatically. * @param - Step ID. * @param - Target section ID. */ (stepId: string, sectionId: string, options?: MoveStepOptions): Promise>; } declare function cloneStep$1(httpClient: HttpClient): CloneStepSignature; interface CloneStepSignature { /** * Clones a step. * * The cloned step is added to the same section as the original step. * If the original step is linked to a quiz, the quiz is cloned and the cloned step references the new quiz. * @param - Step ID. */ (stepId: string, options?: CloneStepOptions): Promise>; } declare const onStepCreated$1: EventDefinition; declare const onStepDeleted$1: EventDefinition; declare const onStepMoved$1: EventDefinition; declare const onStepUpdated$1: EventDefinition; declare function customQuerySteps(httpClient: HttpClient): { (query: StepQuery, options?: QueryStepsOptions): ReturnType; (options?: QueryStepsOptions): StepsQueryBuilder; }; declare const createStep: MaybeContext & typeof createStep$1>; declare const bulkCreateSteps: MaybeContext & typeof bulkCreateSteps$1>; declare const getStep: MaybeContext & typeof getStep$1>; declare const updateStep: MaybeContext & typeof updateStep$1>; declare const bulkUpdateSteps: MaybeContext & typeof bulkUpdateSteps$1>; declare const deleteStep: MaybeContext & typeof deleteStep$1>; declare const moveStep: MaybeContext & typeof moveStep$1>; declare const cloneStep: MaybeContext & typeof cloneStep$1>; declare const querySteps: MaybeContext & typeof customQuerySteps>; /** * Triggered when a step is created. */ declare const onStepCreated: BuildEventDefinition & typeof onStepCreated$1; /** * Triggered when a step is deleted. */ declare const onStepDeleted: BuildEventDefinition & typeof onStepDeleted$1; /** * Triggered when a step is moved. */ declare const onStepMoved: BuildEventDefinition & typeof onStepMoved$1; /** * Triggered when a step is updated. */ declare const onStepUpdated: BuildEventDefinition & typeof onStepUpdated$1; export { BulkCreateStepsOptions, BulkCreateStepsResponse, BulkUpdateStepsOptions, BulkUpdateStepsResponse, CloneStepOptions, CloneStepResponse, CreateStepOptions, GetStepOptions, MaskedStep, MoveStepOptions, MoveStepResponse, QueryStepsOptions, Step, StepCreatedEnvelope, StepDeletedEnvelope, StepMovedEnvelope, StepQuery, StepUpdatedEnvelope, StepsQueryBuilder, UpdateStep, UpdateStepOptions, bulkCreateSteps, bulkUpdateSteps, cloneStep, createStep, deleteStep, getStep, moveStep, onStepCreated, onStepDeleted, onStepMoved, onStepUpdated, querySteps, updateStep };