@wix/auto_sdk_online-programs_participants 1.0.13 → 1.0.15

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 +137 -49
  2. package/build/cjs/index.js +1188 -205
  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 +1301 -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-B-mpcshi.d.ts +2268 -0
  11. package/build/es/index.d.mts +137 -49
  12. package/build/es/index.mjs +1150 -186
  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 +1301 -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-B-mpcshi.d.mts +2268 -0
  21. package/build/internal/cjs/index.d.ts +152 -49
  22. package/build/internal/cjs/index.typings.d.ts +12 -690
  23. package/build/internal/cjs/meta.d.ts +1472 -265
  24. package/build/internal/cjs/online-programs-participants-v3-participant-participants.universal-Cicta6rs.d.ts +2311 -0
  25. package/build/internal/es/index.d.mts +152 -49
  26. package/build/internal/es/index.typings.d.mts +12 -690
  27. package/build/internal/es/meta.d.mts +1472 -265
  28. package/build/internal/es/online-programs-participants-v3-participant-participants.universal-Cicta6rs.d.mts +2311 -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
@@ -20,79 +20,398 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
- JoinPath: () => JoinPath,
24
- State: () => State,
23
+ AggregationType: () => AggregationType,
24
+ BulkActionType: () => BulkActionType,
25
+ EnrollmentStatus: () => EnrollmentStatus,
26
+ Interval: () => Interval,
27
+ MissingValues: () => MissingValues,
28
+ Mode: () => Mode,
29
+ NestedAggregationType: () => NestedAggregationType,
30
+ PricingType: () => PricingType,
31
+ ProgressStatus: () => ProgressStatus,
32
+ RequestedFields: () => RequestedFields,
33
+ ScalarType: () => ScalarType,
34
+ SortDirection: () => SortDirection,
35
+ SortOrder: () => SortOrder,
36
+ SortType: () => SortType,
25
37
  WebhookIdentityType: () => WebhookIdentityType,
26
- bulkAddToProgram: () => bulkAddToProgram2,
27
- bulkApproveAllParticipant: () => bulkApproveAllParticipant2,
28
- bulkApproveParticipant: () => bulkApproveParticipant2,
29
- bulkInviteAllToProgram: () => bulkInviteAllToProgram2,
30
- bulkInviteToProgram: () => bulkInviteToProgram2
38
+ bulkCreateParticipants: () => bulkCreateParticipants2,
39
+ bulkCreateParticipantsForAllMembers: () => bulkCreateParticipantsForAllMembers2,
40
+ bulkUpdateParticipantTags: () => bulkUpdateParticipantTags2,
41
+ bulkUpdateParticipantTagsByFilter: () => bulkUpdateParticipantTagsByFilter2,
42
+ createParticipant: () => createParticipant2,
43
+ deleteParticipant: () => deleteParticipant2,
44
+ exportParticipantsStats: () => exportParticipantsStats2,
45
+ getAccessStatus: () => getAccessStatus2,
46
+ getParticipant: () => getParticipant2,
47
+ getPremiumStats: () => getPremiumStats2,
48
+ issueCertificate: () => issueCertificate2,
49
+ queryParticipants: () => queryParticipants2,
50
+ searchParticipants: () => searchParticipants2,
51
+ typedQueryParticipants: () => typedQueryParticipants,
52
+ updateParticipant: () => updateParticipant2,
53
+ utils: () => utils
31
54
  });
32
55
  module.exports = __toCommonJS(index_typings_exports);
33
56
 
34
- // src/online-programs-v3-participant-participants.universal.ts
57
+ // src/online-programs-participants-v3-participant-participants.universal.ts
35
58
  var import_transform_error = require("@wix/sdk-runtime/transform-error");
59
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
36
60
  var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
37
61
 
38
- // src/online-programs-v3-participant-participants.http.ts
62
+ // src/online-programs-participants-v3-participant-participants.http.ts
63
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
39
64
  var import_float = require("@wix/sdk-runtime/transformations/float");
