@wix/auto_sdk_online-programs_participants 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -93
  2. package/build/cjs/index.js +159 -1168
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +95 -652
  5. package/build/cjs/index.typings.js +11 -916
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +96 -487
  8. package/build/cjs/meta.js +11 -790
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -93
  11. package/build/es/index.mjs +144 -1139
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +95 -652
  14. package/build/es/index.typings.mjs +2 -892
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +96 -487
  17. package/build/es/meta.mjs +2 -767
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -104
  20. package/build/internal/cjs/index.js +159 -1168
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +95 -662
  23. package/build/internal/cjs/index.typings.js +11 -916
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +96 -487
  26. package/build/internal/cjs/meta.js +11 -790
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -104
  29. package/build/internal/es/index.mjs +144 -1139
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +95 -662
  32. package/build/internal/es/index.typings.mjs +2 -892
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +96 -487
  35. package/build/internal/es/meta.mjs +2 -767
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -20,334 +20,59 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- BenefitType: () => BenefitType,
24
- Event: () => Event,
25
23
  JoinPath: () => JoinPath,
26
- SortOrder: () => SortOrder,
27
24
  State: () => State,
28
25
  WebhookIdentityType: () => WebhookIdentityType,
29
- bulkAddAllToProgram: () => bulkAddAllToProgram4,
30
26
  bulkAddToProgram: () => bulkAddToProgram4,
31
27
  bulkApproveAllParticipant: () => bulkApproveAllParticipant4,
32
28
  bulkApproveParticipant: () => bulkApproveParticipant4,
33
- bulkCreateParticipant: () => bulkCreateParticipant4,
34
29
  bulkInviteAllToProgram: () => bulkInviteAllToProgram4,
35
30
  bulkInviteToProgram: () => bulkInviteToProgram4,
36
- createParticipant: () => createParticipant4,
37
- deleteParticipant: () => deleteParticipant4,
38
- exportParticipantsStats: () => exportParticipantsStats4,
39
- getAccessStatus: () => getAccessStatus4,
40
- getCompletionStats: () => getCompletionStats4,
41
- getParticipant: () => getParticipant4,
42
- getPremiumStats: () => getPremiumStats4,
43
- issueCertificate: () => issueCertificate4,
44
31
  onParticipantAdded: () => onParticipantAdded2,
45
32
  onParticipantApproved: () => onParticipantApproved2,
46
- onParticipantInvited: () => onParticipantInvited2,
47
- queryParticipants: () => queryParticipants4
33
+ onParticipantInvited: () => onParticipantInvited2
48
34
  });
49
35
  module.exports = __toCommonJS(index_exports);
50
36
 
51
37
  // src/online-programs-v3-participant-participants.public.ts
52
38
  var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
53
- var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
54
- var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
39
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
40
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
55
41
  var import_sdk_types = require("@wix/sdk-types");
56
42
 
57
43
  // src/online-programs-v3-participant-participants.universal.ts
58
44
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
59
- var import_query_builder = require("@wix/sdk-runtime/query-builder");
60
45
  var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
61
46
 
62
47
  // src/online-programs-v3-participant-participants.http.ts
63
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
64
48
  var import_float = require("@wix/sdk-runtime/transformations/float");
65
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
66
49
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
67
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
68
50
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
69
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
70
- function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
71
- const domainToMappings = {
72
- "bo._base_domain_": [
73
- {
74
- srcPath: "/participants-service",
75
- destPath: ""
76
- }
77
- ],
78
- "wixbo.ai": [
79
- {
80
- srcPath: "/participants-service",
81
- destPath: ""
82
- }
83
- ],
84
- "wix-bo.com": [
85
- {
86
- srcPath: "/participants-service",
87
- destPath: ""
88
- }
89
- ],
90
- "manage._base_domain_": [
91
- {
92
- srcPath: "/participants-service",
93
- destPath: ""
94
- }
95
- ],
96
- _: [
97
- {
98
- srcPath: "/participants-service",
99
- destPath: ""
100
- }
101
- ],
102
- "editor._base_domain_": [
103
- {
104
- srcPath: "/participants-service",
105
- destPath: ""
106
- }
107
- ],
108
- "blocks._base_domain_": [
109
- {
110
- srcPath: "/participants-service",
111
- destPath: ""
112
- }
113
- ],
114
- "create.editorx": [
115
- {
116
- srcPath: "/participants-service",
117
- destPath: ""
118
- }
119
- ],
120
- "www._base_domain_": [
121
- {
122
- srcPath: "/_api/participants-service",
123
- destPath: ""
124
- }
125
- ],
126
- "www.wixapis.com": [
127
- {
128
- srcPath: "/participants-service",
129
- destPath: ""
130
- }
131
- ]
132
- };
133
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
134
- }
51
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
135
52
  function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
