@wix/auto_sdk_online-programs_participants 1.0.9 → 1.0.11
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 +50 -12
- package/build/cjs/index.js +332 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -1239
- package/build/cjs/index.typings.js +304 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +736 -37
- package/build/cjs/meta.js +275 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/online-programs-v3-participant-participants.universal-DRubTE1O.d.ts +2228 -0
- package/build/es/index.d.mts +50 -12
- package/build/es/index.mjs +319 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -1239
- package/build/es/index.typings.mjs +292 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +736 -37
- package/build/es/meta.mjs +262 -12
- package/build/es/meta.mjs.map +1 -1
- package/build/es/online-programs-v3-participant-participants.universal-DRubTE1O.d.mts +2228 -0
- package/build/internal/cjs/index.d.ts +50 -12
- package/build/internal/cjs/index.js +332 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -1249
- package/build/internal/cjs/index.typings.js +304 -11
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +736 -37
- package/build/internal/cjs/meta.js +275 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/online-programs-v3-participant-participants.universal-DUdmZP01.d.ts +2238 -0
- package/build/internal/es/index.d.mts +50 -12
- package/build/internal/es/index.mjs +319 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -1249
- package/build/internal/es/index.typings.mjs +292 -11
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +736 -37
- package/build/internal/es/meta.mjs +262 -12
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/online-programs-v3-participant-participants.universal-DUdmZP01.d.mts +2238 -0
- package/package.json +3 -3
package/build/es/index.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Participant, CreateParticipantApplicationErrors, BulkCreateParticipantOptions, BulkCreateParticipantResponse, BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, IssueCertificateResponse, GetCompletionStatsResponse, GetPremiumStatsResponse, GetAccessStatusResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, ParticipantAddedEnvelope, ParticipantApprovedEnvelope, ParticipantInvitedEnvelope, ParticipantsQueryBuilder,
|
|
3
|
-
export { ActionEvent, ApplicationError, BaseEventMetadata, Behavior, BehaviorBehaviorOneOf, Benefit, BenefitNotification, BenefitType, BenefitTypeWithLiterals, BulkActionMetadata, BulkAddAllToProgramRequest, BulkAddToProgramRequest, BulkAddToProgramResult, BulkApproveAllParticipantRequest, BulkApproveParticipantRequest, BulkApproveParticipantResult, BulkCreateParticipantRequest, BulkInviteAllToProgramRequest, BulkInviteToProgramRequest, BulkInviteToProgramResult, BulkParticipantResult, Certificate, CommonBulkActionMetadata, CommonItemMetadata, CreateParticipantRequest, CreateParticipantResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DeleteParticipantRequest, DeleteParticipantResponse, Discount, DiscountDiscountOneOf, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EntryPass, Event, EventMetadata, EventWithLiterals, ExportParticipantsStatsRequest, ExportParticipantsStatsResponse, ExtendedFields, FreeCouponDetails, GetAccessStatusRequest, GetCompletionStatsRequest, GetParticipantRequest, GetParticipantResponse, GetPremiumStatsRequest, IdentificationData, IdentificationDataIdOneOf, IssueCertificateRequest, ItemMetadata, JoinPath, JoinPathWithLiterals, JoinedInfo, JoinedInfoJoinPathDetailsOneOf, Member, MessageEnvelope, PaidPlanDetails, ParticipantAdded, ParticipantApproved, ParticipantExportsFinished, ParticipantInvited, ParticipantsQueryResult, Progress, QueryParticipantsRequest, QueryParticipantsResponse, RestoreInfo, SinglePaymentDetails, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './
|
|
2
|
+
import { P as Participant, C as CreateParticipantApplicationErrors, B as BulkCreateParticipantOptions, a as BulkCreateParticipantResponse, b as BulkAddAllToProgramOptions, c as BulkAddAllToProgramResponse, I as IssueCertificateResponse, G as GetCompletionStatsResponse, d as GetPremiumStatsResponse, e as GetAccessStatusResponse, f as BulkUpdateParticipantTagsOptions, g as BulkUpdateParticipantTagsResponse, h as BulkUpdateParticipantTagsApplicationErrors, i as BulkUpdateParticipantTagsByFilterOptions, j as BulkUpdateParticipantTagsByFilterResponse, k as BulkUpdateParticipantTagsByFilterApplicationErrors, l as ParticipantSearch, S as SearchParticipantsResponse, m as BulkInviteToProgramOptions, n as BulkInviteToProgramResponse, o as BulkInviteAllToProgramOptions, p as BulkInviteAllToProgramResponse, q as BulkAddToProgramOptions, r as BulkAddToProgramResponse, s as BulkApproveParticipantOptions, t as BulkApproveParticipantResponse, u as BulkApproveAllParticipantOptions, v as BulkApproveAllParticipantResponse, w as ParticipantAddedEnvelope, x as ParticipantApprovedEnvelope, y as ParticipantInvitedEnvelope, z as ParticipantsQueryBuilder, A as ParticipantQuery, D as typedQueryParticipants } from './online-programs-v3-participant-participants.universal-DRubTE1O.mjs';
|
|
3
|
+
export { bg as ActionEvent, aC as Aggregation, aR as AggregationData, aD as AggregationKindOneOf, b8 as AggregationResults, b9 as AggregationResultsResultOneOf, aY as AggregationResultsScalarResult, Q as AggregationType, bV as AggregationTypeWithLiterals, ad as ApplicationError, bH as BaseEventMetadata, bn as Behavior, bo as BehaviorBehaviorOneOf, bj as Benefit, bi as BenefitNotification, T as BenefitType, bX as BenefitTypeWithLiterals, bv as BulkActionMetadata, af as BulkAddAllToProgramRequest, by as BulkAddToProgramRequest, bz as BulkAddToProgramResult, bD as BulkApproveAllParticipantRequest, bA as BulkApproveParticipantRequest, bB as BulkApproveParticipantResult, aa as BulkCreateParticipantRequest, bx as BulkInviteAllToProgramRequest, bs as BulkInviteToProgramRequest, bu as BulkInviteToProgramResult, ab as BulkParticipantResult, ay as BulkUpdateParticipantTagsByFilterRequest, aw as BulkUpdateParticipantTagsRequest, ax as BulkUpdateParticipantTagsResult, $ as Certificate, ae as CommonBulkActionMetadata, ac as CommonItemMetadata, b$ as CommonQueryWithEntityContext, c0 as CommonSearchWithEntityContext, a8 as CreateParticipantRequest, a9 as CreateParticipantResponse, ar as CursorPaging, at as CursorPagingMetadata, ao as CursorQuery, ap as CursorQueryPagingMethodOneOf, aA as CursorSearch, aB as CursorSearchPagingMethodOneOf, au as Cursors, aK as DateHistogramAggregation, b4 as DateHistogramResult, b6 as DateHistogramResults, ag as DeleteParticipantRequest, ah as DeleteParticipantResponse, bl as Discount, bm as DiscountDiscountOneOf, ba as DomainEvent, bb as DomainEventBodyOneOf, bh as Empty, bc as EntityCreatedEvent, bf as EntityDeletedEvent, be as EntityUpdatedEvent, bk as EntryPass, U as Event, bI as EventMetadata, bY as EventWithLiterals, bE as ExportParticipantsStatsRequest, bF as ExportParticipantsStatsResponse, a3 as ExtendedFields, Z as FreeCouponDetails, av as GetAccessStatusRequest, aj as GetCompletionStatsRequest, al as GetParticipantRequest, am as GetParticipantResponse, ak as GetPremiumStatsRequest, aO as GroupByAggregation, aP as GroupByAggregationKindOneOf, b5 as GroupByValueResults, bq as IdentificationData, br as IdentificationDataIdOneOf, aF as IncludeMissingValuesOptions, O as Interval, bU as IntervalWithLiterals, ai as IssueCertificateRequest, bt as ItemMetadata, J as JoinPath, bM as JoinPathWithLiterals, a0 as JoinedInfo, a1 as JoinedInfoJoinPathDetailsOneOf, a2 as Member, bp as MessageEnvelope, M as MissingValues, bR as MissingValuesWithLiterals, R as Mode, bW as ModeWithLiterals, aN as NestedAggregation, aL as NestedAggregationItem, aM as NestedAggregationItemKindOneOf, aU as NestedAggregationResults, aV as NestedAggregationResultsResultOneOf, N as NestedAggregationType, bT as NestedAggregationTypeWithLiterals, b1 as NestedResultValue, b2 as NestedResultValueResultOneOf, b7 as NestedResults, aZ as NestedValueAggregationResult, Y as PaidPlanDetails, a6 as ParticipantAdded, bC as ParticipantApproved, bG as ParticipantExportsFinished, bw as ParticipantInvited, bK as ParticipantQuerySpec, bL as ParticipantSearchSpec, bJ as ParticipantsQueryResult, _ as Progress, an as QueryParticipantsRequest, as as QueryParticipantsResponse, aI as RangeAggregation, aT as RangeAggregationResult, aE as RangeBucket, a$ as RangeResult, aX as RangeResults, bd as RestoreInfo, b3 as Results, aJ as ScalarAggregation, b0 as ScalarResult, L as ScalarType, bS as ScalarTypeWithLiterals, aQ as SearchDetails, az as SearchParticipantsRequest, X as SinglePaymentDetails, K as SortDirection, bQ as SortDirectionWithLiterals, F as SortOrder, bO as SortOrderWithLiterals, H as SortType, bP as SortTypeWithLiterals, aq as Sorting, V as State, b_ as StateWithLiterals, E as Status, bN as StatusWithLiterals, a5 as TagList, a4 as Tags, a7 as TagsModified, aG as ValueAggregation, aH as ValueAggregationOptionsOneOf, aS as ValueAggregationResult, a_ as ValueResult, aW as ValueResults, W as WebhookIdentityType, bZ as WebhookIdentityTypeWithLiterals } from './online-programs-v3-participant-participants.universal-DRubTE1O.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
|
7
7
|
/**
|
|
8
|
+
* Create one participant.
|
|
8
9
|
* @param - Participant to create
|
|
9
10
|
* @returns Created participant
|
|
10
11
|
*/
|
|
11
|
-
(participant: Participant): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `
|
|
12
|
+
(participant: NonNullablePaths<Participant, `joinedInfo.joinPath` | `memberId` | `programId`, 3>): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `status` | `joinedInfo.singlePaymentDetails.paymentOrderId` | `joinedInfo.paidPlanDetails.paidPlanId` | `joinedInfo.freeCouponDetails.freeCouponId` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId` | `tags.privateTags.tagIds`, 4> & {
|
|
12
13
|
__applicationErrorsType?: CreateParticipantApplicationErrors;
|
|
13
14
|
}>;
|
|
14
15
|
}
|
|
@@ -18,7 +19,7 @@ interface BulkCreateParticipantSignature {
|
|
|
18
19
|
* Creates participants in bulk.
|
|
19
20
|
* @param - List of participants you want to create
|
|
20
21
|
*/
|
|
21
|
-
(participants: Participant[], options?: BulkCreateParticipantOptions): Promise<NonNullablePaths<BulkCreateParticipantResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.
|
|
22
|
+
(participants: NonNullablePaths<Participant, `joinedInfo.joinPath` | `memberId` | `programId`, 3>[], options?: BulkCreateParticipantOptions): Promise<NonNullablePaths<BulkCreateParticipantResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.status` | `results.${number}.item.joinedInfo.timeZone` | `results.${number}.item.joinedInfo.startDate` | `results.${number}.item.joinedInfo.joinPath` | `results.${number}.item.member.contactId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
22
23
|
}
|
|
23
24
|
declare function bulkAddAllToProgram$1(httpClient: HttpClient): BulkAddAllToProgramSignature;
|
|
24
25
|
interface BulkAddAllToProgramSignature {
|
|
@@ -45,7 +46,7 @@ interface IssueCertificateSignature {
|
|
|
45
46
|
* Issue certificate by site admin
|
|
46
47
|
* @param - Participant to get certificate
|
|
47
48
|
*/
|
|
48
|
-
(participantId: string): Promise<NonNullablePaths<IssueCertificateResponse, `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.
|
|
49
|
+
(participantId: string): Promise<NonNullablePaths<IssueCertificateResponse, `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.status` | `participant.joinedInfo.singlePaymentDetails.paymentOrderId` | `participant.joinedInfo.paidPlanDetails.paidPlanId` | `participant.joinedInfo.freeCouponDetails.freeCouponId` | `participant.joinedInfo.timeZone` | `participant.joinedInfo.startDate` | `participant.joinedInfo.joinPath` | `participant.member.contactId` | `participant.tags.privateTags.tagIds`, 5>>;
|
|
49
50
|
}
|
|
50
51
|
declare function getCompletionStats$1(httpClient: HttpClient): GetCompletionStatsSignature;
|
|
51
52
|
interface GetCompletionStatsSignature {
|
|
@@ -69,14 +70,48 @@ interface GetParticipantSignature {
|
|
|
69
70
|
* @param - Participant id to fetch
|
|
70
71
|
* @returns existing participant
|
|
71
72
|
*/
|
|
72
|
-
(participantId: string): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `
|
|
73
|
+
(participantId: string): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `status` | `joinedInfo.singlePaymentDetails.paymentOrderId` | `joinedInfo.paidPlanDetails.paidPlanId` | `joinedInfo.freeCouponDetails.freeCouponId` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId` | `tags.privateTags.tagIds`, 4>>;
|
|
73
74
|
}
|
|
74
75
|
declare function getAccessStatus$1(httpClient: HttpClient): GetAccessStatusSignature;
|
|
75
76
|
interface GetAccessStatusSignature {
|
|
76
77
|
/**
|
|
77
78
|
* Get access status
|
|
78
79
|
*/
|
|
79
|
-
(): Promise<NonNullablePaths<GetAccessStatusResponse, `
|
|
80
|
+
(): Promise<NonNullablePaths<GetAccessStatusResponse, `blocked`, 2>>;
|
|
81
|
+
}
|
|
82
|
+
declare function bulkUpdateParticipantTags$1(httpClient: HttpClient): BulkUpdateParticipantTagsSignature;
|
|
83
|
+
interface BulkUpdateParticipantTagsSignature {
|
|
84
|
+
/**
|
|
85
|
+
* Updates tags for multiple Participants by IDs.
|
|
86
|
+
*
|
|
87
|
+
* Allows assigning and/or unassigning tags in a single operation.
|
|
88
|
+
* At least one of assign_tags or unassign_tags must be provided.
|
|
89
|
+
* @param - Participant IDs to update tags for (1-100 items)
|
|
90
|
+
*/
|
|
91
|
+
(participantIds: string[], options?: BulkUpdateParticipantTagsOptions): Promise<NonNullablePaths<BulkUpdateParticipantTagsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6> & {
|
|
92
|
+
__applicationErrorsType?: BulkUpdateParticipantTagsApplicationErrors;
|
|
93
|
+
}>;
|
|
94
|
+
}
|
|
95
|
+
declare function bulkUpdateParticipantTagsByFilter$1(httpClient: HttpClient): BulkUpdateParticipantTagsByFilterSignature;
|
|
96
|
+
interface BulkUpdateParticipantTagsByFilterSignature {
|
|
97
|
+
/**
|
|
98
|
+
* Updates tags for Participants matching a filter.
|
|
99
|
+
*
|
|
100
|
+
* Allows assigning and/or unassigning tags for all Participants matching the filter.
|
|
101
|
+
* Returns a job ID for tracking the async operation.
|
|
102
|
+
* @param - WQL filter to select Participants
|
|
103
|
+
*/
|
|
104
|
+
(filter: Record<string, any>, options?: BulkUpdateParticipantTagsByFilterOptions): Promise<NonNullablePaths<BulkUpdateParticipantTagsByFilterResponse, `jobId`, 2> & {
|
|
105
|
+
__applicationErrorsType?: BulkUpdateParticipantTagsByFilterApplicationErrors;
|
|
106
|
+
}>;
|
|
107
|
+
}
|
|
108
|
+
declare function searchParticipants$1(httpClient: HttpClient): SearchParticipantsSignature;
|
|
109
|
+
interface SearchParticipantsSignature {
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves a list of programs according to search criteria
|
|
112
|
+
* @param - Query to search programs
|
|
113
|
+
*/
|
|
114
|
+
(search: ParticipantSearch): Promise<NonNullablePaths<SearchParticipantsResponse, `participants` | `participants.${number}.memberId` | `participants.${number}.programId` | `participants.${number}.progress.totalStepsCompleted` | `participants.${number}.progress.totalStepsAvailable` | `participants.${number}.progress.completionPercentage` | `participants.${number}.status` | `participants.${number}.joinedInfo.singlePaymentDetails.paymentOrderId` | `participants.${number}.joinedInfo.paidPlanDetails.paidPlanId` | `participants.${number}.joinedInfo.freeCouponDetails.freeCouponId` | `participants.${number}.joinedInfo.timeZone` | `participants.${number}.joinedInfo.startDate` | `participants.${number}.joinedInfo.joinPath` | `participants.${number}.member.contactId` | `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>>;
|
|
80
115
|
}
|
|
81
116
|
declare function bulkInviteToProgram$1(httpClient: HttpClient): BulkInviteToProgramSignature;
|
|
82
117
|
interface BulkInviteToProgramSignature {
|
|
@@ -85,7 +120,7 @@ interface BulkInviteToProgramSignature {
|
|
|
85
120
|
* For each member participant in Invited state is created.
|
|
86
121
|
* @param - Program to which bulk invite participants.
|
|
87
122
|
*/
|
|
88
|
-
(programId: string, options?: BulkInviteToProgramOptions): Promise<NonNullablePaths<BulkInviteToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.
|
|
123
|
+
(programId: string, options?: BulkInviteToProgramOptions): Promise<NonNullablePaths<BulkInviteToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.status` | `results.${number}.item.joinedInfo.timeZone` | `results.${number}.item.joinedInfo.startDate` | `results.${number}.item.joinedInfo.joinPath` | `results.${number}.item.member.contactId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
89
124
|
}
|
|
90
125
|
declare function bulkInviteAllToProgram$1(httpClient: HttpClient): BulkInviteAllToProgramSignature;
|
|
91
126
|
interface BulkInviteAllToProgramSignature {
|
|
@@ -104,7 +139,7 @@ interface BulkAddToProgramSignature {
|
|
|
104
139
|
* from pending one.
|
|
105
140
|
* @param - Program to which bulk add participants.
|
|
106
141
|
*/
|
|
107
|
-
(programId: string, options?: BulkAddToProgramOptions): Promise<NonNullablePaths<BulkAddToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.
|
|
142
|
+
(programId: string, options?: BulkAddToProgramOptions): Promise<NonNullablePaths<BulkAddToProgramResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.status` | `results.${number}.item.joinedInfo.timeZone` | `results.${number}.item.joinedInfo.startDate` | `results.${number}.item.joinedInfo.joinPath` | `results.${number}.item.member.contactId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
108
143
|
}
|
|
109
144
|
declare function bulkApproveParticipant$1(httpClient: HttpClient): BulkApproveParticipantSignature;
|
|
110
145
|
interface BulkApproveParticipantSignature {
|
|
@@ -114,7 +149,7 @@ interface BulkApproveParticipantSignature {
|
|
|
114
149
|
* error returned.
|
|
115
150
|
* @param - Participants to add
|
|
116
151
|
*/
|
|
117
|
-
(participantIds: string[], options?: BulkApproveParticipantOptions): Promise<NonNullablePaths<BulkApproveParticipantResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.
|
|
152
|
+
(participantIds: string[], options?: BulkApproveParticipantOptions): Promise<NonNullablePaths<BulkApproveParticipantResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.memberId` | `results.${number}.item.programId` | `results.${number}.item.progress.totalStepsCompleted` | `results.${number}.item.progress.totalStepsAvailable` | `results.${number}.item.progress.completionPercentage` | `results.${number}.item.status` | `results.${number}.item.joinedInfo.timeZone` | `results.${number}.item.joinedInfo.startDate` | `results.${number}.item.joinedInfo.joinPath` | `results.${number}.item.member.contactId` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
118
153
|
}
|
|
119
154
|
declare function bulkApproveAllParticipant$1(httpClient: HttpClient): BulkApproveAllParticipantSignature;
|
|
120
155
|
interface BulkApproveAllParticipantSignature {
|
|
@@ -130,7 +165,7 @@ declare const onParticipantInvited$1: EventDefinition<ParticipantInvitedEnvelope
|
|
|
130
165
|
|
|
131
166
|
declare function customQueryParticipants(httpClient: HttpClient): {
|
|
132
167
|
(): ParticipantsQueryBuilder;
|
|
133
|
-
(query:
|
|
168
|
+
(query: ParticipantQuery): ReturnType<typeof typedQueryParticipants>;
|
|
134
169
|
};
|
|
135
170
|
declare const createParticipant: MaybeContext<BuildRESTFunction<typeof createParticipant$1> & typeof createParticipant$1>;
|
|
136
171
|
declare const bulkCreateParticipant: MaybeContext<BuildRESTFunction<typeof bulkCreateParticipant$1> & typeof bulkCreateParticipant$1>;
|
|
@@ -141,6 +176,9 @@ declare const getCompletionStats: MaybeContext<BuildRESTFunction<typeof getCompl
|
|
|
141
176
|
declare const getPremiumStats: MaybeContext<BuildRESTFunction<typeof getPremiumStats$1> & typeof getPremiumStats$1>;
|
|
142
177
|
declare const getParticipant: MaybeContext<BuildRESTFunction<typeof getParticipant$1> & typeof getParticipant$1>;
|
|
143
178
|
declare const getAccessStatus: MaybeContext<BuildRESTFunction<typeof getAccessStatus$1> & typeof getAccessStatus$1>;
|
|
179
|
+
declare const bulkUpdateParticipantTags: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTags$1> & typeof bulkUpdateParticipantTags$1>;
|
|
180
|
+
declare const bulkUpdateParticipantTagsByFilter: MaybeContext<BuildRESTFunction<typeof bulkUpdateParticipantTagsByFilter$1> & typeof bulkUpdateParticipantTagsByFilter$1>;
|
|
181
|
+
declare const searchParticipants: MaybeContext<BuildRESTFunction<typeof searchParticipants$1> & typeof searchParticipants$1>;
|
|
144
182
|
declare const bulkInviteToProgram: MaybeContext<BuildRESTFunction<typeof bulkInviteToProgram$1> & typeof bulkInviteToProgram$1>;
|
|
145
183
|
declare const bulkInviteAllToProgram: MaybeContext<BuildRESTFunction<typeof bulkInviteAllToProgram$1> & typeof bulkInviteAllToProgram$1>;
|
|
146
184
|
declare const bulkAddToProgram: MaybeContext<BuildRESTFunction<typeof bulkAddToProgram$1> & typeof bulkAddToProgram$1>;
|
|
@@ -154,4 +192,4 @@ declare const onParticipantApproved: BuildEventDefinition<typeof onParticipantAp
|
|
|
154
192
|
/** */
|
|
155
193
|
declare const onParticipantInvited: BuildEventDefinition<typeof onParticipantInvited$1> & typeof onParticipantInvited$1;
|
|
156
194
|
|
|
157
|
-
export { BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkCreateParticipantOptions, BulkCreateParticipantResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse,
|
|
195
|
+
export { BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkCreateParticipantOptions, BulkCreateParticipantResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse, BulkUpdateParticipantTagsApplicationErrors, BulkUpdateParticipantTagsByFilterApplicationErrors, BulkUpdateParticipantTagsByFilterOptions, BulkUpdateParticipantTagsByFilterResponse, BulkUpdateParticipantTagsOptions, BulkUpdateParticipantTagsResponse, CreateParticipantApplicationErrors, GetAccessStatusResponse, GetCompletionStatsResponse, GetPremiumStatsResponse, IssueCertificateResponse, Participant, ParticipantAddedEnvelope, ParticipantApprovedEnvelope, ParticipantInvitedEnvelope, ParticipantQuery, ParticipantSearch, ParticipantsQueryBuilder, SearchParticipantsResponse, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, bulkUpdateParticipantTags, bulkUpdateParticipantTagsByFilter, createParticipant, deleteParticipant, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, onParticipantAdded, onParticipantApproved, onParticipantInvited, queryParticipants, searchParticipants };
|
package/build/es/index.mjs
CHANGED
|
@@ -537,6 +537,122 @@ function getAccessStatus(payload) {
|
|
|
537
537
|
}
|
|
538
538
|
return __getAccessStatus;
|
|
539
539
|
}
|
|
540
|
+
function bulkUpdateParticipantTags(payload) {
|
|
541
|
+
function __bulkUpdateParticipantTags({ host }) {
|
|
542
|
+
const metadata = {
|
|
543
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
544
|
+
method: "POST",
|
|
545
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
|
|
546
|
+
packageName: PACKAGE_NAME,
|
|
547
|
+
migrationOptions: {
|
|
548
|
+
optInTransformResponse: true
|
|
549
|
+
},
|
|
550
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
551
|
+
protoPath: "/v3/bulk/participants/update-tags",
|
|
552
|
+
data: payload,
|
|
553
|
+
host
|
|
554
|
+
}),
|
|
555
|
+
data: payload
|
|
556
|
+
};
|
|
557
|
+
return metadata;
|
|
558
|
+
}
|
|
559
|
+
return __bulkUpdateParticipantTags;
|
|
560
|
+
}
|
|
561
|
+
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
562
|
+
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
563
|
+
const metadata = {
|
|
564
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
565
|
+
method: "POST",
|
|
566
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
567
|
+
packageName: PACKAGE_NAME,
|
|
568
|
+
migrationOptions: {
|
|
569
|
+
optInTransformResponse: true
|
|
570
|
+
},
|
|
571
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
572
|
+
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
573
|
+
data: payload,
|
|
574
|
+
host
|
|
575
|
+
}),
|
|
576
|
+
data: payload
|
|
577
|
+
};
|
|
578
|
+
return metadata;
|
|
579
|
+
}
|
|
580
|
+
return __bulkUpdateParticipantTagsByFilter;
|
|
581
|
+
}
|
|
582
|
+
function searchParticipants(payload) {
|
|
583
|
+
function __searchParticipants({ host }) {
|
|
584
|
+
const serializedData = transformPaths(payload, [
|
|
585
|
+
{
|
|
586
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
587
|
+
paths: [
|
|
588
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
589
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
590
|
+
{
|
|
591
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
595
|
+
}
|
|
596
|
+
]
|
|
597
|
+
}
|
|
598
|
+
]);
|
|
599
|
+
const metadata = {
|
|
600
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
601
|
+
method: "POST",
|
|
602
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
603
|
+
packageName: PACKAGE_NAME,
|
|
604
|
+
migrationOptions: {
|
|
605
|
+
optInTransformResponse: true
|
|
606
|
+
},
|
|
607
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
608
|
+
protoPath: "/v3/participants/search",
|
|
609
|
+
data: serializedData,
|
|
610
|
+
host
|
|
611
|
+
}),
|
|
612
|
+
data: serializedData,
|
|
613
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
614
|
+
{
|
|
615
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
616
|
+
paths: [
|
|
617
|
+
{ path: "participants.createdDate" },
|
|
618
|
+
{ path: "participants.updatedDate" },
|
|
619
|
+
{ path: "participants.lastActivityDate" },
|
|
620
|
+
{ path: "participants.certificate.issuedDate" }
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
625
|
+
paths: [
|
|
626
|
+
{ path: "participants.progress.completionPercentage" },
|
|
627
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
628
|
+
{
|
|
629
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
633
|
+
},
|
|
634
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
635
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
636
|
+
{
|
|
637
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
])
|
|
651
|
+
};
|
|
652
|
+
return metadata;
|
|
653
|
+
}
|
|
654
|
+
return __searchParticipants;
|
|
655
|
+
}
|
|
540
656
|
function bulkInviteToProgram(payload) {
|
|
541
657
|
function __bulkInviteToProgram({ host }) {
|
|
542
658
|
const metadata = {
|
|
@@ -720,22 +836,77 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
|
720
836
|
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
721
837
|
return JoinPath2;
|
|
722
838
|
})(JoinPath || {});
|
|
723
|
-
var
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
return
|
|
733
|
-
})(
|
|
839
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
840
|
+
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
841
|
+
Status2["JOINED"] = "JOINED";
|
|
842
|
+
Status2["COMPLETED"] = "COMPLETED";
|
|
843
|
+
Status2["FAILED"] = "FAILED";
|
|
844
|
+
Status2["SUSPENDED"] = "SUSPENDED";
|
|
845
|
+
Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
846
|
+
Status2["REMOVED"] = "REMOVED";
|
|
847
|
+
Status2["LEFT"] = "LEFT";
|
|
848
|
+
return Status2;
|
|
849
|
+
})(Status || {});
|
|
734
850
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
735
851
|
SortOrder2["ASC"] = "ASC";
|
|
736
852
|
SortOrder2["DESC"] = "DESC";
|
|
737
853
|
return SortOrder2;
|
|
738
854
|
})(SortOrder || {});
|
|
855
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
856
|
+
SortType2["COUNT"] = "COUNT";
|
|
857
|
+
SortType2["VALUE"] = "VALUE";
|
|
858
|
+
return SortType2;
|
|
859
|
+
})(SortType || {});
|
|
860
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
861
|
+
SortDirection2["DESC"] = "DESC";
|
|
862
|
+
SortDirection2["ASC"] = "ASC";
|
|
863
|
+
return SortDirection2;
|
|
864
|
+
})(SortDirection || {});
|
|
865
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
866
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
867
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
868
|
+
return MissingValues2;
|
|
869
|
+
})(MissingValues || {});
|
|
870
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
871
|
+
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
872
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
873
|
+
ScalarType2["MIN"] = "MIN";
|
|
874
|
+
ScalarType2["MAX"] = "MAX";
|
|
875
|
+
return ScalarType2;
|
|
876
|
+
})(ScalarType || {});
|
|
877
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
878
|
+
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
879
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
880
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
881
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
882
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
883
|
+
return NestedAggregationType2;
|
|
884
|
+
})(NestedAggregationType || {});
|
|
885
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
886
|
+
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
887
|
+
Interval2["YEAR"] = "YEAR";
|
|
888
|
+
Interval2["MONTH"] = "MONTH";
|
|
889
|
+
Interval2["WEEK"] = "WEEK";
|
|
890
|
+
Interval2["DAY"] = "DAY";
|
|
891
|
+
Interval2["HOUR"] = "HOUR";
|
|
892
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
893
|
+
Interval2["SECOND"] = "SECOND";
|
|
894
|
+
return Interval2;
|
|
895
|
+
})(Interval || {});
|
|
896
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
897
|
+
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
898
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
899
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
900
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
901
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
902
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
903
|
+
return AggregationType2;
|
|
904
|
+
})(AggregationType || {});
|
|
905
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
906
|
+
Mode2["OR"] = "OR";
|
|
907
|
+
Mode2["AND"] = "AND";
|
|
908
|
+
return Mode2;
|
|
909
|
+
})(Mode || {});
|
|
739
910
|
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
740
911
|
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
741
912
|
BenefitType2["LIMITED"] = "LIMITED";
|
|
@@ -756,6 +927,17 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
756
927
|
WebhookIdentityType2["APP"] = "APP";
|
|
757
928
|
return WebhookIdentityType2;
|
|
758
929
|
})(WebhookIdentityType || {});
|
|
930
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
931
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
932
|
+
State2["JOINED"] = "JOINED";
|
|
933
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
934
|
+
State2["FAILED"] = "FAILED";
|
|
935
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
936
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
937
|
+
State2["REMOVED"] = "REMOVED";
|
|
938
|
+
State2["LEFT"] = "LEFT";
|
|
939
|
+
return State2;
|
|
940
|
+
})(State || {});
|
|
759
941
|
async function createParticipant2(participant) {
|
|
760
942
|
const { httpClient, sideEffects } = arguments[1];
|
|
761
943
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1052,6 +1234,93 @@ async function getAccessStatus2() {
|
|
|
1052
1234
|
throw transformedError;
|
|
1053
1235
|
}
|
|
1054
1236
|
}
|
|
1237
|
+
async function bulkUpdateParticipantTags2(participantIds, options) {
|
|
1238
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1239
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1240
|
+
participantIds,
|
|
1241
|
+
assignTags: options?.assignTags,
|
|
1242
|
+
unassignTags: options?.unassignTags
|
|
1243
|
+
});
|
|
1244
|
+
const reqOpts = bulkUpdateParticipantTags(payload);
|
|
1245
|
+
sideEffects?.onSiteCall?.();
|
|
1246
|
+
try {
|
|
1247
|
+
const result = await httpClient.request(reqOpts);
|
|
1248
|
+
sideEffects?.onSuccess?.(result);
|
|
1249
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1250
|
+
} catch (err) {
|
|
1251
|
+
const transformedError = sdkTransformError(
|
|
1252
|
+
err,
|
|
1253
|
+
{
|
|
1254
|
+
spreadPathsToArguments: {},
|
|
1255
|
+
explicitPathsToArguments: {
|
|
1256
|
+
participantIds: "$[0]",
|
|
1257
|
+
assignTags: "$[1].assignTags",
|
|
1258
|
+
unassignTags: "$[1].unassignTags"
|
|
1259
|
+
},
|
|
1260
|
+
singleArgumentUnchanged: false
|
|
1261
|
+
},
|
|
1262
|
+
["participantIds", "options"]
|
|
1263
|
+
);
|
|
1264
|
+
sideEffects?.onError?.(err);
|
|
1265
|
+
throw transformedError;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
async function bulkUpdateParticipantTagsByFilter2(filter, options) {
|
|
1269
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1270
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1271
|
+
filter,
|
|
1272
|
+
assignTags: options?.assignTags,
|
|
1273
|
+
unassignTags: options?.unassignTags
|
|
1274
|
+
});
|
|
1275
|
+
const reqOpts = bulkUpdateParticipantTagsByFilter(
|
|
1276
|
+
payload
|
|
1277
|
+
);
|
|
1278
|
+
sideEffects?.onSiteCall?.();
|
|
1279
|
+
try {
|
|
1280
|
+
const result = await httpClient.request(reqOpts);
|
|
1281
|
+
sideEffects?.onSuccess?.(result);
|
|
1282
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1283
|
+
} catch (err) {
|
|
1284
|
+
const transformedError = sdkTransformError(
|
|
1285
|
+
err,
|
|
1286
|
+
{
|
|
1287
|
+
spreadPathsToArguments: {},
|
|
1288
|
+
explicitPathsToArguments: {
|
|
1289
|
+
filter: "$[0]",
|
|
1290
|
+
assignTags: "$[1].assignTags",
|
|
1291
|
+
unassignTags: "$[1].unassignTags"
|
|
1292
|
+
},
|
|
1293
|
+
singleArgumentUnchanged: false
|
|
1294
|
+
},
|
|
1295
|
+
["filter", "options"]
|
|
1296
|
+
);
|
|
1297
|
+
sideEffects?.onError?.(err);
|
|
1298
|
+
throw transformedError;
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
async function searchParticipants2(search) {
|
|
1302
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1303
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ search });
|
|
1304
|
+
const reqOpts = searchParticipants(payload);
|
|
1305
|
+
sideEffects?.onSiteCall?.();
|
|
1306
|
+
try {
|
|
1307
|
+
const result = await httpClient.request(reqOpts);
|
|
1308
|
+
sideEffects?.onSuccess?.(result);
|
|
1309
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1310
|
+
} catch (err) {
|
|
1311
|
+
const transformedError = sdkTransformError(
|
|
1312
|
+
err,
|
|
1313
|
+
{
|
|
1314
|
+
spreadPathsToArguments: {},
|
|
1315
|
+
explicitPathsToArguments: { search: "$[0]" },
|
|
1316
|
+
singleArgumentUnchanged: false
|
|
1317
|
+
},
|
|
1318
|
+
["search"]
|
|
1319
|
+
);
|
|
1320
|
+
sideEffects?.onError?.(err);
|
|
1321
|
+
throw transformedError;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1055
1324
|
async function bulkInviteToProgram2(programId, options) {
|
|
1056
1325
|
const { httpClient, sideEffects } = arguments[2];
|
|
1057
1326
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1305,6 +1574,29 @@ function getAccessStatus3(httpClient) {
|
|
|
1305
1574
|
{ httpClient }
|
|
1306
1575
|
);
|
|
1307
1576
|
}
|
|
1577
|
+
function bulkUpdateParticipantTags3(httpClient) {
|
|
1578
|
+
return (participantIds, options) => bulkUpdateParticipantTags2(
|
|
1579
|
+
participantIds,
|
|
1580
|
+
options,
|
|
1581
|
+
// @ts-ignore
|
|
1582
|
+
{ httpClient }
|
|
1583
|
+
);
|
|
1584
|
+
}
|
|
1585
|
+
function bulkUpdateParticipantTagsByFilter3(httpClient) {
|
|
1586
|
+
return (filter, options) => bulkUpdateParticipantTagsByFilter2(
|
|
1587
|
+
filter,
|
|
1588
|
+
options,
|
|
1589
|
+
// @ts-ignore
|
|
1590
|
+
{ httpClient }
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
function searchParticipants3(httpClient) {
|
|
1594
|
+
return (search) => searchParticipants2(
|
|
1595
|
+
search,
|
|
1596
|
+
// @ts-ignore
|
|
1597
|
+
{ httpClient }
|
|
1598
|
+
);
|
|
1599
|
+
}
|
|
1308
1600
|
function bulkInviteToProgram3(httpClient) {
|
|
1309
1601
|
return (programId, options) => bulkInviteToProgram2(
|
|
1310
1602
|
programId,
|
|
@@ -1412,6 +1704,9 @@ var getCompletionStats4 = /* @__PURE__ */ createRESTModule(getCompletionStats3);
|
|
|
1412
1704
|
var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
|
|
1413
1705
|
var getParticipant4 = /* @__PURE__ */ createRESTModule(getParticipant3);
|
|
1414
1706
|
var getAccessStatus4 = /* @__PURE__ */ createRESTModule(getAccessStatus3);
|
|
1707
|
+
var bulkUpdateParticipantTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateParticipantTags3);
|
|
1708
|
+
var bulkUpdateParticipantTagsByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateParticipantTagsByFilter3);
|
|
1709
|
+
var searchParticipants4 = /* @__PURE__ */ createRESTModule(searchParticipants3);
|
|
1415
1710
|
var bulkInviteToProgram4 = /* @__PURE__ */ createRESTModule(bulkInviteToProgram3);
|
|
1416
1711
|
var bulkInviteAllToProgram4 = /* @__PURE__ */ createRESTModule(bulkInviteAllToProgram3);
|
|
1417
1712
|
var bulkAddToProgram4 = /* @__PURE__ */ createRESTModule(bulkAddToProgram3);
|
|
@@ -1427,11 +1722,20 @@ var onParticipantInvited2 = createEventModule(
|
|
|
1427
1722
|
onParticipantInvited
|
|
1428
1723
|
);
|
|
1429
1724
|
export {
|
|
1725
|
+
AggregationType,
|
|
1430
1726
|
BenefitType,
|
|
1431
1727
|
Event,
|
|
1728
|
+
Interval,
|
|
1432
1729
|
JoinPath,
|
|
1730
|
+
MissingValues,
|
|
1731
|
+
Mode,
|
|
1732
|
+
NestedAggregationType,
|
|
1733
|
+
ScalarType,
|
|
1734
|
+
SortDirection,
|
|
1433
1735
|
SortOrder,
|
|
1736
|
+
SortType,
|
|
1434
1737
|
State,
|
|
1738
|
+
Status,
|
|
1435
1739
|
WebhookIdentityType,
|
|
1436
1740
|
bulkAddAllToProgram4 as bulkAddAllToProgram,
|
|
1437
1741
|
bulkAddToProgram4 as bulkAddToProgram,
|
|
@@ -1440,6 +1744,8 @@ export {
|
|
|
1440
1744
|
bulkCreateParticipant4 as bulkCreateParticipant,
|
|
1441
1745
|
bulkInviteAllToProgram4 as bulkInviteAllToProgram,
|
|
1442
1746
|
bulkInviteToProgram4 as bulkInviteToProgram,
|
|
1747
|
+
bulkUpdateParticipantTags4 as bulkUpdateParticipantTags,
|
|
1748
|
+
bulkUpdateParticipantTagsByFilter4 as bulkUpdateParticipantTagsByFilter,
|
|
1443
1749
|
createParticipant4 as createParticipant,
|
|
1444
1750
|
deleteParticipant4 as deleteParticipant,
|
|
1445
1751
|
exportParticipantsStats4 as exportParticipantsStats,
|
|
@@ -1451,6 +1757,7 @@ export {
|
|
|
1451
1757
|
onParticipantAdded2 as onParticipantAdded,
|
|
1452
1758
|
onParticipantApproved2 as onParticipantApproved,
|
|
1453
1759
|
onParticipantInvited2 as onParticipantInvited,
|
|
1454
|
-
queryParticipants4 as queryParticipants
|
|
1760
|
+
queryParticipants4 as queryParticipants,
|
|
1761
|
+
searchParticipants4 as searchParticipants
|
|
1455
1762
|
};
|
|
1456
1763
|
//# sourceMappingURL=index.mjs.map
|