@wix/auto_sdk_online-programs_participants 1.0.0
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 +187 -0
- package/build/cjs/index.js +1676 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1866 -0
- package/build/cjs/index.typings.js +1382 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +599 -0
- package/build/cjs/meta.js +1043 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +187 -0
- package/build/es/index.mjs +1612 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1866 -0
- package/build/es/index.typings.mjs +1325 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +599 -0
- package/build/es/meta.mjs +999 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +198 -0
- package/build/internal/cjs/index.js +1676 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1876 -0
- package/build/internal/cjs/index.typings.js +1382 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +599 -0
- package/build/internal/cjs/meta.js +1043 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +198 -0
- package/build/internal/es/index.mjs +1612 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1876 -0
- package/build/internal/es/index.typings.mjs +1325 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +599 -0
- package/build/internal/es/meta.mjs +999 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,1043 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
applyCoupon: () => applyCoupon2,
|
|
24
|
+
bulkAddAllToProgram: () => bulkAddAllToProgram2,
|
|
25
|
+
bulkAddToProgram: () => bulkAddToProgram2,
|
|
26
|
+
bulkApproveAllParticipant: () => bulkApproveAllParticipant2,
|
|
27
|
+
bulkApproveParticipant: () => bulkApproveParticipant2,
|
|
28
|
+
bulkInviteAllToProgram: () => bulkInviteAllToProgram2,
|
|
29
|
+
bulkInviteToProgram: () => bulkInviteToProgram2,
|
|
30
|
+
deleteParticipant: () => deleteParticipant2,
|
|
31
|
+
exportParticipantsStats: () => exportParticipantsStats2,
|
|
32
|
+
getAccessStatus: () => getAccessStatus2,
|
|
33
|
+
getCompletionStats: () => getCompletionStats2,
|
|
34
|
+
getParticipant: () => getParticipant2,
|
|
35
|
+
getPremiumStats: () => getPremiumStats2,
|
|
36
|
+
issueCertificate: () => issueCertificate2,
|
|
37
|
+
joinProgram: () => joinProgram2,
|
|
38
|
+
leaveProgram: () => leaveProgram2,
|
|
39
|
+
queryParticipants: () => queryParticipants2,
|
|
40
|
+
revertCoupon: () => revertCoupon2
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(meta_exports);
|
|
43
|
+
|
|
44
|
+
// src/online-programs-v3-participant-participants.http.ts
|
|
45
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
46
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
47
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
48
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
49
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
50
|
+
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
51
|
+
const domainToMappings = {
|
|
52
|
+
"bo._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/participants-service",
|
|
55
|
+
destPath: ""
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"wixbo.ai": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/participants-service",
|
|
61
|
+
destPath: ""
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"wix-bo.com": [
|
|
65
|
+
{
|
|
66
|
+
srcPath: "/participants-service",
|
|
67
|
+
destPath: ""
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"manage._base_domain_": [
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/participants-service",
|
|
73
|
+
destPath: ""
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
_: [
|
|
77
|
+
{
|
|
78
|
+
srcPath: "/participants-service",
|
|
79
|
+
destPath: ""
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"editor._base_domain_": [
|
|
83
|
+
{
|
|
84
|
+
srcPath: "/participants-service",
|
|
85
|
+
destPath: ""
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"blocks._base_domain_": [
|
|
89
|
+
{
|
|
90
|
+
srcPath: "/participants-service",
|
|
91
|
+
destPath: ""
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"create.editorx": [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/participants-service",
|
|
97
|
+
destPath: ""
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"www._base_domain_": [
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/_api/participants-service",
|
|
103
|
+
destPath: ""
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"www.wixapis.com": [
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/participants-service",
|
|
109
|
+
destPath: ""
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
};
|
|
113
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
114
|
+
}
|
|
115
|
+
function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
|
|
116
|
+
const domainToMappings = {
|
|
117
|
+
"bo._base_domain_": [
|
|
118
|
+
{
|
|
119
|
+
srcPath: "/participants-service",
|
|
120
|
+
destPath: ""
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"wixbo.ai": [
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/participants-service",
|
|
126
|
+
destPath: ""
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"wix-bo.com": [
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/participants-service",
|
|
132
|
+
destPath: ""
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"manage._base_domain_": [
|
|
136
|
+
{
|
|
137
|
+
srcPath: "/participants-service",
|
|
138
|
+
destPath: ""
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
_: [
|
|
142
|
+
{
|
|
143
|
+
srcPath: "/participants-service",
|
|
144
|
+
destPath: ""
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"editor._base_domain_": [
|
|
148
|
+
{
|
|
149
|
+
srcPath: "/participants-service",
|
|
150
|
+
destPath: ""
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"blocks._base_domain_": [
|
|
154
|
+
{
|
|
155
|
+
srcPath: "/participants-service",
|
|
156
|
+
destPath: ""
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"create.editorx": [
|
|
160
|
+
{
|
|
161
|
+
srcPath: "/participants-service",
|
|
162
|
+
destPath: ""
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"www._base_domain_": [
|
|
166
|
+
{
|
|
167
|
+
srcPath: "/_api/participants-service",
|
|
168
|
+
destPath: ""
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"www.wixapis.com": [
|
|
172
|
+
{
|
|
173
|
+
srcPath: "/participants-service",
|
|
174
|
+
destPath: ""
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
};
|
|
178
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
179
|
+
}
|
|
180
|
+
function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
181
|
+
const domainToMappings = {
|
|
182
|
+
"bo._base_domain_": [
|
|
183
|
+
{
|
|
184
|
+
srcPath: "/participants-service",
|
|
185
|
+
destPath: ""
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"wixbo.ai": [
|
|
189
|
+
{
|
|
190
|
+
srcPath: "/participants-service",
|
|
191
|
+
destPath: ""
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"wix-bo.com": [
|
|
195
|
+
{
|
|
196
|
+
srcPath: "/participants-service",
|
|
197
|
+
destPath: ""
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"manage._base_domain_": [
|
|
201
|
+
{
|
|
202
|
+
srcPath: "/participants-service",
|
|
203
|
+
destPath: ""
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
_: [
|
|
207
|
+
{
|
|
208
|
+
srcPath: "/participants-service",
|
|
209
|
+
destPath: ""
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"editor._base_domain_": [
|
|
213
|
+
{
|
|
214
|
+
srcPath: "/participants-service",
|
|
215
|
+
destPath: ""
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"blocks._base_domain_": [
|
|
219
|
+
{
|
|
220
|
+
srcPath: "/participants-service",
|
|
221
|
+
destPath: ""
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"create.editorx": [
|
|
225
|
+
{
|
|
226
|
+
srcPath: "/participants-service",
|
|
227
|
+
destPath: ""
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"www._base_domain_": [
|
|
231
|
+
{
|
|
232
|
+
srcPath: "/_api/participants-service",
|
|
233
|
+
destPath: ""
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"www.wixapis.com": [
|
|
237
|
+
{
|
|
238
|
+
srcPath: "/participants-service",
|
|
239
|
+
destPath: ""
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
};
|
|
243
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
244
|
+
}
|
|
245
|
+
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
246
|
+
function joinProgram(payload) {
|
|
247
|
+
function __joinProgram({ host }) {
|
|
248
|
+
const metadata = {
|
|
249
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
250
|
+
method: "POST",
|
|
251
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.JoinProgram",
|
|
252
|
+
packageName: PACKAGE_NAME,
|
|
253
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
254
|
+
protoPath: "/v3/participants/join",
|
|
255
|
+
data: payload,
|
|
256
|
+
host
|
|
257
|
+
}),
|
|
258
|
+
data: payload,
|
|
259
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
260
|
+
{
|
|
261
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
262
|
+
paths: [
|
|
263
|
+
{ path: "participant.createdDate" },
|
|
264
|
+
{ path: "participant.updatedDate" },
|
|
265
|
+
{ path: "participant.certificate.issuedDate" }
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
270
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
271
|
+
}
|
|
272
|
+
])
|
|
273
|
+
};
|
|
274
|
+
return metadata;
|
|
275
|
+
}
|
|
276
|
+
return __joinProgram;
|
|
277
|
+
}
|
|
278
|
+
function getParticipant(payload) {
|
|
279
|
+
function __getParticipant({ host }) {
|
|
280
|
+
const metadata = {
|
|
281
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
282
|
+
method: "GET",
|
|
283
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
284
|
+
packageName: PACKAGE_NAME,
|
|
285
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
286
|
+
protoPath: "/v3/participants/{participantId}",
|
|
287
|
+
data: payload,
|
|
288
|
+
host
|
|
289
|
+
}),
|
|
290
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
291
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
292
|
+
{
|
|
293
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
294
|
+
paths: [
|
|
295
|
+
{ path: "participant.createdDate" },
|
|
296
|
+
{ path: "participant.updatedDate" },
|
|
297
|
+
{ path: "participant.certificate.issuedDate" }
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
302
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
303
|
+
}
|
|
304
|
+
])
|
|
305
|
+
};
|
|
306
|
+
return metadata;
|
|
307
|
+
}
|
|
308
|
+
return __getParticipant;
|
|
309
|
+
}
|
|
310
|
+
function leaveProgram(payload) {
|
|
311
|
+
function __leaveProgram({ host }) {
|
|
312
|
+
const metadata = {
|
|
313
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
314
|
+
method: "POST",
|
|
315
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.LeaveProgram",
|
|
316
|
+
packageName: PACKAGE_NAME,
|
|
317
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
318
|
+
protoPath: "/v3/participants/{participantId}/leave",
|
|
319
|
+
data: payload,
|
|
320
|
+
host
|
|
321
|
+
}),
|
|
322
|
+
data: payload
|
|
323
|
+
};
|
|
324
|
+
return metadata;
|
|
325
|
+
}
|
|
326
|
+
return __leaveProgram;
|
|
327
|
+
}
|
|
328
|
+
function queryParticipants(payload) {
|
|
329
|
+
function __queryParticipants({ host }) {
|
|
330
|
+
const metadata = {
|
|
331
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
332
|
+
method: "POST",
|
|
333
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
334
|
+
packageName: PACKAGE_NAME,
|
|
335
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
336
|
+
protoPath: "/v3/participants/query",
|
|
337
|
+
data: payload,
|
|
338
|
+
host
|
|
339
|
+
}),
|
|
340
|
+
data: payload,
|
|
341
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
342
|
+
{
|
|
343
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
344
|
+
paths: [
|
|
345
|
+
{ path: "participants.createdDate" },
|
|
346
|
+
{ path: "participants.updatedDate" },
|
|
347
|
+
{ path: "participants.certificate.issuedDate" }
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
352
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
353
|
+
}
|
|
354
|
+
])
|
|
355
|
+
};
|
|
356
|
+
return metadata;
|
|
357
|
+
}
|
|
358
|
+
return __queryParticipants;
|
|
359
|
+
}
|
|
360
|
+
function getAccessStatus(payload) {
|
|
361
|
+
function __getAccessStatus({ host }) {
|
|
362
|
+
const metadata = {
|
|
363
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
364
|
+
method: "GET",
|
|
365
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
366
|
+
packageName: PACKAGE_NAME,
|
|
367
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
368
|
+
protoPath: "/v3/participants/access",
|
|
369
|
+
data: payload,
|
|
370
|
+
host
|
|
371
|
+
}),
|
|
372
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
373
|
+
};
|
|
374
|
+
return metadata;
|
|
375
|
+
}
|
|
376
|
+
return __getAccessStatus;
|
|
377
|
+
}
|
|
378
|
+
function applyCoupon(payload) {
|
|
379
|
+
function __applyCoupon({ host }) {
|
|
380
|
+
const metadata = {
|
|
381
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
382
|
+
method: "POST",
|
|
383
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.ApplyCoupon",
|
|
384
|
+
packageName: PACKAGE_NAME,
|
|
385
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
386
|
+
protoPath: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
|
|
387
|
+
data: payload,
|
|
388
|
+
host
|
|
389
|
+
}),
|
|
390
|
+
data: payload,
|
|
391
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
392
|
+
{
|
|
393
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
394
|
+
paths: [
|
|
395
|
+
{ path: "subTotal" },
|
|
396
|
+
{ path: "discount" },
|
|
397
|
+
{ path: "total" }
|
|
398
|
+
]
|
|
399
|
+
}
|
|
400
|
+
])
|
|
401
|
+
};
|
|
402
|
+
return metadata;
|
|
403
|
+
}
|
|
404
|
+
return __applyCoupon;
|
|
405
|
+
}
|
|
406
|
+
function revertCoupon(payload) {
|
|
407
|
+
function __revertCoupon({ host }) {
|
|
408
|
+
const metadata = {
|
|
409
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
410
|
+
method: "POST",
|
|
411
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.RevertCoupon",
|
|
412
|
+
packageName: PACKAGE_NAME,
|
|
413
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
414
|
+
protoPath: "/v3/participants/{participantId}/coupons/{couponId}/revert",
|
|
415
|
+
data: payload,
|
|
416
|
+
host
|
|
417
|
+
}),
|
|
418
|
+
data: payload,
|
|
419
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
420
|
+
{
|
|
421
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
422
|
+
paths: [{ path: "total" }]
|
|
423
|
+
}
|
|
424
|
+
])
|
|
425
|
+
};
|
|
426
|
+
return metadata;
|
|
427
|
+
}
|
|
428
|
+
return __revertCoupon;
|
|
429
|
+
}
|
|
430
|
+
function bulkInviteToProgram(payload) {
|
|
431
|
+
function __bulkInviteToProgram({ host }) {
|
|
432
|
+
const metadata = {
|
|
433
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
434
|
+
method: "POST",
|
|
435
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
436
|
+
packageName: PACKAGE_NAME,
|
|
437
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
438
|
+
protoPath: "/v3/bulk/participants/invite",
|
|
439
|
+
data: payload,
|
|
440
|
+
host
|
|
441
|
+
}),
|
|
442
|
+
data: payload,
|
|
443
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
444
|
+
{
|
|
445
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
446
|
+
paths: [
|
|
447
|
+
{ path: "results.item.createdDate" },
|
|
448
|
+
{ path: "results.item.updatedDate" },
|
|
449
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
454
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
455
|
+
}
|
|
456
|
+
])
|
|
457
|
+
};
|
|
458
|
+
return metadata;
|
|
459
|
+
}
|
|
460
|
+
return __bulkInviteToProgram;
|
|
461
|
+
}
|
|
462
|
+
function bulkInviteAllToProgram(payload) {
|
|
463
|
+
function __bulkInviteAllToProgram({ host }) {
|
|
464
|
+
const metadata = {
|
|
465
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
466
|
+
method: "POST",
|
|
467
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
468
|
+
packageName: PACKAGE_NAME,
|
|
469
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
470
|
+
protoPath: "/v3/bulk/participants/invite-all",
|
|
471
|
+
data: payload,
|
|
472
|
+
host
|
|
473
|
+
}),
|
|
474
|
+
data: payload
|
|
475
|
+
};
|
|
476
|
+
return metadata;
|
|
477
|
+
}
|
|
478
|
+
return __bulkInviteAllToProgram;
|
|
479
|
+
}
|
|
480
|
+
function bulkAddToProgram(payload) {
|
|
481
|
+
function __bulkAddToProgram({ host }) {
|
|
482
|
+
const metadata = {
|
|
483
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
484
|
+
method: "POST",
|
|
485
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
486
|
+
packageName: PACKAGE_NAME,
|
|
487
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
488
|
+
protoPath: "/v3/bulk/participants/add",
|
|
489
|
+
data: payload,
|
|
490
|
+
host
|
|
491
|
+
}),
|
|
492
|
+
data: payload,
|
|
493
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
494
|
+
{
|
|
495
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
496
|
+
paths: [
|
|
497
|
+
{ path: "results.item.createdDate" },
|
|
498
|
+
{ path: "results.item.updatedDate" },
|
|
499
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
504
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
505
|
+
}
|
|
506
|
+
])
|
|
507
|
+
};
|
|
508
|
+
return metadata;
|
|
509
|
+
}
|
|
510
|
+
return __bulkAddToProgram;
|
|
511
|
+
}
|
|
512
|
+
function bulkAddAllToProgram(payload) {
|
|
513
|
+
function __bulkAddAllToProgram({ host }) {
|
|
514
|
+
const metadata = {
|
|
515
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
516
|
+
method: "POST",
|
|
517
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
|
|
518
|
+
packageName: PACKAGE_NAME,
|
|
519
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
520
|
+
protoPath: "/v3/bulk/participants/add-all",
|
|
521
|
+
data: payload,
|
|
522
|
+
host
|
|
523
|
+
}),
|
|
524
|
+
data: payload
|
|
525
|
+
};
|
|
526
|
+
return metadata;
|
|
527
|
+
}
|
|
528
|
+
return __bulkAddAllToProgram;
|
|
529
|
+
}
|
|
530
|
+
function bulkApproveParticipant(payload) {
|
|
531
|
+
function __bulkApproveParticipant({ host }) {
|
|
532
|
+
const metadata = {
|
|
533
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
534
|
+
method: "POST",
|
|
535
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
536
|
+
packageName: PACKAGE_NAME,
|
|
537
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
538
|
+
protoPath: "/v3/bulk/participants/approve",
|
|
539
|
+
data: payload,
|
|
540
|
+
host
|
|
541
|
+
}),
|
|
542
|
+
data: payload,
|
|
543
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
544
|
+
{
|
|
545
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
546
|
+
paths: [
|
|
547
|
+
{ path: "results.item.createdDate" },
|
|
548
|
+
{ path: "results.item.updatedDate" },
|
|
549
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
554
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
555
|
+
}
|
|
556
|
+
])
|
|
557
|
+
};
|
|
558
|
+
return metadata;
|
|
559
|
+
}
|
|
560
|
+
return __bulkApproveParticipant;
|
|
561
|
+
}
|
|
562
|
+
function bulkApproveAllParticipant(payload) {
|
|
563
|
+
function __bulkApproveAllParticipant({ host }) {
|
|
564
|
+
const metadata = {
|
|
565
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
566
|
+
method: "POST",
|
|
567
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
568
|
+
packageName: PACKAGE_NAME,
|
|
569
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
570
|
+
protoPath: "/v3/bulk/participants/approve-all",
|
|
571
|
+
data: payload,
|
|
572
|
+
host
|
|
573
|
+
}),
|
|
574
|
+
data: payload
|
|
575
|
+
};
|
|
576
|
+
return metadata;
|
|
577
|
+
}
|
|
578
|
+
return __bulkApproveAllParticipant;
|
|
579
|
+
}
|
|
580
|
+
function deleteParticipant(payload) {
|
|
581
|
+
function __deleteParticipant({ host }) {
|
|
582
|
+
const metadata = {
|
|
583
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
584
|
+
method: "DELETE",
|
|
585
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
|
|
586
|
+
packageName: PACKAGE_NAME,
|
|
587
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
588
|
+
protoPath: "/v3/participants/{participantId}",
|
|
589
|
+
data: payload,
|
|
590
|
+
host
|
|
591
|
+
}),
|
|
592
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
593
|
+
};
|
|
594
|
+
return metadata;
|
|
595
|
+
}
|
|
596
|
+
return __deleteParticipant;
|
|
597
|
+
}
|
|
598
|
+
function issueCertificate(payload) {
|
|
599
|
+
function __issueCertificate({ host }) {
|
|
600
|
+
const metadata = {
|
|
601
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
602
|
+
method: "POST",
|
|
603
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
|
|
604
|
+
packageName: PACKAGE_NAME,
|
|
605
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
606
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
607
|
+
data: payload,
|
|
608
|
+
host
|
|
609
|
+
}),
|
|
610
|
+
data: payload,
|
|
611
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
612
|
+
{
|
|
613
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
614
|
+
paths: [
|
|
615
|
+
{ path: "participant.createdDate" },
|
|
616
|
+
{ path: "participant.updatedDate" },
|
|
617
|
+
{ path: "participant.certificate.issuedDate" }
|
|
618
|
+
]
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
622
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
623
|
+
}
|
|
624
|
+
])
|
|
625
|
+
};
|
|
626
|
+
return metadata;
|
|
627
|
+
}
|
|
628
|
+
return __issueCertificate;
|
|
629
|
+
}
|
|
630
|
+
function getCompletionStats(payload) {
|
|
631
|
+
function __getCompletionStats({ host }) {
|
|
632
|
+
const metadata = {
|
|
633
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
634
|
+
method: "GET",
|
|
635
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
|
|
636
|
+
packageName: PACKAGE_NAME,
|
|
637
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
638
|
+
protoPath: "/v3/stats/completion/{programId}",
|
|
639
|
+
data: payload,
|
|
640
|
+
host
|
|
641
|
+
}),
|
|
642
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
643
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
644
|
+
{
|
|
645
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
646
|
+
paths: [{ path: "completionRate" }]
|
|
647
|
+
}
|
|
648
|
+
])
|
|
649
|
+
};
|
|
650
|
+
return metadata;
|
|
651
|
+
}
|
|
652
|
+
return __getCompletionStats;
|
|
653
|
+
}
|
|
654
|
+
function getPremiumStats(payload) {
|
|
655
|
+
function __getPremiumStats({ host }) {
|
|
656
|
+
const metadata = {
|
|
657
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
658
|
+
method: "GET",
|
|
659
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
|
|
660
|
+
packageName: PACKAGE_NAME,
|
|
661
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
662
|
+
protoPath: "/v3/stats/premium",
|
|
663
|
+
data: payload,
|
|
664
|
+
host
|
|
665
|
+
}),
|
|
666
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
667
|
+
};
|
|
668
|
+
return metadata;
|
|
669
|
+
}
|
|
670
|
+
return __getPremiumStats;
|
|
671
|
+
}
|
|
672
|
+
function exportParticipantsStats(payload) {
|
|
673
|
+
function __exportParticipantsStats({ host }) {
|
|
674
|
+
const metadata = {
|
|
675
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
676
|
+
method: "GET",
|
|
677
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
678
|
+
packageName: PACKAGE_NAME,
|
|
679
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
680
|
+
protoPath: "/v3/participants/export/{programId}",
|
|
681
|
+
data: payload,
|
|
682
|
+
host
|
|
683
|
+
}),
|
|
684
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
685
|
+
};
|
|
686
|
+
return metadata;
|
|
687
|
+
}
|
|
688
|
+
return __exportParticipantsStats;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// src/online-programs-v3-participant-participants.meta.ts
|
|
692
|
+
function joinProgram2() {
|
|
693
|
+
const payload = {};
|
|
694
|
+
const getRequestOptions = joinProgram(payload);
|
|
695
|
+
const getUrl = (context) => {
|
|
696
|
+
const { url } = getRequestOptions(context);
|
|
697
|
+
return url;
|
|
698
|
+
};
|
|
699
|
+
return {
|
|
700
|
+
getUrl,
|
|
701
|
+
httpMethod: "POST",
|
|
702
|
+
path: "/v3/participants/join",
|
|
703
|
+
pathParams: {},
|
|
704
|
+
__requestType: null,
|
|
705
|
+
__originalRequestType: null,
|
|
706
|
+
__responseType: null,
|
|
707
|
+
__originalResponseType: null
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function getParticipant2() {
|
|
711
|
+
const payload = { participantId: ":participantId" };
|
|
712
|
+
const getRequestOptions = getParticipant(payload);
|
|
713
|
+
const getUrl = (context) => {
|
|
714
|
+
const { url } = getRequestOptions(context);
|
|
715
|
+
return url;
|
|
716
|
+
};
|
|
717
|
+
return {
|
|
718
|
+
getUrl,
|
|
719
|
+
httpMethod: "GET",
|
|
720
|
+
path: "/v3/participants/{participantId}",
|
|
721
|
+
pathParams: { participantId: "participantId" },
|
|
722
|
+
__requestType: null,
|
|
723
|
+
__originalRequestType: null,
|
|
724
|
+
__responseType: null,
|
|
725
|
+
__originalResponseType: null
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
function leaveProgram2() {
|
|
729
|
+
const payload = { participantId: ":participantId" };
|
|
730
|
+
const getRequestOptions = leaveProgram(payload);
|
|
731
|
+
const getUrl = (context) => {
|
|
732
|
+
const { url } = getRequestOptions(context);
|
|
733
|
+
return url;
|
|
734
|
+
};
|
|
735
|
+
return {
|
|
736
|
+
getUrl,
|
|
737
|
+
httpMethod: "POST",
|
|
738
|
+
path: "/v3/participants/{participantId}/leave",
|
|
739
|
+
pathParams: { participantId: "participantId" },
|
|
740
|
+
__requestType: null,
|
|
741
|
+
__originalRequestType: null,
|
|
742
|
+
__responseType: null,
|
|
743
|
+
__originalResponseType: null
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
function queryParticipants2() {
|
|
747
|
+
const payload = {};
|
|
748
|
+
const getRequestOptions = queryParticipants(payload);
|
|
749
|
+
const getUrl = (context) => {
|
|
750
|
+
const { url } = getRequestOptions(context);
|
|
751
|
+
return url;
|
|
752
|
+
};
|
|
753
|
+
return {
|
|
754
|
+
getUrl,
|
|
755
|
+
httpMethod: "POST",
|
|
756
|
+
path: "/v3/participants/query",
|
|
757
|
+
pathParams: {},
|
|
758
|
+
__requestType: null,
|
|
759
|
+
__originalRequestType: null,
|
|
760
|
+
__responseType: null,
|
|
761
|
+
__originalResponseType: null
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
function getAccessStatus2() {
|
|
765
|
+
const payload = {};
|
|
766
|
+
const getRequestOptions = getAccessStatus(payload);
|
|
767
|
+
const getUrl = (context) => {
|
|
768
|
+
const { url } = getRequestOptions(context);
|
|
769
|
+
return url;
|
|
770
|
+
};
|
|
771
|
+
return {
|
|
772
|
+
getUrl,
|
|
773
|
+
httpMethod: "GET",
|
|
774
|
+
path: "/v3/participants/access",
|
|
775
|
+
pathParams: {},
|
|
776
|
+
__requestType: null,
|
|
777
|
+
__originalRequestType: null,
|
|
778
|
+
__responseType: null,
|
|
779
|
+
__originalResponseType: null
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
function applyCoupon2() {
|
|
783
|
+
const payload = {
|
|
784
|
+
participantId: ":participantId",
|
|
785
|
+
couponCode: ":couponCode"
|
|
786
|
+
};
|
|
787
|
+
const getRequestOptions = applyCoupon(payload);
|
|
788
|
+
const getUrl = (context) => {
|
|
789
|
+
const { url } = getRequestOptions(context);
|
|
790
|
+
return url;
|
|
791
|
+
};
|
|
792
|
+
return {
|
|
793
|
+
getUrl,
|
|
794
|
+
httpMethod: "POST",
|
|
795
|
+
path: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
|
|
796
|
+
pathParams: { participantId: "participantId", couponCode: "couponCode" },
|
|
797
|
+
__requestType: null,
|
|
798
|
+
__originalRequestType: null,
|
|
799
|
+
__responseType: null,
|
|
800
|
+
__originalResponseType: null
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
function revertCoupon2() {
|
|
804
|
+
const payload = {
|
|
805
|
+
participantId: ":participantId",
|
|
806
|
+
couponId: ":couponId"
|
|
807
|
+
};
|
|
808
|
+
const getRequestOptions = revertCoupon(payload);
|
|
809
|
+
const getUrl = (context) => {
|
|
810
|
+
const { url } = getRequestOptions(context);
|
|
811
|
+
return url;
|
|
812
|
+
};
|
|
813
|
+
return {
|
|
814
|
+
getUrl,
|
|
815
|
+
httpMethod: "POST",
|
|
816
|
+
path: "/v3/participants/{participantId}/coupons/{couponId}/revert",
|
|
817
|
+
pathParams: { participantId: "participantId", couponId: "couponId" },
|
|
818
|
+
__requestType: null,
|
|
819
|
+
__originalRequestType: null,
|
|
820
|
+
__responseType: null,
|
|
821
|
+
__originalResponseType: null
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
function bulkInviteToProgram2() {
|
|
825
|
+
const payload = {};
|
|
826
|
+
const getRequestOptions = bulkInviteToProgram(payload);
|
|
827
|
+
const getUrl = (context) => {
|
|
828
|
+
const { url } = getRequestOptions(context);
|
|
829
|
+
return url;
|
|
830
|
+
};
|
|
831
|
+
return {
|
|
832
|
+
getUrl,
|
|
833
|
+
httpMethod: "POST",
|
|
834
|
+
path: "/v3/bulk/participants/invite",
|
|
835
|
+
pathParams: {},
|
|
836
|
+
__requestType: null,
|
|
837
|
+
__originalRequestType: null,
|
|
838
|
+
__responseType: null,
|
|
839
|
+
__originalResponseType: null
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function bulkInviteAllToProgram2() {
|
|
843
|
+
const payload = {};
|
|
844
|
+
const getRequestOptions = bulkInviteAllToProgram(payload);
|
|
845
|
+
const getUrl = (context) => {
|
|
846
|
+
const { url } = getRequestOptions(context);
|
|
847
|
+
return url;
|
|
848
|
+
};
|
|
849
|
+
return {
|
|
850
|
+
getUrl,
|
|
851
|
+
httpMethod: "POST",
|
|
852
|
+
path: "/v3/bulk/participants/invite-all",
|
|
853
|
+
pathParams: {},
|
|
854
|
+
__requestType: null,
|
|
855
|
+
__originalRequestType: null,
|
|
856
|
+
__responseType: null,
|
|
857
|
+
__originalResponseType: null
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function bulkAddToProgram2() {
|
|
861
|
+
const payload = {};
|
|
862
|
+
const getRequestOptions = bulkAddToProgram(payload);
|
|
863
|
+
const getUrl = (context) => {
|
|
864
|
+
const { url } = getRequestOptions(context);
|
|
865
|
+
return url;
|
|
866
|
+
};
|
|
867
|
+
return {
|
|
868
|
+
getUrl,
|
|
869
|
+
httpMethod: "POST",
|
|
870
|
+
path: "/v3/bulk/participants/add",
|
|
871
|
+
pathParams: {},
|
|
872
|
+
__requestType: null,
|
|
873
|
+
__originalRequestType: null,
|
|
874
|
+
__responseType: null,
|
|
875
|
+
__originalResponseType: null
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
function bulkAddAllToProgram2() {
|
|
879
|
+
const payload = {};
|
|
880
|
+
const getRequestOptions = bulkAddAllToProgram(payload);
|
|
881
|
+
const getUrl = (context) => {
|
|
882
|
+
const { url } = getRequestOptions(context);
|
|
883
|
+
return url;
|
|
884
|
+
};
|
|
885
|
+
return {
|
|
886
|
+
getUrl,
|
|
887
|
+
httpMethod: "POST",
|
|
888
|
+
path: "/v3/bulk/participants/add-all",
|
|
889
|
+
pathParams: {},
|
|
890
|
+
__requestType: null,
|
|
891
|
+
__originalRequestType: null,
|
|
892
|
+
__responseType: null,
|
|
893
|
+
__originalResponseType: null
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
function bulkApproveParticipant2() {
|
|
897
|
+
const payload = {};
|
|
898
|
+
const getRequestOptions = bulkApproveParticipant(payload);
|
|
899
|
+
const getUrl = (context) => {
|
|
900
|
+
const { url } = getRequestOptions(context);
|
|
901
|
+
return url;
|
|
902
|
+
};
|
|
903
|
+
return {
|
|
904
|
+
getUrl,
|
|
905
|
+
httpMethod: "POST",
|
|
906
|
+
path: "/v3/bulk/participants/approve",
|
|
907
|
+
pathParams: {},
|
|
908
|
+
__requestType: null,
|
|
909
|
+
__originalRequestType: null,
|
|
910
|
+
__responseType: null,
|
|
911
|
+
__originalResponseType: null
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
function bulkApproveAllParticipant2() {
|
|
915
|
+
const payload = {};
|
|
916
|
+
const getRequestOptions = bulkApproveAllParticipant(payload);
|
|
917
|
+
const getUrl = (context) => {
|
|
918
|
+
const { url } = getRequestOptions(context);
|
|
919
|
+
return url;
|
|
920
|
+
};
|
|
921
|
+
return {
|
|
922
|
+
getUrl,
|
|
923
|
+
httpMethod: "POST",
|
|
924
|
+
path: "/v3/bulk/participants/approve-all",
|
|
925
|
+
pathParams: {},
|
|
926
|
+
__requestType: null,
|
|
927
|
+
__originalRequestType: null,
|
|
928
|
+
__responseType: null,
|
|
929
|
+
__originalResponseType: null
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
function deleteParticipant2() {
|
|
933
|
+
const payload = { participantId: ":participantId" };
|
|
934
|
+
const getRequestOptions = deleteParticipant(payload);
|
|
935
|
+
const getUrl = (context) => {
|
|
936
|
+
const { url } = getRequestOptions(context);
|
|
937
|
+
return url;
|
|
938
|
+
};
|
|
939
|
+
return {
|
|
940
|
+
getUrl,
|
|
941
|
+
httpMethod: "DELETE",
|
|
942
|
+
path: "/v3/participants/{participantId}",
|
|
943
|
+
pathParams: { participantId: "participantId" },
|
|
944
|
+
__requestType: null,
|
|
945
|
+
__originalRequestType: null,
|
|
946
|
+
__responseType: null,
|
|
947
|
+
__originalResponseType: null
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
function issueCertificate2() {
|
|
951
|
+
const payload = { participantId: ":participantId" };
|
|
952
|
+
const getRequestOptions = issueCertificate(payload);
|
|
953
|
+
const getUrl = (context) => {
|
|
954
|
+
const { url } = getRequestOptions(context);
|
|
955
|
+
return url;
|
|
956
|
+
};
|
|
957
|
+
return {
|
|
958
|
+
getUrl,
|
|
959
|
+
httpMethod: "POST",
|
|
960
|
+
path: "/v3/participants/{participantId}/issue-certificate",
|
|
961
|
+
pathParams: { participantId: "participantId" },
|
|
962
|
+
__requestType: null,
|
|
963
|
+
__originalRequestType: null,
|
|
964
|
+
__responseType: null,
|
|
965
|
+
__originalResponseType: null
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
function getCompletionStats2() {
|
|
969
|
+
const payload = { programId: ":programId" };
|
|
970
|
+
const getRequestOptions = getCompletionStats(payload);
|
|
971
|
+
const getUrl = (context) => {
|
|
972
|
+
const { url } = getRequestOptions(context);
|
|
973
|
+
return url;
|
|
974
|
+
};
|
|
975
|
+
return {
|
|
976
|
+
getUrl,
|
|
977
|
+
httpMethod: "GET",
|
|
978
|
+
path: "/v3/stats/completion/{programId}",
|
|
979
|
+
pathParams: { programId: "programId" },
|
|
980
|
+
__requestType: null,
|
|
981
|
+
__originalRequestType: null,
|
|
982
|
+
__responseType: null,
|
|
983
|
+
__originalResponseType: null
|
|
984
|
+
};
|
|
985
|
+
}
|
|
986
|
+
function getPremiumStats2() {
|
|
987
|
+
const payload = {};
|
|
988
|
+
const getRequestOptions = getPremiumStats(payload);
|
|
989
|
+
const getUrl = (context) => {
|
|
990
|
+
const { url } = getRequestOptions(context);
|
|
991
|
+
return url;
|
|
992
|
+
};
|
|
993
|
+
return {
|
|
994
|
+
getUrl,
|
|
995
|
+
httpMethod: "GET",
|
|
996
|
+
path: "/v3/stats/premium",
|
|
997
|
+
pathParams: {},
|
|
998
|
+
__requestType: null,
|
|
999
|
+
__originalRequestType: null,
|
|
1000
|
+
__responseType: null,
|
|
1001
|
+
__originalResponseType: null
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
function exportParticipantsStats2() {
|
|
1005
|
+
const payload = { programId: ":programId" };
|
|
1006
|
+
const getRequestOptions = exportParticipantsStats(payload);
|
|
1007
|
+
const getUrl = (context) => {
|
|
1008
|
+
const { url } = getRequestOptions(context);
|
|
1009
|
+
return url;
|
|
1010
|
+
};
|
|
1011
|
+
return {
|
|
1012
|
+
getUrl,
|
|
1013
|
+
httpMethod: "GET",
|
|
1014
|
+
path: "/v3/participants/export/{programId}",
|
|
1015
|
+
pathParams: { programId: "programId" },
|
|
1016
|
+
__requestType: null,
|
|
1017
|
+
__originalRequestType: null,
|
|
1018
|
+
__responseType: null,
|
|
1019
|
+
__originalResponseType: null
|
|
1020
|
+
};
|
|
1021
|
+
}
|
|
1022
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1023
|
+
0 && (module.exports = {
|
|
1024
|
+
applyCoupon,
|
|
1025
|
+
bulkAddAllToProgram,
|
|
1026
|
+
bulkAddToProgram,
|
|
1027
|
+
bulkApproveAllParticipant,
|
|
1028
|
+
bulkApproveParticipant,
|
|
1029
|
+
bulkInviteAllToProgram,
|
|
1030
|
+
bulkInviteToProgram,
|
|
1031
|
+
deleteParticipant,
|
|
1032
|
+
exportParticipantsStats,
|
|
1033
|
+
getAccessStatus,
|
|
1034
|
+
getCompletionStats,
|
|
1035
|
+
getParticipant,
|
|
1036
|
+
getPremiumStats,
|
|
1037
|
+
issueCertificate,
|
|
1038
|
+
joinProgram,
|
|
1039
|
+
leaveProgram,
|
|
1040
|
+
queryParticipants,
|
|
1041
|
+
revertCoupon
|
|
1042
|
+
});
|
|
1043
|
+
//# sourceMappingURL=meta.js.map
|