136
- const domainToMappings = {
137
- "bo._base_domain_": [
138
- {
139
- srcPath: "/participants-service",
140
- destPath: ""
141
- }
142
- ],
143
- "wixbo.ai": [
144
- {
145
- srcPath: "/participants-service",
146
- destPath: ""
147
- }
148
- ],
149
- "wix-bo.com": [
150
- {
151
- srcPath: "/participants-service",
152
- destPath: ""
153
- }
154
- ],
155
- "manage._base_domain_": [
156
- {
157
- srcPath: "/participants-service",
158
- destPath: ""
159
- }
160
- ],
161
- _: [
162
- {
163
- srcPath: "/participants-service",
164
- destPath: ""
165
- }
166
- ],
167
- "editor._base_domain_": [
168
- {
169
- srcPath: "/participants-service",
170
- destPath: ""
171
- }
172
- ],
173
- "blocks._base_domain_": [
174
- {
175
- srcPath: "/participants-service",
176
- destPath: ""
177
- }
178
- ],
179
- "create.editorx": [
180
- {
181
- srcPath: "/participants-service",
182
- destPath: ""
183
- }
184
- ],
185
- "www._base_domain_": [
186
- {
187
- srcPath: "/_api/participants-service",
188
- destPath: ""
189
- }
190
- ],
191
- "www.wixapis.com": [
192
- {
193
- srcPath: "/participants-service",
194
- destPath: ""
195
- }
196
- ]
197
- };
198
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
199
- }
200
- function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
201
- const domainToMappings = {
202
- "bo._base_domain_": [
203
- {
204
- srcPath: "/participants-service",
205
- destPath: ""
206
- }
207
- ],
208
- "wixbo.ai": [
209
- {
210
- srcPath: "/participants-service",
211
- destPath: ""
212
- }
213
- ],
214
- "wix-bo.com": [
215
- {
216
- srcPath: "/participants-service",
217
- destPath: ""
218
- }
219
- ],
220
- "manage._base_domain_": [
221
- {
222
- srcPath: "/participants-service",
223
- destPath: ""
224
- }
225
- ],
226
- _: [
227
- {
228
- srcPath: "/participants-service",
229
- destPath: ""
230
- }
231
- ],
232
- "editor._base_domain_": [
233
- {
234
- srcPath: "/participants-service",
235
- destPath: ""
236
- }
237
- ],
238
- "blocks._base_domain_": [
239
- {
240
- srcPath: "/participants-service",
241
- destPath: ""
242
- }
243
- ],
244
- "create.editorx": [
245
- {
246
- srcPath: "/participants-service",
247
- destPath: ""
248
- }
249
- ],
250
- "www._base_domain_": [
251
- {
252
- srcPath: "/_api/participants-service",
253
- destPath: ""
254
- }
255
- ],
256
- "www.wixapis.com": [
257
- {
258
- srcPath: "/participants-service",
259
- destPath: ""
260
- }
261
- ]
262
- };
263
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
53
+ const domainToMappings = {};
54
+ return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
264
55
  }
265
56
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
266
- function createParticipant(payload) {
267
- function __createParticipant({ host }) {
268
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
269
- {
270
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
271
- paths: [
272
- { path: "participant.createdDate" },
273
- { path: "participant.updatedDate" },
274
- { path: "participant.lastActivityDate" },
275
- { path: "participant.certificate.issuedDate" }
276
- ]
277
- },
278
- {
279
- transformFn: import_float.transformSDKFloatToRESTFloat,
280
- paths: [{ path: "participant.progress.completionPercentage" }]
281
- }
282
- ]);
283
- const metadata = {
284
- entityFqdn: "wix.online_programs.v3.participant",
285
- method: "POST",
286
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
287
- packageName: PACKAGE_NAME,
288
- migrationOptions: {
289
- optInTransformResponse: true
290
- },
291
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
292
- protoPath: "/v3/participants",
293
- data: serializedData,
294
- host
295
- }),
296
- data: serializedData,
297
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
298
- {
299
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
300
- paths: [
301
- { path: "participant.createdDate" },
302
- { path: "participant.updatedDate" },
303
- { path: "participant.lastActivityDate" },
304
- { path: "participant.certificate.issuedDate" }
305
- ]
306
- },
307
- {
308
- transformFn: import_float2.transformRESTFloatToSDKFloat,
309
- paths: [{ path: "participant.progress.completionPercentage" }]
310
- }
311
- ])
312
- };
313
- return metadata;
314
- }
315
- return __createParticipant;
316
- }
317
- function bulkCreateParticipant(payload) {
318
- function __bulkCreateParticipant({ host }) {
319
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
320
- {
321
- transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
322
- paths: [
323
- { path: "participants.createdDate" },
324
- { path: "participants.updatedDate" },
325
- { path: "participants.lastActivityDate" },
326
- { path: "participants.certificate.issuedDate" }
327
- ]
328
- },
329
- {
330
- transformFn: import_float.transformSDKFloatToRESTFloat,
331
- paths: [{ path: "participants.progress.completionPercentage" }]
332
- }
333
- ]);
57
+ function bulkInviteToProgram(payload) {
58
+ function __bulkInviteToProgram({ host }) {
334
59
  const metadata = {
335
60
  entityFqdn: "wix.online_programs.v3.participant",
336
61
  method: "POST",
337
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
62
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
338
63
  packageName: PACKAGE_NAME,
339
64
  migrationOptions: {
340
65
  optInTransformResponse: true
341
66
  },
342
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
343
- protoPath: "/v3/bulk/participants/create",
344
- data: serializedData,
67
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
68
+ protoPath: "/v3/bulk/participants/invite",
69
+ data: payload,
345
70
  host
346
71
  }),
347
- data: serializedData,
72
+ data: payload,
348
73
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
349
74
  {
350
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
75
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
351
76
  paths: [
352
77
  { path: "results.item.createdDate" },
353
78
  { path: "results.item.updatedDate" },
@@ -356,749 +81,159 @@ function bulkCreateParticipant(payload) {
356
81
  ]
357
82
  },
358
83
  {
359
- transformFn: import_float2.transformRESTFloatToSDKFloat,
84
+ transformFn: import_float.transformRESTFloatToSDKFloat,
360
85
  paths: [{ path: "results.item.progress.completionPercentage" }]
361
86
  }
362
87
  ])
363
88
  };
364
89
  return metadata;
365
90
  }
