@wix/auto_sdk_online-programs_participants 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +70 -99
  2. package/build/cjs/index.js +447 -705
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +291 -916
  5. package/build/cjs/index.typings.js +358 -514
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +213 -757
  8. package/build/cjs/meta.js +277 -418
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +70 -99
  11. package/build/es/index.mjs +440 -682
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +291 -916
  14. package/build/es/index.typings.mjs +379 -523
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +213 -757
  17. package/build/es/meta.mjs +261 -390
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +70 -99
  20. package/build/internal/cjs/index.js +447 -705
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +291 -916
  23. package/build/internal/cjs/index.typings.js +358 -514
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +213 -757
  26. package/build/internal/cjs/meta.js +277 -418
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +70 -99
  29. package/build/internal/es/index.mjs +440 -682
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +291 -916
  32. package/build/internal/es/index.typings.mjs +379 -523
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +213 -757
  35. package/build/internal/es/meta.mjs +261 -390
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -22,27 +22,18 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  BenefitType: () => BenefitType,
24
24
  Event: () => Event,
25
- EventType: () => EventType,
26
- Initiator: () => Initiator,
27
25
  JoinPath: () => JoinPath,
28
- OrderItemCategory: () => OrderItemCategory,
29
- RefundStatus: () => RefundStatus,
30
- RemovalReason: () => RemovalReason,
31
- ScheduledActionType: () => ScheduledActionType,
32
26
  SortOrder: () => SortOrder,
33
27
  State: () => State,
34
- Status: () => Status,
35
- SubdivisionType: () => SubdivisionType,
36
- TransactionStatus: () => TransactionStatus,
37
- VatType: () => VatType,
38
28
  WebhookIdentityType: () => WebhookIdentityType,
39
- applyCoupon: () => applyCoupon4,
40
29
  bulkAddAllToProgram: () => bulkAddAllToProgram4,
41
30
  bulkAddToProgram: () => bulkAddToProgram4,
42
31
  bulkApproveAllParticipant: () => bulkApproveAllParticipant4,
43
32
  bulkApproveParticipant: () => bulkApproveParticipant4,
33
+ bulkCreateParticipant: () => bulkCreateParticipant4,
44
34
  bulkInviteAllToProgram: () => bulkInviteAllToProgram4,
45
35
  bulkInviteToProgram: () => bulkInviteToProgram4,
36
+ createParticipant: () => createParticipant4,
46
37
  deleteParticipant: () => deleteParticipant4,
47
38
  exportParticipantsStats: () => exportParticipantsStats4,
48
39
  getAccessStatus: () => getAccessStatus4,
@@ -50,24 +41,16 @@ __export(index_exports, {
50
41
  getParticipant: () => getParticipant4,
51
42
  getPremiumStats: () => getPremiumStats4,
52
43
  issueCertificate: () => issueCertificate4,
53
- joinProgram: () => joinProgram4,
54
- leaveProgram: () => leaveProgram4,
55
44
  onParticipantAdded: () => onParticipantAdded2,
56
45
  onParticipantApproved: () => onParticipantApproved2,
57
- onParticipantDeleted: () => onParticipantDeleted2,
58
46
  onParticipantInvited: () => onParticipantInvited2,
59
- onParticipantJoined: () => onParticipantJoined2,
60
- onParticipantLeft: () => onParticipantLeft2,
61
- onParticipantRejected: () => onParticipantRejected2,
62
- queryParticipants: () => queryParticipants4,
63
- revertCoupon: () => revertCoupon4
47
+ queryParticipants: () => queryParticipants4
64
48
  });
65
49
  module.exports = __toCommonJS(index_exports);
66
50
 
67
51
  // src/online-programs-v3-participant-participants.public.ts
68
52
  var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
69
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
70
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
53
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
71
54
  var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
72
55
  var import_sdk_types = require("@wix/sdk-types");
73
56
 
@@ -79,7 +62,9 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
79
62
  // src/online-programs-v3-participant-participants.http.ts
80
63
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
81
64
  var import_float = require("@wix/sdk-runtime/transformations/float");
65
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
82
66
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
67
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
83
68
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
84
69
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
85
70
  function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
@@ -278,88 +263,124 @@ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
278
263
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
279
264
  }
280
265
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
281
- function joinProgram(payload) {
282
- function __joinProgram({ host }) {
266
+ function createParticipant(payload) {
267
+ function __createParticipant({ host }) {
268
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
269
+ {
270
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
271
+ paths: [
272
+ { path: "participant.createdDate" },
273
+ { path: "participant.updatedDate" },
274
+ { path: "participant.lastActivityDate" },
275
+ { path: "participant.certificate.issuedDate" },
276
+ { path: "participant.joinedInfo.joinedAt" }
277
+ ]
278
+ },
279
+ {
280
+ transformFn: import_float.transformSDKFloatToRESTFloat,
281
+ paths: [{ path: "participant.progress.completionPercentage" }]
282
+ }
283
+ ]);
283
284
  const metadata = {
284
285
  entityFqdn: "wix.online_programs.v3.participant",
285
286
  method: "POST",
286
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.JoinProgram",
287
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
287
288
  packageName: PACKAGE_NAME,
288
289
  migrationOptions: {
289
290
  optInTransformResponse: true
290
291
  },
291
292
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
292
- protoPath: "/v3/participants/join",
293
- data: payload,
293
+ protoPath: "/v3/participants",
294
+ data: serializedData,
294
295
  host
295
296
  }),
296
- data: payload,
297
+ data: serializedData,
297
298
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
298
299
  {
299
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
300
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
300
301
  paths: [
301
302
  { path: "participant.createdDate" },
302
303
  { path: "participant.updatedDate" },
303
- { path: "participant.certificate.issuedDate" }
304
+ { path: "participant.lastActivityDate" },
305
+ { path: "participant.certificate.issuedDate" },
306
+ { path: "participant.joinedInfo.joinedAt" }
304
307
  ]
305
308
  },
306
309
  {
307
- transformFn: import_float.transformRESTFloatToSDKFloat,
310
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
308
311
  paths: [{ path: "participant.progress.completionPercentage" }]
309
312
  }
310
313
  ])
311
314
  };
312
315
  return metadata;
313
316
  }
314
- return __joinProgram;
317
+ return __createParticipant;
315
318
  }
316
- function getParticipant(payload) {
317
- function __getParticipant({ host }) {
319
+ function bulkCreateParticipant(payload) {
320
+ function __bulkCreateParticipant({ host }) {
321
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
322
+ {
323
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
324
+ paths: [
325
+ { path: "participants.createdDate" },
326
+ { path: "participants.updatedDate" },
327
+ { path: "participants.lastActivityDate" },
328
+ { path: "participants.certificate.issuedDate" },
329
+ { path: "participants.joinedInfo.joinedAt" }
330
+ ]
331
+ },
332
+ {
333
+ transformFn: import_float.transformSDKFloatToRESTFloat,
334
+ paths: [{ path: "participants.progress.completionPercentage" }]
335
+ }
336
+ ]);
318
337
  const metadata = {
319
338
  entityFqdn: "wix.online_programs.v3.participant",
320
- method: "GET",
321
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
339
+ method: "POST",
340
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
322
341
  packageName: PACKAGE_NAME,
323
342
  migrationOptions: {
324
343
  optInTransformResponse: true
325
344
  },
326
345
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
327
- protoPath: "/v3/participants/{participantId}",
328
- data: payload,
346
+ protoPath: "/v3/bulk/participants/create",
347
+ data: serializedData,
329
348
  host
330
349
  }),
331
- params: (0, import_rest_modules.toURLSearchParams)(payload),
350
+ data: serializedData,
332
351
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
333
352
  {
334
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
353
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
335
354
  paths: [
336
- { path: "participant.createdDate" },
337
- { path: "participant.updatedDate" },
338
- { path: "participant.certificate.issuedDate" }
355
+ { path: "results.item.createdDate" },
356
+ { path: "results.item.updatedDate" },
357
+ { path: "results.item.lastActivityDate" },
358
+ { path: "results.item.certificate.issuedDate" },
359
+ { path: "results.item.joinedInfo.joinedAt" }
339
360
  ]
340
361
  },
341
362
  {
342
- transformFn: import_float.transformRESTFloatToSDKFloat,
343
- paths: [{ path: "participant.progress.completionPercentage" }]
363
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
364
+ paths: [{ path: "results.item.progress.completionPercentage" }]
344
365
  }
345
366
  ])
