import { NonNullablePaths } from '@wix/sdk-types'; interface Participant { /** @format GUID */ _id?: string; member?: Member; challenge?: EntitySummary; timeFrame?: TimeInterval; stepsSummary?: StepsSummary; orderIds?: string[]; transitions?: StateTransition[]; timezone?: string; dateFrame?: DateInterval; socialGroupId?: string | null; performance?: number; joinPath?: JoinPath; /** Certificate issued to participant on successful program complete */ certificate?: Certificate; } interface StepEvent { stepId?: string; transition?: ParticipantStepStateTransition; } interface ParticipantStepStateTransition { state?: ParticipantStepStateWithLiterals; occurredAt?: Date | null; } declare enum ParticipantStepState { PENDING = "PENDING", RUNNING = "RUNNING", COMPLETED = "COMPLETED", SKIPPED = "SKIPPED", CONFIRMED = "CONFIRMED", REJECTED = "REJECTED", OVERDUE = "OVERDUE", FAILED = "FAILED" } /** @enumType */ type ParticipantStepStateWithLiterals = ParticipantStepState | 'PENDING' | 'RUNNING' | 'COMPLETED' | 'SKIPPED' | 'CONFIRMED' | 'REJECTED' | 'OVERDUE' | 'FAILED'; declare enum State { JOIN_REQUESTED = "JOIN_REQUESTED", INVITED = "INVITED", JOIN_REJECTED = "JOIN_REJECTED", PAYMENT_REQUESTED = "PAYMENT_REQUESTED", PAYMENT_STARTED = "PAYMENT_STARTED", JOINED = "JOINED", LEFT = "LEFT", REMOVED = "REMOVED", RUNNING = "RUNNING", COMPLETED = "COMPLETED", FAILED = "FAILED", PAYMENT_STARTED_OFFLINE = "PAYMENT_STARTED_OFFLINE", SUSPENDED = "SUSPENDED", AUTO_REMOVED = "AUTO_REMOVED" } /** @enumType */ type StateWithLiterals = State | 'JOIN_REQUESTED' | 'INVITED' | 'JOIN_REJECTED' | 'PAYMENT_REQUESTED' | 'PAYMENT_STARTED' | 'JOINED' | 'LEFT' | 'REMOVED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'PAYMENT_STARTED_OFFLINE' | 'SUSPENDED' | 'AUTO_REMOVED'; interface Free { } interface Added { } interface SinglePayment { orderId?: string; } interface PaidPlan { planIds?: string[]; } interface FreeCoupon { couponId?: string; } interface Member { /** @format GUID */ _id?: string; fullName?: string; imageUrl?: string | null; /** @format GUID */ contactId?: string | null; /** @format GUID */ userId?: string | null; } interface EntitySummary { _id?: string; title?: string | null; media?: MediaItem; } /** Deprecated - Copy this message into your service, do not reference it */ interface MediaItem extends MediaItemMediaOneOf { /** WixMedia image */ image?: string; /** WixMedia video */ video?: string; /** WixMedia document */ document?: string; } /** @oneof */ interface MediaItemMediaOneOf { /** WixMedia image */ image?: string; /** WixMedia video */ video?: string; /** WixMedia document */ document?: string; } interface FocalPoint { /** X-coordinate of the focal point. */ x?: number; /** Y-coordinate of the focal point. */ y?: number; /** crop by height */ height?: number | null; /** crop by width */ width?: number | null; } interface TimeInterval { start?: Date | null; finish?: Date | null; } interface StepsSummary { stepsNumber?: number; completedStepsNumber?: number; failedStepsNumber?: number; postedFeedbacksNumber?: number; lastEvent?: StepEvent; } interface StateTransition { state?: StateWithLiterals; occurredAt?: Date | null; offlineTrxId?: string | null; } interface DateInterval { start?: string; finish?: string | null; } interface JoinPath extends JoinPathPathOneOf { free?: Free; added?: Added; singlePayment?: SinglePayment; paidPlan?: PaidPlan; freeCoupon?: FreeCoupon; } /** @oneof */ interface JoinPathPathOneOf { free?: Free; added?: Added; singlePayment?: SinglePayment; paidPlan?: PaidPlan; freeCoupon?: FreeCoupon; } interface Certificate { /** * when certificate was issued, UTC * @readonly */ issuedDate?: Date | null; } /** Site owner manually issued a certificate to the participant */ interface ParticipantCertificateIssued { participant?: Participant; } interface QueryParticipantsRequest { paging?: Paging; /** @format GUID */ challengeId: string; sorting?: QueryParticipantsRequestSorting; filter?: ParticipantsFilter; } interface ParticipantJoinDate { start?: string | null; end?: string | null; } declare enum ParticipationState { NotStarted = "NotStarted", InProgress = "InProgress", Finished = "Finished", Suspended = "Suspended", AutoRemoved = "AutoRemoved" } /** @enumType */ type ParticipationStateWithLiterals = ParticipationState | 'NotStarted' | 'InProgress' | 'Finished' | 'Suspended' | 'AutoRemoved'; interface ParticipantPerformance { /** @max 100 */ start?: number | null; /** @max 100 */ end?: number | null; } declare enum QueryParticipantsRequestJoinPath { UNKNOWN_JOIN_PATH = "UNKNOWN_JOIN_PATH", FREE = "FREE", ADDED = "ADDED", SINGLE_PAYMENT = "SINGLE_PAYMENT", PAID_PLAN = "PAID_PLAN" } /** @enumType */ type QueryParticipantsRequestJoinPathWithLiterals = QueryParticipantsRequestJoinPath | 'UNKNOWN_JOIN_PATH' | 'FREE' | 'ADDED' | 'SINGLE_PAYMENT' | 'PAID_PLAN'; declare enum QueryParticipantsRequestSortingCriterion { DEFAULT = "DEFAULT", JOIN_DATE = "JOIN_DATE", NAME = "NAME", LAST_EVENT = "LAST_EVENT", PERFORMANCE = "PERFORMANCE" } /** @enumType */ type QueryParticipantsRequestSortingCriterionWithLiterals = QueryParticipantsRequestSortingCriterion | 'DEFAULT' | 'JOIN_DATE' | 'NAME' | 'LAST_EVENT' | 'PERFORMANCE'; declare enum QueryParticipantsRequestSortingOrder { ORDER_DEFAULT = "ORDER_DEFAULT", ORDER_ASC = "ORDER_ASC", ORDER_DESC = "ORDER_DESC" } /** @enumType */ type QueryParticipantsRequestSortingOrderWithLiterals = QueryParticipantsRequestSortingOrder | 'ORDER_DEFAULT' | 'ORDER_ASC' | 'ORDER_DESC'; interface Paging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } interface QueryParticipantsRequestSorting { criterion?: QueryParticipantsRequestSortingCriterionWithLiterals; order?: QueryParticipantsRequestSortingOrderWithLiterals; } interface ParticipantsFilter { /** @format GUID */ memberIds?: string[] | null; memberName?: string | null; states?: StateWithLiterals[]; joinedAt?: ParticipantJoinDate; participationStates?: ParticipationStateWithLiterals[]; performance?: ParticipantPerformance[]; joinPath?: QueryParticipantsRequestJoinPathWithLiterals; } interface QueryParticipantsResponse { totalCount?: number; participants?: Participant[]; } interface ListParticipantsRequest { paging?: Paging; /** @format GUID */ challengeId: string; /** * @format GUID * @deprecated */ memberId?: string | null; states?: StateWithLiterals[]; memberIds?: string[] | null; /** @deprecated */ sortingCriterion?: SortingCriterionWithLiterals; /** @minLength 2 */ memberName?: string | null; sorting?: Sorting; } declare enum SortingCriterion { DEFAULT = "DEFAULT", JOIN_DATE = "JOIN_DATE", NAME = "NAME", LAST_EVENT = "LAST_EVENT", PERFORMANCE = "PERFORMANCE" } /** @enumType */ type SortingCriterionWithLiterals = SortingCriterion | 'DEFAULT' | 'JOIN_DATE' | 'NAME' | 'LAST_EVENT' | 'PERFORMANCE'; declare enum SortingOrder { ORDER_DEFAULT = "ORDER_DEFAULT", ORDER_ASC = "ORDER_ASC", ORDER_DESC = "ORDER_DESC" } /** @enumType */ type SortingOrderWithLiterals = SortingOrder | 'ORDER_DEFAULT' | 'ORDER_ASC' | 'ORDER_DESC'; interface Sorting { criterion?: SortingCriterionWithLiterals; order?: SortingOrderWithLiterals; } interface ListParticipantsResponse { totalCount?: number; participants?: Participant[]; } interface JoinParticipantRequest { /** @format GUID */ challengeId: string; /** * ignored, taken from callScope instead * @format GUID * @deprecated ignored, taken from callScope instead * @targetRemovalDate 2024-09-01 */ memberId?: string; timeZone?: string; /** @format GUID */ actionId?: string; startDate?: string | null; } interface JoinParticipantResponse { /** @format GUID */ participantId?: string; /** @format GUID */ actionId?: string; participant?: Participant; } interface ParticipantJoined { participant?: Participant; /** * user id for program owner * @format GUID */ ownerId?: string; /** * owner's contact id * @format GUID */ ownerContactId?: string; /** paid price for the program. */ payment?: Price; } interface Price { /** @format DECIMAL_VALUE */ amount?: string; /** @format CURRENCY */ currency?: string; } /** Add participant */ interface AddParticipantRequest { /** @format GUID */ challengeId: string; /** @format GUID */ memberId?: string; /** @format GUID */ actionId?: string; } interface AddParticipantResponse { participant?: Participant; /** @format GUID */ actionId?: string; } /** Add participants */ interface AddParticipantsRequest { /** @format GUID */ challengeId: string; /** * @format GUID * @maxSize 1000 */ memberIds?: string[]; /** @format GUID */ actionId?: string; } interface AddParticipantsResponse { participants?: Participant[]; /** @format GUID */ actionId?: string; } interface AddAllParticipantRequest { /** @format GUID */ challengeId: string; /** @format GUID */ excludeIds?: string[]; } interface AddAllParticipantResponse { } interface CreateJoinRequestRequest { /** @format GUID */ challengeId: string; /** @format GUID */ memberId?: string; timeZone?: string; /** @format GUID */ actionId?: string; startDate?: string | null; } interface CreateJoinRequestResponse { /** @format GUID */ participantId?: string; /** @format GUID */ approvalRequestId?: string; /** @format GUID */ actionId?: string; participant?: Participant; } interface InviteParticipantsRequest { /** @format GUID */ challengeId: string; memberIds?: string[]; /** @format GUID */ actionId?: string; } interface InviteParticipantsResponse { invitations?: InvitationDetails[]; /** @format GUID */ actionId?: string; } interface InvitationDetails { /** @format GUID */ participantId?: string; /** @format GUID */ approvalRequestId?: string; } interface InviteAllParticipantsRequest { /** @format GUID */ challengeId: string; /** @format GUID */ excludeIds?: string[]; } interface InviteAllParticipantsResponse { } interface GetParticipantRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } interface GetParticipantResponse { participant?: Participant; } interface UpdateParticipantRequest extends UpdateParticipantRequestUpdateOneOf { startDate?: string; /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ actionId?: string; } /** @oneof */ interface UpdateParticipantRequestUpdateOneOf { startDate?: string; } interface UpdateParticipantResponse { participant?: Participant; /** @format GUID */ actionId?: string; } interface DeleteParticipantRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ actionId?: string; } interface DeleteParticipantResponse { /** @format GUID */ actionId?: string; } interface ReviveParticipantRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ actionId?: string; } interface ReviveParticipantResponse { participant?: Participant; /** @format GUID */ actionId?: string; } interface ResetParticipantProgressRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; timeZone?: string; startDate?: string | null; /** @format GUID */ actionId?: string; } interface ResetParticipantProgressResponse { participant?: Participant; /** @format GUID */ actionId?: string; } interface IssueParticipantCertificateRequest { /** * Participant to issue manually certificate * @format GUID */ participantId: string; /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; } interface IssueParticipantCertificateResponse { /** Updated participant */ participant?: Participant; } interface IssueCertificateRequest { /** * Participant to get certificate * @format GUID */ participantId: string; /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; } interface IssueCertificateResponse { /** Updated participant */ participant?: Participant; } interface GetCertificateRequest { /** * Participant to get certificate * @format GUID */ participantId: string; /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; } interface GetCertificateResponse { /** * URL on media to get certificate * @format WEB_URL */ certificateUrl?: string; } interface CreatePaymentOrderRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ actionId?: string; timeZone?: string | null; startDate?: string | null; paymentType?: PaymentTypeWithLiterals; } declare enum PaymentType { SINGLE_PAYMENT = "SINGLE_PAYMENT", PAID_PLANS = "PAID_PLANS" } /** @enumType */ type PaymentTypeWithLiterals = PaymentType | 'SINGLE_PAYMENT' | 'PAID_PLANS'; interface CreatePaymentOrderResponse { /** @format GUID */ orderId?: string; /** @format GUID */ actionId?: string; participant?: Participant; } interface ApplyCouponToOrderRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ orderId: string; couponCode: string; /** @format GUID */ actionId?: string; } interface ApplyCouponToOrderResponse { /** @format GUID */ couponId?: string; subTotal?: string; discount?: string; total?: string; } interface RemoveCouponFromOrderRequest { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ orderId: string; /** @format GUID */ couponId: string; /** @format GUID */ actionId?: string; } interface RemoveCouponFromOrderResponse { total?: string; } interface ListParticipantStepsRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID within the challenge. GUID. * @format GUID */ participantId: string; /** Optional parent step ID to scope to sub-steps. */ parentId?: string; /** Optional absolute time window for time-based progress. */ timeInterval?: TimeInterval; /** Optional local date window for date-based progress. */ dateInterval?: DateInterval; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } declare enum DescriptionFieldSet { /** title and detailed description. */ EXTENDED = "EXTENDED", /** title only. */ STANDARD = "STANDARD" } /** @enumType */ type DescriptionFieldSetWithLiterals = DescriptionFieldSet | 'EXTENDED' | 'STANDARD'; interface ListParticipantStepsResponse { /** Participant steps matching the query. */ steps?: ParticipantStep[]; } interface ParticipantStep { _id?: string; source?: ChallengeStep; timeFrame?: TimeInterval; feedback?: Feedback; transitions?: ParticipantStepStateTransition[]; dateFrame?: DateInterval; quizSubmission?: QuizSubmission; } interface FeedbackItem extends FeedbackItemValueOneOf { number?: number | null; text?: string | null; media?: MediaItems; choice?: FeedbackItemChoice; quantity?: Quantity; multiSelect?: Choices; /** @format GUID */ feedbackItemSettingsId?: string; } /** @oneof */ interface FeedbackItemValueOneOf { number?: number | null; text?: string | null; media?: MediaItems; choice?: FeedbackItemChoice; quantity?: Quantity; multiSelect?: Choices; } interface MediaItems { mediaItems?: MediaItem[]; } interface FeedbackItemChoice { choiceId?: string; } interface Quantity { unitName?: string; amount?: number; } interface Choices { choiceIds?: string[]; } interface ChallengeStep { _id?: string; settings?: ChallengeStepSettings; /** * @format GUID * @deprecated */ recurrenceSourceId?: string | null; createdAt?: Date | null; updatedAt?: Date | null; /** * @format GUID * @readonly */ sectionId?: string | null; } interface GeneralSettings extends GeneralSettingsStepTypeOneOf { individual?: IndividualSettings; /** @deprecated */ group?: GroupSettings; quiz?: QuizSettings; video?: VideoStepSettings; /** steps description: title, details, image and etc. */ description?: ObjectDescription; duration?: TimeDuration; /** @deprecated */ recurrenceSettings?: RecurrenceSettings; } /** @oneof */ interface GeneralSettingsStepTypeOneOf { individual?: IndividualSettings; /** @deprecated */ group?: GroupSettings; quiz?: QuizSettings; video?: VideoStepSettings; } interface ObjectDescription { /** @maxLength 150 */ title?: string | null; /** @maxLength 2000 */ details?: string | null; media?: MediaItem; } interface IndividualSettings { /** should be renamed, it's a flag whether the questionnaire section is enabled. */ confirmationRequired?: boolean; /** feedback list settings. */ feedbackSettings?: FeedbackItemSettings[]; /** whether the quiz section in enabled. */ showQuiz?: boolean; /** quiz list settings. */ quizSettings?: FeedbackItemSettings[]; } interface FeedbackItemSettings { _id?: string; type?: FeedbackItemType; question?: string; isRequired?: boolean; correctAnswerMessage?: string | null; wrongAnswerMessage?: string | null; } interface NumericFeedbackItem { /** @min 1 */ maxValue?: number; } interface TextFeedbackItem { } interface MediaFeedbackItem { } interface MultipleChoiceFeedbackItem { choices?: Choice[]; } declare enum ChoiceRightness { NEUTRAL = "NEUTRAL", RIGHT = "RIGHT", WRONG = "WRONG" } /** @enumType */ type ChoiceRightnessWithLiterals = ChoiceRightness | 'NEUTRAL' | 'RIGHT' | 'WRONG'; interface Choice { _id?: string; description?: ObjectDescription; rightness?: ChoiceRightnessWithLiterals; } interface QuantityFeedbackItem { unitName?: string | null; amount?: number; } interface FeedbackItemType extends FeedbackItemTypeTypeOneOf { numeric?: NumericFeedbackItem; text?: TextFeedbackItem; media?: MediaFeedbackItem; multipleChoice?: MultipleChoiceFeedbackItem; quantity?: QuantityFeedbackItem; multiSelect?: MultipleChoiceFeedbackItem; } /** @oneof */ interface FeedbackItemTypeTypeOneOf { numeric?: NumericFeedbackItem; text?: TextFeedbackItem; media?: MediaFeedbackItem; multipleChoice?: MultipleChoiceFeedbackItem; quantity?: QuantityFeedbackItem; multiSelect?: MultipleChoiceFeedbackItem; } interface GroupSettings { completionCriteria?: CompletionCriteria; } interface CompletionCriteria { completedSteps?: QuantityCriterion; completedMilestones?: QuantityCriterion; scoredPoints?: MinThreshold; } interface QuantityCriterion extends QuantityCriterionCriterionOneOf { all?: All; minThreshold?: MinThreshold; } /** @oneof */ interface QuantityCriterionCriterionOneOf { all?: All; minThreshold?: MinThreshold; } interface All { } interface MinThreshold { /** @min 1 */ value?: number; } interface QuizSettings { quizId?: string; questionCount?: number; passingGrade?: number | null; migrationDetails?: QuizMigrationDetails; } declare enum QuizType { QUIZ = "QUIZ", QUESTIONNAIRE = "QUESTIONNAIRE" } /** @enumType */ type QuizTypeWithLiterals = QuizType | 'QUIZ' | 'QUESTIONNAIRE'; interface QuizMigrationDetails { sourceStepId?: string; show?: boolean; quizType?: QuizTypeWithLiterals; } interface VideoStepSettings extends VideoStepSettingsVideoSourceOneOf { wixVideo?: WixVideo; video?: string; requiredCompletionPercentage?: number; coverImage?: string; durationInMilliseconds?: number | null; deleted?: boolean; } /** @oneof */ interface VideoStepSettingsVideoSourceOneOf { wixVideo?: WixVideo; video?: string; } interface WixVideo { /** @format GUID */ _id?: string; paid?: boolean; } interface VideoResolution { /** Video URL. */ url?: string; /** Video height. */ height?: number; /** Video width. */ width?: number; /** Video format for example, mp4, hls. */ format?: string; } interface TimeDuration { unit?: DurationUnitWithLiterals; value?: number; } declare enum DurationUnit { WEEKS = "WEEKS", DAYS = "DAYS", HOURS = "HOURS", MINUTES = "MINUTES" } /** @enumType */ type DurationUnitWithLiterals = DurationUnit | 'WEEKS' | 'DAYS' | 'HOURS' | 'MINUTES'; interface RecurrenceSettings { schedules?: RecurrenceSchedule[]; /** @min 1 */ recurrencesCount?: number | null; } interface RecurrenceSchedule { startDelay?: TimeDuration; interval?: TimeDuration; } interface EmbeddingSettings { /** step start delay. */ startConditions?: StartCondition[]; /** @deprecated */ isMilestone?: boolean; /** @deprecated */ points?: number | null; } interface StartCondition { /** whether the step should start on join. */ dependency?: StepDependency; /** step delay regarding the challenge start. */ delay?: TimeDuration; } interface StepDependency extends StepDependencyDependencyTypeOneOf { container?: Container; /** @deprecated */ step?: StepId; } /** @oneof */ interface StepDependencyDependencyTypeOneOf { container?: Container; /** @deprecated */ step?: StepId; } interface Container { } interface StepId { /** @format GUID */ stepId?: string; } interface ChallengeStepSettings { general?: GeneralSettings; embedding?: EmbeddingSettings; } interface Feedback { items?: FeedbackItem[]; createdAt?: Date | null; updatedAt?: Date | null; quiz?: FeedbackItem[]; } interface QuizSubmission { quizSubmissionId?: string; score?: number | null; grade?: number | null; rightAnswers?: number | null; passingGrade?: number | null; } interface GetParticipantStepRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Step ID (program step or resolved instance). */ stepId: string; /** Optional absolute time window for time-based progress. */ timeInterval?: TimeInterval; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } interface GetParticipantStepResponse { /** Requested participant step details. */ step?: ParticipantStep; /** Immediate sub-steps for hierarchical steps (if any). */ subSteps?: ParticipantStep[]; } interface ResolveParticipantStepRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Target step ID to resolve. */ stepId: string; /** Resolution action to apply. */ status?: ResolutionStatusWithLiterals; /** Optional instructor feedback payload. */ feedback?: Feedback; /** Optional idempotency key for action tracking. */ actionId?: string; /** * Optional quiz submission to attach. GUID. * @format GUID */ quizSubmissionId?: string | null; } declare enum ResolutionStatus { COMPLETED = "COMPLETED", SKIPPED = "SKIPPED", UNDO = "UNDO", QUIZ_SUBMIT = "QUIZ_SUBMIT" } /** @enumType */ type ResolutionStatusWithLiterals = ResolutionStatus | 'COMPLETED' | 'SKIPPED' | 'UNDO' | 'QUIZ_SUBMIT'; interface ResolveParticipantStepResponse { /** Updated participant step after resolution. */ step?: ParticipantStep; /** * Server-generated action id. GUID. * @format GUID */ actionId?: string; } /** Deprecated. */ interface StepResolved { challengeId?: string; participantId?: string; memberId?: string; stepTitle?: string; participantStepId?: string; challengeStepId?: string; /** TODO why it is repeated? */ feedback?: Feedback[]; /** Title of the program. Used in Notifications */ programName?: string; /** * user id for program owner * @format GUID */ ownerId?: string; /** * owner's contact id * @format GUID */ ownerContactId?: string; /** * participants contact * @format GUID */ participantContactId?: string; /** info about quiz submission in that step */ quizSubmissionData?: QuizSubmissionData; /** info about if participant completed step successfully or not */ status?: StatusWithLiterals; } interface QuizSubmissionData { /** @format GUID */ submissionId?: string | null; earnedScore?: number | null; passingGrade?: number | null; } declare enum Status { /** step completed */ COMPLETED = "COMPLETED", /** participant failed to resolve step */ FAILED = "FAILED" } /** @enumType */ type StatusWithLiterals = Status | 'COMPLETED' | 'FAILED'; interface UpdateStepFeedbackRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Target step ID to update feedback for. */ stepId: string; /** New feedback payload. */ feedback?: Feedback; /** * Idempotency key for feedback update. GUID. * @format GUID */ actionId?: string; } interface UpdateStepFeedbackResponse { /** Participant step with updated feedback. */ step?: ParticipantStep; /** * Server-generated action id. GUID. * @format GUID */ actionId?: string; } interface GetMediaUploadInfoRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Original filename to derive content-type and path. */ fileName?: string; } interface GetMediaUploadInfoResponse { /** Pre-signed URL to upload media. */ uploadUrl?: string; /** Token required by media service for upload. */ uploadToken?: string; } interface ListParticipantSectionsRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } interface ListParticipantSectionsResponse { /** Participant sections for the program. */ sections?: ParticipantSection[]; } interface ParticipantSection { _id?: string; source?: ChallengeSection; steps?: ParticipantStep[]; transitions?: ParticipantSectionStateTransition[]; progress?: Progress; } interface WaitingDate { startDate?: string; } interface WaitingDependency { sectionId?: string; } interface Running { dateInterval?: DateInterval; } interface Completed { } interface Overdue { } interface ChallengeSection { /** challenge section id. */ _id?: string; /** challenge section settings. */ settings?: Settings; createdAt?: Date | null; updatedAt?: Date | null; /** list of challenge steps laying inside the section. */ steps?: ChallengeStep[]; } interface Settings { /** section description(title, details, image...) */ description?: ObjectDescription; /** condition for the section start. */ startCondition?: StartCondition; } interface ParticipantSectionStateTransition extends ParticipantSectionStateTransitionStateOneOf { waitingDate?: WaitingDate; waitingDependency?: WaitingDependency; running?: Running; completed?: Completed; overdue?: Overdue; occurredAt?: Date | null; } /** @oneof */ interface ParticipantSectionStateTransitionStateOneOf { waitingDate?: WaitingDate; waitingDependency?: WaitingDependency; running?: Running; completed?: Completed; overdue?: Overdue; } interface Progress { nTotalSteps?: string; nCompletedSteps?: string; } interface GetParticipantSectionRequest { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** * Section ID to fetch. GUID. * @format GUID */ sectionId: string; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } interface GetParticipantSectionResponse { /** Requested participant section details. */ section?: ParticipantSection; } interface MyProgramRequest { programId: string; } interface MyProgramResponse { participant?: Participant; } interface MyProgramStepRequest { programId: string; programStepId: string; descriptionFieldSet?: DescriptionFieldSetWithLiterals; } interface MyProgramStepResponse { /** Viewer's participant step derived for the program step. */ participantStep?: ParticipantStep; } interface MyProgramSectionRequest { programId: string; programSectionId: string; descriptionFieldSet?: DescriptionFieldSetWithLiterals; } interface MyProgramSectionResponse { /** Viewer's participant section derived for the program section. */ participantSection?: ParticipantSection; } interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; } /** @oneof */ interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } interface EntityCreatedEvent { entity?: string; } interface RestoreInfo { deletedDate?: Date | null; } interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntity?: string; } interface EntityDeletedEvent { /** Entity that was deleted. */ deletedEntity?: string | null; } interface ActionEvent { body?: string; } interface MessageEnvelope { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; /** Details related to the account */ accountInfo?: AccountInfo; } interface IdentificationData extends IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; /** @readonly */ identityType?: WebhookIdentityTypeWithLiterals; } /** @oneof */ interface IdentificationDataIdOneOf { /** * ID of a site visitor that has not logged in to the site. * @format GUID */ anonymousVisitorId?: string; /** * ID of a site visitor that has logged in to the site. * @format GUID */ memberId?: string; /** * ID of a Wix user (site owner, contributor, etc.). * @format GUID */ wixUserId?: string; /** * ID of an app. * @format GUID */ appId?: string; } declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } /** @enumType */ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP'; interface AccountInfo { /** * ID of the Wix account associated with the event. * @format GUID */ accountId?: string | null; /** * ID of the parent Wix account. Only included when accountId belongs to a child account. * @format GUID */ parentAccountId?: string | null; /** * ID of the Wix site associated with the event. Only included when the event is tied to a specific site. * @format GUID */ siteId?: string | null; } interface BaseEventMetadata { /** * App instance ID. * @format GUID */ instanceId?: string | null; /** * Event type. * @maxLength 150 */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Details related to the account */ accountInfo?: AccountInfo; } interface EventMetadata extends BaseEventMetadata { /** Event ID. With this ID you can easily spot duplicated events and ignore them. */ _id?: string; /** * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`. */ entityFqdn?: string; /** * Event action name, placed at the top level to make it easier for users to dispatch messages. * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`. */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */ eventTime?: Date | null; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it. */ entityEventSequence?: string | null; accountInfo?: AccountInfoMetadata; } interface AccountInfoMetadata { /** ID of the Wix account associated with the event */ accountId: string; /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */ siteId?: string; /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */ parentAccountId?: string; } interface ParticipantDeletedEnvelope { metadata: EventMetadata; } /** @permissionScope Manage Online Programs * @permissionScopeId SCOPE.CHALLENGES.MANAGE * @permissionId ONLINE_PROGRAMS.PROGRAM_READ * @webhook * @eventType wix.challenges.v1.participant_deleted * @serviceIdentifier com.wixpress.achievements.api.v1.ParticipantsService * @slug deleted */ declare function onParticipantDeleted(handler: (event: ParticipantDeletedEnvelope) => void | Promise): void; interface ParticipantJoinedEnvelope { data: ParticipantJoined; metadata: EventMetadata; } /** @permissionId PARTICIPANTS.PARTICIPANT_READ * @webhook * @eventType wix.challenges.v1.participant_participant_joined * @serviceIdentifier com.wixpress.achievements.api.v1.ParticipantsService * @slug participant_joined */ declare function onParticipantJoined(handler: (event: ParticipantJoinedEnvelope) => void | Promise): void; interface ParticipantStepResolvedEnvelope { data: StepResolved; metadata: EventMetadata; } /** @permissionId PARTICIPANTS.PARTICIPANT_READ * @webhook * @eventType wix.challenges.v1.participant_step_resolved * @serviceIdentifier com.wixpress.achievements.api.v1.ParticipantsService * @slug step_resolved */ declare function onParticipantStepResolved(handler: (event: ParticipantStepResolvedEnvelope) => void | Promise): void; /** @public * @requiredField challengeId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.QueryParticipants */ declare function queryParticipants(challengeId: string, options?: QueryParticipantsOptions): Promise>; interface QueryParticipantsOptions { paging?: Paging; sorting?: QueryParticipantsRequestSorting; filter?: ParticipantsFilter; } /** @public * @requiredField challengeId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ListParticipants * @deprecated */ declare function listParticipants(challengeId: string, options?: ListParticipantsOptions): Promise>; interface ListParticipantsOptions { paging?: Paging; /** * @format GUID * @deprecated */ memberId?: string | null; states?: StateWithLiterals[]; memberIds?: string[] | null; /** @deprecated */ sortingCriterion?: SortingCriterionWithLiterals; /** @minLength 2 */ memberName?: string | null; sorting?: Sorting; } /** @public * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_JOIN * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.JoinParticipant */ declare function joinParticipant(challengeId: string, options?: JoinParticipantOptions): Promise>; interface JoinParticipantOptions { /** * ignored, taken from callScope instead * @format GUID * @deprecated ignored, taken from callScope instead * @targetRemovalDate 2024-09-01 */ memberId?: string; timeZone?: string; /** @format GUID */ actionId?: string; startDate?: string | null; } /** * owner adds participant to the challenge * @public * @documentationMaturity preview * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ADD * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.AddParticipant */ declare function addParticipant(challengeId: string, options?: AddParticipantOptions): Promise>; interface AddParticipantOptions { /** @format GUID */ memberId?: string; /** @format GUID */ actionId?: string; } /** * owner adds participants to the challenge * @public * @documentationMaturity preview * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ADD * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.AddParticipants */ declare function addParticipants(challengeId: string, options?: AddParticipantsOptions): Promise>; interface AddParticipantsOptions { /** * @format GUID * @maxSize 1000 */ memberIds?: string[]; /** @format GUID */ actionId?: string; } /** @public * @documentationMaturity preview * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ADD * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.AddAllParticipant */ declare function addAllParticipant(challengeId: string, options?: AddAllParticipantOptions): Promise; interface AddAllParticipantOptions { /** @format GUID */ excludeIds?: string[]; } /** @public * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_JOIN * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.CreateJoinRequest */ declare function createJoinRequest(challengeId: string, options?: CreateJoinRequestOptions): Promise>; interface CreateJoinRequestOptions { /** @format GUID */ memberId?: string; timeZone?: string; /** @format GUID */ actionId?: string; startDate?: string | null; } /** @public * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ADD * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.InviteParticipants */ declare function inviteParticipants(challengeId: string, options?: InviteParticipantsOptions): Promise>; interface InviteParticipantsOptions { memberIds?: string[]; /** @format GUID */ actionId?: string; } /** @public * @requiredField challengeId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ADD * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.InviteAllParticipants */ declare function inviteAllParticipants(challengeId: string, options?: InviteAllParticipantsOptions): Promise; interface InviteAllParticipantsOptions { /** @format GUID */ excludeIds?: string[]; } /** * returns participant by id * @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_READ * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.GetParticipant */ declare function getParticipant(identifiers: NonNullablePaths): Promise>; interface GetParticipantIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.UPDATE-PARTICIPANT * @fqn com.wixpress.achievements.api.v1.ParticipantsService.UpdateParticipant */ declare function updateParticipant(identifiers: NonNullablePaths, options?: UpdateParticipantOptions): Promise>; interface UpdateParticipantIdentifiers extends UpdateParticipantIdentifiersUpdateOneOf { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } /** @oneof */ interface UpdateParticipantIdentifiersUpdateOneOf { startDate?: string; } interface UpdateParticipantOptions extends UpdateParticipantOptionsUpdateOneOf { startDate?: string; /** @format GUID */ actionId?: string; } /** @oneof */ interface UpdateParticipantOptionsUpdateOneOf { startDate?: string; } /** * by owner - makes participant REMOVED. By participant himself - LEFT. * @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_REMOVE * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.DeleteParticipant */ declare function deleteParticipant(identifiers: NonNullablePaths, options?: DeleteParticipantOptions): Promise>; interface DeleteParticipantIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } interface DeleteParticipantOptions { /** @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.UPDATE-PARTICIPANT * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ReviveParticipant */ declare function reviveParticipant(identifiers: NonNullablePaths, options?: ReviveParticipantOptions): Promise>; interface ReviveParticipantIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } interface ReviveParticipantOptions { /** @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.UPDATE-PARTICIPANT * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ResetParticipantProgress */ declare function resetParticipantProgress(identifiers: NonNullablePaths, options?: ResetParticipantProgressOptions): Promise>; interface ResetParticipantProgressIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } interface ResetParticipantProgressOptions { timeZone?: string; startDate?: string | null; /** @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ISSUE_CERTIFICATE * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.IssueParticipantCertificate */ declare function issueParticipantCertificate(identifiers: NonNullablePaths): Promise>; interface IssueParticipantCertificateIdentifiers { /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; /** * Participant to issue manually certificate * @format GUID */ participantId: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_ISSUE_CERTIFICATE * @applicableIdentity APP * @fqn com.wixpress.achievements.api.v1.ParticipantsService.IssueCertificate */ declare function issueCertificate(identifiers: NonNullablePaths): Promise>; interface IssueCertificateIdentifiers { /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; /** * Participant to get certificate * @format GUID */ participantId: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_READ * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.GetCertificate */ declare function getCertificate(identifiers: NonNullablePaths): Promise>; interface GetCertificateIdentifiers { /** * Program id. TODO: really bad to have it here, needed for url * @format GUID */ challengeId: string; /** * Participant to get certificate * @format GUID */ participantId: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.CREATE-ORDER * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.CreatePaymentOrder */ declare function createPaymentOrder(identifiers: NonNullablePaths, options?: CreatePaymentOrderOptions): Promise>; interface CreatePaymentOrderIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; } interface CreatePaymentOrderOptions { /** @format GUID */ actionId?: string; timeZone?: string | null; startDate?: string | null; paymentType?: PaymentTypeWithLiterals; } /** * ---------------------------------------------------- Coupons ----------------------------------------------------- * @public * @requiredField couponCode * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.orderId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.CREATE-ORDER * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ApplyCouponToOrder */ declare function applyCouponToOrder(identifiers: NonNullablePaths, couponCode: string, options?: ApplyCouponToOrderOptions): Promise>; interface ApplyCouponToOrderIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ orderId: string; } interface ApplyCouponToOrderOptions { /** @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.couponId * @requiredField identifiers.orderId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.CREATE-ORDER * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.RemoveCouponFromOrder */ declare function removeCouponFromOrder(identifiers: NonNullablePaths, options?: RemoveCouponFromOrderOptions): Promise>; interface RemoveCouponFromOrderIdentifiers { /** @format GUID */ challengeId: string; /** @format GUID */ participantId: string; /** @format GUID */ orderId: string; /** @format GUID */ couponId: string; } interface RemoveCouponFromOrderOptions { /** @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ListSteps * @deprecated * @replacedBy Program Steps service List * @targetRemovalDate 2026-06-30 */ declare function listSteps(identifiers: NonNullablePaths, options?: ListStepsOptions): Promise>; interface ListStepsIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID within the challenge. GUID. * @format GUID */ participantId: string; } interface ListStepsOptions { /** Optional parent step ID to scope to sub-steps. */ parentId?: string; /** Optional absolute time window for time-based progress. */ timeInterval?: TimeInterval; /** Optional local date window for date-based progress. */ dateInterval?: DateInterval; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @requiredField identifiers.stepId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.GetStep * @deprecated * @replacedBy Program Steps service Get * @targetRemovalDate 2026-06-30 */ declare function getStep(identifiers: NonNullablePaths, options?: GetStepOptions): Promise>; interface GetStepIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Step ID (program step or resolved instance). */ stepId: string; } interface GetStepOptions { /** Optional absolute time window for time-based progress. */ timeInterval?: TimeInterval; /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @requiredField identifiers.stepId * @permissionId CHALLENGE-PARTICIPATE.COMPLETE-PARTICIPANT-STEP * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ResolveStep * @deprecated * @targetRemovalDate 2026-06-30 */ declare function resolveStep(identifiers: NonNullablePaths, options?: ResolveStepOptions): Promise>; interface ResolveStepIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Target step ID to resolve. */ stepId: string; } interface ResolveStepOptions { /** Resolution action to apply. */ status?: ResolutionStatusWithLiterals; /** Optional instructor feedback payload. */ feedback?: Feedback; /** Optional idempotency key for action tracking. */ actionId?: string; /** * Optional quiz submission to attach. GUID. * @format GUID */ quizSubmissionId?: string | null; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @requiredField identifiers.stepId * @permissionId CHALLENGE-PARTICIPATE.COMPLETE-PARTICIPANT-STEP * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.UpdateStepFeedback * @deprecated * @targetRemovalDate 2026-06-30 */ declare function updateStepFeedback(identifiers: NonNullablePaths, options?: UpdateStepFeedbackOptions): Promise>; interface UpdateStepFeedbackIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** Target step ID to update feedback for. */ stepId: string; } interface UpdateStepFeedbackOptions { /** New feedback payload. */ feedback?: Feedback; /** * Idempotency key for feedback update. GUID. * @format GUID */ actionId?: string; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.UPLOAD-MEDIA * @fqn com.wixpress.achievements.api.v1.ParticipantsService.GetMediaUploadInfo * @deprecated * @targetRemovalDate 2026-06-30 */ declare function getMediaUploadInfo(identifiers: NonNullablePaths, options?: GetMediaUploadInfoOptions): Promise>; interface GetMediaUploadInfoIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; } interface GetMediaUploadInfoOptions { /** Original filename to derive content-type and path. */ fileName?: string; } /** * ---------------------------------------------------- Sections -------------------------------------------------------- * @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.ListSections * @deprecated * @targetRemovalDate 2026-06-30 */ declare function listSections(identifiers: NonNullablePaths, options?: ListSectionsOptions): Promise>; interface ListSectionsIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; } interface ListSectionsOptions { /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } /** @public * @requiredField identifiers * @requiredField identifiers.challengeId * @requiredField identifiers.participantId * @requiredField identifiers.sectionId * @permissionId CHALLENGE-PARTICIPATE.FIND-PARTICIPANT * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.GetSection * @deprecated * @targetRemovalDate 2026-06-30 */ declare function getSection(identifiers: NonNullablePaths, options?: GetSectionOptions): Promise>; interface GetSectionIdentifiers { /** * Challenge/Program (tenant) ID. GUID. * @format GUID */ challengeId: string; /** * Participant entity ID. GUID. * @format GUID */ participantId: string; /** * Section ID to fetch. GUID. * @format GUID */ sectionId: string; } interface GetSectionOptions { /** Controls verbose description fields in response. */ descriptionFieldSet?: DescriptionFieldSetWithLiterals; } /** @public * @requiredField programId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_READ * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.MyProgram */ declare function myProgram(programId: string): Promise>; /** @public * @requiredField identifiers * @requiredField identifiers.programId * @requiredField identifiers.programStepId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_READ * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.MyProgramStep * @deprecated * @targetRemovalDate 2026-06-30 */ declare function myProgramStep(identifiers: NonNullablePaths, options?: MyProgramStepOptions): Promise>; interface MyProgramStepIdentifiers { programId: string; programStepId: string; } interface MyProgramStepOptions { descriptionFieldSet?: DescriptionFieldSetWithLiterals; } /** @public * @requiredField identifiers * @requiredField identifiers.programId * @requiredField identifiers.programSectionId * @permissionId ONLINE_PROGRAMS.PARTICIPANT_READ * @applicableIdentity APP * @applicableIdentity MEMBER * @fqn com.wixpress.achievements.api.v1.ParticipantsService.MyProgramSection * @deprecated * @targetRemovalDate 2026-06-30 */ declare function myProgramSection(identifiers: NonNullablePaths, options?: MyProgramSectionOptions): Promise>; interface MyProgramSectionIdentifiers { programId: string; programSectionId: string; } interface MyProgramSectionOptions { descriptionFieldSet?: DescriptionFieldSetWithLiterals; } export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddAllParticipantOptions, type AddAllParticipantRequest, type AddAllParticipantResponse, type AddParticipantOptions, type AddParticipantRequest, type AddParticipantResponse, type AddParticipantsOptions, type AddParticipantsRequest, type AddParticipantsResponse, type Added, type All, type ApplyCouponToOrderIdentifiers, type ApplyCouponToOrderOptions, type ApplyCouponToOrderRequest, type ApplyCouponToOrderResponse, type BaseEventMetadata, type Certificate, type ChallengeSection, type ChallengeStep, type ChallengeStepSettings, type Choice, ChoiceRightness, type ChoiceRightnessWithLiterals, type Choices, type Completed, type CompletionCriteria, type Container, type CreateJoinRequestOptions, type CreateJoinRequestRequest, type CreateJoinRequestResponse, type CreatePaymentOrderIdentifiers, type CreatePaymentOrderOptions, type CreatePaymentOrderRequest, type CreatePaymentOrderResponse, type DateInterval, type DeleteParticipantIdentifiers, type DeleteParticipantOptions, type DeleteParticipantRequest, type DeleteParticipantResponse, DescriptionFieldSet, type DescriptionFieldSetWithLiterals, type DomainEvent, type DomainEventBodyOneOf, DurationUnit, type DurationUnitWithLiterals, type EmbeddingSettings, type EntityCreatedEvent, type EntityDeletedEvent, type EntitySummary, type EntityUpdatedEvent, type EventMetadata, type Feedback, type FeedbackItem, type FeedbackItemChoice, type FeedbackItemSettings, type FeedbackItemType, type FeedbackItemTypeTypeOneOf, type FeedbackItemValueOneOf, type FocalPoint, type Free, type FreeCoupon, type GeneralSettings, type GeneralSettingsStepTypeOneOf, type GetCertificateIdentifiers, type GetCertificateRequest, type GetCertificateResponse, type GetMediaUploadInfoIdentifiers, type GetMediaUploadInfoOptions, type GetMediaUploadInfoRequest, type GetMediaUploadInfoResponse, type GetParticipantIdentifiers, type GetParticipantRequest, type GetParticipantResponse, type GetParticipantSectionRequest, type GetParticipantSectionResponse, type GetParticipantStepRequest, type GetParticipantStepResponse, type GetSectionIdentifiers, type GetSectionOptions, type GetStepIdentifiers, type GetStepOptions, type GroupSettings, type IdentificationData, type IdentificationDataIdOneOf, type IndividualSettings, type InvitationDetails, type InviteAllParticipantsOptions, type InviteAllParticipantsRequest, type InviteAllParticipantsResponse, type InviteParticipantsOptions, type InviteParticipantsRequest, type InviteParticipantsResponse, type IssueCertificateIdentifiers, type IssueCertificateRequest, type IssueCertificateResponse, type IssueParticipantCertificateIdentifiers, type IssueParticipantCertificateRequest, type IssueParticipantCertificateResponse, type JoinParticipantOptions, type JoinParticipantRequest, type JoinParticipantResponse, type JoinPath, type JoinPathPathOneOf, type ListParticipantSectionsRequest, type ListParticipantSectionsResponse, type ListParticipantStepsRequest, type ListParticipantStepsResponse, type ListParticipantsOptions, type ListParticipantsRequest, type ListParticipantsResponse, type ListSectionsIdentifiers, type ListSectionsOptions, type ListStepsIdentifiers, type ListStepsOptions, type MediaFeedbackItem, type MediaItem, type MediaItemMediaOneOf, type MediaItems, type Member, type MessageEnvelope, type MinThreshold, type MultipleChoiceFeedbackItem, type MyProgramRequest, type MyProgramResponse, type MyProgramSectionIdentifiers, type MyProgramSectionOptions, type MyProgramSectionRequest, type MyProgramSectionResponse, type MyProgramStepIdentifiers, type MyProgramStepOptions, type MyProgramStepRequest, type MyProgramStepResponse, type NumericFeedbackItem, type ObjectDescription, type Overdue, type Paging, type PaidPlan, type Participant, type ParticipantCertificateIssued, type ParticipantDeletedEnvelope, type ParticipantJoinDate, type ParticipantJoined, type ParticipantJoinedEnvelope, type ParticipantPerformance, type ParticipantSection, type ParticipantSectionStateTransition, type ParticipantSectionStateTransitionStateOneOf, type ParticipantStep, type ParticipantStepResolvedEnvelope, ParticipantStepState, type ParticipantStepStateTransition, type ParticipantStepStateWithLiterals, type ParticipantsFilter, ParticipationState, type ParticipationStateWithLiterals, PaymentType, type PaymentTypeWithLiterals, type Price, type Progress, type Quantity, type QuantityCriterion, type QuantityCriterionCriterionOneOf, type QuantityFeedbackItem, type QueryParticipantsOptions, type QueryParticipantsRequest, QueryParticipantsRequestJoinPath, type QueryParticipantsRequestJoinPathWithLiterals, type QueryParticipantsRequestSorting, QueryParticipantsRequestSortingCriterion, type QueryParticipantsRequestSortingCriterionWithLiterals, QueryParticipantsRequestSortingOrder, type QueryParticipantsRequestSortingOrderWithLiterals, type QueryParticipantsResponse, type QuizMigrationDetails, type QuizSettings, type QuizSubmission, type QuizSubmissionData, QuizType, type QuizTypeWithLiterals, type RecurrenceSchedule, type RecurrenceSettings, type RemoveCouponFromOrderIdentifiers, type RemoveCouponFromOrderOptions, type RemoveCouponFromOrderRequest, type RemoveCouponFromOrderResponse, type ResetParticipantProgressIdentifiers, type ResetParticipantProgressOptions, type ResetParticipantProgressRequest, type ResetParticipantProgressResponse, ResolutionStatus, type ResolutionStatusWithLiterals, type ResolveParticipantStepRequest, type ResolveParticipantStepResponse, type ResolveStepIdentifiers, type ResolveStepOptions, type RestoreInfo, type ReviveParticipantIdentifiers, type ReviveParticipantOptions, type ReviveParticipantRequest, type ReviveParticipantResponse, type Running, type Settings, type SinglePayment, type Sorting, SortingCriterion, type SortingCriterionWithLiterals, SortingOrder, type SortingOrderWithLiterals, type StartCondition, State, type StateTransition, type StateWithLiterals, Status, type StatusWithLiterals, type StepDependency, type StepDependencyDependencyTypeOneOf, type StepEvent, type StepId, type StepResolved, type StepsSummary, type TextFeedbackItem, type TimeDuration, type TimeInterval, type UpdateParticipantIdentifiers, type UpdateParticipantIdentifiersUpdateOneOf, type UpdateParticipantOptions, type UpdateParticipantOptionsUpdateOneOf, type UpdateParticipantRequest, type UpdateParticipantRequestUpdateOneOf, type UpdateParticipantResponse, type UpdateStepFeedbackIdentifiers, type UpdateStepFeedbackOptions, type UpdateStepFeedbackRequest, type UpdateStepFeedbackResponse, type VideoResolution, type VideoStepSettings, type VideoStepSettingsVideoSourceOneOf, type WaitingDate, type WaitingDependency, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixVideo, addAllParticipant, addParticipant, addParticipants, applyCouponToOrder, createJoinRequest, createPaymentOrder, deleteParticipant, getCertificate, getMediaUploadInfo, getParticipant, getSection, getStep, inviteAllParticipants, inviteParticipants, issueCertificate, issueParticipantCertificate, joinParticipant, listParticipants, listSections, listSteps, myProgram, myProgramSection, myProgramStep, onParticipantDeleted, onParticipantJoined, onParticipantStepResolved, queryParticipants, removeCouponFromOrder, resetParticipantProgress, resolveStep, reviveParticipant, updateParticipant, updateStepFeedback };