@wix/auto_sdk_online-programs_participants 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -93
  2. package/build/cjs/index.js +159 -1168
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +95 -652
  5. package/build/cjs/index.typings.js +11 -916
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +96 -487
  8. package/build/cjs/meta.js +11 -790
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -93
  11. package/build/es/index.mjs +144 -1139
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +95 -652
  14. package/build/es/index.typings.mjs +2 -892
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +96 -487
  17. package/build/es/meta.mjs +2 -767
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -104
  20. package/build/internal/cjs/index.js +159 -1168
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +95 -662
  23. package/build/internal/cjs/index.typings.js +11 -916
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +96 -487
  26. package/build/internal/cjs/meta.js +11 -790
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -104
  29. package/build/internal/es/index.mjs +144 -1139
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +95 -662
  32. package/build/internal/es/index.typings.mjs +2 -892
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +96 -487
  35. package/build/internal/es/meta.mjs +2 -767
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,528 +1,13 @@
1
1
  // src/online-programs-v3-participant-participants.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
2
  import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
3
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
4
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
8
5
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
9
- function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
10
- const domainToMappings = {
11
- "bo._base_domain_": [
12
- {
13
- srcPath: "/participants-service",
14
- destPath: ""
15
- }
16
- ],
17
- "wixbo.ai": [
18
- {
19
- srcPath: "/participants-service",
20
- destPath: ""
21
- }
22
- ],
23
- "wix-bo.com": [
24
- {
25
- srcPath: "/participants-service",
26
- destPath: ""
27
- }
28
- ],
29
- "manage._base_domain_": [
30
- {
31
- srcPath: "/participants-service",
32
- destPath: ""
33
- }
34
- ],
35
- _: [
36
- {
37
- srcPath: "/participants-service",
38
- destPath: ""
39
- }
40
- ],
41
- "editor._base_domain_": [
42
- {
43
- srcPath: "/participants-service",
44
- destPath: ""
45
- }
46
- ],
47
- "blocks._base_domain_": [
48
- {
49
- srcPath: "/participants-service",
50
- destPath: ""
51
- }
52
- ],
53
- "create.editorx": [
54
- {
55
- srcPath: "/participants-service",
56
- destPath: ""
57
- }
58
- ],
59
- "www._base_domain_": [
60
- {
61
- srcPath: "/_api/participants-service",
62
- destPath: ""
63
- }
64
- ],
65
- "www.wixapis.com": [
66
- {
67
- srcPath: "/participants-service",
68
- destPath: ""
69
- }
70
- ]
71
- };
72
- return resolveUrl(Object.assign(opts, { domainToMappings }));
73
- }
74
6
  function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
75
- const domainToMappings = {
76
- "bo._base_domain_": [
77
- {
78
- srcPath: "/participants-service",
79
- destPath: ""
80
- }
81
- ],
82
- "wixbo.ai": [
83
- {
84
- srcPath: "/participants-service",
85
- destPath: ""
86
- }
87
- ],
88
- "wix-bo.com": [
89
- {
90
- srcPath: "/participants-service",
91
- destPath: ""
92
- }
93
- ],
94
- "manage._base_domain_": [
95
- {
96
- srcPath: "/participants-service",
97
- destPath: ""
98
- }
99
- ],
100
- _: [
101
- {
102
- srcPath: "/participants-service",
103
- destPath: ""
104
- }
105
- ],
106
- "editor._base_domain_": [
107
- {
108
- srcPath: "/participants-service",
109
- destPath: ""
110
- }
111
- ],
112
- "blocks._base_domain_": [
113
- {
114
- srcPath: "/participants-service",
115
- destPath: ""
116
- }
117
- ],
118
- "create.editorx": [
119
- {
120
- srcPath: "/participants-service",
121
- destPath: ""
122
- }
123
- ],
124
- "www._base_domain_": [
125
- {
126
- srcPath: "/_api/participants-service",
127
- destPath: ""
128
- }
129
- ],
130
- "www.wixapis.com": [
131
- {
132
- srcPath: "/participants-service",
133
- destPath: ""
134
- }
135
- ]
136
- };
137
- return resolveUrl(Object.assign(opts, { domainToMappings }));
138
- }
139
- function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
140
- const domainToMappings = {
141
- "bo._base_domain_": [
142
- {
143
- srcPath: "/participants-service",
144
- destPath: ""
145
- }
146
- ],
147
- "wixbo.ai": [
148
- {
149
- srcPath: "/participants-service",
150
- destPath: ""
151
- }
152
- ],
153
- "wix-bo.com": [
154
- {
155
- srcPath: "/participants-service",
156
- destPath: ""
157
- }
158
- ],
159
- "manage._base_domain_": [
160
- {
161
- srcPath: "/participants-service",
162
- destPath: ""
163
- }
164
- ],
165
- _: [
166
- {
167
- srcPath: "/participants-service",
168
- destPath: ""
169
- }
170
- ],
171
- "editor._base_domain_": [
172
- {
173
- srcPath: "/participants-service",
174
- destPath: ""
175
- }
176
- ],
177
- "blocks._base_domain_": [
178
- {
179
- srcPath: "/participants-service",
180
- destPath: ""
181
- }
182
- ],
183
- "create.editorx": [
184
- {
185
- srcPath: "/participants-service",
186
- destPath: ""
187
- }
188
- ],
189
- "www._base_domain_": [
190
- {
191
- srcPath: "/_api/participants-service",
192
- destPath: ""
193
- }
194
- ],
195
- "www.wixapis.com": [
196
- {
197
- srcPath: "/participants-service",
198
- destPath: ""
199
- }
200
- ]
201
- };
7
+ const domainToMappings = {};
202
8
  return resolveUrl(Object.assign(opts, { domainToMappings }));