65
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
40
66
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
67
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
68
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
41
69
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
42
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
43
- function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
44
- const domainToMappings = {};
45
- return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
70
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
71
+ function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
72
+ const domainToMappings = {
73
+ "bo._base_domain_": [
74
+ {
75
+ srcPath: "/participants-service",
76
+ destPath: ""
77
+ }
78
+ ],
79
+ "wixbo.ai": [
80
+ {
81
+ srcPath: "/participants-service",
82
+ destPath: ""
83
+ }
84
+ ],
85
+ "wix-bo.com": [
86
+ {
87
+ srcPath: "/participants-service",
88
+ destPath: ""
89
+ }
90
+ ],
91
+ "manage._base_domain_": [
92
+ {
93
+ srcPath: "/participants-service",
94
+ destPath: ""
95
+ }
96
+ ],
97
+ _: [
98
+ {
99
+ srcPath: "/participants-service",
100
+ destPath: ""
101
+ }
102
+ ],
103
+ "editor._base_domain_": [
104
+ {
105
+ srcPath: "/participants-service",
106
+ destPath: ""
107
+ }
108
+ ],
109
+ "blocks._base_domain_": [
110
+ {
111
+ srcPath: "/participants-service",
112
+ destPath: ""
113
+ }
114
+ ],
115
+ "create.editorx": [
116
+ {
117
+ srcPath: "/participants-service",
118
+ destPath: ""
119
+ }
120
+ ],
121
+ "www._base_domain_": [
122
+ {
123
+ srcPath: "/_api/participants-service",
124
+ destPath: ""
125
+ }
126
+ ],
127
+ "www.wixapis.com": [
128
+ {
129
+ srcPath: "/online-programs/v3/participants",
130
+ destPath: "/v3/participants"
131
+ },
132
+ {
133
+ srcPath: "/online-programs/v3/bulk/participants",
134
+ destPath: "/v3/bulk/participants"
135
+ },
136
+ {
137
+ srcPath: "/online-programs/participants/v3/participants",
138
+ destPath: "/v3/participants"
139
+ },
140
+ {
141
+ srcPath: "/online-programs/participants/v3/bulk/participants",
142
+ destPath: "/v3/bulk/participants"
143
+ },
144
+ {
145
+ srcPath: "/online-programs/participants/v3/stats/premium",
146
+ destPath: "/v3/stats/premium"
147
+ }
148
+ ],
149
+ "*.dev.wix-code.com": [
150
+ {
151
+ srcPath: "/_api/participants-service",
152
+ destPath: ""
153
+ }
154
+ ]
155
+ };
156
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
157
+ }
158
+ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
159
+ const domainToMappings = {
160
+ "bo._base_domain_": [
161
+ {
162
+ srcPath: "/participants-service",
163
+ destPath: ""
164
+ }
165
+ ],
166
+ "wixbo.ai": [
167
+ {
168
+ srcPath: "/participants-service",
169
+ destPath: ""
170
+ }
171
+ ],
172
+ "wix-bo.com": [
173
+ {
174
+ srcPath: "/participants-service",
175
+ destPath: ""
176
+ }
177
+ ],
178
+ "manage._base_domain_": [
179
+ {
180
+ srcPath: "/participants-service",
181
+ destPath: ""
182
+ }
183
+ ],
184
+ _: [
185
+ {
186
+ srcPath: "/participants-service",
187
+ destPath: ""
188
+ }
189
+ ],
190
+ "editor._base_domain_": [
191
+ {
192
+ srcPath: "/participants-service",
193
+ destPath: ""
194
+ }
195
+ ],
196
+ "blocks._base_domain_": [
197
+ {
198
+ srcPath: "/participants-service",
199
+ destPath: ""
200
+ }
201
+ ],
202
+ "create.editorx": [
203
+ {
204
+ srcPath: "/participants-service",
205
+ destPath: ""
206
+ }
207
+ ],
208
+ "www._base_domain_": [
209
+ {
210
+ srcPath: "/_api/participants-service",
211
+ destPath: ""
212
+ }
213
+ ],
214
+ "www.wixapis.com": [
215
+ {
216
+ srcPath: "/online-programs/v3/participants",
217
+ destPath: "/v3/participants"
218
+ },
219
+ {
220
+ srcPath: "/online-programs/v3/bulk/participants",
221
+ destPath: "/v3/bulk/participants"
222
+ },
223
+ {
224
+ srcPath: "/online-programs/participants/v3/participants",
225
+ destPath: "/v3/participants"
226
+ },
227
+ {
228
+ srcPath: "/online-programs/participants/v3/bulk/participants",
229
+ destPath: "/v3/bulk/participants"
230
+ },
231
+ {
232
+ srcPath: "/online-programs/participants/v3/stats/premium",
233
+ destPath: "/v3/stats/premium"
234
+ }
235
+ ],
236
+ "*.dev.wix-code.com": [
237
+ {
238
+ srcPath: "/_api/participants-service",
239
+ destPath: ""
240
+ }
241
+ ]
242
+ };
243
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
46
244
  }
47
245
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
48
- function bulkInviteToProgram(payload) {
49
- function __bulkInviteToProgram({ host }) {
246
+ function createParticipant(payload) {
247
+ function __createParticipant({ host }) {
248
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
249
+ {
250
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
251
+ paths: [
252
+ { path: "participant.createdDate" },
253
+ { path: "participant.updatedDate" },
254
+ { path: "participant.lastActivityDate" },
255
+ { path: "participant.certificateInfo.issueDate" }
256
+ ]
257
+ },
258
+ {
259
+ transformFn: import_float.transformSDKFloatToRESTFloat,
260
+ paths: [{ path: "participant.progress.completionPercentage" }]
261
+ }
262
+ ]);
50
263
  const metadata = {
51
- entityFqdn: "wix.online_programs.v3.participant",
264
+ entityFqdn: "wix.online_programs.participants.v3.participant",
52
265
  method: "POST",
53
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
266
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
54
267
  packageName: PACKAGE_NAME,
55
268
  migrationOptions: {
56
269
  optInTransformResponse: true
57
270
  },
58
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
59
- protoPath: "/v3/bulk/participants/invite",
60
- data: payload,
271
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
272
+ protoPath: "/v3/participants",
273
+ data: serializedData,
61
274
  host
62
275
  }),
63
- data: payload,
276
+ data: serializedData,
64
277
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
65
278
  {
66
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
279
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
280
+ paths: [
281
+ { path: "participant.createdDate" },
282
+ { path: "participant.updatedDate" },
283
+ { path: "participant.lastActivityDate" },
284
+ { path: "participant.certificateInfo.issueDate" }
285
+ ]
286
+ },
287
+ {
288
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
289
+ paths: [{ path: "participant.progress.completionPercentage" }]
290
+ }
291
+ ])
292
+ };
293
+ return metadata;
294
+ }
295
+ return __createParticipant;
296
+ }
297
+ function updateParticipant(payload) {
298
+ function __updateParticipant({ host }) {
299
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
300
+ {
301
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
302
+ paths: [{ path: "fieldMask" }]
303
+ },
304
+ {
305
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
306
+ paths: [
307
+ { path: "participant.createdDate" },
308
+ { path: "participant.updatedDate" },
309
+ { path: "participant.lastActivityDate" },
310
+ { path: "participant.certificateInfo.issueDate" }
311
+ ]
312
+ },
313
+ {
314
+ transformFn: import_float.transformSDKFloatToRESTFloat,
315
+ paths: [{ path: "participant.progress.completionPercentage" }]
316
+ }
317
+ ]);
318
+ const metadata = {
319
+ entityFqdn: "wix.online_programs.participants.v3.participant",
320
+ method: "PATCH",
321
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant",
322
+ packageName: PACKAGE_NAME,
323
+ migrationOptions: {
324
+ optInTransformResponse: true
325
+ },
326
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
327
+ protoPath: "/v3/participants/{participant.id}",
328
+ data: serializedData,
329
+ host
330
+ }),
331
+ data: serializedData,
332
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
333
+ {
334
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
335
+ paths: [
336
+ { path: "participant.createdDate" },
337
+ { path: "participant.updatedDate" },
338
+ { path: "participant.lastActivityDate" },
339
+ { path: "participant.certificateInfo.issueDate" }
340
+ ]
341
+ },
342
+ {
343
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
344
+ paths: [{ path: "participant.progress.completionPercentage" }]
345
+ }
346
+ ])
347
+ };
348
+ return metadata;
349
+ }
350
+ return __updateParticipant;
351
+ }
352
+ function bulkCreateParticipants(payload) {
353
+ function __bulkCreateParticipants({ host }) {
354
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
355
+ {
356
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
357
+ paths: [
358
+ { path: "participants.createdDate" },
359
+ { path: "participants.updatedDate" },
360
+ { path: "participants.lastActivityDate" },
361
+ { path: "participants.certificateInfo.issueDate" }
362
+ ]
363
+ },
364
+ {
365
+ transformFn: import_float.transformSDKFloatToRESTFloat,
366
+ paths: [{ path: "participants.progress.completionPercentage" }]
367
+ }
368
+ ]);
369
+ const metadata = {
370
+ entityFqdn: "wix.online_programs.participants.v3.participant",
371
+ method: "POST",
372
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipants",
373
+ packageName: PACKAGE_NAME,
374
+ migrationOptions: {
375
+ optInTransformResponse: true
376
+ },
377
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
378
+ protoPath: "/v3/bulk/participants/create",
379
+ data: serializedData,
380
+ host
381
+ }),
382
+ data: serializedData,
383
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
384
+ {
385
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
67
386
  paths: [
68
387
  { path: "results.item.createdDate" },
69
388
  { path: "results.item.updatedDate" },
70
389
  { path: "results.item.lastActivityDate" },
71
- { path: "results.item.certificate.issuedDate" }
390
+ { path: "results.item.certificateInfo.issueDate" }
72
391
  ]
73
392
  },