366
- return __bulkCreateParticipant;
367
- }
368
- function bulkAddAllToProgram(payload) {
369
- function __bulkAddAllToProgram({ host }) {
370
- const metadata = {
371
- entityFqdn: "wix.online_programs.v3.participant",
372
- method: "POST",
373
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
374
- packageName: PACKAGE_NAME,
375
- migrationOptions: {
376
- optInTransformResponse: true
377
- },
378
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
379
- protoPath: "/v3/bulk/participants/add-all",
380
- data: payload,
381
- host
382
- }),
383
- data: payload
384
- };
385
- return metadata;
386
- }
387
- return __bulkAddAllToProgram;
388
- }
389
- function deleteParticipant(payload) {
390
- function __deleteParticipant({ host }) {
391
- const metadata = {
392
- entityFqdn: "wix.online_programs.v3.participant",
393
- method: "DELETE",
394
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
395
- packageName: PACKAGE_NAME,
396
- migrationOptions: {
397
- optInTransformResponse: true
398
- },
399
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
400
- protoPath: "/v3/participants/{participantId}",
401
- data: payload,
402
- host
403
- }),
404
- params: (0, import_rest_modules.toURLSearchParams)(payload)
405
- };
406
- return metadata;
407
- }
408
- return __deleteParticipant;
409
- }
410
- function issueCertificate(payload) {
411
- function __issueCertificate({ host }) {
412
- const metadata = {
413
- entityFqdn: "wix.online_programs.v3.participant",
414
- method: "POST",
415
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
416
- packageName: PACKAGE_NAME,
417
- migrationOptions: {
418
- optInTransformResponse: true
419
- },
420
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
421
- protoPath: "/v3/participants/{participantId}/issue-certificate",
422
- data: payload,
423
- host
424
- }),
425
- data: payload,
426
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
427
- {
428
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
429
- paths: [
430
- { path: "participant.createdDate" },
431
- { path: "participant.updatedDate" },
432
- { path: "participant.lastActivityDate" },
433
- { path: "participant.certificate.issuedDate" }
434
- ]
435
- },
436
- {
437
- transformFn: import_float2.transformRESTFloatToSDKFloat,
438
- paths: [{ path: "participant.progress.completionPercentage" }]
439
- }
440
- ])
441
- };
442
- return metadata;
443
- }
444
- return __issueCertificate;
445
- }
446
- function getCompletionStats(payload) {
447
- function __getCompletionStats({ host }) {
448
- const metadata = {
449
- entityFqdn: "wix.online_programs.v3.participant",
450
- method: "GET",
451
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
452
- packageName: PACKAGE_NAME,
453
- migrationOptions: {
454
- optInTransformResponse: true
455
- },
456
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
457
- protoPath: "/v3/stats/completion/{programId}",
458
- data: payload,
459
- host
460
- }),
461
- params: (0, import_rest_modules.toURLSearchParams)(payload),
462
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
463
- {
464
- transformFn: import_float2.transformRESTFloatToSDKFloat,
465
- paths: [{ path: "completionRate" }]
466
- }
467
- ])
468
- };
469
- return metadata;
470
- }
471
- return __getCompletionStats;
472
- }
473
- function getPremiumStats(payload) {
474
- function __getPremiumStats({ host }) {
475
- const metadata = {
476
- entityFqdn: "wix.online_programs.v3.participant",
477
- method: "GET",
478
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
479
- packageName: PACKAGE_NAME,
480
- migrationOptions: {
481
- optInTransformResponse: true
482
- },
483
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
484
- protoPath: "/v3/stats/premium",
485
- data: payload,
486
- host
487
- }),
488
- params: (0, import_rest_modules.toURLSearchParams)(payload)
489
- };
490
- return metadata;
491
- }
492
- return __getPremiumStats;
493
- }
494
- function getParticipant(payload) {
495
- function __getParticipant({ host }) {
496
- const metadata = {
497
- entityFqdn: "wix.online_programs.v3.participant",
498
- method: "GET",
499
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
500
- packageName: PACKAGE_NAME,
501
- migrationOptions: {
502
- optInTransformResponse: true
503
- },
504
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
505
- protoPath: "/v3/participants/{participantId}",
506
- data: payload,
507
- host
508
- }),
509
- params: (0, import_rest_modules.toURLSearchParams)(payload),
510
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
511
- {
512
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
513
- paths: [
514
- { path: "participant.createdDate" },
515
- { path: "participant.updatedDate" },
516
- { path: "participant.lastActivityDate" },
517
- { path: "participant.certificate.issuedDate" }
518
- ]
519
- },
520
- {
521
- transformFn: import_float2.transformRESTFloatToSDKFloat,
522
- paths: [{ path: "participant.progress.completionPercentage" }]
523
- }
524
- ])
525
- };
526
- return metadata;
527
- }
528
- return __getParticipant;
529
- }
530
- function queryParticipants(payload) {
531
- function __queryParticipants({ host }) {
532
- const metadata = {
533
- entityFqdn: "wix.online_programs.v3.participant",
534
- method: "POST",
535
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
536
- packageName: PACKAGE_NAME,
537
- migrationOptions: {
538
- optInTransformResponse: true
539
- },
540
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
541
- protoPath: "/v3/participants/query",
542
- data: payload,
543
- host
544
- }),
545
- data: payload,
546
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
547
- {
548
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
549
- paths: [
550
- { path: "participants.createdDate" },
551
- { path: "participants.updatedDate" },
552
- { path: "participants.lastActivityDate" },
553
- { path: "participants.certificate.issuedDate" }
554
- ]
555
- },
556
- {
557
- transformFn: import_float2.transformRESTFloatToSDKFloat,
558
- paths: [{ path: "participants.progress.completionPercentage" }]
559
- }
560
- ])
561
- };
562
- return metadata;
563
- }
564
- return __queryParticipants;
565
- }
566
- function getAccessStatus(payload) {
567
- function __getAccessStatus({ host }) {
568
- const metadata = {
569
- entityFqdn: "wix.online_programs.v3.participant",
570
- method: "GET",
571
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
572
- packageName: PACKAGE_NAME,
573
- migrationOptions: {
574
- optInTransformResponse: true
575
- },
576
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
577
- protoPath: "/v3/participants/access",
578
- data: payload,
579
- host
580
- }),
581
- params: (0, import_rest_modules.toURLSearchParams)(payload)
582
- };
583
- return metadata;
584
- }
585
- return __getAccessStatus;
586
- }
587
- function bulkInviteToProgram(payload) {
588
- function __bulkInviteToProgram({ host }) {
589
- const metadata = {
590
- entityFqdn: "wix.online_programs.v3.participant",
591
- method: "POST",
592
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
593
- packageName: PACKAGE_NAME,
594
- migrationOptions: {
595
- optInTransformResponse: true
596
- },
597
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
598
- protoPath: "/v3/bulk/participants/invite",
599
- data: payload,
600
- host
601
- }),
602
- data: payload,
603
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
604
- {
605
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
606
- paths: [
607
- { path: "results.item.createdDate" },
608
- { path: "results.item.updatedDate" },
609
- { path: "results.item.lastActivityDate" },
610
- { path: "results.item.certificate.issuedDate" }
611
- ]
612
- },
613
- {
614
- transformFn: import_float2.transformRESTFloatToSDKFloat,
615
- paths: [{ path: "results.item.progress.completionPercentage" }]
616
- }
617
- ])
618
- };
619
- return metadata;
620
- }
621
- return __bulkInviteToProgram;
91
+ return __bulkInviteToProgram;
622
92
  }
