@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
@@ -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.js';
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.js';
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.js';
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.js';
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 };
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  exportParticipantsStats: () => exportParticipantsStats4,
45
45
  getAccessStatus: () => getAccessStatus4,
46
46
  getParticipant: () => getParticipant4,
47
+ getParticipationStats: () => getParticipationStats4,
47
48
  getPremiumStats: () => getPremiumStats4,
48
49
  issueCertificate: () => issueCertificate4,
49
50
  onParticipantCompletedProgram: () => onParticipantCompletedProgram2,
@@ -514,6 +515,27 @@ function getPremiumStats(payload) {
514
515
  }
515
516
  return __getPremiumStats;
516
517
  }
518
+ function getParticipationStats(payload) {
519
+ function __getParticipationStats({ host }) {
520
+ const metadata = {
521
+ entityFqdn: "wix.online_programs.participants.v3.participant",
522
+ method: "POST",
523
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
524
+ packageName: PACKAGE_NAME,
525
+ migrationOptions: {
526
+ optInTransformResponse: true
527
+ },
528
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
529
+ protoPath: "/v3/participants/stats",
530
+ data: payload,
531
+ host
532
+ }),
533
+ data: payload
534
+ };
535
+ return metadata;
536
+ }
537
+ return __getParticipationStats;
538
+ }
517
539
  function getParticipant(payload) {
518
540
  function __getParticipant({ host }) {
519
541
  const metadata = {
@@ -1057,6 +1079,33 @@ async function getPremiumStats2() {
1057
1079
  throw transformedError;
1058
1080
  }
1059
1081
  }
1082
+ async function getParticipationStats2(programIds) {
1083
+ const { httpClient, sideEffects } = arguments[1];
1084
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1085
+ programIds
1086
+ });
1087
+ const reqOpts = getParticipationStats(
1088
+ payload
1089
+ );
1090
+ sideEffects?.onSiteCall?.();
1091
+ try {
1092
+ const result = await httpClient.request(reqOpts);
1093
+ sideEffects?.onSuccess?.(result);
1094
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1095
+ } catch (err) {
1096
+ const transformedError = (0, import_transform_error.transformError)(
1097
+ err,
1098
+ {
1099
+ spreadPathsToArguments: {},
1100
+ explicitPathsToArguments: { programIds: "$[0]" },
1101
+ singleArgumentUnchanged: false
1102
+ },
1103
+ ["programIds"]
1104
+ );
1105
+ sideEffects?.onError?.(err);
1106
+ throw transformedError;
1107
+ }
1108
+ }
1060
1109
  async function getParticipant2(participantId, options) {
1061
1110
  const { httpClient, sideEffects } = arguments[2];
1062
1111
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1369,6 +1418,13 @@ function getPremiumStats3(httpClient) {
1369
1418
  { httpClient }
1370
1419
  );
1371
1420
  }
1421
+ function getParticipationStats3(httpClient) {
1422
+ return (programIds) => getParticipationStats2(
1423
+ programIds,
1424
+ // @ts-ignore
1425
+ { httpClient }
1426
+ );
1427
+ }
1372
1428
  function getParticipant3(httpClient) {
1373
1429
  return (participantId, options) => getParticipant2(
1374
1430
  participantId,
@@ -1657,6 +1713,7 @@ var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ (0, import_rest_modul
1657
1713
  var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
1658
1714
  var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
1659
1715
  var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1716
+ var getParticipationStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipationStats3);
1660
1717
  var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
1661
1718
  var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
1662
1719
  var bulkUpdateParticipantTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTags3);
@@ -1713,6 +1770,7 @@ var onParticipantUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.
1713
1770
  exportParticipantsStats,
1714
1771
  getAccessStatus,
1715
1772
  getParticipant,
1773
+ getParticipationStats,
1716
1774
  getPremiumStats,
1717
1775
  issueCertificate,
1718
1776
  onParticipantCompletedProgram,