@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,5 +1,5 @@
1
- import { a$ as CursorSearch, S as SearchParticipantsOptions, r as SearchParticipantsResponse } from './online-programs-participants-v3-participant-participants.universal-CUPgynYg.js';
2
- 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, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, aE as BulkCreateParticipantsForAllMembersRequest, f as BulkCreateParticipantsForAllMembersResponse, B as BulkCreateParticipantsOptions, ap as BulkCreateParticipantsRequest, c as BulkCreateParticipantsResponse, ax as BulkParticipantMigrationResult, aq as BulkParticipantResult, m as BulkUpdateParticipantTagsApplicationErrors, p as BulkUpdateParticipantTagsByFilterApplicationErrors, n as BulkUpdateParticipantTagsByFilterOptions, aZ as BulkUpdateParticipantTagsByFilterRequest, o as BulkUpdateParticipantTagsByFilterResponse, k as BulkUpdateParticipantTagsOptions, aX as BulkUpdateParticipantTagsRequest, l as BulkUpdateParticipantTagsResponse, aY as BulkUpdateParticipantTagsResult, au as BulkUpsertParticipantsMigrationRequest, aw as BulkUpsertParticipantsMigrationResponse, a3 as CertificateInfo, ca as CommonQueryWithEntityContext, cb as CommonSearchWithEntityContext, a as CreateParticipantApplicationErrors, C as CreateParticipantOptions, al as CreateParticipantRequest, am as CreateParticipantResponse, aS as CursorPaging, bg as CursorPagingMetadata, 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, j as GetAccessStatusResponse, aI as GetCompletionStatsRequest, aJ as GetCompletionStatsResponse, i as GetParticipantOptions, aL as GetParticipantRequest, aM as GetParticipantResponse, aK as GetPremiumStatsRequest, G as GetPremiumStatsResponse, bd as GroupByAggregation, be as GroupByAggregationKindOneOf, bx as GroupByValueResults, bL as IdentificationData, bM as IdentificationDataIdOneOf, b4 as IncludeMissingValuesOptions, X as Interval, c6 as IntervalWithLiterals, h as IssueCertificateApplicationErrors, I as IssueCertificateOptions, aH as IssueCertificateRequest, g as IssueCertificateResponse, 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, P as Participant, ag as ParticipantCompletedProgram, s as ParticipantCompletedProgramEnvelope, t as ParticipantCreatedEnvelope, u as ParticipantDeletedEnvelope, ak as ParticipantLeft, v as ParticipantLeftEnvelope, av as ParticipantMigration, ah as ParticipantMissedProgramDeadline, w as ParticipantMissedProgramDeadlineEnvelope, ai as ParticipantProgramDurationEnded, x as ParticipantProgramDurationEndedEnvelope, D as ParticipantQuery, bU as ParticipantQuerySpec, aj as ParticipantRemoved, y as ParticipantRemovedEnvelope, bV as ParticipantSearchSpec, af as ParticipantTagsModified, z as ParticipantTagsModifiedEnvelope, A as ParticipantUpdatedEnvelope, F as ParticipantsQueryBuilder, bT as ParticipantsQueryResult, H as PricingType, bX as PricingTypeWithLiterals, a2 as Progress, K as ProgressStatus, bZ as ProgressStatusWithLiterals, Q as QueryParticipantsOptions, 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, U as UpdateParticipant, b as UpdateParticipantOptions, 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, cn as bulkCreateParticipants, co as bulkCreateParticipantsForAllMembers, cv as bulkUpdateParticipantTags, cw as bulkUpdateParticipantTagsByFilter, cl as createParticipant, cp as deleteParticipant, cu as getAccessStatus, cs as getParticipant, cr as getPremiumStats, cq as issueCertificate, cc as onParticipantCompletedProgram, cd as onParticipantCreated, ce as onParticipantDeleted, cf as onParticipantLeft, cg as onParticipantMissedProgramDeadline, ch as onParticipantProgramDurationEnded, ci as onParticipantRemoved, cj as onParticipantTagsModified, ck as onParticipantUpdated, ct as queryParticipants, E as typedQueryParticipants, cm as updateParticipant, bW as utils } from './online-programs-participants-v3-participant-participants.universal-CUPgynYg.js';
1
+ import { b2 as CursorSearch, S as SearchParticipantsOptions, s as SearchParticipantsResponse } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.js';
2
+ 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, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, aF as BulkCreateParticipantsForAllMembersRequest, f as BulkCreateParticipantsForAllMembersResponse, B as BulkCreateParticipantsOptions, aq as BulkCreateParticipantsRequest, c as BulkCreateParticipantsResponse, ay as BulkParticipantMigrationResult, ar as BulkParticipantResult, n as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterApplicationErrors, o as BulkUpdateParticipantTagsByFilterOptions, b0 as BulkUpdateParticipantTagsByFilterRequest, p as BulkUpdateParticipantTagsByFilterResponse, l as BulkUpdateParticipantTagsOptions, a_ as BulkUpdateParticipantTagsRequest, m as BulkUpdateParticipantTagsResponse, a$ as BulkUpdateParticipantTagsResult, av as BulkUpsertParticipantsMigrationRequest, ax as BulkUpsertParticipantsMigrationResponse, a4 as CertificateInfo, cd as CommonQueryWithEntityContext, ce as CommonSearchWithEntityContext, a as CreateParticipantApplicationErrors, C as CreateParticipantOptions, am as CreateParticipantRequest, an as CreateParticipantResponse, aV as CursorPaging, bj as CursorPagingMetadata, 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, k as GetAccessStatusResponse, aJ as GetCompletionStatsRequest, aK as GetCompletionStatsResponse, j as GetParticipantOptions, aO as GetParticipantRequest, aP as GetParticipantResponse, aM as GetParticipationStatsRequest, i as GetParticipationStatsResponse, aL as GetPremiumStatsRequest, G as GetPremiumStatsResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, bO as IdentificationData, bP as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, Y as Interval, c9 as IntervalWithLiterals, h as IssueCertificateApplicationErrors, I as IssueCertificateOptions, aI as IssueCertificateRequest, g as IssueCertificateResponse, 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, P as Participant, ah as ParticipantCompletedProgram, t as ParticipantCompletedProgramEnvelope, u as ParticipantCreatedEnvelope, v as ParticipantDeletedEnvelope, al as ParticipantLeft, w as ParticipantLeftEnvelope, aw as ParticipantMigration, ai as ParticipantMissedProgramDeadline, x as ParticipantMissedProgramDeadlineEnvelope, aj as ParticipantProgramDurationEnded, y as ParticipantProgramDurationEndedEnvelope, E as ParticipantQuery, bX as ParticipantQuerySpec, ak as ParticipantRemoved, z as ParticipantRemovedEnvelope, bY as ParticipantSearchSpec, ag as ParticipantTagsModified, A as ParticipantTagsModifiedEnvelope, D as ParticipantUpdatedEnvelope, H as ParticipantsQueryBuilder, bW as ParticipantsQueryResult, J as PricingType, b_ as PricingTypeWithLiterals, aN as ProgramParticipationStats, a3 as Progress, L as ProgressStatus, c0 as ProgressStatusWithLiterals, Q as QueryParticipantsOptions, 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, U as UpdateParticipant, b as UpdateParticipantOptions, 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, cq as bulkCreateParticipants, cr as bulkCreateParticipantsForAllMembers, cz as bulkUpdateParticipantTags, cA as bulkUpdateParticipantTagsByFilter, co as createParticipant, cs as deleteParticipant, cy as getAccessStatus, cw as getParticipant, cv as getParticipationStats, cu as getPremiumStats, ct as issueCertificate, cf as onParticipantCompletedProgram, cg as onParticipantCreated, ch as onParticipantDeleted, ci as onParticipantLeft, cj as onParticipantMissedProgramDeadline, ck as onParticipantProgramDurationEnded, cl as onParticipantRemoved, cm as onParticipantTagsModified, cn as onParticipantUpdated, cx as queryParticipants, F as typedQueryParticipants, cp as updateParticipant, bZ as utils } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.js';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /** @hidden */
@@ -44,6 +44,7 @@ __export(index_typings_exports, {
44
44
  exportParticipantsStats: () => exportParticipantsStats2,
45
45
  getAccessStatus: () => getAccessStatus2,
46
46
  getParticipant: () => getParticipant2,
47
+ getParticipationStats: () => getParticipationStats2,
47
48
  getPremiumStats: () => getPremiumStats2,
48
49
  issueCertificate: () => issueCertificate2,
49
50
  queryParticipants: () => queryParticipants2,
@@ -499,6 +500,27 @@ function getPremiumStats(payload) {
499
500
  }
500
501
  return __getPremiumStats;
501
502
  }
503
+ function getParticipationStats(payload) {
504
+ function __getParticipationStats({ host }) {
505
+ const metadata = {
506
+ entityFqdn: "wix.online_programs.participants.v3.participant",
507
+ method: "POST",
508
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
509
+ packageName: PACKAGE_NAME,
510
+ migrationOptions: {
511
+ optInTransformResponse: true
512
+ },
513
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
514
+ protoPath: "/v3/participants/stats",
515
+ data: payload,
516
+ host
517
+ }),
518
+ data: payload
519
+ };
520
+ return metadata;
521
+ }
522
+ return __getParticipationStats;
523
+ }
502
524
  function getParticipant(payload) {
503
525
  function __getParticipant({ host }) {
504
526
  const metadata = {
@@ -1042,6 +1064,33 @@ async function getPremiumStats2() {
1042
1064
  throw transformedError;
1043
1065
  }
1044
1066
  }
1067
+ async function getParticipationStats2(programIds) {
1068
+ const { httpClient, sideEffects } = arguments[1];
1069
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1070
+ programIds
1071
+ });
1072
+ const reqOpts = getParticipationStats(
1073
+ payload
1074
+ );
1075
+ sideEffects?.onSiteCall?.();
1076
+ try {
1077
+ const result = await httpClient.request(reqOpts);
1078
+ sideEffects?.onSuccess?.(result);
1079
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1080
+ } catch (err) {
1081
+ const transformedError = (0, import_transform_error.transformError)(
1082
+ err,
1083
+ {
1084
+ spreadPathsToArguments: {},
1085
+ explicitPathsToArguments: { programIds: "$[0]" },
1086
+ singleArgumentUnchanged: false
1087
+ },
1088
+ ["programIds"]
1089
+ );
1090
+ sideEffects?.onError?.(err);
1091
+ throw transformedError;
1092
+ }
1093
+ }
1045
1094
  async function getParticipant2(participantId, options) {
1046
1095
  const { httpClient, sideEffects } = arguments[2];
1047
1096
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1324,6 +1373,7 @@ async function exportParticipantsStats2(programId) {
1324
1373
  exportParticipantsStats,
1325
1374
  getAccessStatus,
1326
1375
  getParticipant,
1376
+ getParticipationStats,
1327
1377
  getPremiumStats,
1328
1378
  issueCertificate,
1329
1379
  queryParticipants,