74
393
  {
75
- transformFn: import_float.transformRESTFloatToSDKFloat,
394
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
76
395
  paths: [{ path: "results.item.progress.completionPercentage" }]
77
396
  }
78
397
  ])
79
398
  };
80
399
  return metadata;
81
400
  }
82
- return __bulkInviteToProgram;
401
+ return __bulkCreateParticipants;
83
402
  }
84
- function bulkInviteAllToProgram(payload) {
85
- function __bulkInviteAllToProgram({ host }) {
403
+ function bulkCreateParticipantsForAllMembers(payload) {
404
+ function __bulkCreateParticipantsForAllMembers({ host }) {
86
405
  const metadata = {
87
- entityFqdn: "wix.online_programs.v3.participant",
406
+ entityFqdn: "wix.online_programs.participants.v3.participant",
88
407
  method: "POST",
89
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
408
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipantsForAllMembers",
90
409
  packageName: PACKAGE_NAME,
91
410
  migrationOptions: {
92
411
  optInTransformResponse: true
93
412
  },
94
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
95
- protoPath: "/v3/bulk/participants/invite-all",
413
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
414
+ protoPath: "/v3/bulk/participants/create-for-all-members",
96
415
  data: payload,
97
416
  host
98
417
  }),
@@ -100,92 +419,191 @@ function bulkInviteAllToProgram(payload) {
100
419
  };
101
420
  return metadata;
102
421
  }
103
- return __bulkInviteAllToProgram;
422
+ return __bulkCreateParticipantsForAllMembers;
104
423
  }
105
- function bulkAddToProgram(payload) {
106
- function __bulkAddToProgram({ host }) {
424
+ function deleteParticipant(payload) {
425
+ function __deleteParticipant({ host }) {
107
426
  const metadata = {
108
- entityFqdn: "wix.online_programs.v3.participant",
427
+ entityFqdn: "wix.online_programs.participants.v3.participant",
428
+ method: "DELETE",
429
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
430
+ packageName: PACKAGE_NAME,
431
+ migrationOptions: {
432
+ optInTransformResponse: true
433
+ },
434
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
435
+ protoPath: "/v3/participants/{participantId}",
436
+ data: payload,
437
+ host
438
+ }),
439
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
440
+ };
441
+ return metadata;
442
+ }
443
+ return __deleteParticipant;
444
+ }
445
+ function issueCertificate(payload) {
446
+ function __issueCertificate({ host }) {
447
+ const metadata = {
448
+ entityFqdn: "wix.online_programs.participants.v3.participant",
109
449
  method: "POST",
110
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
450
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
111
451
  packageName: PACKAGE_NAME,
112
452
  migrationOptions: {
113
453
  optInTransformResponse: true
114
454
  },
115
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
116
- protoPath: "/v3/bulk/participants/add",
455
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
456
+ protoPath: "/v3/participants/{participantId}/issue-certificate",
117
457
  data: payload,
118
458
  host
119
459
  }),
120
460
  data: payload,
121
461
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
122
462
  {
123
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
463
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
124
464
  paths: [
125
- { path: "results.item.createdDate" },
126
- { path: "results.item.updatedDate" },
127
- { path: "results.item.lastActivityDate" },
128
- { path: "results.item.certificate.issuedDate" }
465
+ { path: "participant.createdDate" },
466
+ { path: "participant.updatedDate" },
467
+ { path: "participant.lastActivityDate" },
468
+ { path: "participant.certificateInfo.issueDate" }
129
469
  ]
130
470
  },
131
471
  {
132
- transformFn: import_float.transformRESTFloatToSDKFloat,
133
- paths: [{ path: "results.item.progress.completionPercentage" }]
472
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
473
+ paths: [{ path: "participant.progress.completionPercentage" }]
134
474
  }
135
475
  ])
136
476
  };
137
477
  return metadata;
138
478
  }
139
- return __bulkAddToProgram;
479
+ return __issueCertificate;
140
480
  }
