@wix/auto_sdk_online-programs_participants 1.0.7 → 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.
- package/build/cjs/index.d.ts +8 -6
- package/build/cjs/index.js +10 -20
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +53 -25
- package/build/cjs/index.typings.js +10 -20
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -21
- package/build/cjs/meta.js +10 -20
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +8 -6
- package/build/es/index.mjs +10 -20
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +53 -25
- package/build/es/index.typings.mjs +10 -20
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -21
- package/build/es/meta.mjs +10 -20
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -6
- package/build/internal/cjs/index.js +10 -20
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +53 -25
- package/build/internal/cjs/index.typings.js +10 -20
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -21
- package/build/internal/cjs/meta.js +10 -20
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -6
- package/build/internal/es/index.mjs +10 -20
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +53 -25
- package/build/internal/es/index.typings.mjs +10 -20
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -21
- package/build/internal/es/meta.mjs +10 -20
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -33,11 +33,11 @@ interface Participant {
|
|
|
33
33
|
progress?: Progress;
|
|
34
34
|
/** state of participation in the program */
|
|
35
35
|
state?: StateWithLiterals;
|
|
36
|
-
/**
|
|
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
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* @format LOCAL_DATE
|
|
126
|
+
* @readonly
|
|
127
|
+
*/
|
|
115
128
|
startDate?: string;
|
|
116
129
|
joinPath?: JoinPathWithLiterals;
|
|
117
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* @format LOCAL_DATE
|
|
132
|
+
* @readonly
|
|
133
|
+
*/
|
|
118
134
|
finishDate?: string | null;
|
|
119
|
-
|
|
120
|
-
|
|
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
|
|
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 };
|
|
@@ -211,8 +211,7 @@ function createParticipant(payload) {
|
|
|
211
211
|
{ path: "participant.createdDate" },
|
|
212
212
|
{ path: "participant.updatedDate" },
|
|
213
213
|
{ path: "participant.lastActivityDate" },
|
|
214
|
-
{ path: "participant.certificate.issuedDate" }
|
|
215
|
-
{ path: "participant.joinedInfo.joinedAt" }
|
|
214
|
+
{ path: "participant.certificate.issuedDate" }
|
|
216
215
|
]
|
|
217
216
|
},
|
|
218
217
|
{
|
|
@@ -241,8 +240,7 @@ function createParticipant(payload) {
|
|
|
241
240
|
{ path: "participant.createdDate" },
|
|
242
241
|
{ path: "participant.updatedDate" },
|
|
243
242
|
{ path: "participant.lastActivityDate" },
|
|
244
|
-
{ path: "participant.certificate.issuedDate" }
|
|
245
|
-
{ path: "participant.joinedInfo.joinedAt" }
|
|
243
|
+
{ path: "participant.certificate.issuedDate" }
|
|
246
244
|
]
|
|
247
245
|
},
|
|
248
246
|
{
|
|
@@ -264,8 +262,7 @@ function bulkCreateParticipant(payload) {
|
|
|
264
262
|
{ path: "participants.createdDate" },
|
|
265
263
|
{ path: "participants.updatedDate" },
|
|
266
264
|
{ path: "participants.lastActivityDate" },
|
|
267
|
-
{ path: "participants.certificate.issuedDate" }
|
|
268
|
-
{ path: "participants.joinedInfo.joinedAt" }
|
|
265
|
+
{ path: "participants.certificate.issuedDate" }
|
|
269
266
|
]
|
|
270
267
|
},
|
|
271
268
|
{
|
|
@@ -294,8 +291,7 @@ function bulkCreateParticipant(payload) {
|
|
|
294
291
|
{ path: "results.item.createdDate" },
|
|
295
292
|
{ path: "results.item.updatedDate" },
|
|
296
293
|
{ path: "results.item.lastActivityDate" },
|
|
297
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
298
|
-
{ path: "results.item.joinedInfo.joinedAt" }
|
|
294
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
299
295
|
]
|
|
300
296
|
},
|
|
301
297
|
{
|
|
@@ -373,8 +369,7 @@ function issueCertificate(payload) {
|
|
|
373
369
|
{ path: "participant.createdDate" },
|
|
374
370
|
{ path: "participant.updatedDate" },
|
|
375
371
|
{ path: "participant.lastActivityDate" },
|
|
376
|
-
{ path: "participant.certificate.issuedDate" }
|
|
377
|
-
{ path: "participant.joinedInfo.joinedAt" }
|
|
372
|
+
{ path: "participant.certificate.issuedDate" }
|
|
378
373
|
]
|
|
379
374
|
},
|
|
380
375
|
{
|
|
@@ -458,8 +453,7 @@ function getParticipant(payload) {
|
|
|
458
453
|
{ path: "participant.createdDate" },
|
|
459
454
|
{ path: "participant.updatedDate" },
|
|
460
455
|
{ path: "participant.lastActivityDate" },
|
|
461
|
-
{ path: "participant.certificate.issuedDate" }
|
|
462
|
-
{ path: "participant.joinedInfo.joinedAt" }
|
|
456
|
+
{ path: "participant.certificate.issuedDate" }
|
|
463
457
|
]
|
|
464
458
|
},
|
|
465
459
|
{
|
|
@@ -495,8 +489,7 @@ function queryParticipants(payload) {
|
|
|
495
489
|
{ path: "participants.createdDate" },
|
|
496
490
|
{ path: "participants.updatedDate" },
|
|
497
491
|
{ path: "participants.lastActivityDate" },
|
|
498
|
-
{ path: "participants.certificate.issuedDate" }
|
|
499
|
-
{ path: "participants.joinedInfo.joinedAt" }
|
|
492
|
+
{ path: "participants.certificate.issuedDate" }
|
|
500
493
|
]
|
|
501
494
|
},
|
|
502
495
|
{
|
|
@@ -553,8 +546,7 @@ function bulkInviteToProgram(payload) {
|
|
|
553
546
|
{ path: "results.item.createdDate" },
|
|
554
547
|
{ path: "results.item.updatedDate" },
|
|
555
548
|
{ path: "results.item.lastActivityDate" },
|
|
556
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
557
|
-
{ path: "results.item.joinedInfo.joinedAt" }
|
|
549
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
558
550
|
]
|
|
559
551
|
},
|
|
560
552
|
{
|
|
@@ -611,8 +603,7 @@ function bulkAddToProgram(payload) {
|
|
|
611
603
|
{ path: "results.item.createdDate" },
|
|
612
604
|
{ path: "results.item.updatedDate" },
|
|
613
605
|
{ path: "results.item.lastActivityDate" },
|
|
614
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
615
|
-
{ path: "results.item.joinedInfo.joinedAt" }
|
|
606
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
616
607
|
]
|
|
617
608
|
},
|
|
618
609
|
{
|
|
@@ -648,8 +639,7 @@ function bulkApproveParticipant(payload) {
|
|
|
648
639
|
{ path: "results.item.createdDate" },
|
|
649
640
|
{ path: "results.item.updatedDate" },
|
|
650
641
|
{ path: "results.item.lastActivityDate" },
|
|
651
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
652
|
-
{ path: "results.item.joinedInfo.joinedAt" }
|
|
642
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
653
643
|
]
|
|
654
644
|
},
|
|
655
645
|
{
|