623
93
  function bulkInviteAllToProgram(payload) {
624
94
  function __bulkInviteAllToProgram({ host }) {
625
- const metadata = {
626
- entityFqdn: "wix.online_programs.v3.participant",
627
- method: "POST",
628
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
629
- packageName: PACKAGE_NAME,
630
- migrationOptions: {
631
- optInTransformResponse: true
632
- },
633
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
634
- protoPath: "/v3/bulk/participants/invite-all",
635
- data: payload,
636
- host
637
- }),
638
- data: payload
639
- };
640
- return metadata;
641
- }
642
- return __bulkInviteAllToProgram;
643
- }
644
- function bulkAddToProgram(payload) {
645
- function __bulkAddToProgram({ host }) {
646
- const metadata = {
647
- entityFqdn: "wix.online_programs.v3.participant",
648
- method: "POST",
649
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
650
- packageName: PACKAGE_NAME,
651
- migrationOptions: {
652
- optInTransformResponse: true
653
- },
654
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
655
- protoPath: "/v3/bulk/participants/add",
656
- data: payload,
657
- host
658
- }),
659
- data: payload,
660
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
661
- {
662
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
663
- paths: [
664
- { path: "results.item.createdDate" },
665
- { path: "results.item.updatedDate" },
666
- { path: "results.item.lastActivityDate" },
667
- { path: "results.item.certificate.issuedDate" }
668
- ]
669
- },
670
- {
671
- transformFn: import_float2.transformRESTFloatToSDKFloat,
672
- paths: [{ path: "results.item.progress.completionPercentage" }]
673
- }
674
- ])
675
- };
676
- return metadata;
677
- }
678
- return __bulkAddToProgram;
679
- }
680
- function bulkApproveParticipant(payload) {
681
- function __bulkApproveParticipant({ host }) {
682
- const metadata = {
683
- entityFqdn: "wix.online_programs.v3.participant",
684
- method: "POST",
685
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
686
- packageName: PACKAGE_NAME,
687
- migrationOptions: {
688
- optInTransformResponse: true
689
- },
690
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
691
- protoPath: "/v3/bulk/participants/approve",
692
- data: payload,
693
- host
694
- }),
695
- data: payload,
696
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
697
- {
698
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
699
- paths: [
700
- { path: "results.item.createdDate" },
701
- { path: "results.item.updatedDate" },
702
- { path: "results.item.lastActivityDate" },
703
- { path: "results.item.certificate.issuedDate" }
704
- ]
705
- },
706
- {
707
- transformFn: import_float2.transformRESTFloatToSDKFloat,
708
- paths: [{ path: "results.item.progress.completionPercentage" }]
709
- }
710
- ])
711
- };
712
- return metadata;
713
- }
714
- return __bulkApproveParticipant;
715
- }
716
- function bulkApproveAllParticipant(payload) {
717
- function __bulkApproveAllParticipant({ host }) {
718
- const metadata = {
719
- entityFqdn: "wix.online_programs.v3.participant",
720
- method: "POST",
721
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
722
- packageName: PACKAGE_NAME,
723
- migrationOptions: {
724
- optInTransformResponse: true
725
- },
726
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
727
- protoPath: "/v3/bulk/participants/approve-all",
728
- data: payload,
729
- host
730
- }),
731
- data: payload
732
- };
733
- return metadata;
734
- }
735
- return __bulkApproveAllParticipant;
736
- }
737
- function exportParticipantsStats(payload) {
738
- function __exportParticipantsStats({ host }) {
739
- const metadata = {
740
- entityFqdn: "wix.online_programs.v3.participant",
741
- method: "GET",
742
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
743
- packageName: PACKAGE_NAME,
744
- migrationOptions: {
745
- optInTransformResponse: true
746
- },
747
- url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
748
- protoPath: "/v3/participants/export/{programId}",
749
- data: payload,
750
- host
751
- }),
752
- params: (0, import_rest_modules.toURLSearchParams)(payload)
753
- };
754
- return metadata;
755
- }
756
- return __exportParticipantsStats;
757
- }
758
-
759
- // src/online-programs-v3-participant-participants.universal.ts
760
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
761
- var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
762
- JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
763
- JoinPath2["FREE"] = "FREE";
764
- JoinPath2["ADDED"] = "ADDED";
765
- JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
766
- JoinPath2["PAID_PLAN"] = "PAID_PLAN";
767
- JoinPath2["FREE_COUPON"] = "FREE_COUPON";
768
- return JoinPath2;
769
- })(JoinPath || {});
770
- var State = /* @__PURE__ */ ((State2) => {
771
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
772
- State2["JOINED"] = "JOINED";
773
- State2["COMPLETED"] = "COMPLETED";
774
- State2["FAILED"] = "FAILED";
775
- State2["SUSPENDED"] = "SUSPENDED";
776
- State2["AUTO_REMOVED"] = "AUTO_REMOVED";
777
- State2["REMOVED"] = "REMOVED";
778
- State2["LEFT"] = "LEFT";
779
- return State2;
780
- })(State || {});
781
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
782
- SortOrder2["ASC"] = "ASC";
783
- SortOrder2["DESC"] = "DESC";
784
- return SortOrder2;
785
- })(SortOrder || {});
786
- var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
787
- BenefitType2["UNDEFINED"] = "UNDEFINED";
788
- BenefitType2["LIMITED"] = "LIMITED";
789
- BenefitType2["UNLIMITED"] = "UNLIMITED";
790
- return BenefitType2;
791
- })(BenefitType || {});
792
- var Event = /* @__PURE__ */ ((Event2) => {
793
- Event2["Updated"] = "Updated";
794
- Event2["Deleted"] = "Deleted";
795
- Event2["Created"] = "Created";
796
- return Event2;
797
- })(Event || {});
798
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
799
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
800
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
801
- WebhookIdentityType2["MEMBER"] = "MEMBER";
802
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
803
- WebhookIdentityType2["APP"] = "APP";
804
- return WebhookIdentityType2;
805
- })(WebhookIdentityType || {});
806
- async function createParticipant2(participant) {
807
- const { httpClient, sideEffects } = arguments[1];
808
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
809
- participant
810
- });
811
- const reqOpts = createParticipant(payload);
812
- sideEffects?.onSiteCall?.();
813
- try {
814
- const result = await httpClient.request(reqOpts);
815
- sideEffects?.onSuccess?.(result);
816
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
817
- } catch (err) {
818
- const transformedError = (0, import_transform_error.transformError)(
819
- err,
820
- {
821
- spreadPathsToArguments: {},
822
- explicitPathsToArguments: { participant: "$[0]" },
823
- singleArgumentUnchanged: false
824
- },
825
- ["participant"]
826
- );
827
- sideEffects?.onError?.(err);
828
- throw transformedError;
829
- }
830
- }
831
- async function bulkCreateParticipant2(participants, options) {
832
- const { httpClient, sideEffects } = arguments[2];
833
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
834
- participants,
835
- returnEntity: options?.returnEntity
836
- });
837
- const reqOpts = bulkCreateParticipant(payload);
838
- sideEffects?.onSiteCall?.();
839
- try {
840
- const result = await httpClient.request(reqOpts);
841
- sideEffects?.onSuccess?.(result);
842
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
843
- } catch (err) {
844
- const transformedError = (0, import_transform_error.transformError)(
845
- err,
846
- {
847
- spreadPathsToArguments: {},
848
- explicitPathsToArguments: {
849
- participants: "$[0]",
850
- returnEntity: "$[1].returnEntity"
851
- },
852
- singleArgumentUnchanged: false
853
- },
854
- ["participants", "options"]
855
- );
856
- sideEffects?.onError?.(err);
857
- throw transformedError;
858
- }
859
- }
860
- async function bulkAddAllToProgram2(programId, options) {
861
- const { httpClient, sideEffects } = arguments[2];
862
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
863
- programId,
864
- excludeMemberIds: options?.excludeMemberIds
865
- });
866
- const reqOpts = bulkAddAllToProgram(payload);
867
- sideEffects?.onSiteCall?.();
868
- try {
869
- const result = await httpClient.request(reqOpts);
870
- sideEffects?.onSuccess?.(result);
871
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
872
- } catch (err) {
873
- const transformedError = (0, import_transform_error.transformError)(
874
- err,
875
- {
876
- spreadPathsToArguments: {},
877
- explicitPathsToArguments: {
878
- programId: "$[0]",
879
- excludeMemberIds: "$[1].excludeMemberIds"
880
- },
881
- singleArgumentUnchanged: false
882
- },
883
- ["programId", "options"]
884
- );
885
- sideEffects?.onError?.(err);
886
- throw transformedError;
887
- }
888
- }
889
- async function deleteParticipant2(participantId) {
890
- const { httpClient, sideEffects } = arguments[1];
891
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
892
- participantId
893
- });
894
- const reqOpts = deleteParticipant(payload);
895
- sideEffects?.onSiteCall?.();
896
- try {
897
- const result = await httpClient.request(reqOpts);
898
- sideEffects?.onSuccess?.(result);
899
- } catch (err) {
900
- const transformedError = (0, import_transform_error.transformError)(
901
- err,
902
- {
903
- spreadPathsToArguments: {},
904
- explicitPathsToArguments: { participantId: "$[0]" },
905
- singleArgumentUnchanged: false
906
- },
907
- ["participantId"]
908
- );
909
- sideEffects?.onError?.(err);
910
- throw transformedError;
911
- }
912
- }
913
- async function issueCertificate2(participantId) {
914
- const { httpClient, sideEffects } = arguments[1];
915
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
916
- participantId
917
- });
918
- const reqOpts = issueCertificate(payload);
919
- sideEffects?.onSiteCall?.();
920
- try {
921
- const result = await httpClient.request(reqOpts);
922
- sideEffects?.onSuccess?.(result);
923
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
924
- } catch (err) {
925
- const transformedError = (0, import_transform_error.transformError)(
926
- err,
927
- {
928
- spreadPathsToArguments: {},
929
- explicitPathsToArguments: { participantId: "$[0]" },
930
- singleArgumentUnchanged: false
931
- },
932
- ["participantId"]
933
- );
934
- sideEffects?.onError?.(err);
935
- throw transformedError;
936
- }
937
- }
938
- async function getCompletionStats2(programId) {
939
- const { httpClient, sideEffects } = arguments[1];
940
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
941
- programId
942
- });
943
- const reqOpts = getCompletionStats(payload);
944
- sideEffects?.onSiteCall?.();
945
- try {
946
- const result = await httpClient.request(reqOpts);
947
- sideEffects?.onSuccess?.(result);
948
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
949
- } catch (err) {
950
- const transformedError = (0, import_transform_error.transformError)(
951
- err,
952
- {
953
- spreadPathsToArguments: {},
954
- explicitPathsToArguments: { programId: "$[0]" },
955
- singleArgumentUnchanged: false
956
- },
957
- ["programId"]
958
- );
959
- sideEffects?.onError?.(err);
960
- throw transformedError;
961
- }
962
- }
963
- async function getPremiumStats2() {
964
- const { httpClient, sideEffects } = arguments[0];
965
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
966
- const reqOpts = getPremiumStats(payload);
967
- sideEffects?.onSiteCall?.();
968
- try {
969
- const result = await httpClient.request(reqOpts);
970
- sideEffects?.onSuccess?.(result);
971
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
972
- } catch (err) {
973
- const transformedError = (0, import_transform_error.transformError)(
974
- err,
975
- {
976
- spreadPathsToArguments: {},
977
- explicitPathsToArguments: {},
978
- singleArgumentUnchanged: false
95
+ const metadata = {
96
+ entityFqdn: "wix.online_programs.v3.participant",
97
+ method: "POST",
98
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
99
+ packageName: PACKAGE_NAME,
100
+ migrationOptions: {
101
+ optInTransformResponse: true
979
102
  },
980
- []
981
- );
982
- sideEffects?.onError?.(err);
983
- throw transformedError;
103
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
104
+ protoPath: "/v3/bulk/participants/invite-all",
105
+ data: payload,
106
+ host
107
+ }),
108
+ data: payload
109
+ };
110
+ return metadata;
984
111
  }
