@wix/auto_sdk_online-programs_participants 1.0.18 → 1.0.20
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 +12 -3
- 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-B3XNf_Rk.d.ts → online-programs-participants-v3-participant-participants.universal-CnN7sCBB.d.ts} +39 -1
- package/build/es/index.d.mts +12 -3
- 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-B3XNf_Rk.d.mts → online-programs-participants-v3-participant-participants.universal-CnN7sCBB.d.mts} +39 -1
- package/build/internal/cjs/index.d.ts +12 -3
- 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-YI9WChqa.d.ts → online-programs-participants-v3-participant-participants.universal-DtzHbtpE.d.ts} +39 -1
- package/build/internal/es/index.d.mts +12 -3
- 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-YI9WChqa.d.mts → online-programs-participants-v3-participant-participants.universal-DtzHbtpE.d.mts} +39 -1
- 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 GetPremiumStatsResponse, i 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 GetPremiumStatsResponse, i as GetParticipationStatsResponse, j as GetParticipantOptions, k as GetAccessStatusResponse, l as BulkUpdateParticipantTagsOptions, m as BulkUpdateParticipantTagsResponse, n as BulkUpdateParticipantTagsApplicationErrors, o as BulkUpdateParticipantTagsByFilterOptions, p as BulkUpdateParticipantTagsByFilterResponse, q as BulkUpdateParticipantTagsByFilterApplicationErrors, r as ParticipantSearch, S as SearchParticipantsOptions, s as SearchParticipantsResponse, t as ParticipantCompletedProgramEnvelope, u as ParticipantCreatedEnvelope, v as ParticipantDeletedEnvelope, w as ParticipantLeftEnvelope, x as ParticipantMissedProgramDeadlineEnvelope, y as ParticipantProgramDurationEndedEnvelope, z as ParticipantRemovedEnvelope, A as ParticipantTagsModifiedEnvelope, D as ParticipantUpdatedEnvelope, E as ParticipantQuery, Q as QueryParticipantsOptions, F as typedQueryParticipants, H as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-CnN7sCBB.js';
|
|
3
|
+
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, aF as BulkCreateParticipantsForAllMembersRequest, aq as BulkCreateParticipantsRequest, ay as BulkParticipantMigrationResult, ar as BulkParticipantResult, b0 as BulkUpdateParticipantTagsByFilterRequest, a_ as BulkUpdateParticipantTagsRequest, a$ as BulkUpdateParticipantTagsResult, av as BulkUpsertParticipantsMigrationRequest, ax as BulkUpsertParticipantsMigrationResponse, a4 as CertificateInfo, cd as CommonQueryWithEntityContext, ce as CommonSearchWithEntityContext, am as CreateParticipantRequest, an as CreateParticipantResponse, aV as CursorPaging, bj as CursorPagingMetadata, b2 as CursorSearch, 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, aJ as GetCompletionStatsRequest, aK as GetCompletionStatsResponse, aO as GetParticipantRequest, aP as GetParticipantResponse, aM as GetParticipationStatsRequest, aL as GetPremiumStatsRequest, bg as GroupByAggregation, bh as GroupByAggregationKindOneOf, bA as GroupByValueResults, bO as IdentificationData, bP as IdentificationDataIdOneOf, b7 as IncludeMissingValuesOptions, Y as Interval, c9 as IntervalWithLiterals, aI as IssueCertificateRequest, 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, ah as ParticipantCompletedProgram, al as ParticipantLeft, aw as ParticipantMigration, ai as ParticipantMissedProgramDeadline, aj as ParticipantProgramDurationEnded, bX as ParticipantQuerySpec, ak as ParticipantRemoved, bY as ParticipantSearchSpec, ag as ParticipantTagsModified, bW as ParticipantsQueryResult, J as PricingType, b_ as PricingTypeWithLiterals, aN as ProgramParticipationStats, a3 as Progress, L as ProgressStatus, c0 as ProgressStatusWithLiterals, 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, 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, bZ as utils } from './online-programs-participants-v3-participant-participants.universal-CnN7sCBB.js';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
|
@@ -86,6 +86,14 @@ interface GetPremiumStatsSignature {
|
|
|
86
86
|
*/
|
|
87
87
|
(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
|
|
88
88
|
}
|
|
89
|
+
declare function getParticipationStats$1(httpClient: HttpClient): GetParticipationStatsSignature;
|
|
90
|
+
interface GetParticipationStatsSignature {
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves participant statistics for the requested programs.
|
|
93
|
+
* @param - IDs of the programs to retrieve participant statistics for.
|
|
94
|
+
*/
|
|
95
|
+
(programIds: string[]): Promise<NonNullablePaths<GetParticipationStatsResponse, `participationStats` | `participationStats.${number}.programId` | `participationStats.${number}.participantsCount` | `participationStats.${number}.autoRemovedCount`, 4>>;
|
|
96
|
+
}
|
|
89
97
|
declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature;
|
|
90
98
|
interface GetParticipantSignature {
|
|
91
99
|
/**
|
|
@@ -158,6 +166,7 @@ declare const bulkCreateParticipantsForAllMembers: MaybeContext<BuildRESTFunctio
|
|
|
158
166
|
declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
|
|
159
167
|
declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
|
|
160
168
|
declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
|
|
169
|
+
declare const getParticipationStats: MaybeContext<BuildRESTFunction<typeof getParticipationStats$1> & typeof getParticipationStats$1>;
|
|
161
170
|
declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
|
|
162
171
|
declare const getAccessStatus: MaybeContext<BuildRESTFunction<typeof getAccessStatus$1> & typeof getAccessStatus$1>;
|
|
163
172
|
declare const bulkUpdateParticipantTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTags$1> & typeof bulkUpdateParticipantTags$1>;
|
|
@@ -201,4 +210,4 @@ declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipa
|
|
|
201
210
|
*/
|
|
202
211
|
declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
|
|
203
212
|
|
|
204
|
-
export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, GetParticipantOptions, 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, getPremiumStats, issueCertificate, onParticipantCompletedProgram, onParticipantCreated, onParticipantDeleted, onParticipantLeft, onParticipantMissedProgramDeadline, onParticipantProgramDurationEnded, onParticipantRemoved, onParticipantTagsModified, onParticipantUpdated, queryParticipants, searchParticipants, updateParticipant };
|
|
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 };
|
package/build/cjs/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __export(index_exports, {
|
|
|
44
44
|
exportParticipantsStats: () => exportParticipantsStats4,
|
|
45
45
|
getAccessStatus: () => getAccessStatus4,
|
|
46
46
|
getParticipant: () => getParticipant4,
|
|
47
|
+
getParticipationStats: () => getParticipationStats4,
|
|
47
48
|
getPremiumStats: () => getPremiumStats4,
|
|
48
49
|
issueCertificate: () => issueCertificate4,
|
|
49
50
|
onParticipantCompletedProgram: () => onParticipantCompletedProgram2,
|
|
@@ -514,6 +515,27 @@ function getPremiumStats(payload) {
|
|
|
514
515
|
}
|
|
515
516
|
return __getPremiumStats;
|
|
516
517
|
}
|
|
518
|
+
function getParticipationStats(payload) {
|
|
519
|
+
function __getParticipationStats({ host }) {
|
|
520
|
+
const metadata = {
|
|
521
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
522
|
+
method: "POST",
|
|
523
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
|
|
524
|
+
packageName: PACKAGE_NAME,
|
|
525
|
+
migrationOptions: {
|
|
526
|
+
optInTransformResponse: true
|
|
527
|
+
},
|
|
528
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
529
|
+
protoPath: "/v3/participants/stats",
|
|
530
|
+
data: payload,
|
|
531
|
+
host
|
|
532
|
+
}),
|
|
533
|
+
data: payload
|
|
534
|
+
};
|
|
535
|
+
return metadata;
|
|
536
|
+
}
|
|
537
|
+
return __getParticipationStats;
|
|
538
|
+
}
|
|
517
539
|
function getParticipant(payload) {
|
|
518
540
|
function __getParticipant({ host }) {
|
|
519
541
|
const metadata = {
|
|
@@ -1057,6 +1079,33 @@ async function getPremiumStats2() {
|
|
|
1057
1079
|
throw transformedError;
|
|
1058
1080
|
}
|
|
1059
1081
|
}
|
|
1082
|
+
async function getParticipationStats2(programIds) {
|
|
1083
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1084
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1085
|
+
programIds
|
|
1086
|
+
});
|
|
1087
|
+
const reqOpts = getParticipationStats(
|
|
1088
|
+
payload
|
|
1089
|
+
);
|
|
1090
|
+
sideEffects?.onSiteCall?.();
|
|
1091
|
+
try {
|
|
1092
|
+
const result = await httpClient.request(reqOpts);
|
|
1093
|
+
sideEffects?.onSuccess?.(result);
|
|
1094
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1095
|
+
} catch (err) {
|
|
1096
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1097
|
+
err,
|
|
1098
|
+
{
|
|
1099
|
+
spreadPathsToArguments: {},
|
|
1100
|
+
explicitPathsToArguments: { programIds: "$[0]" },
|
|
1101
|
+
singleArgumentUnchanged: false
|
|
1102
|
+
},
|
|
1103
|
+
["programIds"]
|
|
1104
|
+
);
|
|
1105
|
+
sideEffects?.onError?.(err);
|
|
1106
|
+
throw transformedError;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1060
1109
|
async function getParticipant2(participantId, options) {
|
|
1061
1110
|
const { httpClient, sideEffects } = arguments[2];
|
|
1062
1111
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1369,6 +1418,13 @@ function getPremiumStats3(httpClient) {
|
|
|
1369
1418
|
{ httpClient }
|
|
1370
1419
|
);
|
|
1371
1420
|
}
|
|
1421
|
+
function getParticipationStats3(httpClient) {
|
|
1422
|
+
return (programIds) => getParticipationStats2(
|
|
1423
|
+
programIds,
|
|
1424
|
+
// @ts-ignore
|
|
1425
|
+
{ httpClient }
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1372
1428
|
function getParticipant3(httpClient) {
|
|
1373
1429
|
return (participantId, options) => getParticipant2(
|
|
1374
1430
|
participantId,
|
|
@@ -1657,6 +1713,7 @@ var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ (0, import_rest_modul
|
|
|
1657
1713
|
var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
|
|
1658
1714
|
var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
|
|
1659
1715
|
var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
|
|
1716
|
+
var getParticipationStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipationStats3);
|
|
1660
1717
|
var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
|
|
1661
1718
|
var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
|
|
1662
1719
|
var bulkUpdateParticipantTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTags3);
|
|
@@ -1713,6 +1770,7 @@ var onParticipantUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.
|
|
|
1713
1770
|
exportParticipantsStats,
|
|
1714
1771
|
getAccessStatus,
|
|
1715
1772
|
getParticipant,
|
|
1773
|
+
getParticipationStats,
|
|
1716
1774
|
getPremiumStats,
|
|
1717
1775
|
issueCertificate,
|
|
1718
1776
|
onParticipantCompletedProgram,
|