@wix/auto_sdk_online-programs_participants 1.0.7 → 1.0.9

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 (37) hide show
  1. package/build/cjs/index.d.ts +8 -6
  2. package/build/cjs/index.js +10 -20
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +53 -25
  5. package/build/cjs/index.typings.js +10 -20
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +47 -21
  8. package/build/cjs/meta.js +10 -20
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +8 -6
  11. package/build/es/index.mjs +10 -20
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +53 -25
  14. package/build/es/index.typings.mjs +10 -20
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +47 -21
  17. package/build/es/meta.mjs +10 -20
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +8 -6
  20. package/build/internal/cjs/index.js +10 -20
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +53 -25
  23. package/build/internal/cjs/index.typings.js +10 -20
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +47 -21
  26. package/build/internal/cjs/meta.js +10 -20
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +8 -6
  29. package/build/internal/es/index.mjs +10 -20
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +53 -25
  32. package/build/internal/es/index.typings.mjs +10 -20
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +47 -21
  35. package/build/internal/es/meta.mjs +10 -20
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { Participant, 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, GetAccessStatusRequest, GetCompletionStatsRequest, GetParticipantRequest, GetParticipantResponse, GetPremiumStatsRequest, IdentificationData, IdentificationDataIdOneOf, IssueCertificateRequest, ItemMetadata, JoinPath, JoinPathWithLiterals, JoinedInfo, Member, MessageEnvelope, ParticipantAdded, ParticipantApproved, ParticipantExportsFinished, ParticipantInvited, ParticipantsQueryResult, PaymentInfo, Progress, QueryParticipantsRequest, QueryParticipantsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
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';
4
4
 
5
5
  declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
6
6
  interface CreateParticipantSignature {
@@ -8,7 +8,9 @@ interface CreateParticipantSignature {
8
8
  * @param - Participant to create
9
9
  * @returns Created participant
10
10
  */
11
- (participant: Participant): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `state` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId`, 3>>;
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
+ __applicationErrorsType?: CreateParticipantApplicationErrors;
13
+ }>;
12
14
  }
13
15
  declare function bulkCreateParticipant$1(httpClient: HttpClient): BulkCreateParticipantSignature;
14
16
  interface BulkCreateParticipantSignature {
@@ -43,7 +45,7 @@ interface IssueCertificateSignature {
43
45
  * Issue certificate by site admin
44
46
  * @param - Participant to get certificate
45
47
  */
46
- (participantId: string): Promise<NonNullablePaths<IssueCertificateResponse, `participant.memberId` | `participant.programId` | `participant.progress.totalStepsCompleted` | `participant.progress.totalStepsAvailable` | `participant.progress.completionPercentage` | `participant.state` | `participant.joinedInfo.timeZone` | `participant.joinedInfo.startDate` | `participant.joinedInfo.joinPath` | `participant.member.contactId`, 4>>;
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>>;
47
49
  }
48
50
  declare function getCompletionStats$1(httpClient: HttpClient): GetCompletionStatsSignature;
49
51
  interface GetCompletionStatsSignature {
@@ -67,7 +69,7 @@ interface GetParticipantSignature {
67
69
  * @param - Participant id to fetch
68
70
  * @returns existing participant
69
71
  */
70
- (participantId: string): Promise<NonNullablePaths<Participant, `memberId` | `programId` | `progress.totalStepsCompleted` | `progress.totalStepsAvailable` | `progress.completionPercentage` | `state` | `joinedInfo.timeZone` | `joinedInfo.startDate` | `joinedInfo.joinPath` | `member.contactId`, 3>>;
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>>;
71
73
  }
72
74
  declare function getAccessStatus$1(httpClient: HttpClient): GetAccessStatusSignature;
73
75
  interface GetAccessStatusSignature {
@@ -152,4 +154,4 @@ declare const onParticipantApproved: BuildEventDefinition<typeof onParticipantAp
152
154
  /** */
153
155
  declare const onParticipantInvited: BuildEventDefinition<typeof onParticipantInvited$1> & typeof onParticipantInvited$1;
154
156
 
155
- export { BulkAddAllToProgramOptions, BulkAddAllToProgramResponse, BulkAddToProgramOptions, BulkAddToProgramResponse, BulkApproveAllParticipantOptions, BulkApproveAllParticipantResponse, BulkApproveParticipantOptions, BulkApproveParticipantResponse, BulkCreateParticipantOptions, BulkCreateParticipantResponse, BulkInviteAllToProgramOptions, BulkInviteAllToProgramResponse, BulkInviteToProgramOptions, BulkInviteToProgramResponse, 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 };
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 };
@@ -272,8 +272,7 @@ function createParticipant(payload) {
272
272
  { path: "participant.createdDate" },
273
273
  { path: "participant.updatedDate" },
274
274
  { path: "participant.lastActivityDate" },
275
- { path: "participant.certificate.issuedDate" },
276
- { path: "participant.joinedInfo.joinedAt" }
275
+ { path: "participant.certificate.issuedDate" }
277
276
  ]
278
277
  },
279
278
  {
@@ -302,8 +301,7 @@ function createParticipant(payload) {
302
301
  { path: "participant.createdDate" },
303
302
  { path: "participant.updatedDate" },
304
303
  { path: "participant.lastActivityDate" },
305
- { path: "participant.certificate.issuedDate" },
306
- { path: "participant.joinedInfo.joinedAt" }
304
+ { path: "participant.certificate.issuedDate" }
307
305
  ]
308
306
  },
309
307
  {
@@ -325,8 +323,7 @@ function bulkCreateParticipant(payload) {
325
323
  { path: "participants.createdDate" },
326
324
  { path: "participants.updatedDate" },
327
325
  { path: "participants.lastActivityDate" },
328
- { path: "participants.certificate.issuedDate" },
329
- { path: "participants.joinedInfo.joinedAt" }
326
+ { path: "participants.certificate.issuedDate" }
330
327
  ]
331
328
  },
332
329
  {
@@ -355,8 +352,7 @@ function bulkCreateParticipant(payload) {
355
352
  { path: "results.item.createdDate" },
356
353
  { path: "results.item.updatedDate" },
357
354
  { path: "results.item.lastActivityDate" },
358
- { path: "results.item.certificate.issuedDate" },
359
- { path: "results.item.joinedInfo.joinedAt" }
355
+ { path: "results.item.certificate.issuedDate" }
360
356
  ]
361
357
  },
362
358
  {
@@ -434,8 +430,7 @@ function issueCertificate(payload) {
434
430
  { path: "participant.createdDate" },
435
431
  { path: "participant.updatedDate" },
436
432
  { path: "participant.lastActivityDate" },
437
- { path: "participant.certificate.issuedDate" },
438
- { path: "participant.joinedInfo.joinedAt" }
433
+ { path: "participant.certificate.issuedDate" }
439
434
  ]
440
435
  },
441
436
  {
@@ -519,8 +514,7 @@ function getParticipant(payload) {
519
514
  { path: "participant.createdDate" },
520
515
  { path: "participant.updatedDate" },
521
516
  { path: "participant.lastActivityDate" },
522
- { path: "participant.certificate.issuedDate" },
523
- { path: "participant.joinedInfo.joinedAt" }
517
+ { path: "participant.certificate.issuedDate" }
524
518
  ]
525
519
  },
526
520
  {
@@ -556,8 +550,7 @@ function queryParticipants(payload) {
556
550
  { path: "participants.createdDate" },
557
551
  { path: "participants.updatedDate" },
558
552
  { path: "participants.lastActivityDate" },
559
- { path: "participants.certificate.issuedDate" },
560
- { path: "participants.joinedInfo.joinedAt" }
553
+ { path: "participants.certificate.issuedDate" }
561
554
  ]
562
555
  },
563
556
  {
@@ -614,8 +607,7 @@ function bulkInviteToProgram(payload) {
614
607
  { path: "results.item.createdDate" },
615
608
  { path: "results.item.updatedDate" },
616
609
  { path: "results.item.lastActivityDate" },
617
- { path: "results.item.certificate.issuedDate" },
618
- { path: "results.item.joinedInfo.joinedAt" }
610
+ { path: "results.item.certificate.issuedDate" }
619
611
  ]
620
612
  },
621
613
  {
@@ -672,8 +664,7 @@ function bulkAddToProgram(payload) {
672
664
  { path: "results.item.createdDate" },
673
665
  { path: "results.item.updatedDate" },
674
666
  { path: "results.item.lastActivityDate" },
675
- { path: "results.item.certificate.issuedDate" },
676
- { path: "results.item.joinedInfo.joinedAt" }
667
+ { path: "results.item.certificate.issuedDate" }
677
668
  ]
678
669
  },
679
670
  {
@@ -709,8 +700,7 @@ function bulkApproveParticipant(payload) {
709
700
  { path: "results.item.createdDate" },
710
701
  { path: "results.item.updatedDate" },
711
702
  { path: "results.item.lastActivityDate" },
712
- { path: "results.item.certificate.issuedDate" },
713
- { path: "results.item.joinedInfo.joinedAt" }
703
+ { path: "results.item.certificate.issuedDate" }
714
704
  ]
715
705
  },
716
706
  {