@wix/auto_sdk_online-programs_participants 1.0.0

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