@wix/online-programs 1.0.37 → 1.0.39
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 +24 -1
- package/build/cjs/index.js +59 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -1
- package/build/cjs/meta.js +59 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +24 -0
- package/build/es/index.mjs +20 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/meta.d.mts +16 -0
- package/build/es/meta.mjs +20 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +24 -0
- package/build/internal/cjs/index.js +62 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +16 -0
- package/build/internal/cjs/meta.js +62 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +24 -0
- package/build/internal/es/index.mjs +20 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +16 -0
- package/build/internal/es/meta.mjs +20 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +1 -4
- package/package.json +41 -13
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/challenges-v1-participant.http.d.ts +0 -7
- package/build/cjs/src/challenges-v1-participant.http.js +0 -225
- package/build/cjs/src/challenges-v1-participant.http.js.map +0 -1
- package/build/cjs/src/challenges-v1-participant.meta.d.ts +0 -21
- package/build/cjs/src/challenges-v1-participant.meta.js +0 -85
- package/build/cjs/src/challenges-v1-participant.meta.js.map +0 -1
- package/build/cjs/src/challenges-v1-participant.public.d.ts +0 -10
- package/build/cjs/src/challenges-v1-participant.public.js +0 -39
- package/build/cjs/src/challenges-v1-participant.public.js.map +0 -1
- package/build/cjs/src/challenges-v1-participant.types.d.ts +0 -1083
- package/build/cjs/src/challenges-v1-participant.types.js +0 -111
- package/build/cjs/src/challenges-v1-participant.types.js.map +0 -1
- package/build/cjs/src/challenges-v1-participant.universal.d.ts +0 -1031
- package/build/cjs/src/challenges-v1-participant.universal.js +0 -349
- package/build/cjs/src/challenges-v1-participant.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/challenges-v1-participant.http.d.ts +0 -7
- package/build/es/src/challenges-v1-participant.http.js +0 -219
- package/build/es/src/challenges-v1-participant.http.js.map +0 -1
- package/build/es/src/challenges-v1-participant.meta.d.ts +0 -21
- package/build/es/src/challenges-v1-participant.meta.js +0 -56
- package/build/es/src/challenges-v1-participant.meta.js.map +0 -1
- package/build/es/src/challenges-v1-participant.public.d.ts +0 -10
- package/build/es/src/challenges-v1-participant.public.js +0 -19
- package/build/es/src/challenges-v1-participant.public.js.map +0 -1
- package/build/es/src/challenges-v1-participant.types.d.ts +0 -1083
- package/build/es/src/challenges-v1-participant.types.js +0 -108
- package/build/es/src/challenges-v1-participant.types.js.map +0 -1
- package/build/es/src/challenges-v1-participant.universal.d.ts +0 -1031
- package/build/es/src/challenges-v1-participant.universal.js +0 -320
- package/build/es/src/challenges-v1-participant.universal.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixChallengesV1Participant from './challenges-v1-participant.http';
|
|
2
|
-
export function addParticipant() {
|
|
3
|
-
const payload = { challengeId: ':challengeId' };
|
|
4
|
-
const getRequestOptions = ambassadorWixChallengesV1Participant.addParticipant(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/api/v1/participants/{challengeId}/add',
|
|
13
|
-
pathParams: { challengeId: 'challengeId' },
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function addParticipants() {
|
|
21
|
-
const payload = { challengeId: ':challengeId' };
|
|
22
|
-
const getRequestOptions = ambassadorWixChallengesV1Participant.addParticipants(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'POST',
|
|
30
|
-
path: '/api/v1/participants/{challengeId}/bulk-add',
|
|
31
|
-
pathParams: { challengeId: 'challengeId' },
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function addAllParticipant() {
|
|
39
|
-
const payload = { challengeId: ':challengeId' };
|
|
40
|
-
const getRequestOptions = ambassadorWixChallengesV1Participant.addAllParticipant(payload);
|
|
41
|
-
const getUrl = (context) => {
|
|
42
|
-
const { url } = getRequestOptions(context);
|
|
43
|
-
return url;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
getUrl,
|
|
47
|
-
httpMethod: 'POST',
|
|
48
|
-
path: '/api/v1/participants/{challengeId}/add-all',
|
|
49
|
-
pathParams: { challengeId: 'challengeId' },
|
|
50
|
-
__requestType: null,
|
|
51
|
-
__originalRequestType: null,
|
|
52
|
-
__responseType: null,
|
|
53
|
-
__originalResponseType: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=challenges-v1-participant.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"challenges-v1-participant.meta.js","sourceRoot":"","sources":["../../../src/challenges-v1-participant.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oCAAoC,MAAM,kCAAkC,CAAC;AAsBzF,MAAM,UAAU,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,wCAAwC;QAC9C,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,6CAA6C;QACnD,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB;IAQ/B,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAElE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,4CAA4C;QAClD,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AddAllParticipantOptions, AddParticipantOptions, AddParticipantsOptions } from './challenges-v1-participant.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function addParticipant(httpClient: HttpClient): (challengeId: string, options?: AddParticipantOptions) => Promise<import("./challenges-v1-participant.universal").AddParticipantResponse & import("./challenges-v1-participant.universal").AddParticipantResponseNonNullableFields>;
|
|
7
|
-
export declare function addParticipants(httpClient: HttpClient): (challengeId: string, options?: AddParticipantsOptions) => Promise<import("./challenges-v1-participant.universal").AddParticipantsResponse & import("./challenges-v1-participant.universal").AddParticipantsResponseNonNullableFields>;
|
|
8
|
-
export declare function addAllParticipant(httpClient: HttpClient): (challengeId: string, options?: AddAllParticipantOptions) => Promise<void>;
|
|
9
|
-
export { ParticipantStepState, State, ParticipationState, QueryParticipantsRequestJoinPath, QueryParticipantsRequestSortingCriterion, QueryParticipantsRequestSortingOrder, SortingCriterion, SortingOrder, PaymentType, DescriptionFieldSet, ChoiceRightness, QuizType, DurationUnit, ResolutionStatus, } from './challenges-v1-participant.universal';
|
|
10
|
-
export { Participant, StepEvent, ParticipantStepStateTransition, Free, Added, SinglePayment, PaidPlan, FreeCoupon, Member, EntitySummary, MediaItem, MediaItemMediaOneOf, TimeInterval, StepsSummary, StateTransition, DateInterval, JoinPath, JoinPathPathOneOf, Certificate, QueryParticipantsRequest, ParticipantJoinDate, ParticipantPerformance, Paging, QueryParticipantsRequestSorting, ParticipantsFilter, QueryParticipantsResponse, ListParticipantsRequest, Sorting, ListParticipantsResponse, JoinParticipantRequest, JoinParticipantResponse, ParticipantJoined, AddParticipantRequest, AddParticipantResponse, AddParticipantsRequest, AddParticipantsResponse, AddAllParticipantRequest, AddAllParticipantResponse, CreateJoinRequestRequest, CreateJoinRequestResponse, InviteParticipantsRequest, InviteParticipantsResponse, InvitationDetails, InviteAllParticipantsRequest, InviteAllParticipantsResponse, GetParticipantRequest, GetParticipantResponse, UpdateParticipantRequest, UpdateParticipantRequestUpdateOneOf, UpdateParticipantResponse, DeleteParticipantRequest, DeleteParticipantResponse, ReviveParticipantRequest, ReviveParticipantResponse, ResetParticipantProgressRequest, ResetParticipantProgressResponse, IssueParticipantCertificateRequest, IssueParticipantCertificateResponse, IssueCertificateRequest, IssueCertificateResponse, GetCertificateRequest, GetCertificateResponse, CreatePaymentOrderRequest, CreatePaymentOrderResponse, ApplyCouponToOrderRequest, ApplyCouponToOrderResponse, RemoveCouponFromOrderRequest, RemoveCouponFromOrderResponse, ListParticipantStepsRequest, ListParticipantStepsResponse, ParticipantStep, FeedbackItem, FeedbackItemValueOneOf, MediaItems, FeedbackItemChoice, Quantity, Choices, ChallengeStep, GeneralSettings, GeneralSettingsStepTypeOneOf, ObjectDescription, IndividualSettings, FeedbackItemSettings, NumericFeedbackItem, TextFeedbackItem, MediaFeedbackItem, MultipleChoiceFeedbackItem, Choice, QuantityFeedbackItem, FeedbackItemType, FeedbackItemTypeTypeOneOf, GroupSettings, CompletionCriteria, QuantityCriterion, QuantityCriterionCriterionOneOf, All, MinThreshold, QuizSettings, QuizMigrationDetails, TimeDuration, RecurrenceSettings, RecurrenceSchedule, EmbeddingSettings, StartCondition, StepDependency, StepDependencyDependencyTypeOneOf, Container, Step, ChallengeStepSettings, Feedback, QuizSubmission, GetParticipantStepRequest, GetParticipantStepResponse, ResolveParticipantStepRequest, ResolveParticipantStepResponse, StepResolved, UpdateStepFeedbackRequest, UpdateStepFeedbackResponse, GetMediaUploadInfoRequest, GetMediaUploadInfoResponse, ListParticipantSectionsRequest, ListParticipantSectionsResponse, ParticipantSection, WaitingDate, WaitingDependency, Running, Completed, Overdue, ChallengeSection, Settings, ParticipantSectionStateTransition, ParticipantSectionStateTransitionStateOneOf, Progress, GetParticipantSectionRequest, GetParticipantSectionResponse, MyProgramRequest, MyProgramResponse, MyProgramStepRequest, MyProgramStepResponse, MyProgramSectionRequest, MyProgramSectionResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, AddParticipantResponseNonNullableFields, AddParticipantsResponseNonNullableFields, AddParticipantOptions, AddParticipantsOptions, AddAllParticipantOptions, } from './challenges-v1-participant.universal';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { addParticipant as universalAddParticipant, addParticipants as universalAddParticipants, addAllParticipant as universalAddAllParticipant, } from './challenges-v1-participant.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/online-programs' };
|
|
3
|
-
export function addParticipant(httpClient) {
|
|
4
|
-
return (challengeId, options) => universalAddParticipant(challengeId, options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export function addParticipants(httpClient) {
|
|
9
|
-
return (challengeId, options) => universalAddParticipants(challengeId, options,
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
{ httpClient });
|
|
12
|
-
}
|
|
13
|
-
export function addAllParticipant(httpClient) {
|
|
14
|
-
return (challengeId, options) => universalAddAllParticipant(challengeId, options,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
{ httpClient });
|
|
17
|
-
}
|
|
18
|
-
export { ParticipantStepState, State, ParticipationState, QueryParticipantsRequestJoinPath, QueryParticipantsRequestSortingCriterion, QueryParticipantsRequestSortingOrder, SortingCriterion, SortingOrder, PaymentType, DescriptionFieldSet, ChoiceRightness, QuizType, DurationUnit, ResolutionStatus, } from './challenges-v1-participant.universal';
|
|
19
|
-
//# sourceMappingURL=challenges-v1-participant.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"challenges-v1-participant.public.js","sourceRoot":"","sources":["../../../src/challenges-v1-participant.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,IAAI,uBAAuB,EACzC,eAAe,IAAI,wBAAwB,EAC3C,iBAAiB,IAAI,0BAA0B,GAIhD,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEnE,MAAM,UAAU,cAAc,CAAC,UAAsB;IACnD,OAAO,CAAC,WAAmB,EAAE,OAA+B,EAAE,EAAE,CAC9D,uBAAuB,CACrB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,UAAsB;IACpD,OAAO,CAAC,WAAmB,EAAE,OAAgC,EAAE,EAAE,CAC/D,wBAAwB,CACtB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,WAAmB,EAAE,OAAkC,EAAE,EAAE,CACjE,0BAA0B,CACxB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,oBAAoB,EACpB,KAAK,EACL,kBAAkB,EAClB,gCAAgC,EAChC,wCAAwC,EACxC,oCAAoC,EACpC,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,gBAAgB,GACjB,MAAM,uCAAuC,CAAC"}
|