112
+ return __bulkInviteAllToProgram;
985
113
  }
986
- async function getParticipant2(participantId) {
987
- const { httpClient, sideEffects } = arguments[1];
988
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
989
- participantId
990
- });
991
- const reqOpts = getParticipant(payload);
992
- sideEffects?.onSiteCall?.();
993
- try {
994
- const result = await httpClient.request(reqOpts);
995
- sideEffects?.onSuccess?.(result);
996
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
997
- } catch (err) {
998
- const transformedError = (0, import_transform_error.transformError)(
999
- err,
1000
- {
1001
- spreadPathsToArguments: {},
1002
- explicitPathsToArguments: { participantId: "$[0]" },
1003
- singleArgumentUnchanged: false
114
+ function bulkAddToProgram(payload) {
115
+ function __bulkAddToProgram({ host }) {
116
+ const metadata = {
117
+ entityFqdn: "wix.online_programs.v3.participant",
118
+ method: "POST",
119
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
120
+ packageName: PACKAGE_NAME,
121
+ migrationOptions: {
122
+ optInTransformResponse: true
1004
123
  },
1005
- ["participantId"]
1006
- );
1007
- sideEffects?.onError?.(err);
1008
- throw transformedError;
124
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
125
+ protoPath: "/v3/bulk/participants/add",
126
+ data: payload,
127
+ host
128
+ }),
129
+ data: payload,
130
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
131
+ {
132
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
133
+ paths: [
134
+ { path: "results.item.createdDate" },
135
+ { path: "results.item.updatedDate" },
136
+ { path: "results.item.lastActivityDate" },
137
+ { path: "results.item.certificate.issuedDate" }
138
+ ]
139
+ },
140
+ {
141
+ transformFn: import_float.transformRESTFloatToSDKFloat,
142
+ paths: [{ path: "results.item.progress.completionPercentage" }]
143
+ }
144
+ ])
145
+ };
146
+ return metadata;
1009
147
  }