203
9
  }
204
10
  var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
205
- function createParticipant(payload) {
206
- function __createParticipant({ host }) {
207
- const serializedData = transformPaths(payload, [
208
- {
209
- transformFn: transformSDKTimestampToRESTTimestamp,
210
- paths: [
211
- { path: "participant.createdDate" },
212
- { path: "participant.updatedDate" },
213
- { path: "participant.lastActivityDate" },
214
- { path: "participant.certificate.issuedDate" }
215
- ]
216
- },
217
- {
218
- transformFn: transformSDKFloatToRESTFloat,
219
- paths: [{ path: "participant.progress.completionPercentage" }]
220
- }
221
- ]);
222
- const metadata = {
223
- entityFqdn: "wix.online_programs.v3.participant",
224
- method: "POST",
225
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
226
- packageName: PACKAGE_NAME,
227
- migrationOptions: {
228
- optInTransformResponse: true
229
- },
230
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
231
- protoPath: "/v3/participants",
232
- data: serializedData,
233
- host
234
- }),
235
- data: serializedData,
236
- transformResponse: (payload2) => transformPaths(payload2, [
237
- {
238
- transformFn: transformRESTTimestampToSDKTimestamp,
239
- paths: [
240
- { path: "participant.createdDate" },
241
- { path: "participant.updatedDate" },
242
- { path: "participant.lastActivityDate" },
243
- { path: "participant.certificate.issuedDate" }
244
- ]
245
- },
246
- {
247
- transformFn: transformRESTFloatToSDKFloat,
248
- paths: [{ path: "participant.progress.completionPercentage" }]
249
- }
250
- ])
251
- };
252
- return metadata;
253
- }
254
- return __createParticipant;
255
- }
256
- function bulkCreateParticipant(payload) {
257
- function __bulkCreateParticipant({ host }) {
258
- const serializedData = transformPaths(payload, [
259
- {
260
- transformFn: transformSDKTimestampToRESTTimestamp,
261
- paths: [
262
- { path: "participants.createdDate" },
263
- { path: "participants.updatedDate" },
264
- { path: "participants.lastActivityDate" },
265
- { path: "participants.certificate.issuedDate" }
266
- ]
267
- },
268
- {
269
- transformFn: transformSDKFloatToRESTFloat,
270
- paths: [{ path: "participants.progress.completionPercentage" }]
271
- }
272
- ]);
273
- const metadata = {
274
- entityFqdn: "wix.online_programs.v3.participant",
275
- method: "POST",
276
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
277
- packageName: PACKAGE_NAME,
278
- migrationOptions: {
279
- optInTransformResponse: true
280
- },
281
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
282
- protoPath: "/v3/bulk/participants/create",
283
- data: serializedData,
284
- host
285
- }),
286
- data: serializedData,
287
- transformResponse: (payload2) => transformPaths(payload2, [
288
- {
289
- transformFn: transformRESTTimestampToSDKTimestamp,
290
- paths: [
291
- { path: "results.item.createdDate" },
292
- { path: "results.item.updatedDate" },
293
- { path: "results.item.lastActivityDate" },
294
- { path: "results.item.certificate.issuedDate" }
295
- ]
296
- },
297
- {
298
- transformFn: transformRESTFloatToSDKFloat,
299
- paths: [{ path: "results.item.progress.completionPercentage" }]
300
- }
301
- ])
302
- };
303
- return metadata;
304
- }
305
- return __bulkCreateParticipant;
306
- }
307
- function bulkAddAllToProgram(payload) {
308
- function __bulkAddAllToProgram({ host }) {
309
- const metadata = {
310
- entityFqdn: "wix.online_programs.v3.participant",
311
- method: "POST",
312
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
313
- packageName: PACKAGE_NAME,
314
- migrationOptions: {
315
- optInTransformResponse: true
316
- },
317
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
318
- protoPath: "/v3/bulk/participants/add-all",
319
- data: payload,
320
- host
321
- }),
322
- data: payload
323
- };
324
- return metadata;
325
- }
326
- return __bulkAddAllToProgram;
327
- }
328
- function deleteParticipant(payload) {
329
- function __deleteParticipant({ host }) {
330
- const metadata = {
331
- entityFqdn: "wix.online_programs.v3.participant",
332
- method: "DELETE",
333
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
334
- packageName: PACKAGE_NAME,
335
- migrationOptions: {
336
- optInTransformResponse: true
337
- },
338
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
339
- protoPath: "/v3/participants/{participantId}",
340
- data: payload,
341
- host
342
- }),
343
- params: toURLSearchParams(payload)
344
- };
345
- return metadata;
346
- }
347
- return __deleteParticipant;
348
- }
349
- function issueCertificate(payload) {
350
- function __issueCertificate({ host }) {
351
- const metadata = {
352
- entityFqdn: "wix.online_programs.v3.participant",
353
- method: "POST",
354
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
355
- packageName: PACKAGE_NAME,
356
- migrationOptions: {
357
- optInTransformResponse: true
358
- },
359
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
360
- protoPath: "/v3/participants/{participantId}/issue-certificate",
361
- data: payload,
362
- host
363
- }),
364
- data: payload,
365
- transformResponse: (payload2) => transformPaths(payload2, [
366
- {
367
- transformFn: transformRESTTimestampToSDKTimestamp,
368
- paths: [
369
- { path: "participant.createdDate" },
370
- { path: "participant.updatedDate" },
371
- { path: "participant.lastActivityDate" },
372
- { path: "participant.certificate.issuedDate" }
373
- ]
374
- },
375
- {
376
- transformFn: transformRESTFloatToSDKFloat,
377
- paths: [{ path: "participant.progress.completionPercentage" }]
378
- }
379
- ])
380
- };
381
- return metadata;
382
- }
383
- return __issueCertificate;
384
- }
385
- function getCompletionStats(payload) {
386
- function __getCompletionStats({ host }) {
387
- const metadata = {
388
- entityFqdn: "wix.online_programs.v3.participant",
389
- method: "GET",
390
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
391
- packageName: PACKAGE_NAME,
392
- migrationOptions: {
393
- optInTransformResponse: true
394
- },
395
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
396
- protoPath: "/v3/stats/completion/{programId}",
397
- data: payload,
398
- host
399
- }),
400
- params: toURLSearchParams(payload),
401
- transformResponse: (payload2) => transformPaths(payload2, [
402
- {
403
- transformFn: transformRESTFloatToSDKFloat,
404
- paths: [{ path: "completionRate" }]
405
- }
406
- ])
407
- };
408
- return metadata;
409
- }
410
- return __getCompletionStats;
411
- }
412
- function getPremiumStats(payload) {
413
- function __getPremiumStats({ host }) {
414
- const metadata = {
415
- entityFqdn: "wix.online_programs.v3.participant",
416
- method: "GET",
417
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
418
- packageName: PACKAGE_NAME,
419
- migrationOptions: {
420
- optInTransformResponse: true
421
- },
422
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
423
- protoPath: "/v3/stats/premium",
424
- data: payload,
425
- host
426
- }),
427
- params: toURLSearchParams(payload)
428
- };
429
- return metadata;
430
- }
431
- return __getPremiumStats;
432
- }
433
- function getParticipant(payload) {
434
- function __getParticipant({ host }) {
435
- const metadata = {
436
- entityFqdn: "wix.online_programs.v3.participant",
437
- method: "GET",
438
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
439
- packageName: PACKAGE_NAME,
440
- migrationOptions: {
441
- optInTransformResponse: true
442
- },
443
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
444
- protoPath: "/v3/participants/{participantId}",
445
- data: payload,
446
- host
447
- }),
448
- params: toURLSearchParams(payload),
449
- transformResponse: (payload2) => transformPaths(payload2, [
450
- {
451
- transformFn: transformRESTTimestampToSDKTimestamp,
452
- paths: [
453
- { path: "participant.createdDate" },
454
- { path: "participant.updatedDate" },
455
- { path: "participant.lastActivityDate" },
456
- { path: "participant.certificate.issuedDate" }
457
- ]
458
- },
459
- {
460
- transformFn: transformRESTFloatToSDKFloat,
461
- paths: [{ path: "participant.progress.completionPercentage" }]
462
- }
463
- ])
464
- };
465
- return metadata;
466
- }
467
- return __getParticipant;
468
- }
469
- function queryParticipants(payload) {
470
- function __queryParticipants({ host }) {
471
- const metadata = {
472
- entityFqdn: "wix.online_programs.v3.participant",
473
- method: "POST",
474
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
475
- packageName: PACKAGE_NAME,
476
- migrationOptions: {
477
- optInTransformResponse: true
478
- },
479
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
480
- protoPath: "/v3/participants/query",
481
- data: payload,
482
- host
483
- }),
484
- data: payload,
485
- transformResponse: (payload2) => transformPaths(payload2, [
486
- {
487
- transformFn: transformRESTTimestampToSDKTimestamp,
488
- paths: [
489
- { path: "participants.createdDate" },
490
- { path: "participants.updatedDate" },
491
- { path: "participants.lastActivityDate" },
492
- { path: "participants.certificate.issuedDate" }
493
- ]
494
- },
495
- {
496
- transformFn: transformRESTFloatToSDKFloat,
497
- paths: [{ path: "participants.progress.completionPercentage" }]
498
- }
499
- ])
500
- };
501
- return metadata;
502
- }
503
- return __queryParticipants;
504
- }
505
- function getAccessStatus(payload) {
506
- function __getAccessStatus({ host }) {
507
- const metadata = {
508
- entityFqdn: "wix.online_programs.v3.participant",
509
- method: "GET",
510
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
511
- packageName: PACKAGE_NAME,
512
- migrationOptions: {
513
- optInTransformResponse: true
514
- },
515
- url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
516
- protoPath: "/v3/participants/access",
517
- data: payload,
518
- host
519
- }),
520
- params: toURLSearchParams(payload)
521
- };
522
- return metadata;
523
- }
524
- return __getAccessStatus;
525
- }
526
11
  function bulkInviteToProgram(payload) {
527
12
  function __bulkInviteToProgram({ host }) {
528
13
  const metadata = {
@@ -673,27 +158,6 @@ function bulkApproveAllParticipant(payload) {
673
158
  }
674
159
  return __bulkApproveAllParticipant;
675
160
  }
676
- function exportParticipantsStats(payload) {
677
- function __exportParticipantsStats({ host }) {
678
- const metadata = {
679
- entityFqdn: "wix.online_programs.v3.participant",
680
- method: "GET",
681
- methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
682
- packageName: PACKAGE_NAME,
683
- migrationOptions: {
684
- optInTransformResponse: true
685
- },
686
- url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
687
- protoPath: "/v3/participants/export/{programId}",
688
- data: payload,
689
- host
690
- }),
691
- params: toURLSearchParams(payload)
692
- };
693
- return metadata;
694
- }
695
- return __exportParticipantsStats;
696
- }
697
161
 
