@wix/auto_sdk_online-programs_participants 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/cjs/index.d.ts +17 -4
  2. package/build/cjs/index.js +58 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js +50 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +30 -2
  8. package/build/cjs/meta.js +43 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{online-programs-participants-v3-participant-participants.universal-CUPgynYg.d.ts → online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.d.ts} +43 -2
  11. package/build/es/index.d.mts +17 -4
  12. package/build/es/index.mjs +57 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +49 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +30 -2
  18. package/build/es/meta.mjs +42 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{online-programs-participants-v3-participant-participants.universal-CUPgynYg.d.mts → online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.d.mts} +43 -2
  21. package/build/internal/cjs/index.d.ts +17 -4
  22. package/build/internal/cjs/index.typings.d.ts +2 -2
  23. package/build/internal/cjs/meta.d.ts +30 -2
  24. package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-D2QK1qH8.d.ts → online-programs-participants-v3-participant-participants.universal-SavvIH3H.d.ts} +43 -2
  25. package/build/internal/es/index.d.mts +17 -4
  26. package/build/internal/es/index.typings.d.mts +2 -2
  27. package/build/internal/es/meta.d.mts +30 -2
  28. package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-D2QK1qH8.d.mts → online-programs-participants-v3-participant-participants.universal-SavvIH3H.d.mts} +43 -2
  29. package/package.json +2 -2
@@ -670,6 +670,33 @@ interface GetPremiumStatsResponse {
670
670
  /** Limit of active participants on a site without premium */
671
671
  activeParticipantsLimit?: number;
672
672
  }