346
367
  };
347
368
  return metadata;
348
369
  }
349
- return __getParticipant;
370
+ return __bulkCreateParticipant;
350
371
  }
351
- function leaveProgram(payload) {
352
- function __leaveProgram({ host }) {
372
+ function bulkAddAllToProgram(payload) {
373
+ function __bulkAddAllToProgram({ host }) {
353
374
  const metadata = {
354
375
  entityFqdn: "wix.online_programs.v3.participant",
355
376
  method: "POST",
356
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.LeaveProgram",
377
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
357
378
  packageName: PACKAGE_NAME,
358
379
  migrationOptions: {
359
380
  optInTransformResponse: true
360
381
  },
361
382
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
362
- protoPath: "/v3/participants/{participantId}/leave",
383
+ protoPath: "/v3/bulk/participants/add-all",
363
384
  data: payload,
364
385
  host
365
386
  }),
@@ -367,55 +388,105 @@ function leaveProgram(payload) {
367
388
  };
368
389
  return metadata;
369
390
  }
370
- return __leaveProgram;
391
+ return __bulkAddAllToProgram;
371
392
  }
372
- function queryParticipants(payload) {
373
- function __queryParticipants({ host }) {
393
+ function deleteParticipant(payload) {
394
+ function __deleteParticipant({ host }) {
395
+ const metadata = {
396
+ entityFqdn: "wix.online_programs.v3.participant",
397
+ method: "DELETE",
398
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
399
+ packageName: PACKAGE_NAME,
400
+ migrationOptions: {
401
+ optInTransformResponse: true
402
+ },
403
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
404
+ protoPath: "/v3/participants/{participantId}",
405
+ data: payload,
406
+ host
407
+ }),
408
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
409
+ };
410
+ return metadata;
411
+ }
412
+ return __deleteParticipant;
413
+ }
414
+ function issueCertificate(payload) {
415
+ function __issueCertificate({ host }) {
374
416
  const metadata = {
375
417
  entityFqdn: "wix.online_programs.v3.participant",
376
418
  method: "POST",
377
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
419
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
378
420
  packageName: PACKAGE_NAME,
379
421
  migrationOptions: {
380
422
  optInTransformResponse: true
381
423
  },
382
424
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
383
- protoPath: "/v3/participants/query",
425
+ protoPath: "/v3/participants/{participantId}/issue-certificate",
384
426
  data: payload,
385
427
  host
386
428
  }),
387
429
  data: payload,
388
430
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
389
431
  {
390
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
432
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
391
433
  paths: [
392
- { path: "participants.createdDate" },
393
- { path: "participants.updatedDate" },
394
- { path: "participants.certificate.issuedDate" }
434
+ { path: "participant.createdDate" },
435
+ { path: "participant.updatedDate" },
436
+ { path: "participant.lastActivityDate" },
437
+ { path: "participant.certificate.issuedDate" },
438
+ { path: "participant.joinedInfo.joinedAt" }
395
439
  ]
396
440
  },
397
441
  {
398
- transformFn: import_float.transformRESTFloatToSDKFloat,
399
- paths: [{ path: "participants.progress.completionPercentage" }]
442
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
443
+ paths: [{ path: "participant.progress.completionPercentage" }]
400
444
  }
401
445
  ])
402
446
  };
403
447
  return metadata;
404
448
  }
405
- return __queryParticipants;
449
+ return __issueCertificate;
406
450
  }
407
- function getAccessStatus(payload) {
408
- function __getAccessStatus({ host }) {
451
+ function getCompletionStats(payload) {
452
+ function __getCompletionStats({ host }) {
409
453
  const metadata = {
410
454
  entityFqdn: "wix.online_programs.v3.participant",
411
455
  method: "GET",
412
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
456
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
413
457
  packageName: PACKAGE_NAME,
414
458
  migrationOptions: {
415
459
  optInTransformResponse: true
416
460
  },
417
461
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
418
- protoPath: "/v3/participants/access",
462
+ protoPath: "/v3/stats/completion/{programId}",
463
+ data: payload,
464
+ host
465
+ }),
466
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
467
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
468
+ {
469
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
470
+ paths: [{ path: "completionRate" }]
471
+ }
472
+ ])
473
+ };
474
+ return metadata;
475
+ }
476
+ return __getCompletionStats;
477
+ }
478
+ function getPremiumStats(payload) {
479
+ function __getPremiumStats({ host }) {
480
+ const metadata = {
481
+ entityFqdn: "wix.online_programs.v3.participant",
482
+ method: "GET",
483
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
484
+ packageName: PACKAGE_NAME,
485
+ migrationOptions: {
486
+ optInTransformResponse: true
487
+ },
488
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
489
+ protoPath: "/v3/stats/premium",
419
490
  data: payload,
420
491
  host
421
492
  }),
@@ -423,65 +494,102 @@ function getAccessStatus(payload) {
423
494
  };
424
495
  return metadata;
425
496
  }
426
- return __getAccessStatus;
497
+ return __getPremiumStats;
427
498
  }
428
- function applyCoupon(payload) {
429
- function __applyCoupon({ host }) {
499
+ function getParticipant(payload) {
500
+ function __getParticipant({ host }) {
430
501
  const metadata = {
431
502
  entityFqdn: "wix.online_programs.v3.participant",
432
- method: "POST",
433
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.ApplyCoupon",
503
+ method: "GET",
504
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
434
505
  packageName: PACKAGE_NAME,
435
506
  migrationOptions: {
436
507
  optInTransformResponse: true
437
508
  },
438
509
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
439
- protoPath: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
510
+ protoPath: "/v3/participants/{participantId}",
440
511
  data: payload,
441
512
  host
442
513
  }),
443
- data: payload,
514
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
444
515
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
445
516
  {
446
- transformFn: import_float.transformRESTFloatToSDKFloat,
517
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
447
518
  paths: [
448
- { path: "subTotal" },
449
- { path: "discount" },
450
- { path: "total" }
519
+ { path: "participant.createdDate" },
520
+ { path: "participant.updatedDate" },
521
+ { path: "participant.lastActivityDate" },
522
+ { path: "participant.certificate.issuedDate" },
523
+ { path: "participant.joinedInfo.joinedAt" }
451
524
  ]
525
+ },
526
+ {
527
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
528
+ paths: [{ path: "participant.progress.completionPercentage" }]
452
529
  }
453
530
  ])
454
531
  };
