@wix/auto_sdk_online-programs_participants 1.0.5 → 1.0.7
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 -11
- package/build/cjs/index.js +43 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -1
- package/build/cjs/index.typings.js +27 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +8 -11
- package/build/es/index.mjs +43 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -1
- package/build/es/index.typings.mjs +25 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +8 -11
- package/build/internal/cjs/index.js +43 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -1
- package/build/internal/cjs/index.typings.js +27 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +8 -11
- package/build/internal/es/index.mjs +43 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -1
- package/build/internal/es/index.typings.mjs +25 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1087,6 +1087,12 @@ interface ParticipantsQueryBuilder {
|
|
|
1087
1087
|
/** @documentationMaturity preview */
|
|
1088
1088
|
find: () => Promise<ParticipantsQueryResult>;
|
|
1089
1089
|
}
|
|
1090
|
+
/**
|
|
1091
|
+
* @hidden
|
|
1092
|
+
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants
|
|
1093
|
+
* @requiredField query
|
|
1094
|
+
*/
|
|
1095
|
+
declare function typedQueryParticipants(query: CursorQuery): Promise<NonNullablePaths<QueryParticipantsResponse, `participants` | `participants.${number}.memberId` | `participants.${number}.programId` | `participants.${number}.progress.totalStepsCompleted` | `participants.${number}.progress.totalStepsAvailable` | `participants.${number}.progress.completionPercentage` | `participants.${number}.state` | `participants.${number}.joinedInfo.timeZone` | `participants.${number}.joinedInfo.startDate` | `participants.${number}.joinedInfo.joinPath` | `participants.${number}.member.contactId`, 5>>;
|
|
1090
1096
|
/**
|
|
1091
1097
|
* Get access status
|
|
1092
1098
|
* @public
|
|
@@ -1208,4 +1214,4 @@ interface BulkApproveAllParticipantOptions {
|
|
|
1208
1214
|
excludeParticipantIds?: string[];
|
|
1209
1215
|
}
|
|
1210
1216
|
|
|
1211
|
-
export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type Behavior, type BehaviorBehaviorOneOf, type Benefit, type BenefitNotification, BenefitType, type BenefitTypeWithLiterals, type BulkActionMetadata, type BulkAddAllToProgramOptions, type BulkAddAllToProgramRequest, type BulkAddAllToProgramResponse, type BulkAddToProgramOptions, type BulkAddToProgramRequest, type BulkAddToProgramResponse, type BulkAddToProgramResult, type BulkApproveAllParticipantOptions, type BulkApproveAllParticipantRequest, type BulkApproveAllParticipantResponse, type BulkApproveParticipantOptions, type BulkApproveParticipantRequest, type BulkApproveParticipantResponse, type BulkApproveParticipantResult, type BulkCreateParticipantOptions, type BulkCreateParticipantRequest, type BulkCreateParticipantResponse, type BulkInviteAllToProgramOptions, type BulkInviteAllToProgramRequest, type BulkInviteAllToProgramResponse, type BulkInviteToProgramOptions, type BulkInviteToProgramRequest, type BulkInviteToProgramResponse, type BulkInviteToProgramResult, type BulkParticipantResult, type Certificate, type CommonBulkActionMetadata, type CommonItemMetadata, type CreateParticipantRequest, type CreateParticipantResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteParticipantRequest, type DeleteParticipantResponse, type Discount, type DiscountDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntryPass, Event, type EventMetadata, type EventWithLiterals, type ExportParticipantsStatsRequest, type ExportParticipantsStatsResponse, type ExtendedFields, type GetAccessStatusRequest, type GetAccessStatusResponse, type GetCompletionStatsRequest, type GetCompletionStatsResponse, type GetParticipantRequest, type GetParticipantResponse, type GetPremiumStatsRequest, type GetPremiumStatsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IssueCertificateRequest, type IssueCertificateResponse, type ItemMetadata, JoinPath, type JoinPathWithLiterals, type JoinedInfo, type Member, type MessageEnvelope, type Participant, type ParticipantAdded, type ParticipantAddedEnvelope, type ParticipantApproved, type ParticipantApprovedEnvelope, type ParticipantExportsFinished, type ParticipantInvited, type ParticipantInvitedEnvelope, type ParticipantsQueryBuilder, type ParticipantsQueryResult, type PaymentInfo, type Progress, type QueryParticipantsRequest, type QueryParticipantsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, createParticipant, deleteParticipant, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, onParticipantAdded, onParticipantApproved, onParticipantInvited, queryParticipants };
|
|
1217
|
+
export { type ActionEvent, type ApplicationError, type BaseEventMetadata, type Behavior, type BehaviorBehaviorOneOf, type Benefit, type BenefitNotification, BenefitType, type BenefitTypeWithLiterals, type BulkActionMetadata, type BulkAddAllToProgramOptions, type BulkAddAllToProgramRequest, type BulkAddAllToProgramResponse, type BulkAddToProgramOptions, type BulkAddToProgramRequest, type BulkAddToProgramResponse, type BulkAddToProgramResult, type BulkApproveAllParticipantOptions, type BulkApproveAllParticipantRequest, type BulkApproveAllParticipantResponse, type BulkApproveParticipantOptions, type BulkApproveParticipantRequest, type BulkApproveParticipantResponse, type BulkApproveParticipantResult, type BulkCreateParticipantOptions, type BulkCreateParticipantRequest, type BulkCreateParticipantResponse, type BulkInviteAllToProgramOptions, type BulkInviteAllToProgramRequest, type BulkInviteAllToProgramResponse, type BulkInviteToProgramOptions, type BulkInviteToProgramRequest, type BulkInviteToProgramResponse, type BulkInviteToProgramResult, type BulkParticipantResult, type Certificate, type CommonBulkActionMetadata, type CommonItemMetadata, type CreateParticipantRequest, type CreateParticipantResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type DeleteParticipantRequest, type DeleteParticipantResponse, type Discount, type DiscountDiscountOneOf, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EntryPass, Event, type EventMetadata, type EventWithLiterals, type ExportParticipantsStatsRequest, type ExportParticipantsStatsResponse, type ExtendedFields, type GetAccessStatusRequest, type GetAccessStatusResponse, type GetCompletionStatsRequest, type GetCompletionStatsResponse, type GetParticipantRequest, type GetParticipantResponse, type GetPremiumStatsRequest, type GetPremiumStatsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IssueCertificateRequest, type IssueCertificateResponse, type ItemMetadata, JoinPath, type JoinPathWithLiterals, type JoinedInfo, type Member, type MessageEnvelope, type Participant, type ParticipantAdded, type ParticipantAddedEnvelope, type ParticipantApproved, type ParticipantApprovedEnvelope, type ParticipantExportsFinished, type ParticipantInvited, type ParticipantInvitedEnvelope, type ParticipantsQueryBuilder, type ParticipantsQueryResult, type PaymentInfo, type Progress, type QueryParticipantsRequest, type QueryParticipantsResponse, type RestoreInfo, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkAddAllToProgram, bulkAddToProgram, bulkApproveAllParticipant, bulkApproveParticipant, bulkCreateParticipant, bulkInviteAllToProgram, bulkInviteToProgram, createParticipant, deleteParticipant, getAccessStatus, getCompletionStats, getParticipant, getPremiumStats, issueCertificate, onParticipantAdded, onParticipantApproved, onParticipantInvited, queryParticipants, typedQueryParticipants };
|
|
@@ -1010,6 +1010,29 @@ function queryParticipants2() {
|
|
|
1010
1010
|
transformationPaths: {}
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
|
+
async function typedQueryParticipants(query) {
|
|
1014
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1015
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1016
|
+
const reqOpts = queryParticipants(payload);
|
|
1017
|
+
sideEffects?.onSiteCall?.();
|
|
1018
|
+
try {
|
|
1019
|
+
const result = await httpClient.request(reqOpts);
|
|
1020
|
+
sideEffects?.onSuccess?.(result);
|
|
1021
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1022
|
+
} catch (err) {
|
|
1023
|
+
const transformedError = sdkTransformError(
|
|
1024
|
+
err,
|
|
1025
|
+
{
|
|
1026
|
+
spreadPathsToArguments: {},
|
|
1027
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1028
|
+
singleArgumentUnchanged: false
|
|
1029
|
+
},
|
|
1030
|
+
["query"]
|
|
1031
|
+
);
|
|
1032
|
+
sideEffects?.onError?.(err);
|
|
1033
|
+
throw transformedError;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1013
1036
|
async function getAccessStatus2() {
|
|
1014
1037
|
const { httpClient, sideEffects } = arguments[0];
|
|
1015
1038
|
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
@@ -1230,6 +1253,7 @@ export {
|
|
|
1230
1253
|
getParticipant2 as getParticipant,
|
|
1231
1254
|
getPremiumStats2 as getPremiumStats,
|
|
1232
1255
|
issueCertificate2 as issueCertificate,
|
|
1233
|
-
queryParticipants2 as queryParticipants
|
|
1256
|
+
queryParticipants2 as queryParticipants,
|
|
1257
|
+
typedQueryParticipants
|
|
1234
1258
|
};
|
|
1235
1259
|
//# sourceMappingURL=index.typings.mjs.map
|