@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.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +50 -12
  2. package/build/cjs/index.js +332 -13
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +12 -1239
  5. package/build/cjs/index.typings.js +304 -11
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +736 -37
  8. package/build/cjs/meta.js +275 -13
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/online-programs-v3-participant-participants.universal-DRubTE1O.d.ts +2228 -0
  11. package/build/es/index.d.mts +50 -12
  12. package/build/es/index.mjs +319 -12
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +12 -1239
  15. package/build/es/index.typings.mjs +292 -11
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +736 -37
  18. package/build/es/meta.mjs +262 -12
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/online-programs-v3-participant-participants.universal-DRubTE1O.d.mts +2228 -0
  21. package/build/internal/cjs/index.d.ts +50 -12
  22. package/build/internal/cjs/index.js +332 -13
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +12 -1249
  25. package/build/internal/cjs/index.typings.js +304 -11
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +736 -37
  28. package/build/internal/cjs/meta.js +275 -13
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/online-programs-v3-participant-participants.universal-DUdmZP01.d.ts +2238 -0
  31. package/build/internal/es/index.d.mts +50 -12
  32. package/build/internal/es/index.mjs +319 -12
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +12 -1249
  35. package/build/internal/es/index.typings.mjs +292 -11
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +736 -37
  38. package/build/internal/es/meta.mjs +262 -12
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/online-programs-v3-participant-participants.universal-DUdmZP01.d.mts +2238 -0
  41. package/package.json +3 -3