455
532
  return metadata;
456
533
  }
457
- return __applyCoupon;
534
+ return __getParticipant;
458
535
  }
459
- function revertCoupon(payload) {
460
- function __revertCoupon({ host }) {
536
+ function queryParticipants(payload) {
537
+ function __queryParticipants({ host }) {
461
538
  const metadata = {
462
539
  entityFqdn: "wix.online_programs.v3.participant",
463
540
  method: "POST",
464
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.RevertCoupon",
541
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
465
542
  packageName: PACKAGE_NAME,
466
543
  migrationOptions: {
467
544
  optInTransformResponse: true
468
545
  },
469
546
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
470
- protoPath: "/v3/participants/{participantId}/coupons/{couponId}/revert",
547
+ protoPath: "/v3/participants/query",
471
548
  data: payload,
472
549
  host
473
550
  }),
474
551
  data: payload,
475
552
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
476
553
  {
477
- transformFn: import_float.transformRESTFloatToSDKFloat,
478
- paths: [{ path: "total" }]
554
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
555
+ paths: [
556
+ { path: "participants.createdDate" },
557
+ { path: "participants.updatedDate" },
558
+ { path: "participants.lastActivityDate" },
559
+ { path: "participants.certificate.issuedDate" },
560
+ { path: "participants.joinedInfo.joinedAt" }
561
+ ]
562
+ },
563
+ {
564
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
565
+ paths: [{ path: "participants.progress.completionPercentage" }]
479
566
  }
480
567
  ])
481
568
  };
482
569
  return metadata;
483
570
  }
484
- return __revertCoupon;
571
+ return __queryParticipants;
572
+ }
573
+ function getAccessStatus(payload) {
574
+ function __getAccessStatus({ host }) {
575
+ const metadata = {
576
+ entityFqdn: "wix.online_programs.v3.participant",
577
+ method: "GET",
578
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
579
+ packageName: PACKAGE_NAME,
580
+ migrationOptions: {
581
+ optInTransformResponse: true
582
+ },
583
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
584
+ protoPath: "/v3/participants/access",
585
+ data: payload,
586
+ host
587
+ }),
588
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
589
+ };
590
+ return metadata;
591
+ }
592
+ return __getAccessStatus;
485
593
  }
486
594
  function bulkInviteToProgram(payload) {
487
595
  function __bulkInviteToProgram({ host }) {
@@ -501,15 +609,17 @@ function bulkInviteToProgram(payload) {
501
609
  data: payload,
502
610
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
503
611
  {
504
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
612
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
505
613
  paths: [
506
614
  { path: "results.item.createdDate" },
507
615
  { path: "results.item.updatedDate" },
508
- { path: "results.item.certificate.issuedDate" }
616
+ { path: "results.item.lastActivityDate" },
617
+ { path: "results.item.certificate.issuedDate" },
618
+ { path: "results.item.joinedInfo.joinedAt" }
509
619
  ]
510
620
  },
511
621
  {
512
- transformFn: import_float.transformRESTFloatToSDKFloat,
622
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
513
623
  paths: [{ path: "results.item.progress.completionPercentage" }]
514
624
  }
515
625
  ])
@@ -557,15 +667,17 @@ function bulkAddToProgram(payload) {
557
667
  data: payload,
558
668
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
559
669
  {
560
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
670
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
561
671
  paths: [
562
672
  { path: "results.item.createdDate" },
563
673
  { path: "results.item.updatedDate" },
564
- { path: "results.item.certificate.issuedDate" }
674
+ { path: "results.item.lastActivityDate" },
675
+ { path: "results.item.certificate.issuedDate" },
676
+ { path: "results.item.joinedInfo.joinedAt" }
565
677
  ]
566
678
  },
567
679
  {
568
- transformFn: import_float.transformRESTFloatToSDKFloat,
680
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
569
681
  paths: [{ path: "results.item.progress.completionPercentage" }]
570
682
  }
571
683
  ])
@@ -574,27 +686,6 @@ function bulkAddToProgram(payload) {
574
686
  }
575
687
  return __bulkAddToProgram;
576
688
  }
