@wix/auto_sdk_online-programs_participants 1.0.3 → 1.0.5
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 +70 -99
- package/build/cjs/index.js +447 -705
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +291 -911
- package/build/cjs/index.typings.js +358 -514
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +213 -752
- package/build/cjs/meta.js +277 -418
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +70 -99
- package/build/es/index.mjs +440 -682
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +291 -911
- package/build/es/index.typings.mjs +379 -523
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +213 -752
- package/build/es/meta.mjs +261 -390
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +70 -99
- package/build/internal/cjs/index.js +447 -705
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +291 -911
- package/build/internal/cjs/index.typings.js +358 -514
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +213 -752
- package/build/internal/cjs/meta.js +277 -418
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +70 -99
- package/build/internal/es/index.mjs +440 -682
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +291 -911
- package/build/internal/es/index.typings.mjs +379 -523
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +213 -752
- package/build/internal/es/meta.mjs +261 -390
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -22,27 +22,18 @@ var meta_exports = {};
|
|
|
22
22
|
__export(meta_exports, {
|
|
23
23
|
BenefitTypeOriginal: () => BenefitType,
|
|
24
24
|
EventOriginal: () => Event,
|
|
25
|
-
EventTypeOriginal: () => EventType,
|
|
26
|
-
InitiatorOriginal: () => Initiator,
|
|
27
25
|
JoinPathOriginal: () => JoinPath,
|
|
28
|
-
OrderItemCategoryOriginal: () => OrderItemCategory,
|
|
29
|
-
RefundStatusOriginal: () => RefundStatus,
|
|
30
|
-
RemovalReasonOriginal: () => RemovalReason,
|
|
31
|
-
ScheduledActionTypeOriginal: () => ScheduledActionType,
|
|
32
26
|
SortOrderOriginal: () => SortOrder,
|
|
33
27
|
StateOriginal: () => State,
|
|
34
|
-
StatusOriginal: () => Status,
|
|
35
|
-
SubdivisionTypeOriginal: () => SubdivisionType,
|
|
36
|
-
TransactionStatusOriginal: () => TransactionStatus,
|
|
37
|
-
VatTypeOriginal: () => VatType,
|
|
38
28
|
WebhookIdentityTypeOriginal: () => 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,17 +41,16 @@ __export(meta_exports, {
|
|
|
50
41
|
getParticipant: () => getParticipant2,
|
|
51
42
|
getPremiumStats: () => getPremiumStats2,
|
|
52
43
|
issueCertificate: () => issueCertificate2,
|
|
53
|
-
|
|
54
|
-
leaveProgram: () => leaveProgram2,
|
|
55
|
-
queryParticipants: () => queryParticipants2,
|
|
56
|
-
revertCoupon: () => revertCoupon2
|
|
44
|
+
queryParticipants: () => queryParticipants2
|
|
57
45
|
});
|
|
58
46
|
module.exports = __toCommonJS(meta_exports);
|
|
59
47
|
|
|
60
48
|
// src/online-programs-v3-participant-participants.http.ts
|
|
61
49
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
62
50
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
51
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
63
52
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
53
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
64
54
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
65
55
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
66
56
|
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
@@ -259,88 +249,124 @@ function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
|
259
249
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
260
250
|
}
|
|
261
251
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
262
|
-
function
|
|
263
|
-
function
|
|
252
|
+
function createParticipant(payload) {
|
|
253
|
+
function __createParticipant({ host }) {
|
|
254
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
255
|
+
{
|
|
256
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
257
|
+
paths: [
|
|
258
|
+
{ path: "participant.createdDate" },
|
|
259
|
+
{ path: "participant.updatedDate" },
|
|
260
|
+
{ path: "participant.lastActivityDate" },
|
|
261
|
+
{ path: "participant.certificate.issuedDate" },
|
|
262
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
267
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
268
|
+
}
|
|
269
|
+
]);
|
|
264
270
|
const metadata = {
|
|
265
271
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
266
272
|
method: "POST",
|
|
267
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
273
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
268
274
|
packageName: PACKAGE_NAME,
|
|
269
275
|
migrationOptions: {
|
|
270
276
|
optInTransformResponse: true
|
|
271
277
|
},
|
|
272
278
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
273
|
-
protoPath: "/v3/participants
|
|
274
|
-
data:
|
|
279
|
+
protoPath: "/v3/participants",
|
|
280
|
+
data: serializedData,
|
|
275
281
|
host
|
|
276
282
|
}),
|
|
277
|
-
data:
|
|
283
|
+
data: serializedData,
|
|
278
284
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
279
285
|
{
|
|
280
|
-
transformFn:
|
|
286
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
281
287
|
paths: [
|
|
282
288
|
{ path: "participant.createdDate" },
|
|
283
289
|
{ path: "participant.updatedDate" },
|
|
284
|
-
{ path: "participant.
|
|
290
|
+
{ path: "participant.lastActivityDate" },
|
|
291
|
+
{ path: "participant.certificate.issuedDate" },
|
|
292
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
285
293
|
]
|
|
286
294
|
},
|
|
287
295
|
{
|
|
288
|
-
transformFn:
|
|
296
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
289
297
|
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
290
298
|
}
|
|
291
299
|
])
|
|
292
300
|
};
|
|
293
301
|
return metadata;
|
|
294
302
|
}
|
|
295
|
-
return
|
|
303
|
+
return __createParticipant;
|
|
296
304
|
}
|
|
297
|
-
function
|
|
298
|
-
function
|
|
305
|
+
function bulkCreateParticipant(payload) {
|
|
306
|
+
function __bulkCreateParticipant({ host }) {
|
|
307
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
308
|
+
{
|
|
309
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
310
|
+
paths: [
|
|
311
|
+
{ path: "participants.createdDate" },
|
|
312
|
+
{ path: "participants.updatedDate" },
|
|
313
|
+
{ path: "participants.lastActivityDate" },
|
|
314
|
+
{ path: "participants.certificate.issuedDate" },
|
|
315
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
320
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
321
|
+
}
|
|
322
|
+
]);
|
|
299
323
|
const metadata = {
|
|
300
324
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
301
|
-
method: "
|
|
302
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
325
|
+
method: "POST",
|
|
326
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
303
327
|
packageName: PACKAGE_NAME,
|
|
304
328
|
migrationOptions: {
|
|
305
329
|
optInTransformResponse: true
|
|
306
330
|
},
|
|
307
331
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
308
|
-
protoPath: "/v3/participants/
|
|
309
|
-
data:
|
|
332
|
+
protoPath: "/v3/bulk/participants/create",
|
|
333
|
+
data: serializedData,
|
|
310
334
|
host
|
|
311
335
|
}),
|
|
312
|
-
|
|
336
|
+
data: serializedData,
|
|
313
337
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
314
338
|
{
|
|
315
|
-
transformFn:
|
|
339
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
316
340
|
paths: [
|
|
317
|
-
{ path: "
|
|
318
|
-
{ path: "
|
|
319
|
-
{ path: "
|
|
341
|
+
{ path: "results.item.createdDate" },
|
|
342
|
+
{ path: "results.item.updatedDate" },
|
|
343
|
+
{ path: "results.item.lastActivityDate" },
|
|
344
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
345
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
320
346
|
]
|
|
321
347
|
},
|
|
322
348
|
{
|
|
323
|
-
transformFn:
|
|
324
|
-
paths: [{ path: "
|
|
349
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
350
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
325
351
|
}
|
|
326
352
|
])
|
|
327
353
|
};
|
|
328
354
|
return metadata;
|
|
329
355
|
}
|
|
330
|
-
return
|
|
356
|
+
return __bulkCreateParticipant;
|
|
331
357
|
}
|
|
332
|
-
function
|
|
333
|
-
function
|
|
358
|
+
function bulkAddAllToProgram(payload) {
|
|
359
|
+
function __bulkAddAllToProgram({ host }) {
|
|
334
360
|
const metadata = {
|
|
335
361
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
336
362
|
method: "POST",
|
|
337
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
363
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
338
364
|
packageName: PACKAGE_NAME,
|
|
339
365
|
migrationOptions: {
|
|
340
366
|
optInTransformResponse: true
|
|
341
367
|
},
|
|
342
368
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
343
|
-
protoPath: "/v3/participants/
|
|
369
|
+
protoPath: "/v3/bulk/participants/add-all",
|
|
344
370
|
data: payload,
|
|
345
371
|
host
|
|
346
372
|
}),
|
|
@@ -348,55 +374,105 @@ function leaveProgram(payload) {
|
|
|
348
374
|
};
|
|
349
375
|
return metadata;
|
|
350
376
|
}
|
|
351
|
-
return
|
|
377
|
+
return __bulkAddAllToProgram;
|
|
352
378
|
}
|
|
353
|
-
function
|
|
354
|
-
function
|
|
379
|
+
function deleteParticipant(payload) {
|
|
380
|
+
function __deleteParticipant({ host }) {
|
|
381
|
+
const metadata = {
|
|
382
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
383
|
+
method: "DELETE",
|
|
384
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
385
|
+
packageName: PACKAGE_NAME,
|
|
386
|
+
migrationOptions: {
|
|
387
|
+
optInTransformResponse: true
|
|
388
|
+
},
|
|
389
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
390
|
+
protoPath: "/v3/participants/{participantId}",
|
|
391
|
+
data: payload,
|
|
392
|
+
host
|
|
393
|
+
}),
|
|
394
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
395
|
+
};
|
|
396
|
+
return metadata;
|
|
397
|
+
}
|
|
398
|
+
return __deleteParticipant;
|
|
399
|
+
}
|
|
400
|
+
function issueCertificate(payload) {
|
|
401
|
+
function __issueCertificate({ host }) {
|
|
355
402
|
const metadata = {
|
|
356
403
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
357
404
|
method: "POST",
|
|
358
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
405
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
359
406
|
packageName: PACKAGE_NAME,
|
|
360
407
|
migrationOptions: {
|
|
361
408
|
optInTransformResponse: true
|
|
362
409
|
},
|
|
363
410
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
364
|
-
protoPath: "/v3/participants/
|
|
411
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
365
412
|
data: payload,
|
|
366
413
|
host
|
|
367
414
|
}),
|
|
368
415
|
data: payload,
|
|
369
416
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
370
417
|
{
|
|
371
|
-
transformFn:
|
|
418
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
372
419
|
paths: [
|
|
373
|
-
{ path: "
|
|
374
|
-
{ path: "
|
|
375
|
-
{ path: "
|
|
420
|
+
{ path: "participant.createdDate" },
|
|
421
|
+
{ path: "participant.updatedDate" },
|
|
422
|
+
{ path: "participant.lastActivityDate" },
|
|
423
|
+
{ path: "participant.certificate.issuedDate" },
|
|
424
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
376
425
|
]
|
|
377
426
|
},
|
|
378
427
|
{
|
|
379
|
-
transformFn:
|
|
380
|
-
paths: [{ path: "
|
|
428
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
429
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
381
430
|
}
|
|
382
431
|
])
|
|
383
432
|
};
|
|
384
433
|
return metadata;
|
|
385
434
|
}
|
|
386
|
-
return
|
|
435
|
+
return __issueCertificate;
|
|
387
436
|
}
|
|
388
|
-
function
|
|
389
|
-
function
|
|
437
|
+
function getCompletionStats(payload) {
|
|
438
|
+
function __getCompletionStats({ host }) {
|
|
390
439
|
const metadata = {
|
|
391
440
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
392
441
|
method: "GET",
|
|
393
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
442
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
394
443
|
packageName: PACKAGE_NAME,
|
|
395
444
|
migrationOptions: {
|
|
396
445
|
optInTransformResponse: true
|
|
397
446
|
},
|
|
398
447
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
399
|
-
protoPath: "/v3/
|
|
448
|
+
protoPath: "/v3/stats/completion/{programId}",
|
|
449
|
+
data: payload,
|
|
450
|
+
host
|
|
451
|
+
}),
|
|
452
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
453
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
454
|
+
{
|
|
455
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
456
|
+
paths: [{ path: "completionRate" }]
|
|
457
|
+
}
|
|
458
|
+
])
|
|
459
|
+
};
|
|
460
|
+
return metadata;
|
|
461
|
+
}
|
|
462
|
+
return __getCompletionStats;
|
|
463
|
+
}
|
|
464
|
+
function getPremiumStats(payload) {
|
|
465
|
+
function __getPremiumStats({ host }) {
|
|
466
|
+
const metadata = {
|
|
467
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
468
|
+
method: "GET",
|
|
469
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
470
|
+
packageName: PACKAGE_NAME,
|
|
471
|
+
migrationOptions: {
|
|
472
|
+
optInTransformResponse: true
|
|
473
|
+
},
|
|
474
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
475
|
+
protoPath: "/v3/stats/premium",
|
|
400
476
|
data: payload,
|
|
401
477
|
host
|
|
402
478
|
}),
|
|
@@ -404,65 +480,102 @@ function getAccessStatus(payload) {
|
|
|
404
480
|
};
|
|
405
481
|
return metadata;
|
|
406
482
|
}
|
|
407
|
-
return
|
|
483
|
+
return __getPremiumStats;
|
|
408
484
|
}
|
|
409
|
-
function
|
|
410
|
-
function
|
|
485
|
+
function getParticipant(payload) {
|
|
486
|
+
function __getParticipant({ host }) {
|
|
411
487
|
const metadata = {
|
|
412
488
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
413
|
-
method: "
|
|
414
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
489
|
+
method: "GET",
|
|
490
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
415
491
|
packageName: PACKAGE_NAME,
|
|
416
492
|
migrationOptions: {
|
|
417
493
|
optInTransformResponse: true
|
|
418
494
|
},
|
|
419
495
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
420
|
-
protoPath: "/v3/participants/{participantId}
|
|
496
|
+
protoPath: "/v3/participants/{participantId}",
|
|
421
497
|
data: payload,
|
|
422
498
|
host
|
|
423
499
|
}),
|
|
424
|
-
|
|
500
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
425
501
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
426
502
|
{
|
|
427
|
-
transformFn:
|
|
503
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
428
504
|
paths: [
|
|
429
|
-
{ path: "
|
|
430
|
-
{ path: "
|
|
431
|
-
{ path: "
|
|
505
|
+
{ path: "participant.createdDate" },
|
|
506
|
+
{ path: "participant.updatedDate" },
|
|
507
|
+
{ path: "participant.lastActivityDate" },
|
|
508
|
+
{ path: "participant.certificate.issuedDate" },
|
|
509
|
+
{ path: "participant.joinedInfo.joinedAt" }
|
|
432
510
|
]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
514
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
433
515
|
}
|
|
434
516
|
])
|
|
435
517
|
};
|
|
436
518
|
return metadata;
|
|
437
519
|
}
|
|
438
|
-
return
|
|
520
|
+
return __getParticipant;
|
|
439
521
|
}
|
|
440
|
-
function
|
|
441
|
-
function
|
|
522
|
+
function queryParticipants(payload) {
|
|
523
|
+
function __queryParticipants({ host }) {
|
|
442
524
|
const metadata = {
|
|
443
525
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
444
526
|
method: "POST",
|
|
445
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.
|
|
527
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
446
528
|
packageName: PACKAGE_NAME,
|
|
447
529
|
migrationOptions: {
|
|
448
530
|
optInTransformResponse: true
|
|
449
531
|
},
|
|
450
532
|
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
451
|
-
protoPath: "/v3/participants/
|
|
533
|
+
protoPath: "/v3/participants/query",
|
|
452
534
|
data: payload,
|
|
453
535
|
host
|
|
454
536
|
}),
|
|
455
537
|
data: payload,
|
|
456
538
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
457
539
|
{
|
|
458
|
-
transformFn:
|
|
459
|
-
paths: [
|
|
540
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
541
|
+
paths: [
|
|
542
|
+
{ path: "participants.createdDate" },
|
|
543
|
+
{ path: "participants.updatedDate" },
|
|
544
|
+
{ path: "participants.lastActivityDate" },
|
|
545
|
+
{ path: "participants.certificate.issuedDate" },
|
|
546
|
+
{ path: "participants.joinedInfo.joinedAt" }
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
551
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
460
552
|
}
|
|
461
553
|
])
|
|
462
554
|
};
|
|
463
555
|
return metadata;
|
|
464
556
|
}
|
|
465
|
-
return
|
|
557
|
+
return __queryParticipants;
|
|
558
|
+
}
|
|
559
|
+
function getAccessStatus(payload) {
|
|
560
|
+
function __getAccessStatus({ host }) {
|
|
561
|
+
const metadata = {
|
|
562
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
563
|
+
method: "GET",
|
|
564
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
565
|
+
packageName: PACKAGE_NAME,
|
|
566
|
+
migrationOptions: {
|
|
567
|
+
optInTransformResponse: true
|
|
568
|
+
},
|
|
569
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
570
|
+
protoPath: "/v3/participants/access",
|
|
571
|
+
data: payload,
|
|
572
|
+
host
|
|
573
|
+
}),
|
|
574
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
575
|
+
};
|
|
576
|
+
return metadata;
|
|
577
|
+
}
|
|
578
|
+
return __getAccessStatus;
|
|
466
579
|
}
|
|
467
580
|
function bulkInviteToProgram(payload) {
|
|
468
581
|
function __bulkInviteToProgram({ host }) {
|
|
@@ -482,15 +595,17 @@ function bulkInviteToProgram(payload) {
|
|
|
482
595
|
data: payload,
|
|
483
596
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
484
597
|
{
|
|
485
|
-
transformFn:
|
|
598
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
486
599
|
paths: [
|
|
487
600
|
{ path: "results.item.createdDate" },
|
|
488
601
|
{ path: "results.item.updatedDate" },
|
|
489
|
-
{ path: "results.item.
|
|
602
|
+
{ path: "results.item.lastActivityDate" },
|
|
603
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
604
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
490
605
|
]
|
|
491
606
|
},
|
|
492
607
|
{
|
|
493
|
-
transformFn:
|
|
608
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
494
609
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
495
610
|
}
|
|
496
611
|
])
|
|
@@ -538,15 +653,17 @@ function bulkAddToProgram(payload) {
|
|
|
538
653
|
data: payload,
|
|
539
654
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
540
655
|
{
|
|
541
|
-
transformFn:
|
|
656
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
542
657
|
paths: [
|
|
543
658
|
{ path: "results.item.createdDate" },
|
|
544
659
|
{ path: "results.item.updatedDate" },
|
|
545
|
-
{ path: "results.item.
|
|
660
|
+
{ path: "results.item.lastActivityDate" },
|
|
661
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
662
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
546
663
|
]
|
|
547
664
|
},
|
|
548
665
|
{
|
|
549
|
-
transformFn:
|
|
666
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
550
667
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
551
668
|
}
|
|
552
669
|
])
|
|
@@ -555,27 +672,6 @@ function bulkAddToProgram(payload) {
|
|
|
555
672
|
}
|
|
556
673
|
return __bulkAddToProgram;
|
|
557
674
|
}
|
|
558
|
-
function bulkAddAllToProgram(payload) {
|
|
559
|
-
function __bulkAddAllToProgram({ host }) {
|
|
560
|
-
const metadata = {
|
|
561
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
562
|
-
method: "POST",
|
|
563
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
|
|
564
|
-
packageName: PACKAGE_NAME,
|
|
565
|
-
migrationOptions: {
|
|
566
|
-
optInTransformResponse: true
|
|
567
|
-
},
|
|
568
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
569
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
570
|
-
data: payload,
|
|
571
|
-
host
|
|
572
|
-
}),
|
|
573
|
-
data: payload
|
|
574
|
-
};
|
|
575
|
-
return metadata;
|
|
576
|
-
}
|
|
577
|
-
return __bulkAddAllToProgram;
|
|
578
|
-
}
|
|
579
675
|
function bulkApproveParticipant(payload) {
|
|
580
676
|
function __bulkApproveParticipant({ host }) {
|
|
581
677
|
const metadata = {
|
|
@@ -594,15 +690,17 @@ function bulkApproveParticipant(payload) {
|
|
|
594
690
|
data: payload,
|
|
595
691
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
596
692
|
{
|
|
597
|
-
transformFn:
|
|
693
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
598
694
|
paths: [
|
|
599
695
|
{ path: "results.item.createdDate" },
|
|
600
696
|
{ path: "results.item.updatedDate" },
|
|
601
|
-
{ path: "results.item.
|
|
697
|
+
{ path: "results.item.lastActivityDate" },
|
|
698
|
+
{ path: "results.item.certificate.issuedDate" },
|
|
699
|
+
{ path: "results.item.joinedInfo.joinedAt" }
|
|
602
700
|
]
|
|
603
701
|
},
|
|
604
702
|
{
|
|
605
|
-
transformFn:
|
|
703
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
606
704
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
607
705
|
}
|
|
608
706
|
])
|
|
@@ -632,110 +730,6 @@ function bulkApproveAllParticipant(payload) {
|
|
|
632
730
|
}
|
|
633
731
|
return __bulkApproveAllParticipant;
|
|
634
732
|
}
|
|
635
|
-
function deleteParticipant(payload) {
|
|
636
|
-
function __deleteParticipant({ host }) {
|
|
637
|
-
const metadata = {
|
|
638
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
639
|
-
method: "DELETE",
|
|
640
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
|
|
641
|
-
packageName: PACKAGE_NAME,
|
|
642
|
-
migrationOptions: {
|
|
643
|
-
optInTransformResponse: true
|
|
644
|
-
},
|
|
645
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
646
|
-
protoPath: "/v3/participants/{participantId}",
|
|
647
|
-
data: payload,
|
|
648
|
-
host
|
|
649
|
-
}),
|
|
650
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
651
|
-
};
|
|
652
|
-
return metadata;
|
|
653
|
-
}
|
|
654
|
-
return __deleteParticipant;
|
|
655
|
-
}
|
|
656
|
-
function issueCertificate(payload) {
|
|
657
|
-
function __issueCertificate({ host }) {
|
|
658
|
-
const metadata = {
|
|
659
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
660
|
-
method: "POST",
|
|
661
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
|
|
662
|
-
packageName: PACKAGE_NAME,
|
|
663
|
-
migrationOptions: {
|
|
664
|
-
optInTransformResponse: true
|
|
665
|
-
},
|
|
666
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
667
|
-
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
668
|
-
data: payload,
|
|
669
|
-
host
|
|
670
|
-
}),
|
|
671
|
-
data: payload,
|
|
672
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
673
|
-
{
|
|
674
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
675
|
-
paths: [
|
|
676
|
-
{ path: "participant.createdDate" },
|
|
677
|
-
{ path: "participant.updatedDate" },
|
|
678
|
-
{ path: "participant.certificate.issuedDate" }
|
|
679
|
-
]
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
683
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
684
|
-
}
|
|
685
|
-
])
|
|
686
|
-
};
|
|
687
|
-
return metadata;
|
|
688
|
-
}
|
|
689
|
-
return __issueCertificate;
|
|
690
|
-
}
|
|
691
|
-
function getCompletionStats(payload) {
|
|
692
|
-
function __getCompletionStats({ host }) {
|
|
693
|
-
const metadata = {
|
|
694
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
695
|
-
method: "GET",
|
|
696
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
|
|
697
|
-
packageName: PACKAGE_NAME,
|
|
698
|
-
migrationOptions: {
|
|
699
|
-
optInTransformResponse: true
|
|
700
|
-
},
|
|
701
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
702
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
703
|
-
data: payload,
|
|
704
|
-
host
|
|
705
|
-
}),
|
|
706
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
707
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
708
|
-
{
|
|
709
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
710
|
-
paths: [{ path: "completionRate" }]
|
|
711
|
-
}
|
|
712
|
-
])
|
|
713
|
-
};
|
|
714
|
-
return metadata;
|
|
715
|
-
}
|
|
716
|
-
return __getCompletionStats;
|
|
717
|
-
}
|
|
718
|
-
function getPremiumStats(payload) {
|
|
719
|
-
function __getPremiumStats({ host }) {
|
|
720
|
-
const metadata = {
|
|
721
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
722
|
-
method: "GET",
|
|
723
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
|
|
724
|
-
packageName: PACKAGE_NAME,
|
|
725
|
-
migrationOptions: {
|
|
726
|
-
optInTransformResponse: true
|
|
727
|
-
},
|
|
728
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
729
|
-
protoPath: "/v3/stats/premium",
|
|
730
|
-
data: payload,
|
|
731
|
-
host
|
|
732
|
-
}),
|
|
733
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
734
|
-
};
|
|
735
|
-
return metadata;
|
|
736
|
-
}
|
|
737
|
-
return __getPremiumStats;
|
|
738
|
-
}
|
|
739
733
|
function exportParticipantsStats(payload) {
|
|
740
734
|
function __exportParticipantsStats({ host }) {
|
|
741
735
|
const metadata = {
|
|
@@ -770,101 +764,20 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
|
770
764
|
})(JoinPath || {});
|
|
771
765
|
var State = /* @__PURE__ */ ((State2) => {
|
|
772
766
|
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
773
|
-
State2["INVITED"] = "INVITED";
|
|
774
|
-
State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
|
|
775
|
-
State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
776
767
|
State2["JOINED"] = "JOINED";
|
|
777
768
|
State2["COMPLETED"] = "COMPLETED";
|
|
778
769
|
State2["FAILED"] = "FAILED";
|
|
779
770
|
State2["SUSPENDED"] = "SUSPENDED";
|
|
780
771
|
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
772
|
+
State2["REMOVED"] = "REMOVED";
|
|
773
|
+
State2["LEFT"] = "LEFT";
|
|
781
774
|
return State2;
|
|
782
775
|
})(State || {});
|
|
783
|
-
var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
|
|
784
|
-
RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
|
|
785
|
-
RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
|
|
786
|
-
RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
|
|
787
|
-
RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
|
|
788
|
-
return RemovalReason2;
|
|
789
|
-
})(RemovalReason || {});
|
|
790
776
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
791
777
|
SortOrder2["ASC"] = "ASC";
|
|
792
778
|
SortOrder2["DESC"] = "DESC";
|
|
793
779
|
return SortOrder2;
|
|
794
780
|
})(SortOrder || {});
|
|
795
|
-
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
796
|
-
EventType2["UNDEFINED"] = "UNDEFINED";
|
|
797
|
-
EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
|
|
798
|
-
EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
|
|
799
|
-
EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
|
|
800
|
-
EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
|
|
801
|
-
EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
|
|
802
|
-
return EventType2;
|
|
803
|
-
})(EventType || {});
|
|
804
|
-
var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
|
|
805
|
-
OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
|
|
806
|
-
OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
|
|
807
|
-
OrderItemCategory2["DIGITAL"] = "DIGITAL";
|
|
808
|
-
return OrderItemCategory2;
|
|
809
|
-
})(OrderItemCategory || {});
|
|
810
|
-
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
811
|
-
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
812
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
813
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
814
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
815
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
816
|
-
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
817
|
-
SubdivisionType2["COUNTRY"] = "COUNTRY";
|
|
818
|
-
return SubdivisionType2;
|
|
819
|
-
})(SubdivisionType || {});
|
|
820
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
821
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
822
|
-
VatType2["CPF"] = "CPF";
|
|
823
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
824
|
-
return VatType2;
|
|
825
|
-
})(VatType || {});
|
|
826
|
-
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
827
|
-
TransactionStatus2["UNDEFINED"] = "UNDEFINED";
|
|
828
|
-
TransactionStatus2["APPROVED"] = "APPROVED";
|
|
829
|
-
TransactionStatus2["PENDING"] = "PENDING";
|
|
830
|
-
TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
|
|
831
|
-
TransactionStatus2["CANCELED"] = "CANCELED";
|
|
832
|
-
TransactionStatus2["DECLINED"] = "DECLINED";
|
|
833
|
-
TransactionStatus2["REFUNDED"] = "REFUNDED";
|
|
834
|
-
TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
835
|
-
TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
|
|
836
|
-
TransactionStatus2["VOIDED"] = "VOIDED";
|
|
837
|
-
return TransactionStatus2;
|
|
838
|
-
})(TransactionStatus || {});
|
|
839
|
-
var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
|
|
840
|
-
ScheduledActionType2["VOID"] = "VOID";
|
|
841
|
-
ScheduledActionType2["CAPTURE"] = "CAPTURE";
|
|
842
|
-
return ScheduledActionType2;
|
|
843
|
-
})(ScheduledActionType || {});
|
|
844
|
-
var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
|
|
845
|
-
RefundStatus2["UNDEFINED"] = "UNDEFINED";
|
|
846
|
-
RefundStatus2["APPROVED"] = "APPROVED";
|
|
847
|
-
RefundStatus2["PENDING"] = "PENDING";
|
|
848
|
-
RefundStatus2["DECLINED"] = "DECLINED";
|
|
849
|
-
return RefundStatus2;
|
|
850
|
-
})(RefundStatus || {});
|
|
851
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
852
|
-
Status2["UNDEFINED"] = "UNDEFINED";
|
|
853
|
-
Status2["PENDING"] = "PENDING";
|
|
854
|
-
Status2["ACTIVE"] = "ACTIVE";
|
|
855
|
-
Status2["CANCELLED"] = "CANCELLED";
|
|
856
|
-
Status2["FINISHED"] = "FINISHED";
|
|
857
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
858
|
-
return Status2;
|
|
859
|
-
})(Status || {});
|
|
860
|
-
var Initiator = /* @__PURE__ */ ((Initiator2) => {
|
|
861
|
-
Initiator2["UNDEFINED"] = "UNDEFINED";
|
|
862
|
-
Initiator2["BUYER"] = "BUYER";
|
|
863
|
-
Initiator2["MERCHANT"] = "MERCHANT";
|
|
864
|
-
Initiator2["PAYMENT"] = "PAYMENT";
|
|
865
|
-
Initiator2["SETUP"] = "SETUP";
|
|
866
|
-
return Initiator2;
|
|
867
|
-
})(Initiator || {});
|
|
868
781
|
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
869
782
|
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
870
783
|
BenefitType2["LIMITED"] = "LIMITED";
|
|
@@ -887,9 +800,9 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
887
800
|
})(WebhookIdentityType || {});
|
|
888
801
|
|
|
889
802
|
// src/online-programs-v3-participant-participants.meta.ts
|
|
890
|
-
function
|
|
803
|
+
function createParticipant2() {
|
|
891
804
|
const payload = {};
|
|
892
|
-
const getRequestOptions =
|
|
805
|
+
const getRequestOptions = createParticipant(payload);
|
|
893
806
|
const getUrl = (context) => {
|
|
894
807
|
const { url } = getRequestOptions(context);
|
|
895
808
|
return url;
|
|
@@ -897,7 +810,7 @@ function joinProgram2() {
|
|
|
897
810
|
return {
|
|
898
811
|
getUrl,
|
|
899
812
|
httpMethod: "POST",
|
|
900
|
-
path: "/v3/participants
|
|
813
|
+
path: "/v3/participants",
|
|
901
814
|
pathParams: {},
|
|
902
815
|
__requestType: null,
|
|
903
816
|
__originalRequestType: null,
|
|
@@ -905,27 +818,9 @@ function joinProgram2() {
|
|
|
905
818
|
__originalResponseType: null
|
|
906
819
|
};
|
|
907
820
|
}
|
|
908
|
-
function
|
|
909
|
-
const payload = {
|
|
910
|
-
const getRequestOptions =
|
|
911
|
-
const getUrl = (context) => {
|
|
912
|
-
const { url } = getRequestOptions(context);
|
|
913
|
-
return url;
|
|
914
|
-
};
|
|
915
|
-
return {
|
|
916
|
-
getUrl,
|
|
917
|
-
httpMethod: "GET",
|
|
918
|
-
path: "/v3/participants/{participantId}",
|
|
919
|
-
pathParams: { participantId: "participantId" },
|
|
920
|
-
__requestType: null,
|
|
921
|
-
__originalRequestType: null,
|
|
922
|
-
__responseType: null,
|
|
923
|
-
__originalResponseType: null
|
|
924
|
-
};
|
|
925
|
-
}
|
|
926
|
-
function leaveProgram2() {
|
|
927
|
-
const payload = { participantId: ":participantId" };
|
|
928
|
-
const getRequestOptions = leaveProgram(payload);
|
|
821
|
+
function bulkCreateParticipant2() {
|
|
822
|
+
const payload = {};
|
|
823
|
+
const getRequestOptions = bulkCreateParticipant(payload);
|
|
929
824
|
const getUrl = (context) => {
|
|
930
825
|
const { url } = getRequestOptions(context);
|
|
931
826
|
return url;
|
|
@@ -933,17 +828,17 @@ function leaveProgram2() {
|
|
|
933
828
|
return {
|
|
934
829
|
getUrl,
|
|
935
830
|
httpMethod: "POST",
|
|
936
|
-
path: "/v3/participants/
|
|
937
|
-
pathParams: {
|
|
831
|
+
path: "/v3/bulk/participants/create",
|
|
832
|
+
pathParams: {},
|
|
938
833
|
__requestType: null,
|
|
939
834
|
__originalRequestType: null,
|
|
940
835
|
__responseType: null,
|
|
941
836
|
__originalResponseType: null
|
|
942
837
|
};
|
|
943
838
|
}
|
|
944
|
-
function
|
|
839
|
+
function bulkAddAllToProgram2() {
|
|
945
840
|
const payload = {};
|
|
946
|
-
const getRequestOptions =
|
|
841
|
+
const getRequestOptions = bulkAddAllToProgram(payload);
|
|
947
842
|
const getUrl = (context) => {
|
|
948
843
|
const { url } = getRequestOptions(context);
|
|
949
844
|
return url;
|
|
@@ -951,7 +846,7 @@ function queryParticipants2() {
|
|
|
951
846
|
return {
|
|
952
847
|
getUrl,
|
|
953
848
|
httpMethod: "POST",
|
|
954
|
-
path: "/v3/participants/
|
|
849
|
+
path: "/v3/bulk/participants/add-all",
|
|
955
850
|
pathParams: {},
|
|
956
851
|
__requestType: null,
|
|
957
852
|
__originalRequestType: null,
|
|
@@ -959,30 +854,27 @@ function queryParticipants2() {
|
|
|
959
854
|
__originalResponseType: null
|
|
960
855
|
};
|
|
961
856
|
}
|
|
962
|
-
function
|
|
963
|
-
const payload = {};
|
|
964
|
-
const getRequestOptions =
|
|
857
|
+
function deleteParticipant2() {
|
|
858
|
+
const payload = { participantId: ":participantId" };
|
|
859
|
+
const getRequestOptions = deleteParticipant(payload);
|
|
965
860
|
const getUrl = (context) => {
|
|
966
861
|
const { url } = getRequestOptions(context);
|
|
967
862
|
return url;
|
|
968
863
|
};
|
|
969
864
|
return {
|
|
970
865
|
getUrl,
|
|
971
|
-
httpMethod: "
|
|
972
|
-
path: "/v3/participants/
|
|
973
|
-
pathParams: {},
|
|
866
|
+
httpMethod: "DELETE",
|
|
867
|
+
path: "/v3/participants/{participantId}",
|
|
868
|
+
pathParams: { participantId: "participantId" },
|
|
974
869
|
__requestType: null,
|
|
975
870
|
__originalRequestType: null,
|
|
976
871
|
__responseType: null,
|
|
977
872
|
__originalResponseType: null
|
|
978
873
|
};
|
|
979
874
|
}
|
|
980
|
-
function
|
|
981
|
-
const payload = {
|
|
982
|
-
|
|
983
|
-
couponCode: ":couponCode"
|
|
984
|
-
};
|
|
985
|
-
const getRequestOptions = applyCoupon(payload);
|
|
875
|
+
function issueCertificate2() {
|
|
876
|
+
const payload = { participantId: ":participantId" };
|
|
877
|
+
const getRequestOptions = issueCertificate(payload);
|
|
986
878
|
const getUrl = (context) => {
|
|
987
879
|
const { url } = getRequestOptions(context);
|
|
988
880
|
return url;
|
|
@@ -990,46 +882,43 @@ function applyCoupon2() {
|
|
|
990
882
|
return {
|
|
991
883
|
getUrl,
|
|
992
884
|
httpMethod: "POST",
|
|
993
|
-
path: "/v3/participants/{participantId}/
|
|
994
|
-
pathParams: { participantId: "participantId"
|
|
885
|
+
path: "/v3/participants/{participantId}/issue-certificate",
|
|
886
|
+
pathParams: { participantId: "participantId" },
|
|
995
887
|
__requestType: null,
|
|
996
888
|
__originalRequestType: null,
|
|
997
889
|
__responseType: null,
|
|
998
890
|
__originalResponseType: null
|
|
999
891
|
};
|
|
1000
892
|
}
|
|
1001
|
-
function
|
|
1002
|
-
const payload = {
|
|
1003
|
-
|
|
1004
|
-
couponId: ":couponId"
|
|
1005
|
-
};
|
|
1006
|
-
const getRequestOptions = revertCoupon(payload);
|
|
893
|
+
function getCompletionStats2() {
|
|
894
|
+
const payload = { programId: ":programId" };
|
|
895
|
+
const getRequestOptions = getCompletionStats(payload);
|
|
1007
896
|
const getUrl = (context) => {
|
|
1008
897
|
const { url } = getRequestOptions(context);
|
|
1009
898
|
return url;
|
|
1010
899
|
};
|
|
1011
900
|
return {
|
|
1012
901
|
getUrl,
|
|
1013
|
-
httpMethod: "
|
|
1014
|
-
path: "/v3/
|
|
1015
|
-
pathParams: {
|
|
902
|
+
httpMethod: "GET",
|
|
903
|
+
path: "/v3/stats/completion/{programId}",
|
|
904
|
+
pathParams: { programId: "programId" },
|
|
1016
905
|
__requestType: null,
|
|
1017
906
|
__originalRequestType: null,
|
|
1018
907
|
__responseType: null,
|
|
1019
908
|
__originalResponseType: null
|
|
1020
909
|
};
|
|
1021
910
|
}
|
|
1022
|
-
function
|
|
911
|
+
function getPremiumStats2() {
|
|
1023
912
|
const payload = {};
|
|
1024
|
-
const getRequestOptions =
|
|
913
|
+
const getRequestOptions = getPremiumStats(payload);
|
|
1025
914
|
const getUrl = (context) => {
|
|
1026
915
|
const { url } = getRequestOptions(context);
|
|
1027
916
|
return url;
|
|
1028
917
|
};
|
|
1029
918
|
return {
|
|
1030
919
|
getUrl,
|
|
1031
|
-
httpMethod: "
|
|
1032
|
-
path: "/v3/
|
|
920
|
+
httpMethod: "GET",
|
|
921
|
+
path: "/v3/stats/premium",
|
|
1033
922
|
pathParams: {},
|
|
1034
923
|
__requestType: null,
|
|
1035
924
|
__originalRequestType: null,
|
|
@@ -1037,27 +926,27 @@ function bulkInviteToProgram2() {
|
|
|
1037
926
|
__originalResponseType: null
|
|
1038
927
|
};
|
|
1039
928
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const payload = {};
|
|
1042
|
-
const getRequestOptions =
|
|
929
|
+
function getParticipant2() {
|
|
930
|
+
const payload = { participantId: ":participantId" };
|
|
931
|
+
const getRequestOptions = getParticipant(payload);
|
|
1043
932
|
const getUrl = (context) => {
|
|
1044
933
|
const { url } = getRequestOptions(context);
|
|
1045
934
|
return url;
|
|
1046
935
|
};
|
|
1047
936
|
return {
|
|
1048
937
|
getUrl,
|
|
1049
|
-
httpMethod: "
|
|
1050
|
-
path: "/v3/
|
|
1051
|
-
pathParams: {},
|
|
938
|
+
httpMethod: "GET",
|
|
939
|
+
path: "/v3/participants/{participantId}",
|
|
940
|
+
pathParams: { participantId: "participantId" },
|
|
1052
941
|
__requestType: null,
|
|
1053
942
|
__originalRequestType: null,
|
|
1054
943
|
__responseType: null,
|
|
1055
944
|
__originalResponseType: null
|
|
1056
945
|
};
|
|
1057
946
|
}
|
|
1058
|
-
function
|
|
947
|
+
function queryParticipants2() {
|
|
1059
948
|
const payload = {};
|
|
1060
|
-
const getRequestOptions =
|
|
949
|
+
const getRequestOptions = queryParticipants(payload);
|
|
1061
950
|
const getUrl = (context) => {
|
|
1062
951
|
const { url } = getRequestOptions(context);
|
|
1063
952
|
return url;
|
|
@@ -1065,7 +954,7 @@ function bulkAddToProgram2() {
|
|
|
1065
954
|
return {
|
|
1066
955
|
getUrl,
|
|
1067
956
|
httpMethod: "POST",
|
|
1068
|
-
path: "/v3/
|
|
957
|
+
path: "/v3/participants/query",
|
|
1069
958
|
pathParams: {},
|
|
1070
959
|
__requestType: null,
|
|
1071
960
|
__originalRequestType: null,
|
|
@@ -1073,17 +962,17 @@ function bulkAddToProgram2() {
|
|
|
1073
962
|
__originalResponseType: null
|
|
1074
963
|
};
|
|
1075
964
|
}
|
|
1076
|
-
function
|
|
965
|
+
function getAccessStatus2() {
|
|
1077
966
|
const payload = {};
|
|
1078
|
-
const getRequestOptions =
|
|
967
|
+
const getRequestOptions = getAccessStatus(payload);
|
|
1079
968
|
const getUrl = (context) => {
|
|
1080
969
|
const { url } = getRequestOptions(context);
|
|
1081
970
|
return url;
|
|
1082
971
|
};
|
|
1083
972
|
return {
|
|
1084
973
|
getUrl,
|
|
1085
|
-
httpMethod: "
|
|
1086
|
-
path: "/v3/
|
|
974
|
+
httpMethod: "GET",
|
|
975
|
+
path: "/v3/participants/access",
|
|
1087
976
|
pathParams: {},
|
|
1088
977
|
__requestType: null,
|
|
1089
978
|
__originalRequestType: null,
|
|
@@ -1091,9 +980,9 @@ function bulkAddAllToProgram2() {
|
|
|
1091
980
|
__originalResponseType: null
|
|
1092
981
|
};
|
|
1093
982
|
}
|
|
1094
|
-
function
|
|
983
|
+
function bulkInviteToProgram2() {
|
|
1095
984
|
const payload = {};
|
|
1096
|
-
const getRequestOptions =
|
|
985
|
+
const getRequestOptions = bulkInviteToProgram(payload);
|
|
1097
986
|
const getUrl = (context) => {
|
|
1098
987
|
const { url } = getRequestOptions(context);
|
|
1099
988
|
return url;
|
|
@@ -1101,7 +990,7 @@ function bulkApproveParticipant2() {
|
|
|
1101
990
|
return {
|
|
1102
991
|
getUrl,
|
|
1103
992
|
httpMethod: "POST",
|
|
1104
|
-
path: "/v3/bulk/participants/
|
|
993
|
+
path: "/v3/bulk/participants/invite",
|
|
1105
994
|
pathParams: {},
|
|
1106
995
|
__requestType: null,
|
|
1107
996
|
__originalRequestType: null,
|
|
@@ -1109,9 +998,9 @@ function bulkApproveParticipant2() {
|
|
|
1109
998
|
__originalResponseType: null
|
|
1110
999
|
};
|
|
1111
1000
|
}
|
|
1112
|
-
function
|
|
1001
|
+
function bulkInviteAllToProgram2() {
|
|
1113
1002
|
const payload = {};
|
|
1114
|
-
const getRequestOptions =
|
|
1003
|
+
const getRequestOptions = bulkInviteAllToProgram(payload);
|
|
1115
1004
|
const getUrl = (context) => {
|
|
1116
1005
|
const { url } = getRequestOptions(context);
|
|
1117
1006
|
return url;
|
|
@@ -1119,7 +1008,7 @@ function bulkApproveAllParticipant2() {
|
|
|
1119
1008
|
return {
|
|
1120
1009
|
getUrl,
|
|
1121
1010
|
httpMethod: "POST",
|
|
1122
|
-
path: "/v3/bulk/participants/
|
|
1011
|
+
path: "/v3/bulk/participants/invite-all",
|
|
1123
1012
|
pathParams: {},
|
|
1124
1013
|
__requestType: null,
|
|
1125
1014
|
__originalRequestType: null,
|
|
@@ -1127,27 +1016,9 @@ function bulkApproveAllParticipant2() {
|
|
|
1127
1016
|
__originalResponseType: null
|
|
1128
1017
|
};
|
|
1129
1018
|
}
|
|
1130
|
-
function
|
|
1131
|
-
const payload = {
|
|
1132
|
-
const getRequestOptions =
|
|
1133
|
-
const getUrl = (context) => {
|
|
1134
|
-
const { url } = getRequestOptions(context);
|
|
1135
|
-
return url;
|
|
1136
|
-
};
|
|
1137
|
-
return {
|
|
1138
|
-
getUrl,
|
|
1139
|
-
httpMethod: "DELETE",
|
|
1140
|
-
path: "/v3/participants/{participantId}",
|
|
1141
|
-
pathParams: { participantId: "participantId" },
|
|
1142
|
-
__requestType: null,
|
|
1143
|
-
__originalRequestType: null,
|
|
1144
|
-
__responseType: null,
|
|
1145
|
-
__originalResponseType: null
|
|
1146
|
-
};
|
|
1147
|
-
}
|
|
1148
|
-
function issueCertificate2() {
|
|
1149
|
-
const payload = { participantId: ":participantId" };
|
|
1150
|
-
const getRequestOptions = issueCertificate(payload);
|
|
1019
|
+
function bulkAddToProgram2() {
|
|
1020
|
+
const payload = {};
|
|
1021
|
+
const getRequestOptions = bulkAddToProgram(payload);
|
|
1151
1022
|
const getUrl = (context) => {
|
|
1152
1023
|
const { url } = getRequestOptions(context);
|
|
1153
1024
|
return url;
|
|
@@ -1155,43 +1026,43 @@ function issueCertificate2() {
|
|
|
1155
1026
|
return {
|
|
1156
1027
|
getUrl,
|
|
1157
1028
|
httpMethod: "POST",
|
|
1158
|
-
path: "/v3/participants/
|
|
1159
|
-
pathParams: {
|
|
1029
|
+
path: "/v3/bulk/participants/add",
|
|
1030
|
+
pathParams: {},
|
|
1160
1031
|
__requestType: null,
|
|
1161
1032
|
__originalRequestType: null,
|
|
1162
1033
|
__responseType: null,
|
|
1163
1034
|
__originalResponseType: null
|
|
1164
1035
|
};
|
|
1165
1036
|
}
|
|
1166
|
-
function
|
|
1167
|
-
const payload = {
|
|
1168
|
-
const getRequestOptions =
|
|
1037
|
+
function bulkApproveParticipant2() {
|
|
1038
|
+
const payload = {};
|
|
1039
|
+
const getRequestOptions = bulkApproveParticipant(payload);
|
|
1169
1040
|
const getUrl = (context) => {
|
|
1170
1041
|
const { url } = getRequestOptions(context);
|
|
1171
1042
|
return url;
|
|
1172
1043
|
};
|
|
1173
1044
|
return {
|
|
1174
1045
|
getUrl,
|
|
1175
|
-
httpMethod: "
|
|
1176
|
-
path: "/v3/
|
|
1177
|
-
pathParams: {
|
|
1046
|
+
httpMethod: "POST",
|
|
1047
|
+
path: "/v3/bulk/participants/approve",
|
|
1048
|
+
pathParams: {},
|
|
1178
1049
|
__requestType: null,
|
|
1179
1050
|
__originalRequestType: null,
|
|
1180
1051
|
__responseType: null,
|
|
1181
1052
|
__originalResponseType: null
|
|
1182
1053
|
};
|
|
1183
1054
|
}
|
|
1184
|
-
function
|
|
1055
|
+
function bulkApproveAllParticipant2() {
|
|
1185
1056
|
const payload = {};
|
|
1186
|
-
const getRequestOptions =
|
|
1057
|
+
const getRequestOptions = bulkApproveAllParticipant(payload);
|
|
1187
1058
|
const getUrl = (context) => {
|
|
1188
1059
|
const { url } = getRequestOptions(context);
|
|
1189
1060
|
return url;
|
|
1190
1061
|
};
|
|
1191
1062
|
return {
|
|
1192
1063
|
getUrl,
|
|
1193
|
-
httpMethod: "
|
|
1194
|
-
path: "/v3/
|
|
1064
|
+
httpMethod: "POST",
|
|
1065
|
+
path: "/v3/bulk/participants/approve-all",
|
|
1195
1066
|
pathParams: {},
|
|
1196
1067
|
__requestType: null,
|
|
1197
1068
|
__originalRequestType: null,
|
|
@@ -1221,27 +1092,18 @@ function exportParticipantsStats2() {
|
|
|
1221
1092
|
0 && (module.exports = {
|
|
1222
1093
|
BenefitTypeOriginal,
|
|
1223
1094
|
EventOriginal,
|
|
1224
|
-
EventTypeOriginal,
|
|
1225
|
-
InitiatorOriginal,
|
|
1226
1095
|
JoinPathOriginal,
|
|
1227
|
-
OrderItemCategoryOriginal,
|
|
1228
|
-
RefundStatusOriginal,
|
|
1229
|
-
RemovalReasonOriginal,
|
|
1230
|
-
ScheduledActionTypeOriginal,
|
|
1231
1096
|
SortOrderOriginal,
|
|
1232
1097
|
StateOriginal,
|
|
1233
|
-
StatusOriginal,
|
|
1234
|
-
SubdivisionTypeOriginal,
|
|
1235
|
-
TransactionStatusOriginal,
|
|
1236
|
-
VatTypeOriginal,
|
|
1237
1098
|
WebhookIdentityTypeOriginal,
|
|
1238
|
-
applyCoupon,
|
|
1239
1099
|
bulkAddAllToProgram,
|
|
1240
1100
|
bulkAddToProgram,
|
|
1241
1101
|
bulkApproveAllParticipant,
|
|
1242
1102
|
bulkApproveParticipant,
|
|
1103
|
+
bulkCreateParticipant,
|
|
1243
1104
|
bulkInviteAllToProgram,
|
|
1244
1105
|
bulkInviteToProgram,
|
|
1106
|
+
createParticipant,
|
|
1245
1107
|
deleteParticipant,
|
|
1246
1108
|
exportParticipantsStats,
|
|
1247
1109
|
getAccessStatus,
|
|
@@ -1249,9 +1111,6 @@ function exportParticipantsStats2() {
|
|
|
1249
1111
|
getParticipant,
|
|
1250
1112
|
getPremiumStats,
|
|
1251
1113
|
issueCertificate,
|
|
1252
|
-
|
|
1253
|
-
leaveProgram,
|
|
1254
|
-
queryParticipants,
|
|
1255
|
-
revertCoupon
|
|
1114
|
+
queryParticipants
|
|
1256
1115
|
});
|
|
1257
1116
|
//# sourceMappingURL=meta.js.map
|