141
- function bulkApproveParticipant(payload) {
142
- function __bulkApproveParticipant({ host }) {
481
+ function getPremiumStats(payload) {
482
+ function __getPremiumStats({ host }) {
143
483
  const metadata = {
144
- entityFqdn: "wix.online_programs.v3.participant",
484
+ entityFqdn: "wix.online_programs.participants.v3.participant",
485
+ method: "GET",
486
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
487
+ packageName: PACKAGE_NAME,
488
+ migrationOptions: {
489
+ optInTransformResponse: true
490
+ },
491
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
492
+ protoPath: "/v3/stats/premium",
493
+ data: payload,
494
+ host
495
+ }),
496
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
497
+ };
498
+ return metadata;
499
+ }
500
+ return __getPremiumStats;
501
+ }
502
+ function getParticipant(payload) {
503
+ function __getParticipant({ host }) {
504
+ const metadata = {
505
+ entityFqdn: "wix.online_programs.participants.v3.participant",
506
+ method: "GET",
507
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
508
+ packageName: PACKAGE_NAME,
509
+ migrationOptions: {
510
+ optInTransformResponse: true
511
+ },
512
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
513
+ protoPath: "/v3/participants/{participantId}",
514
+ data: payload,
515
+ host
516
+ }),
517
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
518
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
519
+ {
520
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
521
+ paths: [
522
+ { path: "participant.createdDate" },
523
+ { path: "participant.updatedDate" },
524
+ { path: "participant.lastActivityDate" },
525
+ { path: "participant.certificateInfo.issueDate" }
526
+ ]
527
+ },
528
+ {
529
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
530
+ paths: [{ path: "participant.progress.completionPercentage" }]
531
+ }
532
+ ])
533
+ };
534
+ return metadata;
535
+ }
536
+ return __getParticipant;
537
+ }
538
+ function queryParticipants(payload) {
539
+ function __queryParticipants({ host }) {
540
+ const metadata = {
541
+ entityFqdn: "wix.online_programs.participants.v3.participant",
145
542
  method: "POST",
146
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
543
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
147
544
  packageName: PACKAGE_NAME,
148
545
  migrationOptions: {
149
546
  optInTransformResponse: true
150
547
  },
151
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
152
- protoPath: "/v3/bulk/participants/approve",
548
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
549
+ protoPath: "/v3/participants/query",
153
550
  data: payload,
154
551
  host
155
552
  }),
156
553
  data: payload,
157
554
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
158
555
  {
159
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
556
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
160
557
  paths: [
161
- { path: "results.item.createdDate" },
162
- { path: "results.item.updatedDate" },
163
- { path: "results.item.lastActivityDate" },
164
- { path: "results.item.certificate.issuedDate" }
558
+ { path: "participants.createdDate" },
559
+ { path: "participants.updatedDate" },
560
+ { path: "participants.lastActivityDate" },
561
+ { path: "participants.certificateInfo.issueDate" }
165
562
  ]
166
563
  },
167
564
  {
168
- transformFn: import_float.transformRESTFloatToSDKFloat,
169
- paths: [{ path: "results.item.progress.completionPercentage" }]
565
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
566
+ paths: [{ path: "participants.progress.completionPercentage" }]
170
567
  }
171
568
  ])
172
569
  };
173
570
  return metadata;
174
571
  }
175
- return __bulkApproveParticipant;
572
+ return __queryParticipants;
573
+ }
574
+ function getAccessStatus(payload) {
575
+ function __getAccessStatus({ host }) {
576
+ const metadata = {
577
+ entityFqdn: "wix.online_programs.participants.v3.participant",
578
+ method: "GET",
579
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
580
+ packageName: PACKAGE_NAME,
581
+ migrationOptions: {
582
+ optInTransformResponse: true
583
+ },
584
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
585
+ protoPath: "/v3/participants/access",
586
+ data: payload,
587
+ host
588
+ }),
589
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
590
+ };
591
+ return metadata;
592
+ }
593
+ return __getAccessStatus;
176
594
  }
177
- function bulkApproveAllParticipant(payload) {
178
- function __bulkApproveAllParticipant({ host }) {
595
+ function bulkUpdateParticipantTags(payload) {
596
+ function __bulkUpdateParticipantTags({ host }) {
179
597
  const metadata = {
180
- entityFqdn: "wix.online_programs.v3.participant",
598
+ entityFqdn: "wix.online_programs.participants.v3.participant",
181
599
  method: "POST",
182
- methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
600
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
183
601
  packageName: PACKAGE_NAME,
184
602
  migrationOptions: {
185
603
  optInTransformResponse: true
186
604
  },
187
- url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
188
- protoPath: "/v3/bulk/participants/approve-all",
605
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
606
+ protoPath: "/v3/bulk/participants/update-tags",
189
607
  data: payload,
190
608
  host
191
609
  }),
@@ -193,30 +611,221 @@ function bulkApproveAllParticipant(payload) {
193
611
  };
194
612
  return metadata;
195
613
  }
196
- return __bulkApproveAllParticipant;
614
+ return __bulkUpdateParticipantTags;
615
+ }
616
+ function bulkUpdateParticipantTagsByFilter(payload) {
617
+ function __bulkUpdateParticipantTagsByFilter({ host }) {
618
+ const metadata = {
619
+ entityFqdn: "wix.online_programs.participants.v3.participant",
620
+ method: "POST",
621
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
622
+ packageName: PACKAGE_NAME,
623
+ migrationOptions: {
624
+ optInTransformResponse: true
625
+ },
626
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
627
+ protoPath: "/v3/bulk/participants/update-tags-by-filter",
628
+ data: payload,
629
+ host
630
+ }),
631
+ data: payload
632
+ };
633
+ return metadata;
634
+ }
635
+ return __bulkUpdateParticipantTagsByFilter;
636
+ }
637
+ function searchParticipants(payload) {
638
+ function __searchParticipants({ host }) {
639
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
640
+ {
641
+ transformFn: import_float.transformSDKFloatToRESTFloat,
642
+ paths: [
643
+ { path: "search.aggregations.range.buckets.from" },
644
+ { path: "search.aggregations.range.buckets.to" },
645
+ {
646
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
647
+ },
648
+ {
649
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
650
+ }
651
+ ]
652
+ }
653
+ ]);
654
+ const metadata = {
655
+ entityFqdn: "wix.online_programs.participants.v3.participant",
656
+ method: "POST",
657
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
658
+ packageName: PACKAGE_NAME,
659
+ migrationOptions: {
660
+ optInTransformResponse: true
661
+ },
662
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
663
+ protoPath: "/v3/participants/search",
664
+ data: serializedData,
665
+ host
666
+ }),
667
+ data: serializedData,
668
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
669
+ {
670
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
671
+ paths: [
672
+ { path: "participants.createdDate" },
673
+ { path: "participants.updatedDate" },
674
+ { path: "participants.lastActivityDate" },
675
+ { path: "participants.certificateInfo.issueDate" }
676
+ ]
677
+ },
678
+ {
679
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
680
+ paths: [
681
+ { path: "participants.progress.completionPercentage" },
682
+ { path: "aggregationData.results.scalar.value" },
683
+ {
684
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
685
+ },
686
+ {
687
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
688
+ },
689
+ { path: "aggregationData.results.ranges.results.from" },
690
+ { path: "aggregationData.results.ranges.results.to" },
691
+ {
692
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
693
+ },
694
+ {
695
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
696
+ },
697
+ {
698
+ path: "aggregationData.results.nested.results.results.*.range.from"
699
+ },
700
+ {
701
+ path: "aggregationData.results.nested.results.results.*.range.to"
702
+ }
703
+ ]
704
+ }
705
+ ])
706
+ };
707
+ return metadata;
708
+ }
709
+ return __searchParticipants;
710
+ }
711
+ function exportParticipantsStats(payload) {
712
+ function __exportParticipantsStats({ host }) {
713
+ const metadata = {
714
+ entityFqdn: "wix.online_programs.participants.v3.participant",
715
+ method: "GET",
716
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
717
+ packageName: PACKAGE_NAME,
718
+ migrationOptions: {
719
+ optInTransformResponse: true
720
+ },
721
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
722
+ protoPath: "/v3/participants/export/{programId}",
723
+ data: payload,
724
+ host
725
+ }),
726
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
727
+ };
728
+ return metadata;
729
+ }
730
+ return __exportParticipantsStats;
197
731
  }