577
- function bulkAddAllToProgram(payload) {
578
- function __bulkAddAllToProgram({ host }) {
579
- const metadata = {
580
- entityFqdn: "wix.online_programs.v3.participant",
581
- method: "POST",
582
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
583
- packageName: PACKAGE_NAME,
584
- migrationOptions: {
585
- optInTransformResponse: true
586
- },
587
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
588
- protoPath: "/v3/bulk/participants/add-all",
589
- data: payload,
590
- host
591
- }),
592
- data: payload
593
- };
594
- return metadata;
595
- }
596
- return __bulkAddAllToProgram;
597
- }
598
689
  function bulkApproveParticipant(payload) {
599
690
  function __bulkApproveParticipant({ host }) {
600
691
  const metadata = {
@@ -613,15 +704,17 @@ function bulkApproveParticipant(payload) {
613
704
  data: payload,
614
705
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
615
706
  {
616
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
707
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
617
708
  paths: [
618
709
  { path: "results.item.createdDate" },
619
710
  { path: "results.item.updatedDate" },
620
- { path: "results.item.certificate.issuedDate" }
711
+ { path: "results.item.lastActivityDate" },
712
+ { path: "results.item.certificate.issuedDate" },
713
+ { path: "results.item.joinedInfo.joinedAt" }
621
714
  ]
622
715
  },
623
716
  {
624
- transformFn: import_float.transformRESTFloatToSDKFloat,
717
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
625
718
  paths: [{ path: "results.item.progress.completionPercentage" }]
626
719
  }
627
720
  ])
@@ -651,18 +744,18 @@ function bulkApproveAllParticipant(payload) {
651
744
  }
652
745
  return __bulkApproveAllParticipant;
653
746
  }
654
- function deleteParticipant(payload) {
655
- function __deleteParticipant({ host }) {
747
+ function exportParticipantsStats(payload) {
748
+ function __exportParticipantsStats({ host }) {
656
749
  const metadata = {
657
750
  entityFqdn: "wix.online_programs.v3.participant",
658
- method: "DELETE",
659
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
751
+ method: "GET",
752
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
660
753
  packageName: PACKAGE_NAME,
661
754
  migrationOptions: {
662
755
  optInTransformResponse: true
663
756
  },
664
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
665
- protoPath: "/v3/participants/{participantId}",
757
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
758
+ protoPath: "/v3/participants/export/{programId}",
666
759
  data: payload,
667
760
  host
668
761
  }),
@@ -670,247 +763,194 @@ function deleteParticipant(payload) {
670
763
  };
671
764
  return metadata;
672
765
  }
673
- return __deleteParticipant;
766
+ return __exportParticipantsStats;
674
767
  }
675
- function issueCertificate(payload) {
676
- function __issueCertificate({ host }) {
677
- const metadata = {
678
- entityFqdn: "wix.online_programs.v3.participant",
679
- method: "POST",
680
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
681
- packageName: PACKAGE_NAME,
682
- migrationOptions: {
683
- optInTransformResponse: true
768
+
769
+ // src/online-programs-v3-participant-participants.universal.ts
770
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
771
+ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
772
+ JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
773
+ JoinPath2["FREE"] = "FREE";
774
+ JoinPath2["ADDED"] = "ADDED";
775
+ JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
776
+ JoinPath2["PAID_PLAN"] = "PAID_PLAN";
777
+ JoinPath2["FREE_COUPON"] = "FREE_COUPON";
778
+ return JoinPath2;
779
+ })(JoinPath || {});
780
+ var State = /* @__PURE__ */ ((State2) => {
781
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
782
+ State2["JOINED"] = "JOINED";
783
+ State2["COMPLETED"] = "COMPLETED";
784
+ State2["FAILED"] = "FAILED";
785
+ State2["SUSPENDED"] = "SUSPENDED";
786
+ State2["AUTO_REMOVED"] = "AUTO_REMOVED";
787
+ State2["REMOVED"] = "REMOVED";
788
+ State2["LEFT"] = "LEFT";
789
+ return State2;
790
+ })(State || {});
791
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
792
+ SortOrder2["ASC"] = "ASC";
793
+ SortOrder2["DESC"] = "DESC";
794
+ return SortOrder2;
795
+ })(SortOrder || {});
796
+ var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
797
+ BenefitType2["UNDEFINED"] = "UNDEFINED";
798
+ BenefitType2["LIMITED"] = "LIMITED";
799
+ BenefitType2["UNLIMITED"] = "UNLIMITED";
800
+ return BenefitType2;
801
+ })(BenefitType || {});
802
+ var Event = /* @__PURE__ */ ((Event2) => {
803
+ Event2["Updated"] = "Updated";
804
+ Event2["Deleted"] = "Deleted";
805
+ Event2["Created"] = "Created";
806
+ return Event2;
807
+ })(Event || {});
808
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
809
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
810
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
811
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
812
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
813
+ WebhookIdentityType2["APP"] = "APP";
814
+ return WebhookIdentityType2;
815
+ })(WebhookIdentityType || {});
816
+ async function createParticipant2(participant) {
817
+ const { httpClient, sideEffects } = arguments[1];
818
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
819
+ participant
820
+ });
821
+ const reqOpts = createParticipant(payload);
822
+ sideEffects?.onSiteCall?.();
823
+ try {
824
+ const result = await httpClient.request(reqOpts);
825
+ sideEffects?.onSuccess?.(result);
826
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
827
+ } catch (err) {
828
+ const transformedError = (0, import_transform_error.transformError)(
829
+ err,
830
+ {
831
+ spreadPathsToArguments: {},
832
+ explicitPathsToArguments: { participant: "$[0]" },
833
+ singleArgumentUnchanged: false
684
834
  },
685
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
686
- protoPath: "/v3/participants/{participantId}/issue-certificate",
687
- data: payload,
688
- host
689
- }),
690
- data: payload,
691
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
692
- {
693
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
694
- paths: [
695
- { path: "participant.createdDate" },
696
- { path: "participant.updatedDate" },
697
- { path: "participant.certificate.issuedDate" }
698
- ]
835
+ ["participant"]
836
+ );
837
+ sideEffects?.onError?.(err);
838
+ throw transformedError;
839
+ }
840
+ }
841
+ async function bulkCreateParticipant2(participants, options) {
842
+ const { httpClient, sideEffects } = arguments[2];
843
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
844
+ participants,
845
+ returnEntity: options?.returnEntity
846
+ });
847
+ const reqOpts = bulkCreateParticipant(payload);
848
+ sideEffects?.onSiteCall?.();
849
+ try {
850
+ const result = await httpClient.request(reqOpts);
851
+ sideEffects?.onSuccess?.(result);
852
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
853
+ } catch (err) {
854
+ const transformedError = (0, import_transform_error.transformError)(
855
+ err,
856
+ {
857
+ spreadPathsToArguments: {},
858
+ explicitPathsToArguments: {
859
+ participants: "$[0]",
860
+ returnEntity: "$[1].returnEntity"
699
861
  },
700
- {
701
- transformFn: import_float.transformRESTFloatToSDKFloat,
702
- paths: [{ path: "participant.progress.completionPercentage" }]
703
- }
704
- ])
705
- };
706
- return metadata;
862
+ singleArgumentUnchanged: false
863
+ },
864
+ ["participants", "options"]
865
+ );
866
+ sideEffects?.onError?.(err);
867
+ throw transformedError;
707
868
  }
708
- return __issueCertificate;
709
869
  }
710
- function getCompletionStats(payload) {
711
- function __getCompletionStats({ host }) {
712
- const metadata = {
713
- entityFqdn: "wix.online_programs.v3.participant",
714
- method: "GET",
715
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
716
- packageName: PACKAGE_NAME,
717
- migrationOptions: {
718
- optInTransformResponse: true
870
+ async function bulkAddAllToProgram2(programId, options) {
871
+ const { httpClient, sideEffects } = arguments[2];
872
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
873
+ programId,
874
+ excludeMemberIds: options?.excludeMemberIds
875
+ });
876
+ const reqOpts = bulkAddAllToProgram(payload);
877
+ sideEffects?.onSiteCall?.();
878
+ try {
879
+ const result = await httpClient.request(reqOpts);
880
+ sideEffects?.onSuccess?.(result);
881
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
882
+ } catch (err) {
883
+ const transformedError = (0, import_transform_error.transformError)(
884
+ err,
885
+ {
886
+ spreadPathsToArguments: {},
887
+ explicitPathsToArguments: {
888
+ programId: "$[0]",
889
+ excludeMemberIds: "$[1].excludeMemberIds"
890
+ },
891
+ singleArgumentUnchanged: false
719
892
  },
720
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
721
- protoPath: "/v3/stats/completion/{programId}",
722
- data: payload,
723
- host
724
- }),
725
- params: (0, import_rest_modules.toURLSearchParams)(payload),
726
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
727
- {
728
- transformFn: import_float.transformRESTFloatToSDKFloat,
729
- paths: [{ path: "completionRate" }]
730
- }
731
- ])
732
- };
733
- return metadata;
893
+ ["programId", "options"]
894
+ );
895
+ sideEffects?.onError?.(err);
896
+ throw transformedError;
734
897
  }
735
- return __getCompletionStats;
736
898
  }
737
- function getPremiumStats(payload) {
738
- function __getPremiumStats({ host }) {
739
- const metadata = {
740
- entityFqdn: "wix.online_programs.v3.participant",
741
- method: "GET",
742
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
743
- packageName: PACKAGE_NAME,
744
- migrationOptions: {
745
- optInTransformResponse: true
899
+ async function deleteParticipant2(participantId) {
900
+ const { httpClient, sideEffects } = arguments[1];
901
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
902
+ participantId
903
+ });
904
+ const reqOpts = deleteParticipant(payload);
905
+ sideEffects?.onSiteCall?.();
906
+ try {
907
+ const result = await httpClient.request(reqOpts);
908
+ sideEffects?.onSuccess?.(result);
909
+ } catch (err) {
910
+ const transformedError = (0, import_transform_error.transformError)(
911
+ err,
912
+ {
913
+ spreadPathsToArguments: {},
914
+ explicitPathsToArguments: { participantId: "$[0]" },
915
+ singleArgumentUnchanged: false
746
916
  },
747
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
748
- protoPath: "/v3/stats/premium",
749
- data: payload,
750
- host
751
- }),
752
- params: (0, import_rest_modules.toURLSearchParams)(payload)
753
- };
754
- return metadata;
917
+ ["participantId"]
918
+ );
919
+ sideEffects?.onError?.(err);
920
+ throw transformedError;
755
921
  }
756
- return __getPremiumStats;
757
922
  }
