@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,999 @@
1
+ // src/online-programs-v3-participant-participants.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
4
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
+ function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
8
+ const domainToMappings = {
9
+ "bo._base_domain_": [
10
+ {
11
+ srcPath: "/participants-service",
12
+ destPath: ""
13
+ }
14
+ ],
15
+ "wixbo.ai": [
16
+ {
17
+ srcPath: "/participants-service",
18
+ destPath: ""
19
+ }
20
+ ],
21
+ "wix-bo.com": [
22
+ {
23
+ srcPath: "/participants-service",
24
+ destPath: ""
25
+ }
26
+ ],
27
+ "manage._base_domain_": [
28
+ {
29
+ srcPath: "/participants-service",
30
+ destPath: ""
31
+ }
32
+ ],
33
+ _: [
34
+ {
35
+ srcPath: "/participants-service",
36
+ destPath: ""
37
+ }
38
+ ],
39
+ "editor._base_domain_": [
40
+ {
41
+ srcPath: "/participants-service",
42
+ destPath: ""
43
+ }
44
+ ],
45
+ "blocks._base_domain_": [
46
+ {
47
+ srcPath: "/participants-service",
48
+ destPath: ""
49
+ }
50
+ ],
51
+ "create.editorx": [
52
+ {
53
+ srcPath: "/participants-service",
54
+ destPath: ""
55
+ }
56
+ ],
57
+ "www._base_domain_": [
58
+ {
59
+ srcPath: "/_api/participants-service",
60
+ destPath: ""
61
+ }
62
+ ],
63
+ "www.wixapis.com": [
64
+ {
65
+ srcPath: "/participants-service",
66
+ destPath: ""
67
+ }
68
+ ]
69
+ };
70
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
71
+ }
72
+ function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
73
+ const domainToMappings = {
74
+ "bo._base_domain_": [
75
+ {
76
+ srcPath: "/participants-service",
77
+ destPath: ""
78
+ }
79
+ ],
80
+ "wixbo.ai": [
81
+ {
82
+ srcPath: "/participants-service",
83
+ destPath: ""
84
+ }
85
+ ],
86
+ "wix-bo.com": [
87
+ {
88
+ srcPath: "/participants-service",
89
+ destPath: ""
90
+ }
91
+ ],
92
+ "manage._base_domain_": [
93
+ {
94
+ srcPath: "/participants-service",
95
+ destPath: ""
96
+ }
97
+ ],
98
+ _: [
99
+ {
100
+ srcPath: "/participants-service",
101
+ destPath: ""
102
+ }
103
+ ],
104
+ "editor._base_domain_": [
105
+ {
106
+ srcPath: "/participants-service",
107
+ destPath: ""
108
+ }
109
+ ],
110
+ "blocks._base_domain_": [
111
+ {
112
+ srcPath: "/participants-service",
113
+ destPath: ""
114
+ }
115
+ ],
116
+ "create.editorx": [
117
+ {
118
+ srcPath: "/participants-service",
119
+ destPath: ""
120
+ }
121
+ ],
122
+ "www._base_domain_": [
123
+ {
124
+ srcPath: "/_api/participants-service",
125
+ destPath: ""
126
+ }
127
+ ],
128
+ "www.wixapis.com": [
129
+ {
130
+ srcPath: "/participants-service",
131
+ destPath: ""
132
+ }
133
+ ]
134
+ };
135
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
136
+ }
137
+ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
138
+ const domainToMappings = {
139
+ "bo._base_domain_": [
140
+ {
141
+ srcPath: "/participants-service",
142
+ destPath: ""
143
+ }
144
+ ],
145
+ "wixbo.ai": [
146
+ {
147
+ srcPath: "/participants-service",
148
+ destPath: ""
149
+ }
150
+ ],
151
+ "wix-bo.com": [
152
+ {
153
+ srcPath: "/participants-service",
154
+ destPath: ""
155
+ }
156
+ ],
157
+ "manage._base_domain_": [
158
+ {
159
+ srcPath: "/participants-service",
160
+ destPath: ""
161
+ }
162
+ ],
163
+ _: [
164
+ {
165
+ srcPath: "/participants-service",
166
+ destPath: ""
167
+ }
168
+ ],
169
+ "editor._base_domain_": [
170
+ {
171
+ srcPath: "/participants-service",
172
+ destPath: ""
173
+ }
174
+ ],
175
+ "blocks._base_domain_": [
176
+ {
177
+ srcPath: "/participants-service",
178
+ destPath: ""
179
+ }
180
+ ],
181
+ "create.editorx": [
182
+ {
183
+ srcPath: "/participants-service",
184
+ destPath: ""
185
+ }
186
+ ],
187
+ "www._base_domain_": [
188
+ {
189
+ srcPath: "/_api/participants-service",
190
+ destPath: ""
191
+ }
192
+ ],
193
+ "www.wixapis.com": [
194
+ {
195
+ srcPath: "/participants-service",
196
+ destPath: ""
197
+ }
198
+ ]
199
+ };
200
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
201
+ }
202
+ var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
203
+ function joinProgram(payload) {
204
+ function __joinProgram({ host }) {
205
+ const metadata = {
206
+ entityFqdn: "wix.online_programs.v3.participant",
207
+ method: "POST",
208
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.JoinProgram",
209
+ packageName: PACKAGE_NAME,
210
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
211
+ protoPath: "/v3/participants/join",
212
+ data: payload,
213
+ host
214
+ }),
215
+ data: payload,
216
+ transformResponse: (payload2) => transformPaths(payload2, [
217
+ {
218
+ transformFn: transformRESTTimestampToSDKTimestamp,
219
+ paths: [
220
+ { path: "participant.createdDate" },
221
+ { path: "participant.updatedDate" },
222
+ { path: "participant.certificate.issuedDate" }
223
+ ]
224
+ },
225
+ {
226
+ transformFn: transformRESTFloatToSDKFloat,
227
+ paths: [{ path: "participant.progress.completionPercentage" }]
228
+ }
229
+ ])
230
+ };
231
+ return metadata;
232
+ }
233
+ return __joinProgram;
234
+ }
235
+ function getParticipant(payload) {
236
+ function __getParticipant({ host }) {
237
+ const metadata = {
238
+ entityFqdn: "wix.online_programs.v3.participant",
239
+ method: "GET",
240
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
241
+ packageName: PACKAGE_NAME,
242
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
243
+ protoPath: "/v3/participants/{participantId}",
244
+ data: payload,
245
+ host
246
+ }),
247
+ params: toURLSearchParams(payload),
248
+ transformResponse: (payload2) => transformPaths(payload2, [
249
+ {
250
+ transformFn: transformRESTTimestampToSDKTimestamp,
251
+ paths: [
252
+ { path: "participant.createdDate" },
253
+ { path: "participant.updatedDate" },
254
+ { path: "participant.certificate.issuedDate" }
255
+ ]
256
+ },
257
+ {
258
+ transformFn: transformRESTFloatToSDKFloat,
259
+ paths: [{ path: "participant.progress.completionPercentage" }]
260
+ }
261
+ ])
262
+ };
263
+ return metadata;
264
+ }
265
+ return __getParticipant;
266
+ }
267
+ function leaveProgram(payload) {
268
+ function __leaveProgram({ host }) {
269
+ const metadata = {
270
+ entityFqdn: "wix.online_programs.v3.participant",
271
+ method: "POST",
272
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.LeaveProgram",
273
+ packageName: PACKAGE_NAME,
274
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
275
+ protoPath: "/v3/participants/{participantId}/leave",
276
+ data: payload,
277
+ host
278
+ }),
279
+ data: payload
280
+ };
281
+ return metadata;
282
+ }
283
+ return __leaveProgram;
284
+ }
285
+ function queryParticipants(payload) {
286
+ function __queryParticipants({ host }) {
287
+ const metadata = {
288
+ entityFqdn: "wix.online_programs.v3.participant",
289
+ method: "POST",
290
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
291
+ packageName: PACKAGE_NAME,
292
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
293
+ protoPath: "/v3/participants/query",
294
+ data: payload,
295
+ host
296
+ }),
297
+ data: payload,
298
+ transformResponse: (payload2) => transformPaths(payload2, [
299
+ {
300
+ transformFn: transformRESTTimestampToSDKTimestamp,
301
+ paths: [
302
+ { path: "participants.createdDate" },
303
+ { path: "participants.updatedDate" },
304
+ { path: "participants.certificate.issuedDate" }
305
+ ]
306
+ },
307
+ {
308
+ transformFn: transformRESTFloatToSDKFloat,
309
+ paths: [{ path: "participants.progress.completionPercentage" }]
310
+ }
311
+ ])
312
+ };
313
+ return metadata;
314
+ }
315
+ return __queryParticipants;
316
+ }
317
+ function getAccessStatus(payload) {
318
+ function __getAccessStatus({ host }) {
319
+ const metadata = {
320
+ entityFqdn: "wix.online_programs.v3.participant",
321
+ method: "GET",
322
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
323
+ packageName: PACKAGE_NAME,
324
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
325
+ protoPath: "/v3/participants/access",
326
+ data: payload,
327
+ host
328
+ }),
329
+ params: toURLSearchParams(payload)
330
+ };
331
+ return metadata;
332
+ }
333
+ return __getAccessStatus;
334
+ }
335
+ function applyCoupon(payload) {
336
+ function __applyCoupon({ host }) {
337
+ const metadata = {
338
+ entityFqdn: "wix.online_programs.v3.participant",
339
+ method: "POST",
340
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.ApplyCoupon",
341
+ packageName: PACKAGE_NAME,
342
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
343
+ protoPath: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
344
+ data: payload,
345
+ host
346
+ }),
347
+ data: payload,
348
+ transformResponse: (payload2) => transformPaths(payload2, [
349
+ {
350
+ transformFn: transformRESTFloatToSDKFloat,
351
+ paths: [
352
+ { path: "subTotal" },
353
+ { path: "discount" },
354
+ { path: "total" }
355
+ ]
356
+ }
357
+ ])
358
+ };
359
+ return metadata;
360
+ }
361
+ return __applyCoupon;
362
+ }
363
+ function revertCoupon(payload) {
364
+ function __revertCoupon({ host }) {
365
+ const metadata = {
366
+ entityFqdn: "wix.online_programs.v3.participant",
367
+ method: "POST",
368
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.RevertCoupon",
369
+ packageName: PACKAGE_NAME,
370
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
371
+ protoPath: "/v3/participants/{participantId}/coupons/{couponId}/revert",
372
+ data: payload,
373
+ host
374
+ }),
375
+ data: payload,
376
+ transformResponse: (payload2) => transformPaths(payload2, [
377
+ {
378
+ transformFn: transformRESTFloatToSDKFloat,
379
+ paths: [{ path: "total" }]
380
+ }
381
+ ])
382
+ };
383
+ return metadata;
384
+ }
385
+ return __revertCoupon;
386
+ }
387
+ function bulkInviteToProgram(payload) {
388
+ function __bulkInviteToProgram({ host }) {
389
+ const metadata = {
390
+ entityFqdn: "wix.online_programs.v3.participant",
391
+ method: "POST",
392
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
393
+ packageName: PACKAGE_NAME,
394
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
395
+ protoPath: "/v3/bulk/participants/invite",
396
+ data: payload,
397
+ host
398
+ }),
399
+ data: payload,
400
+ transformResponse: (payload2) => transformPaths(payload2, [
401
+ {
402
+ transformFn: transformRESTTimestampToSDKTimestamp,
403
+ paths: [
404
+ { path: "results.item.createdDate" },
405
+ { path: "results.item.updatedDate" },
406
+ { path: "results.item.certificate.issuedDate" }
407
+ ]
408
+ },
409
+ {
410
+ transformFn: transformRESTFloatToSDKFloat,
411
+ paths: [{ path: "results.item.progress.completionPercentage" }]
412
+ }
413
+ ])
414
+ };
415
+ return metadata;
416
+ }
417
+ return __bulkInviteToProgram;
418
+ }
419
+ function bulkInviteAllToProgram(payload) {
420
+ function __bulkInviteAllToProgram({ host }) {
421
+ const metadata = {
422
+ entityFqdn: "wix.online_programs.v3.participant",
423
+ method: "POST",
424
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
425
+ packageName: PACKAGE_NAME,
426
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
427
+ protoPath: "/v3/bulk/participants/invite-all",
428
+ data: payload,
429
+ host
430
+ }),
431
+ data: payload
432
+ };
433
+ return metadata;
434
+ }
435
+ return __bulkInviteAllToProgram;
436
+ }
437
+ function bulkAddToProgram(payload) {
438
+ function __bulkAddToProgram({ host }) {
439
+ const metadata = {
440
+ entityFqdn: "wix.online_programs.v3.participant",
441
+ method: "POST",
442
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
443
+ packageName: PACKAGE_NAME,
444
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
445
+ protoPath: "/v3/bulk/participants/add",
446
+ data: payload,
447
+ host
448
+ }),
449
+ data: payload,
450
+ transformResponse: (payload2) => transformPaths(payload2, [
451
+ {
452
+ transformFn: transformRESTTimestampToSDKTimestamp,
453
+ paths: [
454
+ { path: "results.item.createdDate" },
455
+ { path: "results.item.updatedDate" },
456
+ { path: "results.item.certificate.issuedDate" }
457
+ ]
458
+ },
459
+ {
460
+ transformFn: transformRESTFloatToSDKFloat,
461
+ paths: [{ path: "results.item.progress.completionPercentage" }]
462
+ }
463
+ ])
464
+ };
465
+ return metadata;
466
+ }
467
+ return __bulkAddToProgram;
468
+ }
469
+ function bulkAddAllToProgram(payload) {
470
+ function __bulkAddAllToProgram({ host }) {
471
+ const metadata = {
472
+ entityFqdn: "wix.online_programs.v3.participant",
473
+ method: "POST",
474
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
475
+ packageName: PACKAGE_NAME,
476
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
477
+ protoPath: "/v3/bulk/participants/add-all",
478
+ data: payload,
479
+ host
480
+ }),
481
+ data: payload
482
+ };
483
+ return metadata;
484
+ }
485
+ return __bulkAddAllToProgram;
486
+ }
487
+ function bulkApproveParticipant(payload) {
488
+ function __bulkApproveParticipant({ host }) {
489
+ const metadata = {
490
+ entityFqdn: "wix.online_programs.v3.participant",
491
+ method: "POST",
492
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
493
+ packageName: PACKAGE_NAME,
494
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
495
+ protoPath: "/v3/bulk/participants/approve",
496
+ data: payload,
497
+ host
498
+ }),
499
+ data: payload,
500
+ transformResponse: (payload2) => transformPaths(payload2, [
501
+ {
502
+ transformFn: transformRESTTimestampToSDKTimestamp,
503
+ paths: [
504
+ { path: "results.item.createdDate" },
505
+ { path: "results.item.updatedDate" },
506
+ { path: "results.item.certificate.issuedDate" }
507
+ ]
508
+ },
509
+ {
510
+ transformFn: transformRESTFloatToSDKFloat,
511
+ paths: [{ path: "results.item.progress.completionPercentage" }]
512
+ }
513
+ ])
514
+ };
515
+ return metadata;
516
+ }
517
+ return __bulkApproveParticipant;
518
+ }
519
+ function bulkApproveAllParticipant(payload) {
520
+ function __bulkApproveAllParticipant({ host }) {
521
+ const metadata = {
522
+ entityFqdn: "wix.online_programs.v3.participant",
523
+ method: "POST",
524
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
525
+ packageName: PACKAGE_NAME,
526
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
527
+ protoPath: "/v3/bulk/participants/approve-all",
528
+ data: payload,
529
+ host
530
+ }),
531
+ data: payload
532
+ };
533
+ return metadata;
534
+ }
535
+ return __bulkApproveAllParticipant;
536
+ }
537
+ function deleteParticipant(payload) {
538
+ function __deleteParticipant({ host }) {
539
+ const metadata = {
540
+ entityFqdn: "wix.online_programs.v3.participant",
541
+ method: "DELETE",
542
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
543
+ packageName: PACKAGE_NAME,
544
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
545
+ protoPath: "/v3/participants/{participantId}",
546
+ data: payload,
547
+ host
548
+ }),
549
+ params: toURLSearchParams(payload)
550
+ };
551
+ return metadata;
552
+ }
553
+ return __deleteParticipant;
554
+ }
555
+ function issueCertificate(payload) {
556
+ function __issueCertificate({ host }) {
557
+ const metadata = {
558
+ entityFqdn: "wix.online_programs.v3.participant",
559
+ method: "POST",
560
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
561
+ packageName: PACKAGE_NAME,
562
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
563
+ protoPath: "/v3/participants/{participantId}/issue-certificate",
564
+ data: payload,
565
+ host
566
+ }),
567
+ data: payload,
568
+ transformResponse: (payload2) => transformPaths(payload2, [
569
+ {
570
+ transformFn: transformRESTTimestampToSDKTimestamp,
571
+ paths: [
572
+ { path: "participant.createdDate" },
573
+ { path: "participant.updatedDate" },
574
+ { path: "participant.certificate.issuedDate" }
575
+ ]
576
+ },
577
+ {
578
+ transformFn: transformRESTFloatToSDKFloat,
579
+ paths: [{ path: "participant.progress.completionPercentage" }]
580
+ }
581
+ ])
582
+ };
583
+ return metadata;
584
+ }
585
+ return __issueCertificate;
586
+ }
587
+ function getCompletionStats(payload) {
588
+ function __getCompletionStats({ host }) {
589
+ const metadata = {
590
+ entityFqdn: "wix.online_programs.v3.participant",
591
+ method: "GET",
592
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
593
+ packageName: PACKAGE_NAME,
594
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
595
+ protoPath: "/v3/stats/completion/{programId}",
596
+ data: payload,
597
+ host
598
+ }),
599
+ params: toURLSearchParams(payload),
600
+ transformResponse: (payload2) => transformPaths(payload2, [
601
+ {
602
+ transformFn: transformRESTFloatToSDKFloat,
603
+ paths: [{ path: "completionRate" }]
604
+ }
605
+ ])
606
+ };
607
+ return metadata;
608
+ }
609
+ return __getCompletionStats;
610
+ }
611
+ function getPremiumStats(payload) {
612
+ function __getPremiumStats({ host }) {
613
+ const metadata = {
614
+ entityFqdn: "wix.online_programs.v3.participant",
615
+ method: "GET",
616
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
617
+ packageName: PACKAGE_NAME,
618
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
619
+ protoPath: "/v3/stats/premium",
620
+ data: payload,
621
+ host
622
+ }),
623
+ params: toURLSearchParams(payload)
624
+ };
625
+ return metadata;
626
+ }
627
+ return __getPremiumStats;
628
+ }
629
+ function exportParticipantsStats(payload) {
630
+ function __exportParticipantsStats({ host }) {
631
+ const metadata = {
632
+ entityFqdn: "wix.online_programs.v3.participant",
633
+ method: "GET",
634
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
635
+ packageName: PACKAGE_NAME,
636
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
637
+ protoPath: "/v3/participants/export/{programId}",
638
+ data: payload,
639
+ host
640
+ }),
641
+ params: toURLSearchParams(payload)
642
+ };
643
+ return metadata;
644
+ }
645
+ return __exportParticipantsStats;
646
+ }
647
+
648
+ // src/online-programs-v3-participant-participants.meta.ts
649
+ function joinProgram2() {
650
+ const payload = {};
651
+ const getRequestOptions = joinProgram(payload);
652
+ const getUrl = (context) => {
653
+ const { url } = getRequestOptions(context);
654
+ return url;
655
+ };
656
+ return {
657
+ getUrl,
658
+ httpMethod: "POST",
659
+ path: "/v3/participants/join",
660
+ pathParams: {},
661
+ __requestType: null,
662
+ __originalRequestType: null,
663
+ __responseType: null,
664
+ __originalResponseType: null
665
+ };
666
+ }
667
+ function getParticipant2() {
668
+ const payload = { participantId: ":participantId" };
669
+ const getRequestOptions = getParticipant(payload);
670
+ const getUrl = (context) => {
671
+ const { url } = getRequestOptions(context);
672
+ return url;
673
+ };
674
+ return {
675
+ getUrl,
676
+ httpMethod: "GET",
677
+ path: "/v3/participants/{participantId}",
678
+ pathParams: { participantId: "participantId" },
679
+ __requestType: null,
680
+ __originalRequestType: null,
681
+ __responseType: null,
682
+ __originalResponseType: null
683
+ };
684
+ }
685
+ function leaveProgram2() {
686
+ const payload = { participantId: ":participantId" };
687
+ const getRequestOptions = leaveProgram(payload);
688
+ const getUrl = (context) => {
689
+ const { url } = getRequestOptions(context);
690
+ return url;
691
+ };
692
+ return {
693
+ getUrl,
694
+ httpMethod: "POST",
695
+ path: "/v3/participants/{participantId}/leave",
696
+ pathParams: { participantId: "participantId" },
697
+ __requestType: null,
698
+ __originalRequestType: null,
699
+ __responseType: null,
700
+ __originalResponseType: null
701
+ };
702
+ }
703
+ function queryParticipants2() {
704
+ const payload = {};
705
+ const getRequestOptions = queryParticipants(payload);
706
+ const getUrl = (context) => {
707
+ const { url } = getRequestOptions(context);
708
+ return url;
709
+ };
710
+ return {
711
+ getUrl,
712
+ httpMethod: "POST",
713
+ path: "/v3/participants/query",
714
+ pathParams: {},
715
+ __requestType: null,
716
+ __originalRequestType: null,
717
+ __responseType: null,
718
+ __originalResponseType: null
719
+ };
720
+ }
721
+ function getAccessStatus2() {
722
+ const payload = {};
723
+ const getRequestOptions = getAccessStatus(payload);
724
+ const getUrl = (context) => {
725
+ const { url } = getRequestOptions(context);
726
+ return url;
727
+ };
728
+ return {
729
+ getUrl,
730
+ httpMethod: "GET",
731
+ path: "/v3/participants/access",
732
+ pathParams: {},
733
+ __requestType: null,
734
+ __originalRequestType: null,
735
+ __responseType: null,
736
+ __originalResponseType: null
737
+ };
738
+ }
739
+ function applyCoupon2() {
740
+ const payload = {
741
+ participantId: ":participantId",
742
+ couponCode: ":couponCode"
743
+ };
744
+ const getRequestOptions = applyCoupon(payload);
745
+ const getUrl = (context) => {
746
+ const { url } = getRequestOptions(context);
747
+ return url;
748
+ };
749
+ return {
750
+ getUrl,
751
+ httpMethod: "POST",
752
+ path: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
753
+ pathParams: { participantId: "participantId", couponCode: "couponCode" },
754
+ __requestType: null,
755
+ __originalRequestType: null,
756
+ __responseType: null,
757
+ __originalResponseType: null
758
+ };
759
+ }
760
+ function revertCoupon2() {
761
+ const payload = {
762
+ participantId: ":participantId",
763
+ couponId: ":couponId"
764
+ };
765
+ const getRequestOptions = revertCoupon(payload);
766
+ const getUrl = (context) => {
767
+ const { url } = getRequestOptions(context);
768
+ return url;
769
+ };
770
+ return {
771
+ getUrl,
772
+ httpMethod: "POST",
773
+ path: "/v3/participants/{participantId}/coupons/{couponId}/revert",
774
+ pathParams: { participantId: "participantId", couponId: "couponId" },
775
+ __requestType: null,
776
+ __originalRequestType: null,
777
+ __responseType: null,
778
+ __originalResponseType: null
779
+ };
780
+ }
781
+ function bulkInviteToProgram2() {
782
+ const payload = {};
783
+ const getRequestOptions = bulkInviteToProgram(payload);
784
+ const getUrl = (context) => {
785
+ const { url } = getRequestOptions(context);
786
+ return url;
787
+ };
788
+ return {
789
+ getUrl,
790
+ httpMethod: "POST",
791
+ path: "/v3/bulk/participants/invite",
792
+ pathParams: {},
793
+ __requestType: null,
794
+ __originalRequestType: null,
795
+ __responseType: null,
796
+ __originalResponseType: null
797
+ };
798
+ }
799
+ function bulkInviteAllToProgram2() {
800
+ const payload = {};
801
+ const getRequestOptions = bulkInviteAllToProgram(payload);
802
+ const getUrl = (context) => {
803
+ const { url } = getRequestOptions(context);
804
+ return url;
805
+ };
806
+ return {
807
+ getUrl,
808
+ httpMethod: "POST",
809
+ path: "/v3/bulk/participants/invite-all",
810
+ pathParams: {},
811
+ __requestType: null,
812
+ __originalRequestType: null,
813
+ __responseType: null,
814
+ __originalResponseType: null
815
+ };
816
+ }
817
+ function bulkAddToProgram2() {
818
+ const payload = {};
819
+ const getRequestOptions = bulkAddToProgram(payload);
820
+ const getUrl = (context) => {
821
+ const { url } = getRequestOptions(context);
822
+ return url;
823
+ };
824
+ return {
825
+ getUrl,
826
+ httpMethod: "POST",
827
+ path: "/v3/bulk/participants/add",
828
+ pathParams: {},
829
+ __requestType: null,
830
+ __originalRequestType: null,
831
+ __responseType: null,
832
+ __originalResponseType: null
833
+ };
834
+ }
835
+ function bulkAddAllToProgram2() {
836
+ const payload = {};
837
+ const getRequestOptions = bulkAddAllToProgram(payload);
838
+ const getUrl = (context) => {
839
+ const { url } = getRequestOptions(context);
840
+ return url;
841
+ };
842
+ return {
843
+ getUrl,
844
+ httpMethod: "POST",
845
+ path: "/v3/bulk/participants/add-all",
846
+ pathParams: {},
847
+ __requestType: null,
848
+ __originalRequestType: null,
849
+ __responseType: null,
850
+ __originalResponseType: null
851
+ };
852
+ }
853
+ function bulkApproveParticipant2() {
854
+ const payload = {};
855
+ const getRequestOptions = bulkApproveParticipant(payload);
856
+ const getUrl = (context) => {
857
+ const { url } = getRequestOptions(context);
858
+ return url;
859
+ };
860
+ return {
861
+ getUrl,
862
+ httpMethod: "POST",
863
+ path: "/v3/bulk/participants/approve",
864
+ pathParams: {},
865
+ __requestType: null,
866
+ __originalRequestType: null,
867
+ __responseType: null,
868
+ __originalResponseType: null
869
+ };
870
+ }
871
+ function bulkApproveAllParticipant2() {
872
+ const payload = {};
873
+ const getRequestOptions = bulkApproveAllParticipant(payload);
874
+ const getUrl = (context) => {
875
+ const { url } = getRequestOptions(context);
876
+ return url;
877
+ };
878
+ return {
879
+ getUrl,
880
+ httpMethod: "POST",
881
+ path: "/v3/bulk/participants/approve-all",
882
+ pathParams: {},
883
+ __requestType: null,
884
+ __originalRequestType: null,
885
+ __responseType: null,
886
+ __originalResponseType: null
887
+ };
888
+ }
889
+ function deleteParticipant2() {
890
+ const payload = { participantId: ":participantId" };
891
+ const getRequestOptions = deleteParticipant(payload);
892
+ const getUrl = (context) => {
893
+ const { url } = getRequestOptions(context);
894
+ return url;
895
+ };
896
+ return {
897
+ getUrl,
898
+ httpMethod: "DELETE",
899
+ path: "/v3/participants/{participantId}",
900
+ pathParams: { participantId: "participantId" },
901
+ __requestType: null,
902
+ __originalRequestType: null,
903
+ __responseType: null,
904
+ __originalResponseType: null
905
+ };
906
+ }
907
+ function issueCertificate2() {
908
+ const payload = { participantId: ":participantId" };
909
+ const getRequestOptions = issueCertificate(payload);
910
+ const getUrl = (context) => {
911
+ const { url } = getRequestOptions(context);
912
+ return url;
913
+ };
914
+ return {
915
+ getUrl,
916
+ httpMethod: "POST",
917
+ path: "/v3/participants/{participantId}/issue-certificate",
918
+ pathParams: { participantId: "participantId" },
919
+ __requestType: null,
920
+ __originalRequestType: null,
921
+ __responseType: null,
922
+ __originalResponseType: null
923
+ };
924
+ }
925
+ function getCompletionStats2() {
926
+ const payload = { programId: ":programId" };
927
+ const getRequestOptions = getCompletionStats(payload);
928
+ const getUrl = (context) => {
929
+ const { url } = getRequestOptions(context);
930
+ return url;
931
+ };
932
+ return {
933
+ getUrl,
934
+ httpMethod: "GET",
935
+ path: "/v3/stats/completion/{programId}",
936
+ pathParams: { programId: "programId" },
937
+ __requestType: null,
938
+ __originalRequestType: null,
939
+ __responseType: null,
940
+ __originalResponseType: null
941
+ };
942
+ }
943
+ function getPremiumStats2() {
944
+ const payload = {};
945
+ const getRequestOptions = getPremiumStats(payload);
946
+ const getUrl = (context) => {
947
+ const { url } = getRequestOptions(context);
948
+ return url;
949
+ };
950
+ return {
951
+ getUrl,
952
+ httpMethod: "GET",
953
+ path: "/v3/stats/premium",
954
+ pathParams: {},
955
+ __requestType: null,
956
+ __originalRequestType: null,
957
+ __responseType: null,
958
+ __originalResponseType: null
959
+ };
960
+ }
961
+ function exportParticipantsStats2() {
962
+ const payload = { programId: ":programId" };
963
+ const getRequestOptions = exportParticipantsStats(payload);
964
+ const getUrl = (context) => {
965
+ const { url } = getRequestOptions(context);
966
+ return url;
967
+ };
968
+ return {
969
+ getUrl,
970
+ httpMethod: "GET",
971
+ path: "/v3/participants/export/{programId}",
972
+ pathParams: { programId: "programId" },
973
+ __requestType: null,
974
+ __originalRequestType: null,
975
+ __responseType: null,
976
+ __originalResponseType: null
977
+ };
978
+ }
979
+ export {
980
+ applyCoupon2 as applyCoupon,
981
+ bulkAddAllToProgram2 as bulkAddAllToProgram,
982
+ bulkAddToProgram2 as bulkAddToProgram,
983
+ bulkApproveAllParticipant2 as bulkApproveAllParticipant,
984
+ bulkApproveParticipant2 as bulkApproveParticipant,
985
+ bulkInviteAllToProgram2 as bulkInviteAllToProgram,
986
+ bulkInviteToProgram2 as bulkInviteToProgram,
987
+ deleteParticipant2 as deleteParticipant,
988
+ exportParticipantsStats2 as exportParticipantsStats,
989
+ getAccessStatus2 as getAccessStatus,
990
+ getCompletionStats2 as getCompletionStats,
991
+ getParticipant2 as getParticipant,
992
+ getPremiumStats2 as getPremiumStats,
993
+ issueCertificate2 as issueCertificate,
994
+ joinProgram2 as joinProgram,
995
+ leaveProgram2 as leaveProgram,
996
+ queryParticipants2 as queryParticipants,
997
+ revertCoupon2 as revertCoupon
998
+ };
999
+ //# sourceMappingURL=meta.mjs.map