698
162
  // src/online-programs-v3-participant-participants.types.ts
699
163
  var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
@@ -716,23 +180,6 @@ var State = /* @__PURE__ */ ((State2) => {
716
180
  State2["LEFT"] = "LEFT";
717
181
  return State2;
718
182
  })(State || {});
719
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
720
- SortOrder2["ASC"] = "ASC";
721
- SortOrder2["DESC"] = "DESC";
722
- return SortOrder2;
723
- })(SortOrder || {});
724
- var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
725
- BenefitType2["UNDEFINED"] = "UNDEFINED";
726
- BenefitType2["LIMITED"] = "LIMITED";
727
- BenefitType2["UNLIMITED"] = "UNLIMITED";
728
- return BenefitType2;
729
- })(BenefitType || {});
730
- var Event = /* @__PURE__ */ ((Event2) => {
731
- Event2["Updated"] = "Updated";
732
- Event2["Deleted"] = "Deleted";
733
- Event2["Created"] = "Created";
734
- return Event2;
735
- })(Event || {});
736
183
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
737
184
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
738
185
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -743,186 +190,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
743
190
  })(WebhookIdentityType || {});
744
191
 
745
192
  // src/online-programs-v3-participant-participants.meta.ts
746
- function createParticipant2() {
747
- const payload = {};
748
- const getRequestOptions = createParticipant(payload);
749
- const getUrl = (context) => {
750
- const { url } = getRequestOptions(context);
751
- return url;
752
- };
753
- return {
754
- getUrl,
755
- httpMethod: "POST",
756
- path: "/v3/participants",
757
- pathParams: {},
758
- __requestType: null,
759
- __originalRequestType: null,
760
- __responseType: null,
761
- __originalResponseType: null
762
- };
763
- }
764
- function bulkCreateParticipant2() {
765
- const payload = {};
766
- const getRequestOptions = bulkCreateParticipant(payload);
767
- const getUrl = (context) => {
768
- const { url } = getRequestOptions(context);
769
- return url;
770
- };
771
- return {
772
- getUrl,
773
- httpMethod: "POST",
774
- path: "/v3/bulk/participants/create",
775
- pathParams: {},
776
- __requestType: null,
777
- __originalRequestType: null,
778
- __responseType: null,
779
- __originalResponseType: null
780
- };
781
- }
782
- function bulkAddAllToProgram2() {
783
- const payload = {};
784
- const getRequestOptions = bulkAddAllToProgram(payload);
785
- const getUrl = (context) => {
786
- const { url } = getRequestOptions(context);
787
- return url;
788
- };
789
- return {
790
- getUrl,
791
- httpMethod: "POST",
792
- path: "/v3/bulk/participants/add-all",
793
- pathParams: {},
794
- __requestType: null,
795
- __originalRequestType: null,
796
- __responseType: null,
797
- __originalResponseType: null
798
- };
799
- }
800
- function deleteParticipant2() {
801
- const payload = { participantId: ":participantId" };
802
- const getRequestOptions = deleteParticipant(payload);
803
- const getUrl = (context) => {
804
- const { url } = getRequestOptions(context);
805
- return url;
806
- };
807
- return {
808
- getUrl,
809
- httpMethod: "DELETE",
810
- path: "/v3/participants/{participantId}",
811
- pathParams: { participantId: "participantId" },
812
- __requestType: null,
813
- __originalRequestType: null,
814
- __responseType: null,
815
- __originalResponseType: null
816
- };
817
- }
818
- function issueCertificate2() {
819
- const payload = { participantId: ":participantId" };
820
- const getRequestOptions = issueCertificate(payload);
821
- const getUrl = (context) => {
822
- const { url } = getRequestOptions(context);
823
- return url;
824
- };
825
- return {
826
- getUrl,
827
- httpMethod: "POST",
828
- path: "/v3/participants/{participantId}/issue-certificate",
829
- pathParams: { participantId: "participantId" },
830
- __requestType: null,
831
- __originalRequestType: null,
832
- __responseType: null,
833
- __originalResponseType: null
834
- };
835
- }
836
- function getCompletionStats2() {
837
- const payload = { programId: ":programId" };
838
- const getRequestOptions = getCompletionStats(payload);
839
- const getUrl = (context) => {
840
- const { url } = getRequestOptions(context);
841
- return url;
842
- };
843
- return {
844
- getUrl,
845
- httpMethod: "GET",
846
- path: "/v3/stats/completion/{programId}",
847
- pathParams: { programId: "programId" },
848
- __requestType: null,
849
- __originalRequestType: null,
850
- __responseType: null,
851
- __originalResponseType: null
852
- };
853
- }
854
- function getPremiumStats2() {
855
- const payload = {};
856
- const getRequestOptions = getPremiumStats(payload);
857
- const getUrl = (context) => {
858
- const { url } = getRequestOptions(context);
859
- return url;
860
- };
861
- return {
862
- getUrl,
863
- httpMethod: "GET",
864
- path: "/v3/stats/premium",
865
- pathParams: {},
866
- __requestType: null,
867
- __originalRequestType: null,
868
- __responseType: null,
869
- __originalResponseType: null
870
- };
871
- }
872
- function getParticipant2() {
873
- const payload = { participantId: ":participantId" };
874
- const getRequestOptions = getParticipant(payload);
875
- const getUrl = (context) => {
876
- const { url } = getRequestOptions(context);
877
- return url;
878
- };
879
- return {
880
- getUrl,
881
- httpMethod: "GET",
882
- path: "/v3/participants/{participantId}",
883
- pathParams: { participantId: "participantId" },
884
- __requestType: null,
885
- __originalRequestType: null,
886
- __responseType: null,
887
- __originalResponseType: null
888
- };
889
- }
890
- function queryParticipants2() {
891
- const payload = {};
892
- const getRequestOptions = queryParticipants(payload);
893
- const getUrl = (context) => {
894
- const { url } = getRequestOptions(context);
895
- return url;
896
- };
897
- return {
898
- getUrl,
899
- httpMethod: "POST",
900
- path: "/v3/participants/query",
901
- pathParams: {},
902
- __requestType: null,
903
- __originalRequestType: null,
904
- __responseType: null,
905
- __originalResponseType: null
906
- };
907
- }
908
- function getAccessStatus2() {
909
- const payload = {};
910
- const getRequestOptions = getAccessStatus(payload);
911
- const getUrl = (context) => {
912
- const { url } = getRequestOptions(context);
913
- return url;
914
- };
915
- return {
916
- getUrl,
917
- httpMethod: "GET",
918
- path: "/v3/participants/access",
919
- pathParams: {},
920
- __requestType: null,
921
- __originalRequestType: null,
922
- __responseType: null,
923
- __originalResponseType: null
924
- };
925
- }
926
193
  function bulkInviteToProgram2() {
927
194
  const payload = {};
928
195
  const getRequestOptions = bulkInviteToProgram(payload);
@@ -1013,46 +280,14 @@ function bulkApproveAllParticipant2() {
1013
280
  __originalResponseType: null
1014
281
  };
1015
282
  }
