@wix/auto_sdk_online-programs_participants 1.0.21 → 1.0.23

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-OD9SM9k8.d.ts} +54 -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-OD9SM9k8.d.mts} +54 -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-5PlgTI6M.d.ts} +54 -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-5PlgTI6M.d.mts} +54 -1
  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 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-D4rclIQF.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-D4rclIQF.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 GetCertificateDownloadUrlResponse, i as GetCertificateDownloadUrlApplicationErrors, j as GetPremiumStatsResponse, k as GetParticipationStatsResponse, l as GetParticipantOptions, m as GetAccessStatusResponse, n as BulkUpdateParticipantTagsOptions, o as BulkUpdateParticipantTagsResponse, p as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterOptions, r as BulkUpdateParticipantTagsByFilterResponse, s as BulkUpdateParticipantTagsByFilterApplicationErrors, t as ParticipantSearch, S as SearchParticipantsOptions, u as SearchParticipantsResponse, v as ParticipantCompletedProgramEnvelope, w as ParticipantCreatedEnvelope, x as ParticipantDeletedEnvelope, y as ParticipantLeftEnvelope, z as ParticipantMissedProgramDeadlineEnvelope, A as ParticipantProgramDurationEndedEnvelope, D as ParticipantRemovedEnvelope, E as ParticipantTagsModifiedEnvelope, F as ParticipantUpdatedEnvelope, H as ParticipantQuery, Q as QueryParticipantsOptions, J as typedQueryParticipants, K as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-OD9SM9k8.js';
3
+ 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, aH as BulkCreateParticipantsForAllMembersRequest, as as BulkCreateParticipantsRequest, aA as BulkParticipantMigrationResult, at as BulkParticipantResult, b3 as BulkUpdateParticipantTagsByFilterRequest, b1 as BulkUpdateParticipantTagsRequest, b2 as BulkUpdateParticipantTagsResult, ax as BulkUpsertParticipantsMigrationRequest, az as BulkUpsertParticipantsMigrationResponse, a6 as CertificateInfo, cg as CommonQueryWithEntityContext, ch as CommonSearchWithEntityContext, ao as CreateParticipantRequest, ap as CreateParticipantResponse, aY as CursorPaging, bm as CursorPagingMetadata, b5 as CursorSearch, 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, aL as GetCertificateDownloadUrlRequest, aM as GetCompletionStatsRequest, aN as GetCompletionStatsResponse, aR as GetParticipantRequest, aS as GetParticipantResponse, aP as GetParticipationStatsRequest, aO as GetPremiumStatsRequest, bj as GroupByAggregation, bk as GroupByAggregationKindOneOf, bD as GroupByValueResults, bR as IdentificationData, bS as IdentificationDataIdOneOf, ba as IncludeMissingValuesOptions, _ as Interval, cc as IntervalWithLiterals, aK as IssueCertificateRequest, 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, aj as ParticipantCompletedProgram, an as ParticipantLeft, ay as ParticipantMigration, ak as ParticipantMissedProgramDeadline, al as ParticipantProgramDurationEnded, b_ as ParticipantQuerySpec, am as ParticipantRemoved, b$ as ParticipantSearchSpec, ai as ParticipantTagsModified, bZ as ParticipantsQueryResult, L as PricingType, c1 as PricingTypeWithLiterals, aQ as ProgramParticipationStats, a5 as Progress, N as ProgressStatus, c3 as ProgressStatusWithLiterals, 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, 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, c0 as utils } from './online-programs-participants-v3-participant-participants.universal-OD9SM9k8.js';
4
4
 
5
5
  declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
6
6
  interface CreateParticipantSignature {
@@ -83,6 +83,18 @@ interface IssueCertificateSignature {
83
83
  __applicationErrorsType?: IssueCertificateApplicationErrors;
84
84
  }>;
85
85
  }
86
+ declare function getCertificateDownloadUrl$1(httpClient: HttpClient): GetCertificateDownloadUrlSignature;
87
+ interface GetCertificateDownloadUrlSignature {
88
+ /**
89
+ * Retrieves a download URL for the participant's latest issued certificate.
90
+ *
91
+ * The URL is returned only after the certificate document finishes rendering.
92
+ * @param - ID of the participant whose certificate download URL to retrieve.
93
+ */
94
+ (participantId: string): Promise<NonNullablePaths<GetCertificateDownloadUrlResponse, `downloadUrl`, 2> & {
95
+ __applicationErrorsType?: GetCertificateDownloadUrlApplicationErrors;
96
+ }>;
97
+ }
86
98
  declare function getPremiumStats$1(httpClient: HttpClient): GetPremiumStatsSignature;
