import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { P as Participant, C as CreateParticipantOptions, a as CreateParticipantApplicationErrors, U as UpdateParticipant, b as UpdateParticipantOptions, B as BulkCreateParticipantsOptions, c as BulkCreateParticipantsResponse, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, f as BulkCreateParticipantsForAllMembersResponse, I as IssueCertificateOptions, g as IssueCertificateResponse, h as IssueCertificateApplicationErrors, G as GetCertificateDownloadUrlResponse, i as GetCertificateDownloadUrlApplicationErrors, j as GetPremiumStatsResponse, k as GetParticipationStatsResponse, l as GetParticipantOptions, m as GetAccessStatusResponse, n as BulkUpdateParticipantTagsOptions, o as BulkUpdateParticipantTagsResponse, p as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterOptions, r as BulkUpdateParticipantTagsByFilterResponse, s as BulkUpdateParticipantTagsByFilterApplicationErrors, t as ParticipantSearch, S as SearchParticipantsOptions, u as SearchParticipantsResponse, v as ParticipantCompletedProgramEnvelope, w as ParticipantCreatedEnvelope, x as ParticipantDeletedEnvelope, y as ParticipantLeftEnvelope, z as ParticipantMissedProgramDeadlineEnvelope, A as ParticipantProgramDurationEndedEnvelope, D as ParticipantRemovedEnvelope, E as ParticipantTagsModifiedEnvelope, F as ParticipantUpdatedEnvelope, H as ParticipantQuery, Q as QueryParticipantsOptions, J as typedQueryParticipants, K as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-C37s4ZVe.js'; export { bU as AccountInfo, bZ as AccountInfoMetadata, bP as ActionEvent, b8 as Aggregation, bo as AggregationData, b9 as AggregationKindOneOf, bH as AggregationResults, bI as AggregationResultsResultOneOf, bv as AggregationResultsScalarResult, a0 as AggregationType, cf as AggregationTypeWithLiterals, aw as ApplicationError, bX as BaseEventMetadata, ax as BulkActionMetadata, T as BulkActionType, c7 as BulkActionTypeWithLiterals, aI as BulkCreateParticipantsForAllMembersRequest, at as BulkCreateParticipantsRequest, aB as BulkParticipantMigrationResult, au as BulkParticipantResult, b4 as BulkUpdateParticipantTagsByFilterRequest, b2 as BulkUpdateParticipantTagsRequest, b3 as BulkUpdateParticipantTagsResult, ay as BulkUpsertParticipantsMigrationRequest, aA as BulkUpsertParticipantsMigrationResponse, a7 as CertificateInfo, ci as CommonQueryWithEntityContext, cj as CommonSearchWithEntityContext, ap as CreateParticipantRequest, aq as CreateParticipantResponse, aZ as CursorPaging, bn as CursorPagingMetadata, b6 as CursorSearch, b7 as CursorSearchPagingMethodOneOf, b0 as Cursors, bg as DateHistogramAggregation, bD as DateHistogramResult, bF as DateHistogramResults, ah as Delete, aC as DeleteAllParticipantsMigrationRequest, aD as DeleteAllParticipantsMigrationResponse, aJ as DeleteParticipantRequest, aK as DeleteParticipantResponse, bJ as DomainEvent, bK as DomainEventBodyOneOf, bQ as Empty, a9 as EnrollmentInfo, aa as EnrollmentInfoPricingTypeDetailsOneOf, M as EnrollmentStatus, c3 as EnrollmentStatusWithLiterals, bL as EntityCreatedEvent, bO as EntityDeletedEvent, bN as EntityUpdatedEvent, bY as EventMetadata, bV as ExportParticipantsStatsRequest, bW as ExportParticipantsStatsResponse, ab as ExtendedFields, a5 as FreeCouponDetails, b1 as GetAccessStatusRequest, aM as GetCertificateDownloadUrlRequest, aN as GetCompletionStatsRequest, aO as GetCompletionStatsResponse, aS as GetParticipantRequest, aT as GetParticipantResponse, aQ as GetParticipationStatsRequest, aP as GetPremiumStatsRequest, bk as GroupByAggregation, bl as GroupByAggregationKindOneOf, bE as GroupByValueResults, bS as IdentificationData, bT as IdentificationDataIdOneOf, bb as IncludeMissingValuesOptions, $ as Interval, ce as IntervalWithLiterals, aL as IssueCertificateRequest, av as ItemMetadata, a8 as Member, bR as MessageEnvelope, Y as MissingValues, cb as MissingValuesWithLiterals, a1 as Mode, cg as ModeWithLiterals, bj as NestedAggregation, bh as NestedAggregationItem, bi as NestedAggregationItemKindOneOf, br as NestedAggregationResults, bs as NestedAggregationResultsResultOneOf, _ as NestedAggregationType, cd as NestedAggregationTypeWithLiterals, bA as NestedResultValue, bB as NestedResultValueResultOneOf, bG as NestedResults, bw as NestedValueAggregationResult, aY as Paging, a$ as PagingMetadataV2, a4 as PaidPlanDetails, ak as ParticipantCompletedProgram, ao as ParticipantLeft, az as ParticipantMigration, al as ParticipantMissedProgramDeadline, am as ParticipantProgramDurationEnded, b$ as ParticipantQuerySpec, an as ParticipantRemoved, c0 as ParticipantSearchSpec, aj as ParticipantTagsModified, b_ as ParticipantsQueryResult, L as PricingType, c2 as PricingTypeWithLiterals, aR as ProgramParticipationStats, a6 as Progress, N as ProgressStatus, c4 as ProgressStatusWithLiterals, aU as QueryParticipantsRequest, a_ as QueryParticipantsResponse, aV as QueryV2, aW as QueryV2PagingMethodOneOf, be as RangeAggregation, bq as RangeAggregationResult, ba as RangeBucket, by as RangeResult, bu as RangeResults, ae as ReindexMessage, af as ReindexMessageActionOneOf, aE as ReindexParticipantsSearchRequest, aF as ReindexParticipantsSearchResponse, R as RemovalReason, c5 as RemovalReasonWithLiterals, O as RequestedFields, c6 as RequestedFieldsWithLiterals, bM as RestoreInfo, bC as Results, bf as ScalarAggregation, bz as ScalarResult, Z as ScalarType, cc as ScalarTypeWithLiterals, ai as Schema, bm as SearchDetails, b5 as SearchParticipantsRequest, a3 as SinglePaymentDetails, X as SortDirection, ca as SortDirectionWithLiterals, V as SortOrder, c8 as SortOrderWithLiterals, W as SortType, c9 as SortTypeWithLiterals, aX as Sorting, aG as SynchronizeTimeCapsuleTasksRequest, aH as SynchronizeTimeCapsuleTasksResponse, ad as TagList, ac as Tags, ar as UpdateParticipantRequest, as as UpdateParticipantResponse, ag as Upsert, bc as ValueAggregation, bd as ValueAggregationOptionsOneOf, bp as ValueAggregationResult, bx as ValueResult, bt as ValueResults, a2 as WebhookIdentityType, ch as WebhookIdentityTypeWithLiterals, c1 as utils } from './online-programs-participants-v3-participant-participants.universal-C37s4ZVe.js'; declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature; interface CreateParticipantSignature { /** * Creates a participant. * * Returns an error if the member is already a participant in the specified program. * Use [Update Participant](https://dev.wix.com/docs/api-reference/business-management/online-programs/participants/update-participant) to modify existing participants. * @param - Participant to create. * @returns Created participant. */ (participant: NonNullablePaths, options?: CreateParticipantOptions): Promise & { __applicationErrorsType?: CreateParticipantApplicationErrors; }>; } declare function updateParticipant$1(httpClient: HttpClient): UpdateParticipantSignature; interface UpdateParticipantSignature { /** * Updates a participant's enrollment status or enrollment pricing details. * * Each time the participant is updated, `revision` increments by 1. The current `revision` must be passed when updating the participant. This ensures you're working with the latest participant and prevents unintended overwrites. * * Use this method to suspend or resume a participant by setting `enrollmentStatus` to * `SUSPENDED` or `JOINED`. To remove a participant, use `DeleteParticipant`. * Progress status is calculated from the participant's resolved steps and can't be updated. * @param - Participant ID. * @returns Updated participant. */ (_id: string, participant: NonNullablePaths, options?: UpdateParticipantOptions): Promise>; } declare function bulkCreateParticipants$1(httpClient: HttpClient): BulkCreateParticipantsSignature; interface BulkCreateParticipantsSignature { /** * Creates participants in bulk. * * All participants in a single bulk create request must belong to the same program. * Returns an error if the member is already a participant in the specified program. * * When `pricingType` is `SINGLE_PAYMENT`, provide `singlePaymentDetails`. * When `pricingType` is `PAID_PLAN`, provide `paidPlanDetails`. * When `pricingType` is `FREE_COUPON`, provide `freeCouponDetails`. * Other pricing types (`FREE`, `ADDED_MANUALLY`) don't require details. * @param - List of participants to create. */ (participants: NonNullablePaths[], options?: BulkCreateParticipantsOptions): Promise & { __applicationErrorsType?: BulkCreateParticipantsApplicationErrors; }>; } declare function bulkCreateParticipantsForAllMembers$1(httpClient: HttpClient): BulkCreateParticipantsForAllMembersSignature; interface BulkCreateParticipantsForAllMembersSignature { /** * Creates participants in bulk for all site members in a program, with an optional exclusion filter. * * Participants are created in the `JOINED` state with the join path set to `ADDED`. * Members who are already participants in the program will be skipped. * Only members who are not yet participants will be added. * @param - ID of the program for which to create participants for all site members in bulk. */ (programId: string, options?: BulkCreateParticipantsForAllMembersOptions): Promise>; } declare function deleteParticipant$1(httpClient: HttpClient): DeleteParticipantSignature; interface DeleteParticipantSignature { /** * Removes a participant from the program. * * The member will lose access to program content but will remain in any associated social groups. * @param - ID of the participant to delete. */ (participantId: string): Promise; } declare function issueCertificate$1(httpClient: HttpClient): IssueCertificateSignature; interface IssueCertificateSignature { /** * Manually issues a certificate to an active or finished participant. * * A finished participant has completed or failed the program, or was automatically removed. * The program must have a connected certificate reward. When authenticated as a site member, * the participant must have completed the program. * @param - ID of the participant to issue the certificate to. */ (participantId: string, options?: IssueCertificateOptions): Promise & { __applicationErrorsType?: IssueCertificateApplicationErrors; }>; } declare function getCertificateDownloadUrl$1(httpClient: HttpClient): GetCertificateDownloadUrlSignature; interface GetCertificateDownloadUrlSignature { /** * Retrieves a download URL for the participant's latest issued certificate. * * The URL is returned only after the certificate document finishes rendering. * @param - ID of the participant whose certificate download URL to retrieve. */ (participantId: string): Promise & { __applicationErrorsType?: GetCertificateDownloadUrlApplicationErrors; }>; } declare function getPremiumStats$1(httpClient: HttpClient): GetPremiumStatsSignature; interface GetPremiumStatsSignature { /** * Retrieves premium plan statistics for the site. */ (): Promise>; } declare function getParticipationStats$1(httpClient: HttpClient): GetParticipationStatsSignature; interface GetParticipationStatsSignature { /** * Retrieves site-wide participant statistics for the requested programs. * * The statistics aren't limited to the caller's own participation records. * @param - IDs of the programs to retrieve participant statistics for. */ (programIds: string[]): Promise>; } declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature; interface GetParticipantSignature { /** * Returns a participant by ID. * @param - ID of the participant to fetch. * @returns The retrieved participant. */ (participantId: string, options?: GetParticipantOptions): Promise>; } declare function getAccessStatus$1(httpClient: HttpClient): GetAccessStatusSignature; interface GetAccessStatusSignature { /** * Retrieves the access status for the current site, indicating whether participants can access * online programs or if access is blocked due to plan limitations or other restrictions. */ (): Promise>; } declare function bulkUpdateParticipantTags$1(httpClient: HttpClient): BulkUpdateParticipantTagsSignature; interface BulkUpdateParticipantTagsSignature { /** * Adds or removes tags on multiple participants. * * Specify which tags to assign and which tags to unassign. At least one of `assignTags` or `unassignTags` must be provided. * @param - IDs of the participants to update tags for. Provide 1 to 100 IDs. */ (participantIds: string[], options?: BulkUpdateParticipantTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors; }>; } declare function bulkUpdateParticipantTagsByFilter$1(httpClient: HttpClient): BulkUpdateParticipantTagsByFilterSignature; interface BulkUpdateParticipantTagsByFilterSignature { /** * Asynchronously updates tags on multiple participants that match the provided filter criteria. * * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job). * @param - WQL filter that selects the participants to update. */ (filter: Record, options?: BulkUpdateParticipantTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors; }>; } declare function searchParticipants$1(httpClient: HttpClient): SearchParticipantsSignature; interface SearchParticipantsSignature { /** * Retrieves a list of participants matching the search criteria. * * Results and aggregations include only the participant records that the caller is authorized to access. * @param - Query to search participants. */ (search: ParticipantSearch, options?: SearchParticipantsOptions): Promise>; } declare const onParticipantCompletedProgram$1: EventDefinition; declare const onParticipantCreated$1: EventDefinition; declare const onParticipantDeleted$1: EventDefinition; declare const onParticipantLeft$1: EventDefinition; declare const onParticipantMissedProgramDeadline$1: EventDefinition; declare const onParticipantProgramDurationEnded$1: EventDefinition; declare const onParticipantRemoved$1: EventDefinition; declare const onParticipantTagsModified$1: EventDefinition; declare const onParticipantUpdated$1: EventDefinition; declare function customQueryParticipants(httpClient: HttpClient): { (query: ParticipantQuery, options?: QueryParticipantsOptions): ReturnType; (options?: QueryParticipantsOptions): ParticipantsQueryBuilder; }; declare const createParticipant: MaybeContext & typeof createParticipant$1>; declare const updateParticipant: MaybeContext & typeof updateParticipant$1>; declare const bulkCreateParticipants: MaybeContext & typeof bulkCreateParticipants$1>; declare const bulkCreateParticipantsForAllMembers: MaybeContext & typeof bulkCreateParticipantsForAllMembers$1>; declare const deleteParticipant: MaybeContext & typeof deleteParticipant$1>; declare const issueCertificate: MaybeContext & typeof issueCertificate$1>; declare const getCertificateDownloadUrl: MaybeContext & typeof getCertificateDownloadUrl$1>; declare const getPremiumStats: MaybeContext & typeof getPremiumStats$1>; declare const getParticipationStats: MaybeContext & typeof getParticipationStats$1>; declare const getParticipant: MaybeContext & typeof getParticipant$1>; declare const getAccessStatus: MaybeContext & typeof getAccessStatus$1>; declare const bulkUpdateParticipantTags: MaybeContext & typeof bulkUpdateParticipantTags$1>; declare const bulkUpdateParticipantTagsByFilter: MaybeContext & typeof bulkUpdateParticipantTagsByFilter$1>; declare const searchParticipants: MaybeContext & typeof searchParticipants$1>; declare const queryParticipants: MaybeContext & typeof customQueryParticipants>; /** * Triggered when a participant completes a program. */ declare const onParticipantCompletedProgram: BuildEventDefinition & typeof onParticipantCompletedProgram$1; /** * Triggered when a participant is created. */ declare const onParticipantCreated: BuildEventDefinition & typeof onParticipantCreated$1; /** * Triggered when a participant is deleted. */ declare const onParticipantDeleted: BuildEventDefinition & typeof onParticipantDeleted$1; /** * Triggered when a participant voluntarily leaves a program. */ declare const onParticipantLeft: BuildEventDefinition & typeof onParticipantLeft$1; /** * Triggered when a participant misses a program deadline. */ declare const onParticipantMissedProgramDeadline: BuildEventDefinition & typeof onParticipantMissedProgramDeadline$1; /** * Triggered when a participant's program duration ends. */ declare const onParticipantProgramDurationEnded: BuildEventDefinition & typeof onParticipantProgramDurationEnded$1; /** * Triggered when an administrator removes a participant from a program. */ declare const onParticipantRemoved: BuildEventDefinition & typeof onParticipantRemoved$1; /** * Triggered when a participant's tags are modified. */ declare const onParticipantTagsModified: BuildEventDefinition & typeof onParticipantTagsModified$1; /** * Triggered when a participant is updated. */ declare const onParticipantUpdated: BuildEventDefinition & typeof onParticipantUpdated$1; export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, GetCertificateDownloadUrlApplicationErrors, GetCertificateDownloadUrlResponse, GetParticipantOptions, GetParticipationStatsResponse, GetPremiumStatsResponse, IssueCertificateApplicationErrors, IssueCertificateOptions, IssueCertificateResponse, Participant, ParticipantCompletedProgramEnvelope, ParticipantCreatedEnvelope, ParticipantDeletedEnvelope, ParticipantLeftEnvelope, ParticipantMissedProgramDeadlineEnvelope, ParticipantProgramDurationEndedEnvelope, ParticipantQuery, ParticipantRemovedEnvelope, ParticipantSearch, ParticipantTagsModifiedEnvelope, ParticipantUpdatedEnvelope, ParticipantsQueryBuilder, QueryParticipantsOptions, SearchParticipantsOptions, SearchParticipantsResponse, UpdateParticipant, UpdateParticipantOptions, bulkCreateParticipants, bulkCreateParticipantsForAllMembers, bulkUpdateParticipantTags, bulkUpdateParticipantTagsByFilter, createParticipant, deleteParticipant, getAccessStatus, getCertificateDownloadUrl, getParticipant, getParticipationStats, getPremiumStats, issueCertificate, onParticipantCompletedProgram, onParticipantCreated, onParticipantDeleted, onParticipantLeft, onParticipantMissedProgramDeadline, onParticipantProgramDurationEnded, onParticipantRemoved, onParticipantTagsModified, onParticipantUpdated, queryParticipants, searchParticipants, updateParticipant };