@wix/auto_sdk_online-programs_participants 1.0.4 → 1.0.6
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.
- package/build/cjs/index.d.ts +71 -103
- package/build/cjs/index.js +490 -706
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +295 -914
- package/build/cjs/index.typings.js +370 -501
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +213 -757
- package/build/cjs/meta.js +277 -418
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +71 -103
- package/build/es/index.mjs +495 -695
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +295 -914
- package/build/es/index.typings.mjs +391 -511
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +213 -757
- package/build/es/meta.mjs +261 -390
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +71 -103
- package/build/internal/cjs/index.js +490 -706
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +295 -914
- package/build/internal/cjs/index.typings.js +370 -501
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +213 -757
- package/build/internal/cjs/meta.js +277 -418
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +71 -103
- package/build/internal/es/index.mjs +495 -695
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +295 -914
- package/build/internal/es/index.typings.mjs +391 -511
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +213 -757
- package/build/internal/es/meta.mjs +261 -390
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -8,7 +8,9 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/online-programs-v3-participant-participants.http.ts
|
|
10
10
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
12
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
13
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
14
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
14
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
@@ -208,29 +210,47 @@ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
|
208
210
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
209
211
|
}
|
|
210
212
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
211
|
-
function
|
|
212
|
-
function
|
|
213
|
+
function createParticipant(payload) {
|
|
214
|
+
function __createParticipant({ host }) {
|
|
215
|
+
const serializedData = transformPaths(payload, [
|
|
216
|
+
{
|
|
217
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
218
|
+
paths: [
|
|
219
|
+
{ path: "participant.createdDate" },
|
|
220
|
+
{ path: "participant.updatedDate" },
|
|
221
|
+
{ path: "participant.lastActivityDate" },
|
|
222
|
+
{ path: "participant.certificate.issuedDate" },
|
|
223
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
228
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
229
|
+
}
|
|
230
|
+
]);
|
|
213
231
|
const metadata = {
|
|
214
232
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
215
233
|
method: "POST",
|
|
216
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
234
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
217
235
|
packageName: PACKAGE_NAME,
|
|
218
236
|
migrationOptions: {
|
|
219
237
|
optInTransformResponse: true
|
|
220
238
|
},
|
|
221
239
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
222
|
-
protoPath: "/v3/participants
|
|
223
|
-
data:
|
|
240
|
+
protoPath: "/v3/participants",
|
|
241
|
+
data: serializedData,
|
|
224
242
|
host
|
|
225
243
|
}),
|
|
226
|
-
data:
|
|
244
|
+
data: serializedData,
|
|
227
245
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
228
246
|
{
|
|
229
247
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
230
248
|
paths: [
|
|
231
249
|
{ path: "participant.createdDate" },
|
|
232
250
|
{ path: "participant.updatedDate" },
|
|
233
|
-
{ path: "participant.
|
|
251
|
+
{ path: "participant.lastActivityDate" },
|
|
252
|
+
{ path: "participant.certificate.issuedDate" },
|
|
253
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
234
254
|
]
|
|
235
255
|
},
|
|
236
256
|
{
|
|
@@ -241,55 +261,73 @@ function joinProgram(payload) {
|
|
|
241
261
|
};
|
|
242
262
|
return metadata;
|
|
243
263
|
}
|
|
244
|
-
return
|
|
264
|
+
return __createParticipant;
|
|
245
265
|
}
|
|
246
|
-
function
|
|
247
|
-
function
|
|
266
|
+
function bulkCreateParticipant(payload) {
|
|
267
|
+
function __bulkCreateParticipant({ host }) {
|
|
268
|
+
const serializedData = transformPaths(payload, [
|
|
269
|
+
{
|
|
270
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
271
|
+
paths: [
|
|
272
|
+
{ path: "participants.createdDate" },
|
|
273
|
+
{ path: "participants.updatedDate" },
|
|
274
|
+
{ path: "participants.lastActivityDate" },
|
|
275
|
+
{ path: "participants.certificate.issuedDate" },
|
|
276
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
277
|
+
]
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
281
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
282
|
+
}
|
|
283
|
+
]);
|
|
248
284
|
const metadata = {
|
|
249
285
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
250
|
-
method: "
|
|
251
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
286
|
+
method: "POST",
|
|
287
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
252
288
|
packageName: PACKAGE_NAME,
|
|
253
289
|
migrationOptions: {
|
|
254
290
|
optInTransformResponse: true
|
|
255
291
|
},
|
|
256
292
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
257
|
-
protoPath: "/v3/participants/
|
|
258
|
-
data:
|
|
293
|
+
protoPath: "/v3/bulk/participants/create",
|
|
294
|
+
data: serializedData,
|
|
259
295
|
host
|
|
260
296
|
}),
|
|
261
|
-
|
|
297
|
+
data: serializedData,
|
|
262
298
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
263
299
|
{
|
|
264
300
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
265
301
|
paths: [
|
|
266
|
-
{ path: "
|
|
267
|
-
{ path: "
|
|
268
|
-
{ path: "
|
|
302
|
+
{ path: "results.item.createdDate" },
|
|
303
|
+
{ path: "results.item.updatedDate" },
|
|
304
|
+
{ path: "results.item.lastActivityDate" },
|
|
305
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
306
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
269
307
|
]
|
|
270
308
|
},
|
|
271
309
|
{
|
|
272
310
|
transformFn: transformRESTFloatToSDKFloat,
|
|
273
|
-
paths: [{ path: "
|
|
311
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
274
312
|
}
|
|
275
313
|
])
|
|
276
314
|
};
|
|
277
315
|
return metadata;
|
|
278
316
|
}
|
|
279
|
-
return
|
|
317
|
+
return __bulkCreateParticipant;
|
|
280
318
|
}
|
|
281
|
-
function
|
|
282
|
-
function
|
|
319
|
+
function bulkAddAllToProgram(payload) {
|
|
320
|
+
function __bulkAddAllToProgram({ host }) {
|
|
283
321
|
const metadata = {
|
|
284
322
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
285
323
|
method: "POST",
|
|
286
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
324
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
287
325
|
packageName: PACKAGE_NAME,
|
|
288
326
|
migrationOptions: {
|
|
289
327
|
optInTransformResponse: true
|
|
290
328
|
},
|
|
291
329
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
292
|
-
protoPath: "/v3/participants/
|
|
330
|
+
protoPath: "/v3/bulk/participants/add-all",
|
|
293
331
|
data: payload,
|
|
294
332
|
host
|
|
295
333
|
}),
|
|
@@ -297,20 +335,41 @@ function leaveProgram(payload) {
|
|
|
297
335
|
};
|
|
298
336
|
return metadata;
|
|
299
337
|
}
|
|
300
|
-
return
|
|
338
|
+
return __bulkAddAllToProgram;
|
|
301
339
|
}
|
|
302
|
-
function
|
|
303
|
-
function
|
|
340
|
+
function deleteParticipant(payload) {
|
|
341
|
+
function __deleteParticipant({ host }) {
|
|
342
|
+
const metadata = {
|
|
343
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
344
|
+
method: "DELETE",
|
|
345
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
346
|
+
packageName: PACKAGE_NAME,
|
|
347
|
+
migrationOptions: {
|
|
348
|
+
optInTransformResponse: true
|
|
349
|
+
},
|
|
350
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
351
|
+
protoPath: "/v3/participants/{participantId}",
|
|
352
|
+
data: payload,
|
|
353
|
+
host
|
|
354
|
+
}),
|
|
355
|
+
params: toURLSearchParams(payload)
|
|
356
|
+
};
|
|
357
|
+
return metadata;
|
|
358
|
+
}
|
|
359
|
+
return __deleteParticipant;
|
|
360
|
+
}
|
|
361
|
+
function issueCertificate(payload) {
|
|
362
|
+
function __issueCertificate({ host }) {
|
|
304
363
|
const metadata = {
|
|
305
364
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
306
365
|
method: "POST",
|
|
307
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
366
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
308
367
|
packageName: PACKAGE_NAME,
|
|
309
368
|
migrationOptions: {
|
|
310
369
|
optInTransformResponse: true
|
|
311
370
|
},
|
|
312
371
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
313
|
-
protoPath: "/v3/participants/
|
|
372
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
314
373
|
data: payload,
|
|
315
374
|
host
|
|
316
375
|
}),
|
|
@@ -319,33 +378,62 @@ function queryParticipants(payload) {
|
|
|
319
378
|
{
|
|
320
379
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
321
380
|
paths: [
|
|
322
|
-
{ path: "
|
|
323
|
-
{ path: "
|
|
324
|
-
{ path: "
|
|
381
|
+
{ path: "participant.createdDate" },
|
|
382
|
+
{ path: "participant.updatedDate" },
|
|
383
|
+
{ path: "participant.lastActivityDate" },
|
|
384
|
+
{ path: "participant.certificate.issuedDate" },
|
|
385
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
325
386
|
]
|
|
326
387
|
},
|
|
327
388
|
{
|
|
328
389
|
transformFn: transformRESTFloatToSDKFloat,
|
|
329
|
-
paths: [{ path: "
|
|
390
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
330
391
|
}
|
|
331
392
|
])
|
|
332
393
|
};
|
|
333
394
|
return metadata;
|
|
334
395
|
}
|
|
335
|
-
return
|
|
396
|
+
return __issueCertificate;
|
|
336
397
|
}
|
|
337
|
-
function
|
|
338
|
-
function
|
|
398
|
+
function getCompletionStats(payload) {
|
|
399
|
+
function __getCompletionStats({ host }) {
|
|
339
400
|
const metadata = {
|
|
340
401
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
341
402
|
method: "GET",
|
|
342
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
403
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
343
404
|
packageName: PACKAGE_NAME,
|
|
344
405
|
migrationOptions: {
|
|
345
406
|
optInTransformResponse: true
|
|
346
407
|
},
|
|
347
408
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
348
|
-
protoPath: "/v3/
|
|
409
|
+
protoPath: "/v3/stats/completion/{programId}",
|
|
410
|
+
data: payload,
|
|
411
|
+
host
|
|
412
|
+
}),
|
|
413
|
+
params: toURLSearchParams(payload),
|
|
414
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
415
|
+
{
|
|
416
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
417
|
+
paths: [{ path: "completionRate" }]
|
|
418
|
+
}
|
|
419
|
+
])
|
|
420
|
+
};
|
|
421
|
+
return metadata;
|
|
422
|
+
}
|
|
423
|
+
return __getCompletionStats;
|
|
424
|
+
}
|
|
425
|
+
function getPremiumStats(payload) {
|
|
426
|
+
function __getPremiumStats({ host }) {
|
|
427
|
+
const metadata = {
|
|
428
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
429
|
+
method: "GET",
|
|
430
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
431
|
+
packageName: PACKAGE_NAME,
|
|
432
|
+
migrationOptions: {
|
|
433
|
+
optInTransformResponse: true
|
|
434
|
+
},
|
|
435
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
436
|
+
protoPath: "/v3/stats/premium",
|
|
349
437
|
data: payload,
|
|
350
438
|
host
|
|
351
439
|
}),
|
|
@@ -353,65 +441,102 @@ function getAccessStatus(payload) {
|
|
|
353
441
|
};
|
|
354
442
|
return metadata;
|
|
355
443
|
}
|
|
356
|
-
return
|
|
444
|
+
return __getPremiumStats;
|
|
357
445
|
}
|
|
358
|
-
function
|
|
359
|
-
function
|
|
446
|
+
function getParticipant(payload) {
|
|
447
|
+
function __getParticipant({ host }) {
|
|
360
448
|
const metadata = {
|
|
361
449
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
362
|
-
method: "
|
|
363
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
450
|
+
method: "GET",
|
|
451
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
364
452
|
packageName: PACKAGE_NAME,
|
|
365
453
|
migrationOptions: {
|
|
366
454
|
optInTransformResponse: true
|
|
367
455
|
},
|
|
368
456
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
369
|
-
protoPath: "/v3/participants/{participantId}
|
|
457
|
+
protoPath: "/v3/participants/{participantId}",
|
|
370
458
|
data: payload,
|
|
371
459
|
host
|
|
372
460
|
}),
|
|
373
|
-
|
|
461
|
+
params: toURLSearchParams(payload),
|
|
374
462
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
375
463
|
{
|
|
376
|
-
transformFn:
|
|
464
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
377
465
|
paths: [
|
|
378
|
-
{ path: "
|
|
379
|
-
{ path: "
|
|
380
|
-
{ path: "
|
|
466
|
+
{ path: "participant.createdDate" },
|
|
467
|
+
{ path: "participant.updatedDate" },
|
|
468
|
+
{ path: "participant.lastActivityDate" },
|
|
469
|
+
{ path: "participant.certificate.issuedDate" },
|
|
470
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
381
471
|
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
475
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
382
476
|
}
|
|
383
477
|
])
|
|
384
478
|
};
|
|
385
479
|
return metadata;
|
|
386
480
|
}
|
|
387
|
-
return
|
|
481
|
+
return __getParticipant;
|
|
388
482
|
}
|
|
389
|
-
function
|
|
390
|
-
function
|
|
483
|
+
function queryParticipants(payload) {
|
|
484
|
+
function __queryParticipants({ host }) {
|
|
391
485
|
const metadata = {
|
|
392
486
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
393
487
|
method: "POST",
|
|
394
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
488
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
395
489
|
packageName: PACKAGE_NAME,
|
|
396
490
|
migrationOptions: {
|
|
397
491
|
optInTransformResponse: true
|
|
398
492
|
},
|
|
399
493
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
400
|
-
protoPath: "/v3/participants/
|
|
494
|
+
protoPath: "/v3/participants/query",
|
|
401
495
|
data: payload,
|
|
402
496
|
host
|
|
403
497
|
}),
|
|
404
498
|
data: payload,
|
|
405
499
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
500
|
+
{
|
|
501
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
502
|
+
paths: [
|
|
503
|
+
{ path: "participants.createdDate" },
|
|
504
|
+
{ path: "participants.updatedDate" },
|
|
505
|
+
{ path: "participants.lastActivityDate" },
|
|
506
|
+
{ path: "participants.certificate.issuedDate" },
|
|
507
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
508
|
+
]
|
|
509
|
+
},
|
|
406
510
|
{
|
|
407
511
|
transformFn: transformRESTFloatToSDKFloat,
|
|
408
|
-
paths: [{ path: "
|
|
512
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
409
513
|
}
|
|
410
514
|
])
|
|
411
515
|
};
|
|
412
516
|
return metadata;
|
|
413
517
|
}
|
|
414
|
-
return
|
|
518
|
+
return __queryParticipants;
|
|
519
|
+
}
|
|
520
|
+
function getAccessStatus(payload) {
|
|
521
|
+
function __getAccessStatus({ host }) {
|
|
522
|
+
const metadata = {
|
|
523
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
524
|
+
method: "GET",
|
|
525
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
526
|
+
packageName: PACKAGE_NAME,
|
|
527
|
+
migrationOptions: {
|
|
528
|
+
optInTransformResponse: true
|
|
529
|
+
},
|
|
530
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
531
|
+
protoPath: "/v3/participants/access",
|
|
532
|
+
data: payload,
|
|
533
|
+
host
|
|
534
|
+
}),
|
|
535
|
+
params: toURLSearchParams(payload)
|
|
536
|
+
};
|
|
537
|
+
return metadata;
|
|
538
|
+
}
|
|
539
|
+
return __getAccessStatus;
|
|
415
540
|
}
|
|
416
541
|
function bulkInviteToProgram(payload) {
|
|
417
542
|
function __bulkInviteToProgram({ host }) {
|
|
@@ -435,7 +560,9 @@ function bulkInviteToProgram(payload) {
|
|
|
435
560
|
paths: [
|
|
436
561
|
{ path: "results.item.createdDate" },
|
|
437
562
|
{ path: "results.item.updatedDate" },
|
|
438
|
-
{ path: "results.item.
|
|
563
|
+
{ path: "results.item.lastActivityDate" },
|
|
564
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
565
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
439
566
|
]
|
|
440
567
|
},
|
|
441
568
|
{
|
|
@@ -491,7 +618,9 @@ function bulkAddToProgram(payload) {
|
|
|
491
618
|
paths: [
|
|
492
619
|
{ path: "results.item.createdDate" },
|
|
493
620
|
{ path: "results.item.updatedDate" },
|
|
494
|
-
{ path: "results.item.
|
|
621
|
+
{ path: "results.item.lastActivityDate" },
|
|
622
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
623
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
495
624
|
]
|
|
496
625
|
},
|
|
497
626
|
{
|
|
@@ -504,27 +633,6 @@ function bulkAddToProgram(payload) {
|
|
|
504
633
|
}
|
|
505
634
|
return __bulkAddToProgram;
|
|
506
635
|
}
|
|
507
|
-
function bulkAddAllToProgram(payload) {
|
|
508
|
-
function __bulkAddAllToProgram({ host }) {
|
|
509
|
-
const metadata = {
|
|
510
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
511
|
-
method: "POST",
|
|
512
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
|
|
513
|
-
packageName: PACKAGE_NAME,
|
|
514
|
-
migrationOptions: {
|
|
515
|
-
optInTransformResponse: true
|
|
516
|
-
},
|
|
517
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
518
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
519
|
-
data: payload,
|
|
520
|
-
host
|
|
521
|
-
}),
|
|
522
|
-
data: payload
|
|
523
|
-
};
|
|
524
|
-
return metadata;
|
|
525
|
-
}
|
|
526
|
-
return __bulkAddAllToProgram;
|
|
527
|
-
}
|
|
528
636
|
function bulkApproveParticipant(payload) {
|
|
529
637
|
function __bulkApproveParticipant({ host }) {
|
|
530
638
|
const metadata = {
|
|
@@ -547,7 +655,9 @@ function bulkApproveParticipant(payload) {
|
|
|
547
655
|
paths: [
|
|
548
656
|
{ path: "results.item.createdDate" },
|
|
549
657
|
{ path: "results.item.updatedDate" },
|
|
550
|
-
{ path: "results.item.
|
|
658
|
+
{ path: "results.item.lastActivityDate" },
|
|
659
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
660
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
551
661
|
]
|
|
552
662
|
},
|
|
553
663
|
{
|
|
@@ -581,18 +691,18 @@ function bulkApproveAllParticipant(payload) {
|
|
|
581
691
|
}
|
|
582
692
|
return __bulkApproveAllParticipant;
|
|
583
693
|
}
|
|
584
|
-
function
|
|
585
|
-
function
|
|
694
|
+
function exportParticipantsStats(payload) {
|
|
695
|
+
function __exportParticipantsStats({ host }) {
|
|
586
696
|
const metadata = {
|
|
587
697
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
588
|
-
method: "
|
|
589
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
698
|
+
method: "GET",
|
|
699
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
590
700
|
packageName: PACKAGE_NAME,
|
|
591
701
|
migrationOptions: {
|
|
592
702
|
optInTransformResponse: true
|
|
593
703
|
},
|
|
594
|
-
url:
|
|
595
|
-
protoPath: "/v3/participants/{
|
|
704
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
705
|
+
protoPath: "/v3/participants/export/{programId}",
|
|
596
706
|
data: payload,
|
|
597
707
|
host
|
|
598
708
|
}),
|
|
@@ -600,247 +710,194 @@ function deleteParticipant(payload) {
|
|
|
600
710
|
};
|
|
601
711
|
return metadata;
|
|
602
712
|
}
|
|
603
|
-
return
|
|
713
|
+
return __exportParticipantsStats;
|
|
604
714
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
715
|
+
|
|
716
|
+
// src/online-programs-v3-participant-participants.universal.ts
|
|
717
|
+
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
718
|
+
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
719
|
+
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
720
|
+
JoinPath2["FREE"] = "FREE";
|
|
721
|
+
JoinPath2["ADDED"] = "ADDED";
|
|
722
|
+
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
723
|
+
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
724
|
+
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
725
|
+
return JoinPath2;
|
|
726
|
+
})(JoinPath || {});
|
|
727
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
728
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
729
|
+
State2["JOINED"] = "JOINED";
|
|
730
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
731
|
+
State2["FAILED"] = "FAILED";
|
|
732
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
733
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
734
|
+
State2["REMOVED"] = "REMOVED";
|
|
735
|
+
State2["LEFT"] = "LEFT";
|
|
736
|
+
return State2;
|
|
737
|
+
})(State || {});
|
|
738
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
739
|
+
SortOrder2["ASC"] = "ASC";
|
|
740
|
+
SortOrder2["DESC"] = "DESC";
|
|
741
|
+
return SortOrder2;
|
|
742
|
+
})(SortOrder || {});
|
|
743
|
+
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
744
|
+
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
745
|
+
BenefitType2["LIMITED"] = "LIMITED";
|
|
746
|
+
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
747
|
+
return BenefitType2;
|
|
748
|
+
})(BenefitType || {});
|
|
749
|
+
var Event = /* @__PURE__ */ ((Event2) => {
|
|
750
|
+
Event2["Updated"] = "Updated";
|
|
751
|
+
Event2["Deleted"] = "Deleted";
|
|
752
|
+
Event2["Created"] = "Created";
|
|
753
|
+
return Event2;
|
|
754
|
+
})(Event || {});
|
|
755
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
756
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
757
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
758
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
759
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
760
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
761
|
+
return WebhookIdentityType2;
|
|
762
|
+
})(WebhookIdentityType || {});
|
|
763
|
+
async function createParticipant2(participant) {
|
|
764
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
765
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
766
|
+
participant
|
|
767
|
+
});
|
|
768
|
+
const reqOpts = createParticipant(payload);
|
|
769
|
+
sideEffects?.onSiteCall?.();
|
|
770
|
+
try {
|
|
771
|
+
const result = await httpClient.request(reqOpts);
|
|
772
|
+
sideEffects?.onSuccess?.(result);
|
|
773
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
774
|
+
} catch (err) {
|
|
775
|
+
const transformedError = sdkTransformError(
|
|
776
|
+
err,
|
|
777
|
+
{
|
|
778
|
+
spreadPathsToArguments: {},
|
|
779
|
+
explicitPathsToArguments: { participant: "$[0]" },
|
|
780
|
+
singleArgumentUnchanged: false
|
|
614
781
|
},
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
782
|
+
["participant"]
|
|
783
|
+
);
|
|
784
|
+
sideEffects?.onError?.(err);
|
|
785
|
+
throw transformedError;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
async function bulkCreateParticipant2(participants, options) {
|
|
789
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
790
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
791
|
+
participants,
|
|
792
|
+
returnEntity: options?.returnEntity
|
|
793
|
+
});
|
|
794
|
+
const reqOpts = bulkCreateParticipant(payload);
|
|
795
|
+
sideEffects?.onSiteCall?.();
|
|
796
|
+
try {
|
|
797
|
+
const result = await httpClient.request(reqOpts);
|
|
798
|
+
sideEffects?.onSuccess?.(result);
|
|
799
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
800
|
+
} catch (err) {
|
|
801
|
+
const transformedError = sdkTransformError(
|
|
802
|
+
err,
|
|
803
|
+
{
|
|
804
|
+
spreadPathsToArguments: {},
|
|
805
|
+
explicitPathsToArguments: {
|
|
806
|
+
participants: "$[0]",
|
|
807
|
+
returnEntity: "$[1].returnEntity"
|
|
629
808
|
},
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
return metadata;
|
|
809
|
+
singleArgumentUnchanged: false
|
|
810
|
+
},
|
|
811
|
+
["participants", "options"]
|
|
812
|
+
);
|
|
813
|
+
sideEffects?.onError?.(err);
|
|
814
|
+
throw transformedError;
|
|
637
815
|
}
|
|
638
|
-
return __issueCertificate;
|
|
639
816
|
}
|
|
640
|
-
function
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
817
|
+
async function bulkAddAllToProgram2(programId, options) {
|
|
818
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
819
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
820
|
+
programId,
|
|
821
|
+
excludeMemberIds: options?.excludeMemberIds
|
|
822
|
+
});
|
|
823
|
+
const reqOpts = bulkAddAllToProgram(payload);
|
|
824
|
+
sideEffects?.onSiteCall?.();
|
|
825
|
+
try {
|
|
826
|
+
const result = await httpClient.request(reqOpts);
|
|
827
|
+
sideEffects?.onSuccess?.(result);
|
|
828
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
829
|
+
} catch (err) {
|
|
830
|
+
const transformedError = sdkTransformError(
|
|
831
|
+
err,
|
|
832
|
+
{
|
|
833
|
+
spreadPathsToArguments: {},
|
|
834
|
+
explicitPathsToArguments: {
|
|
835
|
+
programId: "$[0]",
|
|
836
|
+
excludeMemberIds: "$[1].excludeMemberIds"
|
|
837
|
+
},
|
|
838
|
+
singleArgumentUnchanged: false
|
|
649
839
|
},
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}),
|
|
655
|
-
params: toURLSearchParams(payload),
|
|
656
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
657
|
-
{
|
|
658
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
659
|
-
paths: [{ path: "completionRate" }]
|
|
660
|
-
}
|
|
661
|
-
])
|
|
662
|
-
};
|
|
663
|
-
return metadata;
|
|
840
|
+
["programId", "options"]
|
|
841
|
+
);
|
|
842
|
+
sideEffects?.onError?.(err);
|
|
843
|
+
throw transformedError;
|
|
664
844
|
}
|
|
665
|
-
return __getCompletionStats;
|
|
666
845
|
}
|
|
667
|
-
function
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
846
|
+
async function deleteParticipant2(participantId) {
|
|
847
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
848
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
849
|
+
participantId
|
|
850
|
+
});
|
|
851
|
+
const reqOpts = deleteParticipant(payload);
|
|
852
|
+
sideEffects?.onSiteCall?.();
|
|
853
|
+
try {
|
|
854
|
+
const result = await httpClient.request(reqOpts);
|
|
855
|
+
sideEffects?.onSuccess?.(result);
|
|
856
|
+
} catch (err) {
|
|
857
|
+
const transformedError = sdkTransformError(
|
|
858
|
+
err,
|
|
859
|
+
{
|
|
860
|
+
spreadPathsToArguments: {},
|
|
861
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
862
|
+
singleArgumentUnchanged: false
|
|
676
863
|
},
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}),
|
|
682
|
-
params: toURLSearchParams(payload)
|
|
683
|
-
};
|
|
684
|
-
return metadata;
|
|
864
|
+
["participantId"]
|
|
865
|
+
);
|
|
866
|
+
sideEffects?.onError?.(err);
|
|
867
|
+
throw transformedError;
|
|
685
868
|
}
|
|
686
|
-
return __getPremiumStats;
|
|
687
869
|
}
|
|
688
|
-
function
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
870
|
+
async function issueCertificate2(participantId) {
|
|
871
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
872
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
873
|
+
participantId
|
|
874
|
+
});
|
|
875
|
+
const reqOpts = issueCertificate(payload);
|
|
876
|
+
sideEffects?.onSiteCall?.();
|
|
877
|
+
try {
|
|
878
|
+
const result = await httpClient.request(reqOpts);
|
|
879
|
+
sideEffects?.onSuccess?.(result);
|
|
880
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
881
|
+
} catch (err) {
|
|
882
|
+
const transformedError = sdkTransformError(
|
|
883
|
+
err,
|
|
884
|
+
{
|
|
885
|
+
spreadPathsToArguments: {},
|
|
886
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
887
|
+
singleArgumentUnchanged: false
|
|
697
888
|
},
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
}),
|
|
703
|
-
params: toURLSearchParams(payload)
|
|
704
|
-
};
|
|
705
|
-
return metadata;
|
|
889
|
+
["participantId"]
|
|
890
|
+
);
|
|
891
|
+
sideEffects?.onError?.(err);
|
|
892
|
+
throw transformedError;
|
|
706
893
|
}
|
|
707
|
-
return __exportParticipantsStats;
|
|
708
894
|
}
|
|
709
|
-
|
|
710
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
711
|
-
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
712
|
-
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
713
|
-
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
714
|
-
JoinPath2["FREE"] = "FREE";
|
|
715
|
-
JoinPath2["ADDED"] = "ADDED";
|
|
716
|
-
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
717
|
-
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
718
|
-
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
719
|
-
return JoinPath2;
|
|
720
|
-
})(JoinPath || {});
|
|
721
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
722
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
723
|
-
State2["INVITED"] = "INVITED";
|
|
724
|
-
State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
|
|
725
|
-
State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
726
|
-
State2["JOINED"] = "JOINED";
|
|
727
|
-
State2["COMPLETED"] = "COMPLETED";
|
|
728
|
-
State2["FAILED"] = "FAILED";
|
|
729
|
-
State2["SUSPENDED"] = "SUSPENDED";
|
|
730
|
-
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
731
|
-
return State2;
|
|
732
|
-
})(State || {});
|
|
733
|
-
var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
|
|
734
|
-
RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
|
|
735
|
-
RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
|
|
736
|
-
RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
|
|
737
|
-
RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
|
|
738
|
-
return RemovalReason2;
|
|
739
|
-
})(RemovalReason || {});
|
|
740
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
741
|
-
SortOrder2["ASC"] = "ASC";
|
|
742
|
-
SortOrder2["DESC"] = "DESC";
|
|
743
|
-
return SortOrder2;
|
|
744
|
-
})(SortOrder || {});
|
|
745
|
-
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
746
|
-
EventType2["UNDEFINED"] = "UNDEFINED";
|
|
747
|
-
EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
|
|
748
|
-
EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
|
|
749
|
-
EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
|
|
750
|
-
EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
|
|
751
|
-
EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
|
|
752
|
-
return EventType2;
|
|
753
|
-
})(EventType || {});
|
|
754
|
-
var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
|
|
755
|
-
OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
|
|
756
|
-
OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
|
|
757
|
-
OrderItemCategory2["DIGITAL"] = "DIGITAL";
|
|
758
|
-
return OrderItemCategory2;
|
|
759
|
-
})(OrderItemCategory || {});
|
|
760
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
761
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
762
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
763
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
764
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
765
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
766
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
767
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
768
|
-
return SubdivisionType2;
|
|
769
|
-
})(SubdivisionType || {});
|
|
770
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
771
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
772
|
-
VatType2["CPF"] = "CPF";
|
|
773
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
774
|
-
return VatType2;
|
|
775
|
-
})(VatType || {});
|
|
776
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
777
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
778
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
779
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
780
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
781
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
782
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
783
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
784
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
785
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
786
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
787
|
-
return TransactionStatus2;
|
|
788
|
-
})(TransactionStatus || {});
|
|
789
|
-
var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
|
|
790
|
-
ScheduledActionType2["VOID"] = "VOID";
|
|
791
|
-
ScheduledActionType2["CAPTURE"] = "CAPTURE";
|
|
792
|
-
return ScheduledActionType2;
|
|
793
|
-
})(ScheduledActionType || {});
|
|
794
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
795
|
-
RefundStatus2["UNDEFINED"] = "UNDEFINED";
|
|
796
|
-
RefundStatus2["APPROVED"] = "APPROVED";
|
|
797
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
798
|
-
RefundStatus2["DECLINED"] = "DECLINED";
|
|
799
|
-
return RefundStatus2;
|
|
800
|
-
})(RefundStatus || {});
|
|
801
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
802
|
-
Status2["UNDEFINED"] = "UNDEFINED";
|
|
803
|
-
Status2["PENDING"] = "PENDING";
|
|
804
|
-
Status2["ACTIVE"] = "ACTIVE";
|
|
805
|
-
Status2["CANCELLED"] = "CANCELLED";
|
|
806
|
-
Status2["FINISHED"] = "FINISHED";
|
|
807
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
808
|
-
return Status2;
|
|
809
|
-
})(Status || {});
|
|
810
|
-
var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
811
|
-
Initiator2["UNDEFINED"] = "UNDEFINED";
|
|
812
|
-
Initiator2["BUYER"] = "BUYER";
|
|
813
|
-
Initiator2["MERCHANT"] = "MERCHANT";
|
|
814
|
-
Initiator2["PAYMENT"] = "PAYMENT";
|
|
815
|
-
Initiator2["SETUP"] = "SETUP";
|
|
816
|
-
return Initiator2;
|
|
817
|
-
})(Initiator || {});
|
|
818
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
819
|
-
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
820
|
-
BenefitType2["LIMITED"] = "LIMITED";
|
|
821
|
-
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
822
|
-
return BenefitType2;
|
|
823
|
-
})(BenefitType || {});
|
|
824
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
825
|
-
Event2["Updated"] = "Updated";
|
|
826
|
-
Event2["Deleted"] = "Deleted";
|
|
827
|
-
Event2["Created"] = "Created";
|
|
828
|
-
return Event2;
|
|
829
|
-
})(Event || {});
|
|
830
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
831
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
832
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
833
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
834
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
835
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
836
|
-
return WebhookIdentityType2;
|
|
837
|
-
})(WebhookIdentityType || {});
|
|
838
|
-
async function joinProgram2(programId) {
|
|
895
|
+
async function getCompletionStats2(programId) {
|
|
839
896
|
const { httpClient, sideEffects } = arguments[1];
|
|
840
897
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
841
898
|
programId
|
|
842
899
|
});
|
|
843
|
-
const reqOpts =
|
|
900
|
+
const reqOpts = getCompletionStats(payload);
|
|
844
901
|
sideEffects?.onSiteCall?.();
|
|
845
902
|
try {
|
|
846
903
|
const result = await httpClient.request(reqOpts);
|
|
@@ -860,41 +917,40 @@ async function joinProgram2(programId) {
|
|
|
860
917
|
throw transformedError;
|
|
861
918
|
}
|
|
862
919
|
}
|
|
863
|
-
async function
|
|
864
|
-
const { httpClient, sideEffects } = arguments[
|
|
865
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
866
|
-
|
|
867
|
-
});
|
|
868
|
-
const reqOpts = getParticipant(payload);
|
|
920
|
+
async function getPremiumStats2() {
|
|
921
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
922
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
923
|
+
const reqOpts = getPremiumStats(payload);
|
|
869
924
|
sideEffects?.onSiteCall?.();
|
|
870
925
|
try {
|
|
871
926
|
const result = await httpClient.request(reqOpts);
|
|
872
927
|
sideEffects?.onSuccess?.(result);
|
|
873
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
928
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
874
929
|
} catch (err) {
|
|
875
930
|
const transformedError = sdkTransformError(
|
|
876
931
|
err,
|
|
877
932
|
{
|
|
878
933
|
spreadPathsToArguments: {},
|
|
879
|
-
explicitPathsToArguments: {
|
|
934
|
+
explicitPathsToArguments: {},
|
|
880
935
|
singleArgumentUnchanged: false
|
|
881
936
|
},
|
|
882
|
-
[
|
|
937
|
+
[]
|
|
883
938
|
);
|
|
884
939
|
sideEffects?.onError?.(err);
|
|
885
940
|
throw transformedError;
|
|
886
941
|
}
|
|
887
942
|
}
|
|
888
|
-
async function
|
|
943
|
+
async function getParticipant2(participantId) {
|
|
889
944
|
const { httpClient, sideEffects } = arguments[1];
|
|
890
945
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
891
946
|
participantId
|
|
892
947
|
});
|
|
893
|
-
const reqOpts =
|
|
948
|
+
const reqOpts = getParticipant(payload);
|
|
894
949
|
sideEffects?.onSiteCall?.();
|
|
895
950
|
try {
|
|
896
951
|
const result = await httpClient.request(reqOpts);
|
|
897
952
|
sideEffects?.onSuccess?.(result);
|
|
953
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
898
954
|
} catch (err) {
|
|
899
955
|
const transformedError = sdkTransformError(
|
|
900
956
|
err,
|
|
@@ -954,37 +1010,10 @@ function queryParticipants2() {
|
|
|
954
1010
|
transformationPaths: {}
|
|
955
1011
|
});
|
|
956
1012
|
}
|
|
957
|
-
async function
|
|
958
|
-
const { httpClient, sideEffects } = arguments[
|
|
959
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
960
|
-
const reqOpts =
|
|
961
|
-
sideEffects?.onSiteCall?.();
|
|
962
|
-
try {
|
|
963
|
-
const result = await httpClient.request(reqOpts);
|
|
964
|
-
sideEffects?.onSuccess?.(result);
|
|
965
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
966
|
-
} catch (err) {
|
|
967
|
-
const transformedError = sdkTransformError(
|
|
968
|
-
err,
|
|
969
|
-
{
|
|
970
|
-
spreadPathsToArguments: {},
|
|
971
|
-
explicitPathsToArguments: {},
|
|
972
|
-
singleArgumentUnchanged: false
|
|
973
|
-
},
|
|
974
|
-
[]
|
|
975
|
-
);
|
|
976
|
-
sideEffects?.onError?.(err);
|
|
977
|
-
throw transformedError;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
async function applyCoupon2(identifiers, orderId) {
|
|
981
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
982
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
983
|
-
participantId: identifiers?.participantId,
|
|
984
|
-
couponCode: identifiers?.couponCode,
|
|
985
|
-
orderId
|
|
986
|
-
});
|
|
987
|
-
const reqOpts = applyCoupon(payload);
|
|
1013
|
+
async function typedQueryParticipants(query) {
|
|
1014
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1015
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1016
|
+
const reqOpts = queryParticipants(payload);
|
|
988
1017
|
sideEffects?.onSiteCall?.();
|
|
989
1018
|
try {
|
|
990
1019
|
const result = await httpClient.request(reqOpts);
|
|
@@ -995,27 +1024,19 @@ async function applyCoupon2(identifiers, orderId) {
|
|
|
995
1024
|
err,
|
|
996
1025
|
{
|
|
997
1026
|
spreadPathsToArguments: {},
|
|
998
|
-
explicitPathsToArguments: {
|
|
999
|
-
participantId: "$[0].participantId",
|
|
1000
|
-
couponCode: "$[0].couponCode",
|
|
1001
|
-
orderId: "$[1]"
|
|
1002
|
-
},
|
|
1027
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1003
1028
|
singleArgumentUnchanged: false
|
|
1004
1029
|
},
|
|
1005
|
-
["
|
|
1030
|
+
["query"]
|
|
1006
1031
|
);
|
|
1007
1032
|
sideEffects?.onError?.(err);
|
|
1008
1033
|
throw transformedError;
|
|
1009
1034
|
}
|
|
1010
1035
|
}
|
|
1011
|
-
async function
|
|
1012
|
-
const { httpClient, sideEffects } = arguments[
|
|
1013
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1014
|
-
|
|
1015
|
-
couponId: identifiers?.couponId,
|
|
1016
|
-
orderId
|
|
1017
|
-
});
|
|
1018
|
-
const reqOpts = revertCoupon(payload);
|
|
1036
|
+
async function getAccessStatus2() {
|
|
1037
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1038
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
1039
|
+
const reqOpts = getAccessStatus(payload);
|
|
1019
1040
|
sideEffects?.onSiteCall?.();
|
|
1020
1041
|
try {
|
|
1021
1042
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1026,14 +1047,10 @@ async function revertCoupon2(identifiers, orderId) {
|
|
|
1026
1047
|
err,
|
|
1027
1048
|
{
|
|
1028
1049
|
spreadPathsToArguments: {},
|
|
1029
|
-
explicitPathsToArguments: {
|
|
1030
|
-
participantId: "$[0].participantId",
|
|
1031
|
-
couponId: "$[0].couponId",
|
|
1032
|
-
orderId: "$[1]"
|
|
1033
|
-
},
|
|
1050
|
+
explicitPathsToArguments: {},
|
|
1034
1051
|
singleArgumentUnchanged: false
|
|
1035
1052
|
},
|
|
1036
|
-
[
|
|
1053
|
+
[]
|
|
1037
1054
|
);
|
|
1038
1055
|
sideEffects?.onError?.(err);
|
|
1039
1056
|
throw transformedError;
|
|
@@ -1130,35 +1147,6 @@ async function bulkAddToProgram2(programId, options) {
|
|
|
1130
1147
|
throw transformedError;
|
|
1131
1148
|
}
|
|
1132
1149
|
}
|
|
1133
|
-
async function bulkAddAllToProgram2(programId, options) {
|
|
1134
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1135
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1136
|
-
programId,
|
|
1137
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
1138
|
-
});
|
|
1139
|
-
const reqOpts = bulkAddAllToProgram(payload);
|
|
1140
|
-
sideEffects?.onSiteCall?.();
|
|
1141
|
-
try {
|
|
1142
|
-
const result = await httpClient.request(reqOpts);
|
|
1143
|
-
sideEffects?.onSuccess?.(result);
|
|
1144
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1145
|
-
} catch (err) {
|
|
1146
|
-
const transformedError = sdkTransformError(
|
|
1147
|
-
err,
|
|
1148
|
-
{
|
|
1149
|
-
spreadPathsToArguments: {},
|
|
1150
|
-
explicitPathsToArguments: {
|
|
1151
|
-
programId: "$[0]",
|
|
1152
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1153
|
-
},
|
|
1154
|
-
singleArgumentUnchanged: false
|
|
1155
|
-
},
|
|
1156
|
-
["programId", "options"]
|
|
1157
|
-
);
|
|
1158
|
-
sideEffects?.onError?.(err);
|
|
1159
|
-
throw transformedError;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
1150
|
async function bulkApproveParticipant2(participantIds, options) {
|
|
1163
1151
|
const { httpClient, sideEffects } = arguments[2];
|
|
1164
1152
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1219,103 +1207,6 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
1219
1207
|
throw transformedError;
|
|
1220
1208
|
}
|
|
1221
1209
|
}
|
|
1222
|
-
async function deleteParticipant2(participantId) {
|
|
1223
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1224
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1225
|
-
participantId
|
|
1226
|
-
});
|
|
1227
|
-
const reqOpts = deleteParticipant(payload);
|
|
1228
|
-
sideEffects?.onSiteCall?.();
|
|
1229
|
-
try {
|
|
1230
|
-
const result = await httpClient.request(reqOpts);
|
|
1231
|
-
sideEffects?.onSuccess?.(result);
|
|
1232
|
-
} catch (err) {
|
|
1233
|
-
const transformedError = sdkTransformError(
|
|
1234
|
-
err,
|
|
1235
|
-
{
|
|
1236
|
-
spreadPathsToArguments: {},
|
|
1237
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1238
|
-
singleArgumentUnchanged: false
|
|
1239
|
-
},
|
|
1240
|
-
["participantId"]
|
|
1241
|
-
);
|
|
1242
|
-
sideEffects?.onError?.(err);
|
|
1243
|
-
throw transformedError;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
async function issueCertificate2(participantId) {
|
|
1247
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1248
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1249
|
-
participantId
|
|
1250
|
-
});
|
|
1251
|
-
const reqOpts = issueCertificate(payload);
|
|
1252
|
-
sideEffects?.onSiteCall?.();
|
|
1253
|
-
try {
|
|
1254
|
-
const result = await httpClient.request(reqOpts);
|
|
1255
|
-
sideEffects?.onSuccess?.(result);
|
|
1256
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1257
|
-
} catch (err) {
|
|
1258
|
-
const transformedError = sdkTransformError(
|
|
1259
|
-
err,
|
|
1260
|
-
{
|
|
1261
|
-
spreadPathsToArguments: {},
|
|
1262
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1263
|
-
singleArgumentUnchanged: false
|
|
1264
|
-
},
|
|
1265
|
-
["participantId"]
|
|
1266
|
-
);
|
|
1267
|
-
sideEffects?.onError?.(err);
|
|
1268
|
-
throw transformedError;
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
async function getCompletionStats2(programId) {
|
|
1272
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1273
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1274
|
-
programId
|
|
1275
|
-
});
|
|
1276
|
-
const reqOpts = getCompletionStats(payload);
|
|
1277
|
-
sideEffects?.onSiteCall?.();
|
|
1278
|
-
try {
|
|
1279
|
-
const result = await httpClient.request(reqOpts);
|
|
1280
|
-
sideEffects?.onSuccess?.(result);
|
|
1281
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1282
|
-
} catch (err) {
|
|
1283
|
-
const transformedError = sdkTransformError(
|
|
1284
|
-
err,
|
|
1285
|
-
{
|
|
1286
|
-
spreadPathsToArguments: {},
|
|
1287
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1288
|
-
singleArgumentUnchanged: false
|
|
1289
|
-
},
|
|
1290
|
-
["programId"]
|
|
1291
|
-
);
|
|
1292
|
-
sideEffects?.onError?.(err);
|
|
1293
|
-
throw transformedError;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
async function getPremiumStats2() {
|
|
1297
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1298
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
1299
|
-
const reqOpts = getPremiumStats(payload);
|
|
1300
|
-
sideEffects?.onSiteCall?.();
|
|
1301
|
-
try {
|
|
1302
|
-
const result = await httpClient.request(reqOpts);
|
|
1303
|
-
sideEffects?.onSuccess?.(result);
|
|
1304
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1305
|
-
} catch (err) {
|
|
1306
|
-
const transformedError = sdkTransformError(
|
|
1307
|
-
err,
|
|
1308
|
-
{
|
|
1309
|
-
spreadPathsToArguments: {},
|
|
1310
|
-
explicitPathsToArguments: {},
|
|
1311
|
-
singleArgumentUnchanged: false
|
|
1312
|
-
},
|
|
1313
|
-
[]
|
|
1314
|
-
);
|
|
1315
|
-
sideEffects?.onError?.(err);
|
|
1316
|
-
throw transformedError;
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
1210
|
async function exportParticipantsStats2(programId) {
|
|
1320
1211
|
const { httpClient, sideEffects } = arguments[1];
|
|
1321
1212
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1343,27 +1234,18 @@ async function exportParticipantsStats2(programId) {
|
|
|
1343
1234
|
export {
|
|
1344
1235
|
BenefitType,
|
|
1345
1236
|
Event,
|
|
1346
|
-
EventType,
|
|
1347
|
-
Initiator,
|
|
1348
1237
|
JoinPath,
|
|
1349
|
-
OrderItemCategory,
|
|
1350
|
-
RefundStatus,
|
|
1351
|
-
RemovalReason,
|
|
1352
|
-
ScheduledActionType,
|
|
1353
1238
|
SortOrder,
|
|
1354
1239
|
State,
|
|
1355
|
-
Status,
|
|
1356
|
-
SubdivisionType,
|
|
1357
|
-
TransactionStatus,
|
|
1358
|
-
VatType,
|
|
1359
1240
|
WebhookIdentityType,
|
|
1360
|
-
applyCoupon2 as applyCoupon,
|
|
1361
1241
|
bulkAddAllToProgram2 as bulkAddAllToProgram,
|
|
1362
1242
|
bulkAddToProgram2 as bulkAddToProgram,
|
|
1363
1243
|
bulkApproveAllParticipant2 as bulkApproveAllParticipant,
|
|
1364
1244
|
bulkApproveParticipant2 as bulkApproveParticipant,
|
|
1245
|
+
bulkCreateParticipant2 as bulkCreateParticipant,
|
|
1365
1246
|
bulkInviteAllToProgram2 as bulkInviteAllToProgram,
|
|
1366
1247
|
bulkInviteToProgram2 as bulkInviteToProgram,
|
|
1248
|
+
createParticipant2 as createParticipant,
|
|
1367
1249
|
deleteParticipant2 as deleteParticipant,
|
|
1368
1250
|
exportParticipantsStats2 as exportParticipantsStats,
|
|
1369
1251
|
getAccessStatus2 as getAccessStatus,
|
|
@@ -1371,9 +1253,7 @@ export {
|
|
|
1371
1253
|
getParticipant2 as getParticipant,
|
|
1372
1254
|
getPremiumStats2 as getPremiumStats,
|
|
1373
1255
|
issueCertificate2 as issueCertificate,
|
|
1374
|
-
joinProgram2 as joinProgram,
|
|
1375
|
-
leaveProgram2 as leaveProgram,
|
|
1376
1256
|
queryParticipants2 as queryParticipants,
|
|
1377
|
-
|
|
1257
|
+
typedQueryParticipants
|
|
1378
1258
|
};
|
|
1379
1259
|
//# sourceMappingURL=index.typings.mjs.map
|