@wix/auto_sdk_online-programs_participants 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-OD9SM9k8.d.ts} +54 -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-OD9SM9k8.d.mts} +54 -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-5PlgTI6M.d.ts} +54 -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-5PlgTI6M.d.mts} +54 -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-OD9SM9k8.mjs';
|
|
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-OD9SM9k8.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -425,6 +425,33 @@ function issueCertificate(payload) {
|
|
|
425
425
|
}
|
|
426
426
|
return __issueCertificate;
|
|
427
427
|
}
|
|
428
|
+
function getCertificateDownloadUrl(payload) {
|
|
429
|
+
function __getCertificateDownloadUrl({ host }) {
|
|
430
|
+
const metadata = {
|
|
431
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
432
|
+
method: "GET",
|
|
433
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl",
|
|
434
|
+
packageName: PACKAGE_NAME,
|
|
435
|
+
migrationOptions: {
|
|
436
|
+
optInTransformResponse: true
|
|
437
|
+
},
|
|
438
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
439
|
+
protoPath: "/v3/participants/{participantId}/certificate-download-url",
|
|
440
|
+
data: payload,
|
|
441
|
+
host
|
|
442
|
+
}),
|
|
443
|
+
params: toURLSearchParams(payload),
|
|
444
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
445
|
+
{
|
|
446
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
447
|
+
paths: [{ path: "expirationDate" }]
|
|
448
|
+
}
|
|
449
|
+
])
|
|
450
|
+
};
|
|
451
|
+
return metadata;
|
|
452
|
+
}
|
|
453
|
+
return __getCertificateDownloadUrl;
|
|
454
|
+
}
|
|
428
455
|
function getPremiumStats(payload) {
|
|
429
456
|
function __getPremiumStats({ host }) {
|
|
430
457
|
const metadata = {
|
|
@@ -985,6 +1012,33 @@ async function issueCertificate2(participantId, options) {
|
|
|
985
1012
|
throw transformedError;
|
|
986
1013
|
}
|
|
987
1014
|
}
|
|
1015
|
+
async function getCertificateDownloadUrl2(participantId) {
|
|
1016
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1017
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1018
|
+
participantId
|
|
1019
|
+
});
|
|
1020
|
+
const reqOpts = getCertificateDownloadUrl(
|
|
1021
|
+
payload
|
|
1022
|
+
);
|
|
1023
|
+
sideEffects?.onSiteCall?.();
|
|
1024
|
+
try {
|
|
1025
|
+
const result = await httpClient.request(reqOpts);
|
|
1026
|
+
sideEffects?.onSuccess?.(result);
|
|
1027
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1028
|
+
} catch (err) {
|
|
1029
|
+
const transformedError = sdkTransformError(
|
|
1030
|
+
err,
|
|
1031
|
+
{
|
|
1032
|
+
spreadPathsToArguments: {},
|
|
1033
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1034
|
+
singleArgumentUnchanged: false
|
|
1035
|
+
},
|
|
1036
|
+
["participantId"]
|
|
1037
|
+
);
|
|
1038
|
+
sideEffects?.onError?.(err);
|
|
1039
|
+
throw transformedError;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
988
1042
|
async function getPremiumStats2() {
|
|
989
1043
|
const { httpClient, sideEffects } = arguments[0];
|
|
990
1044
|
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
@@ -1317,6 +1371,7 @@ export {
|
|
|
1317
1371
|
deleteParticipant2 as deleteParticipant,
|
|
1318
1372
|
exportParticipantsStats2 as exportParticipantsStats,
|
|
1319
1373
|
getAccessStatus2 as getAccessStatus,
|
|
1374
|
+
getCertificateDownloadUrl2 as getCertificateDownloadUrl,
|
|
1320
1375
|
getParticipant2 as getParticipant,
|
|
1321
1376
|
getParticipationStats2 as getParticipationStats,
|
|
1322
1377
|
getPremiumStats2 as getPremiumStats,
|