@wix/auto_sdk_online-programs_participants 1.0.21 → 1.0.22

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 +16 -3
  2. package/build/cjs/index.js +64 -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 +56 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +43 -2
  8. package/build/cjs/meta.js +49 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/{online-programs-participants-v3-participant-participants.universal-D4rclIQF.d.ts → online-programs-participants-v3-participant-participants.universal-B5JuUrJE.d.ts} +53 -1
  11. package/build/es/index.d.mts +16 -3
  12. package/build/es/index.mjs +63 -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 +55 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +43 -2
  18. package/build/es/meta.mjs +48 -0
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/{online-programs-participants-v3-participant-participants.universal-D4rclIQF.d.mts → online-programs-participants-v3-participant-participants.universal-B5JuUrJE.d.mts} +53 -1
  21. package/build/internal/cjs/index.d.ts +16 -3
  22. package/build/internal/cjs/index.typings.d.ts +2 -2
  23. package/build/internal/cjs/meta.d.ts +43 -2
  24. package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-AG5j7ATZ.d.ts → online-programs-participants-v3-participant-participants.universal-CAVKsE12.d.ts} +53 -1
  25. package/build/internal/es/index.d.mts +16 -3
  26. package/build/internal/es/index.typings.d.mts +2 -2
  27. package/build/internal/es/meta.d.mts +43 -2
  28. package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-AG5j7ATZ.d.mts → online-programs-participants-v3-participant-participants.universal-CAVKsE12.d.mts} +53 -1
  29. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { b2 as CursorSearch, S as SearchParticipantsOptions, s as SearchParticipantsResponse } from './online-programs-participants-v3-participant-participants.universal-D4rclIQF.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-D4rclIQF.js';
