@wix/auto_sdk_online-programs_participants 1.0.11 → 1.0.13
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 +6 -134
- package/build/cjs/index.js +161 -1489
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +691 -12
- package/build/cjs/index.typings.js +174 -1372
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +184 -1274
- package/build/cjs/meta.js +19 -1060
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -134
- package/build/es/index.mjs +144 -1446
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +691 -12
- package/build/es/index.typings.mjs +166 -1337
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +184 -1274
- package/build/es/meta.mjs +10 -1025
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +6 -145
- package/build/internal/cjs/index.js +161 -1489
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +691 -12
- package/build/internal/cjs/index.typings.js +174 -1372
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +184 -1274
- package/build/internal/cjs/meta.js +19 -1060
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +6 -145
- package/build/internal/es/index.mjs +144 -1446
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +691 -12
- package/build/internal/es/index.typings.mjs +166 -1337
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +184 -1274
- package/build/internal/es/meta.mjs +10 -1025
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
- package/build/cjs/online-programs-v3-participant-participants.universal-DRubTE1O.d.ts +0 -2228
- package/build/es/online-programs-v3-participant-participants.universal-DRubTE1O.d.mts +0 -2228
- package/build/internal/cjs/online-programs-v3-participant-participants.universal-DUdmZP01.d.ts +0 -2238
- package/build/internal/es/online-programs-v3-participant-participants.universal-DUdmZP01.d.mts +0 -2238
|
@@ -1,644 +1,13 @@
|
|
|
1
1
|
// src/online-programs-v3-participant-participants.http.ts
|
|
2
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
-
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
2
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
5
|
-
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
6
3
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
7
4
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
8
5
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
9
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
10
|
-
const domainToMappings = {
|
|
11
|
-
"bo._base_domain_": [
|
|
12
|
-
{
|
|
13
|
-
srcPath: "/participants-service",
|
|
14
|
-
destPath: ""
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"wixbo.ai": [
|
|
18
|
-
{
|
|
19
|
-
srcPath: "/participants-service",
|
|
20
|
-
destPath: ""
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
"wix-bo.com": [
|
|
24
|
-
{
|
|
25
|
-
srcPath: "/participants-service",
|
|
26
|
-
destPath: ""
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"manage._base_domain_": [
|
|
30
|
-
{
|
|
31
|
-
srcPath: "/participants-service",
|
|
32
|
-
destPath: ""
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
_: [
|
|
36
|
-
{
|
|
37
|
-
srcPath: "/participants-service",
|
|
38
|
-
destPath: ""
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"editor._base_domain_": [
|
|
42
|
-
{
|
|
43
|
-
srcPath: "/participants-service",
|
|
44
|
-
destPath: ""
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"blocks._base_domain_": [
|
|
48
|
-
{
|
|
49
|
-
srcPath: "/participants-service",
|
|
50
|
-
destPath: ""
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"create.editorx": [
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/participants-service",
|
|
56
|
-
destPath: ""
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"www._base_domain_": [
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/_api/participants-service",
|
|
62
|
-
destPath: ""
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"www.wixapis.com": [
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/participants-service",
|
|
68
|
-
destPath: ""
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
};
|
|
72
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
73
|
-
}
|
|
74
6
|
function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
|
|
75
|
-
const domainToMappings = {
|
|
76
|
-
"bo._base_domain_": [
|
|
77
|
-
{
|
|
78
|
-
srcPath: "/participants-service",
|
|
79
|
-
destPath: ""
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"wixbo.ai": [
|
|
83
|
-
{
|
|
84
|
-
srcPath: "/participants-service",
|
|
85
|
-
destPath: ""
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"wix-bo.com": [
|
|
89
|
-
{
|
|
90
|
-
srcPath: "/participants-service",
|
|
91
|
-
destPath: ""
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"manage._base_domain_": [
|
|
95
|
-
{
|
|
96
|
-
srcPath: "/participants-service",
|
|
97
|
-
destPath: ""
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
_: [
|
|
101
|
-
{
|
|
102
|
-
srcPath: "/participants-service",
|
|
103
|
-
destPath: ""
|
|
104
|
-
}
|
|
105
|
-
],
|
|
106
|
-
"editor._base_domain_": [
|
|
107
|
-
{
|
|
108
|
-
srcPath: "/participants-service",
|
|
109
|
-
destPath: ""
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
"blocks._base_domain_": [
|
|
113
|
-
{
|
|
114
|
-
srcPath: "/participants-service",
|
|
115
|
-
destPath: ""
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
"create.editorx": [
|
|
119
|
-
{
|
|
120
|
-
srcPath: "/participants-service",
|
|
121
|
-
destPath: ""
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"www._base_domain_": [
|
|
125
|
-
{
|
|
126
|
-
srcPath: "/_api/participants-service",
|
|
127
|
-
destPath: ""
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"www.wixapis.com": [
|
|
131
|
-
{
|
|
132
|
-
srcPath: "/participants-service",
|
|
133
|
-
destPath: ""
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
};
|
|
137
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
138
|
-
}
|
|
139
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
140
|
-
const domainToMappings = {
|
|
141
|
-
"bo._base_domain_": [
|
|
142
|
-
{
|
|
143
|
-
srcPath: "/participants-service",
|
|
144
|
-
destPath: ""
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"wixbo.ai": [
|
|
148
|
-
{
|
|
149
|
-
srcPath: "/participants-service",
|
|
150
|
-
destPath: ""
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"wix-bo.com": [
|
|
154
|
-
{
|
|
155
|
-
srcPath: "/participants-service",
|
|
156
|
-
destPath: ""
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"manage._base_domain_": [
|
|
160
|
-
{
|
|
161
|
-
srcPath: "/participants-service",
|
|
162
|
-
destPath: ""
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
_: [
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/participants-service",
|
|
168
|
-
destPath: ""
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"editor._base_domain_": [
|
|
172
|
-
{
|
|
173
|
-
srcPath: "/participants-service",
|
|
174
|
-
destPath: ""
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"blocks._base_domain_": [
|
|
178
|
-
{
|
|
179
|
-
srcPath: "/participants-service",
|
|
180
|
-
destPath: ""
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"create.editorx": [
|
|
184
|
-
{
|
|
185
|
-
srcPath: "/participants-service",
|
|
186
|
-
destPath: ""
|
|
187
|
-
}
|
|
188
|
-
],
|
|
189
|
-
"www._base_domain_": [
|
|
190
|
-
{
|
|
191
|
-
srcPath: "/_api/participants-service",
|
|
192
|
-
destPath: ""
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
"www.wixapis.com": [
|
|
196
|
-
{
|
|
197
|
-
srcPath: "/participants-service",
|
|
198
|
-
destPath: ""
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
};
|
|
7
|
+
const domainToMappings = {};
|
|
202
8
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
203
9
|
}
|
|
204
10
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
205
|
-
function createParticipant(payload) {
|
|
206
|
-
function __createParticipant({ host }) {
|
|
207
|
-
const serializedData = transformPaths(payload, [
|
|
208
|
-
{
|
|
209
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
210
|
-
paths: [
|
|
211
|
-
{ path: "participant.createdDate" },
|
|
212
|
-
{ path: "participant.updatedDate" },
|
|
213
|
-
{ path: "participant.lastActivityDate" },
|
|
214
|
-
{ path: "participant.certificate.issuedDate" }
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
219
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
220
|
-
}
|
|
221
|
-
]);
|
|
222
|
-
const metadata = {
|
|
223
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
224
|
-
method: "POST",
|
|
225
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
226
|
-
packageName: PACKAGE_NAME,
|
|
227
|
-
migrationOptions: {
|
|
228
|
-
optInTransformResponse: true
|
|
229
|
-
},
|
|
230
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
231
|
-
protoPath: "/v3/participants",
|
|
232
|
-
data: serializedData,
|
|
233
|
-
host
|
|
234
|
-
}),
|
|
235
|
-
data: serializedData,
|
|
236
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
237
|
-
{
|
|
238
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
239
|
-
paths: [
|
|
240
|
-
{ path: "participant.createdDate" },
|
|
241
|
-
{ path: "participant.updatedDate" },
|
|
242
|
-
{ path: "participant.lastActivityDate" },
|
|
243
|
-
{ path: "participant.certificate.issuedDate" }
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
248
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
249
|
-
}
|
|
250
|
-
])
|
|
251
|
-
};
|
|
252
|
-
return metadata;
|
|
253
|
-
}
|
|
254
|
-
return __createParticipant;
|
|
255
|
-
}
|
|
256
|
-
function bulkCreateParticipant(payload) {
|
|
257
|
-
function __bulkCreateParticipant({ host }) {
|
|
258
|
-
const serializedData = transformPaths(payload, [
|
|
259
|
-
{
|
|
260
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
261
|
-
paths: [
|
|
262
|
-
{ path: "participants.createdDate" },
|
|
263
|
-
{ path: "participants.updatedDate" },
|
|
264
|
-
{ path: "participants.lastActivityDate" },
|
|
265
|
-
{ path: "participants.certificate.issuedDate" }
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
270
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
271
|
-
}
|
|
272
|
-
]);
|
|
273
|
-
const metadata = {
|
|
274
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
275
|
-
method: "POST",
|
|
276
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
277
|
-
packageName: PACKAGE_NAME,
|
|
278
|
-
migrationOptions: {
|
|
279
|
-
optInTransformResponse: true
|
|
280
|
-
},
|
|
281
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
282
|
-
protoPath: "/v3/bulk/participants/create",
|
|
283
|
-
data: serializedData,
|
|
284
|
-
host
|
|
285
|
-
}),
|
|
286
|
-
data: serializedData,
|
|
287
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
288
|
-
{
|
|
289
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
290
|
-
paths: [
|
|
291
|
-
{ path: "results.item.createdDate" },
|
|
292
|
-
{ path: "results.item.updatedDate" },
|
|
293
|
-
{ path: "results.item.lastActivityDate" },
|
|
294
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
295
|
-
]
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
299
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
300
|
-
}
|
|
301
|
-
])
|
|
302
|
-
};
|
|
303
|
-
return metadata;
|
|
304
|
-
}
|
|
305
|
-
return __bulkCreateParticipant;
|
|
306
|
-
}
|
|
307
|
-
function bulkAddAllToProgram(payload) {
|
|
308
|
-
function __bulkAddAllToProgram({ host }) {
|
|
309
|
-
const metadata = {
|
|
310
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
311
|
-
method: "POST",
|
|
312
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
313
|
-
packageName: PACKAGE_NAME,
|
|
314
|
-
migrationOptions: {
|
|
315
|
-
optInTransformResponse: true
|
|
316
|
-
},
|
|
317
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
318
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
319
|
-
data: payload,
|
|
320
|
-
host
|
|
321
|
-
}),
|
|
322
|
-
data: payload
|
|
323
|
-
};
|
|
324
|
-
return metadata;
|
|
325
|
-
}
|
|
326
|
-
return __bulkAddAllToProgram;
|
|
327
|
-
}
|
|
328
|
-
function deleteParticipant(payload) {
|
|
329
|
-
function __deleteParticipant({ host }) {
|
|
330
|
-
const metadata = {
|
|
331
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
332
|
-
method: "DELETE",
|
|
333
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
334
|
-
packageName: PACKAGE_NAME,
|
|
335
|
-
migrationOptions: {
|
|
336
|
-
optInTransformResponse: true
|
|
337
|
-
},
|
|
338
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
339
|
-
protoPath: "/v3/participants/{participantId}",
|
|
340
|
-
data: payload,
|
|
341
|
-
host
|
|
342
|
-
}),
|
|
343
|
-
params: toURLSearchParams(payload)
|
|
344
|
-
};
|
|
345
|
-
return metadata;
|
|
346
|
-
}
|
|
347
|
-
return __deleteParticipant;
|
|
348
|
-
}
|
|
349
|
-
function issueCertificate(payload) {
|
|
350
|
-
function __issueCertificate({ host }) {
|
|
351
|
-
const metadata = {
|
|
352
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
353
|
-
method: "POST",
|
|
354
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
355
|
-
packageName: PACKAGE_NAME,
|
|
356
|
-
migrationOptions: {
|
|
357
|
-
optInTransformResponse: true
|
|
358
|
-
},
|
|
359
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
360
|
-
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
361
|
-
data: payload,
|
|
362
|
-
host
|
|
363
|
-
}),
|
|
364
|
-
data: payload,
|
|
365
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
366
|
-
{
|
|
367
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
368
|
-
paths: [
|
|
369
|
-
{ path: "participant.createdDate" },
|
|
370
|
-
{ path: "participant.updatedDate" },
|
|
371
|
-
{ path: "participant.lastActivityDate" },
|
|
372
|
-
{ path: "participant.certificate.issuedDate" }
|
|
373
|
-
]
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
377
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
378
|
-
}
|
|
379
|
-
])
|
|
380
|
-
};
|
|
381
|
-
return metadata;
|
|
382
|
-
}
|
|
383
|
-
return __issueCertificate;
|
|
384
|
-
}
|
|
385
|
-
function getCompletionStats(payload) {
|
|
386
|
-
function __getCompletionStats({ host }) {
|
|
387
|
-
const metadata = {
|
|
388
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
389
|
-
method: "GET",
|
|
390
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
391
|
-
packageName: PACKAGE_NAME,
|
|
392
|
-
migrationOptions: {
|
|
393
|
-
optInTransformResponse: true
|
|
394
|
-
},
|
|
395
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
396
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
397
|
-
data: payload,
|
|
398
|
-
host
|
|
399
|
-
}),
|
|
400
|
-
params: toURLSearchParams(payload),
|
|
401
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
402
|
-
{
|
|
403
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
404
|
-
paths: [{ path: "completionRate" }]
|
|
405
|
-
}
|
|
406
|
-
])
|
|
407
|
-
};
|
|
408
|
-
return metadata;
|
|
409
|
-
}
|
|
410
|
-
return __getCompletionStats;
|
|
411
|
-
}
|
|
412
|
-
function getPremiumStats(payload) {
|
|
413
|
-
function __getPremiumStats({ host }) {
|
|
414
|
-
const metadata = {
|
|
415
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
416
|
-
method: "GET",
|
|
417
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
418
|
-
packageName: PACKAGE_NAME,
|
|
419
|
-
migrationOptions: {
|
|
420
|
-
optInTransformResponse: true
|
|
421
|
-
},
|
|
422
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
423
|
-
protoPath: "/v3/stats/premium",
|
|
424
|
-
data: payload,
|
|
425
|
-
host
|
|
426
|
-
}),
|
|
427
|
-
params: toURLSearchParams(payload)
|
|
428
|
-
};
|
|
429
|
-
return metadata;
|
|
430
|
-
}
|
|
431
|
-
return __getPremiumStats;
|
|
432
|
-
}
|
|
433
|
-
function getParticipant(payload) {
|
|
434
|
-
function __getParticipant({ host }) {
|
|
435
|
-
const metadata = {
|
|
436
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
437
|
-
method: "GET",
|
|
438
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
439
|
-
packageName: PACKAGE_NAME,
|
|
440
|
-
migrationOptions: {
|
|
441
|
-
optInTransformResponse: true
|
|
442
|
-
},
|
|
443
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
444
|
-
protoPath: "/v3/participants/{participantId}",
|
|
445
|
-
data: payload,
|
|
446
|
-
host
|
|
447
|
-
}),
|
|
448
|
-
params: toURLSearchParams(payload),
|
|
449
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
450
|
-
{
|
|
451
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
452
|
-
paths: [
|
|
453
|
-
{ path: "participant.createdDate" },
|
|
454
|
-
{ path: "participant.updatedDate" },
|
|
455
|
-
{ path: "participant.lastActivityDate" },
|
|
456
|
-
{ path: "participant.certificate.issuedDate" }
|
|
457
|
-
]
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
461
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
462
|
-
}
|
|
463
|
-
])
|
|
464
|
-
};
|
|
465
|
-
return metadata;
|
|
466
|
-
}
|
|
467
|
-
return __getParticipant;
|
|
468
|
-
}
|
|
469
|
-
function queryParticipants(payload) {
|
|
470
|
-
function __queryParticipants({ host }) {
|
|
471
|
-
const metadata = {
|
|
472
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
473
|
-
method: "POST",
|
|
474
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
475
|
-
packageName: PACKAGE_NAME,
|
|
476
|
-
migrationOptions: {
|
|
477
|
-
optInTransformResponse: true
|
|
478
|
-
},
|
|
479
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
480
|
-
protoPath: "/v3/participants/query",
|
|
481
|
-
data: payload,
|
|
482
|
-
host
|
|
483
|
-
}),
|
|
484
|
-
data: payload,
|
|
485
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
486
|
-
{
|
|
487
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
488
|
-
paths: [
|
|
489
|
-
{ path: "participants.createdDate" },
|
|
490
|
-
{ path: "participants.updatedDate" },
|
|
491
|
-
{ path: "participants.lastActivityDate" },
|
|
492
|
-
{ path: "participants.certificate.issuedDate" }
|
|
493
|
-
]
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
497
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
498
|
-
}
|
|
499
|
-
])
|
|
500
|
-
};
|
|
501
|
-
return metadata;
|
|
502
|
-
}
|
|
503
|
-
return __queryParticipants;
|
|
504
|
-
}
|
|
505
|
-
function getAccessStatus(payload) {
|
|
506
|
-
function __getAccessStatus({ host }) {
|
|
507
|
-
const metadata = {
|
|
508
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
509
|
-
method: "GET",
|
|
510
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
511
|
-
packageName: PACKAGE_NAME,
|
|
512
|
-
migrationOptions: {
|
|
513
|
-
optInTransformResponse: true
|
|
514
|
-
},
|
|
515
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
516
|
-
protoPath: "/v3/participants/access",
|
|
517
|
-
data: payload,
|
|
518
|
-
host
|
|
519
|
-
}),
|
|
520
|
-
params: toURLSearchParams(payload)
|
|
521
|
-
};
|
|
522
|
-
return metadata;
|
|
523
|
-
}
|
|
524
|
-
return __getAccessStatus;
|
|
525
|
-
}
|
|
526
|
-
function bulkUpdateParticipantTags(payload) {
|
|
527
|
-
function __bulkUpdateParticipantTags({ host }) {
|
|
528
|
-
const metadata = {
|
|
529
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
530
|
-
method: "POST",
|
|
531
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
|
|
532
|
-
packageName: PACKAGE_NAME,
|
|
533
|
-
migrationOptions: {
|
|
534
|
-
optInTransformResponse: true
|
|
535
|
-
},
|
|
536
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
537
|
-
protoPath: "/v3/bulk/participants/update-tags",
|
|
538
|
-
data: payload,
|
|
539
|
-
host
|
|
540
|
-
}),
|
|
541
|
-
data: payload
|
|
542
|
-
};
|
|
543
|
-
return metadata;
|
|
544
|
-
}
|
|
545
|
-
return __bulkUpdateParticipantTags;
|
|
546
|
-
}
|
|
547
|
-
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
548
|
-
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
549
|
-
const metadata = {
|
|
550
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
551
|
-
method: "POST",
|
|
552
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
553
|
-
packageName: PACKAGE_NAME,
|
|
554
|
-
migrationOptions: {
|
|
555
|
-
optInTransformResponse: true
|
|
556
|
-
},
|
|
557
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
558
|
-
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
559
|
-
data: payload,
|
|
560
|
-
host
|
|
561
|
-
}),
|
|
562
|
-
data: payload
|
|
563
|
-
};
|
|
564
|
-
return metadata;
|
|
565
|
-
}
|
|
566
|
-
return __bulkUpdateParticipantTagsByFilter;
|
|
567
|
-
}
|
|
568
|
-
function searchParticipants(payload) {
|
|
569
|
-
function __searchParticipants({ host }) {
|
|
570
|
-
const serializedData = transformPaths(payload, [
|
|
571
|
-
{
|
|
572
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
573
|
-
paths: [
|
|
574
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
575
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
576
|
-
{
|
|
577
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
581
|
-
}
|
|
582
|
-
]
|
|
583
|
-
}
|
|
584
|
-
]);
|
|
585
|
-
const metadata = {
|
|
586
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
587
|
-
method: "POST",
|
|
588
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
589
|
-
packageName: PACKAGE_NAME,
|
|
590
|
-
migrationOptions: {
|
|
591
|
-
optInTransformResponse: true
|
|
592
|
-
},
|
|
593
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
594
|
-
protoPath: "/v3/participants/search",
|
|
595
|
-
data: serializedData,
|
|
596
|
-
host
|
|
597
|
-
}),
|
|
598
|
-
data: serializedData,
|
|
599
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
600
|
-
{
|
|
601
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
602
|
-
paths: [
|
|
603
|
-
{ path: "participants.createdDate" },
|
|
604
|
-
{ path: "participants.updatedDate" },
|
|
605
|
-
{ path: "participants.lastActivityDate" },
|
|
606
|
-
{ path: "participants.certificate.issuedDate" }
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
611
|
-
paths: [
|
|
612
|
-
{ path: "participants.progress.completionPercentage" },
|
|
613
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
614
|
-
{
|
|
615
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
619
|
-
},
|
|
620
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
621
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
622
|
-
{
|
|
623
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
627
|
-
},
|
|
628
|
-
{
|
|
629
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
633
|
-
}
|
|
634
|
-
]
|
|
635
|
-
}
|
|
636
|
-
])
|
|
637
|
-
};
|
|
638
|
-
return metadata;
|
|
639
|
-
}
|
|
640
|
-
return __searchParticipants;
|
|
641
|
-
}
|
|
642
11
|
function bulkInviteToProgram(payload) {
|
|
643
12
|
function __bulkInviteToProgram({ host }) {
|
|
644
13
|
const metadata = {
|
|
@@ -789,27 +158,6 @@ function bulkApproveAllParticipant(payload) {
|
|
|
789
158
|
}
|
|
790
159
|
return __bulkApproveAllParticipant;
|
|
791
160
|
}
|
|
792
|
-
function exportParticipantsStats(payload) {
|
|
793
|
-
function __exportParticipantsStats({ host }) {
|
|
794
|
-
const metadata = {
|
|
795
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
796
|
-
method: "GET",
|
|
797
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
798
|
-
packageName: PACKAGE_NAME,
|
|
799
|
-
migrationOptions: {
|
|
800
|
-
optInTransformResponse: true
|
|
801
|
-
},
|
|
802
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
803
|
-
protoPath: "/v3/participants/export/{programId}",
|
|
804
|
-
data: payload,
|
|
805
|
-
host
|
|
806
|
-
}),
|
|
807
|
-
params: toURLSearchParams(payload)
|
|
808
|
-
};
|
|
809
|
-
return metadata;
|
|
810
|
-
}
|
|
811
|
-
return __exportParticipantsStats;
|
|
812
|
-
}
|
|
813
161
|
|
|
814
162
|
// src/online-programs-v3-participant-participants.types.ts
|
|
815
163
|
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
@@ -821,97 +169,6 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
|
821
169
|
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
822
170
|
return JoinPath2;
|
|
823
171
|
})(JoinPath || {});
|
|
824
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
825
|
-
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
826
|
-
Status2["JOINED"] = "JOINED";
|
|
827
|
-
Status2["COMPLETED"] = "COMPLETED";
|
|
828
|
-
Status2["FAILED"] = "FAILED";
|
|
829
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
830
|
-
Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
831
|
-
Status2["REMOVED"] = "REMOVED";
|
|
832
|
-
Status2["LEFT"] = "LEFT";
|
|
833
|
-
return Status2;
|
|
834
|
-
})(Status || {});
|
|
835
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
836
|
-
SortOrder2["ASC"] = "ASC";
|
|
837
|
-
SortOrder2["DESC"] = "DESC";
|
|
838
|
-
return SortOrder2;
|
|
839
|
-
})(SortOrder || {});
|
|
840
|
-
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
841
|
-
SortType2["COUNT"] = "COUNT";
|
|
842
|
-
SortType2["VALUE"] = "VALUE";
|
|
843
|
-
return SortType2;
|
|
844
|
-
})(SortType || {});
|
|
845
|
-
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
846
|
-
SortDirection2["DESC"] = "DESC";
|
|
847
|
-
SortDirection2["ASC"] = "ASC";
|
|
848
|
-
return SortDirection2;
|
|
849
|
-
})(SortDirection || {});
|
|
850
|
-
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
851
|
-
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
852
|
-
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
853
|
-
return MissingValues2;
|
|
854
|
-
})(MissingValues || {});
|
|
855
|
-
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
856
|
-
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
857
|
-
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
858
|
-
ScalarType2["MIN"] = "MIN";
|
|
859
|
-
ScalarType2["MAX"] = "MAX";
|
|
860
|
-
return ScalarType2;
|
|
861
|
-
})(ScalarType || {});
|
|
862
|
-
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
863
|
-
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
864
|
-
NestedAggregationType2["VALUE"] = "VALUE";
|
|
865
|
-
NestedAggregationType2["RANGE"] = "RANGE";
|
|
866
|
-
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
867
|
-
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
868
|
-
return NestedAggregationType2;
|
|
869
|
-
})(NestedAggregationType || {});
|
|
870
|
-
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
871
|
-
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
872
|
-
Interval2["YEAR"] = "YEAR";
|
|
873
|
-
Interval2["MONTH"] = "MONTH";
|
|
874
|
-
Interval2["WEEK"] = "WEEK";
|
|
875
|
-
Interval2["DAY"] = "DAY";
|
|
876
|
-
Interval2["HOUR"] = "HOUR";
|
|
877
|
-
Interval2["MINUTE"] = "MINUTE";
|
|
878
|
-
Interval2["SECOND"] = "SECOND";
|
|
879
|
-
return Interval2;
|
|
880
|
-
})(Interval || {});
|
|
881
|
-
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
882
|
-
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
883
|
-
AggregationType2["VALUE"] = "VALUE";
|
|
884
|
-
AggregationType2["RANGE"] = "RANGE";
|
|
885
|
-
AggregationType2["SCALAR"] = "SCALAR";
|
|
886
|
-
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
887
|
-
AggregationType2["NESTED"] = "NESTED";
|
|
888
|
-
return AggregationType2;
|
|
889
|
-
})(AggregationType || {});
|
|
890
|
-
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
891
|
-
Mode2["OR"] = "OR";
|
|
892
|
-
Mode2["AND"] = "AND";
|
|
893
|
-
return Mode2;
|
|
894
|
-
})(Mode || {});
|
|
895
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
896
|
-
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
897
|
-
BenefitType2["LIMITED"] = "LIMITED";
|
|
898
|
-
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
899
|
-
return BenefitType2;
|
|
900
|
-
})(BenefitType || {});
|
|
901
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
902
|
-
Event2["Updated"] = "Updated";
|
|
903
|
-
Event2["Deleted"] = "Deleted";
|
|
904
|
-
Event2["Created"] = "Created";
|
|
905
|
-
return Event2;
|
|
906
|
-
})(Event || {});
|
|
907
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
908
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
909
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
910
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
911
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
912
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
913
|
-
return WebhookIdentityType2;
|
|
914
|
-
})(WebhookIdentityType || {});
|
|
915
172
|
var State = /* @__PURE__ */ ((State2) => {
|
|
916
173
|
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
917
174
|
State2["JOINED"] = "JOINED";
|
|
@@ -923,244 +180,16 @@ var State = /* @__PURE__ */ ((State2) => {
|
|
|
923
180
|
State2["LEFT"] = "LEFT";
|
|
924
181
|
return State2;
|
|
925
182
|
})(State || {});
|
|
183
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
184
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
185
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
186
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
187
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
188
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
189
|
+
return WebhookIdentityType2;
|
|
190
|
+
})(WebhookIdentityType || {});
|
|
926
191
|
|
|
927
192
|
// src/online-programs-v3-participant-participants.meta.ts
|
|
928
|
-
function createParticipant2() {
|
|
929
|
-
const payload = {};
|
|
930
|
-
const getRequestOptions = createParticipant(payload);
|
|
931
|
-
const getUrl = (context) => {
|
|
932
|
-
const { url } = getRequestOptions(context);
|
|
933
|
-
return url;
|
|
934
|
-
};
|
|
935
|
-
return {
|
|
936
|
-
getUrl,
|
|
937
|
-
httpMethod: "POST",
|
|
938
|
-
path: "/v3/participants",
|
|
939
|
-
pathParams: {},
|
|
940
|
-
__requestType: null,
|
|
941
|
-
__originalRequestType: null,
|
|
942
|
-
__responseType: null,
|
|
943
|
-
__originalResponseType: null
|
|
944
|
-
};
|
|
945
|
-
}
|
|
946
|
-
function bulkCreateParticipant2() {
|
|
947
|
-
const payload = {};
|
|
948
|
-
const getRequestOptions = bulkCreateParticipant(payload);
|
|
949
|
-
const getUrl = (context) => {
|
|
950
|
-
const { url } = getRequestOptions(context);
|
|
951
|
-
return url;
|
|
952
|
-
};
|
|
953
|
-
return {
|
|
954
|
-
getUrl,
|
|
955
|
-
httpMethod: "POST",
|
|
956
|
-
path: "/v3/bulk/participants/create",
|
|
957
|
-
pathParams: {},
|
|
958
|
-
__requestType: null,
|
|
959
|
-
__originalRequestType: null,
|
|
960
|
-
__responseType: null,
|
|
961
|
-
__originalResponseType: null
|
|
962
|
-
};
|
|
963
|
-
}
|
|
964
|
-
function bulkAddAllToProgram2() {
|
|
965
|
-
const payload = {};
|
|
966
|
-
const getRequestOptions = bulkAddAllToProgram(payload);
|
|
967
|
-
const getUrl = (context) => {
|
|
968
|
-
const { url } = getRequestOptions(context);
|
|
969
|
-
return url;
|
|
970
|
-
};
|
|
971
|
-
return {
|
|
972
|
-
getUrl,
|
|
973
|
-
httpMethod: "POST",
|
|
974
|
-
path: "/v3/bulk/participants/add-all",
|
|
975
|
-
pathParams: {},
|
|
976
|
-
__requestType: null,
|
|
977
|
-
__originalRequestType: null,
|
|
978
|
-
__responseType: null,
|
|
979
|
-
__originalResponseType: null
|
|
980
|
-
};
|
|
981
|
-
}
|
|
982
|
-
function deleteParticipant2() {
|
|
983
|
-
const payload = { participantId: ":participantId" };
|
|
984
|
-
const getRequestOptions = deleteParticipant(payload);
|
|
985
|
-
const getUrl = (context) => {
|
|
986
|
-
const { url } = getRequestOptions(context);
|
|
987
|
-
return url;
|
|
988
|
-
};
|
|
989
|
-
return {
|
|
990
|
-
getUrl,
|
|
991
|
-
httpMethod: "DELETE",
|
|
992
|
-
path: "/v3/participants/{participantId}",
|
|
993
|
-
pathParams: { participantId: "participantId" },
|
|
994
|
-
__requestType: null,
|
|
995
|
-
__originalRequestType: null,
|
|
996
|
-
__responseType: null,
|
|
997
|
-
__originalResponseType: null
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
function issueCertificate2() {
|
|
1001
|
-
const payload = { participantId: ":participantId" };
|
|
1002
|
-
const getRequestOptions = issueCertificate(payload);
|
|
1003
|
-
const getUrl = (context) => {
|
|
1004
|
-
const { url } = getRequestOptions(context);
|
|
1005
|
-
return url;
|
|
1006
|
-
};
|
|
1007
|
-
return {
|
|
1008
|
-
getUrl,
|
|
1009
|
-
httpMethod: "POST",
|
|
1010
|
-
path: "/v3/participants/{participantId}/issue-certificate",
|
|
1011
|
-
pathParams: { participantId: "participantId" },
|
|
1012
|
-
__requestType: null,
|
|
1013
|
-
__originalRequestType: null,
|
|
1014
|
-
__responseType: null,
|
|
1015
|
-
__originalResponseType: null
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
function getCompletionStats2() {
|
|
1019
|
-
const payload = { programId: ":programId" };
|
|
1020
|
-
const getRequestOptions = getCompletionStats(payload);
|
|
1021
|
-
const getUrl = (context) => {
|
|
1022
|
-
const { url } = getRequestOptions(context);
|
|
1023
|
-
return url;
|
|
1024
|
-
};
|
|
1025
|
-
return {
|
|
1026
|
-
getUrl,
|
|
1027
|
-
httpMethod: "GET",
|
|
1028
|
-
path: "/v3/stats/completion/{programId}",
|
|
1029
|
-
pathParams: { programId: "programId" },
|
|
1030
|
-
__requestType: null,
|
|
1031
|
-
__originalRequestType: null,
|
|
1032
|
-
__responseType: null,
|
|
1033
|
-
__originalResponseType: null
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
function getPremiumStats2() {
|
|
1037
|
-
const payload = {};
|
|
1038
|
-
const getRequestOptions = getPremiumStats(payload);
|
|
1039
|
-
const getUrl = (context) => {
|
|
1040
|
-
const { url } = getRequestOptions(context);
|
|
1041
|
-
return url;
|
|
1042
|
-
};
|
|
1043
|
-
return {
|
|
1044
|
-
getUrl,
|
|
1045
|
-
httpMethod: "GET",
|
|
1046
|
-
path: "/v3/stats/premium",
|
|
1047
|
-
pathParams: {},
|
|
1048
|
-
__requestType: null,
|
|
1049
|
-
__originalRequestType: null,
|
|
1050
|
-
__responseType: null,
|
|
1051
|
-
__originalResponseType: null
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
function getParticipant2() {
|
|
1055
|
-
const payload = { participantId: ":participantId" };
|
|
1056
|
-
const getRequestOptions = getParticipant(payload);
|
|
1057
|
-
const getUrl = (context) => {
|
|
1058
|
-
const { url } = getRequestOptions(context);
|
|
1059
|
-
return url;
|
|
1060
|
-
};
|
|
1061
|
-
return {
|
|
1062
|
-
getUrl,
|
|
1063
|
-
httpMethod: "GET",
|
|
1064
|
-
path: "/v3/participants/{participantId}",
|
|
1065
|
-
pathParams: { participantId: "participantId" },
|
|
1066
|
-
__requestType: null,
|
|
1067
|
-
__originalRequestType: null,
|
|
1068
|
-
__responseType: null,
|
|
1069
|
-
__originalResponseType: null
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
function queryParticipants2() {
|
|
1073
|
-
const payload = {};
|
|
1074
|
-
const getRequestOptions = queryParticipants(payload);
|
|
1075
|
-
const getUrl = (context) => {
|
|
1076
|
-
const { url } = getRequestOptions(context);
|
|
1077
|
-
return url;
|
|
1078
|
-
};
|
|
1079
|
-
return {
|
|
1080
|
-
getUrl,
|
|
1081
|
-
httpMethod: "POST",
|
|
1082
|
-
path: "/v3/participants/query",
|
|
1083
|
-
pathParams: {},
|
|
1084
|
-
__requestType: null,
|
|
1085
|
-
__originalRequestType: null,
|
|
1086
|
-
__responseType: null,
|
|
1087
|
-
__originalResponseType: null
|
|
1088
|
-
};
|
|
1089
|
-
}
|
|
1090
|
-
function getAccessStatus2() {
|
|
1091
|
-
const payload = {};
|
|
1092
|
-
const getRequestOptions = getAccessStatus(payload);
|
|
1093
|
-
const getUrl = (context) => {
|
|
1094
|
-
const { url } = getRequestOptions(context);
|
|
1095
|
-
return url;
|
|
1096
|
-
};
|
|
1097
|
-
return {
|
|
1098
|
-
getUrl,
|
|
1099
|
-
httpMethod: "GET",
|
|
1100
|
-
path: "/v3/participants/access",
|
|
1101
|
-
pathParams: {},
|
|
1102
|
-
__requestType: null,
|
|
1103
|
-
__originalRequestType: null,
|
|
1104
|
-
__responseType: null,
|
|
1105
|
-
__originalResponseType: null
|
|
1106
|
-
};
|
|
1107
|
-
}
|
|
1108
|
-
function bulkUpdateParticipantTags2() {
|
|
1109
|
-
const payload = {};
|
|
1110
|
-
const getRequestOptions = bulkUpdateParticipantTags(payload);
|
|
1111
|
-
const getUrl = (context) => {
|
|
1112
|
-
const { url } = getRequestOptions(context);
|
|
1113
|
-
return url;
|
|
1114
|
-
};
|
|
1115
|
-
return {
|
|
1116
|
-
getUrl,
|
|
1117
|
-
httpMethod: "POST",
|
|
1118
|
-
path: "/v3/bulk/participants/update-tags",
|
|
1119
|
-
pathParams: {},
|
|
1120
|
-
__requestType: null,
|
|
1121
|
-
__originalRequestType: null,
|
|
1122
|
-
__responseType: null,
|
|
1123
|
-
__originalResponseType: null
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
function bulkUpdateParticipantTagsByFilter2() {
|
|
1127
|
-
const payload = {};
|
|
1128
|
-
const getRequestOptions = bulkUpdateParticipantTagsByFilter(
|
|
1129
|
-
payload
|
|
1130
|
-
);
|
|
1131
|
-
const getUrl = (context) => {
|
|
1132
|
-
const { url } = getRequestOptions(context);
|
|
1133
|
-
return url;
|
|
1134
|
-
};
|
|
1135
|
-
return {
|
|
1136
|
-
getUrl,
|
|
1137
|
-
httpMethod: "POST",
|
|
1138
|
-
path: "/v3/bulk/participants/update-tags-by-filter",
|
|
1139
|
-
pathParams: {},
|
|
1140
|
-
__requestType: null,
|
|
1141
|
-
__originalRequestType: null,
|
|
1142
|
-
__responseType: null,
|
|
1143
|
-
__originalResponseType: null
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
function searchParticipants2() {
|
|
1147
|
-
const payload = {};
|
|
1148
|
-
const getRequestOptions = searchParticipants(payload);
|
|
1149
|
-
const getUrl = (context) => {
|
|
1150
|
-
const { url } = getRequestOptions(context);
|
|
1151
|
-
return url;
|
|
1152
|
-
};
|
|
1153
|
-
return {
|
|
1154
|
-
getUrl,
|
|
1155
|
-
httpMethod: "POST",
|
|
1156
|
-
path: "/v3/participants/search",
|
|
1157
|
-
pathParams: {},
|
|
1158
|
-
__requestType: null,
|
|
1159
|
-
__originalRequestType: null,
|
|
1160
|
-
__responseType: null,
|
|
1161
|
-
__originalResponseType: null
|
|
1162
|
-
};
|
|
1163
|
-
}
|
|
1164
193
|
function bulkInviteToProgram2() {
|
|
1165
194
|
const payload = {};
|
|
1166
195
|
const getRequestOptions = bulkInviteToProgram(payload);
|
|
@@ -1251,58 +280,14 @@ function bulkApproveAllParticipant2() {
|
|
|
1251
280
|
__originalResponseType: null
|
|
1252
281
|
};
|
|
1253
282
|
}
|
|
1254
|
-
function exportParticipantsStats2() {
|
|
1255
|
-
const payload = { programId: ":programId" };
|
|
1256
|
-
const getRequestOptions = exportParticipantsStats(payload);
|
|
1257
|
-
const getUrl = (context) => {
|
|
1258
|
-
const { url } = getRequestOptions(context);
|
|
1259
|
-
return url;
|
|
1260
|
-
};
|
|
1261
|
-
return {
|
|
1262
|
-
getUrl,
|
|
1263
|
-
httpMethod: "GET",
|
|
1264
|
-
path: "/v3/participants/export/{programId}",
|
|
1265
|
-
pathParams: { programId: "programId" },
|
|
1266
|
-
__requestType: null,
|
|
1267
|
-
__originalRequestType: null,
|
|
1268
|
-
__responseType: null,
|
|
1269
|
-
__originalResponseType: null
|
|
1270
|
-
};
|
|
1271
|
-
}
|
|
1272
283
|
export {
|
|
1273
|
-
AggregationType as AggregationTypeOriginal,
|
|
1274
|
-
BenefitType as BenefitTypeOriginal,
|
|
1275
|
-
Event as EventOriginal,
|
|
1276
|
-
Interval as IntervalOriginal,
|
|
1277
284
|
JoinPath as JoinPathOriginal,
|
|
1278
|
-
MissingValues as MissingValuesOriginal,
|
|
1279
|
-
Mode as ModeOriginal,
|
|
1280
|
-
NestedAggregationType as NestedAggregationTypeOriginal,
|
|
1281
|
-
ScalarType as ScalarTypeOriginal,
|
|
1282
|
-
SortDirection as SortDirectionOriginal,
|
|
1283
|
-
SortOrder as SortOrderOriginal,
|
|
1284
|
-
SortType as SortTypeOriginal,
|
|
1285
285
|
State as StateOriginal,
|
|
1286
|
-
Status as StatusOriginal,
|
|
1287
286
|
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
1288
|
-
bulkAddAllToProgram2 as bulkAddAllToProgram,
|
|
1289
287
|
bulkAddToProgram2 as bulkAddToProgram,
|
|
1290
288
|
bulkApproveAllParticipant2 as bulkApproveAllParticipant,
|
|
1291
289
|
bulkApproveParticipant2 as bulkApproveParticipant,
|
|
1292
|
-
bulkCreateParticipant2 as bulkCreateParticipant,
|
|
1293
290
|
bulkInviteAllToProgram2 as bulkInviteAllToProgram,
|
|
1294
|
-
bulkInviteToProgram2 as bulkInviteToProgram
|
|
1295
|
-
bulkUpdateParticipantTags2 as bulkUpdateParticipantTags,
|
|
1296
|
-
bulkUpdateParticipantTagsByFilter2 as bulkUpdateParticipantTagsByFilter,
|
|
1297
|
-
createParticipant2 as createParticipant,
|
|
1298
|
-
deleteParticipant2 as deleteParticipant,
|
|
1299
|
-
exportParticipantsStats2 as exportParticipantsStats,
|
|
1300
|
-
getAccessStatus2 as getAccessStatus,
|
|
1301
|
-
getCompletionStats2 as getCompletionStats,
|
|
1302
|
-
getParticipant2 as getParticipant,
|
|
1303
|
-
getPremiumStats2 as getPremiumStats,
|
|
1304
|
-
issueCertificate2 as issueCertificate,
|
|
1305
|
-
queryParticipants2 as queryParticipants,
|
|
1306
|
-
searchParticipants2 as searchParticipants
|
|
291
|
+
bulkInviteToProgram2 as bulkInviteToProgram
|
|
1307
292
|
};
|
|
1308
293
|
//# sourceMappingURL=meta.mjs.map
|