673
+ interface GetParticipationStatsRequest {
674
+ /**
675
+ * IDs of the programs to retrieve participant statistics for.
676
+ * @format GUID
677
+ * @minSize 1
678
+ * @maxSize 100
679
+ */
680
+ programIds: string[];
681
+ }
682
+ interface GetParticipationStatsResponse {
683
+ /**
684
+ * Participant statistics for each distinct requested program ID.
685
+ * @maxSize 100
686
+ */
687
+ participationStats?: ProgramParticipationStats[];
688
+ }
689
+ interface ProgramParticipationStats {
690
+ /**
691
+ * Program ID.
692
+ * @format GUID
693
+ */
694
+ programId?: string;
695
+ /** Number of participants who joined the program, including suspended and finished participants. */
696
+ participantsCount?: number;
697
+ /** Number of participants automatically removed when the program duration ended. */
698
+ autoRemovedCount?: number;
699
+ }
673
700
  interface GetParticipantRequest {
674
701
  /**
675
702
  * ID of the participant to fetch.
@@ -1816,7 +1843,11 @@ interface CreateParticipantOptions {
1816
1843
  fields?: RequestedFieldsWithLiterals[];
1817
1844
  }
1818
1845
  /**
1819
- * Updates a participant's enrollment status, progress status, or enrollment pricing details.
1846
+ * Updates a participant's enrollment status or enrollment pricing details.
1847
+ *
1848
+ * Use this method to suspend or resume a participant by setting `enrollment_status` to
1849
+ * `SUSPENDED` or `JOINED`. To remove a participant, use `DeleteParticipant`.
1850
+ * Progress status is calculated from the participant's resolved steps and can't be updated.
1820
1851
  * @param _id - Participant ID.
1821
1852
  * @public
1822
1853
  * @documentationMaturity preview
@@ -2009,6 +2040,16 @@ interface IssueCertificateOptions {
2009
2040
  * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats
2010
2041
  */
2011
2042
  declare function getPremiumStats(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
2043
+ /**
2044
+ * Retrieves participant statistics for the requested programs.
2045
+ * @param programIds - IDs of the programs to retrieve participant statistics for.
2046
+ * @public
2047
+ * @documentationMaturity preview
2048
+ * @requiredField programIds
2049
+ * @permissionId online_programs:participants:v3:participant:get_participation_stats
2050
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats
2051
+ */
2052
+ declare function getParticipationStats(programIds: string[]): Promise<NonNullablePaths<GetParticipationStatsResponse, `participationStats` | `participationStats.${number}.programId` | `participationStats.${number}.participantsCount` | `participationStats.${number}.autoRemovedCount`, 4>>;
2012
2053
  /**
2013
2054
  * Returns a participant by ID.
2014
2055
  * @param participantId - ID of the participant to fetch.
@@ -2444,4 +2485,4 @@ type ParticipantSearch = {
2444
2485
  timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
2445
2486
  };
2446
2487
 
2447
- export { type SinglePaymentDetails as $, type ParticipantUpdatedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantQuery as D, typedQueryParticipants as E, type ParticipantsQueryBuilder as F, type GetPremiumStatsResponse as G, PricingType as H, type IssueCertificateOptions as I, EnrollmentStatus as J, ProgressStatus as K, BulkActionType as L, SortOrder as M, SortType as N, SortDirection as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, MissingValues as T, type UpdateParticipant as U, ScalarType as V, NestedAggregationType as W, Interval as X, AggregationType as Y, Mode as Z, WebhookIdentityType as _, type CreateParticipantApplicationErrors as a, type CursorSearch as a$, type PaidPlanDetails as a0, type FreeCouponDetails as a1, type Progress as a2, type CertificateInfo as a3, type Member as a4, type EnrollmentInfo as a5, type EnrollmentInfoPricingTypeDetailsOneOf as a6, type ExtendedFields as a7, type Tags as a8, type TagList as a9, type ReindexParticipantsSearchRequest as aA, type ReindexParticipantsSearchResponse as aB, type SynchronizeTimeCapsuleTasksRequest as aC, type SynchronizeTimeCapsuleTasksResponse as aD, type BulkCreateParticipantsForAllMembersRequest as aE, type DeleteParticipantRequest as aF, type DeleteParticipantResponse as aG, type IssueCertificateRequest as aH, type GetCompletionStatsRequest as aI, type GetCompletionStatsResponse as aJ, type GetPremiumStatsRequest as aK, type GetParticipantRequest as aL, type GetParticipantResponse as aM, type QueryParticipantsRequest as aN, type QueryV2 as aO, type QueryV2PagingMethodOneOf as aP, type Sorting as aQ, type Paging as aR, type CursorPaging as aS, type QueryParticipantsResponse as aT, type PagingMetadataV2 as aU, type Cursors as aV, type GetAccessStatusRequest as aW, type BulkUpdateParticipantTagsRequest as aX, type BulkUpdateParticipantTagsResult as aY, type BulkUpdateParticipantTagsByFilterRequest as aZ, type SearchParticipantsRequest as a_, type ReindexMessage as aa, type ReindexMessageActionOneOf as ab, type Upsert as ac, type Delete as ad, type Schema as ae, type ParticipantTagsModified as af, type ParticipantCompletedProgram as ag, type ParticipantMissedProgramDeadline as ah, type ParticipantProgramDurationEnded as ai, type ParticipantRemoved as aj, type ParticipantLeft as ak, type CreateParticipantRequest as al, type CreateParticipantResponse as am, type UpdateParticipantRequest as an, type UpdateParticipantResponse as ao, type BulkCreateParticipantsRequest as ap, type BulkParticipantResult as aq, type ItemMetadata as ar, type ApplicationError as as, type BulkActionMetadata as at, type BulkUpsertParticipantsMigrationRequest as au, type ParticipantMigration as av, type BulkUpsertParticipantsMigrationResponse as aw, type BulkParticipantMigrationResult as ax, type DeleteAllParticipantsMigrationRequest as ay, type DeleteAllParticipantsMigrationResponse as az, type UpdateParticipantOptions as b, type BulkActionTypeWithLiterals as b$, type CursorSearchPagingMethodOneOf as b0, type Aggregation as b1, type AggregationKindOneOf as b2, type RangeBucket as b3, type IncludeMissingValuesOptions as b4, type ValueAggregation as b5, type ValueAggregationOptionsOneOf as b6, type RangeAggregation as b7, type ScalarAggregation as b8, type DateHistogramAggregation as b9, type AggregationResults as bA, type AggregationResultsResultOneOf as bB, type DomainEvent as bC, type DomainEventBodyOneOf as bD, type EntityCreatedEvent as bE, type RestoreInfo as bF, type EntityUpdatedEvent as bG, type EntityDeletedEvent as bH, type ActionEvent as bI, type Empty as bJ, type MessageEnvelope as bK, type IdentificationData as bL, type IdentificationDataIdOneOf as bM, type AccountInfo as bN, type ExportParticipantsStatsRequest as bO, type ExportParticipantsStatsResponse as bP, type BaseEventMetadata as bQ, type EventMetadata as bR, type AccountInfoMetadata as bS, type ParticipantsQueryResult as bT, type ParticipantQuerySpec as bU, type ParticipantSearchSpec as bV, utils as bW, type PricingTypeWithLiterals as bX, type EnrollmentStatusWithLiterals as bY, type ProgressStatusWithLiterals as bZ, type RequestedFieldsWithLiterals as b_, type NestedAggregationItem as ba, type NestedAggregationItemKindOneOf as bb, type NestedAggregation as bc, type GroupByAggregation as bd, type GroupByAggregationKindOneOf as be, type SearchDetails as bf, type CursorPagingMetadata as bg, type AggregationData as bh, type ValueAggregationResult as bi, type RangeAggregationResult as bj, type NestedAggregationResults as bk, type NestedAggregationResultsResultOneOf as bl, type ValueResults as bm, type RangeResults as bn, type AggregationResultsScalarResult as bo, type NestedValueAggregationResult as bp, type ValueResult as bq, type RangeResult as br, type ScalarResult as bs, type NestedResultValue as bt, type NestedResultValueResultOneOf as bu, type Results as bv, type DateHistogramResult as bw, type GroupByValueResults as bx, type DateHistogramResults as by, type NestedResults as bz, type BulkCreateParticipantsResponse as c, type SortOrderWithLiterals as c0, type SortTypeWithLiterals as c1, type SortDirectionWithLiterals as c2, type MissingValuesWithLiterals as c3, type ScalarTypeWithLiterals as c4, type NestedAggregationTypeWithLiterals as c5, type IntervalWithLiterals as c6, type AggregationTypeWithLiterals as c7, type ModeWithLiterals as c8, type WebhookIdentityTypeWithLiterals as c9, type CommonQueryWithEntityContext as ca, type CommonSearchWithEntityContext as cb, onParticipantCompletedProgram as cc, onParticipantCreated as cd, onParticipantDeleted as ce, onParticipantLeft as cf, onParticipantMissedProgramDeadline as cg, onParticipantProgramDurationEnded as ch, onParticipantRemoved as ci, onParticipantTagsModified as cj, onParticipantUpdated as ck, createParticipant as cl, updateParticipant as cm, bulkCreateParticipants as cn, bulkCreateParticipantsForAllMembers as co, deleteParticipant as cp, issueCertificate as cq, getPremiumStats as cr, getParticipant as cs, queryParticipants as ct, getAccessStatus as cu, bulkUpdateParticipantTags as cv, bulkUpdateParticipantTagsByFilter as cw, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetParticipantOptions as i, type GetAccessStatusResponse as j, type BulkUpdateParticipantTagsOptions as k, type BulkUpdateParticipantTagsResponse as l, type BulkUpdateParticipantTagsApplicationErrors as m, type BulkUpdateParticipantTagsByFilterOptions as n, type BulkUpdateParticipantTagsByFilterResponse as o, type BulkUpdateParticipantTagsByFilterApplicationErrors as p, type ParticipantSearch as q, type SearchParticipantsResponse as r, type ParticipantCompletedProgramEnvelope as s, type ParticipantCreatedEnvelope as t, type ParticipantDeletedEnvelope as u, type ParticipantLeftEnvelope as v, type ParticipantMissedProgramDeadlineEnvelope as w, type ParticipantProgramDurationEndedEnvelope as x, type ParticipantRemovedEnvelope as y, type ParticipantTagsModifiedEnvelope as z };
2488
+ export { WebhookIdentityType as $, type ParticipantTagsModifiedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantUpdatedEnvelope as D, type ParticipantQuery as E, typedQueryParticipants as F, type GetPremiumStatsResponse as G, type ParticipantsQueryBuilder as H, type IssueCertificateOptions as I, PricingType as J, EnrollmentStatus as K, ProgressStatus as L, BulkActionType as M, SortOrder as N, SortType as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, SortDirection as T, type UpdateParticipant as U, MissingValues as V, ScalarType as W, NestedAggregationType as X, Interval as Y, AggregationType as Z, Mode as _, type CreateParticipantApplicationErrors as a, type BulkUpdateParticipantTagsResult as a$, type SinglePaymentDetails as a0, type PaidPlanDetails as a1, type FreeCouponDetails as a2, type Progress as a3, type CertificateInfo as a4, type Member as a5, type EnrollmentInfo as a6, type EnrollmentInfoPricingTypeDetailsOneOf as a7, type ExtendedFields as a8, type Tags as a9, type DeleteAllParticipantsMigrationResponse as aA, type ReindexParticipantsSearchRequest as aB, type ReindexParticipantsSearchResponse as aC, type SynchronizeTimeCapsuleTasksRequest as aD, type SynchronizeTimeCapsuleTasksResponse as aE, type BulkCreateParticipantsForAllMembersRequest as aF, type DeleteParticipantRequest as aG, type DeleteParticipantResponse as aH, type IssueCertificateRequest as aI, type GetCompletionStatsRequest as aJ, type GetCompletionStatsResponse as aK, type GetPremiumStatsRequest as aL, type GetParticipationStatsRequest as aM, type ProgramParticipationStats as aN, type GetParticipantRequest as aO, type GetParticipantResponse as aP, type QueryParticipantsRequest as aQ, type QueryV2 as aR, type QueryV2PagingMethodOneOf as aS, type Sorting as aT, type Paging as aU, type CursorPaging as aV, type QueryParticipantsResponse as aW, type PagingMetadataV2 as aX, type Cursors as aY, type GetAccessStatusRequest as aZ, type BulkUpdateParticipantTagsRequest as a_, type TagList as aa, type ReindexMessage as ab, type ReindexMessageActionOneOf as ac, type Upsert as ad, type Delete as ae, type Schema as af, type ParticipantTagsModified as ag, type ParticipantCompletedProgram as ah, type ParticipantMissedProgramDeadline as ai, type ParticipantProgramDurationEnded as aj, type ParticipantRemoved as ak, type ParticipantLeft as al, type CreateParticipantRequest as am, type CreateParticipantResponse as an, type UpdateParticipantRequest as ao, type UpdateParticipantResponse as ap, type BulkCreateParticipantsRequest as aq, type BulkParticipantResult as ar, type ItemMetadata as as, type ApplicationError as at, type BulkActionMetadata as au, type BulkUpsertParticipantsMigrationRequest as av, type ParticipantMigration as aw, type BulkUpsertParticipantsMigrationResponse as ax, type BulkParticipantMigrationResult as ay, type DeleteAllParticipantsMigrationRequest as az, type UpdateParticipantOptions as b, type EnrollmentStatusWithLiterals as b$, type BulkUpdateParticipantTagsByFilterRequest as b0, type SearchParticipantsRequest as b1, type CursorSearch as b2, type CursorSearchPagingMethodOneOf as b3, type Aggregation as b4, type AggregationKindOneOf as b5, type RangeBucket as b6, type IncludeMissingValuesOptions as b7, type ValueAggregation as b8, type ValueAggregationOptionsOneOf as b9, type GroupByValueResults as bA, type DateHistogramResults as bB, type NestedResults as bC, type AggregationResults as bD, type AggregationResultsResultOneOf as bE, type DomainEvent as bF, type DomainEventBodyOneOf as bG, type EntityCreatedEvent as bH, type RestoreInfo as bI, type EntityUpdatedEvent as bJ, type EntityDeletedEvent as bK, type ActionEvent as bL, type Empty as bM, type MessageEnvelope as bN, type IdentificationData as bO, type IdentificationDataIdOneOf as bP, type AccountInfo as bQ, type ExportParticipantsStatsRequest as bR, type ExportParticipantsStatsResponse as bS, type BaseEventMetadata as bT, type EventMetadata as bU, type AccountInfoMetadata as bV, type ParticipantsQueryResult as bW, type ParticipantQuerySpec as bX, type ParticipantSearchSpec as bY, utils as bZ, type PricingTypeWithLiterals as b_, type RangeAggregation as ba, type ScalarAggregation as bb, type DateHistogramAggregation as bc, type NestedAggregationItem as bd, type NestedAggregationItemKindOneOf as be, type NestedAggregation as bf, type GroupByAggregation as bg, type GroupByAggregationKindOneOf as bh, type SearchDetails as bi, type CursorPagingMetadata as bj, type AggregationData as bk, type ValueAggregationResult as bl, type RangeAggregationResult as bm, type NestedAggregationResults as bn, type NestedAggregationResultsResultOneOf as bo, type ValueResults as bp, type RangeResults as bq, type AggregationResultsScalarResult as br, type NestedValueAggregationResult as bs, type ValueResult as bt, type RangeResult as bu, type ScalarResult as bv, type NestedResultValue as bw, type NestedResultValueResultOneOf as bx, type Results as by, type DateHistogramResult as bz, type BulkCreateParticipantsResponse as c, type ProgressStatusWithLiterals as c0, type RequestedFieldsWithLiterals as c1, type BulkActionTypeWithLiterals as c2, type SortOrderWithLiterals as c3, type SortTypeWithLiterals as c4, type SortDirectionWithLiterals as c5, type MissingValuesWithLiterals as c6, type ScalarTypeWithLiterals as c7, type NestedAggregationTypeWithLiterals as c8, type IntervalWithLiterals as c9, bulkUpdateParticipantTagsByFilter as cA, type AggregationTypeWithLiterals as ca, type ModeWithLiterals as cb, type WebhookIdentityTypeWithLiterals as cc, type CommonQueryWithEntityContext as cd, type CommonSearchWithEntityContext as ce, onParticipantCompletedProgram as cf, onParticipantCreated as cg, onParticipantDeleted as ch, onParticipantLeft as ci, onParticipantMissedProgramDeadline as cj, onParticipantProgramDurationEnded as ck, onParticipantRemoved as cl, onParticipantTagsModified as cm, onParticipantUpdated as cn, createParticipant as co, updateParticipant as cp, bulkCreateParticipants as cq, bulkCreateParticipantsForAllMembers as cr, deleteParticipant as cs, issueCertificate as ct, getPremiumStats as cu, getParticipationStats as cv, getParticipant as cw, queryParticipants as cx, getAccessStatus as cy, bulkUpdateParticipantTags as cz, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetParticipationStatsResponse as i, type GetParticipantOptions as j, type GetAccessStatusResponse as k, type BulkUpdateParticipantTagsOptions as l, type BulkUpdateParticipantTagsResponse as m, type BulkUpdateParticipantTagsApplicationErrors as n, type BulkUpdateParticipantTagsByFilterOptions as o, type BulkUpdateParticipantTagsByFilterResponse as p, type BulkUpdateParticipantTagsByFilterApplicationErrors as q, type ParticipantSearch as r, type SearchParticipantsResponse as s, type ParticipantCompletedProgramEnvelope as t, type ParticipantCreatedEnvelope as u, type ParticipantDeletedEnvelope as v, type ParticipantLeftEnvelope as w, type ParticipantMissedProgramDeadlineEnvelope as x, type ParticipantProgramDurationEndedEnvelope as y, type ParticipantRemovedEnvelope as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- 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 GetPremiumStatsResponse, i as GetParticipantOptions, j as GetAccessStatusResponse, k as BulkUpdateParticipantTagsOptions, l as BulkUpdateParticipantTagsResponse, m as BulkUpdateParticipantTagsApplicationErrors, n as BulkUpdateParticipantTagsByFilterOptions, o as BulkUpdateParticipantTagsByFilterResponse, p as BulkUpdateParticipantTagsByFilterApplicationErrors, q as ParticipantSearch, S as SearchParticipantsOptions, r as SearchParticipantsResponse, s as ParticipantCompletedProgramEnvelope, t as ParticipantCreatedEnvelope, u as ParticipantDeletedEnvelope, v as ParticipantLeftEnvelope, w as ParticipantMissedProgramDeadlineEnvelope, x as ParticipantProgramDurationEndedEnvelope, y as ParticipantRemovedEnvelope, z as ParticipantTagsModifiedEnvelope, A as ParticipantUpdatedEnvelope, D as ParticipantQuery, Q as QueryParticipantsOptions, E as typedQueryParticipants, F as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-CUPgynYg.mjs';
3
- export { bN as AccountInfo, bS as AccountInfoMetadata, bI as ActionEvent, b1 as Aggregation, bh as AggregationData, b2 as AggregationKindOneOf, bA as AggregationResults, bB as AggregationResultsResultOneOf, bo as AggregationResultsScalarResult, Y as AggregationType, c7 as AggregationTypeWithLiterals, as as ApplicationError, bQ as BaseEventMetadata, at as BulkActionMetadata, L as BulkActionType, b$ as BulkActionTypeWithLiterals, aE as BulkCreateParticipantsForAllMembersRequest, ap as BulkCreateParticipantsRequest, ax as BulkParticipantMigrationResult, aq as BulkParticipantResult, aZ as BulkUpdateParticipantTagsByFilterRequest, aX as BulkUpdateParticipantTagsRequest, aY as BulkUpdateParticipantTagsResult, au as BulkUpsertParticipantsMigrationRequest, aw as BulkUpsertParticipantsMigrationResponse, a3 as CertificateInfo, ca as CommonQueryWithEntityContext, cb as CommonSearchWithEntityContext, al as CreateParticipantRequest, am as CreateParticipantResponse, aS as CursorPaging, bg as CursorPagingMetadata, a$ as CursorSearch, b0 as CursorSearchPagingMethodOneOf, aV as Cursors, b9 as DateHistogramAggregation, bw as DateHistogramResult, by as DateHistogramResults, ad as Delete, ay as DeleteAllParticipantsMigrationRequest, az as DeleteAllParticipantsMigrationResponse, aF as DeleteParticipantRequest, aG as DeleteParticipantResponse, bC as DomainEvent, bD as DomainEventBodyOneOf, bJ as Empty, a5 as EnrollmentInfo, a6 as EnrollmentInfoPricingTypeDetailsOneOf, J as EnrollmentStatus, bY as EnrollmentStatusWithLiterals, bE as EntityCreatedEvent, bH as EntityDeletedEvent, bG as EntityUpdatedEvent, bR as EventMetadata, bO as ExportParticipantsStatsRequest, bP as ExportParticipantsStatsResponse, a7 as ExtendedFields, a1 as FreeCouponDetails, aW as GetAccessStatusRequest, aI as GetCompletionStatsRequest, aJ as GetCompletionStatsResponse, aL as GetParticipantRequest, aM as GetParticipantResponse, aK as GetPremiumStatsRequest, bd as GroupByAggregation, be as GroupByAggregationKindOneOf, bx as GroupByValueResults, bL as IdentificationData, bM as IdentificationDataIdOneOf, b4 as IncludeMissingValuesOptions, X as Interval, c6 as IntervalWithLiterals, aH as IssueCertificateRequest, ar as ItemMetadata, a4 as Member, bK as MessageEnvelope, T as MissingValues, c3 as MissingValuesWithLiterals, Z as Mode, c8 as ModeWithLiterals, bc as NestedAggregation, ba as NestedAggregationItem, bb as NestedAggregationItemKindOneOf, bk as NestedAggregationResults, bl as NestedAggregationResultsResultOneOf, W as NestedAggregationType, c5 as NestedAggregationTypeWithLiterals, bt as NestedResultValue, bu as NestedResultValueResultOneOf, bz as NestedResults, bp as NestedValueAggregationResult, aR as Paging, aU as PagingMetadataV2, a0 as PaidPlanDetails, ag as ParticipantCompletedProgram, ak as ParticipantLeft, av as ParticipantMigration, ah as ParticipantMissedProgramDeadline, ai as ParticipantProgramDurationEnded, bU as ParticipantQuerySpec, aj as ParticipantRemoved, bV as ParticipantSearchSpec, af as ParticipantTagsModified, bT as ParticipantsQueryResult, H as PricingType, bX as PricingTypeWithLiterals, a2 as Progress, K as ProgressStatus, bZ as ProgressStatusWithLiterals, aN as QueryParticipantsRequest, aT as QueryParticipantsResponse, aO as QueryV2, aP as QueryV2PagingMethodOneOf, b7 as RangeAggregation, bj as RangeAggregationResult, b3 as RangeBucket, br as RangeResult, bn as RangeResults, aa as ReindexMessage, ab as ReindexMessageActionOneOf, aA as ReindexParticipantsSearchRequest, aB as ReindexParticipantsSearchResponse, R as RequestedFields, b_ as RequestedFieldsWithLiterals, bF as RestoreInfo, bv as Results, b8 as ScalarAggregation, bs as ScalarResult, V as ScalarType, c4 as ScalarTypeWithLiterals, ae as Schema, bf as SearchDetails, a_ as SearchParticipantsRequest, $ as SinglePaymentDetails, O as SortDirection, c2 as SortDirectionWithLiterals, M as SortOrder, c0 as SortOrderWithLiterals, N as SortType, c1 as SortTypeWithLiterals, aQ as Sorting, aC as SynchronizeTimeCapsuleTasksRequest, aD as SynchronizeTimeCapsuleTasksResponse, a9 as TagList, a8 as Tags, an as UpdateParticipantRequest, ao as UpdateParticipantResponse, ac as Upsert, b5 as ValueAggregation, b6 as ValueAggregationOptionsOneOf, bi as ValueAggregationResult, bq as ValueResult, bm as ValueResults, _ as WebhookIdentityType, c9 as WebhookIdentityTypeWithLiterals, bW as utils } from './online-programs-participants-v3-participant-participants.universal-CUPgynYg.mjs';
2
+ 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 GetPremiumStatsResponse, i as GetParticipationStatsResponse, j as GetParticipantOptions, k as GetAccessStatusResponse, l as BulkUpdateParticipantTagsOptions, m as BulkUpdateParticipantTagsResponse, n as BulkUpdateParticipantTagsApplicationErrors, o as BulkUpdateParticipantTagsByFilterOptions, p as BulkUpdateParticipantTagsByFilterResponse, q as BulkUpdateParticipantTagsByFilterApplicationErrors, r as ParticipantSearch, S as SearchParticipantsOptions, s as SearchParticipantsResponse, t as ParticipantCompletedProgramEnvelope, u as ParticipantCreatedEnvelope, v as ParticipantDeletedEnvelope, w as ParticipantLeftEnvelope, x as ParticipantMissedProgramDeadlineEnvelope, y as ParticipantProgramDurationEndedEnvelope, z as ParticipantRemovedEnvelope, A as ParticipantTagsModifiedEnvelope, D as ParticipantUpdatedEnvelope, E as ParticipantQuery, Q as QueryParticipantsOptions, F as typedQueryParticipants, H as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.mjs';
3
+ export { bQ as AccountInfo, bV as AccountInfoMetadata, bL as ActionEvent, b4 as Aggregation, bk as AggregationData, b5 as AggregationKindOneOf, bD as AggregationResults, bE as AggregationResultsResultOneOf, br as AggregationResultsScalarResult, Z as AggregationType, ca as AggregationTypeWithLiterals, at as ApplicationError, bT as BaseEventMetadata, au as BulkActionMetadata, M as BulkActionType, c2 as BulkActionTypeWithLiterals, aF as BulkCreateParticipantsForAllMembersRequest, aq as BulkCreateParticipantsRequest, ay as BulkParticipantMigrationResult, ar as BulkParticipantResult, b0 as BulkUpdateParticipantTagsByFilterRequest, a_ as BulkUpdateParticipantTagsRequest, a$ as BulkUpdateParticipantTagsResult, av as BulkUpsertParticipantsMigrationRequest, ax as BulkUpsertParticipantsMigrationResponse, a4 as CertificateInfo, cd as CommonQueryWithEntityContext, ce as CommonSearchWithEntityContext, am as CreateParticipantRequest, an as CreateParticipantResponse, aV as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, b3 as CursorSearchPagingMethodOneOf, aY as Cursors, bc as DateHistogramAggregation, bz as DateHistogramResult, bB as DateHistogramResults, ae as Delete, az as DeleteAllParticipantsMigrationRequest, aA as DeleteAllParticipantsMigrationResponse, aG as DeleteParticipantRequest, aH as DeleteParticipantResponse, bF as DomainEvent, bG as DomainEventBodyOneOf, bM as Empty, a6 as EnrollmentInfo, a7 as EnrollmentInfoPricingTypeDetailsOneOf, K as EnrollmentStatus, b$ as EnrollmentStatusWithLiterals, bH as EntityCreatedEvent, bK as EntityDeletedEvent, bJ as EntityUpdatedEvent, bU as EventMetadata, bR as ExportParticipantsStatsRequest, bS as ExportParticipantsStatsResponse, a8 as ExtendedFields, a2 as FreeCouponDetails, aZ as GetAccessStatusRequest, aJ as GetCompletionStatsRequest, aK as GetCompletionStatsResponse, aO as GetParticipantRequest, aP as GetParticipantResponse, aM as GetParticipationStatsRequest, aL as GetPremiumStatsRequest, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, bO as IdentificationData, bP as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, Y as Interval, c9 as IntervalWithLiterals, aI as IssueCertificateRequest, as as ItemMetadata, a5 as Member, bN as MessageEnvelope, V as MissingValues, c6 as MissingValuesWithLiterals, _ as Mode, cb as ModeWithLiterals, bf as NestedAggregation, bd as NestedAggregationItem, be as NestedAggregationItemKindOneOf, bn as NestedAggregationResults, bo as NestedAggregationResultsResultOneOf, X as NestedAggregationType, c8 as NestedAggregationTypeWithLiterals, bw as NestedResultValue, bx as NestedResultValueResultOneOf, bC as NestedResults, bs as NestedValueAggregationResult, aU as Paging, aX as PagingMetadataV2, a1 as PaidPlanDetails, ah as ParticipantCompletedProgram, al as ParticipantLeft, aw as ParticipantMigration, ai as ParticipantMissedProgramDeadline, aj as ParticipantProgramDurationEnded, bX as ParticipantQuerySpec, ak as ParticipantRemoved, bY as ParticipantSearchSpec, ag as ParticipantTagsModified, bW as ParticipantsQueryResult, J as PricingType, b_ as PricingTypeWithLiterals, aN as ProgramParticipationStats, a3 as Progress, L as ProgressStatus, c0 as ProgressStatusWithLiterals, aQ as QueryParticipantsRequest, aW as QueryParticipantsResponse, aR as QueryV2, aS as QueryV2PagingMethodOneOf, ba as RangeAggregation, bm as RangeAggregationResult, b6 as RangeBucket, bu as RangeResult, bq as RangeResults, ab as ReindexMessage, ac as ReindexMessageActionOneOf, aB as ReindexParticipantsSearchRequest, aC as ReindexParticipantsSearchResponse, R as RequestedFields, c1 as RequestedFieldsWithLiterals, bI as RestoreInfo, by as Results, bb as ScalarAggregation, bv as ScalarResult, W as ScalarType, c7 as ScalarTypeWithLiterals, af as Schema, bi as SearchDetails, b1 as SearchParticipantsRequest, a0 as SinglePaymentDetails, T as SortDirection, c5 as SortDirectionWithLiterals, N as SortOrder, c3 as SortOrderWithLiterals, O as SortType, c4 as SortTypeWithLiterals, aT as Sorting, aD as SynchronizeTimeCapsuleTasksRequest, aE as SynchronizeTimeCapsuleTasksResponse, aa as TagList, a9 as Tags, ao as UpdateParticipantRequest, ap as UpdateParticipantResponse, ad as Upsert, b8 as ValueAggregation, b9 as ValueAggregationOptionsOneOf, bl as ValueAggregationResult, bt as ValueResult, bp as ValueResults, $ as WebhookIdentityType, cc as WebhookIdentityTypeWithLiterals, bZ as utils } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.mjs';
4
4
 
5
5
  declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
6
6
  interface CreateParticipantSignature {
@@ -19,7 +19,11 @@ interface CreateParticipantSignature {
19
19
  declare function updateParticipant$1(httpClient: HttpClient): UpdateParticipantSignature;
20
20
  interface UpdateParticipantSignature {
21
21
  /**
22
- * Updates a participant's enrollment status, progress status, or enrollment pricing details.
22
+ * Updates a participant's enrollment status or enrollment pricing details.
23
+ *
24
+ * Use this method to suspend or resume a participant by setting `enrollment_status` to
25
+ * `SUSPENDED` or `JOINED`. To remove a participant, use `DeleteParticipant`.
26
+ * Progress status is calculated from the participant's resolved steps and can't be updated.
23
27
  * @param - Participant ID.
24
28
  * @returns Updated participant
25
29
  */
@@ -82,6 +86,14 @@ interface GetPremiumStatsSignature {
82
86
  */
83
87
  (): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
84
88
  }
89
+ declare function getParticipationStats$1(httpClient: HttpClient): GetParticipationStatsSignature;
90
+ interface GetParticipationStatsSignature {
91
+ /**
92
+ * Retrieves participant statistics for the requested programs.
93
+ * @param - IDs of the programs to retrieve participant statistics for.
94
+ */
95
+ (programIds: string[]): Promise<NonNullablePaths<GetParticipationStatsResponse, `participationStats` | `participationStats.${number}.programId` | `participationStats.${number}.participantsCount` | `participationStats.${number}.autoRemovedCount`, 4>>;
96
+ }
85
97
  declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature;
86
98
  interface GetParticipantSignature {
87
99
  /**
@@ -154,6 +166,7 @@ declare const bulkCreateParticipantsForAllMembers: MaybeContext<BuildRESTFunctio
154
166
  declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
155
167
  declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
156
168
  declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
169
+ declare const getParticipationStats: MaybeContext<BuildRESTFunction<typeof getParticipationStats$1> & typeof getParticipationStats$1>;
157
170
  declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
158
171
  declare const getAccessStatus: MaybeContext<BuildRESTFunction<typeof getAccessStatus$1> & typeof getAccessStatus$1>;
159
172
  declare const bulkUpdateParticipantTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTags$1> & typeof bulkUpdateParticipantTags$1>;
@@ -197,4 +210,4 @@ declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipa
197
210
  */
198
211
  declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
199
212
 
200
- export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, GetParticipantOptions, 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, getParticipant, getPremiumStats, issueCertificate, onParticipantCompletedProgram, onParticipantCreated, onParticipantDeleted, onParticipantLeft, onParticipantMissedProgramDeadline, onParticipantProgramDurationEnded, onParticipantRemoved, onParticipantTagsModified, onParticipantUpdated, queryParticipants, searchParticipants, updateParticipant };
213
+ export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, 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, getParticipant, getParticipationStats, getPremiumStats, issueCertificate, onParticipantCompletedProgram, onParticipantCreated, onParticipantDeleted, onParticipantLeft, onParticipantMissedProgramDeadline, onParticipantProgramDurationEnded, onParticipantRemoved, onParticipantTagsModified, onParticipantUpdated, queryParticipants, searchParticipants, updateParticipant };
@@ -453,6 +453,27 @@ function getPremiumStats(payload) {
453
453
  }
454
454
  return __getPremiumStats;
455
455
  }
