@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
@@ -647,6 +647,22 @@ interface IssueCertificateResponse {
647
647
  /** Updated participant */
648
648
  participant?: Participant;
649
649
  }
650
+ interface GetCertificateDownloadUrlRequest {
651
+ /**
652
+ * ID of the participant whose certificate download URL to retrieve.
653
+ * @format GUID
654
+ */
655
+ participantId: string;
656
+ }
657
+ interface GetCertificateDownloadUrlResponse {
658
+ /**
659
+ * URL for downloading the participant's certificate.
660
+ * @format WEB_URL
661
+ */
662
+ downloadUrl?: string;
663
+ /** Time when the download URL token expires. The underlying certificate document may expire earlier. */
664
+ expirationDate?: Date | null;
665
+ }
650
666
  interface GetCompletionStatsRequest {
651
667
  /**
652
668
  * ID of the program to retrieve completion statistics for.
@@ -1610,6 +1626,28 @@ type IssueCertificateApplicationErrors = {
1610
1626
  data?: Record<string, any>;
1611
1627
  };
1612
1628
  /** @docsIgnore */
1629
+ type GetCertificateDownloadUrlApplicationErrors = {
1630
+ code?: 'CERTIFICATE_NOT_ISSUED';
1631
+ description?: string;
1632
+ data?: Record<string, any>;
1633
+ } | {
1634
+ code?: 'CERTIFICATE_DOCUMENT_NOT_FOUND';
1635
+ description?: string;
1636
+ data?: Record<string, any>;
1637
+ } | {
1638
+ code?: 'CERTIFICATE_NOT_READY';
1639
+ description?: string;
1640
+ data?: Record<string, any>;
1641
+ } | {
1642
+ code?: 'CERTIFICATE_RENDER_FAILED';
1643
+ description?: string;
1644
+ data?: Record<string, any>;
1645
+ } | {
1646
+ code?: 'CERTIFICATE_EXPIRED';
1647
+ description?: string;
1648
+ data?: Record<string, any>;
1649
+ };
1650
+ /** @docsIgnore */
1613
1651
  type BulkUpdateParticipantTagsApplicationErrors = {
1614
1652
  code?: 'EMPTY_ASSIGN_AND_UNASSIGN_LISTS';
1615
1653
  description?: string;
@@ -2035,6 +2073,20 @@ interface IssueCertificateOptions {
2035
2073
  */
2036
2074
  fields?: RequestedFieldsWithLiterals[];
2037
2075
  }
2076
+ /**
2077
+ * Retrieves a download URL for the participant's latest issued certificate.
2078
+ *
2079
+ * The URL is returned only after the certificate document finishes rendering.
2080
+ * @param participantId - ID of the participant whose certificate download URL to retrieve.
2081
+ * @public
2082
+ * @documentationMaturity preview
2083
+ * @requiredField participantId
2084
+ * @permissionId online_programs:participants:v3:participant:get_certificate_download_url
2085
+ * @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl
2086
+ */
2087
+ declare function getCertificateDownloadUrl(participantId: string): Promise<NonNullablePaths<GetCertificateDownloadUrlResponse, `downloadUrl`, 2> & {
2088
+ __applicationErrorsType?: GetCertificateDownloadUrlApplicationErrors;
2089
+ }>;
2038
2090
  /**
2039
2091
  * Retrieves premium plan statistics for the site.
2040
2092
  * @public
@@ -2492,4 +2544,4 @@ type ParticipantSearch = {
2492
2544
  timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
2493
2545
  };
2494
2546
 
2495
- 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 };
2547
+ export { AggregationType as $, type ParticipantProgramDurationEndedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantRemovedEnvelope as D, type ParticipantTagsModifiedEnvelope as E, type ParticipantUpdatedEnvelope as F, type GetCertificateDownloadUrlResponse as G, type ParticipantQuery as H, type IssueCertificateOptions as I, typedQueryParticipants as J, type ParticipantsQueryBuilder as K, PricingType as L, EnrollmentStatus as M, ProgressStatus as N, BulkActionType as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, SortOrder as T, type UpdateParticipant as U, SortType as V, SortDirection as W, MissingValues as X, ScalarType as Y, NestedAggregationType as Z, Interval as _, type CreateParticipantApplicationErrors as a, type Cursors as a$, Mode as a0, WebhookIdentityType as a1, type SinglePaymentDetails as a2, type PaidPlanDetails as a3, type FreeCouponDetails as a4, type Progress as a5, type CertificateInfo as a6, type Member as a7, type EnrollmentInfo as a8, type EnrollmentInfoPricingTypeDetailsOneOf as a9, type BulkParticipantMigrationResult as aA, type DeleteAllParticipantsMigrationRequest as aB, type DeleteAllParticipantsMigrationResponse as aC, type ReindexParticipantsSearchRequest as aD, type ReindexParticipantsSearchResponse as aE, type SynchronizeTimeCapsuleTasksRequest as aF, type SynchronizeTimeCapsuleTasksResponse as aG, type BulkCreateParticipantsForAllMembersRequest as aH, type DeleteParticipantRequest as aI, type DeleteParticipantResponse as aJ, type IssueCertificateRequest as aK, type GetCertificateDownloadUrlRequest as aL, type GetCompletionStatsRequest as aM, type GetCompletionStatsResponse as aN, type GetPremiumStatsRequest as aO, type GetParticipationStatsRequest as aP, type ProgramParticipationStats as aQ, type GetParticipantRequest as aR, type GetParticipantResponse as aS, type QueryParticipantsRequest as aT, type QueryV2 as aU, type QueryV2PagingMethodOneOf as aV, type Sorting as aW, type Paging as aX, type CursorPaging as aY, type QueryParticipantsResponse as aZ, type PagingMetadataV2 as a_, type ExtendedFields as aa, type Tags as ab, type TagList as ac, type ReindexMessage as ad, type ReindexMessageActionOneOf as ae, type Upsert as af, type Delete as ag, type Schema as ah, type ParticipantTagsModified as ai, type ParticipantCompletedProgram as aj, type ParticipantMissedProgramDeadline as ak, type ParticipantProgramDurationEnded as al, type ParticipantRemoved as am, type ParticipantLeft as an, type CreateParticipantRequest as ao, type CreateParticipantResponse as ap, type UpdateParticipantRequest as aq, type UpdateParticipantResponse as ar, type BulkCreateParticipantsRequest as as, type BulkParticipantResult as at, type ItemMetadata as au, type ApplicationError as av, type BulkActionMetadata as aw, type BulkUpsertParticipantsMigrationRequest as ax, type ParticipantMigration as ay, type BulkUpsertParticipantsMigrationResponse as az, type UpdateParticipantOptions as b, type ParticipantSearchSpec as b$, type GetAccessStatusRequest as b0, type BulkUpdateParticipantTagsRequest as b1, type BulkUpdateParticipantTagsResult as b2, type BulkUpdateParticipantTagsByFilterRequest as b3, type SearchParticipantsRequest as b4, type CursorSearch as b5, type CursorSearchPagingMethodOneOf as b6, type Aggregation as b7, type AggregationKindOneOf as b8, type RangeBucket as b9, type NestedResultValueResultOneOf as bA, type Results as bB, type DateHistogramResult as bC, type GroupByValueResults as bD, type DateHistogramResults as bE, type NestedResults as bF, type AggregationResults as bG, type AggregationResultsResultOneOf as bH, type DomainEvent as bI, type DomainEventBodyOneOf as bJ, type EntityCreatedEvent as bK, type RestoreInfo as bL, type EntityUpdatedEvent as bM, type EntityDeletedEvent as bN, type ActionEvent as bO, type Empty as bP, type MessageEnvelope as bQ, type IdentificationData as bR, type IdentificationDataIdOneOf as bS, type AccountInfo as bT, type ExportParticipantsStatsRequest as bU, type ExportParticipantsStatsResponse as bV, type BaseEventMetadata as bW, type EventMetadata as bX, type AccountInfoMetadata as bY, type ParticipantsQueryResult as bZ, type ParticipantQuerySpec as b_, type IncludeMissingValuesOptions as ba, type ValueAggregation as bb, type ValueAggregationOptionsOneOf as bc, type RangeAggregation as bd, type ScalarAggregation as be, type DateHistogramAggregation as bf, type NestedAggregationItem as bg, type NestedAggregationItemKindOneOf as bh, type NestedAggregation as bi, type GroupByAggregation as bj, type GroupByAggregationKindOneOf as bk, type SearchDetails as bl, type CursorPagingMetadata as bm, type AggregationData as bn, type ValueAggregationResult as bo, type RangeAggregationResult as bp, type NestedAggregationResults as bq, type NestedAggregationResultsResultOneOf as br, type ValueResults as bs, type RangeResults as bt, type AggregationResultsScalarResult as bu, type NestedValueAggregationResult as bv, type ValueResult as bw, type RangeResult as bx, type ScalarResult as by, type NestedResultValue as bz, type BulkCreateParticipantsResponse as c, utils as c0, type PricingTypeWithLiterals as c1, type EnrollmentStatusWithLiterals as c2, type ProgressStatusWithLiterals as c3, type RequestedFieldsWithLiterals as c4, type BulkActionTypeWithLiterals as c5, type SortOrderWithLiterals as c6, type SortTypeWithLiterals as c7, type SortDirectionWithLiterals as c8, type MissingValuesWithLiterals as c9, getParticipant as cA, queryParticipants as cB, getAccessStatus as cC, bulkUpdateParticipantTags as cD, bulkUpdateParticipantTagsByFilter as cE, type ScalarTypeWithLiterals as ca, type NestedAggregationTypeWithLiterals as cb, type IntervalWithLiterals as cc, type AggregationTypeWithLiterals as cd, type ModeWithLiterals as ce, type WebhookIdentityTypeWithLiterals as cf, type CommonQueryWithEntityContext as cg, type CommonSearchWithEntityContext as ch, onParticipantCompletedProgram as ci, onParticipantCreated as cj, onParticipantDeleted as ck, onParticipantLeft as cl, onParticipantMissedProgramDeadline as cm, onParticipantProgramDurationEnded as cn, onParticipantRemoved as co, onParticipantTagsModified as cp, onParticipantUpdated as cq, createParticipant as cr, updateParticipant as cs, bulkCreateParticipants as ct, bulkCreateParticipantsForAllMembers as cu, deleteParticipant as cv, issueCertificate as cw, getCertificateDownloadUrl as cx, getPremiumStats as cy, getParticipationStats as cz, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetCertificateDownloadUrlApplicationErrors as i, type GetPremiumStatsResponse as j, type GetParticipationStatsResponse as k, type GetParticipantOptions as l, type GetAccessStatusResponse as m, type BulkUpdateParticipantTagsOptions as n, type BulkUpdateParticipantTagsResponse as o, type BulkUpdateParticipantTagsApplicationErrors as p, type BulkUpdateParticipantTagsByFilterOptions as q, type BulkUpdateParticipantTagsByFilterResponse as r, type BulkUpdateParticipantTagsByFilterApplicationErrors as s, type ParticipantSearch as t, type SearchParticipantsResponse as u, type ParticipantCompletedProgramEnvelope as v, type ParticipantCreatedEnvelope as w, type ParticipantDeletedEnvelope as x, type ParticipantLeftEnvelope as y, type ParticipantMissedProgramDeadlineEnvelope 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 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.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-D4rclIQF.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 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-B5JuUrJE.mjs';
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-B5JuUrJE.mjs';
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 };
@@ -432,6 +432,33 @@ function issueCertificate(payload) {
432
432
  }
433
433
  return __issueCertificate;
434
434
  }
435
+ function getCertificateDownloadUrl(payload) {
436
+ function __getCertificateDownloadUrl({ host }) {
437
+ const metadata = {
438
+ entityFqdn: "wix.online_programs.participants.v3.participant",
439
+ method: "GET",
440
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl",
441
+ packageName: PACKAGE_NAME,
442
+ migrationOptions: {
443
+ optInTransformResponse: true
444
+ },
445
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
446
+ protoPath: "/v3/participants/{participantId}/certificate-download-url",
447
+ data: payload,
448
+ host
449
+ }),
450
+ params: toURLSearchParams(payload),
451
+ transformResponse: (payload2) => transformPaths(payload2, [
452
+ {
453
+ transformFn: transformRESTTimestampToSDKTimestamp,
454
+ paths: [{ path: "expirationDate" }]
455
+ }
456
+ ])
457
+ };
458
+ return metadata;
459
+ }
460
+ return __getCertificateDownloadUrl;
461
+ }
435
462
  function getPremiumStats(payload) {
436
463
  function __getPremiumStats({ host }) {
437
464
  const metadata = {
@@ -992,6 +1019,33 @@ async function issueCertificate2(participantId, options) {
992
1019
  throw transformedError;
993
1020
  }
994
1021
  }
1022
+ async function getCertificateDownloadUrl2(participantId) {
1023
+ const { httpClient, sideEffects } = arguments[1];
1024
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1025
+ participantId
1026
+ });
1027
+ const reqOpts = getCertificateDownloadUrl(
1028
+ payload
1029
+ );
1030
+ sideEffects?.onSiteCall?.();
1031
+ try {
1032
+ const result = await httpClient.request(reqOpts);
1033
+ sideEffects?.onSuccess?.(result);
1034
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1035
+ } catch (err) {
1036
+ const transformedError = sdkTransformError(
1037
+ err,
1038
+ {
1039
+ spreadPathsToArguments: {},
1040
+ explicitPathsToArguments: { participantId: "$[0]" },
1041
+ singleArgumentUnchanged: false
1042
+ },
1043
+ ["participantId"]
1044
+ );
1045
+ sideEffects?.onError?.(err);
1046
+ throw transformedError;
1047
+ }
1048
+ }
995
1049
  async function getPremiumStats2() {
996
1050
  const { httpClient, sideEffects } = arguments[0];
997
1051
  const payload = renameKeysFromSDKRequestToRESTRequest({});
@@ -1350,6 +1404,13 @@ function issueCertificate3(httpClient) {
1350
1404
  { httpClient }
1351
1405
  );
1352
1406
  }
1407
+ function getCertificateDownloadUrl3(httpClient) {
1408
+ return (participantId) => getCertificateDownloadUrl2(
1409
+ participantId,
1410
+ // @ts-ignore
1411
+ { httpClient }
1412
+ );
1413
+ }
1353
1414
  function getPremiumStats3(httpClient) {
1354
1415
  return () => getPremiumStats2(
1355
1416
  // @ts-ignore
@@ -1650,6 +1711,7 @@ var bulkCreateParticipants4 = /* @__PURE__ */ createRESTModule(bulkCreatePartici
1650
1711
  var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ createRESTModule(bulkCreateParticipantsForAllMembers3);
1651
1712
  var deleteParticipant4 = /* @__PURE__ */ createRESTModule(deleteParticipant3);
1652
1713
  var issueCertificate4 = /* @__PURE__ */ createRESTModule(issueCertificate3);
1714
+ var getCertificateDownloadUrl4 = /* @__PURE__ */ createRESTModule(getCertificateDownloadUrl3);
1653
1715
  var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
1654
1716
  var getParticipationStats4 = /* @__PURE__ */ createRESTModule(getParticipationStats3);
1655
1717
  var getParticipant4 = /* @__PURE__ */ createRESTModule(getParticipant3);
@@ -1706,6 +1768,7 @@ export {
1706
1768
  deleteParticipant4 as deleteParticipant,
1707
1769
  exportParticipantsStats4 as exportParticipantsStats,
1708
1770
  getAccessStatus4 as getAccessStatus,
1771
+ getCertificateDownloadUrl4 as getCertificateDownloadUrl,
1709
1772
  getParticipant4 as getParticipant,
1710
1773
  getParticipationStats4 as getParticipationStats,
1711
1774
  getPremiumStats4 as getPremiumStats,