198
732
 
199
- // src/online-programs-v3-participant-participants.universal.ts
200
- var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
201
- JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
202
- JoinPath2["FREE"] = "FREE";
203
- JoinPath2["ADDED"] = "ADDED";
204
- JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
205
- JoinPath2["PAID_PLAN"] = "PAID_PLAN";
206
- JoinPath2["FREE_COUPON"] = "FREE_COUPON";
207
- return JoinPath2;
208
- })(JoinPath || {});
209
- var State = /* @__PURE__ */ ((State2) => {
210
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
211
- State2["JOINED"] = "JOINED";
212
- State2["COMPLETED"] = "COMPLETED";
213
- State2["FAILED"] = "FAILED";
214
- State2["SUSPENDED"] = "SUSPENDED";
215
- State2["AUTO_REMOVED"] = "AUTO_REMOVED";
216
- State2["REMOVED"] = "REMOVED";
217
- State2["LEFT"] = "LEFT";
218
- return State2;
219
- })(State || {});
733
+ // src/online-programs-participants-v3-participant-participants.universal.ts
734
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
735
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
736
+ var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
737
+ var PricingType = /* @__PURE__ */ ((PricingType2) => {
738
+ PricingType2["FREE"] = "FREE";
739
+ PricingType2["ADDED_MANUALLY"] = "ADDED_MANUALLY";
740
+ PricingType2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
741
+ PricingType2["PAID_PLAN"] = "PAID_PLAN";
742
+ PricingType2["FREE_COUPON"] = "FREE_COUPON";
743
+ return PricingType2;
744
+ })(PricingType || {});
745
+ var EnrollmentStatus = /* @__PURE__ */ ((EnrollmentStatus2) => {
746
+ EnrollmentStatus2["JOINED"] = "JOINED";
747
+ EnrollmentStatus2["SUSPENDED"] = "SUSPENDED";
748
+ EnrollmentStatus2["AUTO_REMOVED"] = "AUTO_REMOVED";
749
+ EnrollmentStatus2["REMOVED"] = "REMOVED";
750
+ EnrollmentStatus2["LEFT"] = "LEFT";
751
+ return EnrollmentStatus2;
752
+ })(EnrollmentStatus || {});
753
+ var ProgressStatus = /* @__PURE__ */ ((ProgressStatus2) => {
754
+ ProgressStatus2["NOT_STARTED"] = "NOT_STARTED";
755
+ ProgressStatus2["IN_PROGRESS"] = "IN_PROGRESS";
756
+ ProgressStatus2["COMPLETED"] = "COMPLETED";
757
+ ProgressStatus2["FAILED"] = "FAILED";
758
+ ProgressStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
759
+ return ProgressStatus2;
760
+ })(ProgressStatus || {});
761
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
762
+ RequestedFields2["PROGRESS"] = "PROGRESS";
763
+ return RequestedFields2;
764
+ })(RequestedFields || {});
765
+ var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
766
+ BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
767
+ BulkActionType2["INSERT"] = "INSERT";
768
+ BulkActionType2["UPDATE"] = "UPDATE";
769
+ return BulkActionType2;
770
+ })(BulkActionType || {});
771
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
772
+ SortOrder2["ASC"] = "ASC";
773
+ SortOrder2["DESC"] = "DESC";
774
+ return SortOrder2;
775
+ })(SortOrder || {});
776
+ var SortType = /* @__PURE__ */ ((SortType2) => {
777
+ SortType2["COUNT"] = "COUNT";
778
+ SortType2["VALUE"] = "VALUE";
779
+ return SortType2;
780
+ })(SortType || {});
781
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
782
+ SortDirection2["DESC"] = "DESC";
783
+ SortDirection2["ASC"] = "ASC";
784
+ return SortDirection2;
785
+ })(SortDirection || {});
786
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
787
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
788
+ MissingValues2["INCLUDE"] = "INCLUDE";
789
+ return MissingValues2;
790
+ })(MissingValues || {});
791
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
792
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
793
+ ScalarType2["MIN"] = "MIN";
794
+ ScalarType2["MAX"] = "MAX";
795
+ ScalarType2["SUM"] = "SUM";
796
+ ScalarType2["AVG"] = "AVG";
797
+ return ScalarType2;
798
+ })(ScalarType || {});
799
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
800
+ NestedAggregationType2["VALUE"] = "VALUE";
801
+ NestedAggregationType2["RANGE"] = "RANGE";
802
+ NestedAggregationType2["SCALAR"] = "SCALAR";
803
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
804
+ return NestedAggregationType2;
805
+ })(NestedAggregationType || {});
806
+ var Interval = /* @__PURE__ */ ((Interval2) => {
807
+ Interval2["YEAR"] = "YEAR";
808
+ Interval2["MONTH"] = "MONTH";
809
+ Interval2["WEEK"] = "WEEK";
810
+ Interval2["DAY"] = "DAY";
811
+ Interval2["HOUR"] = "HOUR";
812
+ Interval2["MINUTE"] = "MINUTE";
813
+ Interval2["SECOND"] = "SECOND";
814
+ return Interval2;
815
+ })(Interval || {});
816
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
817
+ AggregationType2["VALUE"] = "VALUE";
818
+ AggregationType2["RANGE"] = "RANGE";
819
+ AggregationType2["SCALAR"] = "SCALAR";
820
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
821
+ AggregationType2["NESTED"] = "NESTED";
822
+ return AggregationType2;
823
+ })(AggregationType || {});
824
+ var Mode = /* @__PURE__ */ ((Mode2) => {
825
+ Mode2["OR"] = "OR";
826
+ Mode2["AND"] = "AND";
827
+ return Mode2;
828
+ })(Mode || {});
220
829
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
221
830
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
222
831
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -225,14 +834,78 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
225
834
  WebhookIdentityType2["APP"] = "APP";