87
99
  interface GetPremiumStatsSignature {
88
100
  /**
@@ -173,6 +185,7 @@ declare const bulkCreateParticipants: MaybeContext<BuildRESTFunction<typeof bulk
173
185
  declare const bulkCreateParticipantsForAllMembers: MaybeContext<BuildRESTFunction<typeof bulkCreateParticipantsForAllMembers$1> & typeof bulkCreateParticipantsForAllMembers$1>;
174
186
  declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
175
187
  declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
188
+ declare const getCertificateDownloadUrl: MaybeContext<BuildRESTFunction<typeof getCertificateDownloadUrl$1> & typeof getCertificateDownloadUrl$1>;
176
189
  declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
177
190
  declare const getParticipationStats: MaybeContext<BuildRESTFunction<typeof getParticipationStats$1> & typeof getParticipationStats$1>;
178
191
  declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
@@ -218,4 +231,4 @@ declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipa
218
231
  */
219
232
  declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
220
233
 
221
- 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 };
234
+ export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, GetCertificateDownloadUrlApplicationErrors, GetCertificateDownloadUrlResponse, GetParticipantOptions, GetParticipationStatsResponse, GetPremiumStatsResponse, IssueCertificateApplicationErrors, IssueCertificateOptions, IssueCertificateResponse, Participant, ParticipantCompletedProgramEnvelope, ParticipantCreatedEnvelope, ParticipantDeletedEnvelope, ParticipantLeftEnvelope, ParticipantMissedProgramDeadlineEnvelope, ParticipantProgramDurationEndedEnvelope, ParticipantQuery, ParticipantRemovedEnvelope, ParticipantSearch, ParticipantTagsModifiedEnvelope, ParticipantUpdatedEnvelope, ParticipantsQueryBuilder, QueryParticipantsOptions, SearchParticipantsOptions, SearchParticipantsResponse, UpdateParticipant, UpdateParticipantOptions, bulkCreateParticipants, bulkCreateParticipantsForAllMembers, bulkUpdateParticipantTags, bulkUpdateParticipantTagsByFilter, createParticipant, deleteParticipant, getAccessStatus, getCertificateDownloadUrl, getParticipant, getParticipationStats, getPremiumStats, issueCertificate, onParticipantCompletedProgram, onParticipantCreated, onParticipantDeleted, onParticipantLeft, onParticipantMissedProgramDeadline, onParticipantProgramDurationEnded, onParticipantRemoved, onParticipantTagsModified, onParticipantUpdated, queryParticipants, searchParticipants, updateParticipant };
@@ -43,6 +43,7 @@ __export(index_exports, {
43
43
  deleteParticipant: () => deleteParticipant4,
44
44
  exportParticipantsStats: () => exportParticipantsStats4,
45
45
  getAccessStatus: () => getAccessStatus4,
46
+ getCertificateDownloadUrl: () => getCertificateDownloadUrl4,
46
47
  getParticipant: () => getParticipant4,
47
48
  getParticipationStats: () => getParticipationStats4,
48
49
  getPremiumStats: () => getPremiumStats4,
@@ -494,6 +495,33 @@ function issueCertificate(payload) {
494
495
  }
495
496
  return __issueCertificate;
496
497
  }
498
+ function getCertificateDownloadUrl(payload) {
499
+ function __getCertificateDownloadUrl({ host }) {
500
+ const metadata = {
501
+ entityFqdn: "wix.online_programs.participants.v3.participant",
502
+ method: "GET",
503
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl",
504
+ packageName: PACKAGE_NAME,
505
+ migrationOptions: {
506
+ optInTransformResponse: true
507
+ },
508
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
509
+ protoPath: "/v3/participants/{participantId}/certificate-download-url",
510
+ data: payload,
511
+ host
512
+ }),
513
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
514
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
515
+ {
516
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
517
+ paths: [{ path: "expirationDate" }]
518
+ }
519
+ ])
520
+ };
521
+ return metadata;
522
+ }
523
+ return __getCertificateDownloadUrl;
524
+ }
497
525
  function getPremiumStats(payload) {
498
526
  function __getPremiumStats({ host }) {
499
527
  const metadata = {
@@ -1054,6 +1082,33 @@ async function issueCertificate2(participantId, options) {
1054
1082
  throw transformedError;
1055
1083
  }
1056
1084
  }
1085
+ async function getCertificateDownloadUrl2(participantId) {
1086
+ const { httpClient, sideEffects } = arguments[1];
1087
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1088
+ participantId
1089
+ });
1090
+ const reqOpts = getCertificateDownloadUrl(
1091
+ payload
1092
+ );
1093
+ sideEffects?.onSiteCall?.();
1094
+ try {
1095
+ const result = await httpClient.request(reqOpts);
1096
+ sideEffects?.onSuccess?.(result);
1097
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1098
+ } catch (err) {
1099
+ const transformedError = (0, import_transform_error.transformError)(
1100
+ err,
1101
+ {
1102
+ spreadPathsToArguments: {},
1103
+ explicitPathsToArguments: { participantId: "$[0]" },
1104
+ singleArgumentUnchanged: false
1105
+ },
1106
+ ["participantId"]
1107
+ );
1108
+ sideEffects?.onError?.(err);
1109
+ throw transformedError;
1110
+ }
1111
+ }
1057
1112
  async function getPremiumStats2() {
1058
1113
  const { httpClient, sideEffects } = arguments[0];
1059
1114
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
@@ -1412,6 +1467,13 @@ function issueCertificate3(httpClient) {
1412
1467
  { httpClient }
1413
1468
  );
1414
1469
  }
1470
+ function getCertificateDownloadUrl3(httpClient) {
1471
+ return (participantId) => getCertificateDownloadUrl2(
1472
+ participantId,
1473
+ // @ts-ignore
1474
+ { httpClient }
1475
+ );
1476
+ }
1415
1477
  function getPremiumStats3(httpClient) {
1416
1478
  return () => getPremiumStats2(
1417
1479
  // @ts-ignore
@@ -1712,6 +1774,7 @@ var bulkCreateParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRES
1712
1774
  var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipantsForAllMembers3);
1713
1775
  var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
1714
1776
  var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
1777
+ var getCertificateDownloadUrl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCertificateDownloadUrl3);
1715
1778
  var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1716
1779
  var getParticipationStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipationStats3);
1717
1780
  var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
@@ -1769,6 +1832,7 @@ var onParticipantUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.
1769
1832
  deleteParticipant,
1770
1833
  exportParticipantsStats,
1771
1834
  getAccessStatus,
1835
+ getCertificateDownloadUrl,
1772
1836
  getParticipant,
1773
1837
  getParticipationStats,
1774
1838
  getPremiumStats,