@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
|
@@ -670,6 +670,33 @@ interface GetPremiumStatsResponse {
|
|
|
670
670
|
/** Limit of active participants on a site without premium */
|
|
671
671
|
activeParticipantsLimit?: number;
|
|
672
672
|
}
|
|
673
|
+
interface GetParticipationStatsRequest {
|
|
674
|
+
/**
|
|
675
|
+
* IDs of the programs to retrieve participant statistics for.
|
|
676
|
+
* @format GUID
|
|
677
|
+
* @minSize 1
|
|
678
|
+
* @maxSize 100
|
|
679
|
+
*/
|
|
680
|
+
programIds: string[];
|
|
681
|
+
}
|
|
682
|
+
interface GetParticipationStatsResponse {
|
|
683
|
+
/**
|
|
684
|
+
* Participant statistics for each distinct requested program ID.
|
|
685
|
+
* @maxSize 100
|
|
686
|
+
*/
|
|
687
|
+
participationStats?: ProgramParticipationStats[];
|
|
688
|
+
}
|
|
689
|
+
interface ProgramParticipationStats {
|
|
690
|
+
/**
|
|
691
|
+
* Program ID.
|
|
692
|
+
* @format GUID
|
|
693
|
+
*/
|
|
694
|
+
programId?: string;
|
|
695
|
+
/** Number of participants who joined the program, including suspended and finished participants. */
|
|
696
|
+
participantsCount?: number;
|
|
697
|
+
/** Number of participants automatically removed when the program duration ended. */
|
|
698
|
+
autoRemovedCount?: number;
|
|
699
|
+
}
|
|
673
700
|
interface GetParticipantRequest {
|
|
674
701
|
/**
|
|
675
702
|
* ID of the participant to fetch.
|
|
@@ -1816,7 +1843,11 @@ interface CreateParticipantOptions {
|
|
|
1816
1843
|
fields?: RequestedFieldsWithLiterals[];
|
|
1817
1844
|
}
|
|
1818
1845
|
/**
|
|
1819
|
-
* Updates a participant's enrollment status
|
|
1846
|
+
* Updates a participant's enrollment status or enrollment pricing details.
|
|
1847
|
+
*
|
|
1848
|
+
* Use this method to suspend or resume a participant by setting `enrollment_status` to
|
|
1849
|
+
* `SUSPENDED` or `JOINED`. To remove a participant, use `DeleteParticipant`.
|
|
1850
|
+
* Progress status is calculated from the participant's resolved steps and can't be updated.
|
|
1820
1851
|
* @param _id - Participant ID.
|
|
1821
1852
|
* @public
|
|
1822
1853
|
* @documentationMaturity preview
|
|
@@ -2009,6 +2040,16 @@ interface IssueCertificateOptions {
|
|
|
2009
2040
|
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats
|
|
2010
2041
|
*/
|
|
2011
2042
|
declare function getPremiumStats(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
|
|
2043
|
+
/**
|
|
2044
|
+
* Retrieves participant statistics for the requested programs.
|
|
2045
|
+
* @param programIds - IDs of the programs to retrieve participant statistics for.
|
|
2046
|
+
* @public
|
|
2047
|
+
* @documentationMaturity preview
|
|
2048
|
+
* @requiredField programIds
|
|
2049
|
+
* @permissionId online_programs:participants:v3:participant:get_participation_stats
|
|
2050
|
+
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats
|
|
2051
|
+
*/
|
|
2052
|
+
declare function getParticipationStats(programIds: string[]): Promise<NonNullablePaths<GetParticipationStatsResponse, `participationStats` | `participationStats.${number}.programId` | `participationStats.${number}.participantsCount` | `participationStats.${number}.autoRemovedCount`, 4>>;
|
|
2012
2053
|
/**
|
|
2013
2054
|
* Returns a participant by ID.
|
|
2014
2055
|
* @param participantId - ID of the participant to fetch.
|
|
@@ -2444,4 +2485,4 @@ type ParticipantSearch = {
|
|
|
2444
2485
|
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
2445
2486
|
};
|
|
2446
2487
|
|
|
2447
|
-
export {
|
|
2488
|
+
export { WebhookIdentityType as $, type ParticipantTagsModifiedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantUpdatedEnvelope as D, type ParticipantQuery as E, typedQueryParticipants as F, type GetPremiumStatsResponse as G, type ParticipantsQueryBuilder as H, type IssueCertificateOptions as I, PricingType as J, EnrollmentStatus as K, ProgressStatus as L, BulkActionType as M, SortOrder as N, SortType as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, SortDirection as T, type UpdateParticipant as U, MissingValues as V, ScalarType as W, NestedAggregationType as X, Interval as Y, AggregationType as Z, Mode as _, type CreateParticipantApplicationErrors as a, type BulkUpdateParticipantTagsResult as a$, type SinglePaymentDetails as a0, type PaidPlanDetails as a1, type FreeCouponDetails as a2, type Progress as a3, type CertificateInfo as a4, type Member as a5, type EnrollmentInfo as a6, type EnrollmentInfoPricingTypeDetailsOneOf as a7, type ExtendedFields as a8, type Tags as a9, type DeleteAllParticipantsMigrationResponse as aA, type ReindexParticipantsSearchRequest as aB, type ReindexParticipantsSearchResponse as aC, type SynchronizeTimeCapsuleTasksRequest as aD, type SynchronizeTimeCapsuleTasksResponse as aE, type BulkCreateParticipantsForAllMembersRequest as aF, type DeleteParticipantRequest as aG, type DeleteParticipantResponse as aH, type IssueCertificateRequest as aI, type GetCompletionStatsRequest as aJ, type GetCompletionStatsResponse as aK, type GetPremiumStatsRequest as aL, type GetParticipationStatsRequest as aM, type ProgramParticipationStats as aN, type GetParticipantRequest as aO, type GetParticipantResponse as aP, type QueryParticipantsRequest as aQ, type QueryV2 as aR, type QueryV2PagingMethodOneOf as aS, type Sorting as aT, type Paging as aU, type CursorPaging as aV, type QueryParticipantsResponse as aW, type PagingMetadataV2 as aX, type Cursors as aY, type GetAccessStatusRequest as aZ, type BulkUpdateParticipantTagsRequest as a_, type TagList as aa, type ReindexMessage as ab, type ReindexMessageActionOneOf as ac, type Upsert as ad, type Delete as ae, type Schema as af, type ParticipantTagsModified as ag, type ParticipantCompletedProgram as ah, type ParticipantMissedProgramDeadline as ai, type ParticipantProgramDurationEnded as aj, type ParticipantRemoved as ak, type ParticipantLeft as al, type CreateParticipantRequest as am, type CreateParticipantResponse as an, type UpdateParticipantRequest as ao, type UpdateParticipantResponse as ap, type BulkCreateParticipantsRequest as aq, type BulkParticipantResult as ar, type ItemMetadata as as, type ApplicationError as at, type BulkActionMetadata as au, type BulkUpsertParticipantsMigrationRequest as av, type ParticipantMigration as aw, type BulkUpsertParticipantsMigrationResponse as ax, type BulkParticipantMigrationResult as ay, type DeleteAllParticipantsMigrationRequest as az, type UpdateParticipantOptions as b, type EnrollmentStatusWithLiterals as b$, type BulkUpdateParticipantTagsByFilterRequest as b0, type SearchParticipantsRequest as b1, type CursorSearch as b2, type CursorSearchPagingMethodOneOf as b3, type Aggregation as b4, type AggregationKindOneOf as b5, type RangeBucket as b6, type IncludeMissingValuesOptions as b7, type ValueAggregation as b8, type ValueAggregationOptionsOneOf as b9, type GroupByValueResults as bA, type DateHistogramResults as bB, type NestedResults as bC, type AggregationResults as bD, type AggregationResultsResultOneOf as bE, type DomainEvent as bF, type DomainEventBodyOneOf as bG, type EntityCreatedEvent as bH, type RestoreInfo as bI, type EntityUpdatedEvent as bJ, type EntityDeletedEvent as bK, type ActionEvent as bL, type Empty as bM, type MessageEnvelope as bN, type IdentificationData as bO, type IdentificationDataIdOneOf as bP, type AccountInfo as bQ, type ExportParticipantsStatsRequest as bR, type ExportParticipantsStatsResponse as bS, type BaseEventMetadata as bT, type EventMetadata as bU, type AccountInfoMetadata as bV, type ParticipantsQueryResult as bW, type ParticipantQuerySpec as bX, type ParticipantSearchSpec as bY, utils as bZ, type PricingTypeWithLiterals as b_, type RangeAggregation as ba, type ScalarAggregation as bb, type DateHistogramAggregation as bc, type NestedAggregationItem as bd, type NestedAggregationItemKindOneOf as be, type NestedAggregation as bf, type GroupByAggregation as bg, type GroupByAggregationKindOneOf as bh, type SearchDetails as bi, type CursorPagingMetadata as bj, type AggregationData as bk, type ValueAggregationResult as bl, type RangeAggregationResult as bm, type NestedAggregationResults as bn, type NestedAggregationResultsResultOneOf as bo, type ValueResults as bp, type RangeResults as bq, type AggregationResultsScalarResult as br, type NestedValueAggregationResult as bs, type ValueResult as bt, type RangeResult as bu, type ScalarResult as bv, type NestedResultValue as bw, type NestedResultValueResultOneOf as bx, type Results as by, type DateHistogramResult as bz, type BulkCreateParticipantsResponse as c, type ProgressStatusWithLiterals as c0, type RequestedFieldsWithLiterals as c1, type BulkActionTypeWithLiterals as c2, type SortOrderWithLiterals as c3, type SortTypeWithLiterals as c4, type SortDirectionWithLiterals as c5, type MissingValuesWithLiterals as c6, type ScalarTypeWithLiterals as c7, type NestedAggregationTypeWithLiterals as c8, type IntervalWithLiterals as c9, bulkUpdateParticipantTagsByFilter as cA, type AggregationTypeWithLiterals as ca, type ModeWithLiterals as cb, type WebhookIdentityTypeWithLiterals as cc, type CommonQueryWithEntityContext as cd, type CommonSearchWithEntityContext as ce, onParticipantCompletedProgram as cf, onParticipantCreated as cg, onParticipantDeleted as ch, onParticipantLeft as ci, onParticipantMissedProgramDeadline as cj, onParticipantProgramDurationEnded as ck, onParticipantRemoved as cl, onParticipantTagsModified as cm, onParticipantUpdated as cn, createParticipant as co, updateParticipant as cp, bulkCreateParticipants as cq, bulkCreateParticipantsForAllMembers as cr, deleteParticipant as cs, issueCertificate as ct, getPremiumStats as cu, getParticipationStats as cv, getParticipant as cw, queryParticipants as cx, getAccessStatus as cy, bulkUpdateParticipantTags as cz, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetParticipationStatsResponse as i, type GetParticipantOptions as j, type GetAccessStatusResponse as k, type BulkUpdateParticipantTagsOptions as l, type BulkUpdateParticipantTagsResponse as m, type BulkUpdateParticipantTagsApplicationErrors as n, type BulkUpdateParticipantTagsByFilterOptions as o, type BulkUpdateParticipantTagsByFilterResponse as p, type BulkUpdateParticipantTagsByFilterApplicationErrors as q, type ParticipantSearch as r, type SearchParticipantsResponse as s, type ParticipantCompletedProgramEnvelope as t, type ParticipantCreatedEnvelope as u, type ParticipantDeletedEnvelope as v, type ParticipantLeftEnvelope as w, type ParticipantMissedProgramDeadlineEnvelope as x, type ParticipantProgramDurationEndedEnvelope as y, type ParticipantRemovedEnvelope as z };
|
package/build/es/index.d.mts
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-Cbh9oHrm.mjs';
|
|
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-Cbh9oHrm.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
|
@@ -19,7 +19,11 @@ interface CreateParticipantSignature {
|
|
|
19
19
|
declare function updateParticipant$1(httpClient: HttpClient): UpdateParticipantSignature;
|
|
20
20
|
interface UpdateParticipantSignature {
|
|
21
21
|
/**
|
|
22
|
-
* Updates a participant's enrollment status
|
|
22
|
+
* Updates a participant's enrollment status or enrollment pricing details.
|
|
23
|
+
*
|
|
24
|
+
* Use this method to suspend or resume a participant by setting `enrollment_status` to
|
|
25
|
+
* `SUSPENDED` or `JOINED`. To remove a participant, use `DeleteParticipant`.
|
|
26
|
+
* Progress status is calculated from the participant's resolved steps and can't be updated.
|
|
23
27
|
* @param - Participant ID.
|
|
24
28
|
* @returns Updated participant
|
|
25
29
|
*/
|
|
@@ -82,6 +86,14 @@ interface GetPremiumStatsSignature {
|
|
|
82
86
|
*/
|
|
83
87
|
(): Promise<NonNullablePaths<GetPremiumStatsResponse, `premiumEnabled` | `activeParticipantsCount` | `activeParticipantsLimit`, 2>>;
|
|
84
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
|
+
}
|
|
85
97
|
declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature;
|
|
86
98
|
interface GetParticipantSignature {
|
|
87
99
|
/**
|
|
@@ -154,6 +166,7 @@ declare const bulkCreateParticipantsForAllMembers: MaybeContext<BuildRESTFunctio
|
|
|
154
166
|
declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
|
|
155
167
|
declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
|
|
156
168
|
declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
|
|
169
|
+
declare const getParticipationStats: MaybeContext<BuildRESTFunction<typeof getParticipationStats$1> & typeof getParticipationStats$1>;
|
|
157
170
|
declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
|
|
158
171
|
declare const getAccessStatus: MaybeContext<BuildRESTFunction<typeof getAccessStatus$1> & typeof getAccessStatus$1>;
|
|
159
172
|
declare const bulkUpdateParticipantTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTags$1> & typeof bulkUpdateParticipantTags$1>;
|
|
@@ -197,4 +210,4 @@ declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipa
|
|
|
197
210
|
*/
|
|
198
211
|
declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
|
|
199
212
|
|
|
200
|
-
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/es/index.mjs
CHANGED
|
@@ -453,6 +453,27 @@ function getPremiumStats(payload) {
|
|
|
453
453
|
}
|
|
454
454
|
return __getPremiumStats;
|
|
455
455
|
}
|
|
456
|
+
function getParticipationStats(payload) {
|
|
457
|
+
function __getParticipationStats({ host }) {
|
|
458
|
+
const metadata = {
|
|
459
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
460
|
+
method: "POST",
|
|
461
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipationStats",
|
|
462
|
+
packageName: PACKAGE_NAME,
|
|
463
|
+
migrationOptions: {
|
|
464
|
+
optInTransformResponse: true
|
|
465
|
+
},
|
|
466
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
467
|
+
protoPath: "/v3/participants/stats",
|
|
468
|
+
data: payload,
|
|
469
|
+
host
|
|
470
|
+
}),
|
|
471
|
+
data: payload
|
|
472
|
+
};
|
|
473
|
+
return metadata;
|
|
474
|
+
}
|
|
475
|
+
return __getParticipationStats;
|
|
476
|
+
}
|
|
456
477
|
function getParticipant(payload) {
|
|
457
478
|
function __getParticipant({ host }) {
|
|
458
479
|
const metadata = {
|
|
@@ -996,6 +1017,33 @@ async function getPremiumStats2() {
|
|
|
996
1017
|
throw transformedError;
|
|
997
1018
|
}
|
|
998
1019
|
}
|
|
1020
|
+
async function getParticipationStats2(programIds) {
|
|
1021
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1022
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1023
|
+
programIds
|
|
1024
|
+
});
|
|
1025
|
+
const reqOpts = getParticipationStats(
|
|
1026
|
+
payload
|
|
1027
|
+
);
|
|
1028
|
+
sideEffects?.onSiteCall?.();
|
|
1029
|
+
try {
|
|
1030
|
+
const result = await httpClient.request(reqOpts);
|
|
1031
|
+
sideEffects?.onSuccess?.(result);
|
|
1032
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1033
|
+
} catch (err) {
|
|
1034
|
+
const transformedError = sdkTransformError(
|
|
1035
|
+
err,
|
|
1036
|
+
{
|
|
1037
|
+
spreadPathsToArguments: {},
|
|
1038
|
+
explicitPathsToArguments: { programIds: "$[0]" },
|
|
1039
|
+
singleArgumentUnchanged: false
|
|
1040
|
+
},
|
|
1041
|
+
["programIds"]
|
|
1042
|
+
);
|
|
1043
|
+
sideEffects?.onError?.(err);
|
|
1044
|
+
throw transformedError;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
999
1047
|
async function getParticipant2(participantId, options) {
|
|
1000
1048
|
const { httpClient, sideEffects } = arguments[2];
|
|
1001
1049
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1308,6 +1356,13 @@ function getPremiumStats3(httpClient) {
|
|
|
1308
1356
|
{ httpClient }
|
|
1309
1357
|
);
|
|
1310
1358
|
}
|
|
1359
|
+
function getParticipationStats3(httpClient) {
|
|
1360
|
+
return (programIds) => getParticipationStats2(
|
|
1361
|
+
programIds,
|
|
1362
|
+
// @ts-ignore
|
|
1363
|
+
{ httpClient }
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1311
1366
|
function getParticipant3(httpClient) {
|
|
1312
1367
|
return (participantId, options) => getParticipant2(
|
|
1313
1368
|
participantId,
|
|
@@ -1596,6 +1651,7 @@ var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ createRESTModule(bulk
|
|
|
1596
1651
|
var deleteParticipant4 = /* @__PURE__ */ createRESTModule(deleteParticipant3);
|
|
1597
1652
|
var issueCertificate4 = /* @__PURE__ */ createRESTModule(issueCertificate3);
|
|
1598
1653
|
var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
|
|
1654
|
+
var getParticipationStats4 = /* @__PURE__ */ createRESTModule(getParticipationStats3);
|
|
1599
1655
|
var getParticipant4 = /* @__PURE__ */ createRESTModule(getParticipant3);
|
|
1600
1656
|
var getAccessStatus4 = /* @__PURE__ */ createRESTModule(getAccessStatus3);
|
|
1601
1657
|
var bulkUpdateParticipantTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateParticipantTags3);
|
|
@@ -1651,6 +1707,7 @@ export {
|
|
|
1651
1707
|
exportParticipantsStats4 as exportParticipantsStats,
|
|
1652
1708
|
getAccessStatus4 as getAccessStatus,
|
|
1653
1709
|
getParticipant4 as getParticipant,
|
|
1710
|
+
getParticipationStats4 as getParticipationStats,
|
|
1654
1711
|
getPremiumStats4 as getPremiumStats,
|
|
1655
1712
|
issueCertificate4 as issueCertificate,
|
|
1656
1713
|
onParticipantCompletedProgram2 as onParticipantCompletedProgram,
|