758
- function exportParticipantsStats(payload) {
759
- function __exportParticipantsStats({ host }) {
760
- const metadata = {
761
- entityFqdn: "wix.online_programs.v3.participant",
762
- method: "GET",
763
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
764
- packageName: PACKAGE_NAME,
765
- migrationOptions: {
766
- optInTransformResponse: true
923
+ async function issueCertificate2(participantId) {
924
+ const { httpClient, sideEffects } = arguments[1];
925
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
926
+ participantId
927
+ });
928
+ const reqOpts = issueCertificate(payload);
929
+ sideEffects?.onSiteCall?.();
930
+ try {
931
+ const result = await httpClient.request(reqOpts);
932
+ sideEffects?.onSuccess?.(result);
933
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
934
+ } catch (err) {
935
+ const transformedError = (0, import_transform_error.transformError)(
936
+ err,
937
+ {
938
+ spreadPathsToArguments: {},
939
+ explicitPathsToArguments: { participantId: "$[0]" },
940
+ singleArgumentUnchanged: false
767
941
  },
768
- url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
769
- protoPath: "/v3/participants/export/{programId}",
770
- data: payload,
771
- host
772
- }),
773
- params: (0, import_rest_modules.toURLSearchParams)(payload)
774
- };
775
- return metadata;
942
+ ["participantId"]
943
+ );
944
+ sideEffects?.onError?.(err);
945
+ throw transformedError;
776
946
  }
777
- return __exportParticipantsStats;
778
947
  }
779
-
780
- // src/online-programs-v3-participant-participants.universal.ts
781
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
782
- var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
783
- JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
784
- JoinPath2["FREE"] = "FREE";
785
- JoinPath2["ADDED"] = "ADDED";
786
- JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
787
- JoinPath2["PAID_PLAN"] = "PAID_PLAN";
788
- JoinPath2["FREE_COUPON"] = "FREE_COUPON";
789
- return JoinPath2;
790
- })(JoinPath || {});
791
- var State = /* @__PURE__ */ ((State2) => {
792
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
793
- State2["INVITED"] = "INVITED";
794
- State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
795
- State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
796
- State2["JOINED"] = "JOINED";
797
- State2["COMPLETED"] = "COMPLETED";
798
- State2["FAILED"] = "FAILED";
799
- State2["SUSPENDED"] = "SUSPENDED";
800
- State2["AUTO_REMOVED"] = "AUTO_REMOVED";
801
- return State2;
802
- })(State || {});
803
- var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
804
- RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
805
- RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
806
- RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
807
- RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
808
- return RemovalReason2;
809
- })(RemovalReason || {});
810
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
811
- SortOrder2["ASC"] = "ASC";
812
- SortOrder2["DESC"] = "DESC";
813
- return SortOrder2;
814
- })(SortOrder || {});
815
- var EventType = /* @__PURE__ */ ((EventType2) => {
816
- EventType2["UNDEFINED"] = "UNDEFINED";
817
- EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
818
- EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
819
- EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
820
- EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
821
- EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
822
- return EventType2;
823
- })(EventType || {});
824
- var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
825
- OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
826
- OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
827
- OrderItemCategory2["DIGITAL"] = "DIGITAL";
828
- return OrderItemCategory2;
829
- })(OrderItemCategory || {});
830
- var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
831
- SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
832
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
833
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
834
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
835
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
836
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
837
- SubdivisionType2["COUNTRY"] = "COUNTRY";
838
- return SubdivisionType2;
839
- })(SubdivisionType || {});
840
- var VatType = /* @__PURE__ */ ((VatType2) => {
841
- VatType2["UNSPECIFIED"] = "UNSPECIFIED";
842
- VatType2["CPF"] = "CPF";
843
- VatType2["CNPJ"] = "CNPJ";
844
- return VatType2;
845
- })(VatType || {});
846
- var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
847
- TransactionStatus2["UNDEFINED"] = "UNDEFINED";
848
- TransactionStatus2["APPROVED"] = "APPROVED";
849
- TransactionStatus2["PENDING"] = "PENDING";
850
- TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
851
- TransactionStatus2["CANCELED"] = "CANCELED";
852
- TransactionStatus2["DECLINED"] = "DECLINED";
853
- TransactionStatus2["REFUNDED"] = "REFUNDED";
854
- TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
855
- TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
856
- TransactionStatus2["VOIDED"] = "VOIDED";
857
- return TransactionStatus2;
858
- })(TransactionStatus || {});
859
- var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
860
- ScheduledActionType2["VOID"] = "VOID";
861
- ScheduledActionType2["CAPTURE"] = "CAPTURE";
862
- return ScheduledActionType2;
863
- })(ScheduledActionType || {});
864
- var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
865
- RefundStatus2["UNDEFINED"] = "UNDEFINED";
866
- RefundStatus2["APPROVED"] = "APPROVED";
867
- RefundStatus2["PENDING"] = "PENDING";
868
- RefundStatus2["DECLINED"] = "DECLINED";
869
- return RefundStatus2;
870
- })(RefundStatus || {});
871
- var Status = /* @__PURE__ */ ((Status2) => {
872
- Status2["UNDEFINED"] = "UNDEFINED";
873
- Status2["PENDING"] = "PENDING";
874
- Status2["ACTIVE"] = "ACTIVE";
875
- Status2["CANCELLED"] = "CANCELLED";
876
- Status2["FINISHED"] = "FINISHED";
877
- Status2["SUSPENDED"] = "SUSPENDED";
878
- return Status2;
879
- })(Status || {});
880
- var Initiator = /* @__PURE__ */ ((Initiator2) => {
881
- Initiator2["UNDEFINED"] = "UNDEFINED";
882
- Initiator2["BUYER"] = "BUYER";
883
- Initiator2["MERCHANT"] = "MERCHANT";
884
- Initiator2["PAYMENT"] = "PAYMENT";
885
- Initiator2["SETUP"] = "SETUP";
886
- return Initiator2;
887
- })(Initiator || {});
888
- var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
889
- BenefitType2["UNDEFINED"] = "UNDEFINED";
890
- BenefitType2["LIMITED"] = "LIMITED";
891
- BenefitType2["UNLIMITED"] = "UNLIMITED";
892
- return BenefitType2;
893
- })(BenefitType || {});
894
- var Event = /* @__PURE__ */ ((Event2) => {
895
- Event2["Updated"] = "Updated";
896
- Event2["Deleted"] = "Deleted";
897
- Event2["Created"] = "Created";
898
- return Event2;
899
- })(Event || {});
900
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
901
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
902
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
903
- WebhookIdentityType2["MEMBER"] = "MEMBER";
904
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
905
- WebhookIdentityType2["APP"] = "APP";
906
- return WebhookIdentityType2;
907
- })(WebhookIdentityType || {});
908
- async function joinProgram2(programId) {
948
+ async function getCompletionStats2(programId) {
909
949
  const { httpClient, sideEffects } = arguments[1];
910
950
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
911
951
  programId
912
952
  });
913
- const reqOpts = joinProgram(payload);
953
+ const reqOpts = getCompletionStats(payload);
914
954
  sideEffects?.onSiteCall?.();
915
955
  try {
916
956
  const result = await httpClient.request(reqOpts);
@@ -930,41 +970,40 @@ async function joinProgram2(programId) {
930
970
  throw transformedError;
931
971
  }
932
972
  }