1016
- function exportParticipantsStats2() {
1017
- const payload = { programId: ":programId" };
1018
- const getRequestOptions = exportParticipantsStats(payload);
1019
- const getUrl = (context) => {
1020
- const { url } = getRequestOptions(context);
1021
- return url;
1022
- };
1023
- return {
1024
- getUrl,
1025
- httpMethod: "GET",
1026
- path: "/v3/participants/export/{programId}",
1027
- pathParams: { programId: "programId" },
1028
- __requestType: null,
1029
- __originalRequestType: null,
1030
- __responseType: null,
1031
- __originalResponseType: null
1032
- };
1033
- }
1034
283
  export {
1035
- BenefitType as BenefitTypeOriginal,
1036
- Event as EventOriginal,
1037
284
  JoinPath as JoinPathOriginal,
1038
- SortOrder as SortOrderOriginal,
1039
285
  State as StateOriginal,
1040
286
  WebhookIdentityType as WebhookIdentityTypeOriginal,
1041
- bulkAddAllToProgram2 as bulkAddAllToProgram,
1042
287
  bulkAddToProgram2 as bulkAddToProgram,
1043
288
  bulkApproveAllParticipant2 as bulkApproveAllParticipant,
1044
289
  bulkApproveParticipant2 as bulkApproveParticipant,
1045
- bulkCreateParticipant2 as bulkCreateParticipant,
1046
290
  bulkInviteAllToProgram2 as bulkInviteAllToProgram,
1047
- bulkInviteToProgram2 as bulkInviteToProgram,
1048
- createParticipant2 as createParticipant,
1049
- deleteParticipant2 as deleteParticipant,
1050
- exportParticipantsStats2 as exportParticipantsStats,
1051
- getAccessStatus2 as getAccessStatus,
1052
- getCompletionStats2 as getCompletionStats,
1053
- getParticipant2 as getParticipant,
1054
- getPremiumStats2 as getPremiumStats,
1055
- issueCertificate2 as issueCertificate,
1056
- queryParticipants2 as queryParticipants
291
+ bulkInviteToProgram2 as bulkInviteToProgram
1057
292
  };
1058
293
  //# sourceMappingURL=meta.mjs.map