148
+ return __bulkAddToProgram;
1010
149
  }
1011
- function queryParticipants2() {
1012
- const { httpClient, sideEffects } = arguments[0];
1013
- return (0, import_query_builder.queryBuilder)({
1014
- func: async (payload) => {
1015
- const reqOpts = queryParticipants(payload);
1016
- sideEffects?.onSiteCall?.();
1017
- try {
1018
- const result = await httpClient.request(reqOpts);
1019
- sideEffects?.onSuccess?.(result);
1020
- return result;
1021
- } catch (err) {
1022
- sideEffects?.onError?.(err);
1023
- throw err;
1024
- }
1025
- },
1026
- requestTransformer: (query) => {
1027
- const args = [query, {}];
1028
- return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1029
- ...args?.[1],
1030
- query: args?.[0]
1031
- });
1032
- },
1033
- responseTransformer: ({
1034
- data
1035
- }) => {
1036
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1037
- (0, import_transform_paths2.transformPaths)(data, [])
1038
- );
1039
- return {
1040
- items: transformedData?.participants,
1041
- pagingMetadata: transformedData?.pagingMetadata
1042
- };
1043
- },
1044
- errorTransformer: (err) => {
1045
- const transformedError = (0, import_transform_error.transformError)(err, {
1046
- spreadPathsToArguments: {},
1047
- explicitPathsToArguments: { query: "$[0]" },
1048
- singleArgumentUnchanged: false
1049
- });
1050
- throw transformedError;
1051
- },
1052
- pagingMethod: "CURSOR",
1053
- transformationPaths: {}
1054
- });
1055
- }
1056
- async function typedQueryParticipants(query) {
1057
- const { httpClient, sideEffects } = arguments[1];
1058
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
1059
- const reqOpts = queryParticipants(payload);
1060
- sideEffects?.onSiteCall?.();
1061
- try {
1062
- const result = await httpClient.request(reqOpts);
1063
- sideEffects?.onSuccess?.(result);
1064
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1065
- } catch (err) {
1066
- const transformedError = (0, import_transform_error.transformError)(
1067
- err,
1068
- {
1069
- spreadPathsToArguments: {},
1070
- explicitPathsToArguments: { query: "$[0]" },
1071
- singleArgumentUnchanged: false
150
+ function bulkApproveParticipant(payload) {
151
+ function __bulkApproveParticipant({ host }) {
152
+ const metadata = {
153
+ entityFqdn: "wix.online_programs.v3.participant",
154
+ method: "POST",
155
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
156
+ packageName: PACKAGE_NAME,
157
+ migrationOptions: {
158
+ optInTransformResponse: true
1072
159
  },
1073
- ["query"]
1074
- );
1075
- sideEffects?.onError?.(err);
1076
- throw transformedError;
160
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
161
+ protoPath: "/v3/bulk/participants/approve",
162
+ data: payload,
163
+ host
164
+ }),
165
+ data: payload,
166
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
167
+ {
168
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
169
+ paths: [
170
+ { path: "results.item.createdDate" },
171
+ { path: "results.item.updatedDate" },
172
+ { path: "results.item.lastActivityDate" },
173
+ { path: "results.item.certificate.issuedDate" }
174
+ ]
175
+ },
176
+ {
177
+ transformFn: import_float.transformRESTFloatToSDKFloat,
178
+ paths: [{ path: "results.item.progress.completionPercentage" }]
179
+ }
180
+ ])
181
+ };
182
+ return metadata;
1077
183
  }
