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