@wix/auto_sdk_online-programs_participants 1.0.14 → 1.0.16

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