@wix/auto_sdk_online-programs_participants 1.0.6 → 1.0.8

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 +3 -3
@@ -33,11 +33,11 @@ interface Participant {
33
33
  progress?: Progress;
34
34
  /** state of participation in the program */
35
35
  state?: StateWithLiterals;
36
- /** Certificate issued to participant */
36
+ /**
37
+ * Certificate issued to participant
38
+ * @readonly
39
+ */
37
40
  certificate?: Certificate;
38
- /** @readonly */
39
- paymentInfo?: PaymentInfo;
40
- /** @readonly */
41
41
  joinedInfo?: JoinedInfo;
42
42
  /** @readonly */
43
43
  member?: Member;
@@ -60,6 +60,20 @@ declare enum JoinPath {
60
60
  }
61
61
  /** @enumType */
62
62
  type JoinPathWithLiterals = JoinPath | 'UNKNOWN_JOIN_PATH' | 'FREE' | 'ADDED' | 'SINGLE_PAYMENT' | 'PAID_PLAN' | 'FREE_COUPON';
63
+ interface SinglePaymentDetails {
64
+ /** @format GUID */
65
+ paymentOrderId?: string;
66
+ /** @format GUID */
67
+ offlineTransactionId?: string | null;
68
+ }
69
+ interface PaidPlanDetails {
70
+ /** @format GUID */
71
+ paidPlanId?: string;
72
+ }
73
+ interface FreeCouponDetails {
74
+ /** @format GUID */
75
+ freeCouponId?: string;
76
+ }
63
77
  interface Progress {
64
78
  /** Number of program steps completed by member */
65
79
  totalStepsCompleted?: number;
@@ -98,26 +112,32 @@ interface Certificate {
98
112
  */
99
113
  issuedDate?: Date | null;
100
114
  }
101
- interface PaymentInfo {
102
- /** @format GUID */
103
- paymentOrderId?: string | null;
104
- /** @format GUID */
105
- offlineTrxId?: string | null;
106
- /** @format GUID */
107
- paidPlanId?: string | null;
108
- /** @format GUID */
109
- freeCouponId?: string | null;
110
- }
111
- interface JoinedInfo {
112
- /** @maxLength 50 */
115
+ interface JoinedInfo extends JoinedInfoJoinPathDetailsOneOf {
116
+ singlePaymentDetails?: SinglePaymentDetails;
117
+ paidPlanDetails?: PaidPlanDetails;
118
+ freeCouponDetails?: FreeCouponDetails;
119
+ /**
120
+ * @maxLength 50
121
+ * @readonly
122
+ */
113
123
  timeZone?: string;
114
- /** @format LOCAL_DATE */
124
+ /**
125
+ * @format LOCAL_DATE
126
+ * @readonly
127
+ */
115
128
  startDate?: string;
116
129
  joinPath?: JoinPathWithLiterals;
117
- /** @format LOCAL_DATE */
130
+ /**
131
+ * @format LOCAL_DATE
132
+ * @readonly
133
+ */
118
134
  finishDate?: string | null;
119
- /** @readonly */
120
- joinedAt?: Date | null;
135
+ }
136
+ /** @oneof */
137
+ interface JoinedInfoJoinPathDetailsOneOf {
138
+ singlePaymentDetails?: SinglePaymentDetails;
139
+ paidPlanDetails?: PaidPlanDetails;
140
+ freeCouponDetails?: FreeCouponDetails;
121
141
  }
122
142
  interface Member {
123
143
  /**
@@ -836,6 +856,12 @@ interface ParticipantExportsFinished {
836
856
  /** days url will be downloadable */
837
857
  downloadUrlTtlDays?: number;
838
858
  }
859
+ /** @docsIgnore */
860
+ type CreateParticipantApplicationErrors = {
861
+ code?: 'INVALID_PAYMENT_INFO';
862
+ description?: string;
863
+ data?: Record<string, any>;
864
+ };
839
865
 
840
866
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
841
867
  getUrl: (context: any) => string;
@@ -874,4 +900,4 @@ declare function exportParticipantsStats(): __PublicMethodMetaInfo<'GET', {
874
900
  programId: string;
875
901
  }, ExportParticipantsStatsRequest$1, ExportParticipantsStatsRequest, ExportParticipantsStatsResponse$1, ExportParticipantsStatsResponse>;
876
902
 
877
- export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BehaviorBehaviorOneOf as BehaviorBehaviorOneOfOriginal, type Behavior as BehaviorOriginal, type BenefitNotification as BenefitNotificationOriginal, type Benefit as BenefitOriginal, BenefitType as BenefitTypeOriginal, type BenefitTypeWithLiterals as BenefitTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddAllToProgramRequest as BulkAddAllToProgramRequestOriginal, type BulkAddAllToProgramResponse as BulkAddAllToProgramResponseOriginal, type BulkAddToProgramRequest as BulkAddToProgramRequestOriginal, type BulkAddToProgramResponse as BulkAddToProgramResponseOriginal, type BulkAddToProgramResult as BulkAddToProgramResultOriginal, type BulkApproveAllParticipantRequest as BulkApproveAllParticipantRequestOriginal, type BulkApproveAllParticipantResponse as BulkApproveAllParticipantResponseOriginal, type BulkApproveParticipantRequest as BulkApproveParticipantRequestOriginal, type BulkApproveParticipantResponse as BulkApproveParticipantResponseOriginal, type BulkApproveParticipantResult as BulkApproveParticipantResultOriginal, type BulkCreateParticipantRequest as BulkCreateParticipantRequestOriginal, type BulkCreateParticipantResponse as BulkCreateParticipantResponseOriginal, type BulkInviteAllToProgramRequest as BulkInviteAllToProgramRequestOriginal, type BulkInviteAllToProgramResponse as BulkInviteAllToProgramResponseOriginal, type BulkInviteToProgramRequest as BulkInviteToProgramRequestOriginal, type BulkInviteToProgramResponse as BulkInviteToProgramResponseOriginal, type BulkInviteToProgramResult as BulkInviteToProgramResultOriginal, type BulkParticipantResult as BulkParticipantResultOriginal, type Certificate as CertificateOriginal, type CommonBulkActionMetadata as CommonBulkActionMetadataOriginal, type CommonItemMetadata as CommonItemMetadataOriginal, type CreateParticipantRequest as CreateParticipantRequestOriginal, type CreateParticipantResponse as CreateParticipantResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteParticipantRequest as DeleteParticipantRequestOriginal, type DeleteParticipantResponse as DeleteParticipantResponseOriginal, type DiscountDiscountOneOf as DiscountDiscountOneOfOriginal, type Discount as DiscountOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EntryPass as EntryPassOriginal, Event as EventOriginal, type EventWithLiterals as EventWithLiteralsOriginal, type ExportParticipantsStatsRequest as ExportParticipantsStatsRequestOriginal, type ExportParticipantsStatsResponse as ExportParticipantsStatsResponseOriginal, type ExtendedFields as ExtendedFieldsOriginal, type GetAccessStatusRequest as GetAccessStatusRequestOriginal, type GetAccessStatusResponse as GetAccessStatusResponseOriginal, type GetCompletionStatsRequest as GetCompletionStatsRequestOriginal, type GetCompletionStatsResponse as GetCompletionStatsResponseOriginal, type GetParticipantRequest as GetParticipantRequestOriginal, type GetParticipantResponse as GetParticipantResponseOriginal, type GetPremiumStatsRequest as GetPremiumStatsRequestOriginal, type GetPremiumStatsResponse as GetPremiumStatsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IssueCertificateRequest as IssueCertificateRequestOriginal, type IssueCertificateResponse as IssueCertificateResponseOriginal, type ItemMetadata as ItemMetadataOriginal, JoinPath as JoinPathOriginal, type JoinPathWithLiterals as JoinPathWithLiteralsOriginal, type JoinedInfo as JoinedInfoOriginal, type Member as MemberOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ParticipantAdded as ParticipantAddedOriginal, type ParticipantApproved as ParticipantApprovedOriginal, type ParticipantExportsFinished as ParticipantExportsFinishedOriginal, type ParticipantInvited as ParticipantInvitedOriginal, type Participant as ParticipantOriginal, type PaymentInfo as PaymentInfoOriginal, type Progress as ProgressOriginal, type QueryParticipantsRequest as QueryParticipantsRequestOriginal, type QueryParticipantsResponse as QueryParticipantsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, createParticipant, deleteParticipant, exportParticipantsStats, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, queryParticipants };
903
+ export { type ActionEvent as ActionEventOriginal, type ApplicationError as ApplicationErrorOriginal, type BehaviorBehaviorOneOf as BehaviorBehaviorOneOfOriginal, type Behavior as BehaviorOriginal, type BenefitNotification as BenefitNotificationOriginal, type Benefit as BenefitOriginal, BenefitType as BenefitTypeOriginal, type BenefitTypeWithLiterals as BenefitTypeWithLiteralsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddAllToProgramRequest as BulkAddAllToProgramRequestOriginal, type BulkAddAllToProgramResponse as BulkAddAllToProgramResponseOriginal, type BulkAddToProgramRequest as BulkAddToProgramRequestOriginal, type BulkAddToProgramResponse as BulkAddToProgramResponseOriginal, type BulkAddToProgramResult as BulkAddToProgramResultOriginal, type BulkApproveAllParticipantRequest as BulkApproveAllParticipantRequestOriginal, type BulkApproveAllParticipantResponse as BulkApproveAllParticipantResponseOriginal, type BulkApproveParticipantRequest as BulkApproveParticipantRequestOriginal, type BulkApproveParticipantResponse as BulkApproveParticipantResponseOriginal, type BulkApproveParticipantResult as BulkApproveParticipantResultOriginal, type BulkCreateParticipantRequest as BulkCreateParticipantRequestOriginal, type BulkCreateParticipantResponse as BulkCreateParticipantResponseOriginal, type BulkInviteAllToProgramRequest as BulkInviteAllToProgramRequestOriginal, type BulkInviteAllToProgramResponse as BulkInviteAllToProgramResponseOriginal, type BulkInviteToProgramRequest as BulkInviteToProgramRequestOriginal, type BulkInviteToProgramResponse as BulkInviteToProgramResponseOriginal, type BulkInviteToProgramResult as BulkInviteToProgramResultOriginal, type BulkParticipantResult as BulkParticipantResultOriginal, type Certificate as CertificateOriginal, type CommonBulkActionMetadata as CommonBulkActionMetadataOriginal, type CommonItemMetadata as CommonItemMetadataOriginal, type CreateParticipantApplicationErrors as CreateParticipantApplicationErrorsOriginal, type CreateParticipantRequest as CreateParticipantRequestOriginal, type CreateParticipantResponse as CreateParticipantResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DeleteParticipantRequest as DeleteParticipantRequestOriginal, type DeleteParticipantResponse as DeleteParticipantResponseOriginal, type DiscountDiscountOneOf as DiscountDiscountOneOfOriginal, type Discount as DiscountOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type EntryPass as EntryPassOriginal, Event as EventOriginal, type EventWithLiterals as EventWithLiteralsOriginal, type ExportParticipantsStatsRequest as ExportParticipantsStatsRequestOriginal, type ExportParticipantsStatsResponse as ExportParticipantsStatsResponseOriginal, type ExtendedFields as ExtendedFieldsOriginal, type FreeCouponDetails as FreeCouponDetailsOriginal, type GetAccessStatusRequest as GetAccessStatusRequestOriginal, type GetAccessStatusResponse as GetAccessStatusResponseOriginal, type GetCompletionStatsRequest as GetCompletionStatsRequestOriginal, type GetCompletionStatsResponse as GetCompletionStatsResponseOriginal, type GetParticipantRequest as GetParticipantRequestOriginal, type GetParticipantResponse as GetParticipantResponseOriginal, type GetPremiumStatsRequest as GetPremiumStatsRequestOriginal, type GetPremiumStatsResponse as GetPremiumStatsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type IssueCertificateRequest as IssueCertificateRequestOriginal, type IssueCertificateResponse as IssueCertificateResponseOriginal, type ItemMetadata as ItemMetadataOriginal, JoinPath as JoinPathOriginal, type JoinPathWithLiterals as JoinPathWithLiteralsOriginal, type JoinedInfoJoinPathDetailsOneOf as JoinedInfoJoinPathDetailsOneOfOriginal, type JoinedInfo as JoinedInfoOriginal, type Member as MemberOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type PaidPlanDetails as PaidPlanDetailsOriginal, type ParticipantAdded as ParticipantAddedOriginal, type ParticipantApproved as ParticipantApprovedOriginal, type ParticipantExportsFinished as ParticipantExportsFinishedOriginal, type ParticipantInvited as ParticipantInvitedOriginal, type Participant as ParticipantOriginal, type Progress as ProgressOriginal, type QueryParticipantsRequest as QueryParticipantsRequestOriginal, type QueryParticipantsResponse as QueryParticipantsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type SinglePaymentDetails as SinglePaymentDetailsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, createParticipant, deleteParticipant, exportParticipantsStats, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, queryParticipants };
package/build/cjs/meta.js CHANGED
@@ -258,8 +258,7 @@ function createParticipant(payload) {
258
258
  { path: "participant.createdDate" },
259
259
  { path: "participant.updatedDate" },
260
260
  { path: "participant.lastActivityDate" },
261
- { path: "participant.certificate.issuedDate" },
262
- { path: "participant.joinedInfo.joinedAt" }
261
+ { path: "participant.certificate.issuedDate" }
263
262
  ]
264
263
  },
265
264
  {
@@ -288,8 +287,7 @@ function createParticipant(payload) {
288
287
  { path: "participant.createdDate" },
289
288
  { path: "participant.updatedDate" },
290
289
  { path: "participant.lastActivityDate" },
291
- { path: "participant.certificate.issuedDate" },
292
- { path: "participant.joinedInfo.joinedAt" }
290
+ { path: "participant.certificate.issuedDate" }
293
291
  ]
294
292
  },
295
293
  {
@@ -311,8 +309,7 @@ function bulkCreateParticipant(payload) {
311
309
  { path: "participants.createdDate" },
312
310
  { path: "participants.updatedDate" },
313
311
  { path: "participants.lastActivityDate" },
314
- { path: "participants.certificate.issuedDate" },
315
- { path: "participants.joinedInfo.joinedAt" }
312
+ { path: "participants.certificate.issuedDate" }
316
313
  ]
317
314
  },
318
315
  {
@@ -341,8 +338,7 @@ function bulkCreateParticipant(payload) {
341
338
  { path: "results.item.createdDate" },
342
339
  { path: "results.item.updatedDate" },
343
340
  { path: "results.item.lastActivityDate" },
344
- { path: "results.item.certificate.issuedDate" },
345
- { path: "results.item.joinedInfo.joinedAt" }
341
+ { path: "results.item.certificate.issuedDate" }
346
342
  ]
347
343
  },
348
344
  {
@@ -420,8 +416,7 @@ function issueCertificate(payload) {
420
416
  { path: "participant.createdDate" },
421
417
  { path: "participant.updatedDate" },
422
418
  { path: "participant.lastActivityDate" },
423
- { path: "participant.certificate.issuedDate" },
424
- { path: "participant.joinedInfo.joinedAt" }
419
+ { path: "participant.certificate.issuedDate" }
425
420
  ]
426
421
  },
427
422
  {
@@ -505,8 +500,7 @@ function getParticipant(payload) {
505
500
  { path: "participant.createdDate" },
506
501
  { path: "participant.updatedDate" },
507
502
  { path: "participant.lastActivityDate" },
508
- { path: "participant.certificate.issuedDate" },
509
- { path: "participant.joinedInfo.joinedAt" }
503
+ { path: "participant.certificate.issuedDate" }
510
504
  ]
511
505
  },
512
506
  {
@@ -542,8 +536,7 @@ function queryParticipants(payload) {
542
536
  { path: "participants.createdDate" },
543
537
  { path: "participants.updatedDate" },
544
538
  { path: "participants.lastActivityDate" },
545
- { path: "participants.certificate.issuedDate" },
546
- { path: "participants.joinedInfo.joinedAt" }
539
+ { path: "participants.certificate.issuedDate" }
547
540
  ]
548
541
  },
549
542
  {
@@ -600,8 +593,7 @@ function bulkInviteToProgram(payload) {
600
593
  { path: "results.item.createdDate" },
601
594
  { path: "results.item.updatedDate" },
602
595
  { path: "results.item.lastActivityDate" },
603
- { path: "results.item.certificate.issuedDate" },
604
- { path: "results.item.joinedInfo.joinedAt" }
596
+ { path: "results.item.certificate.issuedDate" }
605
597
  ]
606
598
  },
607
599
  {
@@ -658,8 +650,7 @@ function bulkAddToProgram(payload) {
658
650
  { path: "results.item.createdDate" },
659
651
  { path: "results.item.updatedDate" },
660
652
  { path: "results.item.lastActivityDate" },
661
- { path: "results.item.certificate.issuedDate" },
662
- { path: "results.item.joinedInfo.joinedAt" }
653
+ { path: "results.item.certificate.issuedDate" }
663
654
  ]
664
655
  },
665
656
  {
@@ -695,8 +686,7 @@ function bulkApproveParticipant(payload) {
695
686
  { path: "results.item.createdDate" },
696
687
  { path: "results.item.updatedDate" },
697
688
  { path: "results.item.lastActivityDate" },
698
- { path: "results.item.certificate.issuedDate" },
699
- { path: "results.item.joinedInfo.joinedAt" }
689
+ { path: "results.item.certificate.issuedDate" }
700
690
  ]
701
691
  },
702
692
  {