933
- async function getParticipant2(participantId) {
934
- const { httpClient, sideEffects } = arguments[1];
935
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
936
- participantId
937
- });
938
- const reqOpts = getParticipant(payload);
973
+ async function getPremiumStats2() {
974
+ const { httpClient, sideEffects } = arguments[0];
975
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
976
+ const reqOpts = getPremiumStats(payload);
939
977
  sideEffects?.onSiteCall?.();
940
978
  try {
941
979
  const result = await httpClient.request(reqOpts);
942
980
  sideEffects?.onSuccess?.(result);
943
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
981
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
944
982
  } catch (err) {
945
983
  const transformedError = (0, import_transform_error.transformError)(
946
984
  err,
947
985
  {
948
986
  spreadPathsToArguments: {},
949
- explicitPathsToArguments: { participantId: "$[0]" },
987
+ explicitPathsToArguments: {},
950
988
  singleArgumentUnchanged: false
951
989
  },
952
- ["participantId"]
990
+ []
953
991
  );
954
992
  sideEffects?.onError?.(err);
955
993
  throw transformedError;
956
994
  }
957
995
  }
958
- async function leaveProgram2(participantId) {
996
+ async function getParticipant2(participantId) {
959
997
  const { httpClient, sideEffects } = arguments[1];
960
998
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
961
999
  participantId
962
1000
  });
963
- const reqOpts = leaveProgram(payload);
1001
+ const reqOpts = getParticipant(payload);
964
1002
  sideEffects?.onSiteCall?.();
965
1003
  try {
966
1004
  const result = await httpClient.request(reqOpts);
967
1005
  sideEffects?.onSuccess?.(result);
1006
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
968
1007
  } catch (err) {
969
1008
  const transformedError = (0, import_transform_error.transformError)(
970
1009
  err,
@@ -1038,72 +1077,10 @@ async function getAccessStatus2() {
1038
1077
  err,
1039
1078
  {
1040
1079
  spreadPathsToArguments: {},
1041
- explicitPathsToArguments: {},
1042
- singleArgumentUnchanged: false
1043
- },
1044
- []
1045
- );
1046
- sideEffects?.onError?.(err);
1047
- throw transformedError;
1048
- }
1049
- }
1050
- async function applyCoupon2(identifiers, orderId) {
1051
- const { httpClient, sideEffects } = arguments[2];
1052
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1053
- participantId: identifiers?.participantId,
1054
- couponCode: identifiers?.couponCode,
1055
- orderId
1056
- });
1057
- const reqOpts = applyCoupon(payload);
1058
- sideEffects?.onSiteCall?.();
1059
- try {
1060
- const result = await httpClient.request(reqOpts);
1061
- sideEffects?.onSuccess?.(result);
1062
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1063
- } catch (err) {
1064
- const transformedError = (0, import_transform_error.transformError)(
1065
- err,
1066
- {
1067
- spreadPathsToArguments: {},
1068
- explicitPathsToArguments: {
1069
- participantId: "$[0].participantId",
1070
- couponCode: "$[0].couponCode",
1071
- orderId: "$[1]"
1072
- },
1073
- singleArgumentUnchanged: false
1074
- },
1075
- ["identifiers", "orderId"]
1076
- );
1077
- sideEffects?.onError?.(err);
1078
- throw transformedError;
1079
- }
1080
- }
1081
- async function revertCoupon2(identifiers, orderId) {
1082
- const { httpClient, sideEffects } = arguments[2];
1083
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1084
- participantId: identifiers?.participantId,
1085
- couponId: identifiers?.couponId,
1086
- orderId
1087
- });
1088
- const reqOpts = revertCoupon(payload);
1089
- sideEffects?.onSiteCall?.();
1090
- try {
1091
- const result = await httpClient.request(reqOpts);
1092
- sideEffects?.onSuccess?.(result);
1093
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1094
- } catch (err) {
1095
- const transformedError = (0, import_transform_error.transformError)(
1096
- err,
1097
- {
1098
- spreadPathsToArguments: {},
1099
- explicitPathsToArguments: {
1100
- participantId: "$[0].participantId",
1101
- couponId: "$[0].couponId",
1102
- orderId: "$[1]"
1103
- },
1080
+ explicitPathsToArguments: {},
1104
1081
  singleArgumentUnchanged: false
1105
1082
  },
1106
- ["identifiers", "orderId"]
1083
+ []
1107
1084
  );
1108
1085
  sideEffects?.onError?.(err);
1109
1086
  throw transformedError;
@@ -1200,35 +1177,6 @@ async function bulkAddToProgram2(programId, options) {
1200
1177
  throw transformedError;
1201
1178
  }
1202
1179
  }
1203
- async function bulkAddAllToProgram2(programId, options) {
1204
- const { httpClient, sideEffects } = arguments[2];
1205
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1206
- programId,
1207
- excludeMemberIds: options?.excludeMemberIds
1208
- });
1209
- const reqOpts = bulkAddAllToProgram(payload);
1210
- sideEffects?.onSiteCall?.();
1211
- try {
1212
- const result = await httpClient.request(reqOpts);
1213
- sideEffects?.onSuccess?.(result);
1214
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1215
- } catch (err) {
1216
- const transformedError = (0, import_transform_error.transformError)(
1217
- err,
1218
- {
1219
- spreadPathsToArguments: {},
1220
- explicitPathsToArguments: {
1221
- programId: "$[0]",
1222
- excludeMemberIds: "$[1].excludeMemberIds"
1223
- },
1224
- singleArgumentUnchanged: false
1225
- },
1226
- ["programId", "options"]
1227
- );
1228
- sideEffects?.onError?.(err);
1229
- throw transformedError;
1230
- }
1231
- }
1232
1180
  async function bulkApproveParticipant2(participantIds, options) {
1233
1181
  const { httpClient, sideEffects } = arguments[2];
1234
1182
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1289,103 +1237,6 @@ async function bulkApproveAllParticipant2(options) {
1289
1237
  throw transformedError;
1290
1238
  }
1291
1239
  }
