@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
|
@@ -321,18 +321,6 @@ interface Schema {
|
|
|
321
321
|
label?: string;
|
|
322
322
|
clusterName?: string;
|
|
323
323
|
}
|
|
324
|
-
interface ParticipantAdded {
|
|
325
|
-
/**
|
|
326
|
-
* ID of the program to which the participant was added.
|
|
327
|
-
* @format GUID
|
|
328
|
-
*/
|
|
329
|
-
programId?: string;
|
|
330
|
-
/**
|
|
331
|
-
* Member ID of the participant on the site.
|
|
332
|
-
* @format GUID
|
|
333
|
-
*/
|
|
334
|
-
memberId?: string;
|
|
335
|
-
}
|
|
336
324
|
/**
|
|
337
325
|
* Domain event emitted when a participant's tags are modified.
|
|
338
326
|
* Pre-publication rename from TagsModified; no consumers of the legacy FQN are known.
|
|
@@ -345,6 +333,7 @@ interface ParticipantTagsModified {
|
|
|
345
333
|
/** Tags that were unassigned */
|
|
346
334
|
unassignedTags?: Tags;
|
|
347
335
|
}
|
|
336
|
+
/** Domain event emitted when a participant completes a program. */
|
|
348
337
|
interface ParticipantCompletedProgram {
|
|
349
338
|
/**
|
|
350
339
|
* ID of the participant who completed the program.
|
|
@@ -361,7 +350,10 @@ interface ParticipantCompletedProgram {
|
|
|
361
350
|
* @format GUID
|
|
362
351
|
*/
|
|
363
352
|
memberId?: string;
|
|
353
|
+
/** Snapshot of the participant after completing the program. */
|
|
354
|
+
participant?: Participant;
|
|
364
355
|
}
|
|
356
|
+
/** Domain event emitted when a participant misses a program deadline. */
|
|
365
357
|
interface ParticipantMissedProgramDeadline {
|
|
366
358
|
/**
|
|
367
359
|
* ID of the participant who missed the deadline.
|
|
@@ -378,7 +370,10 @@ interface ParticipantMissedProgramDeadline {
|
|
|
378
370
|
* @format GUID
|
|
379
371
|
*/
|
|
380
372
|
memberId?: string;
|
|
373
|
+
/** Snapshot of the participant after missing the deadline. */
|
|
374
|
+
participant?: Participant;
|
|
381
375
|
}
|
|
376
|
+
/** Domain event emitted when a participant's program duration ends. */
|
|
382
377
|
interface ParticipantProgramDurationEnded {
|
|
383
378
|
/**
|
|
384
379
|
* ID of the participant whose program duration ended.
|
|
@@ -395,6 +390,8 @@ interface ParticipantProgramDurationEnded {
|
|
|
395
390
|
* @format GUID
|
|
396
391
|
*/
|
|
397
392
|
memberId?: string;
|
|
393
|
+
/** Snapshot of the participant when the program duration ended. */
|
|
394
|
+
participant?: Participant;
|
|
398
395
|
}
|
|
399
396
|
/** Domain event emitted when a participant is removed from a program by an administrator. */
|
|
400
397
|
interface ParticipantRemoved {
|
|
@@ -413,6 +410,8 @@ interface ParticipantRemoved {
|
|
|
413
410
|
* @format GUID
|
|
414
411
|
*/
|
|
415
412
|
memberId?: string;
|
|
413
|
+
/** Snapshot of the participant after being removed from the program. */
|
|
414
|
+
participant?: Participant;
|
|
416
415
|
}
|
|
417
416
|
/** Domain event emitted when a participant voluntarily leaves a program. */
|
|
418
417
|
interface ParticipantLeft {
|
|
@@ -431,6 +430,8 @@ interface ParticipantLeft {
|
|
|
431
430
|
* @format GUID
|
|
432
431
|
*/
|
|
433
432
|
memberId?: string;
|
|
433
|
+
/** Snapshot of the participant after leaving the program. */
|
|
434
|
+
participant?: Participant;
|
|
434
435
|
}
|
|
435
436
|
interface ParticipantExportsFinished {
|
|
436
437
|
/**
|
|
@@ -1607,6 +1608,198 @@ type BulkUpdateParticipantTagsByFilterApplicationErrors = {
|
|
|
1607
1608
|
description?: string;
|
|
1608
1609
|
data?: Record<string, any>;
|
|
1609
1610
|
};
|
|
1611
|
+
interface BaseEventMetadata {
|
|
1612
|
+
/**
|
|
1613
|
+
* App instance ID.
|
|
1614
|
+
* @format GUID
|
|
1615
|
+
*/
|
|
1616
|
+
instanceId?: string | null;
|
|
1617
|
+
/**
|
|
1618
|
+
* Event type.
|
|
1619
|
+
* @maxLength 150
|
|
1620
|
+
*/
|
|
1621
|
+
eventType?: string;
|
|
1622
|
+
/** The identification type and identity data. */
|
|
1623
|
+
identity?: IdentificationData;
|
|
1624
|
+
/** Details related to the account */
|
|
1625
|
+
accountInfo?: AccountInfo;
|
|
1626
|
+
}
|
|
1627
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
1628
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
1629
|
+
_id?: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
1632
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
1633
|
+
*/
|
|
1634
|
+
entityFqdn?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
1637
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
1638
|
+
*/
|
|
1639
|
+
slug?: string;
|
|
1640
|
+
/** ID of the entity associated with the event. */
|
|
1641
|
+
entityId?: string;
|
|
1642
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
1643
|
+
eventTime?: Date | null;
|
|
1644
|
+
/**
|
|
1645
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1646
|
+
* (for example, GDPR).
|
|
1647
|
+
*/
|
|
1648
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1649
|
+
/** If present, indicates the action that triggered the event. */
|
|
1650
|
+
originatedFrom?: string | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
|
|
1653
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
1654
|
+
*/
|
|
1655
|
+
entityEventSequence?: string | null;
|
|
1656
|
+
accountInfo?: AccountInfoMetadata;
|
|
1657
|
+
}
|
|
1658
|
+
interface AccountInfoMetadata {
|
|
1659
|
+
/** ID of the Wix account associated with the event */
|
|
1660
|
+
accountId: string;
|
|
1661
|
+
/** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
|
|
1662
|
+
siteId?: string;
|
|
1663
|
+
/** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
|
|
1664
|
+
parentAccountId?: string;
|
|
1665
|
+
}
|
|
1666
|
+
interface ParticipantCompletedProgramEnvelope {
|
|
1667
|
+
data: ParticipantCompletedProgram;
|
|
1668
|
+
metadata: EventMetadata;
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* Triggered when a participant completes a program.
|
|
1672
|
+
* @permissionScope Manage Online Programs
|
|
1673
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1674
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1675
|
+
* @webhook
|
|
1676
|
+
* @eventType wix.online_programs.participants.v3.participant_completed_program
|
|
1677
|
+
* @slug completed_program
|
|
1678
|
+
* @documentationMaturity preview
|
|
1679
|
+
*/
|
|
1680
|
+
declare function onParticipantCompletedProgram(handler: (event: ParticipantCompletedProgramEnvelope) => void | Promise<void>): void;
|
|
1681
|
+
interface ParticipantCreatedEnvelope {
|
|
1682
|
+
entity: Participant;
|
|
1683
|
+
metadata: EventMetadata;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Triggered when a participant is created.
|
|
1687
|
+
* @permissionScope Manage Online Programs
|
|
1688
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1689
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1690
|
+
* @webhook
|
|
1691
|
+
* @eventType wix.online_programs.participants.v3.participant_created
|
|
1692
|
+
* @slug created
|
|
1693
|
+
* @documentationMaturity preview
|
|
1694
|
+
*/
|
|
1695
|
+
declare function onParticipantCreated(handler: (event: ParticipantCreatedEnvelope) => void | Promise<void>): void;
|
|
1696
|
+
interface ParticipantDeletedEnvelope {
|
|
1697
|
+
entity: Participant;
|
|
1698
|
+
metadata: EventMetadata;
|
|
1699
|
+
}
|
|
1700
|
+
/**
|
|
1701
|
+
* Triggered when a participant is deleted.
|
|
1702
|
+
* @permissionScope Manage Online Programs
|
|
1703
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1704
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1705
|
+
* @webhook
|
|
1706
|
+
* @eventType wix.online_programs.participants.v3.participant_deleted
|
|
1707
|
+
* @slug deleted
|
|
1708
|
+
* @documentationMaturity preview
|
|
1709
|
+
*/
|
|
1710
|
+
declare function onParticipantDeleted(handler: (event: ParticipantDeletedEnvelope) => void | Promise<void>): void;
|
|
1711
|
+
interface ParticipantLeftEnvelope {
|
|
1712
|
+
data: ParticipantLeft;
|
|
1713
|
+
metadata: EventMetadata;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Triggered when a participant voluntarily leaves a program.
|
|
1717
|
+
* @permissionScope Manage Online Programs
|
|
1718
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1719
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1720
|
+
* @webhook
|
|
1721
|
+
* @eventType wix.online_programs.participants.v3.participant_left
|
|
1722
|
+
* @slug left
|
|
1723
|
+
* @documentationMaturity preview
|
|
1724
|
+
*/
|
|
1725
|
+
declare function onParticipantLeft(handler: (event: ParticipantLeftEnvelope) => void | Promise<void>): void;
|
|
1726
|
+
interface ParticipantMissedProgramDeadlineEnvelope {
|
|
1727
|
+
data: ParticipantMissedProgramDeadline;
|
|
1728
|
+
metadata: EventMetadata;
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Triggered when a participant misses a program deadline.
|
|
1732
|
+
* @permissionScope Manage Online Programs
|
|
1733
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1734
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1735
|
+
* @webhook
|
|
1736
|
+
* @eventType wix.online_programs.participants.v3.participant_missed_program_deadline
|
|
1737
|
+
* @slug missed_program_deadline
|
|
1738
|
+
* @documentationMaturity preview
|
|
1739
|
+
*/
|
|
1740
|
+
declare function onParticipantMissedProgramDeadline(handler: (event: ParticipantMissedProgramDeadlineEnvelope) => void | Promise<void>): void;
|
|
1741
|
+
interface ParticipantProgramDurationEndedEnvelope {
|
|
1742
|
+
data: ParticipantProgramDurationEnded;
|
|
1743
|
+
metadata: EventMetadata;
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Triggered when a participant's program duration ends.
|
|
1747
|
+
* @permissionScope Manage Online Programs
|
|
1748
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1749
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1750
|
+
* @webhook
|
|
1751
|
+
* @eventType wix.online_programs.participants.v3.participant_program_duration_ended
|
|
1752
|
+
* @slug program_duration_ended
|
|
1753
|
+
* @documentationMaturity preview
|
|
1754
|
+
*/
|
|
1755
|
+
declare function onParticipantProgramDurationEnded(handler: (event: ParticipantProgramDurationEndedEnvelope) => void | Promise<void>): void;
|
|
1756
|
+
interface ParticipantRemovedEnvelope {
|
|
1757
|
+
data: ParticipantRemoved;
|
|
1758
|
+
metadata: EventMetadata;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Triggered when an administrator removes a participant from a program.
|
|
1762
|
+
* @permissionScope Manage Online Programs
|
|
1763
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1764
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1765
|
+
* @webhook
|
|
1766
|
+
* @eventType wix.online_programs.participants.v3.participant_removed
|
|
1767
|
+
* @slug removed
|
|
1768
|
+
* @documentationMaturity preview
|
|
1769
|
+
*/
|
|
1770
|
+
declare function onParticipantRemoved(handler: (event: ParticipantRemovedEnvelope) => void | Promise<void>): void;
|
|
1771
|
+
interface ParticipantTagsModifiedEnvelope {
|
|
1772
|
+
data: ParticipantTagsModified;
|
|
1773
|
+
metadata: EventMetadata;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* Triggered when a participant's tags are modified.
|
|
1777
|
+
* @permissionScope Manage Online Programs
|
|
1778
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1779
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1780
|
+
* @webhook
|
|
1781
|
+
* @eventType wix.online_programs.participants.v3.participant_tags_modified
|
|
1782
|
+
* @slug tags_modified
|
|
1783
|
+
* @documentationMaturity preview
|
|
1784
|
+
*/
|
|
1785
|
+
declare function onParticipantTagsModified(handler: (event: ParticipantTagsModifiedEnvelope) => void | Promise<void>): void;
|
|
1786
|
+
interface ParticipantUpdatedEnvelope {
|
|
1787
|
+
entity: Participant;
|
|
1788
|
+
metadata: EventMetadata;
|
|
1789
|
+
/** @hidden */
|
|
1790
|
+
modifiedFields: Record<string, any>;
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Triggered when a participant is updated.
|
|
1794
|
+
* @permissionScope Manage Online Programs
|
|
1795
|
+
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1796
|
+
* @permissionId online_programs:participants:v3:participant:read_events
|
|
1797
|
+
* @webhook
|
|
1798
|
+
* @eventType wix.online_programs.participants.v3.participant_updated
|
|
1799
|
+
* @slug updated
|
|
1800
|
+
* @documentationMaturity preview
|
|
1801
|
+
*/
|
|
1802
|
+
declare function onParticipantUpdated(handler: (event: ParticipantUpdatedEnvelope) => void | Promise<void>): void;
|
|
1610
1803
|
/**
|
|
1611
1804
|
* Creates a participant.
|
|
1612
1805
|
*
|
|
@@ -2265,4 +2458,4 @@ type ParticipantSearch = {
|
|
|
2265
2458
|
timeZone?: CommonSearchWithEntityContext['timeZone'] | null;
|
|
2266
2459
|
};
|
|
2267
2460
|
|
|
2268
|
-
export { type
|
|
2461
|
+
export { type SinglePaymentDetails as $, type ParticipantUpdatedEnvelope as A, type BulkCreateParticipantsOptions as B, type CreateParticipantOptions as C, type ParticipantQuery as D, typedQueryParticipants as E, type ParticipantsQueryBuilder as F, type GetPremiumStatsResponse as G, PricingType as H, type IssueCertificateOptions as I, EnrollmentStatus as J, ProgressStatus as K, BulkActionType as L, SortOrder as M, SortType as N, SortDirection as O, type Participant as P, type QueryParticipantsOptions as Q, RequestedFields as R, type SearchParticipantsOptions as S, MissingValues as T, type UpdateParticipant as U, ScalarType as V, NestedAggregationType as W, Interval as X, AggregationType as Y, Mode as Z, WebhookIdentityType as _, type CreateParticipantApplicationErrors as a, type SearchParticipantsRequest as a$, type PaidPlanDetails as a0, type FreeCouponDetails as a1, type Progress as a2, type CertificateInfo as a3, type Member as a4, type EnrollmentInfo as a5, type EnrollmentInfoPricingTypeDetailsOneOf as a6, type ExtendedFields as a7, type Tags as a8, type TagList 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 GetParticipantRequest as aM, type GetParticipantResponse as aN, type QueryParticipantsRequest as aO, type QueryV2 as aP, type QueryV2PagingMethodOneOf as aQ, type Sorting as aR, type Paging as aS, type CursorPaging as aT, type QueryParticipantsResponse as aU, type PagingMetadataV2 as aV, type Cursors as aW, type GetAccessStatusRequest as aX, type BulkUpdateParticipantTagsRequest as aY, type BulkUpdateParticipantTagsResult as aZ, type BulkUpdateParticipantTagsByFilterRequest as a_, type ReindexMessage as aa, type ReindexMessageActionOneOf as ab, type Upsert as ac, type Delete as ad, type Schema as ae, type ParticipantTagsModified as af, type ParticipantCompletedProgram as ag, type ParticipantMissedProgramDeadline as ah, type ParticipantProgramDurationEnded as ai, type ParticipantRemoved as aj, type ParticipantLeft as ak, type ParticipantExportsFinished 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 RequestedFieldsWithLiterals as b$, type CursorSearch as b0, type CursorSearchPagingMethodOneOf as b1, type Aggregation as b2, type AggregationKindOneOf as b3, type RangeBucket as b4, type IncludeMissingValuesOptions as b5, type ValueAggregation as b6, type ValueAggregationOptionsOneOf as b7, type RangeAggregation as b8, type ScalarAggregation as b9, type NestedResults as bA, type AggregationResults as bB, type AggregationResultsResultOneOf as bC, type DomainEvent as bD, type DomainEventBodyOneOf as bE, type EntityCreatedEvent as bF, type RestoreInfo as bG, type EntityUpdatedEvent as bH, type EntityDeletedEvent as bI, type ActionEvent as bJ, type Empty as bK, type MessageEnvelope as bL, type IdentificationData as bM, type IdentificationDataIdOneOf as bN, type AccountInfo as bO, type ExportParticipantsStatsRequest as bP, type ExportParticipantsStatsResponse as bQ, type BaseEventMetadata as bR, type EventMetadata as bS, type AccountInfoMetadata as bT, type ParticipantsQueryResult as bU, type ParticipantQuerySpec as bV, type ParticipantSearchSpec as bW, utils as bX, type PricingTypeWithLiterals as bY, type EnrollmentStatusWithLiterals as bZ, type ProgressStatusWithLiterals as b_, type DateHistogramAggregation as ba, type NestedAggregationItem as bb, type NestedAggregationItemKindOneOf as bc, type NestedAggregation as bd, type GroupByAggregation as be, type GroupByAggregationKindOneOf as bf, type SearchDetails as bg, type CursorPagingMetadata as bh, type AggregationData as bi, type ValueAggregationResult as bj, type RangeAggregationResult as bk, type NestedAggregationResults as bl, type NestedAggregationResultsResultOneOf as bm, type ValueResults as bn, type RangeResults as bo, type AggregationResultsScalarResult as bp, type NestedValueAggregationResult as bq, type ValueResult as br, type RangeResult as bs, type ScalarResult as bt, type NestedResultValue as bu, type NestedResultValueResultOneOf as bv, type Results as bw, type DateHistogramResult as bx, type GroupByValueResults as by, type DateHistogramResults as bz, type BulkCreateParticipantsResponse as c, type BulkActionTypeWithLiterals as c0, type SortOrderWithLiterals as c1, type SortTypeWithLiterals as c2, type SortDirectionWithLiterals as c3, type MissingValuesWithLiterals as c4, type ScalarTypeWithLiterals as c5, type NestedAggregationTypeWithLiterals as c6, type IntervalWithLiterals as c7, type AggregationTypeWithLiterals as c8, type ModeWithLiterals as c9, type WebhookIdentityTypeWithLiterals as ca, type CommonQueryWithEntityContext as cb, type CommonSearchWithEntityContext as cc, onParticipantCompletedProgram as cd, onParticipantCreated as ce, onParticipantDeleted as cf, onParticipantLeft as cg, onParticipantMissedProgramDeadline as ch, onParticipantProgramDurationEnded as ci, onParticipantRemoved as cj, onParticipantTagsModified as ck, onParticipantUpdated as cl, createParticipant as cm, updateParticipant as cn, bulkCreateParticipants as co, bulkCreateParticipantsForAllMembers as cp, deleteParticipant as cq, issueCertificate as cr, getPremiumStats as cs, getParticipant as ct, queryParticipants as cu, getAccessStatus as cv, bulkUpdateParticipantTags as cw, bulkUpdateParticipantTagsByFilter as cx, type BulkCreateParticipantsApplicationErrors as d, type BulkCreateParticipantsForAllMembersOptions as e, type BulkCreateParticipantsForAllMembersResponse as f, type IssueCertificateResponse as g, type IssueCertificateApplicationErrors as h, type GetParticipantOptions as i, type GetAccessStatusResponse as j, type BulkUpdateParticipantTagsOptions as k, type BulkUpdateParticipantTagsResponse as l, type BulkUpdateParticipantTagsApplicationErrors as m, type BulkUpdateParticipantTagsByFilterOptions as n, type BulkUpdateParticipantTagsByFilterResponse as o, type BulkUpdateParticipantTagsByFilterApplicationErrors as p, type ParticipantSearch as q, type SearchParticipantsResponse as r, type ParticipantCompletedProgramEnvelope as s, type ParticipantCreatedEnvelope as t, type ParticipantDeletedEnvelope as u, type ParticipantLeftEnvelope as v, type ParticipantMissedProgramDeadlineEnvelope as w, type ParticipantProgramDurationEndedEnvelope as x, type ParticipantRemovedEnvelope as y, type ParticipantTagsModifiedEnvelope as z };
|
package/build/es/index.d.mts
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.mjs';
|
|
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.mjs';
|
|
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 };
|