@wix/auto_sdk_online-programs_participants 1.0.27 → 1.0.29
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 +2 -2
- package/build/cjs/index.js +127 -184
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +76 -105
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +76 -105
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-participants-v3-participant-participants.universal-4mwuoF9u.d.ts → online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.d.ts} +1 -0
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +127 -184
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +76 -105
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs +76 -105
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-participants-v3-participant-participants.universal-4mwuoF9u.d.mts → online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.d.mts} +1 -0
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/{online-programs-participants-v3-participant-participants.universal-DvaAPYcT.d.ts → online-programs-participants-v3-participant-participants.universal-02Rnv8b6.d.ts} +1 -0
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/{online-programs-participants-v3-participant-participants.universal-DvaAPYcT.d.mts → online-programs-participants-v3-participant-participants.universal-02Rnv8b6.d.mts} +1 -0
- package/package.json +2 -2
|
@@ -2115,6 +2115,7 @@ interface IssueCertificateOptions {
|
|
|
2115
2115
|
* @requiredField participantId
|
|
2116
2116
|
* @permissionId online_programs:participants:v3:participant:get_certificate_download_url
|
|
2117
2117
|
* @applicableIdentity APP
|
|
2118
|
+
* @applicableIdentity MEMBER
|
|
2118
2119
|
* @fqn wix.onlineprograms.participants.v3.ParticipantsService.GetCertificateDownloadUrl
|
|
2119
2120
|
*/
|
|
2120
2121
|
declare function getCertificateDownloadUrl(participantId: string): Promise<NonNullablePaths<GetCertificateDownloadUrlResponse, `downloadUrl`, 0> & {
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { P as Participant, C as CreateParticipantOptions, a as CreateParticipantApplicationErrors, U as UpdateParticipant, b as UpdateParticipantOptions, B as BulkCreateParticipantsOptions, c as BulkCreateParticipantsResponse, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, f as BulkCreateParticipantsForAllMembersResponse, I as IssueCertificateOptions, g as IssueCertificateResponse, h as IssueCertificateApplicationErrors, G as GetCertificateDownloadUrlResponse, i as GetCertificateDownloadUrlApplicationErrors, j as GetPremiumStatsResponse, k as GetParticipationStatsResponse, l as GetParticipantOptions, m as GetAccessStatusResponse, n as BulkUpdateParticipantTagsOptions, o as BulkUpdateParticipantTagsResponse, p as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterOptions, r as BulkUpdateParticipantTagsByFilterResponse, s as BulkUpdateParticipantTagsByFilterApplicationErrors, t as ParticipantSearch, S as SearchParticipantsOptions, u as SearchParticipantsResponse, v as ParticipantCompletedProgramEnvelope, w as ParticipantCreatedEnvelope, x as ParticipantDeletedEnvelope, y as ParticipantLeftEnvelope, z as ParticipantMissedProgramDeadlineEnvelope, A as ParticipantProgramDurationEndedEnvelope, D as ParticipantRemovedEnvelope, E as ParticipantTagsModifiedEnvelope, F as ParticipantUpdatedEnvelope, H as ParticipantQuery, Q as QueryParticipantsOptions, J as typedQueryParticipants, K as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-
|
|
3
|
-
export { bT as AccountInfo, bY as AccountInfoMetadata, bO as ActionEvent, b7 as Aggregation, bn as AggregationData, b8 as AggregationKindOneOf, bG as AggregationResults, bH as AggregationResultsResultOneOf, bu as AggregationResultsScalarResult, $ as AggregationType, cd as AggregationTypeWithLiterals, av as ApplicationError, bW as BaseEventMetadata, aw as BulkActionMetadata, O as BulkActionType, c5 as BulkActionTypeWithLiterals, aH as BulkCreateParticipantsForAllMembersRequest, as as BulkCreateParticipantsRequest, aA as BulkParticipantMigrationResult, at as BulkParticipantResult, b3 as BulkUpdateParticipantTagsByFilterRequest, b1 as BulkUpdateParticipantTagsRequest, b2 as BulkUpdateParticipantTagsResult, ax as BulkUpsertParticipantsMigrationRequest, az as BulkUpsertParticipantsMigrationResponse, a6 as CertificateInfo, cg as CommonQueryWithEntityContext, ch as CommonSearchWithEntityContext, ao as CreateParticipantRequest, ap as CreateParticipantResponse, aY as CursorPaging, bm as CursorPagingMetadata, b5 as CursorSearch, b6 as CursorSearchPagingMethodOneOf, a$ as Cursors, bf as DateHistogramAggregation, bC as DateHistogramResult, bE as DateHistogramResults, ag as Delete, aB as DeleteAllParticipantsMigrationRequest, aC as DeleteAllParticipantsMigrationResponse, aI as DeleteParticipantRequest, aJ as DeleteParticipantResponse, bI as DomainEvent, bJ as DomainEventBodyOneOf, bP as Empty, a8 as EnrollmentInfo, a9 as EnrollmentInfoPricingTypeDetailsOneOf, M as EnrollmentStatus, c2 as EnrollmentStatusWithLiterals, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, bX as EventMetadata, bU as ExportParticipantsStatsRequest, bV as ExportParticipantsStatsResponse, aa as ExtendedFields, a4 as FreeCouponDetails, b0 as GetAccessStatusRequest, aL as GetCertificateDownloadUrlRequest, aM as GetCompletionStatsRequest, aN as GetCompletionStatsResponse, aR as GetParticipantRequest, aS as GetParticipantResponse, aP as GetParticipationStatsRequest, aO as GetPremiumStatsRequest, bj as GroupByAggregation, bk as GroupByAggregationKindOneOf, bD as GroupByValueResults, bR as IdentificationData, bS as IdentificationDataIdOneOf, ba as IncludeMissingValuesOptions, _ as Interval, cc as IntervalWithLiterals, aK as IssueCertificateRequest, au as ItemMetadata, a7 as Member, bQ as MessageEnvelope, X as MissingValues, c9 as MissingValuesWithLiterals, a0 as Mode, ce as ModeWithLiterals, bi as NestedAggregation, bg as NestedAggregationItem, bh as NestedAggregationItemKindOneOf, bq as NestedAggregationResults, br as NestedAggregationResultsResultOneOf, Z as NestedAggregationType, cb as NestedAggregationTypeWithLiterals, bz as NestedResultValue, bA as NestedResultValueResultOneOf, bF as NestedResults, bv as NestedValueAggregationResult, aX as Paging, a_ as PagingMetadataV2, a3 as PaidPlanDetails, aj as ParticipantCompletedProgram, an as ParticipantLeft, ay as ParticipantMigration, ak as ParticipantMissedProgramDeadline, al as ParticipantProgramDurationEnded, b_ as ParticipantQuerySpec, am as ParticipantRemoved, b$ as ParticipantSearchSpec, ai as ParticipantTagsModified, bZ as ParticipantsQueryResult, L as PricingType, c1 as PricingTypeWithLiterals, aQ as ProgramParticipationStats, a5 as Progress, N as ProgressStatus, c3 as ProgressStatusWithLiterals, aT as QueryParticipantsRequest, aZ as QueryParticipantsResponse, aU as QueryV2, aV as QueryV2PagingMethodOneOf, bd as RangeAggregation, bp as RangeAggregationResult, b9 as RangeBucket, bx as RangeResult, bt as RangeResults, ad as ReindexMessage, ae as ReindexMessageActionOneOf, aD as ReindexParticipantsSearchRequest, aE as ReindexParticipantsSearchResponse, R as RequestedFields, c4 as RequestedFieldsWithLiterals, bL as RestoreInfo, bB as Results, be as ScalarAggregation, by as ScalarResult, Y as ScalarType, ca as ScalarTypeWithLiterals, ah as Schema, bl as SearchDetails, b4 as SearchParticipantsRequest, a2 as SinglePaymentDetails, W as SortDirection, c8 as SortDirectionWithLiterals, T as SortOrder, c6 as SortOrderWithLiterals, V as SortType, c7 as SortTypeWithLiterals, aW as Sorting, aF as SynchronizeTimeCapsuleTasksRequest, aG as SynchronizeTimeCapsuleTasksResponse, ac as TagList, ab as Tags, aq as UpdateParticipantRequest, ar as UpdateParticipantResponse, af as Upsert, bb as ValueAggregation, bc as ValueAggregationOptionsOneOf, bo as ValueAggregationResult, bw as ValueResult, bs as ValueResults, a1 as WebhookIdentityType, cf as WebhookIdentityTypeWithLiterals, c0 as utils } from './online-programs-participants-v3-participant-participants.universal-
|
|
2
|
+
import { P as Participant, C as CreateParticipantOptions, a as CreateParticipantApplicationErrors, U as UpdateParticipant, b as UpdateParticipantOptions, B as BulkCreateParticipantsOptions, c as BulkCreateParticipantsResponse, d as BulkCreateParticipantsApplicationErrors, e as BulkCreateParticipantsForAllMembersOptions, f as BulkCreateParticipantsForAllMembersResponse, I as IssueCertificateOptions, g as IssueCertificateResponse, h as IssueCertificateApplicationErrors, G as GetCertificateDownloadUrlResponse, i as GetCertificateDownloadUrlApplicationErrors, j as GetPremiumStatsResponse, k as GetParticipationStatsResponse, l as GetParticipantOptions, m as GetAccessStatusResponse, n as BulkUpdateParticipantTagsOptions, o as BulkUpdateParticipantTagsResponse, p as BulkUpdateParticipantTagsApplicationErrors, q as BulkUpdateParticipantTagsByFilterOptions, r as BulkUpdateParticipantTagsByFilterResponse, s as BulkUpdateParticipantTagsByFilterApplicationErrors, t as ParticipantSearch, S as SearchParticipantsOptions, u as SearchParticipantsResponse, v as ParticipantCompletedProgramEnvelope, w as ParticipantCreatedEnvelope, x as ParticipantDeletedEnvelope, y as ParticipantLeftEnvelope, z as ParticipantMissedProgramDeadlineEnvelope, A as ParticipantProgramDurationEndedEnvelope, D as ParticipantRemovedEnvelope, E as ParticipantTagsModifiedEnvelope, F as ParticipantUpdatedEnvelope, H as ParticipantQuery, Q as QueryParticipantsOptions, J as typedQueryParticipants, K as ParticipantsQueryBuilder } from './online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.mjs';
|
|
3
|
+
export { bT as AccountInfo, bY as AccountInfoMetadata, bO as ActionEvent, b7 as Aggregation, bn as AggregationData, b8 as AggregationKindOneOf, bG as AggregationResults, bH as AggregationResultsResultOneOf, bu as AggregationResultsScalarResult, $ as AggregationType, cd as AggregationTypeWithLiterals, av as ApplicationError, bW as BaseEventMetadata, aw as BulkActionMetadata, O as BulkActionType, c5 as BulkActionTypeWithLiterals, aH as BulkCreateParticipantsForAllMembersRequest, as as BulkCreateParticipantsRequest, aA as BulkParticipantMigrationResult, at as BulkParticipantResult, b3 as BulkUpdateParticipantTagsByFilterRequest, b1 as BulkUpdateParticipantTagsRequest, b2 as BulkUpdateParticipantTagsResult, ax as BulkUpsertParticipantsMigrationRequest, az as BulkUpsertParticipantsMigrationResponse, a6 as CertificateInfo, cg as CommonQueryWithEntityContext, ch as CommonSearchWithEntityContext, ao as CreateParticipantRequest, ap as CreateParticipantResponse, aY as CursorPaging, bm as CursorPagingMetadata, b5 as CursorSearch, b6 as CursorSearchPagingMethodOneOf, a$ as Cursors, bf as DateHistogramAggregation, bC as DateHistogramResult, bE as DateHistogramResults, ag as Delete, aB as DeleteAllParticipantsMigrationRequest, aC as DeleteAllParticipantsMigrationResponse, aI as DeleteParticipantRequest, aJ as DeleteParticipantResponse, bI as DomainEvent, bJ as DomainEventBodyOneOf, bP as Empty, a8 as EnrollmentInfo, a9 as EnrollmentInfoPricingTypeDetailsOneOf, M as EnrollmentStatus, c2 as EnrollmentStatusWithLiterals, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, bX as EventMetadata, bU as ExportParticipantsStatsRequest, bV as ExportParticipantsStatsResponse, aa as ExtendedFields, a4 as FreeCouponDetails, b0 as GetAccessStatusRequest, aL as GetCertificateDownloadUrlRequest, aM as GetCompletionStatsRequest, aN as GetCompletionStatsResponse, aR as GetParticipantRequest, aS as GetParticipantResponse, aP as GetParticipationStatsRequest, aO as GetPremiumStatsRequest, bj as GroupByAggregation, bk as GroupByAggregationKindOneOf, bD as GroupByValueResults, bR as IdentificationData, bS as IdentificationDataIdOneOf, ba as IncludeMissingValuesOptions, _ as Interval, cc as IntervalWithLiterals, aK as IssueCertificateRequest, au as ItemMetadata, a7 as Member, bQ as MessageEnvelope, X as MissingValues, c9 as MissingValuesWithLiterals, a0 as Mode, ce as ModeWithLiterals, bi as NestedAggregation, bg as NestedAggregationItem, bh as NestedAggregationItemKindOneOf, bq as NestedAggregationResults, br as NestedAggregationResultsResultOneOf, Z as NestedAggregationType, cb as NestedAggregationTypeWithLiterals, bz as NestedResultValue, bA as NestedResultValueResultOneOf, bF as NestedResults, bv as NestedValueAggregationResult, aX as Paging, a_ as PagingMetadataV2, a3 as PaidPlanDetails, aj as ParticipantCompletedProgram, an as ParticipantLeft, ay as ParticipantMigration, ak as ParticipantMissedProgramDeadline, al as ParticipantProgramDurationEnded, b_ as ParticipantQuerySpec, am as ParticipantRemoved, b$ as ParticipantSearchSpec, ai as ParticipantTagsModified, bZ as ParticipantsQueryResult, L as PricingType, c1 as PricingTypeWithLiterals, aQ as ProgramParticipationStats, a5 as Progress, N as ProgressStatus, c3 as ProgressStatusWithLiterals, aT as QueryParticipantsRequest, aZ as QueryParticipantsResponse, aU as QueryV2, aV as QueryV2PagingMethodOneOf, bd as RangeAggregation, bp as RangeAggregationResult, b9 as RangeBucket, bx as RangeResult, bt as RangeResults, ad as ReindexMessage, ae as ReindexMessageActionOneOf, aD as ReindexParticipantsSearchRequest, aE as ReindexParticipantsSearchResponse, R as RequestedFields, c4 as RequestedFieldsWithLiterals, bL as RestoreInfo, bB as Results, be as ScalarAggregation, by as ScalarResult, Y as ScalarType, ca as ScalarTypeWithLiterals, ah as Schema, bl as SearchDetails, b4 as SearchParticipantsRequest, a2 as SinglePaymentDetails, W as SortDirection, c8 as SortDirectionWithLiterals, T as SortOrder, c6 as SortOrderWithLiterals, V as SortType, c7 as SortTypeWithLiterals, aW as Sorting, aF as SynchronizeTimeCapsuleTasksRequest, aG as SynchronizeTimeCapsuleTasksResponse, ac as TagList, ab as Tags, aq as UpdateParticipantRequest, ar as UpdateParticipantResponse, af as Upsert, bb as ValueAggregation, bc as ValueAggregationOptionsOneOf, bo as ValueAggregationResult, bw as ValueResult, bs as ValueResults, a1 as WebhookIdentityType, cf as WebhookIdentityTypeWithLiterals, c0 as utils } from './online-programs-participants-v3-participant-participants.universal-BrdlJaIZ.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createParticipant$1(httpClient: HttpClient): CreateParticipantSignature;
|
|
6
6
|
interface CreateParticipantSignature {
|
package/build/es/index.mjs
CHANGED
|
@@ -22,6 +22,59 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
22
22
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
23
23
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
24
24
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
25
|
+
var TRANSFORM_PATHS_0 = [
|
|
26
|
+
{ path: "participant.createdDate" },
|
|
27
|
+
{ path: "participant.updatedDate" },
|
|
28
|
+
{ path: "participant.lastActivityDate" },
|
|
29
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
30
|
+
];
|
|
31
|
+
var TRANSFORM_PATHS_1 = [
|
|
32
|
+
{ path: "participant.progress.completionPercentage" }
|
|
33
|
+
];
|
|
34
|
+
var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
|
|
35
|
+
var TRANSFORM_PATHS_3 = [
|
|
36
|
+
{ path: "participants.createdDate" },
|
|
37
|
+
{ path: "participants.updatedDate" },
|
|
38
|
+
{ path: "participants.lastActivityDate" },
|
|
39
|
+
{ path: "participants.certificateInfo.issueDate" }
|
|
40
|
+
];
|
|
41
|
+
var TRANSFORM_PATHS_4 = [
|
|
42
|
+
{ path: "participants.progress.completionPercentage" }
|
|
43
|
+
];
|
|
44
|
+
var TRANSFORM_PATHS_5 = [
|
|
45
|
+
{ path: "results.item.createdDate" },
|
|
46
|
+
{ path: "results.item.updatedDate" },
|
|
47
|
+
{ path: "results.item.lastActivityDate" },
|
|
48
|
+
{ path: "results.item.certificateInfo.issueDate" }
|
|
49
|
+
];
|
|
50
|
+
var TRANSFORM_PATHS_6 = [
|
|
51
|
+
{ path: "results.item.progress.completionPercentage" }
|
|
52
|
+
];
|
|
53
|
+
var TRANSFORM_PATHS_7 = [{ path: "expirationDate" }];
|
|
54
|
+
var TRANSFORM_PATHS_8 = [
|
|
55
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
56
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
57
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
58
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
59
|
+
];
|
|
60
|
+
var TRANSFORM_PATHS_9 = [
|
|
61
|
+
{ path: "participants.progress.completionPercentage" },
|
|
62
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
63
|
+
{
|
|
64
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
65
|
+
},
|
|
66
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" },
|
|
67
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
68
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
69
|
+
{
|
|
70
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
74
|
+
},
|
|
75
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
76
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" }
|
|
77
|
+
];
|
|
25
78
|
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
26
79
|
const domainToMappings = {
|
|
27
80
|
"bo._base_domain_": [
|
|
@@ -202,16 +255,11 @@ function createParticipant(payload) {
|
|
|
202
255
|
const serializedData = transformPaths(payload, [
|
|
203
256
|
{
|
|
204
257
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
205
|
-
paths:
|
|
206
|
-
{ path: "participant.createdDate" },
|
|
207
|
-
{ path: "participant.updatedDate" },
|
|
208
|
-
{ path: "participant.lastActivityDate" },
|
|
209
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
210
|
-
]
|
|
258
|
+
paths: TRANSFORM_PATHS_0
|
|
211
259
|
},
|
|
212
260
|
{
|
|
213
261
|
transformFn: transformSDKFloatToRESTFloat,
|
|
214
|
-
paths:
|
|
262
|
+
paths: TRANSFORM_PATHS_1
|
|
215
263
|
}
|
|
216
264
|
]);
|
|
217
265
|
const metadata = {
|
|
@@ -231,16 +279,11 @@ function createParticipant(payload) {
|
|
|
231
279
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
232
280
|
{
|
|
233
281
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
234
|
-
paths:
|
|
235
|
-
{ path: "participant.createdDate" },
|
|
236
|
-
{ path: "participant.updatedDate" },
|
|
237
|
-
{ path: "participant.lastActivityDate" },
|
|
238
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
239
|
-
]
|
|
282
|
+
paths: TRANSFORM_PATHS_0
|
|
240
283
|
},
|
|
241
284
|
{
|
|
242
285
|
transformFn: transformRESTFloatToSDKFloat,
|
|
243
|
-
paths:
|
|
286
|
+
paths: TRANSFORM_PATHS_1
|
|
244
287
|
}
|
|
245
288
|
])
|
|
246
289
|
};
|
|
@@ -253,20 +296,15 @@ function updateParticipant(payload) {
|
|
|
253
296
|
const serializedData = transformPaths(payload, [
|
|
254
297
|
{
|
|
255
298
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
256
|
-
paths:
|
|
299
|
+
paths: TRANSFORM_PATHS_2
|
|
257
300
|
},
|
|
258
301
|
{
|
|
259
302
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
260
|
-
paths:
|
|
261
|
-
{ path: "participant.createdDate" },
|
|
262
|
-
{ path: "participant.updatedDate" },
|
|
263
|
-
{ path: "participant.lastActivityDate" },
|
|
264
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
265
|
-
]
|
|
303
|
+
paths: TRANSFORM_PATHS_0
|
|
266
304
|
},
|
|
267
305
|
{
|
|
268
306
|
transformFn: transformSDKFloatToRESTFloat,
|
|
269
|
-
paths:
|
|
307
|
+
paths: TRANSFORM_PATHS_1
|
|
270
308
|
}
|
|
271
309
|
]);
|
|
272
310
|
const metadata = {
|
|
@@ -286,16 +324,11 @@ function updateParticipant(payload) {
|
|
|
286
324
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
287
325
|
{
|
|
288
326
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
289
|
-
paths:
|
|
290
|
-
{ path: "participant.createdDate" },
|
|
291
|
-
{ path: "participant.updatedDate" },
|
|
292
|
-
{ path: "participant.lastActivityDate" },
|
|
293
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
294
|
-
]
|
|
327
|
+
paths: TRANSFORM_PATHS_0
|
|
295
328
|
},
|
|
296
329
|
{
|
|
297
330
|
transformFn: transformRESTFloatToSDKFloat,
|
|
298
|
-
paths:
|
|
331
|
+
paths: TRANSFORM_PATHS_1
|
|
299
332
|
}
|
|
300
333
|
])
|
|
301
334
|
};
|
|
@@ -308,16 +341,11 @@ function bulkCreateParticipants(payload) {
|
|
|
308
341
|
const serializedData = transformPaths(payload, [
|
|
309
342
|
{
|
|
310
343
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
311
|
-
paths:
|
|
312
|
-
{ path: "participants.createdDate" },
|
|
313
|
-
{ path: "participants.updatedDate" },
|
|
314
|
-
{ path: "participants.lastActivityDate" },
|
|
315
|
-
{ path: "participants.certificateInfo.issueDate" }
|
|
316
|
-
]
|
|
344
|
+
paths: TRANSFORM_PATHS_3
|
|
317
345
|
},
|
|
318
346
|
{
|
|
319
347
|
transformFn: transformSDKFloatToRESTFloat,
|
|
320
|
-
paths:
|
|
348
|
+
paths: TRANSFORM_PATHS_4
|
|
321
349
|
}
|
|
322
350
|
]);
|
|
323
351
|
const metadata = {
|
|
@@ -337,16 +365,11 @@ function bulkCreateParticipants(payload) {
|
|
|
337
365
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
338
366
|
{
|
|
339
367
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
340
|
-
paths:
|
|
341
|
-
{ path: "results.item.createdDate" },
|
|
342
|
-
{ path: "results.item.updatedDate" },
|
|
343
|
-
{ path: "results.item.lastActivityDate" },
|
|
344
|
-
{ path: "results.item.certificateInfo.issueDate" }
|
|
345
|
-
]
|
|
368
|
+
paths: TRANSFORM_PATHS_5
|
|
346
369
|
},
|
|
347
370
|
{
|
|
348
371
|
transformFn: transformRESTFloatToSDKFloat,
|
|
349
|
-
paths:
|
|
372
|
+
paths: TRANSFORM_PATHS_6
|
|
350
373
|
}
|
|
351
374
|
])
|
|
352
375
|
};
|
|
@@ -415,16 +438,11 @@ function issueCertificate(payload) {
|
|
|
415
438
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
416
439
|
{
|
|
417
440
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
418
|
-
paths:
|
|
419
|
-
{ path: "participant.createdDate" },
|
|
420
|
-
{ path: "participant.updatedDate" },
|
|
421
|
-
{ path: "participant.lastActivityDate" },
|
|
422
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
423
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_0
|
|
424
442
|
},
|
|
425
443
|
{
|
|
426
444
|
transformFn: transformRESTFloatToSDKFloat,
|
|
427
|
-
paths:
|
|
445
|
+
paths: TRANSFORM_PATHS_1
|
|
428
446
|
}
|
|
429
447
|
])
|
|
430
448
|
};
|
|
@@ -451,7 +469,7 @@ function getCertificateDownloadUrl(payload) {
|
|
|
451
469
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
452
470
|
{
|
|
453
471
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
454
|
-
paths:
|
|
472
|
+
paths: TRANSFORM_PATHS_7
|
|
455
473
|
}
|
|
456
474
|
])
|
|
457
475
|
};
|
|
@@ -520,16 +538,11 @@ function getParticipant(payload) {
|
|
|
520
538
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
521
539
|
{
|
|
522
540
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
523
|
-
paths:
|
|
524
|
-
{ path: "participant.createdDate" },
|
|
525
|
-
{ path: "participant.updatedDate" },
|
|
526
|
-
{ path: "participant.lastActivityDate" },
|
|
527
|
-
{ path: "participant.certificateInfo.issueDate" }
|
|
528
|
-
]
|
|
541
|
+
paths: TRANSFORM_PATHS_0
|
|
529
542
|
},
|
|
530
543
|
{
|
|
531
544
|
transformFn: transformRESTFloatToSDKFloat,
|
|
532
|
-
paths:
|
|
545
|
+
paths: TRANSFORM_PATHS_1
|
|
533
546
|
}
|
|
534
547
|
])
|
|
535
548
|
};
|
|
@@ -556,16 +569,11 @@ function queryParticipants(payload) {
|
|
|
556
569
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
557
570
|
{
|
|
558
571
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
559
|
-
paths:
|
|
560
|
-
{ path: "participants.createdDate" },
|
|
561
|
-
{ path: "participants.updatedDate" },
|
|
562
|
-
{ path: "participants.lastActivityDate" },
|
|
563
|
-
{ path: "participants.certificateInfo.issueDate" }
|
|
564
|
-
]
|
|
572
|
+
paths: TRANSFORM_PATHS_3
|
|
565
573
|
},
|
|
566
574
|
{
|
|
567
575
|
transformFn: transformRESTFloatToSDKFloat,
|
|
568
|
-
paths:
|
|
576
|
+
paths: TRANSFORM_PATHS_4
|
|
569
577
|
}
|
|
570
578
|
])
|
|
571
579
|
};
|
|
@@ -641,16 +649,7 @@ function searchParticipants(payload) {
|
|
|
641
649
|
const serializedData = transformPaths(payload, [
|
|
642
650
|
{
|
|
643
651
|
transformFn: transformSDKFloatToRESTFloat,
|
|
644
|
-
paths:
|
|
645
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
646
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
647
|
-
{
|
|
648
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
652
|
-
}
|
|
653
|
-
]
|
|
652
|
+
paths: TRANSFORM_PATHS_8
|
|
654
653
|
}
|
|
655
654
|
]);
|
|
656
655
|
const metadata = {
|
|
@@ -670,39 +669,11 @@ function searchParticipants(payload) {
|
|
|
670
669
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
671
670
|
{
|
|
672
671
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
673
|
-
paths:
|
|
674
|
-
{ path: "participants.createdDate" },
|
|
675
|
-
{ path: "participants.updatedDate" },
|
|
676
|
-
{ path: "participants.lastActivityDate" },
|
|
677
|
-
{ path: "participants.certificateInfo.issueDate" }
|
|
678
|
-
]
|
|
672
|
+
paths: TRANSFORM_PATHS_3
|
|
679
673
|
},
|
|
680
674
|
{
|
|
681
675
|
transformFn: transformRESTFloatToSDKFloat,
|
|
682
|
-
paths:
|
|
683
|
-
{ path: "participants.progress.completionPercentage" },
|
|
684
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
685
|
-
{
|
|
686
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
690
|
-
},
|
|
691
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
692
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
693
|
-
{
|
|
694
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
704
|
-
}
|
|
705
|
-
]
|
|
676
|
+
paths: TRANSFORM_PATHS_9
|
|
706
677
|
}
|
|
707
678
|
])
|
|
708
679
|
};
|
|
@@ -1356,6 +1327,39 @@ async function exportParticipantsStats2(programId) {
|
|
|
1356
1327
|
}
|
|
1357
1328
|
|
|
1358
1329
|
// src/online-programs-participants-v3-participant-participants.public.ts
|
|
1330
|
+
var TRANSFORM_PATHS_02 = [
|
|
1331
|
+
{ path: "data.participant.createdDate" },
|
|
1332
|
+
{ path: "data.participant.updatedDate" },
|
|
1333
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1334
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1335
|
+
{ path: "metadata.eventTime" }
|
|
1336
|
+
];
|
|
1337
|
+
var TRANSFORM_PATHS_12 = [
|
|
1338
|
+
{ path: "data.participant.progress.completionPercentage" }
|
|
1339
|
+
];
|
|
1340
|
+
var TRANSFORM_PATHS_22 = [
|
|
1341
|
+
{ path: "entity.createdDate" },
|
|
1342
|
+
{ path: "entity.updatedDate" },
|
|
1343
|
+
{ path: "entity.lastActivityDate" },
|
|
1344
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1345
|
+
{ path: "metadata.eventTime" }
|
|
1346
|
+
];
|
|
1347
|
+
var TRANSFORM_PATHS_32 = [{ path: "entity.progress.completionPercentage" }];
|
|
1348
|
+
var TRANSFORM_PATHS_42 = [
|
|
1349
|
+
{ path: "entity.createdDate" },
|
|
1350
|
+
{ path: "entity.updatedDate" },
|
|
1351
|
+
{ path: "entity.lastActivityDate" },
|
|
1352
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1353
|
+
{ path: "metadata.eventTime" },
|
|
1354
|
+
{ path: "modifiedFields.createdDate" },
|
|
1355
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1356
|
+
{ path: "modifiedFields.lastActivityDate" },
|
|
1357
|
+
{ path: "modifiedFields.certificateInfo.issueDate" }
|
|
1358
|
+
];
|
|
1359
|
+
var TRANSFORM_PATHS_52 = [
|
|
1360
|
+
{ path: "entity.progress.completionPercentage" },
|
|
1361
|
+
{ path: "modifiedFields.progress.completionPercentage" }
|
|
1362
|
+
];
|
|
1359
1363
|
function createParticipant3(httpClient) {
|
|
1360
1364
|
return (participant, options) => createParticipant2(
|
|
1361
1365
|
participant,
|
|
@@ -1491,17 +1495,11 @@ var onParticipantCompletedProgram = /* @__PURE__ */ EventDefinition(
|
|
|
1491
1495
|
transformPaths3(event, [
|
|
1492
1496
|
{
|
|
1493
1497
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1494
|
-
paths:
|
|
1495
|
-
{ path: "data.participant.createdDate" },
|
|
1496
|
-
{ path: "data.participant.updatedDate" },
|
|
1497
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1498
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1499
|
-
{ path: "metadata.eventTime" }
|
|
1500
|
-
]
|
|
1498
|
+
paths: TRANSFORM_PATHS_02
|
|
1501
1499
|
},
|
|
1502
1500
|
{
|
|
1503
1501
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1504
|
-
paths:
|
|
1502
|
+
paths: TRANSFORM_PATHS_12
|
|
1505
1503
|
}
|
|
1506
1504
|
])
|
|
1507
1505
|
)
|
|
@@ -1513,17 +1511,11 @@ var onParticipantCreated = /* @__PURE__ */ EventDefinition(
|
|
|
1513
1511
|
transformPaths3(event, [
|
|
1514
1512
|
{
|
|
1515
1513
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1516
|
-
paths:
|
|
1517
|
-
{ path: "entity.createdDate" },
|
|
1518
|
-
{ path: "entity.updatedDate" },
|
|
1519
|
-
{ path: "entity.lastActivityDate" },
|
|
1520
|
-
{ path: "entity.certificateInfo.issueDate" },
|
|
1521
|
-
{ path: "metadata.eventTime" }
|
|
1522
|
-
]
|
|
1514
|
+
paths: TRANSFORM_PATHS_22
|
|
1523
1515
|
},
|
|
1524
1516
|
{
|
|
1525
1517
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1526
|
-
paths:
|
|
1518
|
+
paths: TRANSFORM_PATHS_32
|
|
1527
1519
|
}
|
|
1528
1520
|
])
|
|
1529
1521
|
)
|
|
@@ -1535,17 +1527,11 @@ var onParticipantDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
1535
1527
|
transformPaths3(event, [
|
|
1536
1528
|
{
|
|
1537
1529
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1538
|
-
paths:
|
|
1539
|
-
{ path: "entity.createdDate" },
|
|
1540
|
-
{ path: "entity.updatedDate" },
|
|
1541
|
-
{ path: "entity.lastActivityDate" },
|
|
1542
|
-
{ path: "entity.certificateInfo.issueDate" },
|
|
1543
|
-
{ path: "metadata.eventTime" }
|
|
1544
|
-
]
|
|
1530
|
+
paths: TRANSFORM_PATHS_22
|
|
1545
1531
|
},
|
|
1546
1532
|
{
|
|
1547
1533
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1548
|
-
paths:
|
|
1534
|
+
paths: TRANSFORM_PATHS_32
|
|
1549
1535
|
}
|
|
1550
1536
|
])
|
|
1551
1537
|
)
|
|
@@ -1557,17 +1543,11 @@ var onParticipantLeft = /* @__PURE__ */ EventDefinition(
|
|
|
1557
1543
|
transformPaths3(event, [
|
|
1558
1544
|
{
|
|
1559
1545
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1560
|
-
paths:
|
|
1561
|
-
{ path: "data.participant.createdDate" },
|
|
1562
|
-
{ path: "data.participant.updatedDate" },
|
|
1563
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1564
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1565
|
-
{ path: "metadata.eventTime" }
|
|
1566
|
-
]
|
|
1546
|
+
paths: TRANSFORM_PATHS_02
|
|
1567
1547
|
},
|
|
1568
1548
|
{
|
|
1569
1549
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1570
|
-
paths:
|
|
1550
|
+
paths: TRANSFORM_PATHS_12
|
|
1571
1551
|
}
|
|
1572
1552
|
])
|
|
1573
1553
|
)
|
|
@@ -1579,17 +1559,11 @@ var onParticipantMissedProgramDeadline = /* @__PURE__ */ EventDefinition(
|
|
|
1579
1559
|
transformPaths3(event, [
|
|
1580
1560
|
{
|
|
1581
1561
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1582
|
-
paths:
|
|
1583
|
-
{ path: "data.participant.createdDate" },
|
|
1584
|
-
{ path: "data.participant.updatedDate" },
|
|
1585
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1586
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1587
|
-
{ path: "metadata.eventTime" }
|
|
1588
|
-
]
|
|
1562
|
+
paths: TRANSFORM_PATHS_02
|
|
1589
1563
|
},
|
|
1590
1564
|
{
|
|
1591
1565
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1592
|
-
paths:
|
|
1566
|
+
paths: TRANSFORM_PATHS_12
|
|
1593
1567
|
}
|
|
1594
1568
|
])
|
|
1595
1569
|
)
|
|
@@ -1601,17 +1575,11 @@ var onParticipantProgramDurationEnded = /* @__PURE__ */ EventDefinition(
|
|
|
1601
1575
|
transformPaths3(event, [
|
|
1602
1576
|
{
|
|
1603
1577
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1604
|
-
paths:
|
|
1605
|
-
{ path: "data.participant.createdDate" },
|
|
1606
|
-
{ path: "data.participant.updatedDate" },
|
|
1607
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1608
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1609
|
-
{ path: "metadata.eventTime" }
|
|
1610
|
-
]
|
|
1578
|
+
paths: TRANSFORM_PATHS_02
|
|
1611
1579
|
},
|
|
1612
1580
|
{
|
|
1613
1581
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1614
|
-
paths:
|
|
1582
|
+
paths: TRANSFORM_PATHS_12
|
|
1615
1583
|
}
|
|
1616
1584
|
])
|
|
1617
1585
|
)
|
|
@@ -1623,17 +1591,11 @@ var onParticipantRemoved = /* @__PURE__ */ EventDefinition(
|
|
|
1623
1591
|
transformPaths3(event, [
|
|
1624
1592
|
{
|
|
1625
1593
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1626
|
-
paths:
|
|
1627
|
-
{ path: "data.participant.createdDate" },
|
|
1628
|
-
{ path: "data.participant.updatedDate" },
|
|
1629
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1630
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1631
|
-
{ path: "metadata.eventTime" }
|
|
1632
|
-
]
|
|
1594
|
+
paths: TRANSFORM_PATHS_02
|
|
1633
1595
|
},
|
|
1634
1596
|
{
|
|
1635
1597
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1636
|
-
paths:
|
|
1598
|
+
paths: TRANSFORM_PATHS_12
|
|
1637
1599
|
}
|
|
1638
1600
|
])
|
|
1639
1601
|
)
|
|
@@ -1645,17 +1607,11 @@ var onParticipantTagsModified = /* @__PURE__ */ EventDefinition(
|
|
|
1645
1607
|
transformPaths3(event, [
|
|
1646
1608
|
{
|
|
1647
1609
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1648
|
-
paths:
|
|
1649
|
-
{ path: "data.participant.createdDate" },
|
|
1650
|
-
{ path: "data.participant.updatedDate" },
|
|
1651
|
-
{ path: "data.participant.lastActivityDate" },
|
|
1652
|
-
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1653
|
-
{ path: "metadata.eventTime" }
|
|
1654
|
-
]
|
|
1610
|
+
paths: TRANSFORM_PATHS_02
|
|
1655
1611
|
},
|
|
1656
1612
|
{
|
|
1657
1613
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1658
|
-
paths:
|
|
1614
|
+
paths: TRANSFORM_PATHS_12
|
|
1659
1615
|
}
|
|
1660
1616
|
])
|
|
1661
1617
|
)
|
|
@@ -1667,24 +1623,11 @@ var onParticipantUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1667
1623
|
transformPaths3(event, [
|
|
1668
1624
|
{
|
|
1669
1625
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1670
|
-
paths:
|
|
1671
|
-
{ path: "entity.createdDate" },
|
|
1672
|
-
{ path: "entity.updatedDate" },
|
|
1673
|
-
{ path: "entity.lastActivityDate" },
|
|
1674
|
-
{ path: "entity.certificateInfo.issueDate" },
|
|
1675
|
-
{ path: "metadata.eventTime" },
|
|
1676
|
-
{ path: "modifiedFields.createdDate" },
|
|
1677
|
-
{ path: "modifiedFields.updatedDate" },
|
|
1678
|
-
{ path: "modifiedFields.lastActivityDate" },
|
|
1679
|
-
{ path: "modifiedFields.certificateInfo.issueDate" }
|
|
1680
|
-
]
|
|
1626
|
+
paths: TRANSFORM_PATHS_42
|
|
1681
1627
|
},
|
|
1682
1628
|
{
|
|
1683
1629
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1684
|
-
paths:
|
|
1685
|
-
{ path: "entity.progress.completionPercentage" },
|
|
1686
|
-
{ path: "modifiedFields.progress.completionPercentage" }
|
|
1687
|
-
]
|
|
1630
|
+
paths: TRANSFORM_PATHS_52
|
|
1688
1631
|
}
|
|
1689
1632
|
])
|
|
1690
1633
|
)
|