@wix/auto_sdk_online-programs_online-program-participants 1.0.0

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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +208 -0
  2. package/build/cjs/index.js +7335 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1803 -0
  5. package/build/cjs/index.typings.js +6922 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1205 -0
  8. package/build/cjs/meta.js +5346 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +208 -0
  11. package/build/es/index.mjs +7263 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +1803 -0
  14. package/build/es/index.typings.mjs +6853 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +1205 -0
  17. package/build/es/meta.mjs +5290 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +208 -0
  21. package/build/internal/cjs/index.js +7335 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +1803 -0
  24. package/build/internal/cjs/index.typings.js +6922 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +1205 -0
  27. package/build/internal/cjs/meta.js +5346 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +208 -0
  30. package/build/internal/es/index.mjs +7263 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +1803 -0
  33. package/build/internal/es/index.typings.mjs +6853 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +1205 -0
  36. package/build/internal/es/meta.mjs +5290 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,208 @@
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { QueryParticipantsOptions, QueryParticipantsResponse, ListParticipantsOptions, ListParticipantsResponse, JoinParticipantOptions, JoinParticipantResponse, AddParticipantOptions, AddParticipantResponse, AddParticipantsOptions, AddParticipantsResponse, AddAllParticipantOptions, CreateJoinRequestOptions, CreateJoinRequestResponse, InviteParticipantsOptions, InviteParticipantsResponse, InviteAllParticipantsOptions, GetParticipantIdentifiers, Participant, UpdateParticipantIdentifiers, UpdateParticipantOptions, UpdateParticipantResponse, DeleteParticipantIdentifiers, DeleteParticipantOptions, DeleteParticipantResponse, ReviveParticipantIdentifiers, ReviveParticipantOptions, ReviveParticipantResponse, ResetParticipantProgressIdentifiers, ResetParticipantProgressOptions, ResetParticipantProgressResponse, IssueParticipantCertificateIdentifiers, IssueParticipantCertificateResponse, IssueCertificateIdentifiers, IssueCertificateResponse, GetCertificateIdentifiers, GetCertificateResponse, CreatePaymentOrderIdentifiers, CreatePaymentOrderOptions, CreatePaymentOrderResponse, ApplyCouponToOrderIdentifiers, ApplyCouponToOrderOptions, ApplyCouponToOrderResponse, RemoveCouponFromOrderIdentifiers, RemoveCouponFromOrderOptions, RemoveCouponFromOrderResponse, ListStepsIdentifiers, ListStepsOptions, ListParticipantStepsResponse, GetStepIdentifiers, GetStepOptions, GetParticipantStepResponse, ResolveStepIdentifiers, ResolveStepOptions, ResolveParticipantStepResponse, UpdateStepFeedbackIdentifiers, UpdateStepFeedbackOptions, UpdateStepFeedbackResponse, GetMediaUploadInfoIdentifiers, GetMediaUploadInfoOptions, GetMediaUploadInfoResponse, ListSectionsIdentifiers, ListSectionsOptions, ListParticipantSectionsResponse, GetSectionIdentifiers, GetSectionOptions, GetParticipantSectionResponse, MyProgramResponse, MyProgramStepIdentifiers, MyProgramStepOptions, MyProgramStepResponse, MyProgramSectionIdentifiers, MyProgramSectionOptions, MyProgramSectionResponse, ParticipantDeletedEnvelope, ParticipantJoinedEnvelope, ParticipantStepResolvedEnvelope } from './index.typings.js';
3
+ export { ActionEvent, AddAllParticipantRequest, AddAllParticipantResponse, AddParticipantRequest, AddParticipantsRequest, Added, All, ApplyCouponToOrderRequest, BaseEventMetadata, Certificate, ChallengeSection, ChallengeStep, ChallengeStepSettings, Choice, ChoiceRightness, ChoiceRightnessWithLiterals, Choices, Completed, CompletionCriteria, Container, CreateJoinRequestRequest, CreatePaymentOrderRequest, DateInterval, DeleteParticipantRequest, DescriptionFieldSet, DescriptionFieldSetWithLiterals, DomainEvent, DomainEventBodyOneOf, DurationUnit, DurationUnitWithLiterals, EmbeddingSettings, EntityCreatedEvent, EntityDeletedEvent, EntitySummary, EntityUpdatedEvent, EventMetadata, Feedback, FeedbackItem, FeedbackItemChoice, FeedbackItemSettings, FeedbackItemType, FeedbackItemTypeTypeOneOf, FeedbackItemValueOneOf, FocalPoint, Free, FreeCoupon, GeneralSettings, GeneralSettingsStepTypeOneOf, GetCertificateRequest, GetMediaUploadInfoRequest, GetParticipantRequest, GetParticipantResponse, GetParticipantSectionRequest, GetParticipantStepRequest, GroupSettings, IdentificationData, IdentificationDataIdOneOf, IndividualSettings, InvitationDetails, InviteAllParticipantsRequest, InviteAllParticipantsResponse, InviteParticipantsRequest, IssueCertificateRequest, IssueParticipantCertificateRequest, JoinParticipantRequest, JoinPath, JoinPathPathOneOf, ListParticipantSectionsRequest, ListParticipantStepsRequest, ListParticipantsRequest, MediaFeedbackItem, MediaItem, MediaItemMediaOneOf, MediaItems, Member, MessageEnvelope, MinThreshold, MultipleChoiceFeedbackItem, MyProgramRequest, MyProgramSectionRequest, MyProgramStepRequest, NumericFeedbackItem, ObjectDescription, Overdue, Paging, PaidPlan, ParticipantJoinDate, ParticipantJoined, ParticipantPerformance, ParticipantSection, ParticipantSectionStateTransition, ParticipantSectionStateTransitionStateOneOf, ParticipantStep, ParticipantStepState, ParticipantStepStateTransition, ParticipantStepStateWithLiterals, ParticipantsFilter, ParticipationState, ParticipationStateWithLiterals, PaymentType, PaymentTypeWithLiterals, Price, Progress, Quantity, QuantityCriterion, QuantityCriterionCriterionOneOf, QuantityFeedbackItem, QueryParticipantsRequest, QueryParticipantsRequestJoinPath, QueryParticipantsRequestJoinPathWithLiterals, QueryParticipantsRequestSorting, QueryParticipantsRequestSortingCriterion, QueryParticipantsRequestSortingCriterionWithLiterals, QueryParticipantsRequestSortingOrder, QueryParticipantsRequestSortingOrderWithLiterals, QuizMigrationDetails, QuizSettings, QuizSubmission, QuizSubmissionData, QuizType, QuizTypeWithLiterals, RecurrenceSchedule, RecurrenceSettings, RemoveCouponFromOrderRequest, ResetParticipantProgressRequest, ResolutionStatus, ResolutionStatusWithLiterals, ResolveParticipantStepRequest, RestoreInfo, ReviveParticipantRequest, Running, Settings, SinglePayment, Sorting, SortingCriterion, SortingCriterionWithLiterals, SortingOrder, SortingOrderWithLiterals, StartCondition, State, StateTransition, StateWithLiterals, Status, StatusWithLiterals, Step, StepDependency, StepDependencyDependencyTypeOneOf, StepEvent, StepResolved, StepsSummary, TextFeedbackItem, TimeDuration, TimeInterval, UpdateParticipantIdentifiersUpdateOneOf, UpdateParticipantOptionsUpdateOneOf, UpdateParticipantRequest, UpdateParticipantRequestUpdateOneOf, UpdateStepFeedbackRequest, VideoResolution, VideoStepSettings, VideoStepSettingsVideoSourceOneOf, WaitingDate, WaitingDependency, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixVideo } from './index.typings.js';
4
+
5
+ declare function queryParticipants$1(httpClient: HttpClient): QueryParticipantsSignature;
6
+ interface QueryParticipantsSignature {
7
+ /** */
8
+ (challengeId: string, options?: QueryParticipantsOptions): Promise<NonNullablePaths<QueryParticipantsResponse, `totalCount` | `participants` | `participants.${number}._id` | `participants.${number}.member._id` | `participants.${number}.member.fullName` | `participants.${number}.challenge._id` | `participants.${number}.stepsSummary.stepsNumber` | `participants.${number}.stepsSummary.completedStepsNumber` | `participants.${number}.stepsSummary.failedStepsNumber` | `participants.${number}.stepsSummary.postedFeedbacksNumber` | `participants.${number}.stepsSummary.lastEvent.stepId` | `participants.${number}.timezone` | `participants.${number}.dateFrame.start` | `participants.${number}.performance` | `participants.${number}.joinPath.singlePayment.orderId` | `participants.${number}.joinPath.freeCoupon.couponId`, 6>>;
9
+ }
10
+ declare function listParticipants$1(httpClient: HttpClient): ListParticipantsSignature;
11
+ interface ListParticipantsSignature {
12
+ /** @deprecated */
13
+ (challengeId: string, options?: ListParticipantsOptions): Promise<NonNullablePaths<ListParticipantsResponse, `totalCount` | `participants` | `participants.${number}._id` | `participants.${number}.member._id` | `participants.${number}.member.fullName` | `participants.${number}.challenge._id` | `participants.${number}.stepsSummary.stepsNumber` | `participants.${number}.stepsSummary.completedStepsNumber` | `participants.${number}.stepsSummary.failedStepsNumber` | `participants.${number}.stepsSummary.postedFeedbacksNumber` | `participants.${number}.stepsSummary.lastEvent.stepId` | `participants.${number}.timezone` | `participants.${number}.dateFrame.start` | `participants.${number}.performance` | `participants.${number}.joinPath.singlePayment.orderId` | `participants.${number}.joinPath.freeCoupon.couponId`, 6>>;
14
+ }
15
+ declare function joinParticipant$1(httpClient: HttpClient): JoinParticipantSignature;
16
+ interface JoinParticipantSignature {
17
+ /** */
18
+ (challengeId: string, options?: JoinParticipantOptions): Promise<NonNullablePaths<JoinParticipantResponse, `participantId` | `actionId` | `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
19
+ }
20
+ declare function addParticipant$1(httpClient: HttpClient): AddParticipantSignature;
21
+ interface AddParticipantSignature {
22
+ /**
23
+ * owner adds participant to the challenge
24
+ */
25
+ (challengeId: string, options?: AddParticipantOptions): Promise<NonNullablePaths<AddParticipantResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId` | `actionId`, 6>>;
26
+ }
27
+ declare function addParticipants$1(httpClient: HttpClient): AddParticipantsSignature;
28
+ interface AddParticipantsSignature {
29
+ /**
30
+ * owner adds participants to the challenge
31
+ */
32
+ (challengeId: string, options?: AddParticipantsOptions): Promise<NonNullablePaths<AddParticipantsResponse, `participants` | `participants.${number}._id` | `participants.${number}.member._id` | `participants.${number}.member.fullName` | `participants.${number}.challenge._id` | `participants.${number}.stepsSummary.stepsNumber` | `participants.${number}.stepsSummary.completedStepsNumber` | `participants.${number}.stepsSummary.failedStepsNumber` | `participants.${number}.stepsSummary.postedFeedbacksNumber` | `participants.${number}.stepsSummary.lastEvent.stepId` | `participants.${number}.timezone` | `participants.${number}.dateFrame.start` | `participants.${number}.performance` | `participants.${number}.joinPath.singlePayment.orderId` | `participants.${number}.joinPath.freeCoupon.couponId` | `actionId`, 6>>;
33
+ }
34
+ declare function addAllParticipant$1(httpClient: HttpClient): AddAllParticipantSignature;
35
+ interface AddAllParticipantSignature {
36
+ /** */
37
+ (challengeId: string, options?: AddAllParticipantOptions): Promise<void>;
38
+ }
39
+ declare function createJoinRequest$1(httpClient: HttpClient): CreateJoinRequestSignature;
40
+ interface CreateJoinRequestSignature {
41
+ /** */
42
+ (challengeId: string, options?: CreateJoinRequestOptions): Promise<NonNullablePaths<CreateJoinRequestResponse, `participantId` | `approvalRequestId` | `actionId` | `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
43
+ }
44
+ declare function inviteParticipants$1(httpClient: HttpClient): InviteParticipantsSignature;
45
+ interface InviteParticipantsSignature {
46
+ /** */
47
+ (challengeId: string, options?: InviteParticipantsOptions): Promise<NonNullablePaths<InviteParticipantsResponse, `invitations` | `invitations.${number}.participantId` | `invitations.${number}.approvalRequestId` | `actionId`, 4>>;
48
+ }
49
+ declare function inviteAllParticipants$1(httpClient: HttpClient): InviteAllParticipantsSignature;
50
+ interface InviteAllParticipantsSignature {
51
+ /** */
52
+ (challengeId: string, options?: InviteAllParticipantsOptions): Promise<void>;
53
+ }
54
+ declare function getParticipant$1(httpClient: HttpClient): GetParticipantSignature;
55
+ interface GetParticipantSignature {
56
+ /**
57
+ * returns participant by id
58
+ */
59
+ (identifiers: NonNullablePaths<GetParticipantIdentifiers, `challengeId` | `participantId`, 2>): Promise<NonNullablePaths<Participant, `_id` | `member._id` | `member.fullName` | `challenge._id` | `stepsSummary.stepsNumber` | `stepsSummary.completedStepsNumber` | `stepsSummary.failedStepsNumber` | `stepsSummary.postedFeedbacksNumber` | `stepsSummary.lastEvent.stepId` | `stepsSummary.lastEvent.transition.state` | `orderIds` | `transitions` | `transitions.${number}.state` | `timezone` | `dateFrame.start` | `performance` | `joinPath.singlePayment.orderId` | `joinPath.paidPlan.planIds` | `joinPath.freeCoupon.couponId`, 5>>;
60
+ }
61
+ declare function updateParticipant$1(httpClient: HttpClient): UpdateParticipantSignature;
62
+ interface UpdateParticipantSignature {
63
+ /** */
64
+ (identifiers: NonNullablePaths<UpdateParticipantIdentifiers, `challengeId` | `participantId`, 2>, options?: UpdateParticipantOptions): Promise<NonNullablePaths<UpdateParticipantResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId` | `actionId`, 6>>;
65
+ }
66
+ declare function deleteParticipant$1(httpClient: HttpClient): DeleteParticipantSignature;
67
+ interface DeleteParticipantSignature {
68
+ /**
69
+ * by owner - makes participant REMOVED. By participant himself - LEFT.
70
+ */
71
+ (identifiers: NonNullablePaths<DeleteParticipantIdentifiers, `challengeId` | `participantId`, 2>, options?: DeleteParticipantOptions): Promise<NonNullablePaths<DeleteParticipantResponse, `actionId`, 2>>;
72
+ }
73
+ declare function reviveParticipant$1(httpClient: HttpClient): ReviveParticipantSignature;
74
+ interface ReviveParticipantSignature {
75
+ /** */
76
+ (identifiers: NonNullablePaths<ReviveParticipantIdentifiers, `challengeId` | `participantId`, 2>, options?: ReviveParticipantOptions): Promise<NonNullablePaths<ReviveParticipantResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId` | `actionId`, 6>>;
77
+ }
78
+ declare function resetParticipantProgress$1(httpClient: HttpClient): ResetParticipantProgressSignature;
79
+ interface ResetParticipantProgressSignature {
80
+ /** */
81
+ (identifiers: NonNullablePaths<ResetParticipantProgressIdentifiers, `challengeId` | `participantId`, 2>, options?: ResetParticipantProgressOptions): Promise<NonNullablePaths<ResetParticipantProgressResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId` | `actionId`, 6>>;
82
+ }
83
+ declare function issueParticipantCertificate$1(httpClient: HttpClient): IssueParticipantCertificateSignature;
84
+ interface IssueParticipantCertificateSignature {
85
+ /** */
86
+ (identifiers: NonNullablePaths<IssueParticipantCertificateIdentifiers, `challengeId` | `participantId`, 2>): Promise<NonNullablePaths<IssueParticipantCertificateResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
87
+ }
88
+ declare function issueCertificate$1(httpClient: HttpClient): IssueCertificateSignature;
89
+ interface IssueCertificateSignature {
90
+ /** */
91
+ (identifiers: NonNullablePaths<IssueCertificateIdentifiers, `challengeId` | `participantId`, 2>): Promise<NonNullablePaths<IssueCertificateResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
92
+ }
93
+ declare function getCertificate$1(httpClient: HttpClient): GetCertificateSignature;
94
+ interface GetCertificateSignature {
95
+ /** */
96
+ (identifiers: NonNullablePaths<GetCertificateIdentifiers, `challengeId` | `participantId`, 2>): Promise<NonNullablePaths<GetCertificateResponse, `certificateUrl`, 2>>;
97
+ }
98
+ declare function createPaymentOrder$1(httpClient: HttpClient): CreatePaymentOrderSignature;
99
+ interface CreatePaymentOrderSignature {
100
+ /** */
101
+ (identifiers: NonNullablePaths<CreatePaymentOrderIdentifiers, `challengeId` | `participantId`, 2>, options?: CreatePaymentOrderOptions): Promise<NonNullablePaths<CreatePaymentOrderResponse, `orderId` | `actionId` | `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
102
+ }
103
+ declare function applyCouponToOrder$1(httpClient: HttpClient): ApplyCouponToOrderSignature;
104
+ interface ApplyCouponToOrderSignature {
105
+ /**
106
+ * ---------------------------------------------------- Coupons -----------------------------------------------------
107
+ */
108
+ (identifiers: NonNullablePaths<ApplyCouponToOrderIdentifiers, `challengeId` | `orderId` | `participantId`, 2>, couponCode: string, options?: ApplyCouponToOrderOptions): Promise<NonNullablePaths<ApplyCouponToOrderResponse, `couponId` | `subTotal` | `discount` | `total`, 2>>;
109
+ }
110
+ declare function removeCouponFromOrder$1(httpClient: HttpClient): RemoveCouponFromOrderSignature;
111
+ interface RemoveCouponFromOrderSignature {
112
+ /** */
113
+ (identifiers: NonNullablePaths<RemoveCouponFromOrderIdentifiers, `challengeId` | `couponId` | `orderId` | `participantId`, 2>, options?: RemoveCouponFromOrderOptions): Promise<NonNullablePaths<RemoveCouponFromOrderResponse, `total`, 2>>;
114
+ }
115
+ declare function listSteps$1(httpClient: HttpClient): ListStepsSignature;
116
+ interface ListStepsSignature {
117
+ /** */
118
+ (identifiers: NonNullablePaths<ListStepsIdentifiers, `challengeId` | `participantId`, 2>, options?: ListStepsOptions): Promise<NonNullablePaths<ListParticipantStepsResponse, `steps` | `steps.${number}._id` | `steps.${number}.source._id` | `steps.${number}.dateFrame.start` | `steps.${number}.quizSubmission.quizSubmissionId`, 5>>;
119
+ }
120
+ declare function getStep$1(httpClient: HttpClient): GetStepSignature;
121
+ interface GetStepSignature {
122
+ /** */
123
+ (identifiers: NonNullablePaths<GetStepIdentifiers, `challengeId` | `participantId` | `stepId`, 2>, options?: GetStepOptions): Promise<NonNullablePaths<GetParticipantStepResponse, `step._id` | `step.source._id` | `step.source.settings.general.individual.confirmationRequired` | `step.source.settings.general.individual.feedbackSettings` | `step.source.settings.general.individual.feedbackSettings.${number}._id` | `step.source.settings.general.individual.feedbackSettings.${number}.type.numeric.maxValue` | `step.source.settings.general.individual.feedbackSettings.${number}.type.quantity.amount` | `step.source.settings.general.individual.feedbackSettings.${number}.question` | `step.source.settings.general.individual.feedbackSettings.${number}.isRequired` | `step.source.settings.general.individual.showQuiz` | `step.source.settings.general.individual.quizSettings` | `step.source.settings.general.group.completionCriteria.completedSteps.minThreshold.value` | `step.source.settings.general.quiz.quizId` | `step.source.settings.general.quiz.questionCount` | `step.source.settings.general.quiz.migrationDetails.sourceStepId` | `step.source.settings.general.quiz.migrationDetails.show` | `step.source.settings.general.quiz.migrationDetails.quizType` | `step.source.settings.general.video.wixVideo._id` | `step.source.settings.general.video.wixVideo.paid` | `step.source.settings.general.video.requiredCompletionPercentage` | `step.source.settings.general.video.deleted` | `step.source.settings.general.duration.unit` | `step.source.settings.general.duration.value` | `step.source.settings.general.recurrenceSettings.schedules` | `step.source.settings.embedding.startConditions` | `step.source.settings.embedding.startConditions.${number}.dependency.step.stepId` | `step.source.settings.embedding.isMilestone` | `step.feedback.items` | `step.feedback.items.${number}.choice.choiceId` | `step.feedback.items.${number}.quantity.unitName` | `step.feedback.items.${number}.quantity.amount` | `step.feedback.items.${number}.feedbackItemSettingsId` | `step.feedback.quiz` | `step.transitions` | `step.transitions.${number}.state` | `step.dateFrame.start` | `step.quizSubmission.quizSubmissionId` | `subSteps` | `subSteps.${number}._id` | `subSteps.${number}.source._id` | `subSteps.${number}.dateFrame.start` | `subSteps.${number}.quizSubmission.quizSubmissionId`, 11>>;
124
+ }
125
+ declare function resolveStep$1(httpClient: HttpClient): ResolveStepSignature;
126
+ interface ResolveStepSignature {
127
+ /** */
128
+ (identifiers: NonNullablePaths<ResolveStepIdentifiers, `challengeId` | `participantId` | `stepId`, 2>, options?: ResolveStepOptions): Promise<NonNullablePaths<ResolveParticipantStepResponse, `step._id` | `step.source._id` | `step.source.settings.general.individual.confirmationRequired` | `step.source.settings.general.individual.feedbackSettings` | `step.source.settings.general.individual.feedbackSettings.${number}._id` | `step.source.settings.general.individual.feedbackSettings.${number}.type.numeric.maxValue` | `step.source.settings.general.individual.feedbackSettings.${number}.type.quantity.amount` | `step.source.settings.general.individual.feedbackSettings.${number}.question` | `step.source.settings.general.individual.feedbackSettings.${number}.isRequired` | `step.source.settings.general.individual.showQuiz` | `step.source.settings.general.individual.quizSettings` | `step.source.settings.general.group.completionCriteria.completedSteps.minThreshold.value` | `step.source.settings.general.quiz.quizId` | `step.source.settings.general.quiz.questionCount` | `step.source.settings.general.quiz.migrationDetails.sourceStepId` | `step.source.settings.general.quiz.migrationDetails.show` | `step.source.settings.general.quiz.migrationDetails.quizType` | `step.source.settings.general.video.wixVideo._id` | `step.source.settings.general.video.wixVideo.paid` | `step.source.settings.general.video.requiredCompletionPercentage` | `step.source.settings.general.video.deleted` | `step.source.settings.general.duration.unit` | `step.source.settings.general.duration.value` | `step.source.settings.general.recurrenceSettings.schedules` | `step.source.settings.embedding.startConditions` | `step.source.settings.embedding.startConditions.${number}.dependency.step.stepId` | `step.source.settings.embedding.isMilestone` | `step.feedback.items` | `step.feedback.items.${number}.choice.choiceId` | `step.feedback.items.${number}.quantity.unitName` | `step.feedback.items.${number}.quantity.amount` | `step.feedback.items.${number}.feedbackItemSettingsId` | `step.feedback.quiz` | `step.transitions` | `step.transitions.${number}.state` | `step.dateFrame.start` | `step.quizSubmission.quizSubmissionId` | `actionId`, 11>>;
129
+ }
130
+ declare function updateStepFeedback$1(httpClient: HttpClient): UpdateStepFeedbackSignature;
131
+ interface UpdateStepFeedbackSignature {
132
+ /** */
133
+ (identifiers: NonNullablePaths<UpdateStepFeedbackIdentifiers, `challengeId` | `participantId` | `stepId`, 2>, options?: UpdateStepFeedbackOptions): Promise<NonNullablePaths<UpdateStepFeedbackResponse, `step._id` | `step.source._id` | `step.source.settings.general.individual.confirmationRequired` | `step.source.settings.general.individual.feedbackSettings` | `step.source.settings.general.individual.feedbackSettings.${number}._id` | `step.source.settings.general.individual.feedbackSettings.${number}.type.numeric.maxValue` | `step.source.settings.general.individual.feedbackSettings.${number}.type.quantity.amount` | `step.source.settings.general.individual.feedbackSettings.${number}.question` | `step.source.settings.general.individual.feedbackSettings.${number}.isRequired` | `step.source.settings.general.individual.showQuiz` | `step.source.settings.general.individual.quizSettings` | `step.source.settings.general.group.completionCriteria.completedSteps.minThreshold.value` | `step.source.settings.general.quiz.quizId` | `step.source.settings.general.quiz.questionCount` | `step.source.settings.general.quiz.migrationDetails.sourceStepId` | `step.source.settings.general.quiz.migrationDetails.show` | `step.source.settings.general.quiz.migrationDetails.quizType` | `step.source.settings.general.video.wixVideo._id` | `step.source.settings.general.video.wixVideo.paid` | `step.source.settings.general.video.requiredCompletionPercentage` | `step.source.settings.general.video.deleted` | `step.source.settings.general.duration.unit` | `step.source.settings.general.duration.value` | `step.source.settings.general.recurrenceSettings.schedules` | `step.source.settings.embedding.startConditions` | `step.source.settings.embedding.startConditions.${number}.dependency.step.stepId` | `step.source.settings.embedding.isMilestone` | `step.feedback.items` | `step.feedback.items.${number}.choice.choiceId` | `step.feedback.items.${number}.quantity.unitName` | `step.feedback.items.${number}.quantity.amount` | `step.feedback.items.${number}.feedbackItemSettingsId` | `step.feedback.quiz` | `step.transitions` | `step.transitions.${number}.state` | `step.dateFrame.start` | `step.quizSubmission.quizSubmissionId` | `actionId`, 11>>;
134
+ }
135
+ declare function getMediaUploadInfo$1(httpClient: HttpClient): GetMediaUploadInfoSignature;
136
+ interface GetMediaUploadInfoSignature {
137
+ /** */
138
+ (identifiers: NonNullablePaths<GetMediaUploadInfoIdentifiers, `challengeId` | `participantId`, 2>, options?: GetMediaUploadInfoOptions): Promise<NonNullablePaths<GetMediaUploadInfoResponse, `uploadUrl` | `uploadToken`, 2>>;
139
+ }
140
+ declare function listSections$1(httpClient: HttpClient): ListSectionsSignature;
141
+ interface ListSectionsSignature {
142
+ /**
143
+ * ---------------------------------------------------- Sections --------------------------------------------------------
144
+ */
145
+ (identifiers: NonNullablePaths<ListSectionsIdentifiers, `challengeId` | `participantId`, 2>, options?: ListSectionsOptions): Promise<NonNullablePaths<ListParticipantSectionsResponse, `sections` | `sections.${number}._id` | `sections.${number}.source._id` | `sections.${number}.progress.nTotalSteps` | `sections.${number}.progress.nCompletedSteps`, 5>>;
146
+ }
147
+ declare function getSection$1(httpClient: HttpClient): GetSectionSignature;
148
+ interface GetSectionSignature {
149
+ /** */
150
+ (identifiers: NonNullablePaths<GetSectionIdentifiers, `challengeId` | `participantId` | `sectionId`, 2>, options?: GetSectionOptions): Promise<NonNullablePaths<GetParticipantSectionResponse, `section._id` | `section.source._id` | `section.source.settings.startCondition.dependency.step.stepId` | `section.source.settings.startCondition.delay.unit` | `section.source.settings.startCondition.delay.value` | `section.source.steps` | `section.source.steps.${number}._id` | `section.source.steps.${number}.settings.embedding.isMilestone` | `section.steps` | `section.steps.${number}._id` | `section.steps.${number}.dateFrame.start` | `section.steps.${number}.quizSubmission.quizSubmissionId` | `section.transitions` | `section.transitions.${number}.waitingDate.startDate` | `section.transitions.${number}.waitingDependency.sectionId` | `section.progress.nTotalSteps` | `section.progress.nCompletedSteps`, 8>>;
151
+ }
152
+ declare function myProgram$1(httpClient: HttpClient): MyProgramSignature;
153
+ interface MyProgramSignature {
154
+ /** */
155
+ (programId: string): Promise<NonNullablePaths<MyProgramResponse, `participant._id` | `participant.member._id` | `participant.member.fullName` | `participant.challenge._id` | `participant.stepsSummary.stepsNumber` | `participant.stepsSummary.completedStepsNumber` | `participant.stepsSummary.failedStepsNumber` | `participant.stepsSummary.postedFeedbacksNumber` | `participant.stepsSummary.lastEvent.stepId` | `participant.stepsSummary.lastEvent.transition.state` | `participant.orderIds` | `participant.transitions` | `participant.transitions.${number}.state` | `participant.timezone` | `participant.dateFrame.start` | `participant.performance` | `participant.joinPath.singlePayment.orderId` | `participant.joinPath.paidPlan.planIds` | `participant.joinPath.freeCoupon.couponId`, 6>>;
156
+ }
157
+ declare function myProgramStep$1(httpClient: HttpClient): MyProgramStepSignature;
158
+ interface MyProgramStepSignature {
159
+ /** */
160
+ (identifiers: NonNullablePaths<MyProgramStepIdentifiers, `programId` | `programStepId`, 2>, options?: MyProgramStepOptions): Promise<NonNullablePaths<MyProgramStepResponse, `participantStep._id` | `participantStep.source._id` | `participantStep.source.settings.general.individual.confirmationRequired` | `participantStep.source.settings.general.individual.feedbackSettings` | `participantStep.source.settings.general.individual.feedbackSettings.${number}._id` | `participantStep.source.settings.general.individual.feedbackSettings.${number}.type.numeric.maxValue` | `participantStep.source.settings.general.individual.feedbackSettings.${number}.type.quantity.amount` | `participantStep.source.settings.general.individual.feedbackSettings.${number}.question` | `participantStep.source.settings.general.individual.feedbackSettings.${number}.isRequired` | `participantStep.source.settings.general.individual.showQuiz` | `participantStep.source.settings.general.individual.quizSettings` | `participantStep.source.settings.general.group.completionCriteria.completedSteps.minThreshold.value` | `participantStep.source.settings.general.quiz.quizId` | `participantStep.source.settings.general.quiz.questionCount` | `participantStep.source.settings.general.quiz.migrationDetails.sourceStepId` | `participantStep.source.settings.general.quiz.migrationDetails.show` | `participantStep.source.settings.general.quiz.migrationDetails.quizType` | `participantStep.source.settings.general.video.wixVideo._id` | `participantStep.source.settings.general.video.wixVideo.paid` | `participantStep.source.settings.general.video.requiredCompletionPercentage` | `participantStep.source.settings.general.video.deleted` | `participantStep.source.settings.general.duration.unit` | `participantStep.source.settings.general.duration.value` | `participantStep.source.settings.general.recurrenceSettings.schedules` | `participantStep.source.settings.embedding.startConditions` | `participantStep.source.settings.embedding.startConditions.${number}.dependency.step.stepId` | `participantStep.source.settings.embedding.isMilestone` | `participantStep.feedback.items` | `participantStep.feedback.items.${number}.choice.choiceId` | `participantStep.feedback.items.${number}.quantity.unitName` | `participantStep.feedback.items.${number}.quantity.amount` | `participantStep.feedback.items.${number}.feedbackItemSettingsId` | `participantStep.feedback.quiz` | `participantStep.transitions` | `participantStep.transitions.${number}.state` | `participantStep.dateFrame.start` | `participantStep.quizSubmission.quizSubmissionId`, 11>>;
161
+ }
162
+ declare function myProgramSection$1(httpClient: HttpClient): MyProgramSectionSignature;
163
+ interface MyProgramSectionSignature {
164
+ /** */
165
+ (identifiers: NonNullablePaths<MyProgramSectionIdentifiers, `programId` | `programSectionId`, 2>, options?: MyProgramSectionOptions): Promise<NonNullablePaths<MyProgramSectionResponse, `participantSection._id` | `participantSection.source._id` | `participantSection.source.settings.startCondition.dependency.step.stepId` | `participantSection.source.settings.startCondition.delay.unit` | `participantSection.source.settings.startCondition.delay.value` | `participantSection.source.steps` | `participantSection.source.steps.${number}._id` | `participantSection.source.steps.${number}.settings.embedding.isMilestone` | `participantSection.steps` | `participantSection.steps.${number}._id` | `participantSection.steps.${number}.dateFrame.start` | `participantSection.steps.${number}.quizSubmission.quizSubmissionId` | `participantSection.transitions` | `participantSection.transitions.${number}.waitingDate.startDate` | `participantSection.transitions.${number}.waitingDependency.sectionId` | `participantSection.progress.nTotalSteps` | `participantSection.progress.nCompletedSteps`, 8>>;
166
+ }
167
+ declare const onParticipantDeleted$1: EventDefinition<ParticipantDeletedEnvelope, "wix.challenges.v1.participant_deleted">;
168
+ declare const onParticipantJoined$1: EventDefinition<ParticipantJoinedEnvelope, "wix.challenges.v1.participant_participant_joined">;
169
+ declare const onParticipantStepResolved$1: EventDefinition<ParticipantStepResolvedEnvelope, "wix.challenges.v1.participant_step_resolved">;
170
+
171
+ declare const queryParticipants: MaybeContext<BuildRESTFunction<typeof queryParticipants$1> & typeof queryParticipants$1>;
172
+ declare const listParticipants: MaybeContext<BuildRESTFunction<typeof listParticipants$1> & typeof listParticipants$1>;
173
+ declare const joinParticipant: MaybeContext<BuildRESTFunction<typeof joinParticipant$1> & typeof joinParticipant$1>;
174
+ declare const addParticipant: MaybeContext<BuildRESTFunction<typeof addParticipant$1> & typeof addParticipant$1>;
175
+ declare const addParticipants: MaybeContext<BuildRESTFunction<typeof addParticipants$1> & typeof addParticipants$1>;
176
+ declare const addAllParticipant: MaybeContext<BuildRESTFunction<typeof addAllParticipant$1> & typeof addAllParticipant$1>;
177
+ declare const createJoinRequest: MaybeContext<BuildRESTFunction<typeof createJoinRequest$1> & typeof createJoinRequest$1>;
178
+ declare const inviteParticipants: MaybeContext<BuildRESTFunction<typeof inviteParticipants$1> & typeof inviteParticipants$1>;
179
+ declare const inviteAllParticipants: MaybeContext<BuildRESTFunction<typeof inviteAllParticipants$1> & typeof inviteAllParticipants$1>;
180
+ declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
181
+ declare const updateParticipant: MaybeContext<BuildRESTFunction<typeof updateParticipant$1> & typeof updateParticipant$1>;
182
+ declare const deleteParticipant: MaybeContext<BuildRESTFunction<typeof deleteParticipant$1> & typeof deleteParticipant$1>;
183
+ declare const reviveParticipant: MaybeContext<BuildRESTFunction<typeof reviveParticipant$1> & typeof reviveParticipant$1>;
184
+ declare const resetParticipantProgress: MaybeContext<BuildRESTFunction<typeof resetParticipantProgress$1> & typeof resetParticipantProgress$1>;
185
+ declare const issueParticipantCertificate: MaybeContext<BuildRESTFunction<typeof issueParticipantCertificate$1> & typeof issueParticipantCertificate$1>;
186
+ declare const issueCertificate: MaybeContext<BuildRESTFunction<typeof issueCertificate$1> & typeof issueCertificate$1>;
187
+ declare const getCertificate: MaybeContext<BuildRESTFunction<typeof getCertificate$1> & typeof getCertificate$1>;
188
+ declare const createPaymentOrder: MaybeContext<BuildRESTFunction<typeof createPaymentOrder$1> & typeof createPaymentOrder$1>;
189
+ declare const applyCouponToOrder: MaybeContext<BuildRESTFunction<typeof applyCouponToOrder$1> & typeof applyCouponToOrder$1>;
190
+ declare const removeCouponFromOrder: MaybeContext<BuildRESTFunction<typeof removeCouponFromOrder$1> & typeof removeCouponFromOrder$1>;
191
+ declare const listSteps: MaybeContext<BuildRESTFunction<typeof listSteps$1> & typeof listSteps$1>;
192
+ declare const getStep: MaybeContext<BuildRESTFunction<typeof getStep$1> & typeof getStep$1>;
193
+ declare const resolveStep: MaybeContext<BuildRESTFunction<typeof resolveStep$1> & typeof resolveStep$1>;
194
+ declare const updateStepFeedback: MaybeContext<BuildRESTFunction<typeof updateStepFeedback$1> & typeof updateStepFeedback$1>;
195
+ declare const getMediaUploadInfo: MaybeContext<BuildRESTFunction<typeof getMediaUploadInfo$1> & typeof getMediaUploadInfo$1>;
196
+ declare const listSections: MaybeContext<BuildRESTFunction<typeof listSections$1> & typeof listSections$1>;
197
+ declare const getSection: MaybeContext<BuildRESTFunction<typeof getSection$1> & typeof getSection$1>;
198
+ declare const myProgram: MaybeContext<BuildRESTFunction<typeof myProgram$1> & typeof myProgram$1>;
199
+ declare const myProgramStep: MaybeContext<BuildRESTFunction<typeof myProgramStep$1> & typeof myProgramStep$1>;
200
+ declare const myProgramSection: MaybeContext<BuildRESTFunction<typeof myProgramSection$1> & typeof myProgramSection$1>;
201
+ /** */
202
+ declare const onParticipantDeleted: BuildEventDefinition<typeof onParticipantDeleted$1> & typeof onParticipantDeleted$1;
203
+ /** */
204
+ declare const onParticipantJoined: BuildEventDefinition<typeof onParticipantJoined$1> & typeof onParticipantJoined$1;
205
+ /** */
206
+ declare const onParticipantStepResolved: BuildEventDefinition<typeof onParticipantStepResolved$1> & typeof onParticipantStepResolved$1;
207
+
208
+ export { AddAllParticipantOptions, AddParticipantOptions, AddParticipantResponse, AddParticipantsOptions, AddParticipantsResponse, ApplyCouponToOrderIdentifiers, ApplyCouponToOrderOptions, ApplyCouponToOrderResponse, CreateJoinRequestOptions, CreateJoinRequestResponse, CreatePaymentOrderIdentifiers, CreatePaymentOrderOptions, CreatePaymentOrderResponse, DeleteParticipantIdentifiers, DeleteParticipantOptions, DeleteParticipantResponse, GetCertificateIdentifiers, GetCertificateResponse, GetMediaUploadInfoIdentifiers, GetMediaUploadInfoOptions, GetMediaUploadInfoResponse, GetParticipantIdentifiers, GetParticipantSectionResponse, GetParticipantStepResponse, GetSectionIdentifiers, GetSectionOptions, GetStepIdentifiers, GetStepOptions, InviteAllParticipantsOptions, InviteParticipantsOptions, InviteParticipantsResponse, IssueCertificateIdentifiers, IssueCertificateResponse, IssueParticipantCertificateIdentifiers, IssueParticipantCertificateResponse, JoinParticipantOptions, JoinParticipantResponse, ListParticipantSectionsResponse, ListParticipantStepsResponse, ListParticipantsOptions, ListParticipantsResponse, ListSectionsIdentifiers, ListSectionsOptions, ListStepsIdentifiers, ListStepsOptions, MyProgramResponse, MyProgramSectionIdentifiers, MyProgramSectionOptions, MyProgramSectionResponse, MyProgramStepIdentifiers, MyProgramStepOptions, MyProgramStepResponse, Participant, ParticipantDeletedEnvelope, ParticipantJoinedEnvelope, ParticipantStepResolvedEnvelope, QueryParticipantsOptions, QueryParticipantsResponse, RemoveCouponFromOrderIdentifiers, RemoveCouponFromOrderOptions, RemoveCouponFromOrderResponse, ResetParticipantProgressIdentifiers, ResetParticipantProgressOptions, ResetParticipantProgressResponse, ResolveParticipantStepResponse, ResolveStepIdentifiers, ResolveStepOptions, ReviveParticipantIdentifiers, ReviveParticipantOptions, ReviveParticipantResponse, UpdateParticipantIdentifiers, UpdateParticipantOptions, UpdateParticipantResponse, UpdateStepFeedbackIdentifiers, UpdateStepFeedbackOptions, UpdateStepFeedbackResponse, addAllParticipant, addParticipant, addParticipants, applyCouponToOrder, createJoinRequest, createPaymentOrder, deleteParticipant, getCertificate, getMediaUploadInfo, getParticipant, getSection, getStep, inviteAllParticipants, inviteParticipants, issueCertificate, issueParticipantCertificate, joinParticipant, listParticipants, listSections, listSteps, myProgram, myProgramSection, myProgramStep, onParticipantDeleted, onParticipantJoined, onParticipantStepResolved, queryParticipants, removeCouponFromOrder, resetParticipantProgress, resolveStep, reviveParticipant, updateParticipant, updateStepFeedback };