226
835
  return WebhookIdentityType2;
227
836
  })(WebhookIdentityType || {});
228
- async function bulkInviteToProgram2(programId, options) {
837
+ async function createParticipant2(participant, options) {
229
838
  const { httpClient, sideEffects } = arguments[2];
230
839
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
231
- programId,
232
- memberIds: options?.memberIds,
233
- returnEntity: options?.returnEntity
840
+ participant,
841
+ fields: options?.fields
842
+ });
843
+ const reqOpts = createParticipant(
844
+ payload
845
+ );
846
+ sideEffects?.onSiteCall?.();
847
+ try {
848
+ const result = await httpClient.request(reqOpts);
849
+ sideEffects?.onSuccess?.(result);
850
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
851
+ } catch (err) {
852
+ const transformedError = (0, import_transform_error.transformError)(
853
+ err,
854
+ {
855
+ spreadPathsToArguments: {},
856
+ explicitPathsToArguments: {
857
+ participant: "$[0]",
858
+ fields: "$[1].fields"
859
+ },
860
+ singleArgumentUnchanged: false
861
+ },
862
+ ["participant", "options"]
863
+ );
864
+ sideEffects?.onError?.(err);
865
+ throw transformedError;
866
+ }
867
+ }
868
+ async function updateParticipant2(_id, participant, options) {
869
+ const { httpClient, sideEffects } = arguments[3];
870
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
871
+ participant: { ...participant, id: _id },
872
+ fields: options?.fields
873
+ });
874
+ const reqOpts = updateParticipant(
875
+ payload
876
+ );
877
+ sideEffects?.onSiteCall?.();
878
+ try {
879
+ const result = await httpClient.request(reqOpts);
880
+ sideEffects?.onSuccess?.(result);
881
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
882
+ } catch (err) {
883
+ const transformedError = (0, import_transform_error.transformError)(
884
+ err,
885
+ {
886
+ spreadPathsToArguments: { participant: "$[1]" },
887
+ explicitPathsToArguments: {
888
+ "participant.id": "$[0]",
889
+ fields: "$[2].fields"
890
+ },
891
+ singleArgumentUnchanged: false
892
+ },
893
+ ["_id", "participant", "options"]
894
+ );
895
+ sideEffects?.onError?.(err);
896
+ throw transformedError;
897
+ }
898
+ }
899
+ async function bulkCreateParticipants2(participants, options) {
900
+ const { httpClient, sideEffects } = arguments[2];
901
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
902
+ participants,
903
+ returnEntity: options?.returnEntity,
904
+ fields: options?.fields
234
905
  });
235
- const reqOpts = bulkInviteToProgram(payload);
906
+ const reqOpts = bulkCreateParticipants(
907
+ payload
908
+ );
236
909
  sideEffects?.onSiteCall?.();
237
910
  try {
238
911
  const result = await httpClient.request(reqOpts);
@@ -244,25 +917,27 @@ async function bulkInviteToProgram2(programId, options) {
244
917
  {
245
918
  spreadPathsToArguments: {},
246
919
  explicitPathsToArguments: {
247
- programId: "$[0]",
248
- memberIds: "$[1].memberIds",
249
- returnEntity: "$[1].returnEntity"
920
+ participants: "$[0]",
921
+ returnEntity: "$[1].returnEntity",
922
+ fields: "$[1].fields"
250
923
  },
251
924
  singleArgumentUnchanged: false
252
925
  },
253
- ["programId", "options"]
926
+ ["participants", "options"]
254
927
  );
255
928
  sideEffects?.onError?.(err);
256
929
  throw transformedError;
257
930
  }
258
931
  }
259
- async function bulkInviteAllToProgram2(programId, options) {
932
+ async function bulkCreateParticipantsForAllMembers2(programId, options) {
260
933
  const { httpClient, sideEffects } = arguments[2];
261
934
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
262
935
  programId,
263
936
  excludeMemberIds: options?.excludeMemberIds
264
937
  });
265
- const reqOpts = bulkInviteAllToProgram(payload);
938
+ const reqOpts = bulkCreateParticipantsForAllMembers(
939
+ payload
940
+ );
266
941
  sideEffects?.onSiteCall?.();
267
942
  try {
268
943
  const result = await httpClient.request(reqOpts);
@@ -285,14 +960,41 @@ async function bulkInviteAllToProgram2(programId, options) {
285
960
  throw transformedError;
286
961
  }
287
962
  }
288
- async function bulkAddToProgram2(programId, options) {
963
+ async function deleteParticipant2(participantId) {
964
+ const { httpClient, sideEffects } = arguments[1];
965
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
966
+ participantId
967
+ });
968
+ const reqOpts = deleteParticipant(
969
+ payload
970
+ );
971
+ sideEffects?.onSiteCall?.();
972
+ try {
973
+ const result = await httpClient.request(reqOpts);
974
+ sideEffects?.onSuccess?.(result);
975
+ } catch (err) {
976
+ const transformedError = (0, import_transform_error.transformError)(
977
+ err,
978
+ {
979
+ spreadPathsToArguments: {},
980
+ explicitPathsToArguments: { participantId: "$[0]" },
981
+ singleArgumentUnchanged: false
982
+ },
983
+ ["participantId"]
984
+ );
985
+ sideEffects?.onError?.(err);
986
+ throw transformedError;
987
+ }
988
+ }
989
+ async function issueCertificate2(participantId, options) {
289
990
  const { httpClient, sideEffects } = arguments[2];
290
991
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
291
- programId,
292
- memberIds: options?.memberIds,
293
- returnEntity: options?.returnEntity
992
+ participantId,
993
+ fields: options?.fields
294
994
  });
295
- const reqOpts = bulkAddToProgram(payload);
995
+ const reqOpts = issueCertificate(
996
+ payload
997
+ );
296
998
  sideEffects?.onSiteCall?.();
