@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.
- package/build/cjs/index.d.ts +16 -3
- package/build/cjs/index.js +64 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +56 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -2
- package/build/cjs/meta.js +49 -0
- package/build/cjs/meta.js.map +1 -1
- 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
- package/build/es/index.d.mts +16 -3
- package/build/es/index.mjs +63 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +55 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -2
- package/build/es/meta.mjs +48 -0
- package/build/es/meta.mjs.map +1 -1
- 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
- package/build/internal/cjs/index.d.ts +16 -3
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +43 -2
- 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
- package/build/internal/es/index.d.mts +16 -3
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +43 -2
- 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
- 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 {
|
|
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 };
|
package/build/es/index.d.mts
CHANGED
|
@@ -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
|
|
3
|
-
export {
|
|
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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -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,
|