@wix/auto_sdk_online-programs_participants 1.0.4 → 1.0.6
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 +71 -103
- package/build/cjs/index.js +490 -706
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +295 -914
- package/build/cjs/index.typings.js +370 -501
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +213 -757
- package/build/cjs/meta.js +277 -418
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +71 -103
- package/build/es/index.mjs +495 -695
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +295 -914
- package/build/es/index.typings.mjs +391 -511
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +213 -757
- package/build/es/meta.mjs +261 -390
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +71 -103
- package/build/internal/cjs/index.js +490 -706
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +295 -914
- package/build/internal/cjs/index.typings.js +370 -501
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +213 -757
- package/build/internal/cjs/meta.js +277 -418
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +71 -103
- package/build/internal/es/index.mjs +495 -695
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +295 -914
- package/build/internal/es/index.typings.mjs +391 -511
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +213 -757
- package/build/internal/es/meta.mjs +261 -390
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/online-programs-v3-participant-participants.public.ts
|
|
2
2
|
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
-
import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
|
|
4
3
|
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
4
|
import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
5
|
import { EventDefinition } from "@wix/sdk-types";
|
|
@@ -15,7 +14,9 @@ import {
|
|
|
15
14
|
|
|
16
15
|
// src/online-programs-v3-participant-participants.http.ts
|
|
17
16
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
18
18
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
19
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
19
20
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
20
21
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
21
22
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -215,29 +216,47 @@ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
|
215
216
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
216
217
|
}
|
|
217
218
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
218
|
-
function
|
|
219
|
-
function
|
|
219
|
+
function createParticipant(payload) {
|
|
220
|
+
function __createParticipant({ host }) {
|
|
221
|
+
const serializedData = transformPaths(payload, [
|
|
222
|
+
{
|
|
223
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
224
|
+
paths: [
|
|
225
|
+
{ path: "participant.createdDate" },
|
|
226
|
+
{ path: "participant.updatedDate" },
|
|
227
|
+
{ path: "participant.lastActivityDate" },
|
|
228
|
+
{ path: "participant.certificate.issuedDate" },
|
|
229
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
234
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
235
|
+
}
|
|
236
|
+
]);
|
|
220
237
|
const metadata = {
|
|
221
238
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
222
239
|
method: "POST",
|
|
223
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
240
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
224
241
|
packageName: PACKAGE_NAME,
|
|
225
242
|
migrationOptions: {
|
|
226
243
|
optInTransformResponse: true
|
|
227
244
|
},
|
|
228
245
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
229
|
-
protoPath: "/v3/participants
|
|
230
|
-
data:
|
|
246
|
+
protoPath: "/v3/participants",
|
|
247
|
+
data: serializedData,
|
|
231
248
|
host
|
|
232
249
|
}),
|
|
233
|
-
data:
|
|
250
|
+
data: serializedData,
|
|
234
251
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
235
252
|
{
|
|
236
253
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
237
254
|
paths: [
|
|
238
255
|
{ path: "participant.createdDate" },
|
|
239
256
|
{ path: "participant.updatedDate" },
|
|
240
|
-
{ path: "participant.
|
|
257
|
+
{ path: "participant.lastActivityDate" },
|
|
258
|
+
{ path: "participant.certificate.issuedDate" },
|
|
259
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
241
260
|
]
|
|
242
261
|
},
|
|
243
262
|
{
|
|
@@ -248,55 +267,73 @@ function joinProgram(payload) {
|
|
|
248
267
|
};
|
|
249
268
|
return metadata;
|
|
250
269
|
}
|
|
251
|
-
return
|
|
270
|
+
return __createParticipant;
|
|
252
271
|
}
|
|
253
|
-
function
|
|
254
|
-
function
|
|
272
|
+
function bulkCreateParticipant(payload) {
|
|
273
|
+
function __bulkCreateParticipant({ host }) {
|
|
274
|
+
const serializedData = transformPaths(payload, [
|
|
275
|
+
{
|
|
276
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
277
|
+
paths: [
|
|
278
|
+
{ path: "participants.createdDate" },
|
|
279
|
+
{ path: "participants.updatedDate" },
|
|
280
|
+
{ path: "participants.lastActivityDate" },
|
|
281
|
+
{ path: "participants.certificate.issuedDate" },
|
|
282
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
287
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
288
|
+
}
|
|
289
|
+
]);
|
|
255
290
|
const metadata = {
|
|
256
291
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
257
|
-
method: "
|
|
258
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
292
|
+
method: "POST",
|
|
293
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
259
294
|
packageName: PACKAGE_NAME,
|
|
260
295
|
migrationOptions: {
|
|
261
296
|
optInTransformResponse: true
|
|
262
297
|
},
|
|
263
298
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
264
|
-
protoPath: "/v3/participants/
|
|
265
|
-
data:
|
|
299
|
+
protoPath: "/v3/bulk/participants/create",
|
|
300
|
+
data: serializedData,
|
|
266
301
|
host
|
|
267
302
|
}),
|
|
268
|
-
|
|
303
|
+
data: serializedData,
|
|
269
304
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
270
305
|
{
|
|
271
306
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
272
307
|
paths: [
|
|
273
|
-
{ path: "
|
|
274
|
-
{ path: "
|
|
275
|
-
{ path: "
|
|
308
|
+
{ path: "results.item.createdDate" },
|
|
309
|
+
{ path: "results.item.updatedDate" },
|
|
310
|
+
{ path: "results.item.lastActivityDate" },
|
|
311
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
312
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
276
313
|
]
|
|
277
314
|
},
|
|
278
315
|
{
|
|
279
316
|
transformFn: transformRESTFloatToSDKFloat,
|
|
280
|
-
paths: [{ path: "
|
|
317
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
281
318
|
}
|
|
282
319
|
])
|
|
283
320
|
};
|
|
284
321
|
return metadata;
|
|
285
322
|
}
|
|
286
|
-
return
|
|
323
|
+
return __bulkCreateParticipant;
|
|
287
324
|
}
|
|
288
|
-
function
|
|
289
|
-
function
|
|
325
|
+
function bulkAddAllToProgram(payload) {
|
|
326
|
+
function __bulkAddAllToProgram({ host }) {
|
|
290
327
|
const metadata = {
|
|
291
328
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
292
329
|
method: "POST",
|
|
293
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
330
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
294
331
|
packageName: PACKAGE_NAME,
|
|
295
332
|
migrationOptions: {
|
|
296
333
|
optInTransformResponse: true
|
|
297
334
|
},
|
|
298
335
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
299
|
-
protoPath: "/v3/participants/
|
|
336
|
+
protoPath: "/v3/bulk/participants/add-all",
|
|
300
337
|
data: payload,
|
|
301
338
|
host
|
|
302
339
|
}),
|
|
@@ -304,20 +341,41 @@ function leaveProgram(payload) {
|
|
|
304
341
|
};
|
|
305
342
|
return metadata;
|
|
306
343
|
}
|
|
307
|
-
return
|
|
344
|
+
return __bulkAddAllToProgram;
|
|
308
345
|
}
|
|
309
|
-
function
|
|
310
|
-
function
|
|
346
|
+
function deleteParticipant(payload) {
|
|
347
|
+
function __deleteParticipant({ host }) {
|
|
348
|
+
const metadata = {
|
|
349
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
350
|
+
method: "DELETE",
|
|
351
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
352
|
+
packageName: PACKAGE_NAME,
|
|
353
|
+
migrationOptions: {
|
|
354
|
+
optInTransformResponse: true
|
|
355
|
+
},
|
|
356
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
357
|
+
protoPath: "/v3/participants/{participantId}",
|
|
358
|
+
data: payload,
|
|
359
|
+
host
|
|
360
|
+
}),
|
|
361
|
+
params: toURLSearchParams(payload)
|
|
362
|
+
};
|
|
363
|
+
return metadata;
|
|
364
|
+
}
|
|
365
|
+
return __deleteParticipant;
|
|
366
|
+
}
|
|
367
|
+
function issueCertificate(payload) {
|
|
368
|
+
function __issueCertificate({ host }) {
|
|
311
369
|
const metadata = {
|
|
312
370
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
313
371
|
method: "POST",
|
|
314
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
372
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
315
373
|
packageName: PACKAGE_NAME,
|
|
316
374
|
migrationOptions: {
|
|
317
375
|
optInTransformResponse: true
|
|
318
376
|
},
|
|
319
377
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
320
|
-
protoPath: "/v3/participants/
|
|
378
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
321
379
|
data: payload,
|
|
322
380
|
host
|
|
323
381
|
}),
|
|
@@ -326,33 +384,62 @@ function queryParticipants(payload) {
|
|
|
326
384
|
{
|
|
327
385
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
328
386
|
paths: [
|
|
329
|
-
{ path: "
|
|
330
|
-
{ path: "
|
|
331
|
-
{ path: "
|
|
387
|
+
{ path: "participant.createdDate" },
|
|
388
|
+
{ path: "participant.updatedDate" },
|
|
389
|
+
{ path: "participant.lastActivityDate" },
|
|
390
|
+
{ path: "participant.certificate.issuedDate" },
|
|
391
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
332
392
|
]
|
|
333
393
|
},
|
|
334
394
|
{
|
|
335
395
|
transformFn: transformRESTFloatToSDKFloat,
|
|
336
|
-
paths: [{ path: "
|
|
396
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
337
397
|
}
|
|
338
398
|
])
|
|
339
399
|
};
|
|
340
400
|
return metadata;
|
|
341
401
|
}
|
|
342
|
-
return
|
|
402
|
+
return __issueCertificate;
|
|
343
403
|
}
|
|
344
|
-
function
|
|
345
|
-
function
|
|
404
|
+
function getCompletionStats(payload) {
|
|
405
|
+
function __getCompletionStats({ host }) {
|
|
346
406
|
const metadata = {
|
|
347
407
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
348
408
|
method: "GET",
|
|
349
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
409
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
350
410
|
packageName: PACKAGE_NAME,
|
|
351
411
|
migrationOptions: {
|
|
352
412
|
optInTransformResponse: true
|
|
353
413
|
},
|
|
354
414
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
355
|
-
protoPath: "/v3/
|
|
415
|
+
protoPath: "/v3/stats/completion/{programId}",
|
|
416
|
+
data: payload,
|
|
417
|
+
host
|
|
418
|
+
}),
|
|
419
|
+
params: toURLSearchParams(payload),
|
|
420
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
421
|
+
{
|
|
422
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
423
|
+
paths: [{ path: "completionRate" }]
|
|
424
|
+
}
|
|
425
|
+
])
|
|
426
|
+
};
|
|
427
|
+
return metadata;
|
|
428
|
+
}
|
|
429
|
+
return __getCompletionStats;
|
|
430
|
+
}
|
|
431
|
+
function getPremiumStats(payload) {
|
|
432
|
+
function __getPremiumStats({ host }) {
|
|
433
|
+
const metadata = {
|
|
434
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
435
|
+
method: "GET",
|
|
436
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
437
|
+
packageName: PACKAGE_NAME,
|
|
438
|
+
migrationOptions: {
|
|
439
|
+
optInTransformResponse: true
|
|
440
|
+
},
|
|
441
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
442
|
+
protoPath: "/v3/stats/premium",
|
|
356
443
|
data: payload,
|
|
357
444
|
host
|
|
358
445
|
}),
|
|
@@ -360,65 +447,102 @@ function getAccessStatus(payload) {
|
|
|
360
447
|
};
|
|
361
448
|
return metadata;
|
|
362
449
|
}
|
|
363
|
-
return
|
|
450
|
+
return __getPremiumStats;
|
|
364
451
|
}
|
|
365
|
-
function
|
|
366
|
-
function
|
|
452
|
+
function getParticipant(payload) {
|
|
453
|
+
function __getParticipant({ host }) {
|
|
367
454
|
const metadata = {
|
|
368
455
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
369
|
-
method: "
|
|
370
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
456
|
+
method: "GET",
|
|
457
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
371
458
|
packageName: PACKAGE_NAME,
|
|
372
459
|
migrationOptions: {
|
|
373
460
|
optInTransformResponse: true
|
|
374
461
|
},
|
|
375
462
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
376
|
-
protoPath: "/v3/participants/{participantId}
|
|
463
|
+
protoPath: "/v3/participants/{participantId}",
|
|
377
464
|
data: payload,
|
|
378
465
|
host
|
|
379
466
|
}),
|
|
380
|
-
|
|
467
|
+
params: toURLSearchParams(payload),
|
|
381
468
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
382
469
|
{
|
|
383
|
-
transformFn:
|
|
470
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
384
471
|
paths: [
|
|
385
|
-
{ path: "
|
|
386
|
-
{ path: "
|
|
387
|
-
{ path: "
|
|
472
|
+
{ path: "participant.createdDate" },
|
|
473
|
+
{ path: "participant.updatedDate" },
|
|
474
|
+
{ path: "participant.lastActivityDate" },
|
|
475
|
+
{ path: "participant.certificate.issuedDate" },
|
|
476
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
388
477
|
]
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
481
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
389
482
|
}
|
|
390
483
|
])
|
|
391
484
|
};
|
|
392
485
|
return metadata;
|
|
393
486
|
}
|
|
394
|
-
return
|
|
487
|
+
return __getParticipant;
|
|
395
488
|
}
|
|
396
|
-
function
|
|
397
|
-
function
|
|
489
|
+
function queryParticipants(payload) {
|
|
490
|
+
function __queryParticipants({ host }) {
|
|
398
491
|
const metadata = {
|
|
399
492
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
400
493
|
method: "POST",
|
|
401
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
494
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
402
495
|
packageName: PACKAGE_NAME,
|
|
403
496
|
migrationOptions: {
|
|
404
497
|
optInTransformResponse: true
|
|
405
498
|
},
|
|
406
499
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
407
|
-
protoPath: "/v3/participants/
|
|
500
|
+
protoPath: "/v3/participants/query",
|
|
408
501
|
data: payload,
|
|
409
502
|
host
|
|
410
503
|
}),
|
|
411
504
|
data: payload,
|
|
412
505
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
506
|
+
{
|
|
507
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
508
|
+
paths: [
|
|
509
|
+
{ path: "participants.createdDate" },
|
|
510
|
+
{ path: "participants.updatedDate" },
|
|
511
|
+
{ path: "participants.lastActivityDate" },
|
|
512
|
+
{ path: "participants.certificate.issuedDate" },
|
|
513
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
514
|
+
]
|
|
515
|
+
},
|
|
413
516
|
{
|
|
414
517
|
transformFn: transformRESTFloatToSDKFloat,
|
|
415
|
-
paths: [{ path: "
|
|
518
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
416
519
|
}
|
|
417
520
|
])
|
|
418
521
|
};
|
|
419
522
|
return metadata;
|
|
420
523
|
}
|
|
421
|
-
return
|
|
524
|
+
return __queryParticipants;
|
|
525
|
+
}
|
|
526
|
+
function getAccessStatus(payload) {
|
|
527
|
+
function __getAccessStatus({ host }) {
|
|
528
|
+
const metadata = {
|
|
529
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
530
|
+
method: "GET",
|
|
531
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
532
|
+
packageName: PACKAGE_NAME,
|
|
533
|
+
migrationOptions: {
|
|
534
|
+
optInTransformResponse: true
|
|
535
|
+
},
|
|
536
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
537
|
+
protoPath: "/v3/participants/access",
|
|
538
|
+
data: payload,
|
|
539
|
+
host
|
|
540
|
+
}),
|
|
541
|
+
params: toURLSearchParams(payload)
|
|
542
|
+
};
|
|
543
|
+
return metadata;
|
|
544
|
+
}
|
|
545
|
+
return __getAccessStatus;
|
|
422
546
|
}
|
|
423
547
|
function bulkInviteToProgram(payload) {
|
|
424
548
|
function __bulkInviteToProgram({ host }) {
|
|
@@ -442,7 +566,9 @@ function bulkInviteToProgram(payload) {
|
|
|
442
566
|
paths: [
|
|
443
567
|
{ path: "results.item.createdDate" },
|
|
444
568
|
{ path: "results.item.updatedDate" },
|
|
445
|
-
{ path: "results.item.
|
|
569
|
+
{ path: "results.item.lastActivityDate" },
|
|
570
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
571
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
446
572
|
]
|
|
447
573
|
},
|
|
448
574
|
{
|
|
@@ -498,7 +624,9 @@ function bulkAddToProgram(payload) {
|
|
|
498
624
|
paths: [
|
|
499
625
|
{ path: "results.item.createdDate" },
|
|
500
626
|
{ path: "results.item.updatedDate" },
|
|
501
|
-
{ path: "results.item.
|
|
627
|
+
{ path: "results.item.lastActivityDate" },
|
|
628
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
629
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
502
630
|
]
|
|
503
631
|
},
|
|
504
632
|
{
|
|
@@ -511,27 +639,6 @@ function bulkAddToProgram(payload) {
|
|
|
511
639
|
}
|
|
512
640
|
return __bulkAddToProgram;
|
|
513
641
|
}
|
|
514
|
-
function bulkAddAllToProgram(payload) {
|
|
515
|
-
function __bulkAddAllToProgram({ host }) {
|
|
516
|
-
const metadata = {
|
|
517
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
518
|
-
method: "POST",
|
|
519
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
|
|
520
|
-
packageName: PACKAGE_NAME,
|
|
521
|
-
migrationOptions: {
|
|
522
|
-
optInTransformResponse: true
|
|
523
|
-
},
|
|
524
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
525
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
526
|
-
data: payload,
|
|
527
|
-
host
|
|
528
|
-
}),
|
|
529
|
-
data: payload
|
|
530
|
-
};
|
|
531
|
-
return metadata;
|
|
532
|
-
}
|
|
533
|
-
return __bulkAddAllToProgram;
|
|
534
|
-
}
|
|
535
642
|
function bulkApproveParticipant(payload) {
|
|
536
643
|
function __bulkApproveParticipant({ host }) {
|
|
537
644
|
const metadata = {
|
|
@@ -554,7 +661,9 @@ function bulkApproveParticipant(payload) {
|
|
|
554
661
|
paths: [
|
|
555
662
|
{ path: "results.item.createdDate" },
|
|
556
663
|
{ path: "results.item.updatedDate" },
|
|
557
|
-
{ path: "results.item.
|
|
664
|
+
{ path: "results.item.lastActivityDate" },
|
|
665
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
666
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
558
667
|
]
|
|
559
668
|
},
|
|
560
669
|
{
|
|
@@ -588,18 +697,18 @@ function bulkApproveAllParticipant(payload) {
|
|
|
588
697
|
}
|
|
589
698
|
return __bulkApproveAllParticipant;
|
|
590
699
|
}
|
|
591
|
-
function
|
|
592
|
-
function
|
|
700
|
+
function exportParticipantsStats(payload) {
|
|
701
|
+
function __exportParticipantsStats({ host }) {
|
|
593
702
|
const metadata = {
|
|
594
703
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
595
|
-
method: "
|
|
596
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
704
|
+
method: "GET",
|
|
705
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
597
706
|
packageName: PACKAGE_NAME,
|
|
598
707
|
migrationOptions: {
|
|
599
708
|
optInTransformResponse: true
|
|
600
709
|
},
|
|
601
|
-
url:
|
|
602
|
-
protoPath: "/v3/participants/{
|
|
710
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
711
|
+
protoPath: "/v3/participants/export/{programId}",
|
|
603
712
|
data: payload,
|
|
604
713
|
host
|
|
605
714
|
}),
|
|
@@ -607,247 +716,88 @@ function deleteParticipant(payload) {
|
|
|
607
716
|
};
|
|
608
717
|
return metadata;
|
|
609
718
|
}
|
|
610
|
-
return
|
|
719
|
+
return __exportParticipantsStats;
|
|
611
720
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
721
|
+
|
|
722
|
+
// src/online-programs-v3-participant-participants.universal.ts
|
|
723
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
724
|
+
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
725
|
+
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
726
|
+
JoinPath2["FREE"] = "FREE";
|
|
727
|
+
JoinPath2["ADDED"] = "ADDED";
|
|
728
|
+
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
729
|
+
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
730
|
+
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
731
|
+
return JoinPath2;
|
|
732
|
+
})(JoinPath || {});
|
|
733
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
734
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
735
|
+
State2["JOINED"] = "JOINED";
|
|
736
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
737
|
+
State2["FAILED"] = "FAILED";
|
|
738
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
739
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
740
|
+
State2["REMOVED"] = "REMOVED";
|
|
741
|
+
State2["LEFT"] = "LEFT";
|
|
742
|
+
return State2;
|
|
743
|
+
})(State || {});
|
|
744
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
745
|
+
SortOrder2["ASC"] = "ASC";
|
|
746
|
+
SortOrder2["DESC"] = "DESC";
|
|
747
|
+
return SortOrder2;
|
|
748
|
+
})(SortOrder || {});
|
|
749
|
+
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
750
|
+
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
751
|
+
BenefitType2["LIMITED"] = "LIMITED";
|
|
752
|
+
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
753
|
+
return BenefitType2;
|
|
754
|
+
})(BenefitType || {});
|
|
755
|
+
var Event = /* @__PURE__ */ ((Event2) => {
|
|
756
|
+
Event2["Updated"] = "Updated";
|
|
757
|
+
Event2["Deleted"] = "Deleted";
|
|
758
|
+
Event2["Created"] = "Created";
|
|
759
|
+
return Event2;
|
|
760
|
+
})(Event || {});
|
|
761
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
762
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
763
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
764
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
765
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
766
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
767
|
+
return WebhookIdentityType2;
|
|
768
|
+
})(WebhookIdentityType || {});
|
|
769
|
+
async function createParticipant2(participant) {
|
|
770
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
771
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
772
|
+
participant
|
|
773
|
+
});
|
|
774
|
+
const reqOpts = createParticipant(payload);
|
|
775
|
+
sideEffects?.onSiteCall?.();
|
|
776
|
+
try {
|
|
777
|
+
const result = await httpClient.request(reqOpts);
|
|
778
|
+
sideEffects?.onSuccess?.(result);
|
|
779
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
780
|
+
} catch (err) {
|
|
781
|
+
const transformedError = sdkTransformError(
|
|
782
|
+
err,
|
|
783
|
+
{
|
|
784
|
+
spreadPathsToArguments: {},
|
|
785
|
+
explicitPathsToArguments: { participant: "$[0]" },
|
|
786
|
+
singleArgumentUnchanged: false
|
|
621
787
|
},
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}),
|
|
627
|
-
data: payload,
|
|
628
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
629
|
-
{
|
|
630
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
631
|
-
paths: [
|
|
632
|
-
{ path: "participant.createdDate" },
|
|
633
|
-
{ path: "participant.updatedDate" },
|
|
634
|
-
{ path: "participant.certificate.issuedDate" }
|
|
635
|
-
]
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
639
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
640
|
-
}
|
|
641
|
-
])
|
|
642
|
-
};
|
|
643
|
-
return metadata;
|
|
644
|
-
}
|
|
645
|
-
return __issueCertificate;
|
|
646
|
-
}
|
|
647
|
-
function getCompletionStats(payload) {
|
|
648
|
-
function __getCompletionStats({ host }) {
|
|
649
|
-
const metadata = {
|
|
650
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
651
|
-
method: "GET",
|
|
652
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
|
|
653
|
-
packageName: PACKAGE_NAME,
|
|
654
|
-
migrationOptions: {
|
|
655
|
-
optInTransformResponse: true
|
|
656
|
-
},
|
|
657
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
658
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
659
|
-
data: payload,
|
|
660
|
-
host
|
|
661
|
-
}),
|
|
662
|
-
params: toURLSearchParams(payload),
|
|
663
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
664
|
-
{
|
|
665
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
666
|
-
paths: [{ path: "completionRate" }]
|
|
667
|
-
}
|
|
668
|
-
])
|
|
669
|
-
};
|
|
670
|
-
return metadata;
|
|
671
|
-
}
|
|
672
|
-
return __getCompletionStats;
|
|
673
|
-
}
|
|
674
|
-
function getPremiumStats(payload) {
|
|
675
|
-
function __getPremiumStats({ host }) {
|
|
676
|
-
const metadata = {
|
|
677
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
678
|
-
method: "GET",
|
|
679
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
|
|
680
|
-
packageName: PACKAGE_NAME,
|
|
681
|
-
migrationOptions: {
|
|
682
|
-
optInTransformResponse: true
|
|
683
|
-
},
|
|
684
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
685
|
-
protoPath: "/v3/stats/premium",
|
|
686
|
-
data: payload,
|
|
687
|
-
host
|
|
688
|
-
}),
|
|
689
|
-
params: toURLSearchParams(payload)
|
|
690
|
-
};
|
|
691
|
-
return metadata;
|
|
692
|
-
}
|
|
693
|
-
return __getPremiumStats;
|
|
694
|
-
}
|
|
695
|
-
function exportParticipantsStats(payload) {
|
|
696
|
-
function __exportParticipantsStats({ host }) {
|
|
697
|
-
const metadata = {
|
|
698
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
699
|
-
method: "GET",
|
|
700
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
701
|
-
packageName: PACKAGE_NAME,
|
|
702
|
-
migrationOptions: {
|
|
703
|
-
optInTransformResponse: true
|
|
704
|
-
},
|
|
705
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
706
|
-
protoPath: "/v3/participants/export/{programId}",
|
|
707
|
-
data: payload,
|
|
708
|
-
host
|
|
709
|
-
}),
|
|
710
|
-
params: toURLSearchParams(payload)
|
|
711
|
-
};
|
|
712
|
-
return metadata;
|
|
788
|
+
["participant"]
|
|
789
|
+
);
|
|
790
|
+
sideEffects?.onError?.(err);
|
|
791
|
+
throw transformedError;
|
|
713
792
|
}
|
|
714
|
-
return __exportParticipantsStats;
|
|
715
793
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
719
|
-
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
720
|
-
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
721
|
-
JoinPath2["FREE"] = "FREE";
|
|
722
|
-
JoinPath2["ADDED"] = "ADDED";
|
|
723
|
-
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
724
|
-
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
725
|
-
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
726
|
-
return JoinPath2;
|
|
727
|
-
})(JoinPath || {});
|
|
728
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
729
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
730
|
-
State2["INVITED"] = "INVITED";
|
|
731
|
-
State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
|
|
732
|
-
State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
733
|
-
State2["JOINED"] = "JOINED";
|
|
734
|
-
State2["COMPLETED"] = "COMPLETED";
|
|
735
|
-
State2["FAILED"] = "FAILED";
|
|
736
|
-
State2["SUSPENDED"] = "SUSPENDED";
|
|
737
|
-
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
738
|
-
return State2;
|
|
739
|
-
})(State || {});
|
|
740
|
-
var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
|
|
741
|
-
RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
|
|
742
|
-
RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
|
|
743
|
-
RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
|
|
744
|
-
RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
|
|
745
|
-
return RemovalReason2;
|
|
746
|
-
})(RemovalReason || {});
|
|
747
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
748
|
-
SortOrder2["ASC"] = "ASC";
|
|
749
|
-
SortOrder2["DESC"] = "DESC";
|
|
750
|
-
return SortOrder2;
|
|
751
|
-
})(SortOrder || {});
|
|
752
|
-
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
753
|
-
EventType2["UNDEFINED"] = "UNDEFINED";
|
|
754
|
-
EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
|
|
755
|
-
EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
|
|
756
|
-
EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
|
|
757
|
-
EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
|
|
758
|
-
EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
|
|
759
|
-
return EventType2;
|
|
760
|
-
})(EventType || {});
|
|
761
|
-
var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
|
|
762
|
-
OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
|
|
763
|
-
OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
|
|
764
|
-
OrderItemCategory2["DIGITAL"] = "DIGITAL";
|
|
765
|
-
return OrderItemCategory2;
|
|
766
|
-
})(OrderItemCategory || {});
|
|
767
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
768
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
769
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
770
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
771
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
772
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
773
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
774
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
775
|
-
return SubdivisionType2;
|
|
776
|
-
})(SubdivisionType || {});
|
|
777
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
778
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
779
|
-
VatType2["CPF"] = "CPF";
|
|
780
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
781
|
-
return VatType2;
|
|
782
|
-
})(VatType || {});
|
|
783
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
784
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
785
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
786
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
787
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
788
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
789
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
790
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
791
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
792
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
793
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
794
|
-
return TransactionStatus2;
|
|
795
|
-
})(TransactionStatus || {});
|
|
796
|
-
var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
|
|
797
|
-
ScheduledActionType2["VOID"] = "VOID";
|
|
798
|
-
ScheduledActionType2["CAPTURE"] = "CAPTURE";
|
|
799
|
-
return ScheduledActionType2;
|
|
800
|
-
})(ScheduledActionType || {});
|
|
801
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
802
|
-
RefundStatus2["UNDEFINED"] = "UNDEFINED";
|
|
803
|
-
RefundStatus2["APPROVED"] = "APPROVED";
|
|
804
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
805
|
-
RefundStatus2["DECLINED"] = "DECLINED";
|
|
806
|
-
return RefundStatus2;
|
|
807
|
-
})(RefundStatus || {});
|
|
808
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
809
|
-
Status2["UNDEFINED"] = "UNDEFINED";
|
|
810
|
-
Status2["PENDING"] = "PENDING";
|
|
811
|
-
Status2["ACTIVE"] = "ACTIVE";
|
|
812
|
-
Status2["CANCELLED"] = "CANCELLED";
|
|
813
|
-
Status2["FINISHED"] = "FINISHED";
|
|
814
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
815
|
-
return Status2;
|
|
816
|
-
})(Status || {});
|
|
817
|
-
var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
818
|
-
Initiator2["UNDEFINED"] = "UNDEFINED";
|
|
819
|
-
Initiator2["BUYER"] = "BUYER";
|
|
820
|
-
Initiator2["MERCHANT"] = "MERCHANT";
|
|
821
|
-
Initiator2["PAYMENT"] = "PAYMENT";
|
|
822
|
-
Initiator2["SETUP"] = "SETUP";
|
|
823
|
-
return Initiator2;
|
|
824
|
-
})(Initiator || {});
|
|
825
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
826
|
-
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
827
|
-
BenefitType2["LIMITED"] = "LIMITED";
|
|
828
|
-
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
829
|
-
return BenefitType2;
|
|
830
|
-
})(BenefitType || {});
|
|
831
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
832
|
-
Event2["Updated"] = "Updated";
|
|
833
|
-
Event2["Deleted"] = "Deleted";
|
|
834
|
-
Event2["Created"] = "Created";
|
|
835
|
-
return Event2;
|
|
836
|
-
})(Event || {});
|
|
837
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
838
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
839
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
840
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
841
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
842
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
843
|
-
return WebhookIdentityType2;
|
|
844
|
-
})(WebhookIdentityType || {});
|
|
845
|
-
async function joinProgram2(programId) {
|
|
846
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
794
|
+
async function bulkCreateParticipant2(participants, options) {
|
|
795
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
847
796
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
848
|
-
|
|
797
|
+
participants,
|
|
798
|
+
returnEntity: options?.returnEntity
|
|
849
799
|
});
|
|
850
|
-
const reqOpts =
|
|
800
|
+
const reqOpts = bulkCreateParticipant(payload);
|
|
851
801
|
sideEffects?.onSiteCall?.();
|
|
852
802
|
try {
|
|
853
803
|
const result = await httpClient.request(reqOpts);
|
|
@@ -858,46 +808,53 @@ async function joinProgram2(programId) {
|
|
|
858
808
|
err,
|
|
859
809
|
{
|
|
860
810
|
spreadPathsToArguments: {},
|
|
861
|
-
explicitPathsToArguments: {
|
|
811
|
+
explicitPathsToArguments: {
|
|
812
|
+
participants: "$[0]",
|
|
813
|
+
returnEntity: "$[1].returnEntity"
|
|
814
|
+
},
|
|
862
815
|
singleArgumentUnchanged: false
|
|
863
816
|
},
|
|
864
|
-
["
|
|
817
|
+
["participants", "options"]
|
|
865
818
|
);
|
|
866
819
|
sideEffects?.onError?.(err);
|
|
867
820
|
throw transformedError;
|
|
868
821
|
}
|
|
869
822
|
}
|
|
870
|
-
async function
|
|
871
|
-
const { httpClient, sideEffects } = arguments[
|
|
823
|
+
async function bulkAddAllToProgram2(programId, options) {
|
|
824
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
872
825
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
873
|
-
|
|
826
|
+
programId,
|
|
827
|
+
excludeMemberIds: options?.excludeMemberIds
|
|
874
828
|
});
|
|
875
|
-
const reqOpts =
|
|
829
|
+
const reqOpts = bulkAddAllToProgram(payload);
|
|
876
830
|
sideEffects?.onSiteCall?.();
|
|
877
831
|
try {
|
|
878
832
|
const result = await httpClient.request(reqOpts);
|
|
879
833
|
sideEffects?.onSuccess?.(result);
|
|
880
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
834
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
881
835
|
} catch (err) {
|
|
882
836
|
const transformedError = sdkTransformError(
|
|
883
837
|
err,
|
|
884
838
|
{
|
|
885
839
|
spreadPathsToArguments: {},
|
|
886
|
-
explicitPathsToArguments: {
|
|
840
|
+
explicitPathsToArguments: {
|
|
841
|
+
programId: "$[0]",
|
|
842
|
+
excludeMemberIds: "$[1].excludeMemberIds"
|
|
843
|
+
},
|
|
887
844
|
singleArgumentUnchanged: false
|
|
888
845
|
},
|
|
889
|
-
["
|
|
846
|
+
["programId", "options"]
|
|
890
847
|
);
|
|
891
848
|
sideEffects?.onError?.(err);
|
|
892
849
|
throw transformedError;
|
|
893
850
|
}
|
|
894
851
|
}
|
|
895
|
-
async function
|
|
852
|
+
async function deleteParticipant2(participantId) {
|
|
896
853
|
const { httpClient, sideEffects } = arguments[1];
|
|
897
854
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
898
855
|
participantId
|
|
899
856
|
});
|
|
900
|
-
const reqOpts =
|
|
857
|
+
const reqOpts = deleteParticipant(payload);
|
|
901
858
|
sideEffects?.onSiteCall?.();
|
|
902
859
|
try {
|
|
903
860
|
const result = await httpClient.request(reqOpts);
|
|
@@ -916,82 +873,12 @@ async function leaveProgram2(participantId) {
|
|
|
916
873
|
throw transformedError;
|
|
917
874
|
}
|
|
918
875
|
}
|
|
919
|
-
function
|
|
920
|
-
const { httpClient, sideEffects } = arguments[
|
|
921
|
-
return queryBuilder({
|
|
922
|
-
func: async (payload) => {
|
|
923
|
-
const reqOpts = queryParticipants(payload);
|
|
924
|
-
sideEffects?.onSiteCall?.();
|
|
925
|
-
try {
|
|
926
|
-
const result = await httpClient.request(reqOpts);
|
|
927
|
-
sideEffects?.onSuccess?.(result);
|
|
928
|
-
return result;
|
|
929
|
-
} catch (err) {
|
|
930
|
-
sideEffects?.onError?.(err);
|
|
931
|
-
throw err;
|
|
932
|
-
}
|
|
933
|
-
},
|
|
934
|
-
requestTransformer: (query) => {
|
|
935
|
-
const args = [query, {}];
|
|
936
|
-
return renameKeysFromSDKRequestToRESTRequest({
|
|
937
|
-
...args?.[1],
|
|
938
|
-
query: args?.[0]
|
|
939
|
-
});
|
|
940
|
-
},
|
|
941
|
-
responseTransformer: ({
|
|
942
|
-
data
|
|
943
|
-
}) => {
|
|
944
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
945
|
-
transformPaths2(data, [])
|
|
946
|
-
);
|
|
947
|
-
return {
|
|
948
|
-
items: transformedData?.participants,
|
|
949
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
950
|
-
};
|
|
951
|
-
},
|
|
952
|
-
errorTransformer: (err) => {
|
|
953
|
-
const transformedError = sdkTransformError(err, {
|
|
954
|
-
spreadPathsToArguments: {},
|
|
955
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
956
|
-
singleArgumentUnchanged: false
|
|
957
|
-
});
|
|
958
|
-
throw transformedError;
|
|
959
|
-
},
|
|
960
|
-
pagingMethod: "CURSOR",
|
|
961
|
-
transformationPaths: {}
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
async function getAccessStatus2() {
|
|
965
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
966
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
967
|
-
const reqOpts = getAccessStatus(payload);
|
|
968
|
-
sideEffects?.onSiteCall?.();
|
|
969
|
-
try {
|
|
970
|
-
const result = await httpClient.request(reqOpts);
|
|
971
|
-
sideEffects?.onSuccess?.(result);
|
|
972
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
973
|
-
} catch (err) {
|
|
974
|
-
const transformedError = sdkTransformError(
|
|
975
|
-
err,
|
|
976
|
-
{
|
|
977
|
-
spreadPathsToArguments: {},
|
|
978
|
-
explicitPathsToArguments: {},
|
|
979
|
-
singleArgumentUnchanged: false
|
|
980
|
-
},
|
|
981
|
-
[]
|
|
982
|
-
);
|
|
983
|
-
sideEffects?.onError?.(err);
|
|
984
|
-
throw transformedError;
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
async function applyCoupon2(identifiers, orderId) {
|
|
988
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
876
|
+
async function issueCertificate2(participantId) {
|
|
877
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
989
878
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
990
|
-
participantId
|
|
991
|
-
couponCode: identifiers?.couponCode,
|
|
992
|
-
orderId
|
|
879
|
+
participantId
|
|
993
880
|
});
|
|
994
|
-
const reqOpts =
|
|
881
|
+
const reqOpts = issueCertificate(payload);
|
|
995
882
|
sideEffects?.onSiteCall?.();
|
|
996
883
|
try {
|
|
997
884
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1002,27 +889,21 @@ async function applyCoupon2(identifiers, orderId) {
|
|
|
1002
889
|
err,
|
|
1003
890
|
{
|
|
1004
891
|
spreadPathsToArguments: {},
|
|
1005
|
-
explicitPathsToArguments: {
|
|
1006
|
-
participantId: "$[0].participantId",
|
|
1007
|
-
couponCode: "$[0].couponCode",
|
|
1008
|
-
orderId: "$[1]"
|
|
1009
|
-
},
|
|
892
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1010
893
|
singleArgumentUnchanged: false
|
|
1011
894
|
},
|
|
1012
|
-
["
|
|
895
|
+
["participantId"]
|
|
1013
896
|
);
|
|
1014
897
|
sideEffects?.onError?.(err);
|
|
1015
898
|
throw transformedError;
|
|
1016
899
|
}
|
|
1017
900
|
}
|
|
1018
|
-
async function
|
|
1019
|
-
const { httpClient, sideEffects } = arguments[
|
|
901
|
+
async function getCompletionStats2(programId) {
|
|
902
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1020
903
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1021
|
-
|
|
1022
|
-
couponId: identifiers?.couponId,
|
|
1023
|
-
orderId
|
|
904
|
+
programId
|
|
1024
905
|
});
|
|
1025
|
-
const reqOpts =
|
|
906
|
+
const reqOpts = getCompletionStats(payload);
|
|
1026
907
|
sideEffects?.onSiteCall?.();
|
|
1027
908
|
try {
|
|
1028
909
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1033,27 +914,19 @@ async function revertCoupon2(identifiers, orderId) {
|
|
|
1033
914
|
err,
|
|
1034
915
|
{
|
|
1035
916
|
spreadPathsToArguments: {},
|
|
1036
|
-
explicitPathsToArguments: {
|
|
1037
|
-
participantId: "$[0].participantId",
|
|
1038
|
-
couponId: "$[0].couponId",
|
|
1039
|
-
orderId: "$[1]"
|
|
1040
|
-
},
|
|
917
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
1041
918
|
singleArgumentUnchanged: false
|
|
1042
919
|
},
|
|
1043
|
-
["
|
|
920
|
+
["programId"]
|
|
1044
921
|
);
|
|
1045
922
|
sideEffects?.onError?.(err);
|
|
1046
923
|
throw transformedError;
|
|
1047
924
|
}
|
|
1048
925
|
}
|
|
1049
|
-
async function
|
|
1050
|
-
const { httpClient, sideEffects } = arguments[
|
|
1051
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1052
|
-
|
|
1053
|
-
memberIds: options?.memberIds,
|
|
1054
|
-
returnEntity: options?.returnEntity
|
|
1055
|
-
});
|
|
1056
|
-
const reqOpts = bulkInviteToProgram(payload);
|
|
926
|
+
async function getPremiumStats2() {
|
|
927
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
928
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
929
|
+
const reqOpts = getPremiumStats(payload);
|
|
1057
930
|
sideEffects?.onSiteCall?.();
|
|
1058
931
|
try {
|
|
1059
932
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1064,86 +937,89 @@ async function bulkInviteToProgram2(programId, options) {
|
|
|
1064
937
|
err,
|
|
1065
938
|
{
|
|
1066
939
|
spreadPathsToArguments: {},
|
|
1067
|
-
explicitPathsToArguments: {
|
|
1068
|
-
programId: "$[0]",
|
|
1069
|
-
memberIds: "$[1].memberIds",
|
|
1070
|
-
returnEntity: "$[1].returnEntity"
|
|
1071
|
-
},
|
|
940
|
+
explicitPathsToArguments: {},
|
|
1072
941
|
singleArgumentUnchanged: false
|
|
1073
942
|
},
|
|
1074
|
-
[
|
|
943
|
+
[]
|
|
1075
944
|
);
|
|
1076
945
|
sideEffects?.onError?.(err);
|
|
1077
946
|
throw transformedError;
|
|
1078
947
|
}
|
|
1079
948
|
}
|
|
1080
|
-
async function
|
|
1081
|
-
const { httpClient, sideEffects } = arguments[
|
|
949
|
+
async function getParticipant2(participantId) {
|
|
950
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1082
951
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1083
|
-
|
|
1084
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
952
|
+
participantId
|
|
1085
953
|
});
|
|
1086
|
-
const reqOpts =
|
|
954
|
+
const reqOpts = getParticipant(payload);
|
|
1087
955
|
sideEffects?.onSiteCall?.();
|
|
1088
956
|
try {
|
|
1089
957
|
const result = await httpClient.request(reqOpts);
|
|
1090
958
|
sideEffects?.onSuccess?.(result);
|
|
1091
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
959
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
1092
960
|
} catch (err) {
|
|
1093
961
|
const transformedError = sdkTransformError(
|
|
1094
962
|
err,
|
|
1095
963
|
{
|
|
1096
964
|
spreadPathsToArguments: {},
|
|
1097
|
-
explicitPathsToArguments: {
|
|
1098
|
-
programId: "$[0]",
|
|
1099
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1100
|
-
},
|
|
965
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1101
966
|
singleArgumentUnchanged: false
|
|
1102
967
|
},
|
|
1103
|
-
["
|
|
968
|
+
["participantId"]
|
|
1104
969
|
);
|
|
1105
970
|
sideEffects?.onError?.(err);
|
|
1106
971
|
throw transformedError;
|
|
1107
972
|
}
|
|
1108
973
|
}
|
|
1109
|
-
|
|
1110
|
-
const { httpClient, sideEffects } = arguments[
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
{
|
|
974
|
+
function queryParticipants2() {
|
|
975
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
976
|
+
return queryBuilder({
|
|
977
|
+
func: async (payload) => {
|
|
978
|
+
const reqOpts = queryParticipants(payload);
|
|
979
|
+
sideEffects?.onSiteCall?.();
|
|
980
|
+
try {
|
|
981
|
+
const result = await httpClient.request(reqOpts);
|
|
982
|
+
sideEffects?.onSuccess?.(result);
|
|
983
|
+
return result;
|
|
984
|
+
} catch (err) {
|
|
985
|
+
sideEffects?.onError?.(err);
|
|
986
|
+
throw err;
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
requestTransformer: (query) => {
|
|
990
|
+
const args = [query, {}];
|
|
991
|
+
return renameKeysFromSDKRequestToRESTRequest({
|
|
992
|
+
...args?.[1],
|
|
993
|
+
query: args?.[0]
|
|
994
|
+
});
|
|
995
|
+
},
|
|
996
|
+
responseTransformer: ({
|
|
997
|
+
data
|
|
998
|
+
}) => {
|
|
999
|
+
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
1000
|
+
transformPaths2(data, [])
|
|
1001
|
+
);
|
|
1002
|
+
return {
|
|
1003
|
+
items: transformedData?.participants,
|
|
1004
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
1005
|
+
};
|
|
1006
|
+
},
|
|
1007
|
+
errorTransformer: (err) => {
|
|
1008
|
+
const transformedError = sdkTransformError(err, {
|
|
1126
1009
|
spreadPathsToArguments: {},
|
|
1127
|
-
explicitPathsToArguments: {
|
|
1128
|
-
programId: "$[0]",
|
|
1129
|
-
memberIds: "$[1].memberIds",
|
|
1130
|
-
returnEntity: "$[1].returnEntity"
|
|
1131
|
-
},
|
|
1010
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1132
1011
|
singleArgumentUnchanged: false
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
async function bulkAddAllToProgram2(programId, options) {
|
|
1141
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1142
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1143
|
-
programId,
|
|
1144
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
1012
|
+
});
|
|
1013
|
+
throw transformedError;
|
|
1014
|
+
},
|
|
1015
|
+
pagingMethod: "CURSOR",
|
|
1016
|
+
transformationPaths: {}
|
|
1145
1017
|
});
|
|
1146
|
-
|
|
1018
|
+
}
|
|
1019
|
+
async function typedQueryParticipants(query) {
|
|
1020
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1021
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1022
|
+
const reqOpts = queryParticipants(payload);
|
|
1147
1023
|
sideEffects?.onSiteCall?.();
|
|
1148
1024
|
try {
|
|
1149
1025
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1154,26 +1030,19 @@ async function bulkAddAllToProgram2(programId, options) {
|
|
|
1154
1030
|
err,
|
|
1155
1031
|
{
|
|
1156
1032
|
spreadPathsToArguments: {},
|
|
1157
|
-
explicitPathsToArguments: {
|
|
1158
|
-
programId: "$[0]",
|
|
1159
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1160
|
-
},
|
|
1033
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1161
1034
|
singleArgumentUnchanged: false
|
|
1162
1035
|
},
|
|
1163
|
-
["
|
|
1036
|
+
["query"]
|
|
1164
1037
|
);
|
|
1165
1038
|
sideEffects?.onError?.(err);
|
|
1166
1039
|
throw transformedError;
|
|
1167
1040
|
}
|
|
1168
1041
|
}
|
|
1169
|
-
async function
|
|
1170
|
-
const { httpClient, sideEffects } = arguments[
|
|
1171
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1172
|
-
|
|
1173
|
-
programId: options?.programId,
|
|
1174
|
-
returnEntity: options?.returnEntity
|
|
1175
|
-
});
|
|
1176
|
-
const reqOpts = bulkApproveParticipant(payload);
|
|
1042
|
+
async function getAccessStatus2() {
|
|
1043
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1044
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
1045
|
+
const reqOpts = getAccessStatus(payload);
|
|
1177
1046
|
sideEffects?.onSiteCall?.();
|
|
1178
1047
|
try {
|
|
1179
1048
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1184,26 +1053,23 @@ async function bulkApproveParticipant2(participantIds, options) {
|
|
|
1184
1053
|
err,
|
|
1185
1054
|
{
|
|
1186
1055
|
spreadPathsToArguments: {},
|
|
1187
|
-
explicitPathsToArguments: {
|
|
1188
|
-
participantIds: "$[0]",
|
|
1189
|
-
programId: "$[1].programId",
|
|
1190
|
-
returnEntity: "$[1].returnEntity"
|
|
1191
|
-
},
|
|
1056
|
+
explicitPathsToArguments: {},
|
|
1192
1057
|
singleArgumentUnchanged: false
|
|
1193
1058
|
},
|
|
1194
|
-
[
|
|
1059
|
+
[]
|
|
1195
1060
|
);
|
|
1196
1061
|
sideEffects?.onError?.(err);
|
|
1197
1062
|
throw transformedError;
|
|
1198
1063
|
}
|
|
1199
1064
|
}
|
|
1200
|
-
async function
|
|
1201
|
-
const { httpClient, sideEffects } = arguments[
|
|
1065
|
+
async function bulkInviteToProgram2(programId, options) {
|
|
1066
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1202
1067
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1203
|
-
programId
|
|
1204
|
-
|
|
1068
|
+
programId,
|
|
1069
|
+
memberIds: options?.memberIds,
|
|
1070
|
+
returnEntity: options?.returnEntity
|
|
1205
1071
|
});
|
|
1206
|
-
const reqOpts =
|
|
1072
|
+
const reqOpts = bulkInviteToProgram(payload);
|
|
1207
1073
|
sideEffects?.onSiteCall?.();
|
|
1208
1074
|
try {
|
|
1209
1075
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1215,47 +1081,55 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
1215
1081
|
{
|
|
1216
1082
|
spreadPathsToArguments: {},
|
|
1217
1083
|
explicitPathsToArguments: {
|
|
1218
|
-
programId: "$[0]
|
|
1219
|
-
|
|
1084
|
+
programId: "$[0]",
|
|
1085
|
+
memberIds: "$[1].memberIds",
|
|
1086
|
+
returnEntity: "$[1].returnEntity"
|
|
1220
1087
|
},
|
|
1221
1088
|
singleArgumentUnchanged: false
|
|
1222
1089
|
},
|
|
1223
|
-
["options"]
|
|
1090
|
+
["programId", "options"]
|
|
1224
1091
|
);
|
|
1225
1092
|
sideEffects?.onError?.(err);
|
|
1226
1093
|
throw transformedError;
|
|
1227
1094
|
}
|
|
1228
1095
|
}
|
|
1229
|
-
async function
|
|
1230
|
-
const { httpClient, sideEffects } = arguments[
|
|
1096
|
+
async function bulkInviteAllToProgram2(programId, options) {
|
|
1097
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1231
1098
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1232
|
-
|
|
1099
|
+
programId,
|
|
1100
|
+
excludeMemberIds: options?.excludeMemberIds
|
|
1233
1101
|
});
|
|
1234
|
-
const reqOpts =
|
|
1102
|
+
const reqOpts = bulkInviteAllToProgram(payload);
|
|
1235
1103
|
sideEffects?.onSiteCall?.();
|
|
1236
1104
|
try {
|
|
1237
1105
|
const result = await httpClient.request(reqOpts);
|
|
1238
1106
|
sideEffects?.onSuccess?.(result);
|
|
1107
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1239
1108
|
} catch (err) {
|
|
1240
1109
|
const transformedError = sdkTransformError(
|
|
1241
1110
|
err,
|
|
1242
1111
|
{
|
|
1243
1112
|
spreadPathsToArguments: {},
|
|
1244
|
-
explicitPathsToArguments: {
|
|
1113
|
+
explicitPathsToArguments: {
|
|
1114
|
+
programId: "$[0]",
|
|
1115
|
+
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1116
|
+
},
|
|
1245
1117
|
singleArgumentUnchanged: false
|
|
1246
1118
|
},
|
|
1247
|
-
["
|
|
1119
|
+
["programId", "options"]
|
|
1248
1120
|
);
|
|
1249
1121
|
sideEffects?.onError?.(err);
|
|
1250
1122
|
throw transformedError;
|
|
1251
1123
|
}
|
|
1252
1124
|
}
|
|
1253
|
-
async function
|
|
1254
|
-
const { httpClient, sideEffects } = arguments[
|
|
1125
|
+
async function bulkAddToProgram2(programId, options) {
|
|
1126
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1255
1127
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1256
|
-
|
|
1128
|
+
programId,
|
|
1129
|
+
memberIds: options?.memberIds,
|
|
1130
|
+
returnEntity: options?.returnEntity
|
|
1257
1131
|
});
|
|
1258
|
-
const reqOpts =
|
|
1132
|
+
const reqOpts = bulkAddToProgram(payload);
|
|
1259
1133
|
sideEffects?.onSiteCall?.();
|
|
1260
1134
|
try {
|
|
1261
1135
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1266,21 +1140,27 @@ async function issueCertificate2(participantId) {
|
|
|
1266
1140
|
err,
|
|
1267
1141
|
{
|
|
1268
1142
|
spreadPathsToArguments: {},
|
|
1269
|
-
explicitPathsToArguments: {
|
|
1143
|
+
explicitPathsToArguments: {
|
|
1144
|
+
programId: "$[0]",
|
|
1145
|
+
memberIds: "$[1].memberIds",
|
|
1146
|
+
returnEntity: "$[1].returnEntity"
|
|
1147
|
+
},
|
|
1270
1148
|
singleArgumentUnchanged: false
|
|
1271
1149
|
},
|
|
1272
|
-
["
|
|
1150
|
+
["programId", "options"]
|
|
1273
1151
|
);
|
|
1274
1152
|
sideEffects?.onError?.(err);
|
|
1275
1153
|
throw transformedError;
|
|
1276
1154
|
}
|
|
1277
1155
|
}
|
|
1278
|
-
async function
|
|
1279
|
-
const { httpClient, sideEffects } = arguments[
|
|
1156
|
+
async function bulkApproveParticipant2(participantIds, options) {
|
|
1157
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1280
1158
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1281
|
-
|
|
1159
|
+
participantIds,
|
|
1160
|
+
programId: options?.programId,
|
|
1161
|
+
returnEntity: options?.returnEntity
|
|
1282
1162
|
});
|
|
1283
|
-
const reqOpts =
|
|
1163
|
+
const reqOpts = bulkApproveParticipant(payload);
|
|
1284
1164
|
sideEffects?.onSiteCall?.();
|
|
1285
1165
|
try {
|
|
1286
1166
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1291,19 +1171,26 @@ async function getCompletionStats2(programId) {
|
|
|
1291
1171
|
err,
|
|
1292
1172
|
{
|
|
1293
1173
|
spreadPathsToArguments: {},
|
|
1294
|
-
explicitPathsToArguments: {
|
|
1174
|
+
explicitPathsToArguments: {
|
|
1175
|
+
participantIds: "$[0]",
|
|
1176
|
+
programId: "$[1].programId",
|
|
1177
|
+
returnEntity: "$[1].returnEntity"
|
|
1178
|
+
},
|
|
1295
1179
|
singleArgumentUnchanged: false
|
|
1296
1180
|
},
|
|
1297
|
-
["
|
|
1181
|
+
["participantIds", "options"]
|
|
1298
1182
|
);
|
|
1299
1183
|
sideEffects?.onError?.(err);
|
|
1300
1184
|
throw transformedError;
|
|
1301
1185
|
}
|
|
1302
1186
|
}
|
|
1303
|
-
async function
|
|
1304
|
-
const { httpClient, sideEffects } = arguments[
|
|
1305
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1306
|
-
|
|
1187
|
+
async function bulkApproveAllParticipant2(options) {
|
|
1188
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1189
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1190
|
+
programId: options?.programId,
|
|
1191
|
+
excludeParticipantIds: options?.excludeParticipantIds
|
|
1192
|
+
});
|
|
1193
|
+
const reqOpts = bulkApproveAllParticipant(payload);
|
|
1307
1194
|
sideEffects?.onSiteCall?.();
|
|
1308
1195
|
try {
|
|
1309
1196
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1314,10 +1201,13 @@ async function getPremiumStats2() {
|
|
|
1314
1201
|
err,
|
|
1315
1202
|
{
|
|
1316
1203
|
spreadPathsToArguments: {},
|
|
1317
|
-
explicitPathsToArguments: {
|
|
1204
|
+
explicitPathsToArguments: {
|
|
1205
|
+
programId: "$[0].programId",
|
|
1206
|
+
excludeParticipantIds: "$[0].excludeParticipantIds"
|
|
1207
|
+
},
|
|
1318
1208
|
singleArgumentUnchanged: false
|
|
1319
1209
|
},
|
|
1320
|
-
[]
|
|
1210
|
+
["options"]
|
|
1321
1211
|
);
|
|
1322
1212
|
sideEffects?.onError?.(err);
|
|
1323
1213
|
throw transformedError;
|
|
@@ -1349,51 +1239,78 @@ async function exportParticipantsStats2(programId) {
|
|
|
1349
1239
|
}
|
|
1350
1240
|
|
|
1351
1241
|
// src/online-programs-v3-participant-participants.public.ts
|
|
1352
|
-
function
|
|
1353
|
-
return (
|
|
1242
|
+
function createParticipant3(httpClient) {
|
|
1243
|
+
return (participant) => createParticipant2(
|
|
1244
|
+
participant,
|
|
1245
|
+
// @ts-ignore
|
|
1246
|
+
{ httpClient }
|
|
1247
|
+
);
|
|
1248
|
+
}
|
|
1249
|
+
function bulkCreateParticipant3(httpClient) {
|
|
1250
|
+
return (participants, options) => bulkCreateParticipant2(
|
|
1251
|
+
participants,
|
|
1252
|
+
options,
|
|
1253
|
+
// @ts-ignore
|
|
1254
|
+
{ httpClient }
|
|
1255
|
+
);
|
|
1256
|
+
}
|
|
1257
|
+
function bulkAddAllToProgram3(httpClient) {
|
|
1258
|
+
return (programId, options) => bulkAddAllToProgram2(
|
|
1354
1259
|
programId,
|
|
1260
|
+
options,
|
|
1355
1261
|
// @ts-ignore
|
|
1356
1262
|
{ httpClient }
|
|
1357
1263
|
);
|
|
1358
1264
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return (participantId) =>
|
|
1265
|
+
function deleteParticipant3(httpClient) {
|
|
1266
|
+
return (participantId) => deleteParticipant2(
|
|
1361
1267
|
participantId,
|
|
1362
1268
|
// @ts-ignore
|
|
1363
1269
|
{ httpClient }
|
|
1364
1270
|
);
|
|
1365
1271
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return (participantId) =>
|
|
1272
|
+
function issueCertificate3(httpClient) {
|
|
1273
|
+
return (participantId) => issueCertificate2(
|
|
1368
1274
|
participantId,
|
|
1369
1275
|
// @ts-ignore
|
|
1370
1276
|
{ httpClient }
|
|
1371
1277
|
);
|
|
1372
1278
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return () =>
|
|
1279
|
+
function getCompletionStats3(httpClient) {
|
|
1280
|
+
return (programId) => getCompletionStats2(
|
|
1281
|
+
programId,
|
|
1375
1282
|
// @ts-ignore
|
|
1376
1283
|
{ httpClient }
|
|
1377
1284
|
);
|
|
1378
1285
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return () =>
|
|
1286
|
+
function getPremiumStats3(httpClient) {
|
|
1287
|
+
return () => getPremiumStats2(
|
|
1381
1288
|
// @ts-ignore
|
|
1382
1289
|
{ httpClient }
|
|
1383
1290
|
);
|
|
1384
1291
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return (
|
|
1387
|
-
|
|
1388
|
-
|
|
1292
|
+
function getParticipant3(httpClient) {
|
|
1293
|
+
return (participantId) => getParticipant2(
|
|
1294
|
+
participantId,
|
|
1295
|
+
// @ts-ignore
|
|
1296
|
+
{ httpClient }
|
|
1297
|
+
);
|
|
1298
|
+
}
|
|
1299
|
+
function queryParticipants3(httpClient) {
|
|
1300
|
+
return () => queryParticipants2(
|
|
1301
|
+
// @ts-ignore
|
|
1302
|
+
{ httpClient }
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
function typedQueryParticipants2(httpClient) {
|
|
1306
|
+
return (query) => typedQueryParticipants(
|
|
1307
|
+
query,
|
|
1389
1308
|
// @ts-ignore
|
|
1390
1309
|
{ httpClient }
|
|
1391
1310
|
);
|
|
1392
1311
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return (
|
|
1395
|
-
identifiers,
|
|
1396
|
-
orderId,
|
|
1312
|
+
function getAccessStatus3(httpClient) {
|
|
1313
|
+
return () => getAccessStatus2(
|
|
1397
1314
|
// @ts-ignore
|
|
1398
1315
|
{ httpClient }
|
|
1399
1316
|
);
|
|
@@ -1422,14 +1339,6 @@ function bulkAddToProgram3(httpClient) {
|
|
|
1422
1339
|
{ httpClient }
|
|
1423
1340
|
);
|
|
1424
1341
|
}
|
|
1425
|
-
function bulkAddAllToProgram3(httpClient) {
|
|
1426
|
-
return (programId, options) => bulkAddAllToProgram2(
|
|
1427
|
-
programId,
|
|
1428
|
-
options,
|
|
1429
|
-
// @ts-ignore
|
|
1430
|
-
{ httpClient }
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
1342
|
function bulkApproveParticipant3(httpClient) {
|
|
1434
1343
|
return (participantIds, options) => bulkApproveParticipant2(
|
|
1435
1344
|
participantIds,
|
|
@@ -1445,33 +1354,6 @@ function bulkApproveAllParticipant3(httpClient) {
|
|
|
1445
1354
|
{ httpClient }
|
|
1446
1355
|
);
|
|
1447
1356
|
}
|
|
1448
|
-
function deleteParticipant3(httpClient) {
|
|
1449
|
-
return (participantId) => deleteParticipant2(
|
|
1450
|
-
participantId,
|
|
1451
|
-
// @ts-ignore
|
|
1452
|
-
{ httpClient }
|
|
1453
|
-
);
|
|
1454
|
-
}
|
|
1455
|
-
function issueCertificate3(httpClient) {
|
|
1456
|
-
return (participantId) => issueCertificate2(
|
|
1457
|
-
participantId,
|
|
1458
|
-
// @ts-ignore
|
|
1459
|
-
{ httpClient }
|
|
1460
|
-
);
|
|
1461
|
-
}
|
|
1462
|
-
function getCompletionStats3(httpClient) {
|
|
1463
|
-
return (programId) => getCompletionStats2(
|
|
1464
|
-
programId,
|
|
1465
|
-
// @ts-ignore
|
|
1466
|
-
{ httpClient }
|
|
1467
|
-
);
|
|
1468
|
-
}
|
|
1469
|
-
function getPremiumStats3(httpClient) {
|
|
1470
|
-
return () => getPremiumStats2(
|
|
1471
|
-
// @ts-ignore
|
|
1472
|
-
{ httpClient }
|
|
1473
|
-
);
|
|
1474
|
-
}
|
|
1475
1357
|
function exportParticipantsStats3(httpClient) {
|
|
1476
1358
|
return (programId) => exportParticipantsStats2(
|
|
1477
1359
|
programId,
|
|
@@ -1479,62 +1361,8 @@ function exportParticipantsStats3(httpClient) {
|
|
|
1479
1361
|
{ httpClient }
|
|
1480
1362
|
);
|
|
1481
1363
|
}
|
|
1482
|
-
var onParticipantJoined = EventDefinition(
|
|
1483
|
-
"wix.online_programs.v3.participant_participant_joined",
|
|
1484
|
-
true,
|
|
1485
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1486
|
-
transformPaths3(event, [
|
|
1487
|
-
{
|
|
1488
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1489
|
-
paths: [
|
|
1490
|
-
{ path: "data.participant.createdDate" },
|
|
1491
|
-
{ path: "data.participant.updatedDate" },
|
|
1492
|
-
{ path: "data.participant.certificate.issuedDate" },
|
|
1493
|
-
{ path: "metadata.eventTime" }
|
|
1494
|
-
]
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
transformFn: transformRESTFloatToSDKFloat2,
|
|
1498
|
-
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1499
|
-
}
|
|
1500
|
-
])
|
|
1501
|
-
)
|
|
1502
|
-
)();
|
|
1503
|
-
var onParticipantLeft = EventDefinition(
|
|
1504
|
-
"wix.online_programs.v3.participant_participant_left",
|
|
1505
|
-
true,
|
|
1506
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1507
|
-
transformPaths3(event, [
|
|
1508
|
-
{
|
|
1509
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1510
|
-
paths: [{ path: "metadata.eventTime" }]
|
|
1511
|
-
}
|
|
1512
|
-
])
|
|
1513
|
-
)
|
|
1514
|
-
)();
|
|
1515
|
-
var onParticipantDeleted = EventDefinition(
|
|
1516
|
-
"wix.online_programs.v3.participant_deleted",
|
|
1517
|
-
true,
|
|
1518
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1519
|
-
transformPaths3(event, [
|
|
1520
|
-
{
|
|
1521
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1522
|
-
paths: [
|
|
1523
|
-
{ path: "entity.createdDate" },
|
|
1524
|
-
{ path: "entity.updatedDate" },
|
|
1525
|
-
{ path: "entity.certificate.issuedDate" },
|
|
1526
|
-
{ path: "metadata.eventTime" }
|
|
1527
|
-
]
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
transformFn: transformRESTFloatToSDKFloat2,
|
|
1531
|
-
paths: [{ path: "entity.progress.completionPercentage" }]
|
|
1532
|
-
}
|
|
1533
|
-
])
|
|
1534
|
-
)
|
|
1535
|
-
)();
|
|
1536
1364
|
var onParticipantAdded = EventDefinition(
|
|
1537
|
-
"wix.online_programs.v3.
|
|
1365
|
+
"wix.online_programs.v3.participant_added",
|
|
1538
1366
|
true,
|
|
1539
1367
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1540
1368
|
transformPaths3(event, [
|
|
@@ -1569,47 +1397,38 @@ var onParticipantInvited = EventDefinition(
|
|
|
1569
1397
|
])
|
|
1570
1398
|
)
|
|
1571
1399
|
)();
|
|
1572
|
-
var onParticipantRejected = EventDefinition(
|
|
1573
|
-
"wix.online_programs.v3.participant_participant_rejected",
|
|
1574
|
-
true,
|
|
1575
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1576
|
-
transformPaths3(event, [
|
|
1577
|
-
{
|
|
1578
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1579
|
-
paths: [{ path: "metadata.eventTime" }]
|
|
1580
|
-
}
|
|
1581
|
-
])
|
|
1582
|
-
)
|
|
1583
|
-
)();
|
|
1584
1400
|
|
|
1585
1401
|
// src/online-programs-v3-participant-participants.context.ts
|
|
1586
1402
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1587
1403
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1588
|
-
|
|
1404
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
1405
|
+
function customQueryParticipants(httpClient) {
|
|
1406
|
+
const router = createQueryOverloadRouter({
|
|
1407
|
+
builderQueryFunction: () => queryParticipants3(httpClient)(),
|
|
1408
|
+
typedQueryFunction: (query) => typedQueryParticipants2(httpClient)(query),
|
|
1409
|
+
hasOptionsParameter: false
|
|
1410
|
+
});
|
|
1411
|
+
function overloadedQuery(query) {
|
|
1412
|
+
return router(...arguments);
|
|
1413
|
+
}
|
|
1414
|
+
return overloadedQuery;
|
|
1415
|
+
}
|
|
1416
|
+
var createParticipant4 = /* @__PURE__ */ createRESTModule(createParticipant3);
|
|
1417
|
+
var bulkCreateParticipant4 = /* @__PURE__ */ createRESTModule(bulkCreateParticipant3);
|
|
1418
|
+
var bulkAddAllToProgram4 = /* @__PURE__ */ createRESTModule(bulkAddAllToProgram3);
|
|
1419
|
+
var deleteParticipant4 = /* @__PURE__ */ createRESTModule(deleteParticipant3);
|
|
1420
|
+
var issueCertificate4 = /* @__PURE__ */ createRESTModule(issueCertificate3);
|
|
1421
|
+
var getCompletionStats4 = /* @__PURE__ */ createRESTModule(getCompletionStats3);
|
|
1422
|
+
var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
|
|
1589
1423
|
var getParticipant4 = /* @__PURE__ */ createRESTModule(getParticipant3);
|
|
1590
|
-
var leaveProgram4 = /* @__PURE__ */ createRESTModule(leaveProgram3);
|
|
1591
|
-
var queryParticipants4 = /* @__PURE__ */ createRESTModule(queryParticipants3);
|
|
1592
1424
|
var getAccessStatus4 = /* @__PURE__ */ createRESTModule(getAccessStatus3);
|
|
1593
|
-
var applyCoupon4 = /* @__PURE__ */ createRESTModule(applyCoupon3);
|
|
1594
|
-
var revertCoupon4 = /* @__PURE__ */ createRESTModule(revertCoupon3);
|
|
1595
1425
|
var bulkInviteToProgram4 = /* @__PURE__ */ createRESTModule(bulkInviteToProgram3);
|
|
1596
1426
|
var bulkInviteAllToProgram4 = /* @__PURE__ */ createRESTModule(bulkInviteAllToProgram3);
|
|
1597
1427
|
var bulkAddToProgram4 = /* @__PURE__ */ createRESTModule(bulkAddToProgram3);
|
|
1598
|
-
var bulkAddAllToProgram4 = /* @__PURE__ */ createRESTModule(bulkAddAllToProgram3);
|
|
1599
1428
|
var bulkApproveParticipant4 = /* @__PURE__ */ createRESTModule(bulkApproveParticipant3);
|
|
1600
1429
|
var bulkApproveAllParticipant4 = /* @__PURE__ */ createRESTModule(bulkApproveAllParticipant3);
|
|
1601
|
-
var deleteParticipant4 = /* @__PURE__ */ createRESTModule(deleteParticipant3);
|
|
1602
|
-
var issueCertificate4 = /* @__PURE__ */ createRESTModule(issueCertificate3);
|
|
1603
|
-
var getCompletionStats4 = /* @__PURE__ */ createRESTModule(getCompletionStats3);
|
|
1604
|
-
var getPremiumStats4 = /* @__PURE__ */ createRESTModule(getPremiumStats3);
|
|
1605
1430
|
var exportParticipantsStats4 = /* @__PURE__ */ createRESTModule(exportParticipantsStats3);
|
|
1606
|
-
var
|
|
1607
|
-
onParticipantJoined
|
|
1608
|
-
);
|
|
1609
|
-
var onParticipantLeft2 = createEventModule(onParticipantLeft);
|
|
1610
|
-
var onParticipantDeleted2 = createEventModule(
|
|
1611
|
-
onParticipantDeleted
|
|
1612
|
-
);
|
|
1431
|
+
var queryParticipants4 = /* @__PURE__ */ createRESTModule(customQueryParticipants);
|
|
1613
1432
|
var onParticipantAdded2 = createEventModule(onParticipantAdded);
|
|
1614
1433
|
var onParticipantApproved2 = createEventModule(
|
|
1615
1434
|
onParticipantApproved
|
|
@@ -1617,33 +1436,21 @@ var onParticipantApproved2 = createEventModule(
|
|
|
1617
1436
|
var onParticipantInvited2 = createEventModule(
|
|
1618
1437
|
onParticipantInvited
|
|
1619
1438
|
);
|
|
1620
|
-
var onParticipantRejected2 = createEventModule(
|
|
1621
|
-
onParticipantRejected
|
|
1622
|
-
);
|
|
1623
1439
|
export {
|
|
1624
1440
|
BenefitType,
|
|
1625
1441
|
Event,
|
|
1626
|
-
EventType,
|
|
1627
|
-
Initiator,
|
|
1628
1442
|
JoinPath,
|
|
1629
|
-
OrderItemCategory,
|
|
1630
|
-
RefundStatus,
|
|
1631
|
-
RemovalReason,
|
|
1632
|
-
ScheduledActionType,
|
|
1633
1443
|
SortOrder,
|
|
1634
1444
|
State,
|
|
1635
|
-
Status,
|
|
1636
|
-
SubdivisionType,
|
|
1637
|
-
TransactionStatus,
|
|
1638
|
-
VatType,
|
|
1639
1445
|
WebhookIdentityType,
|
|
1640
|
-
applyCoupon4 as applyCoupon,
|
|
1641
1446
|
bulkAddAllToProgram4 as bulkAddAllToProgram,
|
|
1642
1447
|
bulkAddToProgram4 as bulkAddToProgram,
|
|
1643
1448
|
bulkApproveAllParticipant4 as bulkApproveAllParticipant,
|
|
1644
1449
|
bulkApproveParticipant4 as bulkApproveParticipant,
|
|
1450
|
+
bulkCreateParticipant4 as bulkCreateParticipant,
|
|
1645
1451
|
bulkInviteAllToProgram4 as bulkInviteAllToProgram,
|
|
1646
1452
|
bulkInviteToProgram4 as bulkInviteToProgram,
|
|
1453
|
+
createParticipant4 as createParticipant,
|
|
1647
1454
|
deleteParticipant4 as deleteParticipant,
|
|
1648
1455
|
exportParticipantsStats4 as exportParticipantsStats,
|
|
1649
1456
|
getAccessStatus4 as getAccessStatus,
|
|
@@ -1651,16 +1458,9 @@ export {
|
|
|
1651
1458
|
getParticipant4 as getParticipant,
|
|
1652
1459
|
getPremiumStats4 as getPremiumStats,
|
|
1653
1460
|
issueCertificate4 as issueCertificate,
|
|
1654
|
-
joinProgram4 as joinProgram,
|
|
1655
|
-
leaveProgram4 as leaveProgram,
|
|
1656
1461
|
onParticipantAdded2 as onParticipantAdded,
|
|
1657
1462
|
onParticipantApproved2 as onParticipantApproved,
|
|
1658
|
-
onParticipantDeleted2 as onParticipantDeleted,
|
|
1659
1463
|
onParticipantInvited2 as onParticipantInvited,
|
|
1660
|
-
|
|
1661
|
-
onParticipantLeft2 as onParticipantLeft,
|
|
1662
|
-
onParticipantRejected2 as onParticipantRejected,
|
|
1663
|
-
queryParticipants4 as queryParticipants,
|
|
1664
|
-
revertCoupon4 as revertCoupon
|
|
1464
|
+
queryParticipants4 as queryParticipants
|
|
1665
1465
|
};
|
|
1666
1466
|
//# sourceMappingURL=index.mjs.map
|