1292
- async function deleteParticipant2(participantId) {
1293
- const { httpClient, sideEffects } = arguments[1];
1294
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1295
- participantId
1296
- });
1297
- const reqOpts = deleteParticipant(payload);
1298
- sideEffects?.onSiteCall?.();
1299
- try {
1300
- const result = await httpClient.request(reqOpts);
1301
- sideEffects?.onSuccess?.(result);
1302
- } catch (err) {
1303
- const transformedError = (0, import_transform_error.transformError)(
1304
- err,
1305
- {
1306
- spreadPathsToArguments: {},
1307
- explicitPathsToArguments: { participantId: "$[0]" },
1308
- singleArgumentUnchanged: false
1309
- },
1310
- ["participantId"]
1311
- );
1312
- sideEffects?.onError?.(err);
1313
- throw transformedError;
1314
- }
1315
- }
1316
- async function issueCertificate2(participantId) {
1317
- const { httpClient, sideEffects } = arguments[1];
1318
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1319
- participantId
1320
- });
1321
- const reqOpts = issueCertificate(payload);
1322
- sideEffects?.onSiteCall?.();
1323
- try {
1324
- const result = await httpClient.request(reqOpts);
1325
- sideEffects?.onSuccess?.(result);
1326
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1327
- } catch (err) {
1328
- const transformedError = (0, import_transform_error.transformError)(
1329
- err,
1330
- {
1331
- spreadPathsToArguments: {},
1332
- explicitPathsToArguments: { participantId: "$[0]" },
1333
- singleArgumentUnchanged: false
1334
- },
1335
- ["participantId"]
1336
- );
1337
- sideEffects?.onError?.(err);
1338
- throw transformedError;
1339
- }
1340
- }
1341
- async function getCompletionStats2(programId) {
1342
- const { httpClient, sideEffects } = arguments[1];
1343
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1344
- programId
1345
- });
1346
- const reqOpts = getCompletionStats(payload);
1347
- sideEffects?.onSiteCall?.();
1348
- try {
1349
- const result = await httpClient.request(reqOpts);
1350
- sideEffects?.onSuccess?.(result);
1351
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1352
- } catch (err) {
1353
- const transformedError = (0, import_transform_error.transformError)(
1354
- err,
1355
- {
1356
- spreadPathsToArguments: {},
1357
- explicitPathsToArguments: { programId: "$[0]" },
1358
- singleArgumentUnchanged: false
1359
- },
1360
- ["programId"]
1361
- );
1362
- sideEffects?.onError?.(err);
1363
- throw transformedError;
1364
- }
1365
- }
1366
- async function getPremiumStats2() {
1367
- const { httpClient, sideEffects } = arguments[0];
1368
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1369
- const reqOpts = getPremiumStats(payload);
1370
- sideEffects?.onSiteCall?.();
1371
- try {
1372
- const result = await httpClient.request(reqOpts);
1373
- sideEffects?.onSuccess?.(result);
1374
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1375
- } catch (err) {
1376
- const transformedError = (0, import_transform_error.transformError)(
1377
- err,
1378
- {
1379
- spreadPathsToArguments: {},
1380
- explicitPathsToArguments: {},
1381
- singleArgumentUnchanged: false
1382
- },
1383
- []
1384
- );
1385
- sideEffects?.onError?.(err);
1386
- throw transformedError;
1387
- }
1388
- }
1389
1240
  async function exportParticipantsStats2(programId) {
1390
1241
  const { httpClient, sideEffects } = arguments[1];
1391
1242
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1412,51 +1263,71 @@ async function exportParticipantsStats2(programId) {
1412
1263
  }
1413
1264
 
1414
1265
  // src/online-programs-v3-participant-participants.public.ts
1415
- function joinProgram3(httpClient) {
1416
- return (programId) => joinProgram2(
1266
+ function createParticipant3(httpClient) {
1267
+ return (participant) => createParticipant2(
1268
+ participant,
1269
+ // @ts-ignore
1270
+ { httpClient }
1271
+ );
1272
+ }
1273
+ function bulkCreateParticipant3(httpClient) {
1274
+ return (participants, options) => bulkCreateParticipant2(
1275
+ participants,
1276
+ options,
1277
+ // @ts-ignore
1278
+ { httpClient }
1279
+ );
1280
+ }
1281
+ function bulkAddAllToProgram3(httpClient) {
1282
+ return (programId, options) => bulkAddAllToProgram2(
1417
1283
  programId,
1284
+ options,
1418
1285
  // @ts-ignore
1419
1286
  { httpClient }
1420
1287
  );
1421
1288
  }
1422
- function getParticipant3(httpClient) {
1423
- return (participantId) => getParticipant2(
1289
+ function deleteParticipant3(httpClient) {
1290
+ return (participantId) => deleteParticipant2(
1424
1291
  participantId,
1425
1292
  // @ts-ignore
1426
1293
  { httpClient }
1427
1294
  );
1428
1295
  }
1429
- function leaveProgram3(httpClient) {
1430
- return (participantId) => leaveProgram2(
1296
+ function issueCertificate3(httpClient) {
1297
+ return (participantId) => issueCertificate2(
1431
1298
  participantId,
1432
1299
  // @ts-ignore
1433
1300
  { httpClient }
1434
1301
  );
1435
1302
  }
1436
- function queryParticipants3(httpClient) {
1437
- return () => queryParticipants2(
1303
+ function getCompletionStats3(httpClient) {
1304
+ return (programId) => getCompletionStats2(
1305
+ programId,
1438
1306
  // @ts-ignore
1439
1307
  { httpClient }
1440
1308
  );
1441
1309
  }
1442
- function getAccessStatus3(httpClient) {
1443
- return () => getAccessStatus2(
1310
+ function getPremiumStats3(httpClient) {
1311
+ return () => getPremiumStats2(
1312
+ // @ts-ignore
1313
+ { httpClient }
1314
+ );
1315
+ }
1316
+ function getParticipant3(httpClient) {
1317
+ return (participantId) => getParticipant2(
1318
+ participantId,
1444
1319
  // @ts-ignore
1445
1320
  { httpClient }
1446
1321
  );
1447
1322
  }
1448
- function applyCoupon3(httpClient) {
1449
- return (identifiers, orderId) => applyCoupon2(
1450
- identifiers,
1451
- orderId,
1323
+ function queryParticipants3(httpClient) {
1324
+ return () => queryParticipants2(
1452
1325
  // @ts-ignore
1453
1326
  { httpClient }
1454
1327
  );
1455
1328
  }
1456
- function revertCoupon3(httpClient) {
1457
- return (identifiers, orderId) => revertCoupon2(
1458
- identifiers,
1459
- orderId,
1329
+ function getAccessStatus3(httpClient) {
1330
+ return () => getAccessStatus2(
1460
1331
  // @ts-ignore
1461
1332
  { httpClient }
1462
1333
  );
@@ -1485,14 +1356,6 @@ function bulkAddToProgram3(httpClient) {
1485
1356
  { httpClient }
1486
1357
  );
1487
1358
  }
1488
- function bulkAddAllToProgram3(httpClient) {
1489
- return (programId, options) => bulkAddAllToProgram2(
1490
- programId,
1491
- options,
1492
- // @ts-ignore
1493
- { httpClient }
1494
- );
1495
- }
1496
1359
  function bulkApproveParticipant3(httpClient) {
1497
1360
  return (participantIds, options) => bulkApproveParticipant2(
1498
1361
  participantIds,
@@ -1508,33 +1371,6 @@ function bulkApproveAllParticipant3(httpClient) {
1508
1371
  { httpClient }
1509
1372
  );
1510
1373
  }
1511
- function deleteParticipant3(httpClient) {
1512
- return (participantId) => deleteParticipant2(
1513
- participantId,
1514
- // @ts-ignore
1515
- { httpClient }
1516
- );
1517
- }
1518
- function issueCertificate3(httpClient) {
1519
- return (participantId) => issueCertificate2(
1520
- participantId,
1521
- // @ts-ignore
1522
- { httpClient }
1523
- );
1524
- }
1525
- function getCompletionStats3(httpClient) {
1526
- return (programId) => getCompletionStats2(
1527
- programId,
1528
- // @ts-ignore
1529
- { httpClient }
1530
- );
1531
- }
1532
- function getPremiumStats3(httpClient) {
1533
- return () => getPremiumStats2(
1534
- // @ts-ignore
1535
- { httpClient }
1536
- );
1537
- }
1538
1374
  function exportParticipantsStats3(httpClient) {
1539
1375
  return (programId) => exportParticipantsStats2(
1540
1376
  programId,
@@ -1542,67 +1378,13 @@ function exportParticipantsStats3(httpClient) {
1542
1378
  { httpClient }
1543
1379
  );
1544
1380
  }
1545
- var onParticipantJoined = (0, import_sdk_types.EventDefinition)(
1546
- "wix.online_programs.v3.participant_participant_joined",
1547
- true,
1548
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1549
- (0, import_transform_paths3.transformPaths)(event, [
1550
- {
1551
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1552
- paths: [
1553
- { path: "data.participant.createdDate" },
1554
- { path: "data.participant.updatedDate" },
1555
- { path: "data.participant.certificate.issuedDate" },
1556
- { path: "metadata.eventTime" }
1557
- ]
1558
- },
1559
- {
1560
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1561
- paths: [{ path: "data.participant.progress.completionPercentage" }]
1562
- }
1563
- ])
1564
- )
1565
- )();
1566
- var onParticipantLeft = (0, import_sdk_types.EventDefinition)(
1567
- "wix.online_programs.v3.participant_participant_left",
1568
- true,
1569
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1570
- (0, import_transform_paths3.transformPaths)(event, [
1571
- {
1572
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1573
- paths: [{ path: "metadata.eventTime" }]
1574
- }
1575
- ])
1576
- )
1577
- )();
1578
- var onParticipantDeleted = (0, import_sdk_types.EventDefinition)(
1579
- "wix.online_programs.v3.participant_deleted",
1580
- true,
1581
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1582
- (0, import_transform_paths3.transformPaths)(event, [
1583
- {
1584
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1585
- paths: [
1586
- { path: "entity.createdDate" },
1587
- { path: "entity.updatedDate" },
1588
- { path: "entity.certificate.issuedDate" },
1589
- { path: "metadata.eventTime" }
1590
- ]
1591
- },
1592
- {
1593
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1594
- paths: [{ path: "entity.progress.completionPercentage" }]
1595
- }
1596
- ])
1597
- )
1598
- )();
1599
1381
  var onParticipantAdded = (0, import_sdk_types.EventDefinition)(
1600
- "wix.online_programs.v3.participant_participant_added",
1382
+ "wix.online_programs.v3.participant_added",
1601
1383
  true,
1602
1384
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1603
1385
  (0, import_transform_paths3.transformPaths)(event, [
1604
1386
  {
1605
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1387
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1606
1388
  paths: [{ path: "metadata.eventTime" }]
1607
1389
  }
1608
1390
  ])
@@ -1614,7 +1396,7 @@ var onParticipantApproved = (0, import_sdk_types.EventDefinition)(
1614
1396
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1615
1397
  (0, import_transform_paths3.transformPaths)(event, [
1616
1398
  {
1617
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1399
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1618
1400
  paths: [{ path: "metadata.eventTime" }]
1619
1401
  }
1620
1402
  ])
@@ -1626,19 +1408,7 @@ var onParticipantInvited = (0, import_sdk_types.EventDefinition)(
1626
1408
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1627
1409
  (0, import_transform_paths3.transformPaths)(event, [
1628
1410
  {
1629
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1630
- paths: [{ path: "metadata.eventTime" }]
1631
- }
1632
- ])
1633
- )
1634
- )();
1635
- var onParticipantRejected = (0, import_sdk_types.EventDefinition)(
1636
- "wix.online_programs.v3.participant_participant_rejected",
1637
- true,
1638
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1639
- (0, import_transform_paths3.transformPaths)(event, [
1640
- {
1641
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1411
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
1642
1412
  paths: [{ path: "metadata.eventTime" }]
1643
1413
  }
1644
1414
  ])
@@ -1648,31 +1418,22 @@ var onParticipantRejected = (0, import_sdk_types.EventDefinition)(
1648
1418
  // src/online-programs-v3-participant-participants.context.ts
1649
1419
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1650
1420
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1651
- var joinProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(joinProgram3);
1421
+ var createParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createParticipant3);
1422
+ var bulkCreateParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipant3);
1423
+ var bulkAddAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddAllToProgram3);
1424
+ var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
1425
+ var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
1426
+ var getCompletionStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCompletionStats3);
1427
+ var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1652
1428
  var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
1653
- var leaveProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(leaveProgram3);
1654
1429
  var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryParticipants3);
1655
1430
  var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
1656
- var applyCoupon4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(applyCoupon3);
1657
- var revertCoupon4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(revertCoupon3);
1658
1431
  var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteToProgram3);
1659
1432
  var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteAllToProgram3);
1660
1433
  var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddToProgram3);
1661
- var bulkAddAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddAllToProgram3);
1662
1434
  var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveParticipant3);
1663
1435
  var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveAllParticipant3);
1664
- var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
1665
- var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
1666
- var getCompletionStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCompletionStats3);
1667
- var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1668
1436
  var exportParticipantsStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(exportParticipantsStats3);
1669
- var onParticipantJoined2 = (0, import_event_definition_modules.createEventModule)(
1670
- onParticipantJoined
1671
- );
1672
- var onParticipantLeft2 = (0, import_event_definition_modules.createEventModule)(onParticipantLeft);
1673
- var onParticipantDeleted2 = (0, import_event_definition_modules.createEventModule)(
1674
- onParticipantDeleted
1675
- );
1676
1437
  var onParticipantAdded2 = (0, import_event_definition_modules.createEventModule)(onParticipantAdded);
1677
1438
  var onParticipantApproved2 = (0, import_event_definition_modules.createEventModule)(
1678
1439
  onParticipantApproved
@@ -1680,34 +1441,22 @@ var onParticipantApproved2 = (0, import_event_definition_modules.createEventModu
1680
1441
  var onParticipantInvited2 = (0, import_event_definition_modules.createEventModule)(
1681
1442
  onParticipantInvited
1682
1443
  );
1683
- var onParticipantRejected2 = (0, import_event_definition_modules.createEventModule)(
1684
- onParticipantRejected
1685
- );
1686
1444
  // Annotate the CommonJS export names for ESM import in node:
1687
1445
  0 && (module.exports = {
1688
1446
  BenefitType,
1689
1447
  Event,
1690
- EventType,
1691
- Initiator,
1692
1448
  JoinPath,
1693
- OrderItemCategory,
1694
- RefundStatus,
1695
- RemovalReason,
1696
- ScheduledActionType,
1697
1449
  SortOrder,
1698
1450
  State,
1699
- Status,
1700
- SubdivisionType,
1701
- TransactionStatus,
1702
- VatType,
1703
1451
  WebhookIdentityType,
1704
- applyCoupon,
1705
1452
  bulkAddAllToProgram,
1706
1453
  bulkAddToProgram,
1707
1454
  bulkApproveAllParticipant,
1708
1455
  bulkApproveParticipant,
1456
+ bulkCreateParticipant,
1709
1457
  bulkInviteAllToProgram,
1710
1458
  bulkInviteToProgram,
1459
+ createParticipant,
1711
1460
  deleteParticipant,
1712
1461
  exportParticipantsStats,
1713
1462
  getAccessStatus,
@@ -1715,16 +1464,9 @@ var onParticipantRejected2 = (0, import_event_definition_modules.createEventModu
1715
1464
  getParticipant,
1716
1465
  getPremiumStats,
1717
1466
  issueCertificate,
1718
- joinProgram,
1719
- leaveProgram,
1720
1467
  onParticipantAdded,
1721
1468
  onParticipantApproved,
1722
- onParticipantDeleted,
1723
1469
  onParticipantInvited,
1724
- onParticipantJoined,
1725
- onParticipantLeft,
1726
- onParticipantRejected,
1727
- queryParticipants,
1728
- revertCoupon
1470
+ queryParticipants
1729
1471
  });
1730
1472
  //# sourceMappingURL=index.js.map