456
+ function getParticipationStats(payload) {
457
+ function __getParticipationStats({ host }) {
458
+ const metadata = {
459
+ entityFqdn: "wix.online_programs.participants.v3.participant",
460
+ method: "POST",
461
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
462
+ packageName: PACKAGE_NAME,
463
+ migrationOptions: {
464
+ optInTransformResponse: true
465
+ },
466
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
467
+ protoPath: "/v3/participants/stats",
468
+ data: payload,
469
+ host
470
+ }),
471
+ data: payload
472
+ };
473
+ return metadata;
474
+ }
475
+ return __getParticipationStats;
476
+ }
456
477
  function getParticipant(payload) {
457
478
  function __getParticipant({ host }) {
458
479
  const metadata = {
@@ -996,6 +1017,33 @@ async function getPremiumStats2() {
996
1017
  throw transformedError;
997
1018
  }
998
1019
  }
1020
+ async function getParticipationStats2(programIds) {
1021
+ const { httpClient, sideEffects } = arguments[1];
1022
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1023
+ programIds
1024
+ });
1025
+ const reqOpts = getParticipationStats(
1026
+ payload
1027
+ );
1028
+ sideEffects?.onSiteCall?.();
1029
+ try {
1030
+ const result = await httpClient.request(reqOpts);
1031
+ sideEffects?.onSuccess?.(result);
1032
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1033
+ } catch (err) {
1034
+ const transformedError = sdkTransformError(
1035
+ err,
1036
+ {
1037
+ spreadPathsToArguments: {},
1038
+ explicitPathsToArguments: { programIds: "$[0]" },
1039
+ singleArgumentUnchanged: false
1040
+ },
1041
+ ["programIds"]
1042
+ );
1043
+ sideEffects?.onError?.(err);
1044
+ throw transformedError;
1045
+ }
1046
+ }
999
1047
  async function getParticipant2(participantId, options) {
1000
1048
  const { httpClient, sideEffects } = arguments[2];
1001
1049
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1308,6 +1356,13 @@ function getPremiumStats3(httpClient) {
1308
1356
  { httpClient }
1309
1357
  );
1310
1358
  }
