@wix/auto_sdk_online-programs_participants 1.0.20 → 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 +26 -5
- package/build/cjs/index.js +64 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -2
- package/build/cjs/index.typings.js +56 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +44 -3
- 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-CnN7sCBB.d.ts → online-programs-participants-v3-participant-participants.universal-B5JuUrJE.d.ts} +62 -4
- package/build/es/index.d.mts +26 -5
- package/build/es/index.mjs +63 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -2
- package/build/es/index.typings.mjs +55 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +44 -3
- 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-CnN7sCBB.d.mts → online-programs-participants-v3-participant-participants.universal-B5JuUrJE.d.mts} +62 -4
- package/build/internal/cjs/index.d.ts +26 -5
- package/build/internal/cjs/index.typings.d.ts +4 -2
- package/build/internal/cjs/meta.d.ts +44 -3
- package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-DtzHbtpE.d.ts → online-programs-participants-v3-participant-participants.universal-CAVKsE12.d.ts} +62 -4
- package/build/internal/es/index.d.mts +26 -5
- package/build/internal/es/index.typings.d.mts +4 -2
- package/build/internal/es/meta.d.mts +44 -3
- package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-DtzHbtpE.d.mts → online-programs-participants-v3-participant-participants.universal-CAVKsE12.d.mts} +62 -4
- package/package.json +2 -2
package/build/cjs/index.d.ts
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.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-B5JuUrJE.js';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
|
@@ -72,13 +72,29 @@ interface DeleteParticipantSignature {
|
|
|
72
72
|
declare function issueCertificate$1(httpClient: HttpClient): IssueCertificateSignature;
|
|
73
73
|
interface IssueCertificateSignature {
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Manually issues a certificate to an active or finished participant.
|
|
76
|
+
*
|
|
77
|
+
* A finished participant has completed or failed the program, or was automatically removed.
|
|
78
|
+
* The program must have a connected certificate reward. When authenticated as a site member,
|
|
79
|
+
* the participant must have completed the program.
|
|
76
80
|
* @param - ID of the participant to issue the certificate to.
|
|
77
81
|
*/
|
|
78
82
|
(participantId: string, options?: IssueCertificateOptions): Promise<NonNullablePaths<IssueCertificateResponse, `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.enrollmentStatus` | `participant.progressStatus` | `participant.enrollmentInfo.singlePaymentDetails.paymentOrderId` | `participant.enrollmentInfo.paidPlanDetails.paidPlanId` | `participant.enrollmentInfo.freeCouponDetails.freeCouponId` | `participant.enrollmentInfo.timeZone` | `participant.enrollmentInfo.startDate` | `participant.enrollmentInfo.pricingType` | `participant.tags.privateTags.tagIds`, 5> & {
|
|
79
83
|
__applicationErrorsType?: IssueCertificateApplicationErrors;
|
|
80
84
|
}>;
|
|
81
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
|
+
}
|
|
82
98
|
declare function getPremiumStats$1(httpClient: HttpClient): GetPremiumStatsSignature;
|
|
83
99
|
interface GetPremiumStatsSignature {
|
|
84
100
|
/**
|
|
@@ -89,7 +105,9 @@ interface GetPremiumStatsSignature {
|
|
|
89
105
|
declare function getParticipationStats$1(httpClient: HttpClient): GetParticipationStatsSignature;
|
|
90
106
|
interface GetParticipationStatsSignature {
|
|
91
107
|
/**
|
|
92
|
-
* Retrieves participant statistics for the requested programs.
|
|
108
|
+
* Retrieves site-wide participant statistics for the requested programs.
|
|
109
|
+
*
|
|
110
|
+
* The statistics aren't limited to the caller's own participation records.
|
|
93
111
|
* @param - IDs of the programs to retrieve participant statistics for.
|
|
94
112
|
*/
|
|
95
113
|
(programIds: string[]): Promise<NonNullablePaths<GetParticipationStatsResponse, `participationStats` | `participationStats.${number}.programId` | `participationStats.${number}.participantsCount` | `participationStats.${number}.autoRemovedCount`, 4>>;
|
|
@@ -141,6 +159,8 @@ declare function searchParticipants$1(httpClient: HttpClient): SearchParticipant
|
|
|
141
159
|
interface SearchParticipantsSignature {
|
|
142
160
|
/**
|
|
143
161
|
* Retrieves a list of participants matching the search criteria.
|
|
162
|
+
*
|
|
163
|
+
* Results and aggregations include only the participant records that the caller is authorized to access.
|
|
144
164
|
* @param - Query to search participants.
|
|
145
165
|
*/
|
|
146
166
|
(search: ParticipantSearch, options?: SearchParticipantsOptions): Promise<NonNullablePaths<SearchParticipantsResponse, `participants` | `participants.${number}.memberId` | `participants.${number}.programId` | `participants.${number}.progress.totalStepsCompleted` | `participants.${number}.progress.totalStepsAvailable` | `participants.${number}.progress.completionPercentage` | `participants.${number}.enrollmentStatus` | `participants.${number}.progressStatus` | `participants.${number}.enrollmentInfo.singlePaymentDetails.paymentOrderId` | `participants.${number}.enrollmentInfo.paidPlanDetails.paidPlanId` | `participants.${number}.enrollmentInfo.freeCouponDetails.freeCouponId` | `participants.${number}.enrollmentInfo.timeZone` | `participants.${number}.enrollmentInfo.startDate` | `participants.${number}.enrollmentInfo.pricingType` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
|
|
@@ -165,6 +185,7 @@ declare const bulkCreateParticipants: MaybeContext<BuildRESTFunction<typeof bulk
|
|
|
165
185
|
declare const bulkCreateParticipantsForAllMembers: MaybeContext<BuildRESTFunction<typeof bulkCreateParticipantsForAllMembers$1> & typeof bulkCreateParticipantsForAllMembers$1>;
|
|
166
186
|
declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
|
|
167
187
|
declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
|
|
188
|
+
declare const getCertificateDownloadUrl: MaybeContext<BuildRESTFunction<typeof getCertificateDownloadUrl$1> & typeof getCertificateDownloadUrl$1>;
|
|
168
189
|
declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
|
|
169
190
|
declare const getParticipationStats: MaybeContext<BuildRESTFunction<typeof getParticipationStats$1> & typeof getParticipationStats$1>;
|
|
170
191
|
declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
|
|
@@ -210,4 +231,4 @@ declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipa
|
|
|
210
231
|
*/
|
|
211
232
|
declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
|
|
212
233
|
|
|
213
|
-
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/cjs/index.js
CHANGED
|
@@ -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,
|