184
+ return __bulkApproveParticipant;
1078
185
  }
1079
- async function getAccessStatus2() {
1080
- const { httpClient, sideEffects } = arguments[0];
1081
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1082
- const reqOpts = getAccessStatus(payload);
1083
- sideEffects?.onSiteCall?.();
1084
- try {
1085
- const result = await httpClient.request(reqOpts);
1086
- sideEffects?.onSuccess?.(result);
1087
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1088
- } catch (err) {
1089
- const transformedError = (0, import_transform_error.transformError)(
1090
- err,
1091
- {
1092
- spreadPathsToArguments: {},
1093
- explicitPathsToArguments: {},
1094
- singleArgumentUnchanged: false
186
+ function bulkApproveAllParticipant(payload) {
187
+ function __bulkApproveAllParticipant({ host }) {
188
+ const metadata = {
189
+ entityFqdn: "wix.online_programs.v3.participant",
190
+ method: "POST",
191
+ methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
192
+ packageName: PACKAGE_NAME,
193
+ migrationOptions: {
194
+ optInTransformResponse: true
1095
195
  },
1096
- []
1097
- );
1098
- sideEffects?.onError?.(err);
1099
- throw transformedError;
196
+ url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
197
+ protoPath: "/v3/bulk/participants/approve-all",
198
+ data: payload,
199
+ host
200
+ }),
201
+ data: payload
202
+ };
203
+ return metadata;
1100
204
  }
205
+ return __bulkApproveAllParticipant;
1101
206
  }
207
+
208
+ // src/online-programs-v3-participant-participants.universal.ts
209
+ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
210
+ JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
211
+ JoinPath2["FREE"] = "FREE";
212
+ JoinPath2["ADDED"] = "ADDED";
213
+ JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
214
+ JoinPath2["PAID_PLAN"] = "PAID_PLAN";
215
+ JoinPath2["FREE_COUPON"] = "FREE_COUPON";
216
+ return JoinPath2;
217
+ })(JoinPath || {});
218
+ var State = /* @__PURE__ */ ((State2) => {
219
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
220
+ State2["JOINED"] = "JOINED";
221
+ State2["COMPLETED"] = "COMPLETED";
222
+ State2["FAILED"] = "FAILED";
223
+ State2["SUSPENDED"] = "SUSPENDED";
224
+ State2["AUTO_REMOVED"] = "AUTO_REMOVED";
225
+ State2["REMOVED"] = "REMOVED";
226
+ State2["LEFT"] = "LEFT";
227
+ return State2;
228
+ })(State || {});
229
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
230
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
231
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
232
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
233
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
234
+ WebhookIdentityType2["APP"] = "APP";
235
+ return WebhookIdentityType2;
236
+ })(WebhookIdentityType || {});
1102
237
  async function bulkInviteToProgram2(programId, options) {
1103
238
  const { httpClient, sideEffects } = arguments[2];
1104
239
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -1250,108 +385,8 @@ async function bulkApproveAllParticipant2(options) {
1250
385
  throw transformedError;
1251
386
  }
1252
387
  }
1253
- async function exportParticipantsStats2(programId) {
1254
- const { httpClient, sideEffects } = arguments[1];
1255
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1256
- programId
1257
- });
1258
- const reqOpts = exportParticipantsStats(payload);
1259
- sideEffects?.onSiteCall?.();
1260
- try {
1261
- const result = await httpClient.request(reqOpts);
1262
- sideEffects?.onSuccess?.(result);
1263
- } catch (err) {
1264
- const transformedError = (0, import_transform_error.transformError)(
1265
- err,
1266
- {
1267
- spreadPathsToArguments: {},
1268
- explicitPathsToArguments: { programId: "$[0]" },
1269
- singleArgumentUnchanged: false
1270
- },
1271
- ["programId"]
1272
- );
1273
- sideEffects?.onError?.(err);
1274
- throw transformedError;
1275
- }
1276
- }
1277
388
 
1278
389
  // src/online-programs-v3-participant-participants.public.ts