1359
+ function getParticipationStats3(httpClient) {
1360
+ return (programIds) => getParticipationStats2(
1361
+ programIds,
1362
+ // @ts-ignore
1363
+ { httpClient }
1364
+ );
1365
+ }
1311
1366
  function getParticipant3(httpClient) {
1312
1367
  return (participantId, options) => getParticipant2(
1313
1368
  participantId,
@@ -1596,6 +1651,7 @@ var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ createRESTModule(bulk
1596
1651
  var deleteParticipant4 = /* @__PURE__ */ createRESTModule(deleteParticipant3);
1597
1652
  var issueCertificate4 = /* @__PURE__ */ createRESTModule(issueCertificate3);
1598
1653
  var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
1654
+ var getParticipationStats4 = /* @__PURE__ */ createRESTModule(getParticipationStats3);
1599
1655
  var getParticipant4 = /* @__PURE__ */ createRESTModule(getParticipant3);
1600
1656
  var getAccessStatus4 = /* @__PURE__ */ createRESTModule(getAccessStatus3);
1601
1657
  var bulkUpdateParticipantTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateParticipantTags3);
@@ -1651,6 +1707,7 @@ export {
1651
1707
  exportParticipantsStats4 as exportParticipantsStats,
1652
1708
  getAccessStatus4 as getAccessStatus,
1653
1709
  getParticipant4 as getParticipant,
1710
+ getParticipationStats4 as getParticipationStats,
1654
1711
  getPremiumStats4 as getPremiumStats,
1655
1712
  issueCertificate4 as issueCertificate,
1656
1713
  onParticipantCompletedProgram2 as onParticipantCompletedProgram,