1
+ import { b5 as CursorSearch, S as SearchParticipantsOptions, u as SearchParticipantsResponse } from './online-programs-participants-v3-participant-participants.universal-B5JuUrJE.js';
2
+ export { bT as AccountInfo, bY as AccountInfoMetadata, bO as ActionEvent, b7 as Aggregation, bn as AggregationData, b8 as AggregationKindOneOf, bG as AggregationResults, bH as AggregationResultsResultOneOf, bu as AggregationResultsScalarResult, $ as AggregationType, cd as AggregationTypeWithLiterals, av as ApplicationError, bW as BaseEventMetadata, aw as BulkActionMetadata, O as BulkActionType, c5 as BulkActionTypeWithLiterals, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, aH as BulkCreateParticipantsForAllMembersRequest, f as BulkCreateParticipantsForAllMembersResponse, B as BulkCreateParticipantsOptions, as as BulkCreateParticipantsRequest, c as BulkCreateParticipantsResponse, aA as BulkParticipantMigrationResult, at as BulkParticipantResult, p as BulkUpdateParticipantTagsApplicationErrors, s as BulkUpdateParticipantTagsByFilterApplicationErrors, q as BulkUpdateParticipantTagsByFilterOptions, b3 as BulkUpdateParticipantTagsByFilterRequest, r as BulkUpdateParticipantTagsByFilterResponse, n as BulkUpdateParticipantTagsOptions, b1 as BulkUpdateParticipantTagsRequest, o as BulkUpdateParticipantTagsResponse, b2 as BulkUpdateParticipantTagsResult, ax as BulkUpsertParticipantsMigrationRequest, az as BulkUpsertParticipantsMigrationResponse, a6 as CertificateInfo, cg as CommonQueryWithEntityContext, ch as CommonSearchWithEntityContext, a as CreateParticipantApplicationErrors, C as CreateParticipantOptions, ao as CreateParticipantRequest, ap as CreateParticipantResponse, aY as CursorPaging, bm as CursorPagingMetadata, b6 as CursorSearchPagingMethodOneOf, a$ as Cursors, bf as DateHistogramAggregation, bC as DateHistogramResult, bE as DateHistogramResults, ag as Delete, aB as DeleteAllParticipantsMigrationRequest, aC as DeleteAllParticipantsMigrationResponse, aI as DeleteParticipantRequest, aJ as DeleteParticipantResponse, bI as DomainEvent, bJ as DomainEventBodyOneOf, bP as Empty, a8 as EnrollmentInfo, a9 as EnrollmentInfoPricingTypeDetailsOneOf, M as EnrollmentStatus, c2 as EnrollmentStatusWithLiterals, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, bX as EventMetadata, bU as ExportParticipantsStatsRequest, bV as ExportParticipantsStatsResponse, aa as ExtendedFields, a4 as FreeCouponDetails, b0 as GetAccessStatusRequest, m as GetAccessStatusResponse, i as GetCertificateDownloadUrlApplicationErrors, aL as GetCertificateDownloadUrlRequest, G as GetCertificateDownloadUrlResponse, aM as GetCompletionStatsRequest, aN as GetCompletionStatsResponse, l as GetParticipantOptions, aR as GetParticipantRequest, aS as GetParticipantResponse, aP as GetParticipationStatsRequest, k as GetParticipationStatsResponse, aO as GetPremiumStatsRequest, j as GetPremiumStatsResponse, bj as GroupByAggregation, bk as GroupByAggregationKindOneOf, bD as GroupByValueResults, bR as IdentificationData, bS as IdentificationDataIdOneOf, ba as IncludeMissingValuesOptions, _ as Interval, cc as IntervalWithLiterals, h as IssueCertificateApplicationErrors, I as IssueCertificateOptions, aK as IssueCertificateRequest, g as IssueCertificateResponse, au as ItemMetadata, a7 as Member, bQ as MessageEnvelope, X as MissingValues, c9 as MissingValuesWithLiterals, a0 as Mode, ce as ModeWithLiterals, bi as NestedAggregation, bg as NestedAggregationItem, bh as NestedAggregationItemKindOneOf, bq as NestedAggregationResults, br as NestedAggregationResultsResultOneOf, Z as NestedAggregationType, cb as NestedAggregationTypeWithLiterals, bz as NestedResultValue, bA as NestedResultValueResultOneOf, bF as NestedResults, bv as NestedValueAggregationResult, aX as Paging, a_ as PagingMetadataV2, a3 as PaidPlanDetails, P as Participant, aj as ParticipantCompletedProgram, v as ParticipantCompletedProgramEnvelope, w as ParticipantCreatedEnvelope, x as ParticipantDeletedEnvelope, an as ParticipantLeft, y as ParticipantLeftEnvelope, ay as ParticipantMigration, ak as ParticipantMissedProgramDeadline, z as ParticipantMissedProgramDeadlineEnvelope, al as ParticipantProgramDurationEnded, A as ParticipantProgramDurationEndedEnvelope, H as ParticipantQuery, b_ as ParticipantQuerySpec, am as ParticipantRemoved, D as ParticipantRemovedEnvelope, b$ as ParticipantSearchSpec, ai as ParticipantTagsModified, E as ParticipantTagsModifiedEnvelope, F as ParticipantUpdatedEnvelope, K as ParticipantsQueryBuilder, bZ as ParticipantsQueryResult, L as PricingType, c1 as PricingTypeWithLiterals, aQ as ProgramParticipationStats, a5 as Progress, N as ProgressStatus, c3 as ProgressStatusWithLiterals, Q as QueryParticipantsOptions, aT as QueryParticipantsRequest, aZ as QueryParticipantsResponse, aU as QueryV2, aV as QueryV2PagingMethodOneOf, bd as RangeAggregation, bp as RangeAggregationResult, b9 as RangeBucket, bx as RangeResult, bt as RangeResults, ad as ReindexMessage, ae as ReindexMessageActionOneOf, aD as ReindexParticipantsSearchRequest, aE as ReindexParticipantsSearchResponse, R as RequestedFields, c4 as RequestedFieldsWithLiterals, bL as RestoreInfo, bB as Results, be as ScalarAggregation, by as ScalarResult, Y as ScalarType, ca as ScalarTypeWithLiterals, ah as Schema, bl as SearchDetails, b4 as SearchParticipantsRequest, a2 as SinglePaymentDetails, W as SortDirection, c8 as SortDirectionWithLiterals, T as SortOrder, c6 as SortOrderWithLiterals, V as SortType, c7 as SortTypeWithLiterals, aW as Sorting, aF as SynchronizeTimeCapsuleTasksRequest, aG as SynchronizeTimeCapsuleTasksResponse, ac as TagList, ab as Tags, U as UpdateParticipant, b as UpdateParticipantOptions, aq as UpdateParticipantRequest, ar as UpdateParticipantResponse, af as Upsert, bb as ValueAggregation, bc as ValueAggregationOptionsOneOf, bo as ValueAggregationResult, bw as ValueResult, bs as ValueResults, a1 as WebhookIdentityType, cf as WebhookIdentityTypeWithLiterals, ct as bulkCreateParticipants, cu as bulkCreateParticipantsForAllMembers, cD as bulkUpdateParticipantTags, cE as bulkUpdateParticipantTagsByFilter, cr as createParticipant, cv as deleteParticipant, cC as getAccessStatus, cx as getCertificateDownloadUrl, cA as getParticipant, cz as getParticipationStats, cy as getPremiumStats, cw as issueCertificate, ci as onParticipantCompletedProgram, cj as onParticipantCreated, ck as onParticipantDeleted, cl as onParticipantLeft, cm as onParticipantMissedProgramDeadline, cn as onParticipantProgramDurationEnded, co as onParticipantRemoved, cp as onParticipantTagsModified, cq as onParticipantUpdated, cB as queryParticipants, J as typedQueryParticipants, cs as updateParticipant, c0 as utils } from './online-programs-participants-v3-participant-participants.universal-B5JuUrJE.js';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /** @hidden */
@@ -43,6 +43,7 @@ __export(index_typings_exports, {
43
43
  deleteParticipant: () => deleteParticipant2,
44
44
  exportParticipantsStats: () => exportParticipantsStats2,
45
45
  getAccessStatus: () => getAccessStatus2,
46
+ getCertificateDownloadUrl: () => getCertificateDownloadUrl2,
46
47
  getParticipant: () => getParticipant2,
47
48
  getParticipationStats: () => getParticipationStats2,
48
49
  getPremiumStats: () => getPremiumStats2,
@@ -479,6 +480,33 @@ function issueCertificate(payload) {
479
480
  }
480
481
  return __issueCertificate;
481
482
  }
483
+ function getCertificateDownloadUrl(payload) {
484
+ function __getCertificateDownloadUrl({ host }) {
485
+ const metadata = {
486
+ entityFqdn: "wix.online_programs.participants.v3.participant",
487
+ method: "GET",
488
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl",
489
+ packageName: PACKAGE_NAME,
490
+ migrationOptions: {
491
+ optInTransformResponse: true
492
+ },
493
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
494
+ protoPath: "/v3/participants/{participantId}/certificate-download-url",
495
+ data: payload,
496
+ host
497
+ }),
498
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
499
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
500
+ {
501
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
502
+ paths: [{ path: "expirationDate" }]
503
+ }
504
+ ])
505
+ };
506
+ return metadata;
507
+ }
508
+ return __getCertificateDownloadUrl;
509
+ }
482
510
  function getPremiumStats(payload) {
483
511
  function __getPremiumStats({ host }) {
484
512
  const metadata = {
@@ -1039,6 +1067,33 @@ async function issueCertificate2(participantId, options) {
1039
1067
  throw transformedError;
1040
1068
  }
1041
1069
  }
1070
+ async function getCertificateDownloadUrl2(participantId) {
1071
+ const { httpClient, sideEffects } = arguments[1];
1072
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1073
+ participantId
1074
+ });
1075
+ const reqOpts = getCertificateDownloadUrl(
1076
+ payload
1077
+ );
1078
+ sideEffects?.onSiteCall?.();
1079
+ try {
1080
+ const result = await httpClient.request(reqOpts);
1081
+ sideEffects?.onSuccess?.(result);
1082
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1083
+ } catch (err) {
1084
+ const transformedError = (0, import_transform_error.transformError)(
1085
+ err,
1086
+ {
1087
+ spreadPathsToArguments: {},
1088
+ explicitPathsToArguments: { participantId: "$[0]" },
1089
+ singleArgumentUnchanged: false
1090
+ },
1091
+ ["participantId"]
1092
+ );
1093
+ sideEffects?.onError?.(err);
1094
+ throw transformedError;
1095
+ }
1096
+ }
1042
1097
  async function getPremiumStats2() {
1043
1098
  const { httpClient, sideEffects } = arguments[0];
1044
1099
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
@@ -1372,6 +1427,7 @@ async function exportParticipantsStats2(programId) {
1372
1427
  deleteParticipant,
1373
1428
  exportParticipantsStats,
1374
1429
  getAccessStatus,
1430
+ getCertificateDownloadUrl,
1375
1431
  getParticipant,
1376
1432
  getParticipationStats,
1377
1433
  getPremiumStats,