@wix/auto_sdk_online-programs_participants 1.0.17 → 1.0.19
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 +17 -4
- package/build/cjs/index.js +58 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +50 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -2
- package/build/cjs/meta.js +43 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-participants-v3-participant-participants.universal-CUPgynYg.d.ts → online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.d.ts} +43 -2
- package/build/es/index.d.mts +17 -4
- package/build/es/index.mjs +57 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +49 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -2
- package/build/es/meta.mjs +42 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-participants-v3-participant-participants.universal-CUPgynYg.d.mts → online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.d.mts} +43 -2
- package/build/internal/cjs/index.d.ts +17 -4
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +30 -2
- package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-D2QK1qH8.d.ts → online-programs-participants-v3-participant-participants.universal-SavvIH3H.d.ts} +43 -2
- package/build/internal/es/index.d.mts +17 -4
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +30 -2
- package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-D2QK1qH8.d.mts → online-programs-participants-v3-participant-participants.universal-SavvIH3H.d.mts} +43 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b2 as CursorSearch, S as SearchParticipantsOptions, s as SearchParticipantsResponse } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.js';
|
|
2
|
+
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, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, aF as BulkCreateParticipantsForAllMembersRequest, f as BulkCreateParticipantsForAllMembersResponse, B as BulkCreateParticipantsOptions, aq as BulkCreateParticipantsRequest, c as BulkCreateParticipantsResponse, ay as BulkParticipantMigrationResult, ar as BulkParticipantResult, n as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterApplicationErrors, o as BulkUpdateParticipantTagsByFilterOptions, b0 as BulkUpdateParticipantTagsByFilterRequest, p as BulkUpdateParticipantTagsByFilterResponse, l as BulkUpdateParticipantTagsOptions, a_ as BulkUpdateParticipantTagsRequest, m as BulkUpdateParticipantTagsResponse, a$ as BulkUpdateParticipantTagsResult, av as BulkUpsertParticipantsMigrationRequest, ax as BulkUpsertParticipantsMigrationResponse, a4 as CertificateInfo, cd as CommonQueryWithEntityContext, ce as CommonSearchWithEntityContext, a as CreateParticipantApplicationErrors, C as CreateParticipantOptions, am as CreateParticipantRequest, an as CreateParticipantResponse, aV as CursorPaging, bj as CursorPagingMetadata, 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, k as GetAccessStatusResponse, aJ as GetCompletionStatsRequest, aK as GetCompletionStatsResponse, j as GetParticipantOptions, aO as GetParticipantRequest, aP as GetParticipantResponse, aM as GetParticipationStatsRequest, i as GetParticipationStatsResponse, aL as GetPremiumStatsRequest, G as GetPremiumStatsResponse, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, bO as IdentificationData, bP as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, Y as Interval, c9 as IntervalWithLiterals, h as IssueCertificateApplicationErrors, I as IssueCertificateOptions, aI as IssueCertificateRequest, g as IssueCertificateResponse, 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, P as Participant, ah as ParticipantCompletedProgram, t as ParticipantCompletedProgramEnvelope, u as ParticipantCreatedEnvelope, v as ParticipantDeletedEnvelope, al as ParticipantLeft, w as ParticipantLeftEnvelope, aw as ParticipantMigration, ai as ParticipantMissedProgramDeadline, x as ParticipantMissedProgramDeadlineEnvelope, aj as ParticipantProgramDurationEnded, y as ParticipantProgramDurationEndedEnvelope, E as ParticipantQuery, bX as ParticipantQuerySpec, ak as ParticipantRemoved, z as ParticipantRemovedEnvelope, bY as ParticipantSearchSpec, ag as ParticipantTagsModified, A as ParticipantTagsModifiedEnvelope, D as ParticipantUpdatedEnvelope, H as ParticipantsQueryBuilder, bW as ParticipantsQueryResult, J as PricingType, b_ as PricingTypeWithLiterals, aN as ProgramParticipationStats, a3 as Progress, L as ProgressStatus, c0 as ProgressStatusWithLiterals, Q as QueryParticipantsOptions, 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, U as UpdateParticipant, b as UpdateParticipantOptions, 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, cq as bulkCreateParticipants, cr as bulkCreateParticipantsForAllMembers, cz as bulkUpdateParticipantTags, cA as bulkUpdateParticipantTagsByFilter, co as createParticipant, cs as deleteParticipant, cy as getAccessStatus, cw as getParticipant, cv as getParticipationStats, cu as getPremiumStats, ct as issueCertificate, cf as onParticipantCompletedProgram, cg as onParticipantCreated, ch as onParticipantDeleted, ci as onParticipantLeft, cj as onParticipantMissedProgramDeadline, ck as onParticipantProgramDurationEnded, cl as onParticipantRemoved, cm as onParticipantTagsModified, cn as onParticipantUpdated, cx as queryParticipants, F as typedQueryParticipants, cp as updateParticipant, bZ as utils } from './online-programs-participants-v3-participant-participants.universal-Cbh9oHrm.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -44,6 +44,7 @@ __export(index_typings_exports, {
|
|
|
44
44
|
exportParticipantsStats: () => exportParticipantsStats2,
|
|
45
45
|
getAccessStatus: () => getAccessStatus2,
|
|
46
46
|
getParticipant: () => getParticipant2,
|
|
47
|
+
getParticipationStats: () => getParticipationStats2,
|
|
47
48
|
getPremiumStats: () => getPremiumStats2,
|
|
48
49
|
issueCertificate: () => issueCertificate2,
|
|
49
50
|
queryParticipants: () => queryParticipants2,
|
|
@@ -499,6 +500,27 @@ function getPremiumStats(payload) {
|
|
|
499
500
|
}
|
|
500
501
|
return __getPremiumStats;
|
|
501
502
|
}
|
|
503
|
+
function getParticipationStats(payload) {
|
|
504
|
+
function __getParticipationStats({ host }) {
|
|
505
|
+
const metadata = {
|
|
506
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
507
|
+
method: "POST",
|
|
508
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
|
|
509
|
+
packageName: PACKAGE_NAME,
|
|
510
|
+
migrationOptions: {
|
|
511
|
+
optInTransformResponse: true
|
|
512
|
+
},
|
|
513
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
514
|
+
protoPath: "/v3/participants/stats",
|
|
515
|
+
data: payload,
|
|
516
|
+
host
|
|
517
|
+
}),
|
|
518
|
+
data: payload
|
|
519
|
+
};
|
|
520
|
+
return metadata;
|
|
521
|
+
}
|
|
522
|
+
return __getParticipationStats;
|
|
523
|
+
}
|
|
502
524
|
function getParticipant(payload) {
|
|
503
525
|
function __getParticipant({ host }) {
|
|
504
526
|
const metadata = {
|
|
@@ -1042,6 +1064,33 @@ async function getPremiumStats2() {
|
|
|
1042
1064
|
throw transformedError;
|
|
1043
1065
|
}
|
|
1044
1066
|
}
|
|
1067
|
+
async function getParticipationStats2(programIds) {
|
|
1068
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1069
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1070
|
+
programIds
|
|
1071
|
+
});
|
|
1072
|
+
const reqOpts = getParticipationStats(
|
|
1073
|
+
payload
|
|
1074
|
+
);
|
|
1075
|
+
sideEffects?.onSiteCall?.();
|
|
1076
|
+
try {
|
|
1077
|
+
const result = await httpClient.request(reqOpts);
|
|
1078
|
+
sideEffects?.onSuccess?.(result);
|
|
1079
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1080
|
+
} catch (err) {
|
|
1081
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1082
|
+
err,
|
|
1083
|
+
{
|
|
1084
|
+
spreadPathsToArguments: {},
|
|
1085
|
+
explicitPathsToArguments: { programIds: "$[0]" },
|
|
1086
|
+
singleArgumentUnchanged: false
|
|
1087
|
+
},
|
|
1088
|
+
["programIds"]
|
|
1089
|
+
);
|
|
1090
|
+
sideEffects?.onError?.(err);
|
|
1091
|
+
throw transformedError;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1045
1094
|
async function getParticipant2(participantId, options) {
|
|
1046
1095
|
const { httpClient, sideEffects } = arguments[2];
|
|
1047
1096
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1324,6 +1373,7 @@ async function exportParticipantsStats2(programId) {
|
|
|
1324
1373
|
exportParticipantsStats,
|
|
1325
1374
|
getAccessStatus,
|
|
1326
1375
|
getParticipant,
|
|
1376
|
+
getParticipationStats,
|
|
1327
1377
|
getPremiumStats,
|
|
1328
1378
|
issueCertificate,
|
|
1329
1379
|
queryParticipants,
|