@@ -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, CursorQuery, typedQueryParticipants } from './index.typings.js';
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 './index.typings.js';
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.js';
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.js';
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` | `state` | `joinedInfo.singlePaymentDetails.paymentOrderId` | `joinedInfo.paidPlanDetails.paidPlanId` | `joinedInfo.freeCouponDetails.freeCouponId` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId`, 4> & {
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.state` | `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
+ (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.state` | `participant.joinedInfo.singlePaymentDetails.paymentOrderId` | `participant.joinedInfo.paidPlanDetails.paidPlanId` | `participant.joinedInfo.freeCouponDetails.freeCouponId` | `participant.joinedInfo.timeZone` | `participant.joinedInfo.startDate` | `participant.joinedInfo.joinPath` | `participant.member.contactId`, 5>>;
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` | `state` | `joinedInfo.singlePaymentDetails.paymentOrderId` | `joinedInfo.paidPlanDetails.paidPlanId` | `joinedInfo.freeCouponDetails.freeCouponId` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId`, 4>>;
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, `isBlocked`, 2>>;
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.state` | `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>>;
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.state` | `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>>;
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.state` | `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>>;
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: CursorQuery): ReturnType<typeof typedQueryParticipants>;
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, CreateParticipantApplicationErrors, CursorQuery, GetAccessStatusResponse, GetCompletionStatsResponse, GetPremiumStatsResponse, IssueCertificateResponse, Participant, ParticipantAddedEnvelope, ParticipantApprovedEnvelope, ParticipantInvitedEnvelope, ParticipantsQueryBuilder, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, createParticipant, deleteParticipant, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, onParticipantAdded, onParticipantApproved, onParticipantInvited, queryParticipants };
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 };
@@ -20,11 +20,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ AggregationType: () => AggregationType,
23
24
  BenefitType: () => BenefitType,
24
25
  Event: () => Event,
26
+ Interval: () => Interval,
25
27
  JoinPath: () => JoinPath,
28
+ MissingValues: () => MissingValues,
29
+ Mode: () => Mode,
30
+ NestedAggregationType: () => NestedAggregationType,
31
+ ScalarType: () => ScalarType,
32
+ SortDirection: () => SortDirection,
26
33
  SortOrder: () => SortOrder,
34
+ SortType: () => SortType,
27
35
  State: () => State,
36
+ Status: () => Status,
28
37
  WebhookIdentityType: () => WebhookIdentityType,
29
38
  bulkAddAllToProgram: () => bulkAddAllToProgram4,
30
39
  bulkAddToProgram: () => bulkAddToProgram4,
@@ -33,6 +42,8 @@ __export(index_exports, {
33
42
  bulkCreateParticipant: () => bulkCreateParticipant4,
34
43
  bulkInviteAllToProgram: () => bulkInviteAllToProgram4,
35
44
  bulkInviteToProgram: () => bulkInviteToProgram4,
45
+ bulkUpdateParticipantTags: () => bulkUpdateParticipantTags4,
46
+ bulkUpdateParticipantTagsByFilter: () => bulkUpdateParticipantTagsByFilter4,
36
47
  createParticipant: () => createParticipant4,
37
48
  deleteParticipant: () => deleteParticipant4,
38
49
  exportParticipantsStats: () => exportParticipantsStats4,
@@ -44,7 +55,8 @@ __export(index_exports, {
44
55
  onParticipantAdded: () => onParticipantAdded2,
45
56
  onParticipantApproved: () => onParticipantApproved2,
46
57
  onParticipantInvited: () => onParticipantInvited2,
47
- queryParticipants: () => queryParticipants4
58
+ queryParticipants: () => queryParticipants4,
59
+ searchParticipants: () => searchParticipants4
48
60
  });
49
61
  module.exports = __toCommonJS(index_exports);
50
62
 
@@ -584,6 +596,122 @@ function getAccessStatus(payload) {
584
596
  }
585
597
  return __getAccessStatus;
586
598
  }
599
+ function bulkUpdateParticipantTags(payload) {
600
+ function __bulkUpdateParticipantTags({ host }) {
601
+ const metadata = {
602
+ entityFqdn: "wix.online_programs.v3.participant",
603
+ method: "POST",
604
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
605
+ packageName: PACKAGE_NAME,
606
+ migrationOptions: {
607
+ optInTransformResponse: true
608
+ },
609
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
610
+ protoPath: "/v3/bulk/participants/update-tags",
611
+ data: payload,
612
+ host
613
+ }),
614
+ data: payload
615
+ };
616
+ return metadata;
617
+ }
618
+ return __bulkUpdateParticipantTags;
619
+ }
620
+ function bulkUpdateParticipantTagsByFilter(payload) {
621
+ function __bulkUpdateParticipantTagsByFilter({ host }) {
622
+ const metadata = {
623
+ entityFqdn: "wix.online_programs.v3.participant",
624
+ method: "POST",
625
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
626
+ packageName: PACKAGE_NAME,
627
+ migrationOptions: {
628
+ optInTransformResponse: true
629
+ },
630
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
631
+ protoPath: "/v3/bulk/participants/update-tags-by-filter",
632
+ data: payload,
633
+ host
634
+ }),
635
+ data: payload
636
+ };
637
+ return metadata;
638
+ }
639
+ return __bulkUpdateParticipantTagsByFilter;
640
+ }
641
+ function searchParticipants(payload) {
642
+ function __searchParticipants({ host }) {
643
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
644
+ {
645
+ transformFn: import_float.transformSDKFloatToRESTFloat,
646
+ paths: [
647
+ { path: "search.aggregations.range.buckets.from" },
648
+ { path: "search.aggregations.range.buckets.to" },
649
+ {
650
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
651
+ },
652
+ {
653
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
654
+ }
655
+ ]
656
+ }
657
+ ]);
658
+ const metadata = {
659
+ entityFqdn: "wix.online_programs.v3.participant",
660
+ method: "POST",
661
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
662
+ packageName: PACKAGE_NAME,
663
+ migrationOptions: {
664
+ optInTransformResponse: true
665
+ },
666
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
667
+ protoPath: "/v3/participants/search",
668
+ data: serializedData,
669
+ host
670
+ }),
671
+ data: serializedData,
672
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
673
+ {
674
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
675
+ paths: [
676
+ { path: "participants.createdDate" },
677
+ { path: "participants.updatedDate" },
678
+ { path: "participants.lastActivityDate" },
679
+ { path: "participants.certificate.issuedDate" }
680
+ ]
681
+ },
682
+ {
683
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
684
+ paths: [
685
+ { path: "participants.progress.completionPercentage" },
686
+ { path: "aggregationData.results.scalar.value" },
687
+ {
688
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
689
+ },
690
+ {
691
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
692
+ },
693
+ { path: "aggregationData.results.ranges.results.from" },
694
+ { path: "aggregationData.results.ranges.results.to" },
695
+ {
696
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
697
+ },
698
+ {
699
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
700
+ },
701
+ {
702
+ path: "aggregationData.results.nested.results.results.*.range.from"
703
+ },
704
+ {
705
+ path: "aggregationData.results.nested.results.results.*.range.to"
706
+ }
707
+ ]
708
+ }
709
+ ])
710
+ };
711
+ return metadata;
712
+ }
713
+ return __searchParticipants;
714
+ }
587
715
  function bulkInviteToProgram(payload) {
588
716
  function __bulkInviteToProgram({ host }) {
589
717
  const metadata = {
@@ -767,22 +895,77 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
767
895
  JoinPath2["FREE_COUPON"] = "FREE_COUPON";
768
896
  return JoinPath2;
769
897
  })(JoinPath || {});
770
- var State = /* @__PURE__ */ ((State2) => {
771
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
772
- State2["JOINED"] = "JOINED";
773
- State2["COMPLETED"] = "COMPLETED";
774
- State2["FAILED"] = "FAILED";
775
- State2["SUSPENDED"] = "SUSPENDED";
776
- State2["AUTO_REMOVED"] = "AUTO_REMOVED";
777
- State2["REMOVED"] = "REMOVED";
778
- State2["LEFT"] = "LEFT";
779
- return State2;
780
- })(State || {});
898
+ var Status = /* @__PURE__ */ ((Status2) => {
899
+ Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
900
+ Status2["JOINED"] = "JOINED";
901
+ Status2["COMPLETED"] = "COMPLETED";
902
+ Status2["FAILED"] = "FAILED";
903
+ Status2["SUSPENDED"] = "SUSPENDED";
904
+ Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
905
+ Status2["REMOVED"] = "REMOVED";
906
+ Status2["LEFT"] = "LEFT";
907
+ return Status2;
908
+ })(Status || {});
781
909
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
782
910
  SortOrder2["ASC"] = "ASC";
783
911
  SortOrder2["DESC"] = "DESC";
784
912
  return SortOrder2;
785
913
  })(SortOrder || {});
914
+ var SortType = /* @__PURE__ */ ((SortType2) => {
915
+ SortType2["COUNT"] = "COUNT";
916
+ SortType2["VALUE"] = "VALUE";
917
+ return SortType2;
918
+ })(SortType || {});
919
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
920
+ SortDirection2["DESC"] = "DESC";
921
+ SortDirection2["ASC"] = "ASC";
922
+ return SortDirection2;
923
+ })(SortDirection || {});
924
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
925
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
926
+ MissingValues2["INCLUDE"] = "INCLUDE";
927
+ return MissingValues2;
928
+ })(MissingValues || {});
929
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
930
+ ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
931
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
932
+ ScalarType2["MIN"] = "MIN";
933
+ ScalarType2["MAX"] = "MAX";
934
+ return ScalarType2;
935
+ })(ScalarType || {});
936
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
937
+ NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
938
+ NestedAggregationType2["VALUE"] = "VALUE";
939
+ NestedAggregationType2["RANGE"] = "RANGE";
940
+ NestedAggregationType2["SCALAR"] = "SCALAR";
941
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
942
+ return NestedAggregationType2;
943
+ })(NestedAggregationType || {});
944
+ var Interval = /* @__PURE__ */ ((Interval2) => {
945
+ Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
946
+ Interval2["YEAR"] = "YEAR";
947
+ Interval2["MONTH"] = "MONTH";
948
+ Interval2["WEEK"] = "WEEK";
949
+ Interval2["DAY"] = "DAY";
950
+ Interval2["HOUR"] = "HOUR";
951
+ Interval2["MINUTE"] = "MINUTE";
952
+ Interval2["SECOND"] = "SECOND";
953
+ return Interval2;
954
+ })(Interval || {});
955
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
956
+ AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
957
+ AggregationType2["VALUE"] = "VALUE";
958
+ AggregationType2["RANGE"] = "RANGE";
959
+ AggregationType2["SCALAR"] = "SCALAR";
960
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
961
+ AggregationType2["NESTED"] = "NESTED";
962
+ return AggregationType2;
963
+ })(AggregationType || {});
964
+ var Mode = /* @__PURE__ */ ((Mode2) => {
965
+ Mode2["OR"] = "OR";
966
+ Mode2["AND"] = "AND";
967
+ return Mode2;
968
+ })(Mode || {});
786
969
  var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
787
970
  BenefitType2["UNDEFINED"] = "UNDEFINED";
788
971
  BenefitType2["LIMITED"] = "LIMITED";
@@ -803,6 +986,17 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
803
986
  WebhookIdentityType2["APP"] = "APP";
804
987
  return WebhookIdentityType2;
805
988
  })(WebhookIdentityType || {});
989
+ var State = /* @__PURE__ */ ((State2) => {
990
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
991
+ State2["JOINED"] = "JOINED";
992
+ State2["COMPLETED"] = "COMPLETED";
993
+ State2["FAILED"] = "FAILED";
994
+ State2["SUSPENDED"] = "SUSPENDED";
995
+ State2["AUTO_REMOVED"] = "AUTO_REMOVED";
996
+ State2["REMOVED"] = "REMOVED";
997
+ State2["LEFT"] = "LEFT";
998
+ return State2;
999
+ })(State || {});
806
1000
  async function createParticipant2(participant) {
807
1001
  const { httpClient, sideEffects } = arguments[1];
808
1002
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1099,6 +1293,93 @@ async function getAccessStatus2() {
1099
1293
  throw transformedError;
1100
1294
  }
1101
1295
  }
1296
+ async function bulkUpdateParticipantTags2(participantIds, options) {
1297
+ const { httpClient, sideEffects } = arguments[2];
1298
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1299
+ participantIds,
1300
+ assignTags: options?.assignTags,
1301
+ unassignTags: options?.unassignTags
1302
+ });
1303
+ const reqOpts = bulkUpdateParticipantTags(payload);
1304
+ sideEffects?.onSiteCall?.();
1305
+ try {
1306
+ const result = await httpClient.request(reqOpts);
1307
+ sideEffects?.onSuccess?.(result);
1308
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1309
+ } catch (err) {
1310
+ const transformedError = (0, import_transform_error.transformError)(
1311
+ err,
1312
+ {
1313
+ spreadPathsToArguments: {},
1314
+ explicitPathsToArguments: {
1315
+ participantIds: "$[0]",
1316
+ assignTags: "$[1].assignTags",
1317
+ unassignTags: "$[1].unassignTags"
1318
+ },
1319
+ singleArgumentUnchanged: false
1320
+ },
1321
+ ["participantIds", "options"]
1322
+ );
1323
+ sideEffects?.onError?.(err);
1324
+ throw transformedError;
1325
+ }
1326
+ }
1327
+ async function bulkUpdateParticipantTagsByFilter2(filter, options) {
1328
+ const { httpClient, sideEffects } = arguments[2];
1329
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1330
+ filter,
1331
+ assignTags: options?.assignTags,
1332
+ unassignTags: options?.unassignTags
1333
+ });
1334
+ const reqOpts = bulkUpdateParticipantTagsByFilter(
1335
+ payload
1336
+ );
1337
+ sideEffects?.onSiteCall?.();
1338
+ try {
1339
+ const result = await httpClient.request(reqOpts);
1340
+ sideEffects?.onSuccess?.(result);
1341
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1342
+ } catch (err) {
1343
+ const transformedError = (0, import_transform_error.transformError)(
1344
+ err,
1345
+ {
1346
+ spreadPathsToArguments: {},
1347
+ explicitPathsToArguments: {
1348
+ filter: "$[0]",
1349
+ assignTags: "$[1].assignTags",
1350
+ unassignTags: "$[1].unassignTags"
1351
+ },
1352
+ singleArgumentUnchanged: false
1353
+ },
1354
+ ["filter", "options"]
1355
+ );
1356
+ sideEffects?.onError?.(err);
1357
+ throw transformedError;
1358
+ }
1359
+ }
1360
+ async function searchParticipants2(search) {
1361
+ const { httpClient, sideEffects } = arguments[1];
1362
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ search });
1363
+ const reqOpts = searchParticipants(payload);
1364
+ sideEffects?.onSiteCall?.();
1365
+ try {
1366
+ const result = await httpClient.request(reqOpts);
1367
+ sideEffects?.onSuccess?.(result);
1368
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1369
+ } catch (err) {
1370
+ const transformedError = (0, import_transform_error.transformError)(
1371
+ err,
1372
+ {
1373
+ spreadPathsToArguments: {},
1374
+ explicitPathsToArguments: { search: "$[0]" },
1375
+ singleArgumentUnchanged: false
1376
+ },
1377
+ ["search"]
1378
+ );
1379
+ sideEffects?.onError?.(err);
1380
+ throw transformedError;
1381
+ }
1382
+ }
1102
1383
  async function bulkInviteToProgram2(programId, options) {
1103
1384
  const { httpClient, sideEffects } = arguments[2];
1104
1385
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1352,6 +1633,29 @@ function getAccessStatus3(httpClient) {
1352
1633
  { httpClient }
1353
1634
  );
1354
1635
  }
1636
+ function bulkUpdateParticipantTags3(httpClient) {
1637
+ return (participantIds, options) => bulkUpdateParticipantTags2(
1638
+ participantIds,
1639
+ options,
1640
+ // @ts-ignore
1641
+ { httpClient }
1642
+ );
1643
+ }
1644
+ function bulkUpdateParticipantTagsByFilter3(httpClient) {
1645
+ return (filter, options) => bulkUpdateParticipantTagsByFilter2(
1646
+ filter,
1647
+ options,
1648
+ // @ts-ignore
1649
+ { httpClient }
1650
+ );
1651
+ }
1652
+ function searchParticipants3(httpClient) {
1653
+ return (search) => searchParticipants2(
1654
+ search,
1655
+ // @ts-ignore
1656
+ { httpClient }
1657
+ );
1658
+ }
1355
1659
  function bulkInviteToProgram3(httpClient) {
1356
1660
  return (programId, options) => bulkInviteToProgram2(
1357
1661
  programId,
@@ -1459,6 +1763,9 @@ var getCompletionStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMod
1459
1763
  var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1460
1764
  var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
1461
1765
  var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
1766
+ var bulkUpdateParticipantTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTags3);
1767
+ var bulkUpdateParticipantTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTagsByFilter3);
1768
+ var searchParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchParticipants3);
1462
1769
  var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteToProgram3);
1463
1770
  var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteAllToProgram3);
1464
1771
  var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddToProgram3);
@@ -1475,11 +1782,20 @@ var onParticipantInvited2 = (0, import_event_definition_modules.createEventModul
1475
1782
  );
1476
1783
  // Annotate the CommonJS export names for ESM import in node:
1477
1784
  0 && (module.exports = {
1785
+ AggregationType,
1478
1786
  BenefitType,
1479
1787
  Event,
1788
+ Interval,
1480
1789
  JoinPath,
1790
+ MissingValues,
1791
+ Mode,
1792
+ NestedAggregationType,
1793
+ ScalarType,
1794
+ SortDirection,
1481
1795
  SortOrder,
1796
+ SortType,
1482
1797
  State,
1798
+ Status,
1483
1799
  WebhookIdentityType,
1484
1800
  bulkAddAllToProgram,
1485
1801
  bulkAddToProgram,
@@ -1488,6 +1804,8 @@ var onParticipantInvited2 = (0, import_event_definition_modules.createEventModul
1488
1804
  bulkCreateParticipant,
1489
1805
  bulkInviteAllToProgram,
1490
1806
  bulkInviteToProgram,
1807
+ bulkUpdateParticipantTags,
1808
+ bulkUpdateParticipantTagsByFilter,
1491
1809
  createParticipant,
1492
1810
  deleteParticipant,
1493
1811
  exportParticipantsStats,
@@ -1499,6 +1817,7 @@ var onParticipantInvited2 = (0, import_event_definition_modules.createEventModul
1499
1817
  onParticipantAdded,
1500
1818
  onParticipantApproved,
1501
1819
  onParticipantInvited,
1502
- queryParticipants
1820
+ queryParticipants,
1821
+ searchParticipants
1503
1822
  });
1504
1823
  //# sourceMappingURL=index.js.map