297
999
  try {
298
1000
  const result = await httpClient.request(reqOpts);
@@ -304,26 +1006,188 @@ async function bulkAddToProgram2(programId, options) {
304
1006
  {
305
1007
  spreadPathsToArguments: {},
306
1008
  explicitPathsToArguments: {
307
- programId: "$[0]",
308
- memberIds: "$[1].memberIds",
309
- returnEntity: "$[1].returnEntity"
1009
+ participantId: "$[0]",
1010
+ fields: "$[1].fields"
310
1011
  },
311
1012
  singleArgumentUnchanged: false
312
1013
  },
313
- ["programId", "options"]
1014
+ ["participantId", "options"]
1015
+ );
1016
+ sideEffects?.onError?.(err);
1017
+ throw transformedError;
1018
+ }
1019
+ }
1020
+ async function getPremiumStats2() {
1021
+ const { httpClient, sideEffects } = arguments[0];
1022
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1023
+ const reqOpts = getPremiumStats(
1024
+ payload
1025
+ );
1026
+ sideEffects?.onSiteCall?.();
1027
+ try {
1028
+ const result = await httpClient.request(reqOpts);
1029
+ sideEffects?.onSuccess?.(result);
1030
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1031
+ } catch (err) {
1032
+ const transformedError = (0, import_transform_error.transformError)(
1033
+ err,
1034
+ {
1035
+ spreadPathsToArguments: {},
1036
+ explicitPathsToArguments: {},
1037
+ singleArgumentUnchanged: false
1038
+ },
1039
+ []
1040
+ );
1041
+ sideEffects?.onError?.(err);
1042
+ throw transformedError;
1043
+ }
1044
+ }
1045
+ async function getParticipant2(participantId, options) {
1046
+ const { httpClient, sideEffects } = arguments[2];
1047
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1048
+ participantId,
1049
+ fields: options?.fields
1050
+ });
1051
+ const reqOpts = getParticipant(
1052
+ payload
1053
+ );
1054
+ sideEffects?.onSiteCall?.();
1055
+ try {
1056
+ const result = await httpClient.request(reqOpts);
1057
+ sideEffects?.onSuccess?.(result);
1058
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
1059
+ } catch (err) {
1060
+ const transformedError = (0, import_transform_error.transformError)(
1061
+ err,
1062
+ {
1063
+ spreadPathsToArguments: {},
1064
+ explicitPathsToArguments: {
1065
+ participantId: "$[0]",
1066
+ fields: "$[1].fields"
1067
+ },
1068
+ singleArgumentUnchanged: false
1069
+ },
1070
+ ["participantId", "options"]
1071
+ );
1072
+ sideEffects?.onError?.(err);
1073
+ throw transformedError;
1074
+ }
1075
+ }
1076
+ function queryParticipants2(options) {
1077
+ const { httpClient, sideEffects } = arguments[1];
1078
+ return (0, import_query_builder.queryBuilder)({
1079
+ func: async (payload) => {
1080
+ const reqOpts = queryParticipants({
1081
+ ...payload,
1082
+ ...options ?? {}
1083
+ });
1084
+ sideEffects?.onSiteCall?.();
1085
+ try {
1086
+ const result = await httpClient.request(reqOpts);
1087
+ sideEffects?.onSuccess?.(result);
1088
+ return result;
1089
+ } catch (err) {
1090
+ sideEffects?.onError?.(err);
1091
+ throw err;
1092
+ }
1093
+ },
1094
+ requestTransformer: (query) => {
1095
+ const args = [query, options];
1096
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1097
+ ...args?.[1],
1098
+ query: args?.[0]
1099
+ });
1100
+ },
1101
+ responseTransformer: ({
1102
+ data
1103
+ }) => {
1104
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1105
+ (0, import_transform_paths2.transformPaths)(data, [])
1106
+ );
1107
+ return {
1108
+ items: transformedData?.participants,
1109
+ pagingMetadata: transformedData?.pagingMetadata
1110
+ };
1111
+ },
1112
+ errorTransformer: (err) => {
1113
+ const transformedError = (0, import_transform_error.transformError)(err, {
1114
+ spreadPathsToArguments: {},
1115
+ explicitPathsToArguments: { query: "$[0]" },
1116
+ singleArgumentUnchanged: false
1117
+ });
1118
+ throw transformedError;
1119
+ },
1120
+ pagingMethod: "CURSOR",
1121
+ transformationPaths: {}
1122
+ });
1123
+ }
1124
+ async function typedQueryParticipants(query, options) {
1125
+ const { httpClient, sideEffects } = arguments[2];
1126
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1127
+ query,
1128
+ ...options
1129
+ });
1130
+ const reqOpts = queryParticipants(
1131
+ payload
1132
+ );
1133
+ sideEffects?.onSiteCall?.();
1134
+ try {
1135
+ const result = await httpClient.request(reqOpts);
1136
+ sideEffects?.onSuccess?.(result);
1137
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1138
+ } catch (err) {
1139
+ const transformedError = (0, import_transform_error.transformError)(
1140
+ err,
1141
+ {
1142
+ spreadPathsToArguments: {},
1143
+ explicitPathsToArguments: { query: "$[0]" },
1144
+ singleArgumentUnchanged: false
1145
+ },
1146
+ ["query", "options"]
1147
+ );
1148
+ sideEffects?.onError?.(err);
1149
+ throw transformedError;
1150
+ }
1151
+ }
1152
+ var utils = {
1153
+ query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)(),
1154
+ search: /* @__PURE__ */ (0, import_search_builder_utils.createSearchUtils)()
1155
+ };
1156
+ async function getAccessStatus2() {
1157
+ const { httpClient, sideEffects } = arguments[0];
1158
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
1159
+ const reqOpts = getAccessStatus(
1160
+ payload
1161
+ );
1162
+ sideEffects?.onSiteCall?.();
1163
+ try {
1164
+ const result = await httpClient.request(reqOpts);
1165
+ sideEffects?.onSuccess?.(result);
1166
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1167
+ } catch (err) {
1168
+ const transformedError = (0, import_transform_error.transformError)(
1169
+ err,
1170
+ {
1171
+ spreadPathsToArguments: {},
1172
+ explicitPathsToArguments: {},
1173
+ singleArgumentUnchanged: false
1174
+ },
1175
+ []
314
1176
  );
315
1177
  sideEffects?.onError?.(err);
316
1178
  throw transformedError;
317
1179
  }
318
1180
  }
