@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
|
@@ -22,27 +22,18 @@ var index_typings_exports = {};
|
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
BenefitType: () => BenefitType,
|
|
24
24
|
Event: () => Event,
|
|
25
|
-
EventType: () => EventType,
|
|
26
|
-
Initiator: () => Initiator,
|
|
27
25
|
JoinPath: () => JoinPath,
|
|
28
|
-
OrderItemCategory: () => OrderItemCategory,
|
|
29
|
-
RefundStatus: () => RefundStatus,
|
|
30
|
-
RemovalReason: () => RemovalReason,
|
|
31
|
-
ScheduledActionType: () => ScheduledActionType,
|
|
32
26
|
SortOrder: () => SortOrder,
|
|
33
27
|
State: () => State,
|
|
34
|
-
Status: () => Status,
|
|
35
|
-
SubdivisionType: () => SubdivisionType,
|
|
36
|
-
TransactionStatus: () => TransactionStatus,
|
|
37
|
-
VatType: () => VatType,
|
|
38
28
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
39
|
-
applyCoupon: () => applyCoupon2,
|
|
40
29
|
bulkAddAllToProgram: () => bulkAddAllToProgram2,
|
|
41
30
|
bulkAddToProgram: () => bulkAddToProgram2,
|
|
42
31
|
bulkApproveAllParticipant: () => bulkApproveAllParticipant2,
|
|
43
32
|
bulkApproveParticipant: () => bulkApproveParticipant2,
|
|
33
|
+
bulkCreateParticipant: () => bulkCreateParticipant2,
|
|
44
34
|
bulkInviteAllToProgram: () => bulkInviteAllToProgram2,
|
|
45
35
|
bulkInviteToProgram: () => bulkInviteToProgram2,
|
|
36
|
+
createParticipant: () => createParticipant2,
|
|
46
37
|
deleteParticipant: () => deleteParticipant2,
|
|
47
38
|
exportParticipantsStats: () => exportParticipantsStats2,
|
|
48
39
|
getAccessStatus: () => getAccessStatus2,
|
|
@@ -50,10 +41,8 @@ __export(index_typings_exports, {
|
|
|
50
41
|
getParticipant: () => getParticipant2,
|
|
51
42
|
getPremiumStats: () => getPremiumStats2,
|
|
52
43
|
issueCertificate: () => issueCertificate2,
|
|
53
|
-
joinProgram: () => joinProgram2,
|
|
54
|
-
leaveProgram: () => leaveProgram2,
|
|
55
44
|
queryParticipants: () => queryParticipants2,
|
|
56
|
-
|
|
45
|
+
typedQueryParticipants: () => typedQueryParticipants
|
|
57
46
|
});
|
|
58
47
|
module.exports = __toCommonJS(index_typings_exports);
|
|
59
48
|
|
|
@@ -65,7 +54,9 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
65
54
|
// src/online-programs-v3-participant-participants.http.ts
|
|
66
55
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
67
56
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
57
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
68
58
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
59
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
69
60
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
70
61
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
71
62
|
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
@@ -264,88 +255,124 @@ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
|
264
255
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
265
256
|
}
|
|
266
257
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
267
|
-
function
|
|
268
|
-
function
|
|
258
|
+
function createParticipant(payload) {
|
|
259
|
+
function __createParticipant({ host }) {
|
|
260
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
261
|
+
{
|
|
262
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
263
|
+
paths: [
|
|
264
|
+
{ path: "participant.createdDate" },
|
|
265
|
+
{ path: "participant.updatedDate" },
|
|
266
|
+
{ path: "participant.lastActivityDate" },
|
|
267
|
+
{ path: "participant.certificate.issuedDate" },
|
|
268
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
273
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
274
|
+
}
|
|
275
|
+
]);
|
|
269
276
|
const metadata = {
|
|
270
277
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
271
278
|
method: "POST",
|
|
272
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
279
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
273
280
|
packageName: PACKAGE_NAME,
|
|
274
281
|
migrationOptions: {
|
|
275
282
|
optInTransformResponse: true
|
|
276
283
|
},
|
|
277
284
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
278
|
-
protoPath: "/v3/participants
|
|
279
|
-
data:
|
|
285
|
+
protoPath: "/v3/participants",
|
|
286
|
+
data: serializedData,
|
|
280
287
|
host
|
|
281
288
|
}),
|
|
282
|
-
data:
|
|
289
|
+
data: serializedData,
|
|
283
290
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
284
291
|
{
|
|
285
|
-
transformFn:
|
|
292
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
286
293
|
paths: [
|
|
287
294
|
{ path: "participant.createdDate" },
|
|
288
295
|
{ path: "participant.updatedDate" },
|
|
289
|
-
{ path: "participant.
|
|
296
|
+
{ path: "participant.lastActivityDate" },
|
|
297
|
+
{ path: "participant.certificate.issuedDate" },
|
|
298
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
290
299
|
]
|
|
291
300
|
},
|
|
292
301
|
{
|
|
293
|
-
transformFn:
|
|
302
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
294
303
|
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
295
304
|
}
|
|
296
305
|
])
|
|
297
306
|
};
|
|
298
307
|
return metadata;
|
|
299
308
|
}
|
|
300
|
-
return
|
|
309
|
+
return __createParticipant;
|
|
301
310
|
}
|
|
302
|
-
function
|
|
303
|
-
function
|
|
311
|
+
function bulkCreateParticipant(payload) {
|
|
312
|
+
function __bulkCreateParticipant({ host }) {
|
|
313
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
314
|
+
{
|
|
315
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
316
|
+
paths: [
|
|
317
|
+
{ path: "participants.createdDate" },
|
|
318
|
+
{ path: "participants.updatedDate" },
|
|
319
|
+
{ path: "participants.lastActivityDate" },
|
|
320
|
+
{ path: "participants.certificate.issuedDate" },
|
|
321
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
326
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
327
|
+
}
|
|
328
|
+
]);
|
|
304
329
|
const metadata = {
|
|
305
330
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
306
|
-
method: "
|
|
307
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
331
|
+
method: "POST",
|
|
332
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
308
333
|
packageName: PACKAGE_NAME,
|
|
309
334
|
migrationOptions: {
|
|
310
335
|
optInTransformResponse: true
|
|
311
336
|
},
|
|
312
337
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
313
|
-
protoPath: "/v3/participants/
|
|
314
|
-
data:
|
|
338
|
+
protoPath: "/v3/bulk/participants/create",
|
|
339
|
+
data: serializedData,
|
|
315
340
|
host
|
|
316
341
|
}),
|
|
317
|
-
|
|
342
|
+
data: serializedData,
|
|
318
343
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
319
344
|
{
|
|
320
|
-
transformFn:
|
|
345
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
321
346
|
paths: [
|
|
322
|
-
{ path: "
|
|
323
|
-
{ path: "
|
|
324
|
-
{ path: "
|
|
347
|
+
{ path: "results.item.createdDate" },
|
|
348
|
+
{ path: "results.item.updatedDate" },
|
|
349
|
+
{ path: "results.item.lastActivityDate" },
|
|
350
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
351
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
325
352
|
]
|
|
326
353
|
},
|
|
327
354
|
{
|
|
328
|
-
transformFn:
|
|
329
|
-
paths: [{ path: "
|
|
355
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
356
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
330
357
|
}
|
|
331
358
|
])
|
|
332
359
|
};
|
|
333
360
|
return metadata;
|
|
334
361
|
}
|
|
335
|
-
return
|
|
362
|
+
return __bulkCreateParticipant;
|
|
336
363
|
}
|
|
337
|
-
function
|
|
338
|
-
function
|
|
364
|
+
function bulkAddAllToProgram(payload) {
|
|
365
|
+
function __bulkAddAllToProgram({ host }) {
|
|
339
366
|
const metadata = {
|
|
340
367
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
341
368
|
method: "POST",
|
|
342
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
369
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
343
370
|
packageName: PACKAGE_NAME,
|
|
344
371
|
migrationOptions: {
|
|
345
372
|
optInTransformResponse: true
|
|
346
373
|
},
|
|
347
374
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
348
|
-
protoPath: "/v3/participants/
|
|
375
|
+
protoPath: "/v3/bulk/participants/add-all",
|
|
349
376
|
data: payload,
|
|
350
377
|
host
|
|
351
378
|
}),
|
|
@@ -353,55 +380,105 @@ function leaveProgram(payload) {
|
|
|
353
380
|
};
|
|
354
381
|
return metadata;
|
|
355
382
|
}
|
|
356
|
-
return
|
|
383
|
+
return __bulkAddAllToProgram;
|
|
357
384
|
}
|
|
358
|
-
function
|
|
359
|
-
function
|
|
385
|
+
function deleteParticipant(payload) {
|
|
386
|
+
function __deleteParticipant({ host }) {
|
|
387
|
+
const metadata = {
|
|
388
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
389
|
+
method: "DELETE",
|
|
390
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
391
|
+
packageName: PACKAGE_NAME,
|
|
392
|
+
migrationOptions: {
|
|
393
|
+
optInTransformResponse: true
|
|
394
|
+
},
|
|
395
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
396
|
+
protoPath: "/v3/participants/{participantId}",
|
|
397
|
+
data: payload,
|
|
398
|
+
host
|
|
399
|
+
}),
|
|
400
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
401
|
+
};
|
|
402
|
+
return metadata;
|
|
403
|
+
}
|
|
404
|
+
return __deleteParticipant;
|
|
405
|
+
}
|
|
406
|
+
function issueCertificate(payload) {
|
|
407
|
+
function __issueCertificate({ host }) {
|
|
360
408
|
const metadata = {
|
|
361
409
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
362
410
|
method: "POST",
|
|
363
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
411
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
364
412
|
packageName: PACKAGE_NAME,
|
|
365
413
|
migrationOptions: {
|
|
366
414
|
optInTransformResponse: true
|
|
367
415
|
},
|
|
368
416
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
369
|
-
protoPath: "/v3/participants/
|
|
417
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
370
418
|
data: payload,
|
|
371
419
|
host
|
|
372
420
|
}),
|
|
373
421
|
data: payload,
|
|
374
422
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
375
423
|
{
|
|
376
|
-
transformFn:
|
|
424
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
377
425
|
paths: [
|
|
378
|
-
{ path: "
|
|
379
|
-
{ path: "
|
|
380
|
-
{ path: "
|
|
426
|
+
{ path: "participant.createdDate" },
|
|
427
|
+
{ path: "participant.updatedDate" },
|
|
428
|
+
{ path: "participant.lastActivityDate" },
|
|
429
|
+
{ path: "participant.certificate.issuedDate" },
|
|
430
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
381
431
|
]
|
|
382
432
|
},
|
|
383
433
|
{
|
|
384
|
-
transformFn:
|
|
385
|
-
paths: [{ path: "
|
|
434
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
435
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
386
436
|
}
|
|
387
437
|
])
|
|
388
438
|
};
|
|
389
439
|
return metadata;
|
|
390
440
|
}
|
|
391
|
-
return
|
|
441
|
+
return __issueCertificate;
|
|
392
442
|
}
|
|
393
|
-
function
|
|
394
|
-
function
|
|
443
|
+
function getCompletionStats(payload) {
|
|
444
|
+
function __getCompletionStats({ host }) {
|
|
395
445
|
const metadata = {
|
|
396
446
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
397
447
|
method: "GET",
|
|
398
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
448
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
399
449
|
packageName: PACKAGE_NAME,
|
|
400
450
|
migrationOptions: {
|
|
401
451
|
optInTransformResponse: true
|
|
402
452
|
},
|
|
403
453
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
404
|
-
protoPath: "/v3/
|
|
454
|
+
protoPath: "/v3/stats/completion/{programId}",
|
|
455
|
+
data: payload,
|
|
456
|
+
host
|
|
457
|
+
}),
|
|
458
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
459
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
460
|
+
{
|
|
461
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
462
|
+
paths: [{ path: "completionRate" }]
|
|
463
|
+
}
|
|
464
|
+
])
|
|
465
|
+
};
|
|
466
|
+
return metadata;
|
|
467
|
+
}
|
|
468
|
+
return __getCompletionStats;
|
|
469
|
+
}
|
|
470
|
+
function getPremiumStats(payload) {
|
|
471
|
+
function __getPremiumStats({ host }) {
|
|
472
|
+
const metadata = {
|
|
473
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
474
|
+
method: "GET",
|
|
475
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
476
|
+
packageName: PACKAGE_NAME,
|
|
477
|
+
migrationOptions: {
|
|
478
|
+
optInTransformResponse: true
|
|
479
|
+
},
|
|
480
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
481
|
+
protoPath: "/v3/stats/premium",
|
|
405
482
|
data: payload,
|
|
406
483
|
host
|
|
407
484
|
}),
|
|
@@ -409,65 +486,102 @@ function getAccessStatus(payload) {
|
|
|
409
486
|
};
|
|
410
487
|
return metadata;
|
|
411
488
|
}
|
|
412
|
-
return
|
|
489
|
+
return __getPremiumStats;
|
|
413
490
|
}
|
|
414
|
-
function
|
|
415
|
-
function
|
|
491
|
+
function getParticipant(payload) {
|
|
492
|
+
function __getParticipant({ host }) {
|
|
416
493
|
const metadata = {
|
|
417
494
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
418
|
-
method: "
|
|
419
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
495
|
+
method: "GET",
|
|
496
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
420
497
|
packageName: PACKAGE_NAME,
|
|
421
498
|
migrationOptions: {
|
|
422
499
|
optInTransformResponse: true
|
|
423
500
|
},
|
|
424
501
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
425
|
-
protoPath: "/v3/participants/{participantId}
|
|
502
|
+
protoPath: "/v3/participants/{participantId}",
|
|
426
503
|
data: payload,
|
|
427
504
|
host
|
|
428
505
|
}),
|
|
429
|
-
|
|
506
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
430
507
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
431
508
|
{
|
|
432
|
-
transformFn:
|
|
509
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
433
510
|
paths: [
|
|
434
|
-
{ path: "
|
|
435
|
-
{ path: "
|
|
436
|
-
{ path: "
|
|
511
|
+
{ path: "participant.createdDate" },
|
|
512
|
+
{ path: "participant.updatedDate" },
|
|
513
|
+
{ path: "participant.lastActivityDate" },
|
|
514
|
+
{ path: "participant.certificate.issuedDate" },
|
|
515
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
437
516
|
]
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
520
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
438
521
|
}
|
|
439
522
|
])
|
|
440
523
|
};
|
|
441
524
|
return metadata;
|
|
442
525
|
}
|
|
443
|
-
return
|
|
526
|
+
return __getParticipant;
|
|
444
527
|
}
|
|
445
|
-
function
|
|
446
|
-
function
|
|
528
|
+
function queryParticipants(payload) {
|
|
529
|
+
function __queryParticipants({ host }) {
|
|
447
530
|
const metadata = {
|
|
448
531
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
449
532
|
method: "POST",
|
|
450
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
533
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
451
534
|
packageName: PACKAGE_NAME,
|
|
452
535
|
migrationOptions: {
|
|
453
536
|
optInTransformResponse: true
|
|
454
537
|
},
|
|
455
538
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
456
|
-
protoPath: "/v3/participants/
|
|
539
|
+
protoPath: "/v3/participants/query",
|
|
457
540
|
data: payload,
|
|
458
541
|
host
|
|
459
542
|
}),
|
|
460
543
|
data: payload,
|
|
461
544
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
462
545
|
{
|
|
463
|
-
transformFn:
|
|
464
|
-
paths: [
|
|
546
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
547
|
+
paths: [
|
|
548
|
+
{ path: "participants.createdDate" },
|
|
549
|
+
{ path: "participants.updatedDate" },
|
|
550
|
+
{ path: "participants.lastActivityDate" },
|
|
551
|
+
{ path: "participants.certificate.issuedDate" },
|
|
552
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
557
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
465
558
|
}
|
|
466
559
|
])
|
|
467
560
|
};
|
|
468
561
|
return metadata;
|
|
469
562
|
}
|
|
470
|
-
return
|
|
563
|
+
return __queryParticipants;
|
|
564
|
+
}
|
|
565
|
+
function getAccessStatus(payload) {
|
|
566
|
+
function __getAccessStatus({ host }) {
|
|
567
|
+
const metadata = {
|
|
568
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
569
|
+
method: "GET",
|
|
570
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
571
|
+
packageName: PACKAGE_NAME,
|
|
572
|
+
migrationOptions: {
|
|
573
|
+
optInTransformResponse: true
|
|
574
|
+
},
|
|
575
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
576
|
+
protoPath: "/v3/participants/access",
|
|
577
|
+
data: payload,
|
|
578
|
+
host
|
|
579
|
+
}),
|
|
580
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
581
|
+
};
|
|
582
|
+
return metadata;
|
|
583
|
+
}
|
|
584
|
+
return __getAccessStatus;
|
|
471
585
|
}
|
|
472
586
|
function bulkInviteToProgram(payload) {
|
|
473
587
|
function __bulkInviteToProgram({ host }) {
|
|
@@ -487,15 +601,17 @@ function bulkInviteToProgram(payload) {
|
|
|
487
601
|
data: payload,
|
|
488
602
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
489
603
|
{
|
|
490
|
-
transformFn:
|
|
604
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
491
605
|
paths: [
|
|
492
606
|
{ path: "results.item.createdDate" },
|
|
493
607
|
{ path: "results.item.updatedDate" },
|
|
494
|
-
{ path: "results.item.
|
|
608
|
+
{ path: "results.item.lastActivityDate" },
|
|
609
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
610
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
495
611
|
]
|
|
496
612
|
},
|
|
497
613
|
{
|
|
498
|
-
transformFn:
|
|
614
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
499
615
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
500
616
|
}
|
|
501
617
|
])
|
|
@@ -543,15 +659,17 @@ function bulkAddToProgram(payload) {
|
|
|
543
659
|
data: payload,
|
|
544
660
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
545
661
|
{
|
|
546
|
-
transformFn:
|
|
662
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
547
663
|
paths: [
|
|
548
664
|
{ path: "results.item.createdDate" },
|
|
549
665
|
{ path: "results.item.updatedDate" },
|
|
550
|
-
{ path: "results.item.
|
|
666
|
+
{ path: "results.item.lastActivityDate" },
|
|
667
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
668
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
551
669
|
]
|
|
552
670
|
},
|
|
553
671
|
{
|
|
554
|
-
transformFn:
|
|
672
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
555
673
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
556
674
|
}
|
|
557
675
|
])
|
|
@@ -560,27 +678,6 @@ function bulkAddToProgram(payload) {
|
|
|
560
678
|
}
|
|
561
679
|
return __bulkAddToProgram;
|
|
562
680
|
}
|
|
563
|
-
function bulkAddAllToProgram(payload) {
|
|
564
|
-
function __bulkAddAllToProgram({ host }) {
|
|
565
|
-
const metadata = {
|
|
566
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
567
|
-
method: "POST",
|
|
568
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
|
|
569
|
-
packageName: PACKAGE_NAME,
|
|
570
|
-
migrationOptions: {
|
|
571
|
-
optInTransformResponse: true
|
|
572
|
-
},
|
|
573
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
574
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
575
|
-
data: payload,
|
|
576
|
-
host
|
|
577
|
-
}),
|
|
578
|
-
data: payload
|
|
579
|
-
};
|
|
580
|
-
return metadata;
|
|
581
|
-
}
|
|
582
|
-
return __bulkAddAllToProgram;
|
|
583
|
-
}
|
|
584
681
|
function bulkApproveParticipant(payload) {
|
|
585
682
|
function __bulkApproveParticipant({ host }) {
|
|
586
683
|
const metadata = {
|
|
@@ -599,15 +696,17 @@ function bulkApproveParticipant(payload) {
|
|
|
599
696
|
data: payload,
|
|
600
697
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
601
698
|
{
|
|
602
|
-
transformFn:
|
|
699
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
603
700
|
paths: [
|
|
604
701
|
{ path: "results.item.createdDate" },
|
|
605
702
|
{ path: "results.item.updatedDate" },
|
|
606
|
-
{ path: "results.item.
|
|
703
|
+
{ path: "results.item.lastActivityDate" },
|
|
704
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
705
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
607
706
|
]
|
|
608
707
|
},
|
|
609
708
|
{
|
|
610
|
-
transformFn:
|
|
709
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
611
710
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
612
711
|
}
|
|
613
712
|
])
|
|
@@ -637,101 +736,18 @@ function bulkApproveAllParticipant(payload) {
|
|
|
637
736
|
}
|
|
638
737
|
return __bulkApproveAllParticipant;
|
|
639
738
|
}
|
|
640
|
-
function
|
|
641
|
-
function
|
|
642
|
-
const metadata = {
|
|
643
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
644
|
-
method: "DELETE",
|
|
645
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
|
|
646
|
-
packageName: PACKAGE_NAME,
|
|
647
|
-
migrationOptions: {
|
|
648
|
-
optInTransformResponse: true
|
|
649
|
-
},
|
|
650
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
651
|
-
protoPath: "/v3/participants/{participantId}",
|
|
652
|
-
data: payload,
|
|
653
|
-
host
|
|
654
|
-
}),
|
|
655
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
656
|
-
};
|
|
657
|
-
return metadata;
|
|
658
|
-
}
|
|
659
|
-
return __deleteParticipant;
|
|
660
|
-
}
|
|
661
|
-
function issueCertificate(payload) {
|
|
662
|
-
function __issueCertificate({ host }) {
|
|
663
|
-
const metadata = {
|
|
664
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
665
|
-
method: "POST",
|
|
666
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
|
|
667
|
-
packageName: PACKAGE_NAME,
|
|
668
|
-
migrationOptions: {
|
|
669
|
-
optInTransformResponse: true
|
|
670
|
-
},
|
|
671
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
672
|
-
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
673
|
-
data: payload,
|
|
674
|
-
host
|
|
675
|
-
}),
|
|
676
|
-
data: payload,
|
|
677
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
678
|
-
{
|
|
679
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
680
|
-
paths: [
|
|
681
|
-
{ path: "participant.createdDate" },
|
|
682
|
-
{ path: "participant.updatedDate" },
|
|
683
|
-
{ path: "participant.certificate.issuedDate" }
|
|
684
|
-
]
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
688
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
689
|
-
}
|
|
690
|
-
])
|
|
691
|
-
};
|
|
692
|
-
return metadata;
|
|
693
|
-
}
|
|
694
|
-
return __issueCertificate;
|
|
695
|
-
}
|
|
696
|
-
function getCompletionStats(payload) {
|
|
697
|
-
function __getCompletionStats({ host }) {
|
|
698
|
-
const metadata = {
|
|
699
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
700
|
-
method: "GET",
|
|
701
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
|
|
702
|
-
packageName: PACKAGE_NAME,
|
|
703
|
-
migrationOptions: {
|
|
704
|
-
optInTransformResponse: true
|
|
705
|
-
},
|
|
706
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
707
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
708
|
-
data: payload,
|
|
709
|
-
host
|
|
710
|
-
}),
|
|
711
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
712
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
713
|
-
{
|
|
714
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
715
|
-
paths: [{ path: "completionRate" }]
|
|
716
|
-
}
|
|
717
|
-
])
|
|
718
|
-
};
|
|
719
|
-
return metadata;
|
|
720
|
-
}
|
|
721
|
-
return __getCompletionStats;
|
|
722
|
-
}
|
|
723
|
-
function getPremiumStats(payload) {
|
|
724
|
-
function __getPremiumStats({ host }) {
|
|
739
|
+
function exportParticipantsStats(payload) {
|
|
740
|
+
function __exportParticipantsStats({ host }) {
|
|
725
741
|
const metadata = {
|
|
726
742
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
727
743
|
method: "GET",
|
|
728
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
744
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
729
745
|
packageName: PACKAGE_NAME,
|
|
730
746
|
migrationOptions: {
|
|
731
747
|
optInTransformResponse: true
|
|
732
748
|
},
|
|
733
|
-
url:
|
|
734
|
-
protoPath: "/v3/
|
|
749
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
750
|
+
protoPath: "/v3/participants/export/{programId}",
|
|
735
751
|
data: payload,
|
|
736
752
|
host
|
|
737
753
|
}),
|
|
@@ -739,28 +755,7 @@ function getPremiumStats(payload) {
|
|
|
739
755
|
};
|
|
740
756
|
return metadata;
|
|
741
757
|
}
|
|
742
|
-
return
|
|
743
|
-
}
|
|
744
|
-
function exportParticipantsStats(payload) {
|
|
745
|
-
function __exportParticipantsStats({ host }) {
|
|
746
|
-
const metadata = {
|
|
747
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
748
|
-
method: "GET",
|
|
749
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
750
|
-
packageName: PACKAGE_NAME,
|
|
751
|
-
migrationOptions: {
|
|
752
|
-
optInTransformResponse: true
|
|
753
|
-
},
|
|
754
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
755
|
-
protoPath: "/v3/participants/export/{programId}",
|
|
756
|
-
data: payload,
|
|
757
|
-
host
|
|
758
|
-
}),
|
|
759
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
760
|
-
};
|
|
761
|
-
return metadata;
|
|
762
|
-
}
|
|
763
|
-
return __exportParticipantsStats;
|
|
758
|
+
return __exportParticipantsStats;
|
|
764
759
|
}
|
|
765
760
|
|
|
766
761
|
// src/online-programs-v3-participant-participants.universal.ts
|
|
@@ -776,101 +771,20 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
|
776
771
|
})(JoinPath || {});
|
|
777
772
|
var State = /* @__PURE__ */ ((State2) => {
|
|
778
773
|
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
779
|
-
State2["INVITED"] = "INVITED";
|
|
780
|
-
State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
|
|
781
|
-
State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
782
774
|
State2["JOINED"] = "JOINED";
|
|
783
775
|
State2["COMPLETED"] = "COMPLETED";
|
|
784
776
|
State2["FAILED"] = "FAILED";
|
|
785
777
|
State2["SUSPENDED"] = "SUSPENDED";
|
|
786
778
|
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
779
|
+
State2["REMOVED"] = "REMOVED";
|
|
780
|
+
State2["LEFT"] = "LEFT";
|
|
787
781
|
return State2;
|
|
788
782
|
})(State || {});
|
|
789
|
-
var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
|
|
790
|
-
RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
|
|
791
|
-
RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
|
|
792
|
-
RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
|
|
793
|
-
RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
|
|
794
|
-
return RemovalReason2;
|
|
795
|
-
})(RemovalReason || {});
|
|
796
783
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
797
784
|
SortOrder2["ASC"] = "ASC";
|
|
798
785
|
SortOrder2["DESC"] = "DESC";
|
|
799
786
|
return SortOrder2;
|
|
800
787
|
})(SortOrder || {});
|
|
801
|
-
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
802
|
-
EventType2["UNDEFINED"] = "UNDEFINED";
|
|
803
|
-
EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
|
|
804
|
-
EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
|
|
805
|
-
EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
|
|
806
|
-
EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
|
|
807
|
-
EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
|
|
808
|
-
return EventType2;
|
|
809
|
-
})(EventType || {});
|
|
810
|
-
var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
|
|
811
|
-
OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
|
|
812
|
-
OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
|
|
813
|
-
OrderItemCategory2["DIGITAL"] = "DIGITAL";
|
|
814
|
-
return OrderItemCategory2;
|
|
815
|
-
})(OrderItemCategory || {});
|
|
816
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
817
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
818
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
819
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
820
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
821
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
822
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
823
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
824
|
-
return SubdivisionType2;
|
|
825
|
-
})(SubdivisionType || {});
|
|
826
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
827
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
828
|
-
VatType2["CPF"] = "CPF";
|
|
829
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
830
|
-
return VatType2;
|
|
831
|
-
})(VatType || {});
|
|
832
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
833
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
834
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
835
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
836
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
837
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
838
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
839
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
840
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
841
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
842
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
843
|
-
return TransactionStatus2;
|
|
844
|
-
})(TransactionStatus || {});
|
|
845
|
-
var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
|
|
846
|
-
ScheduledActionType2["VOID"] = "VOID";
|
|
847
|
-
ScheduledActionType2["CAPTURE"] = "CAPTURE";
|
|
848
|
-
return ScheduledActionType2;
|
|
849
|
-
})(ScheduledActionType || {});
|
|
850
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
851
|
-
RefundStatus2["UNDEFINED"] = "UNDEFINED";
|
|
852
|
-
RefundStatus2["APPROVED"] = "APPROVED";
|
|
853
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
854
|
-
RefundStatus2["DECLINED"] = "DECLINED";
|
|
855
|
-
return RefundStatus2;
|
|
856
|
-
})(RefundStatus || {});
|
|
857
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
858
|
-
Status2["UNDEFINED"] = "UNDEFINED";
|
|
859
|
-
Status2["PENDING"] = "PENDING";
|
|
860
|
-
Status2["ACTIVE"] = "ACTIVE";
|
|
861
|
-
Status2["CANCELLED"] = "CANCELLED";
|
|
862
|
-
Status2["FINISHED"] = "FINISHED";
|
|
863
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
864
|
-
return Status2;
|
|
865
|
-
})(Status || {});
|
|
866
|
-
var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
867
|
-
Initiator2["UNDEFINED"] = "UNDEFINED";
|
|
868
|
-
Initiator2["BUYER"] = "BUYER";
|
|
869
|
-
Initiator2["MERCHANT"] = "MERCHANT";
|
|
870
|
-
Initiator2["PAYMENT"] = "PAYMENT";
|
|
871
|
-
Initiator2["SETUP"] = "SETUP";
|
|
872
|
-
return Initiator2;
|
|
873
|
-
})(Initiator || {});
|
|
874
788
|
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
875
789
|
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
876
790
|
BenefitType2["LIMITED"] = "LIMITED";
|
|
@@ -891,12 +805,38 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
891
805
|
WebhookIdentityType2["APP"] = "APP";
|
|
892
806
|
return WebhookIdentityType2;
|
|
893
807
|
})(WebhookIdentityType || {});
|
|
894
|
-
async function
|
|
808
|
+
async function createParticipant2(participant) {
|
|
895
809
|
const { httpClient, sideEffects } = arguments[1];
|
|
896
810
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
897
|
-
|
|
811
|
+
participant
|
|
898
812
|
});
|
|
899
|
-
const reqOpts =
|
|
813
|
+
const reqOpts = createParticipant(payload);
|
|
814
|
+
sideEffects?.onSiteCall?.();
|
|
815
|
+
try {
|
|
816
|
+
const result = await httpClient.request(reqOpts);
|
|
817
|
+
sideEffects?.onSuccess?.(result);
|
|
818
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
819
|
+
} catch (err) {
|
|
820
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
821
|
+
err,
|
|
822
|
+
{
|
|
823
|
+
spreadPathsToArguments: {},
|
|
824
|
+
explicitPathsToArguments: { participant: "$[0]" },
|
|
825
|
+
singleArgumentUnchanged: false
|
|
826
|
+
},
|
|
827
|
+
["participant"]
|
|
828
|
+
);
|
|
829
|
+
sideEffects?.onError?.(err);
|
|
830
|
+
throw transformedError;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
async function bulkCreateParticipant2(participants, options) {
|
|
834
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
835
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
836
|
+
participants,
|
|
837
|
+
returnEntity: options?.returnEntity
|
|
838
|
+
});
|
|
839
|
+
const reqOpts = bulkCreateParticipant(payload);
|
|
900
840
|
sideEffects?.onSiteCall?.();
|
|
901
841
|
try {
|
|
902
842
|
const result = await httpClient.request(reqOpts);
|
|
@@ -907,26 +847,57 @@ async function joinProgram2(programId) {
|
|
|
907
847
|
err,
|
|
908
848
|
{
|
|
909
849
|
spreadPathsToArguments: {},
|
|
910
|
-
explicitPathsToArguments: {
|
|
850
|
+
explicitPathsToArguments: {
|
|
851
|
+
participants: "$[0]",
|
|
852
|
+
returnEntity: "$[1].returnEntity"
|
|
853
|
+
},
|
|
911
854
|
singleArgumentUnchanged: false
|
|
912
855
|
},
|
|
913
|
-
["
|
|
856
|
+
["participants", "options"]
|
|
914
857
|
);
|
|
915
858
|
sideEffects?.onError?.(err);
|
|
916
859
|
throw transformedError;
|
|
917
860
|
}
|
|
918
861
|
}
|
|
919
|
-
async function
|
|
862
|
+
async function bulkAddAllToProgram2(programId, options) {
|
|
863
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
864
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
865
|
+
programId,
|
|
866
|
+
excludeMemberIds: options?.excludeMemberIds
|
|
867
|
+
});
|
|
868
|
+
const reqOpts = bulkAddAllToProgram(payload);
|
|
869
|
+
sideEffects?.onSiteCall?.();
|
|
870
|
+
try {
|
|
871
|
+
const result = await httpClient.request(reqOpts);
|
|
872
|
+
sideEffects?.onSuccess?.(result);
|
|
873
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
874
|
+
} catch (err) {
|
|
875
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
876
|
+
err,
|
|
877
|
+
{
|
|
878
|
+
spreadPathsToArguments: {},
|
|
879
|
+
explicitPathsToArguments: {
|
|
880
|
+
programId: "$[0]",
|
|
881
|
+
excludeMemberIds: "$[1].excludeMemberIds"
|
|
882
|
+
},
|
|
883
|
+
singleArgumentUnchanged: false
|
|
884
|
+
},
|
|
885
|
+
["programId", "options"]
|
|
886
|
+
);
|
|
887
|
+
sideEffects?.onError?.(err);
|
|
888
|
+
throw transformedError;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
async function deleteParticipant2(participantId) {
|
|
920
892
|
const { httpClient, sideEffects } = arguments[1];
|
|
921
893
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
922
894
|
participantId
|
|
923
895
|
});
|
|
924
|
-
const reqOpts =
|
|
896
|
+
const reqOpts = deleteParticipant(payload);
|
|
925
897
|
sideEffects?.onSiteCall?.();
|
|
926
898
|
try {
|
|
927
899
|
const result = await httpClient.request(reqOpts);
|
|
928
900
|
sideEffects?.onSuccess?.(result);
|
|
929
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
930
901
|
} catch (err) {
|
|
931
902
|
const transformedError = (0, import_transform_error.transformError)(
|
|
932
903
|
err,
|
|
@@ -941,16 +912,90 @@ async function getParticipant2(participantId) {
|
|
|
941
912
|
throw transformedError;
|
|
942
913
|
}
|
|
943
914
|
}
|
|
944
|
-
async function
|
|
915
|
+
async function issueCertificate2(participantId) {
|
|
945
916
|
const { httpClient, sideEffects } = arguments[1];
|
|
946
917
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
947
918
|
participantId
|
|
948
919
|
});
|
|
949
|
-
const reqOpts =
|
|
920
|
+
const reqOpts = issueCertificate(payload);
|
|
950
921
|
sideEffects?.onSiteCall?.();
|
|
951
922
|
try {
|
|
952
923
|
const result = await httpClient.request(reqOpts);
|
|
953
924
|
sideEffects?.onSuccess?.(result);
|
|
925
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
926
|
+
} catch (err) {
|
|
927
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
928
|
+
err,
|
|
929
|
+
{
|
|
930
|
+
spreadPathsToArguments: {},
|
|
931
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
932
|
+
singleArgumentUnchanged: false
|
|
933
|
+
},
|
|
934
|
+
["participantId"]
|
|
935
|
+
);
|
|
936
|
+
sideEffects?.onError?.(err);
|
|
937
|
+
throw transformedError;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
async function getCompletionStats2(programId) {
|
|
941
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
942
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
943
|
+
programId
|
|
944
|
+
});
|
|
945
|
+
const reqOpts = getCompletionStats(payload);
|
|
946
|
+
sideEffects?.onSiteCall?.();
|
|
947
|
+
try {
|
|
948
|
+
const result = await httpClient.request(reqOpts);
|
|
949
|
+
sideEffects?.onSuccess?.(result);
|
|
950
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
951
|
+
} catch (err) {
|
|
952
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
953
|
+
err,
|
|
954
|
+
{
|
|
955
|
+
spreadPathsToArguments: {},
|
|
956
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
957
|
+
singleArgumentUnchanged: false
|
|
958
|
+
},
|
|
959
|
+
["programId"]
|
|
960
|
+
);
|
|
961
|
+
sideEffects?.onError?.(err);
|
|
962
|
+
throw transformedError;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
async function getPremiumStats2() {
|
|
966
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
967
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
968
|
+
const reqOpts = getPremiumStats(payload);
|
|
969
|
+
sideEffects?.onSiteCall?.();
|
|
970
|
+
try {
|
|
971
|
+
const result = await httpClient.request(reqOpts);
|
|
972
|
+
sideEffects?.onSuccess?.(result);
|
|
973
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
974
|
+
} catch (err) {
|
|
975
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
976
|
+
err,
|
|
977
|
+
{
|
|
978
|
+
spreadPathsToArguments: {},
|
|
979
|
+
explicitPathsToArguments: {},
|
|
980
|
+
singleArgumentUnchanged: false
|
|
981
|
+
},
|
|
982
|
+
[]
|
|
983
|
+
);
|
|
984
|
+
sideEffects?.onError?.(err);
|
|
985
|
+
throw transformedError;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
async function getParticipant2(participantId) {
|
|
989
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
990
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
991
|
+
participantId
|
|
992
|
+
});
|
|
993
|
+
const reqOpts = getParticipant(payload);
|
|
994
|
+
sideEffects?.onSiteCall?.();
|
|
995
|
+
try {
|
|
996
|
+
const result = await httpClient.request(reqOpts);
|
|
997
|
+
sideEffects?.onSuccess?.(result);
|
|
998
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
954
999
|
} catch (err) {
|
|
955
1000
|
const transformedError = (0, import_transform_error.transformError)(
|
|
956
1001
|
err,
|
|
@@ -1010,37 +1055,10 @@ function queryParticipants2() {
|
|
|
1010
1055
|
transformationPaths: {}
|
|
1011
1056
|
});
|
|
1012
1057
|
}
|
|
1013
|
-
async function
|
|
1014
|
-
const { httpClient, sideEffects } = arguments[
|
|
1015
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1016
|
-
const reqOpts =
|
|
1017
|
-
sideEffects?.onSiteCall?.();
|
|
1018
|
-
try {
|
|
1019
|
-
const result = await httpClient.request(reqOpts);
|
|
1020
|
-
sideEffects?.onSuccess?.(result);
|
|
1021
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1022
|
-
} catch (err) {
|
|
1023
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1024
|
-
err,
|
|
1025
|
-
{
|
|
1026
|
-
spreadPathsToArguments: {},
|
|
1027
|
-
explicitPathsToArguments: {},
|
|
1028
|
-
singleArgumentUnchanged: false
|
|
1029
|
-
},
|
|
1030
|
-
[]
|
|
1031
|
-
);
|
|
1032
|
-
sideEffects?.onError?.(err);
|
|
1033
|
-
throw transformedError;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
async function applyCoupon2(identifiers, orderId) {
|
|
1037
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1038
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1039
|
-
participantId: identifiers?.participantId,
|
|
1040
|
-
couponCode: identifiers?.couponCode,
|
|
1041
|
-
orderId
|
|
1042
|
-
});
|
|
1043
|
-
const reqOpts = applyCoupon(payload);
|
|
1058
|
+
async function typedQueryParticipants(query) {
|
|
1059
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1060
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
1061
|
+
const reqOpts = queryParticipants(payload);
|
|
1044
1062
|
sideEffects?.onSiteCall?.();
|
|
1045
1063
|
try {
|
|
1046
1064
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1051,27 +1069,19 @@ async function applyCoupon2(identifiers, orderId) {
|
|
|
1051
1069
|
err,
|
|
1052
1070
|
{
|
|
1053
1071
|
spreadPathsToArguments: {},
|
|
1054
|
-
explicitPathsToArguments: {
|
|
1055
|
-
participantId: "$[0].participantId",
|
|
1056
|
-
couponCode: "$[0].couponCode",
|
|
1057
|
-
orderId: "$[1]"
|
|
1058
|
-
},
|
|
1072
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1059
1073
|
singleArgumentUnchanged: false
|
|
1060
1074
|
},
|
|
1061
|
-
["
|
|
1075
|
+
["query"]
|
|
1062
1076
|
);
|
|
1063
1077
|
sideEffects?.onError?.(err);
|
|
1064
1078
|
throw transformedError;
|
|
1065
1079
|
}
|
|
1066
1080
|
}
|
|
1067
|
-
async function
|
|
1068
|
-
const { httpClient, sideEffects } = arguments[
|
|
1069
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1070
|
-
|
|
1071
|
-
couponId: identifiers?.couponId,
|
|
1072
|
-
orderId
|
|
1073
|
-
});
|
|
1074
|
-
const reqOpts = revertCoupon(payload);
|
|
1081
|
+
async function getAccessStatus2() {
|
|
1082
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1083
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1084
|
+
const reqOpts = getAccessStatus(payload);
|
|
1075
1085
|
sideEffects?.onSiteCall?.();
|
|
1076
1086
|
try {
|
|
1077
1087
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1082,14 +1092,10 @@ async function revertCoupon2(identifiers, orderId) {
|
|
|
1082
1092
|
err,
|
|
1083
1093
|
{
|
|
1084
1094
|
spreadPathsToArguments: {},
|
|
1085
|
-
explicitPathsToArguments: {
|
|
1086
|
-
participantId: "$[0].participantId",
|
|
1087
|
-
couponId: "$[0].couponId",
|
|
1088
|
-
orderId: "$[1]"
|
|
1089
|
-
},
|
|
1095
|
+
explicitPathsToArguments: {},
|
|
1090
1096
|
singleArgumentUnchanged: false
|
|
1091
1097
|
},
|
|
1092
|
-
[
|
|
1098
|
+
[]
|
|
1093
1099
|
);
|
|
1094
1100
|
sideEffects?.onError?.(err);
|
|
1095
1101
|
throw transformedError;
|
|
@@ -1186,35 +1192,6 @@ async function bulkAddToProgram2(programId, options) {
|
|
|
1186
1192
|
throw transformedError;
|
|
1187
1193
|
}
|
|
1188
1194
|
}
|
|
1189
|
-
async function bulkAddAllToProgram2(programId, options) {
|
|
1190
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1191
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1192
|
-
programId,
|
|
1193
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
1194
|
-
});
|
|
1195
|
-
const reqOpts = bulkAddAllToProgram(payload);
|
|
1196
|
-
sideEffects?.onSiteCall?.();
|
|
1197
|
-
try {
|
|
1198
|
-
const result = await httpClient.request(reqOpts);
|
|
1199
|
-
sideEffects?.onSuccess?.(result);
|
|
1200
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1201
|
-
} catch (err) {
|
|
1202
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1203
|
-
err,
|
|
1204
|
-
{
|
|
1205
|
-
spreadPathsToArguments: {},
|
|
1206
|
-
explicitPathsToArguments: {
|
|
1207
|
-
programId: "$[0]",
|
|
1208
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1209
|
-
},
|
|
1210
|
-
singleArgumentUnchanged: false
|
|
1211
|
-
},
|
|
1212
|
-
["programId", "options"]
|
|
1213
|
-
);
|
|
1214
|
-
sideEffects?.onError?.(err);
|
|
1215
|
-
throw transformedError;
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
1195
|
async function bulkApproveParticipant2(participantIds, options) {
|
|
1219
1196
|
const { httpClient, sideEffects } = arguments[2];
|
|
1220
1197
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1275,103 +1252,6 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
1275
1252
|
throw transformedError;
|
|
1276
1253
|
}
|
|
1277
1254
|
}
|
|
1278
|
-
async function deleteParticipant2(participantId) {
|
|
1279
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1280
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1281
|
-
participantId
|
|
1282
|
-
});
|
|
1283
|
-
const reqOpts = deleteParticipant(payload);
|
|
1284
|
-
sideEffects?.onSiteCall?.();
|
|
1285
|
-
try {
|
|
1286
|
-
const result = await httpClient.request(reqOpts);
|
|
1287
|
-
sideEffects?.onSuccess?.(result);
|
|
1288
|
-
} catch (err) {
|
|
1289
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1290
|
-
err,
|
|
1291
|
-
{
|
|
1292
|
-
spreadPathsToArguments: {},
|
|
1293
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1294
|
-
singleArgumentUnchanged: false
|
|
1295
|
-
},
|
|
1296
|
-
["participantId"]
|
|
1297
|
-
);
|
|
1298
|
-
sideEffects?.onError?.(err);
|
|
1299
|
-
throw transformedError;
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
async function issueCertificate2(participantId) {
|
|
1303
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1304
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1305
|
-
participantId
|
|
1306
|
-
});
|
|
1307
|
-
const reqOpts = issueCertificate(payload);
|
|
1308
|
-
sideEffects?.onSiteCall?.();
|
|
1309
|
-
try {
|
|
1310
|
-
const result = await httpClient.request(reqOpts);
|
|
1311
|
-
sideEffects?.onSuccess?.(result);
|
|
1312
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1313
|
-
} catch (err) {
|
|
1314
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1315
|
-
err,
|
|
1316
|
-
{
|
|
1317
|
-
spreadPathsToArguments: {},
|
|
1318
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1319
|
-
singleArgumentUnchanged: false
|
|
1320
|
-
},
|
|
1321
|
-
["participantId"]
|
|
1322
|
-
);
|
|
1323
|
-
sideEffects?.onError?.(err);
|
|
1324
|
-
throw transformedError;
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
async function getCompletionStats2(programId) {
|
|
1328
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1329
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1330
|
-
programId
|
|
1331
|
-
});
|
|
1332
|
-
const reqOpts = getCompletionStats(payload);
|
|
1333
|
-
sideEffects?.onSiteCall?.();
|
|
1334
|
-
try {
|
|
1335
|
-
const result = await httpClient.request(reqOpts);
|
|
1336
|
-
sideEffects?.onSuccess?.(result);
|
|
1337
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1338
|
-
} catch (err) {
|
|
1339
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1340
|
-
err,
|
|
1341
|
-
{
|
|
1342
|
-
spreadPathsToArguments: {},
|
|
1343
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1344
|
-
singleArgumentUnchanged: false
|
|
1345
|
-
},
|
|
1346
|
-
["programId"]
|
|
1347
|
-
);
|
|
1348
|
-
sideEffects?.onError?.(err);
|
|
1349
|
-
throw transformedError;
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
async function getPremiumStats2() {
|
|
1353
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1354
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1355
|
-
const reqOpts = getPremiumStats(payload);
|
|
1356
|
-
sideEffects?.onSiteCall?.();
|
|
1357
|
-
try {
|
|
1358
|
-
const result = await httpClient.request(reqOpts);
|
|
1359
|
-
sideEffects?.onSuccess?.(result);
|
|
1360
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1361
|
-
} catch (err) {
|
|
1362
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1363
|
-
err,
|
|
1364
|
-
{
|
|
1365
|
-
spreadPathsToArguments: {},
|
|
1366
|
-
explicitPathsToArguments: {},
|
|
1367
|
-
singleArgumentUnchanged: false
|
|
1368
|
-
},
|
|
1369
|
-
[]
|
|
1370
|
-
);
|
|
1371
|
-
sideEffects?.onError?.(err);
|
|
1372
|
-
throw transformedError;
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
1255
|
async function exportParticipantsStats2(programId) {
|
|
1376
1256
|
const { httpClient, sideEffects } = arguments[1];
|
|
1377
1257
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1400,27 +1280,18 @@ async function exportParticipantsStats2(programId) {
|
|
|
1400
1280
|
0 && (module.exports = {
|
|
1401
1281
|
BenefitType,
|
|
1402
1282
|
Event,
|
|
1403
|
-
EventType,
|
|
1404
|
-
Initiator,
|
|
1405
1283
|
JoinPath,
|
|
1406
|
-
OrderItemCategory,
|
|
1407
|
-
RefundStatus,
|
|
1408
|
-
RemovalReason,
|
|
1409
|
-
ScheduledActionType,
|
|
1410
1284
|
SortOrder,
|
|
1411
1285
|
State,
|
|
1412
|
-
Status,
|
|
1413
|
-
SubdivisionType,
|
|
1414
|
-
TransactionStatus,
|
|
1415
|
-
VatType,
|
|
1416
1286
|
WebhookIdentityType,
|
|
1417
|
-
applyCoupon,
|
|
1418
1287
|
bulkAddAllToProgram,
|
|
1419
1288
|
bulkAddToProgram,
|
|
1420
1289
|
bulkApproveAllParticipant,
|
|
1421
1290
|
bulkApproveParticipant,
|
|
1291
|
+
bulkCreateParticipant,
|
|
1422
1292
|
bulkInviteAllToProgram,
|
|
1423
1293
|
bulkInviteToProgram,
|
|
1294
|
+
createParticipant,
|
|
1424
1295
|
deleteParticipant,
|
|
1425
1296
|
exportParticipantsStats,
|
|
1426
1297
|
getAccessStatus,
|
|
@@ -1428,9 +1299,7 @@ async function exportParticipantsStats2(programId) {
|
|
|
1428
1299
|
getParticipant,
|
|
1429
1300
|
getPremiumStats,
|
|
1430
1301
|
issueCertificate,
|
|
1431
|
-
joinProgram,
|
|
1432
|
-
leaveProgram,
|
|
1433
1302
|
queryParticipants,
|
|
1434
|
-
|
|
1303
|
+
typedQueryParticipants
|
|
1435
1304
|
});
|
|
1436
1305
|
//# sourceMappingURL=index.typings.js.map
|