1279
- function createParticipant3(httpClient) {
1280
- return (participant) => createParticipant2(
1281
- participant,
1282
- // @ts-ignore
1283
- { httpClient }
1284
- );
1285
- }
1286
- function bulkCreateParticipant3(httpClient) {
1287
- return (participants, options) => bulkCreateParticipant2(
1288
- participants,
1289
- options,
1290
- // @ts-ignore
1291
- { httpClient }
1292
- );
1293
- }
1294
- function bulkAddAllToProgram3(httpClient) {
1295
- return (programId, options) => bulkAddAllToProgram2(
1296
- programId,
1297
- options,
1298
- // @ts-ignore
1299
- { httpClient }
1300
- );
1301
- }
1302
- function deleteParticipant3(httpClient) {
1303
- return (participantId) => deleteParticipant2(
1304
- participantId,
1305
- // @ts-ignore
1306
- { httpClient }
1307
- );
1308
- }
1309
- function issueCertificate3(httpClient) {
1310
- return (participantId) => issueCertificate2(
1311
- participantId,
1312
- // @ts-ignore
1313
- { httpClient }
1314
- );
1315
- }
1316
- function getCompletionStats3(httpClient) {
1317
- return (programId) => getCompletionStats2(
1318
- programId,
1319
- // @ts-ignore
1320
- { httpClient }
1321
- );
1322
- }
1323
- function getPremiumStats3(httpClient) {
1324
- return () => getPremiumStats2(
1325
- // @ts-ignore
1326
- { httpClient }
1327
- );
1328
- }
1329
- function getParticipant3(httpClient) {
1330
- return (participantId) => getParticipant2(
1331
- participantId,
1332
- // @ts-ignore
1333
- { httpClient }
1334
- );
1335
- }
1336
- function queryParticipants3(httpClient) {
1337
- return () => queryParticipants2(
1338
- // @ts-ignore
1339
- { httpClient }
1340
- );
1341
- }
1342
- function typedQueryParticipants2(httpClient) {
1343
- return (query) => typedQueryParticipants(
1344
- query,
1345
- // @ts-ignore
1346
- { httpClient }
1347
- );
1348
- }
1349
- function getAccessStatus3(httpClient) {
1350
- return () => getAccessStatus2(
1351
- // @ts-ignore
1352
- { httpClient }
1353
- );
1354
- }
1355
390
  function bulkInviteToProgram3(httpClient) {
1356
391
  return (programId, options) => bulkInviteToProgram2(
1357
392
  programId,
@@ -1391,20 +426,13 @@ function bulkApproveAllParticipant3(httpClient) {
1391
426
  { httpClient }
1392
427
  );
1393
428
  }
1394
- function exportParticipantsStats3(httpClient) {
1395
- return (programId) => exportParticipantsStats2(
1396
- programId,
1397
- // @ts-ignore
1398
- { httpClient }
1399
- );
1400
- }
1401
429
  var onParticipantAdded = (0, import_sdk_types.EventDefinition)(
1402
430
  "wix.online_programs.v3.participant_added",
1403
431
  true,
1404
432
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1405
- (0, import_transform_paths3.transformPaths)(event, [
433
+ (0, import_transform_paths2.transformPaths)(event, [
1406
434
  {
1407
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
435
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1408
436
  paths: [{ path: "metadata.eventTime" }]
1409
437
  }
1410
438
  ])
@@ -1414,9 +442,9 @@ var onParticipantApproved = (0, import_sdk_types.EventDefinition)(
1414
442
  "wix.online_programs.v3.participant_participant_approved",
1415
443
  true,
1416
444
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1417
- (0, import_transform_paths3.transformPaths)(event, [
445
+ (0, import_transform_paths2.transformPaths)(event, [
1418
446
  {
1419
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
447
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1420
448
  paths: [{ path: "metadata.eventTime" }]
1421
449
  }
1422
450
  ])
@@ -1426,9 +454,9 @@ var onParticipantInvited = (0, import_sdk_types.EventDefinition)(
1426
454
  "wix.online_programs.v3.participant_participant_invited",
1427
455
  true,
1428
456
  (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1429
- (0, import_transform_paths3.transformPaths)(event, [
457
+ (0, import_transform_paths2.transformPaths)(event, [
1430
458
  {
1431
- transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
459
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1432
460
  paths: [{ path: "metadata.eventTime" }]
1433
461
  }
1434
462
  ])
@@ -1436,36 +464,13 @@ var onParticipantInvited = (0, import_sdk_types.EventDefinition)(
1436
464
  )();
1437
465
 
1438
466
  // src/online-programs-v3-participant-participants.context.ts
1439
- var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
467
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
1440
468
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1441
- var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
1442
- function customQueryParticipants(httpClient) {
1443
- const router = (0, import_query_method_router.createQueryOverloadRouter)({
1444
- builderQueryFunction: () => queryParticipants3(httpClient)(),
1445
- typedQueryFunction: (query) => typedQueryParticipants2(httpClient)(query),
1446
- hasOptionsParameter: false
1447
- });
1448
- function overloadedQuery(query) {
1449
- return router(...arguments);
1450
- }
1451
- return overloadedQuery;
1452
- }
1453
- var createParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createParticipant3);
1454
- var bulkCreateParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipant3);
1455
- var bulkAddAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddAllToProgram3);
1456
- var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
1457
- var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
1458
- var getCompletionStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCompletionStats3);
1459
- var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
1460
- var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
1461
- var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
1462
- var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteToProgram3);
1463
- var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteAllToProgram3);
1464
- var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddToProgram3);
1465
- var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveParticipant3);
1466
- var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveAllParticipant3);
1467
- var exportParticipantsStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(exportParticipantsStats3);
1468
- var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryParticipants);
469
+ var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteToProgram3);
470
+ var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteAllToProgram3);
471
+ var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkAddToProgram3);
472
+ var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveParticipant3);
473
+ var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveAllParticipant3);
1469
474
  var onParticipantAdded2 = (0, import_event_definition_modules.createEventModule)(onParticipantAdded);
1470
475
  var onParticipantApproved2 = (0, import_event_definition_modules.createEventModule)(
1471
476
  onParticipantApproved
@@ -1475,30 +480,16 @@ var onParticipantInvited2 = (0, import_event_definition_modules.createEventModul
1475
480
  );
1476
481
  // Annotate the CommonJS export names for ESM import in node:
1477
482
  0 && (module.exports = {
1478
- BenefitType,
1479
- Event,
1480
483
  JoinPath,
1481
- SortOrder,
1482
484
  State,
1483
485
  WebhookIdentityType,
1484
- bulkAddAllToProgram,
1485
486
  bulkAddToProgram,
1486
487
  bulkApproveAllParticipant,
1487
488
  bulkApproveParticipant,
1488
- bulkCreateParticipant,
1489
489
  bulkInviteAllToProgram,
1490
490
  bulkInviteToProgram,
1491
- createParticipant,
1492
- deleteParticipant,
1493
- exportParticipantsStats,
1494
- getAccessStatus,
1495
- getCompletionStats,
1496
- getParticipant,
1497
- getPremiumStats,
1498
- issueCertificate,
1499
491
  onParticipantAdded,
1500
492
  onParticipantApproved,
1501
- onParticipantInvited,
1502
- queryParticipants
493
+ onParticipantInvited
1503
494
  });
1504
495
  //# sourceMappingURL=index.js.map