319
- async function bulkApproveParticipant2(participantIds, options) {
1181
+ async function bulkUpdateParticipantTags2(participantIds, options) {
320
1182
  const { httpClient, sideEffects } = arguments[2];
321
1183
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
322
1184
  participantIds,
323
- programId: options?.programId,
324
- returnEntity: options?.returnEntity
1185
+ assignTags: options?.assignTags,
1186
+ unassignTags: options?.unassignTags
325
1187
  });
326
- const reqOpts = bulkApproveParticipant(payload);
1188
+ const reqOpts = bulkUpdateParticipantTags(
1189
+ payload
1190
+ );
327
1191
  sideEffects?.onSiteCall?.();
328
1192
  try {
329
1193
  const result = await httpClient.request(reqOpts);
@@ -336,8 +1200,8 @@ async function bulkApproveParticipant2(participantIds, options) {
336
1200
  spreadPathsToArguments: {},
337
1201
  explicitPathsToArguments: {
338
1202
  participantIds: "$[0]",
339
- programId: "$[1].programId",
340
- returnEntity: "$[1].returnEntity"
1203
+ assignTags: "$[1].assignTags",
1204
+ unassignTags: "$[1].unassignTags"
341
1205
  },
342
1206
  singleArgumentUnchanged: false
343
1207
  },
@@ -347,13 +1211,16 @@ async function bulkApproveParticipant2(participantIds, options) {
347
1211
  throw transformedError;
348
1212
  }
349
1213
  }
350
- async function bulkApproveAllParticipant2(options) {
351
- const { httpClient, sideEffects } = arguments[1];
1214
+ async function bulkUpdateParticipantTagsByFilter2(filter, options) {
1215
+ const { httpClient, sideEffects } = arguments[2];
352
1216
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
353
- programId: options?.programId,
354
- excludeParticipantIds: options?.excludeParticipantIds
1217
+ filter,
1218
+ assignTags: options?.assignTags,
1219
+ unassignTags: options?.unassignTags
355
1220
  });
356
- const reqOpts = bulkApproveAllParticipant(payload);
1221
+ const reqOpts = bulkUpdateParticipantTagsByFilter(
1222
+ payload
1223
+ );
357
1224
  sideEffects?.onSiteCall?.();
358
1225
  try {
359
1226
  const result = await httpClient.request(reqOpts);
@@ -365,12 +1232,67 @@ async function bulkApproveAllParticipant2(options) {
365
1232
  {
366
1233
  spreadPathsToArguments: {},
367
1234
  explicitPathsToArguments: {
368
- programId: "$[0].programId",
369
- excludeParticipantIds: "$[0].excludeParticipantIds"
1235
+ filter: "$[0]",
1236
+ assignTags: "$[1].assignTags",
1237
+ unassignTags: "$[1].unassignTags"
370
1238
  },
371
1239
  singleArgumentUnchanged: false
372
1240
  },
373
- ["options"]
1241
+ ["filter", "options"]
1242
+ );
1243
+ sideEffects?.onError?.(err);
1244
+ throw transformedError;
1245
+ }
1246
+ }
1247
+ async function searchParticipants2(search, options) {
1248
+ const { httpClient, sideEffects } = arguments[2];
1249
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1250
+ search,
1251
+ fields: options?.fields
1252
+ });
1253
+ const reqOpts = searchParticipants(
1254
+ payload
1255
+ );
1256
+ sideEffects?.onSiteCall?.();
1257
+ try {
1258
+ const result = await httpClient.request(reqOpts);
1259
+ sideEffects?.onSuccess?.(result);
1260
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1261
+ } catch (err) {
1262
+ const transformedError = (0, import_transform_error.transformError)(
1263
+ err,
1264
+ {
1265
+ spreadPathsToArguments: {},
1266
+ explicitPathsToArguments: { search: "$[0]", fields: "$[1].fields" },
1267
+ singleArgumentUnchanged: false
1268
+ },
1269
+ ["search", "options"]
1270
+ );
1271
+ sideEffects?.onError?.(err);
1272
+ throw transformedError;
1273
+ }
1274
+ }
1275
+ async function exportParticipantsStats2(programId) {
1276
+ const { httpClient, sideEffects } = arguments[1];
1277
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1278
+ programId
1279
+ });
1280
+ const reqOpts = exportParticipantsStats(
1281
+ payload
1282
+ );
1283
+ sideEffects?.onSiteCall?.();
1284
+ try {
1285
+ const result = await httpClient.request(reqOpts);
1286
+ sideEffects?.onSuccess?.(result);
1287
+ } catch (err) {
1288
+ const transformedError = (0, import_transform_error.transformError)(
1289
+ err,
1290
+ {
1291
+ spreadPathsToArguments: {},
1292
+ explicitPathsToArguments: { programId: "$[0]" },
1293
+ singleArgumentUnchanged: false
1294
+ },
1295
+ ["programId"]
374
1296
  );
375
1297
  sideEffects?.onError?.(err);
376
1298
  throw transformedError;
@@ -378,13 +1300,36 @@ async function bulkApproveAllParticipant2(options) {
378
1300
  }
379
1301
  // Annotate the CommonJS export names for ESM import in node:
380
1302
  0 && (module.exports = {
381
- JoinPath,
382
- State,
1303
+ AggregationType,
1304
+ BulkActionType,
1305
+ EnrollmentStatus,
1306
+ Interval,
1307
+ MissingValues,
1308
+ Mode,
1309
+ NestedAggregationType,
1310
+ PricingType,
1311
+ ProgressStatus,
1312
+ RequestedFields,
1313
+ ScalarType,
1314
+ SortDirection,
1315
+ SortOrder,
1316
+ SortType,
383
1317
  WebhookIdentityType,
384
- bulkAddToProgram,
385
- bulkApproveAllParticipant,
386
- bulkApproveParticipant,
387
- bulkInviteAllToProgram,
388
- bulkInviteToProgram
1318
+ bulkCreateParticipants,
1319
+ bulkCreateParticipantsForAllMembers,
1320
+ bulkUpdateParticipantTags,
1321
+ bulkUpdateParticipantTagsByFilter,
1322
+ createParticipant,
1323
+ deleteParticipant,
1324
+ exportParticipantsStats,
1325
+ getAccessStatus,
1326
+ getParticipant,
1327
+ getPremiumStats,
1328
+ issueCertificate,
1329
+ queryParticipants,
1330
+ searchParticipants,
1331
+ typedQueryParticipants,
1332
+ updateParticipant,
1333
+ utils
389
1334
  });
390
1335
  //# sourceMappingURL=index.typings.js.map