@wix/auto_sdk_online-programs_participants 1.0.15 → 1.0.16
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 +49 -4
- package/build/cjs/index.js +254 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +15 -14
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-participants-v3-participant-participants.universal-B-mpcshi.d.ts → online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.ts} +206 -13
- package/build/es/index.d.mts +49 -4
- package/build/es/index.mjs +245 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +15 -14
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-participants-v3-participant-participants.universal-B-mpcshi.d.mts → online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.mts} +206 -13
- package/build/internal/cjs/index.d.ts +49 -4
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +15 -14
- package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-Cicta6rs.d.ts → online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.ts} +206 -13
- package/build/internal/es/index.d.mts +49 -4
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +15 -14
- package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-Cicta6rs.d.mts → online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.mts} +206 -13
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } 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 GetParticipantOptions, j as GetAccessStatusResponse, k as BulkUpdateParticipantTagsOptions, l as BulkUpdateParticipantTagsResponse, m as BulkUpdateParticipantTagsApplicationErrors, n as BulkUpdateParticipantTagsByFilterOptions, o as BulkUpdateParticipantTagsByFilterResponse, p as BulkUpdateParticipantTagsByFilterApplicationErrors, q as ParticipantSearch, S as SearchParticipantsOptions, r as SearchParticipantsResponse, s as ParticipantQuery, Q as QueryParticipantsOptions,
|
|
3
|
-
export {
|
|
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 GetParticipantOptions, j as GetAccessStatusResponse, k as BulkUpdateParticipantTagsOptions, l as BulkUpdateParticipantTagsResponse, m as BulkUpdateParticipantTagsApplicationErrors, n as BulkUpdateParticipantTagsByFilterOptions, o as BulkUpdateParticipantTagsByFilterResponse, p as BulkUpdateParticipantTagsByFilterApplicationErrors, q as ParticipantSearch, S as SearchParticipantsOptions, r as SearchParticipantsResponse, s as ParticipantCompletedProgramEnvelope, t as ParticipantCreatedEnvelope, u as ParticipantDeletedEnvelope, v as ParticipantLeftEnvelope, w as ParticipantMissedProgramDeadlineEnvelope, x as ParticipantProgramDurationEndedEnvelope, y as ParticipantRemovedEnvelope, z as ParticipantTagsModifiedEnvelope, A as ParticipantUpdatedEnvelope, D as ParticipantQuery, Q as QueryParticipantsOptions, E as typedQueryParticipants, F as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-CVjCdKBh.js';
|
|
3
|
+
export { bO as AccountInfo, bT as AccountInfoMetadata, bJ as ActionEvent, b2 as Aggregation, bi as AggregationData, b3 as AggregationKindOneOf, bB as AggregationResults, bC as AggregationResultsResultOneOf, bp as AggregationResultsScalarResult, Y as AggregationType, c8 as AggregationTypeWithLiterals, at as ApplicationError, bR as BaseEventMetadata, au as BulkActionMetadata, L as BulkActionType, c0 as BulkActionTypeWithLiterals, aF as BulkCreateParticipantsForAllMembersRequest, aq as BulkCreateParticipantsRequest, ay as BulkParticipantMigrationResult, ar as BulkParticipantResult, a_ as BulkUpdateParticipantTagsByFilterRequest, aY as BulkUpdateParticipantTagsRequest, aZ as BulkUpdateParticipantTagsResult, av as BulkUpsertParticipantsMigrationRequest, ax as BulkUpsertParticipantsMigrationResponse, a3 as CertificateInfo, cb as CommonQueryWithEntityContext, cc as CommonSearchWithEntityContext, am as CreateParticipantRequest, an as CreateParticipantResponse, aT as CursorPaging, bh as CursorPagingMetadata, b0 as CursorSearch, b1 as CursorSearchPagingMethodOneOf, aW as Cursors, ba as DateHistogramAggregation, bx as DateHistogramResult, bz as DateHistogramResults, ad as Delete, az as DeleteAllParticipantsMigrationRequest, aA as DeleteAllParticipantsMigrationResponse, aG as DeleteParticipantRequest, aH as DeleteParticipantResponse, bD as DomainEvent, bE as DomainEventBodyOneOf, bK as Empty, a5 as EnrollmentInfo, a6 as EnrollmentInfoPricingTypeDetailsOneOf, J as EnrollmentStatus, bZ as EnrollmentStatusWithLiterals, bF as EntityCreatedEvent, bI as EntityDeletedEvent, bH as EntityUpdatedEvent, bS as EventMetadata, bP as ExportParticipantsStatsRequest, bQ as ExportParticipantsStatsResponse, a7 as ExtendedFields, a1 as FreeCouponDetails, aX as GetAccessStatusRequest, aJ as GetCompletionStatsRequest, aK as GetCompletionStatsResponse, aM as GetParticipantRequest, aN as GetParticipantResponse, aL as GetPremiumStatsRequest, be as GroupByAggregation, bf as GroupByAggregationKindOneOf, by as GroupByValueResults, bM as IdentificationData, bN as IdentificationDataIdOneOf, b5 as IncludeMissingValuesOptions, X as Interval, c7 as IntervalWithLiterals, aI as IssueCertificateRequest, as as ItemMetadata, a4 as Member, bL as MessageEnvelope, T as MissingValues, c4 as MissingValuesWithLiterals, Z as Mode, c9 as ModeWithLiterals, bd as NestedAggregation, bb as NestedAggregationItem, bc as NestedAggregationItemKindOneOf, bl as NestedAggregationResults, bm as NestedAggregationResultsResultOneOf, W as NestedAggregationType, c6 as NestedAggregationTypeWithLiterals, bu as NestedResultValue, bv as NestedResultValueResultOneOf, bA as NestedResults, bq as NestedValueAggregationResult, aS as Paging, aV as PagingMetadataV2, a0 as PaidPlanDetails, ag as ParticipantCompletedProgram, al as ParticipantExportsFinished, ak as ParticipantLeft, aw as ParticipantMigration, ah as ParticipantMissedProgramDeadline, ai as ParticipantProgramDurationEnded, bV as ParticipantQuerySpec, aj as ParticipantRemoved, bW as ParticipantSearchSpec, af as ParticipantTagsModified, bU as ParticipantsQueryResult, H as PricingType, bY as PricingTypeWithLiterals, a2 as Progress, K as ProgressStatus, b_ as ProgressStatusWithLiterals, aO as QueryParticipantsRequest, aU as QueryParticipantsResponse, aP as QueryV2, aQ as QueryV2PagingMethodOneOf, b8 as RangeAggregation, bk as RangeAggregationResult, b4 as RangeBucket, bs as RangeResult, bo as RangeResults, aa as ReindexMessage, ab as ReindexMessageActionOneOf, aB as ReindexParticipantsSearchRequest, aC as ReindexParticipantsSearchResponse, R as RequestedFields, b$ as RequestedFieldsWithLiterals, bG as RestoreInfo, bw as Results, b9 as ScalarAggregation, bt as ScalarResult, V as ScalarType, c5 as ScalarTypeWithLiterals, ae as Schema, bg as SearchDetails, a$ as SearchParticipantsRequest, $ as SinglePaymentDetails, O as SortDirection, c3 as SortDirectionWithLiterals, M as SortOrder, c1 as SortOrderWithLiterals, N as SortType, c2 as SortTypeWithLiterals, aR as Sorting, aD as SynchronizeTimeCapsuleTasksRequest, aE as SynchronizeTimeCapsuleTasksResponse, a9 as TagList, a8 as Tags, ao as UpdateParticipantRequest, ap as UpdateParticipantResponse, ac as Upsert, b6 as ValueAggregation, b7 as ValueAggregationOptionsOneOf, bj as ValueAggregationResult, br as ValueResult, bn as ValueResults, _ as WebhookIdentityType, ca as WebhookIdentityTypeWithLiterals, bX as utils } from './online-programs-participants-v3-participant-participants.universal-CVjCdKBh.js';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
|
@@ -133,6 +133,15 @@ interface SearchParticipantsSignature {
|
|
|
133
133
|
*/
|
|
134
134
|
(search: ParticipantSearch, options?: SearchParticipantsOptions): Promise<NonNullablePaths<SearchParticipantsResponse, `participants` | `participants.${number}.memberId` | `participants.${number}.programId` | `participants.${number}.progress.totalStepsCompleted` | `participants.${number}.progress.totalStepsAvailable` | `participants.${number}.progress.completionPercentage` | `participants.${number}.enrollmentStatus` | `participants.${number}.progressStatus` | `participants.${number}.enrollmentInfo.singlePaymentDetails.paymentOrderId` | `participants.${number}.enrollmentInfo.paidPlanDetails.paidPlanId` | `participants.${number}.enrollmentInfo.freeCouponDetails.freeCouponId` | `participants.${number}.enrollmentInfo.timeZone` | `participants.${number}.enrollmentInfo.startDate` | `participants.${number}.enrollmentInfo.pricingType` | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`, 6>>;
|
|
135
135
|
}
|
|
136
|
+
declare const onParticipantCompletedProgram$1: EventDefinition<ParticipantCompletedProgramEnvelope, "wix.online_programs.participants.v3.participant_completed_program">;
|
|
137
|
+
declare const onParticipantCreated$1: EventDefinition<ParticipantCreatedEnvelope, "wix.online_programs.participants.v3.participant_created">;
|
|
138
|
+
declare const onParticipantDeleted$1: EventDefinition<ParticipantDeletedEnvelope, "wix.online_programs.participants.v3.participant_deleted">;
|
|
139
|
+
declare const onParticipantLeft$1: EventDefinition<ParticipantLeftEnvelope, "wix.online_programs.participants.v3.participant_left">;
|
|
140
|
+
declare const onParticipantMissedProgramDeadline$1: EventDefinition<ParticipantMissedProgramDeadlineEnvelope, "wix.online_programs.participants.v3.participant_missed_program_deadline">;
|
|
141
|
+
declare const onParticipantProgramDurationEnded$1: EventDefinition<ParticipantProgramDurationEndedEnvelope, "wix.online_programs.participants.v3.participant_program_duration_ended">;
|
|
142
|
+
declare const onParticipantRemoved$1: EventDefinition<ParticipantRemovedEnvelope, "wix.online_programs.participants.v3.participant_removed">;
|
|
143
|
+
declare const onParticipantTagsModified$1: EventDefinition<ParticipantTagsModifiedEnvelope, "wix.online_programs.participants.v3.participant_tags_modified">;
|
|
144
|
+
declare const onParticipantUpdated$1: EventDefinition<ParticipantUpdatedEnvelope, "wix.online_programs.participants.v3.participant_updated">;
|
|
136
145
|
|
|
137
146
|
declare function customQueryParticipants(httpClient: HttpClient): {
|
|
138
147
|
(query: ParticipantQuery, options?: QueryParticipantsOptions): ReturnType<typeof typedQueryParticipants>;
|
|
@@ -151,5 +160,41 @@ declare const bulkUpdateParticipantTags: MaybeContext<BuildRESTFunction<typeof b
|
|
|
151
160
|
declare const bulkUpdateParticipantTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTagsByFilter$1> & typeof bulkUpdateParticipantTagsByFilter$1>;
|
|
152
161
|
declare const searchParticipants: MaybeContext<BuildRESTFunction<typeof searchParticipants$1> & typeof searchParticipants$1>;
|
|
153
162
|
declare const queryParticipants: MaybeContext<BuildRESTFunction<typeof customQueryParticipants> & typeof customQueryParticipants>;
|
|
163
|
+
/**
|
|
164
|
+
* Triggered when a participant completes a program.
|
|
165
|
+
*/
|
|
166
|
+
declare const onParticipantCompletedProgram: BuildEventDefinition<typeof onParticipantCompletedProgram$1> & typeof onParticipantCompletedProgram$1;
|
|
167
|
+
/**
|
|
168
|
+
* Triggered when a participant is created.
|
|
169
|
+
*/
|
|
170
|
+
declare const onParticipantCreated: BuildEventDefinition<typeof onParticipantCreated$1> & typeof onParticipantCreated$1;
|
|
171
|
+
/**
|
|
172
|
+
* Triggered when a participant is deleted.
|
|
173
|
+
*/
|
|
174
|
+
declare const onParticipantDeleted: BuildEventDefinition<typeof onParticipantDeleted$1> & typeof onParticipantDeleted$1;
|
|
175
|
+
/**
|
|
176
|
+
* Triggered when a participant voluntarily leaves a program.
|
|
177
|
+
*/
|
|
178
|
+
declare const onParticipantLeft: BuildEventDefinition<typeof onParticipantLeft$1> & typeof onParticipantLeft$1;
|
|
179
|
+
/**
|
|
180
|
+
* Triggered when a participant misses a program deadline.
|
|
181
|
+
*/
|
|
182
|
+
declare const onParticipantMissedProgramDeadline: BuildEventDefinition<typeof onParticipantMissedProgramDeadline$1> & typeof onParticipantMissedProgramDeadline$1;
|
|
183
|
+
/**
|
|
184
|
+
* Triggered when a participant's program duration ends.
|
|
185
|
+
*/
|
|
186
|
+
declare const onParticipantProgramDurationEnded: BuildEventDefinition<typeof onParticipantProgramDurationEnded$1> & typeof onParticipantProgramDurationEnded$1;
|
|
187
|
+
/**
|
|
188
|
+
* Triggered when an administrator removes a participant from a program.
|
|
189
|
+
*/
|
|
190
|
+
declare const onParticipantRemoved: BuildEventDefinition<typeof onParticipantRemoved$1> & typeof onParticipantRemoved$1;
|
|
191
|
+
/**
|
|
192
|
+
* Triggered when a participant's tags are modified.
|
|
193
|
+
*/
|
|
194
|
+
declare const onParticipantTagsModified: BuildEventDefinition<typeof onParticipantTagsModified$1> & typeof onParticipantTagsModified$1;
|
|
195
|
+
/**
|
|
196
|
+
* Triggered when a participant is updated.
|
|
197
|
+
*/
|
|
198
|
+
declare const onParticipantUpdated: BuildEventDefinition<typeof onParticipantUpdated$1> & typeof onParticipantUpdated$1;
|
|
154
199
|
|
|
155
|
-
export { BulkCreateParticipantsApplicationErrors, BulkCreateParticipantsForAllMembersOptions, BulkCreateParticipantsForAllMembersResponse, BulkCreateParticipantsOptions, BulkCreateParticipantsResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, CreateParticipantOptions, GetAccessStatusResponse, GetParticipantOptions, GetPremiumStatsResponse, IssueCertificateApplicationErrors, IssueCertificateOptions, IssueCertificateResponse, Participant, ParticipantQuery, ParticipantSearch, ParticipantsQueryBuilder, QueryParticipantsOptions, SearchParticipantsOptions, SearchParticipantsResponse, UpdateParticipant, UpdateParticipantOptions, bulkCreateParticipants, bulkCreateParticipantsForAllMembers, bulkUpdateParticipantTags, bulkUpdateParticipantTagsByFilter, createParticipant, deleteParticipant, getAccessStatus, getParticipant, getPremiumStats, issueCertificate, queryParticipants, searchParticipants, updateParticipant };
|
|
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 };
|
package/build/cjs/index.js
CHANGED
|
@@ -46,6 +46,15 @@ __export(index_exports, {
|
|
|
46
46
|
getParticipant: () => getParticipant4,
|
|
47
47
|
getPremiumStats: () => getPremiumStats4,
|
|
48
48
|
issueCertificate: () => issueCertificate4,
|
|
49
|
+
onParticipantCompletedProgram: () => onParticipantCompletedProgram2,
|
|
50
|
+
onParticipantCreated: () => onParticipantCreated2,
|
|
51
|
+
onParticipantDeleted: () => onParticipantDeleted2,
|
|
52
|
+
onParticipantLeft: () => onParticipantLeft2,
|
|
53
|
+
onParticipantMissedProgramDeadline: () => onParticipantMissedProgramDeadline2,
|
|
54
|
+
onParticipantProgramDurationEnded: () => onParticipantProgramDurationEnded2,
|
|
55
|
+
onParticipantRemoved: () => onParticipantRemoved2,
|
|
56
|
+
onParticipantTagsModified: () => onParticipantTagsModified2,
|
|
57
|
+
onParticipantUpdated: () => onParticipantUpdated2,
|
|
49
58
|
queryParticipants: () => queryParticipants4,
|
|
50
59
|
searchParticipants: () => searchParticipants4,
|
|
51
60
|
updateParticipant: () => updateParticipant4,
|
|
@@ -53,6 +62,13 @@ __export(index_exports, {
|
|
|
53
62
|
});
|
|
54
63
|
module.exports = __toCommonJS(index_exports);
|
|
55
64
|
|
|
65
|
+
// src/online-programs-participants-v3-participant-participants.public.ts
|
|
66
|
+
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
67
|
+
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
68
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
69
|
+
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
70
|
+
var import_sdk_types = require("@wix/sdk-types");
|
|
71
|
+
|
|
56
72
|
// src/online-programs-participants-v3-participant-participants.universal.ts
|
|
57
73
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
58
74
|
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
@@ -1413,9 +1429,215 @@ function exportParticipantsStats3(httpClient) {
|
|
|
1413
1429
|
{ httpClient }
|
|
1414
1430
|
);
|
|
1415
1431
|
}
|
|
1432
|
+
var onParticipantCompletedProgram = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1433
|
+
"wix.online_programs.participants.v3.participant_completed_program",
|
|
1434
|
+
true,
|
|
1435
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1436
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1437
|
+
{
|
|
1438
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1439
|
+
paths: [
|
|
1440
|
+
{ path: "data.participant.createdDate" },
|
|
1441
|
+
{ path: "data.participant.updatedDate" },
|
|
1442
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1443
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1444
|
+
{ path: "metadata.eventTime" }
|
|
1445
|
+
]
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1449
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1450
|
+
}
|
|
1451
|
+
])
|
|
1452
|
+
)
|
|
1453
|
+
)();
|
|
1454
|
+
var onParticipantCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1455
|
+
"wix.online_programs.participants.v3.participant_created",
|
|
1456
|
+
true,
|
|
1457
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1458
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1459
|
+
{
|
|
1460
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1461
|
+
paths: [
|
|
1462
|
+
{ path: "entity.createdDate" },
|
|
1463
|
+
{ path: "entity.updatedDate" },
|
|
1464
|
+
{ path: "entity.lastActivityDate" },
|
|
1465
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1466
|
+
{ path: "metadata.eventTime" }
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1471
|
+
paths: [{ path: "entity.progress.completionPercentage" }]
|
|
1472
|
+
}
|
|
1473
|
+
])
|
|
1474
|
+
)
|
|
1475
|
+
)();
|
|
1476
|
+
var onParticipantDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1477
|
+
"wix.online_programs.participants.v3.participant_deleted",
|
|
1478
|
+
true,
|
|
1479
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1480
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1481
|
+
{
|
|
1482
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1483
|
+
paths: [
|
|
1484
|
+
{ path: "entity.createdDate" },
|
|
1485
|
+
{ path: "entity.updatedDate" },
|
|
1486
|
+
{ path: "entity.lastActivityDate" },
|
|
1487
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1488
|
+
{ path: "metadata.eventTime" }
|
|
1489
|
+
]
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1493
|
+
paths: [{ path: "entity.progress.completionPercentage" }]
|
|
1494
|
+
}
|
|
1495
|
+
])
|
|
1496
|
+
)
|
|
1497
|
+
)();
|
|
1498
|
+
var onParticipantLeft = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1499
|
+
"wix.online_programs.participants.v3.participant_left",
|
|
1500
|
+
true,
|
|
1501
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1502
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1503
|
+
{
|
|
1504
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1505
|
+
paths: [
|
|
1506
|
+
{ path: "data.participant.createdDate" },
|
|
1507
|
+
{ path: "data.participant.updatedDate" },
|
|
1508
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1509
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1510
|
+
{ path: "metadata.eventTime" }
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1515
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1516
|
+
}
|
|
1517
|
+
])
|
|
1518
|
+
)
|
|
1519
|
+
)();
|
|
1520
|
+
var onParticipantMissedProgramDeadline = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1521
|
+
"wix.online_programs.participants.v3.participant_missed_program_deadline",
|
|
1522
|
+
true,
|
|
1523
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1524
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1525
|
+
{
|
|
1526
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1527
|
+
paths: [
|
|
1528
|
+
{ path: "data.participant.createdDate" },
|
|
1529
|
+
{ path: "data.participant.updatedDate" },
|
|
1530
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1531
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1532
|
+
{ path: "metadata.eventTime" }
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1537
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1538
|
+
}
|
|
1539
|
+
])
|
|
1540
|
+
)
|
|
1541
|
+
)();
|
|
1542
|
+
var onParticipantProgramDurationEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1543
|
+
"wix.online_programs.participants.v3.participant_program_duration_ended",
|
|
1544
|
+
true,
|
|
1545
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1546
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1547
|
+
{
|
|
1548
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1549
|
+
paths: [
|
|
1550
|
+
{ path: "data.participant.createdDate" },
|
|
1551
|
+
{ path: "data.participant.updatedDate" },
|
|
1552
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1553
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1554
|
+
{ path: "metadata.eventTime" }
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1559
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1560
|
+
}
|
|
1561
|
+
])
|
|
1562
|
+
)
|
|
1563
|
+
)();
|
|
1564
|
+
var onParticipantRemoved = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1565
|
+
"wix.online_programs.participants.v3.participant_removed",
|
|
1566
|
+
true,
|
|
1567
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1568
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1569
|
+
{
|
|
1570
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1571
|
+
paths: [
|
|
1572
|
+
{ path: "data.participant.createdDate" },
|
|
1573
|
+
{ path: "data.participant.updatedDate" },
|
|
1574
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1575
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1576
|
+
{ path: "metadata.eventTime" }
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1581
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1582
|
+
}
|
|
1583
|
+
])
|
|
1584
|
+
)
|
|
1585
|
+
)();
|
|
1586
|
+
var onParticipantTagsModified = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1587
|
+
"wix.online_programs.participants.v3.participant_tags_modified",
|
|
1588
|
+
true,
|
|
1589
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1590
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1591
|
+
{
|
|
1592
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1593
|
+
paths: [
|
|
1594
|
+
{ path: "data.participant.createdDate" },
|
|
1595
|
+
{ path: "data.participant.updatedDate" },
|
|
1596
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1597
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1598
|
+
{ path: "metadata.eventTime" }
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1603
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1604
|
+
}
|
|
1605
|
+
])
|
|
1606
|
+
)
|
|
1607
|
+
)();
|
|
1608
|
+
var onParticipantUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1609
|
+
"wix.online_programs.participants.v3.participant_updated",
|
|
1610
|
+
true,
|
|
1611
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1612
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1613
|
+
{
|
|
1614
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1615
|
+
paths: [
|
|
1616
|
+
{ path: "entity.createdDate" },
|
|
1617
|
+
{ path: "entity.updatedDate" },
|
|
1618
|
+
{ path: "entity.lastActivityDate" },
|
|
1619
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1620
|
+
{ path: "metadata.eventTime" },
|
|
1621
|
+
{ path: "modifiedFields.createdDate" },
|
|
1622
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1623
|
+
{ path: "modifiedFields.lastActivityDate" },
|
|
1624
|
+
{ path: "modifiedFields.certificateInfo.issueDate" }
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1629
|
+
paths: [
|
|
1630
|
+
{ path: "entity.progress.completionPercentage" },
|
|
1631
|
+
{ path: "modifiedFields.progress.completionPercentage" }
|
|
1632
|
+
]
|
|
1633
|
+
}
|
|
1634
|
+
])
|
|
1635
|
+
)
|
|
1636
|
+
)();
|
|
1416
1637
|
|
|
1417
1638
|
// src/online-programs-participants-v3-participant-participants.context.ts
|
|
1418
1639
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1640
|
+
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1419
1641
|
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1420
1642
|
function customQueryParticipants(httpClient) {
|
|
1421
1643
|
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
@@ -1442,6 +1664,29 @@ var bulkUpdateParticipantTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules
|
|
|
1442
1664
|
var searchParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchParticipants3);
|
|
1443
1665
|
var exportParticipantsStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(exportParticipantsStats3);
|
|
1444
1666
|
var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryParticipants);
|
|
1667
|
+
var onParticipantCompletedProgram2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1668
|
+
onParticipantCompletedProgram
|
|
1669
|
+
);
|
|
1670
|
+
var onParticipantCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1671
|
+
onParticipantCreated
|
|
1672
|
+
);
|
|
1673
|
+
var onParticipantDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1674
|
+
onParticipantDeleted
|
|
1675
|
+
);
|
|
1676
|
+
var onParticipantLeft2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1677
|
+
onParticipantLeft
|
|
1678
|
+
);
|
|
1679
|
+
var onParticipantMissedProgramDeadline2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onParticipantMissedProgramDeadline);
|
|
1680
|
+
var onParticipantProgramDurationEnded2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onParticipantProgramDurationEnded);
|
|
1681
|
+
var onParticipantRemoved2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1682
|
+
onParticipantRemoved
|
|
1683
|
+
);
|
|
1684
|
+
var onParticipantTagsModified2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1685
|
+
onParticipantTagsModified
|
|
1686
|
+
);
|
|
1687
|
+
var onParticipantUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1688
|
+
onParticipantUpdated
|
|
1689
|
+
);
|
|
1445
1690
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1446
1691
|
0 && (module.exports = {
|
|
1447
1692
|
AggregationType,
|
|
@@ -1470,6 +1715,15 @@ var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModu
|
|
|
1470
1715
|
getParticipant,
|
|
1471
1716
|
getPremiumStats,
|
|
1472
1717
|
issueCertificate,
|
|
1718
|
+
onParticipantCompletedProgram,
|
|
1719
|
+
onParticipantCreated,
|
|
1720
|
+
onParticipantDeleted,
|
|
1721
|
+
onParticipantLeft,
|
|
1722
|
+
onParticipantMissedProgramDeadline,
|
|
1723
|
+
onParticipantProgramDurationEnded,
|
|
1724
|
+
onParticipantRemoved,
|
|
1725
|
+
onParticipantTagsModified,
|
|
1726
|
+
onParticipantUpdated,
|
|
1473
1727
|
queryParticipants,
|
|
1474
1728
|
searchParticipants,
|
|
1475
1729
|
updateParticipant,
|