@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,1320 +1,200 @@
|
|
|
1
1
|
// src/online-programs-v3-participant-participants.universal.ts
|
|
2
2
|
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
-
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
4
3
|
import {
|
|
5
4
|
renameKeysFromSDKRequestToRESTRequest,
|
|
6
5
|
renameKeysFromRESTResponseToSDKResponse
|
|
7
6
|
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
8
7
|
|
|
9
8
|
// src/online-programs-v3-participant-participants.http.ts
|
|
10
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
-
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
12
9
|
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
13
|
-
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
14
10
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
15
11
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
12
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
18
|
-
const domainToMappings = {
|
|
19
|
-
"bo._base_domain_": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/participants-service",
|
|
22
|
-
destPath: ""
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
"wixbo.ai": [
|
|
26
|
-
{
|
|
27
|
-
srcPath: "/participants-service",
|
|
28
|
-
destPath: ""
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"wix-bo.com": [
|
|
32
|
-
{
|
|
33
|
-
srcPath: "/participants-service",
|
|
34
|
-
destPath: ""
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"manage._base_domain_": [
|
|
38
|
-
{
|
|
39
|
-
srcPath: "/participants-service",
|
|
40
|
-
destPath: ""
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
_: [
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/participants-service",
|
|
46
|
-
destPath: ""
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"editor._base_domain_": [
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/participants-service",
|
|
52
|
-
destPath: ""
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"blocks._base_domain_": [
|
|
56
|
-
{
|
|
57
|
-
srcPath: "/participants-service",
|
|
58
|
-
destPath: ""
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"create.editorx": [
|
|
62
|
-
{
|
|
63
|
-
srcPath: "/participants-service",
|
|
64
|
-
destPath: ""
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"www._base_domain_": [
|
|
68
|
-
{
|
|
69
|
-
srcPath: "/_api/participants-service",
|
|
70
|
-
destPath: ""
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"www.wixapis.com": [
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/participants-service",
|
|
76
|
-
destPath: ""
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
};
|
|
80
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
81
|
-
}
|
|
82
13
|
function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
|
|
83
|
-
const domainToMappings = {
|
|
84
|
-
"bo._base_domain_": [
|
|
85
|
-
{
|
|
86
|
-
srcPath: "/participants-service",
|
|
87
|
-
destPath: ""
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"wixbo.ai": [
|
|
91
|
-
{
|
|
92
|
-
srcPath: "/participants-service",
|
|
93
|
-
destPath: ""
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"wix-bo.com": [
|
|
97
|
-
{
|
|
98
|
-
srcPath: "/participants-service",
|
|
99
|
-
destPath: ""
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"manage._base_domain_": [
|
|
103
|
-
{
|
|
104
|
-
srcPath: "/participants-service",
|
|
105
|
-
destPath: ""
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
_: [
|
|
109
|
-
{
|
|
110
|
-
srcPath: "/participants-service",
|
|
111
|
-
destPath: ""
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"editor._base_domain_": [
|
|
115
|
-
{
|
|
116
|
-
srcPath: "/participants-service",
|
|
117
|
-
destPath: ""
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"blocks._base_domain_": [
|
|
121
|
-
{
|
|
122
|
-
srcPath: "/participants-service",
|
|
123
|
-
destPath: ""
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"create.editorx": [
|
|
127
|
-
{
|
|
128
|
-
srcPath: "/participants-service",
|
|
129
|
-
destPath: ""
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"www._base_domain_": [
|
|
133
|
-
{
|
|
134
|
-
srcPath: "/_api/participants-service",
|
|
135
|
-
destPath: ""
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"www.wixapis.com": [
|
|
139
|
-
{
|
|
140
|
-
srcPath: "/participants-service",
|
|
141
|
-
destPath: ""
|
|
142
|
-
}
|
|
143
|
-
]
|
|
144
|
-
};
|
|
145
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
146
|
-
}
|
|
147
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
148
|
-
const domainToMappings = {
|
|
149
|
-
"bo._base_domain_": [
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/participants-service",
|
|
152
|
-
destPath: ""
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"wixbo.ai": [
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/participants-service",
|
|
158
|
-
destPath: ""
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"wix-bo.com": [
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/participants-service",
|
|
164
|
-
destPath: ""
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"manage._base_domain_": [
|
|
168
|
-
{
|
|
169
|
-
srcPath: "/participants-service",
|
|
170
|
-
destPath: ""
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
_: [
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/participants-service",
|
|
176
|
-
destPath: ""
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"editor._base_domain_": [
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/participants-service",
|
|
182
|
-
destPath: ""
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"blocks._base_domain_": [
|
|
186
|
-
{
|
|
187
|
-
srcPath: "/participants-service",
|
|
188
|
-
destPath: ""
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
"create.editorx": [
|
|
192
|
-
{
|
|
193
|
-
srcPath: "/participants-service",
|
|
194
|
-
destPath: ""
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"www._base_domain_": [
|
|
198
|
-
{
|
|
199
|
-
srcPath: "/_api/participants-service",
|
|
200
|
-
destPath: ""
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
"www.wixapis.com": [
|
|
204
|
-
{
|
|
205
|
-
srcPath: "/participants-service",
|
|
206
|
-
destPath: ""
|
|
207
|
-
}
|
|
208
|
-
]
|
|
209
|
-
};
|
|
14
|
+
const domainToMappings = {};
|
|
210
15
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
211
16
|
}
|
|
212
17
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
213
|
-
function createParticipant(payload) {
|
|
214
|
-
function __createParticipant({ host }) {
|
|
215
|
-
const serializedData = transformPaths(payload, [
|
|
216
|
-
{
|
|
217
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
218
|
-
paths: [
|
|
219
|
-
{ path: "participant.createdDate" },
|
|
220
|
-
{ path: "participant.updatedDate" },
|
|
221
|
-
{ path: "participant.lastActivityDate" },
|
|
222
|
-
{ path: "participant.certificate.issuedDate" }
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
227
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
228
|
-
}
|
|
229
|
-
]);
|
|
230
|
-
const metadata = {
|
|
231
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
232
|
-
method: "POST",
|
|
233
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
234
|
-
packageName: PACKAGE_NAME,
|
|
235
|
-
migrationOptions: {
|
|
236
|
-
optInTransformResponse: true
|
|
237
|
-
},
|
|
238
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
239
|
-
protoPath: "/v3/participants",
|
|
240
|
-
data: serializedData,
|
|
241
|
-
host
|
|
242
|
-
}),
|
|
243
|
-
data: serializedData,
|
|
244
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
245
|
-
{
|
|
246
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
247
|
-
paths: [
|
|
248
|
-
{ path: "participant.createdDate" },
|
|
249
|
-
{ path: "participant.updatedDate" },
|
|
250
|
-
{ path: "participant.lastActivityDate" },
|
|
251
|
-
{ path: "participant.certificate.issuedDate" }
|
|
252
|
-
]
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
256
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
257
|
-
}
|
|
258
|
-
])
|
|
259
|
-
};
|
|
260
|
-
return metadata;
|
|
261
|
-
}
|
|
262
|
-
return __createParticipant;
|
|
263
|
-
}
|
|
264
|
-
function bulkCreateParticipant(payload) {
|
|
265
|
-
function __bulkCreateParticipant({ host }) {
|
|
266
|
-
const serializedData = transformPaths(payload, [
|
|
267
|
-
{
|
|
268
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
269
|
-
paths: [
|
|
270
|
-
{ path: "participants.createdDate" },
|
|
271
|
-
{ path: "participants.updatedDate" },
|
|
272
|
-
{ path: "participants.lastActivityDate" },
|
|
273
|
-
{ path: "participants.certificate.issuedDate" }
|
|
274
|
-
]
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
278
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
279
|
-
}
|
|
280
|
-
]);
|
|
281
|
-
const metadata = {
|
|
282
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
283
|
-
method: "POST",
|
|
284
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipant",
|
|
285
|
-
packageName: PACKAGE_NAME,
|
|
286
|
-
migrationOptions: {
|
|
287
|
-
optInTransformResponse: true
|
|
288
|
-
},
|
|
289
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
290
|
-
protoPath: "/v3/bulk/participants/create",
|
|
291
|
-
data: serializedData,
|
|
292
|
-
host
|
|
293
|
-
}),
|
|
294
|
-
data: serializedData,
|
|
295
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
296
|
-
{
|
|
297
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
298
|
-
paths: [
|
|
299
|
-
{ path: "results.item.createdDate" },
|
|
300
|
-
{ path: "results.item.updatedDate" },
|
|
301
|
-
{ path: "results.item.lastActivityDate" },
|
|
302
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
307
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
308
|
-
}
|
|
309
|
-
])
|
|
310
|
-
};
|
|
311
|
-
return metadata;
|
|
312
|
-
}
|
|
313
|
-
return __bulkCreateParticipant;
|
|
314
|
-
}
|
|
315
|
-
function bulkAddAllToProgram(payload) {
|
|
316
|
-
function __bulkAddAllToProgram({ host }) {
|
|
317
|
-
const metadata = {
|
|
318
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
319
|
-
method: "POST",
|
|
320
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
321
|
-
packageName: PACKAGE_NAME,
|
|
322
|
-
migrationOptions: {
|
|
323
|
-
optInTransformResponse: true
|
|
324
|
-
},
|
|
325
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
326
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
327
|
-
data: payload,
|
|
328
|
-
host
|
|
329
|
-
}),
|
|
330
|
-
data: payload
|
|
331
|
-
};
|
|
332
|
-
return metadata;
|
|
333
|
-
}
|
|
334
|
-
return __bulkAddAllToProgram;
|
|
335
|
-
}
|
|
336
|
-
function deleteParticipant(payload) {
|
|
337
|
-
function __deleteParticipant({ host }) {
|
|
338
|
-
const metadata = {
|
|
339
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
340
|
-
method: "DELETE",
|
|
341
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
342
|
-
packageName: PACKAGE_NAME,
|
|
343
|
-
migrationOptions: {
|
|
344
|
-
optInTransformResponse: true
|
|
345
|
-
},
|
|
346
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
347
|
-
protoPath: "/v3/participants/{participantId}",
|
|
348
|
-
data: payload,
|
|
349
|
-
host
|
|
350
|
-
}),
|
|
351
|
-
params: toURLSearchParams(payload)
|
|
352
|
-
};
|
|
353
|
-
return metadata;
|
|
354
|
-
}
|
|
355
|
-
return __deleteParticipant;
|
|
356
|
-
}
|
|
357
|
-
function issueCertificate(payload) {
|
|
358
|
-
function __issueCertificate({ host }) {
|
|
359
|
-
const metadata = {
|
|
360
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
361
|
-
method: "POST",
|
|
362
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
363
|
-
packageName: PACKAGE_NAME,
|
|
364
|
-
migrationOptions: {
|
|
365
|
-
optInTransformResponse: true
|
|
366
|
-
},
|
|
367
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
368
|
-
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
369
|
-
data: payload,
|
|
370
|
-
host
|
|
371
|
-
}),
|
|
372
|
-
data: payload,
|
|
373
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
374
|
-
{
|
|
375
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
376
|
-
paths: [
|
|
377
|
-
{ path: "participant.createdDate" },
|
|
378
|
-
{ path: "participant.updatedDate" },
|
|
379
|
-
{ path: "participant.lastActivityDate" },
|
|
380
|
-
{ path: "participant.certificate.issuedDate" }
|
|
381
|
-
]
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
385
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
386
|
-
}
|
|
387
|
-
])
|
|
388
|
-
};
|
|
389
|
-
return metadata;
|
|
390
|
-
}
|
|
391
|
-
return __issueCertificate;
|
|
392
|
-
}
|
|
393
|
-
function getCompletionStats(payload) {
|
|
394
|
-
function __getCompletionStats({ host }) {
|
|
395
|
-
const metadata = {
|
|
396
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
397
|
-
method: "GET",
|
|
398
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
399
|
-
packageName: PACKAGE_NAME,
|
|
400
|
-
migrationOptions: {
|
|
401
|
-
optInTransformResponse: true
|
|
402
|
-
},
|
|
403
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
404
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
405
|
-
data: payload,
|
|
406
|
-
host
|
|
407
|
-
}),
|
|
408
|
-
params: toURLSearchParams(payload),
|
|
409
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
410
|
-
{
|
|
411
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
412
|
-
paths: [{ path: "completionRate" }]
|
|
413
|
-
}
|
|
414
|
-
])
|
|
415
|
-
};
|
|
416
|
-
return metadata;
|
|
417
|
-
}
|
|
418
|
-
return __getCompletionStats;
|
|
419
|
-
}
|
|
420
|
-
function getPremiumStats(payload) {
|
|
421
|
-
function __getPremiumStats({ host }) {
|
|
422
|
-
const metadata = {
|
|
423
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
424
|
-
method: "GET",
|
|
425
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
426
|
-
packageName: PACKAGE_NAME,
|
|
427
|
-
migrationOptions: {
|
|
428
|
-
optInTransformResponse: true
|
|
429
|
-
},
|
|
430
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
431
|
-
protoPath: "/v3/stats/premium",
|
|
432
|
-
data: payload,
|
|
433
|
-
host
|
|
434
|
-
}),
|
|
435
|
-
params: toURLSearchParams(payload)
|
|
436
|
-
};
|
|
437
|
-
return metadata;
|
|
438
|
-
}
|
|
439
|
-
return __getPremiumStats;
|
|
440
|
-
}
|
|
441
|
-
function getParticipant(payload) {
|
|
442
|
-
function __getParticipant({ host }) {
|
|
443
|
-
const metadata = {
|
|
444
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
445
|
-
method: "GET",
|
|
446
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
447
|
-
packageName: PACKAGE_NAME,
|
|
448
|
-
migrationOptions: {
|
|
449
|
-
optInTransformResponse: true
|
|
450
|
-
},
|
|
451
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
452
|
-
protoPath: "/v3/participants/{participantId}",
|
|
453
|
-
data: payload,
|
|
454
|
-
host
|
|
455
|
-
}),
|
|
456
|
-
params: toURLSearchParams(payload),
|
|
457
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
458
|
-
{
|
|
459
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
460
|
-
paths: [
|
|
461
|
-
{ path: "participant.createdDate" },
|
|
462
|
-
{ path: "participant.updatedDate" },
|
|
463
|
-
{ path: "participant.lastActivityDate" },
|
|
464
|
-
{ path: "participant.certificate.issuedDate" }
|
|
465
|
-
]
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
469
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
470
|
-
}
|
|
471
|
-
])
|
|
472
|
-
};
|
|
473
|
-
return metadata;
|
|
474
|
-
}
|
|
475
|
-
return __getParticipant;
|
|
476
|
-
}
|
|
477
|
-
function queryParticipants(payload) {
|
|
478
|
-
function __queryParticipants({ host }) {
|
|
479
|
-
const metadata = {
|
|
480
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
481
|
-
method: "POST",
|
|
482
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
483
|
-
packageName: PACKAGE_NAME,
|
|
484
|
-
migrationOptions: {
|
|
485
|
-
optInTransformResponse: true
|
|
486
|
-
},
|
|
487
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
488
|
-
protoPath: "/v3/participants/query",
|
|
489
|
-
data: payload,
|
|
490
|
-
host
|
|
491
|
-
}),
|
|
492
|
-
data: payload,
|
|
493
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
494
|
-
{
|
|
495
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
496
|
-
paths: [
|
|
497
|
-
{ path: "participants.createdDate" },
|
|
498
|
-
{ path: "participants.updatedDate" },
|
|
499
|
-
{ path: "participants.lastActivityDate" },
|
|
500
|
-
{ path: "participants.certificate.issuedDate" }
|
|
501
|
-
]
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
505
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
506
|
-
}
|
|
507
|
-
])
|
|
508
|
-
};
|
|
509
|
-
return metadata;
|
|
510
|
-
}
|
|
511
|
-
return __queryParticipants;
|
|
512
|
-
}
|
|
513
|
-
function getAccessStatus(payload) {
|
|
514
|
-
function __getAccessStatus({ host }) {
|
|
515
|
-
const metadata = {
|
|
516
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
517
|
-
method: "GET",
|
|
518
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
519
|
-
packageName: PACKAGE_NAME,
|
|
520
|
-
migrationOptions: {
|
|
521
|
-
optInTransformResponse: true
|
|
522
|
-
},
|
|
523
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
524
|
-
protoPath: "/v3/participants/access",
|
|
525
|
-
data: payload,
|
|
526
|
-
host
|
|
527
|
-
}),
|
|
528
|
-
params: toURLSearchParams(payload)
|
|
529
|
-
};
|
|
530
|
-
return metadata;
|
|
531
|
-
}
|
|
532
|
-
return __getAccessStatus;
|
|
533
|
-
}
|
|
534
|
-
function bulkUpdateParticipantTags(payload) {
|
|
535
|
-
function __bulkUpdateParticipantTags({ host }) {
|
|
536
|
-
const metadata = {
|
|
537
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
538
|
-
method: "POST",
|
|
539
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
|
|
540
|
-
packageName: PACKAGE_NAME,
|
|
541
|
-
migrationOptions: {
|
|
542
|
-
optInTransformResponse: true
|
|
543
|
-
},
|
|
544
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
545
|
-
protoPath: "/v3/bulk/participants/update-tags",
|
|
546
|
-
data: payload,
|
|
547
|
-
host
|
|
548
|
-
}),
|
|
549
|
-
data: payload
|
|
550
|
-
};
|
|
551
|
-
return metadata;
|
|
552
|
-
}
|
|
553
|
-
return __bulkUpdateParticipantTags;
|
|
554
|
-
}
|
|
555
|
-
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
556
|
-
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
557
|
-
const metadata = {
|
|
558
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
559
|
-
method: "POST",
|
|
560
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
561
|
-
packageName: PACKAGE_NAME,
|
|
562
|
-
migrationOptions: {
|
|
563
|
-
optInTransformResponse: true
|
|
564
|
-
},
|
|
565
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
566
|
-
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
567
|
-
data: payload,
|
|
568
|
-
host
|
|
569
|
-
}),
|
|
570
|
-
data: payload
|
|
571
|
-
};
|
|
572
|
-
return metadata;
|
|
573
|
-
}
|
|
574
|
-
return __bulkUpdateParticipantTagsByFilter;
|
|
575
|
-
}
|
|
576
|
-
function searchParticipants(payload) {
|
|
577
|
-
function __searchParticipants({ host }) {
|
|
578
|
-
const serializedData = transformPaths(payload, [
|
|
579
|
-
{
|
|
580
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
581
|
-
paths: [
|
|
582
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
583
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
584
|
-
{
|
|
585
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
589
|
-
}
|
|
590
|
-
]
|
|
591
|
-
}
|
|
592
|
-
]);
|
|
593
|
-
const metadata = {
|
|
594
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
595
|
-
method: "POST",
|
|
596
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
597
|
-
packageName: PACKAGE_NAME,
|
|
598
|
-
migrationOptions: {
|
|
599
|
-
optInTransformResponse: true
|
|
600
|
-
},
|
|
601
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
602
|
-
protoPath: "/v3/participants/search",
|
|
603
|
-
data: serializedData,
|
|
604
|
-
host
|
|
605
|
-
}),
|
|
606
|
-
data: serializedData,
|
|
607
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
608
|
-
{
|
|
609
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
610
|
-
paths: [
|
|
611
|
-
{ path: "participants.createdDate" },
|
|
612
|
-
{ path: "participants.updatedDate" },
|
|
613
|
-
{ path: "participants.lastActivityDate" },
|
|
614
|
-
{ path: "participants.certificate.issuedDate" }
|
|
615
|
-
]
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
619
|
-
paths: [
|
|
620
|
-
{ path: "participants.progress.completionPercentage" },
|
|
621
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
622
|
-
{
|
|
623
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
627
|
-
},
|
|
628
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
629
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
630
|
-
{
|
|
631
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
641
|
-
}
|
|
642
|
-
]
|
|
643
|
-
}
|
|
644
|
-
])
|
|
645
|
-
};
|
|
646
|
-
return metadata;
|
|
647
|
-
}
|
|
648
|
-
return __searchParticipants;
|
|
649
|
-
}
|
|
650
18
|
function bulkInviteToProgram(payload) {
|
|
651
|
-
function __bulkInviteToProgram({ host }) {
|
|
652
|
-
const metadata = {
|
|
653
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
654
|
-
method: "POST",
|
|
655
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
656
|
-
packageName: PACKAGE_NAME,
|
|
657
|
-
migrationOptions: {
|
|
658
|
-
optInTransformResponse: true
|
|
659
|
-
},
|
|
660
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
661
|
-
protoPath: "/v3/bulk/participants/invite",
|
|
662
|
-
data: payload,
|
|
663
|
-
host
|
|
664
|
-
}),
|
|
665
|
-
data: payload,
|
|
666
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
667
|
-
{
|
|
668
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
669
|
-
paths: [
|
|
670
|
-
{ path: "results.item.createdDate" },
|
|
671
|
-
{ path: "results.item.updatedDate" },
|
|
672
|
-
{ path: "results.item.lastActivityDate" },
|
|
673
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
674
|
-
]
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
678
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
679
|
-
}
|
|
680
|
-
])
|
|
681
|
-
};
|
|
682
|
-
return metadata;
|
|
683
|
-
}
|
|
684
|
-
return __bulkInviteToProgram;
|
|
685
|
-
}
|
|
686
|
-
function bulkInviteAllToProgram(payload) {
|
|
687
|
-
function __bulkInviteAllToProgram({ host }) {
|
|
688
|
-
const metadata = {
|
|
689
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
690
|
-
method: "POST",
|
|
691
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
692
|
-
packageName: PACKAGE_NAME,
|
|
693
|
-
migrationOptions: {
|
|
694
|
-
optInTransformResponse: true
|
|
695
|
-
},
|
|
696
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
697
|
-
protoPath: "/v3/bulk/participants/invite-all",
|
|
698
|
-
data: payload,
|
|
699
|
-
host
|
|
700
|
-
}),
|
|
701
|
-
data: payload
|
|
702
|
-
};
|
|
703
|
-
return metadata;
|
|
704
|
-
}
|
|
705
|
-
return __bulkInviteAllToProgram;
|
|
706
|
-
}
|
|
707
|
-
function bulkAddToProgram(payload) {
|
|
708
|
-
function __bulkAddToProgram({ host }) {
|
|
709
|
-
const metadata = {
|
|
710
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
711
|
-
method: "POST",
|
|
712
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
713
|
-
packageName: PACKAGE_NAME,
|
|
714
|
-
migrationOptions: {
|
|
715
|
-
optInTransformResponse: true
|
|
716
|
-
},
|
|
717
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
718
|
-
protoPath: "/v3/bulk/participants/add",
|
|
719
|
-
data: payload,
|
|
720
|
-
host
|
|
721
|
-
}),
|
|
722
|
-
data: payload,
|
|
723
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
724
|
-
{
|
|
725
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
726
|
-
paths: [
|
|
727
|
-
{ path: "results.item.createdDate" },
|
|
728
|
-
{ path: "results.item.updatedDate" },
|
|
729
|
-
{ path: "results.item.lastActivityDate" },
|
|
730
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
731
|
-
]
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
735
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
736
|
-
}
|
|
737
|
-
])
|
|
738
|
-
};
|
|
739
|
-
return metadata;
|
|
740
|
-
}
|
|
741
|
-
return __bulkAddToProgram;
|
|
742
|
-
}
|
|
743
|
-
function bulkApproveParticipant(payload) {
|
|
744
|
-
function __bulkApproveParticipant({ host }) {
|
|
745
|
-
const metadata = {
|
|
746
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
747
|
-
method: "POST",
|
|
748
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
749
|
-
packageName: PACKAGE_NAME,
|
|
750
|
-
migrationOptions: {
|
|
751
|
-
optInTransformResponse: true
|
|
752
|
-
},
|
|
753
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
754
|
-
protoPath: "/v3/bulk/participants/approve",
|
|
755
|
-
data: payload,
|
|
756
|
-
host
|
|
757
|
-
}),
|
|
758
|
-
data: payload,
|
|
759
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
760
|
-
{
|
|
761
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
762
|
-
paths: [
|
|
763
|
-
{ path: "results.item.createdDate" },
|
|
764
|
-
{ path: "results.item.updatedDate" },
|
|
765
|
-
{ path: "results.item.lastActivityDate" },
|
|
766
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
767
|
-
]
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
771
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
772
|
-
}
|
|
773
|
-
])
|
|
774
|
-
};
|
|
775
|
-
return metadata;
|
|
776
|
-
}
|
|
777
|
-
return __bulkApproveParticipant;
|
|
778
|
-
}
|
|
779
|
-
function bulkApproveAllParticipant(payload) {
|
|
780
|
-
function __bulkApproveAllParticipant({ host }) {
|
|
781
|
-
const metadata = {
|
|
782
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
783
|
-
method: "POST",
|
|
784
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
785
|
-
packageName: PACKAGE_NAME,
|
|
786
|
-
migrationOptions: {
|
|
787
|
-
optInTransformResponse: true
|
|
788
|
-
},
|
|
789
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
790
|
-
protoPath: "/v3/bulk/participants/approve-all",
|
|
791
|
-
data: payload,
|
|
792
|
-
host
|
|
793
|
-
}),
|
|
794
|
-
data: payload
|
|
795
|
-
};
|
|
796
|
-
return metadata;
|
|
797
|
-
}
|
|
798
|
-
return __bulkApproveAllParticipant;
|
|
799
|
-
}
|
|
800
|
-
function exportParticipantsStats(payload) {
|
|
801
|
-
function __exportParticipantsStats({ host }) {
|
|
802
|
-
const metadata = {
|
|
803
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
804
|
-
method: "GET",
|
|
805
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
806
|
-
packageName: PACKAGE_NAME,
|
|
807
|
-
migrationOptions: {
|
|
808
|
-
optInTransformResponse: true
|
|
809
|
-
},
|
|
810
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
811
|
-
protoPath: "/v3/participants/export/{programId}",
|
|
812
|
-
data: payload,
|
|
813
|
-
host
|
|
814
|
-
}),
|
|
815
|
-
params: toURLSearchParams(payload)
|
|
816
|
-
};
|
|
817
|
-
return metadata;
|
|
818
|
-
}
|
|
819
|
-
return __exportParticipantsStats;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
823
|
-
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
824
|
-
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
825
|
-
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
826
|
-
JoinPath2["FREE"] = "FREE";
|
|
827
|
-
JoinPath2["ADDED"] = "ADDED";
|
|
828
|
-
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
829
|
-
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
830
|
-
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
831
|
-
return JoinPath2;
|
|
832
|
-
})(JoinPath || {});
|
|
833
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
834
|
-
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
835
|
-
Status2["JOINED"] = "JOINED";
|
|
836
|
-
Status2["COMPLETED"] = "COMPLETED";
|
|
837
|
-
Status2["FAILED"] = "FAILED";
|
|
838
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
839
|
-
Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
840
|
-
Status2["REMOVED"] = "REMOVED";
|
|
841
|
-
Status2["LEFT"] = "LEFT";
|
|
842
|
-
return Status2;
|
|
843
|
-
})(Status || {});
|
|
844
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
845
|
-
SortOrder2["ASC"] = "ASC";
|
|
846
|
-
SortOrder2["DESC"] = "DESC";
|
|
847
|
-
return SortOrder2;
|
|
848
|
-
})(SortOrder || {});
|
|
849
|
-
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
850
|
-
SortType2["COUNT"] = "COUNT";
|
|
851
|
-
SortType2["VALUE"] = "VALUE";
|
|
852
|
-
return SortType2;
|
|
853
|
-
})(SortType || {});
|
|
854
|
-
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
855
|
-
SortDirection2["DESC"] = "DESC";
|
|
856
|
-
SortDirection2["ASC"] = "ASC";
|
|
857
|
-
return SortDirection2;
|
|
858
|
-
})(SortDirection || {});
|
|
859
|
-
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
860
|
-
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
861
|
-
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
862
|
-
return MissingValues2;
|
|
863
|
-
})(MissingValues || {});
|
|
864
|
-
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
865
|
-
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
866
|
-
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
867
|
-
ScalarType2["MIN"] = "MIN";
|
|
868
|
-
ScalarType2["MAX"] = "MAX";
|
|
869
|
-
return ScalarType2;
|
|
870
|
-
})(ScalarType || {});
|
|
871
|
-
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
872
|
-
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
873
|
-
NestedAggregationType2["VALUE"] = "VALUE";
|
|
874
|
-
NestedAggregationType2["RANGE"] = "RANGE";
|
|
875
|
-
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
876
|
-
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
877
|
-
return NestedAggregationType2;
|
|
878
|
-
})(NestedAggregationType || {});
|
|
879
|
-
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
880
|
-
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
881
|
-
Interval2["YEAR"] = "YEAR";
|
|
882
|
-
Interval2["MONTH"] = "MONTH";
|
|
883
|
-
Interval2["WEEK"] = "WEEK";
|
|
884
|
-
Interval2["DAY"] = "DAY";
|
|
885
|
-
Interval2["HOUR"] = "HOUR";
|
|
886
|
-
Interval2["MINUTE"] = "MINUTE";
|
|
887
|
-
Interval2["SECOND"] = "SECOND";
|
|
888
|
-
return Interval2;
|
|
889
|
-
})(Interval || {});
|
|
890
|
-
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
891
|
-
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
892
|
-
AggregationType2["VALUE"] = "VALUE";
|
|
893
|
-
AggregationType2["RANGE"] = "RANGE";
|
|
894
|
-
AggregationType2["SCALAR"] = "SCALAR";
|
|
895
|
-
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
896
|
-
AggregationType2["NESTED"] = "NESTED";
|
|
897
|
-
return AggregationType2;
|
|
898
|
-
})(AggregationType || {});
|
|
899
|
-
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
900
|
-
Mode2["OR"] = "OR";
|
|
901
|
-
Mode2["AND"] = "AND";
|
|
902
|
-
return Mode2;
|
|
903
|
-
})(Mode || {});
|
|
904
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
905
|
-
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
906
|
-
BenefitType2["LIMITED"] = "LIMITED";
|
|
907
|
-
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
908
|
-
return BenefitType2;
|
|
909
|
-
})(BenefitType || {});
|
|
910
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
911
|
-
Event2["Updated"] = "Updated";
|
|
912
|
-
Event2["Deleted"] = "Deleted";
|
|
913
|
-
Event2["Created"] = "Created";
|
|
914
|
-
return Event2;
|
|
915
|
-
})(Event || {});
|
|
916
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
917
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
918
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
919
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
920
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
921
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
922
|
-
return WebhookIdentityType2;
|
|
923
|
-
})(WebhookIdentityType || {});
|
|
924
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
925
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
926
|
-
State2["JOINED"] = "JOINED";
|
|
927
|
-
State2["COMPLETED"] = "COMPLETED";
|
|
928
|
-
State2["FAILED"] = "FAILED";
|
|
929
|
-
State2["SUSPENDED"] = "SUSPENDED";
|
|
930
|
-
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
931
|
-
State2["REMOVED"] = "REMOVED";
|
|
932
|
-
State2["LEFT"] = "LEFT";
|
|
933
|
-
return State2;
|
|
934
|
-
})(State || {});
|
|
935
|
-
async function createParticipant2(participant) {
|
|
936
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
937
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
938
|
-
participant
|
|
939
|
-
});
|
|
940
|
-
const reqOpts = createParticipant(payload);
|
|
941
|
-
sideEffects?.onSiteCall?.();
|
|
942
|
-
try {
|
|
943
|
-
const result = await httpClient.request(reqOpts);
|
|
944
|
-
sideEffects?.onSuccess?.(result);
|
|
945
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
946
|
-
} catch (err) {
|
|
947
|
-
const transformedError = sdkTransformError(
|
|
948
|
-
err,
|
|
949
|
-
{
|
|
950
|
-
spreadPathsToArguments: {},
|
|
951
|
-
explicitPathsToArguments: { participant: "$[0]" },
|
|
952
|
-
singleArgumentUnchanged: false
|
|
953
|
-
},
|
|
954
|
-
["participant"]
|
|
955
|
-
);
|
|
956
|
-
sideEffects?.onError?.(err);
|
|
957
|
-
throw transformedError;
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
async function bulkCreateParticipant2(participants, options) {
|
|
961
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
962
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
963
|
-
participants,
|
|
964
|
-
returnEntity: options?.returnEntity
|
|
965
|
-
});
|
|
966
|
-
const reqOpts = bulkCreateParticipant(payload);
|
|
967
|
-
sideEffects?.onSiteCall?.();
|
|
968
|
-
try {
|
|
969
|
-
const result = await httpClient.request(reqOpts);
|
|
970
|
-
sideEffects?.onSuccess?.(result);
|
|
971
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
972
|
-
} catch (err) {
|
|
973
|
-
const transformedError = sdkTransformError(
|
|
974
|
-
err,
|
|
975
|
-
{
|
|
976
|
-
spreadPathsToArguments: {},
|
|
977
|
-
explicitPathsToArguments: {
|
|
978
|
-
participants: "$[0]",
|
|
979
|
-
returnEntity: "$[1].returnEntity"
|
|
980
|
-
},
|
|
981
|
-
singleArgumentUnchanged: false
|
|
982
|
-
},
|
|
983
|
-
["participants", "options"]
|
|
984
|
-
);
|
|
985
|
-
sideEffects?.onError?.(err);
|
|
986
|
-
throw transformedError;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
async function bulkAddAllToProgram2(programId, options) {
|
|
990
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
991
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
992
|
-
programId,
|
|
993
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
994
|
-
});
|
|
995
|
-
const reqOpts = bulkAddAllToProgram(payload);
|
|
996
|
-
sideEffects?.onSiteCall?.();
|
|
997
|
-
try {
|
|
998
|
-
const result = await httpClient.request(reqOpts);
|
|
999
|
-
sideEffects?.onSuccess?.(result);
|
|
1000
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1001
|
-
} catch (err) {
|
|
1002
|
-
const transformedError = sdkTransformError(
|
|
1003
|
-
err,
|
|
1004
|
-
{
|
|
1005
|
-
spreadPathsToArguments: {},
|
|
1006
|
-
explicitPathsToArguments: {
|
|
1007
|
-
programId: "$[0]",
|
|
1008
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1009
|
-
},
|
|
1010
|
-
singleArgumentUnchanged: false
|
|
1011
|
-
},
|
|
1012
|
-
["programId", "options"]
|
|
1013
|
-
);
|
|
1014
|
-
sideEffects?.onError?.(err);
|
|
1015
|
-
throw transformedError;
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
async function deleteParticipant2(participantId) {
|
|
1019
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1020
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1021
|
-
participantId
|
|
1022
|
-
});
|
|
1023
|
-
const reqOpts = deleteParticipant(payload);
|
|
1024
|
-
sideEffects?.onSiteCall?.();
|
|
1025
|
-
try {
|
|
1026
|
-
const result = await httpClient.request(reqOpts);
|
|
1027
|
-
sideEffects?.onSuccess?.(result);
|
|
1028
|
-
} catch (err) {
|
|
1029
|
-
const transformedError = sdkTransformError(
|
|
1030
|
-
err,
|
|
1031
|
-
{
|
|
1032
|
-
spreadPathsToArguments: {},
|
|
1033
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1034
|
-
singleArgumentUnchanged: false
|
|
1035
|
-
},
|
|
1036
|
-
["participantId"]
|
|
1037
|
-
);
|
|
1038
|
-
sideEffects?.onError?.(err);
|
|
1039
|
-
throw transformedError;
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
async function issueCertificate2(participantId) {
|
|
1043
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1044
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1045
|
-
participantId
|
|
1046
|
-
});
|
|
1047
|
-
const reqOpts = issueCertificate(payload);
|
|
1048
|
-
sideEffects?.onSiteCall?.();
|
|
1049
|
-
try {
|
|
1050
|
-
const result = await httpClient.request(reqOpts);
|
|
1051
|
-
sideEffects?.onSuccess?.(result);
|
|
1052
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1053
|
-
} catch (err) {
|
|
1054
|
-
const transformedError = sdkTransformError(
|
|
1055
|
-
err,
|
|
1056
|
-
{
|
|
1057
|
-
spreadPathsToArguments: {},
|
|
1058
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1059
|
-
singleArgumentUnchanged: false
|
|
1060
|
-
},
|
|
1061
|
-
["participantId"]
|
|
1062
|
-
);
|
|
1063
|
-
sideEffects?.onError?.(err);
|
|
1064
|
-
throw transformedError;
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
async function getCompletionStats2(programId) {
|
|
1068
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1069
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1070
|
-
programId
|
|
1071
|
-
});
|
|
1072
|
-
const reqOpts = getCompletionStats(payload);
|
|
1073
|
-
sideEffects?.onSiteCall?.();
|
|
1074
|
-
try {
|
|
1075
|
-
const result = await httpClient.request(reqOpts);
|
|
1076
|
-
sideEffects?.onSuccess?.(result);
|
|
1077
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1078
|
-
} catch (err) {
|
|
1079
|
-
const transformedError = sdkTransformError(
|
|
1080
|
-
err,
|
|
1081
|
-
{
|
|
1082
|
-
spreadPathsToArguments: {},
|
|
1083
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1084
|
-
singleArgumentUnchanged: false
|
|
1085
|
-
},
|
|
1086
|
-
["programId"]
|
|
1087
|
-
);
|
|
1088
|
-
sideEffects?.onError?.(err);
|
|
1089
|
-
throw transformedError;
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
async function getPremiumStats2() {
|
|
1093
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1094
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
1095
|
-
const reqOpts = getPremiumStats(payload);
|
|
1096
|
-
sideEffects?.onSiteCall?.();
|
|
1097
|
-
try {
|
|
1098
|
-
const result = await httpClient.request(reqOpts);
|
|
1099
|
-
sideEffects?.onSuccess?.(result);
|
|
1100
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1101
|
-
} catch (err) {
|
|
1102
|
-
const transformedError = sdkTransformError(
|
|
1103
|
-
err,
|
|
1104
|
-
{
|
|
1105
|
-
spreadPathsToArguments: {},
|
|
1106
|
-
explicitPathsToArguments: {},
|
|
1107
|
-
singleArgumentUnchanged: false
|
|
1108
|
-
},
|
|
1109
|
-
[]
|
|
1110
|
-
);
|
|
1111
|
-
sideEffects?.onError?.(err);
|
|
1112
|
-
throw transformedError;
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
async function getParticipant2(participantId) {
|
|
1116
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1117
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1118
|
-
participantId
|
|
1119
|
-
});
|
|
1120
|
-
const reqOpts = getParticipant(payload);
|
|
1121
|
-
sideEffects?.onSiteCall?.();
|
|
1122
|
-
try {
|
|
1123
|
-
const result = await httpClient.request(reqOpts);
|
|
1124
|
-
sideEffects?.onSuccess?.(result);
|
|
1125
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.participant;
|
|
1126
|
-
} catch (err) {
|
|
1127
|
-
const transformedError = sdkTransformError(
|
|
1128
|
-
err,
|
|
1129
|
-
{
|
|
1130
|
-
spreadPathsToArguments: {},
|
|
1131
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1132
|
-
singleArgumentUnchanged: false
|
|
1133
|
-
},
|
|
1134
|
-
["participantId"]
|
|
1135
|
-
);
|
|
1136
|
-
sideEffects?.onError?.(err);
|
|
1137
|
-
throw transformedError;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
function queryParticipants2() {
|
|
1141
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1142
|
-
return queryBuilder({
|
|
1143
|
-
func: async (payload) => {
|
|
1144
|
-
const reqOpts = queryParticipants(payload);
|
|
1145
|
-
sideEffects?.onSiteCall?.();
|
|
1146
|
-
try {
|
|
1147
|
-
const result = await httpClient.request(reqOpts);
|
|
1148
|
-
sideEffects?.onSuccess?.(result);
|
|
1149
|
-
return result;
|
|
1150
|
-
} catch (err) {
|
|
1151
|
-
sideEffects?.onError?.(err);
|
|
1152
|
-
throw err;
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
requestTransformer: (query) => {
|
|
1156
|
-
const args = [query, {}];
|
|
1157
|
-
return renameKeysFromSDKRequestToRESTRequest({
|
|
1158
|
-
...args?.[1],
|
|
1159
|
-
query: args?.[0]
|
|
1160
|
-
});
|
|
1161
|
-
},
|
|
1162
|
-
responseTransformer: ({
|
|
1163
|
-
data
|
|
1164
|
-
}) => {
|
|
1165
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
1166
|
-
transformPaths2(data, [])
|
|
1167
|
-
);
|
|
1168
|
-
return {
|
|
1169
|
-
items: transformedData?.participants,
|
|
1170
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
1171
|
-
};
|
|
1172
|
-
},
|
|
1173
|
-
errorTransformer: (err) => {
|
|
1174
|
-
const transformedError = sdkTransformError(err, {
|
|
1175
|
-
spreadPathsToArguments: {},
|
|
1176
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1177
|
-
singleArgumentUnchanged: false
|
|
1178
|
-
});
|
|
1179
|
-
throw transformedError;
|
|
1180
|
-
},
|
|
1181
|
-
pagingMethod: "CURSOR",
|
|
1182
|
-
transformationPaths: {}
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
async function typedQueryParticipants(query) {
|
|
1186
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1187
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1188
|
-
const reqOpts = queryParticipants(payload);
|
|
1189
|
-
sideEffects?.onSiteCall?.();
|
|
1190
|
-
try {
|
|
1191
|
-
const result = await httpClient.request(reqOpts);
|
|
1192
|
-
sideEffects?.onSuccess?.(result);
|
|
1193
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1194
|
-
} catch (err) {
|
|
1195
|
-
const transformedError = sdkTransformError(
|
|
1196
|
-
err,
|
|
1197
|
-
{
|
|
1198
|
-
spreadPathsToArguments: {},
|
|
1199
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1200
|
-
singleArgumentUnchanged: false
|
|
19
|
+
function __bulkInviteToProgram({ host }) {
|
|
20
|
+
const metadata = {
|
|
21
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
22
|
+
method: "POST",
|
|
23
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
24
|
+
packageName: PACKAGE_NAME,
|
|
25
|
+
migrationOptions: {
|
|
26
|
+
optInTransformResponse: true
|
|
1201
27
|
},
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
28
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
29
|
+
protoPath: "/v3/bulk/participants/invite",
|
|
30
|
+
data: payload,
|
|
31
|
+
host
|
|
32
|
+
}),
|
|
33
|
+
data: payload,
|
|
34
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
35
|
+
{
|
|
36
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
37
|
+
paths: [
|
|
38
|
+
{ path: "results.item.createdDate" },
|
|
39
|
+
{ path: "results.item.updatedDate" },
|
|
40
|
+
{ path: "results.item.lastActivityDate" },
|
|
41
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
46
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
47
|
+
}
|
|
48
|
+
])
|
|
49
|
+
};
|
|
50
|
+
return metadata;
|
|
1206
51
|
}
|
|
52
|
+
return __bulkInviteToProgram;
|
|
1207
53
|
}
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
} catch (err) {
|
|
1218
|
-
const transformedError = sdkTransformError(
|
|
1219
|
-
err,
|
|
1220
|
-
{
|
|
1221
|
-
spreadPathsToArguments: {},
|
|
1222
|
-
explicitPathsToArguments: {},
|
|
1223
|
-
singleArgumentUnchanged: false
|
|
54
|
+
function bulkInviteAllToProgram(payload) {
|
|
55
|
+
function __bulkInviteAllToProgram({ host }) {
|
|
56
|
+
const metadata = {
|
|
57
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
58
|
+
method: "POST",
|
|
59
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
60
|
+
packageName: PACKAGE_NAME,
|
|
61
|
+
migrationOptions: {
|
|
62
|
+
optInTransformResponse: true
|
|
1224
63
|
},
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
64
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
65
|
+
protoPath: "/v3/bulk/participants/invite-all",
|
|
66
|
+
data: payload,
|
|
67
|
+
host
|
|
68
|
+
}),
|
|
69
|
+
data: payload
|
|
70
|
+
};
|
|
71
|
+
return metadata;
|
|
1229
72
|
}
|
|
73
|
+
return __bulkInviteAllToProgram;
|
|
1230
74
|
}
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
try {
|
|
1241
|
-
const result = await httpClient.request(reqOpts);
|
|
1242
|
-
sideEffects?.onSuccess?.(result);
|
|
1243
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1244
|
-
} catch (err) {
|
|
1245
|
-
const transformedError = sdkTransformError(
|
|
1246
|
-
err,
|
|
1247
|
-
{
|
|
1248
|
-
spreadPathsToArguments: {},
|
|
1249
|
-
explicitPathsToArguments: {
|
|
1250
|
-
participantIds: "$[0]",
|
|
1251
|
-
assignTags: "$[1].assignTags",
|
|
1252
|
-
unassignTags: "$[1].unassignTags"
|
|
1253
|
-
},
|
|
1254
|
-
singleArgumentUnchanged: false
|
|
75
|
+
function bulkAddToProgram(payload) {
|
|
76
|
+
function __bulkAddToProgram({ host }) {
|
|
77
|
+
const metadata = {
|
|
78
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
79
|
+
method: "POST",
|
|
80
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
81
|
+
packageName: PACKAGE_NAME,
|
|
82
|
+
migrationOptions: {
|
|
83
|
+
optInTransformResponse: true
|
|
1255
84
|
},
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
85
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
86
|
+
protoPath: "/v3/bulk/participants/add",
|
|
87
|
+
data: payload,
|
|
88
|
+
host
|
|
89
|
+
}),
|
|
90
|
+
data: payload,
|
|
91
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
92
|
+
{
|
|
93
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
94
|
+
paths: [
|
|
95
|
+
{ path: "results.item.createdDate" },
|
|
96
|
+
{ path: "results.item.updatedDate" },
|
|
97
|
+
{ path: "results.item.lastActivityDate" },
|
|
98
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
103
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
104
|
+
}
|
|
105
|
+
])
|
|
106
|
+
};
|
|
107
|
+
return metadata;
|
|
1260
108
|
}
|
|
109
|
+
return __bulkAddToProgram;
|
|
1261
110
|
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
);
|
|
1272
|
-
sideEffects?.onSiteCall?.();
|
|
1273
|
-
try {
|
|
1274
|
-
const result = await httpClient.request(reqOpts);
|
|
1275
|
-
sideEffects?.onSuccess?.(result);
|
|
1276
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1277
|
-
} catch (err) {
|
|
1278
|
-
const transformedError = sdkTransformError(
|
|
1279
|
-
err,
|
|
1280
|
-
{
|
|
1281
|
-
spreadPathsToArguments: {},
|
|
1282
|
-
explicitPathsToArguments: {
|
|
1283
|
-
filter: "$[0]",
|
|
1284
|
-
assignTags: "$[1].assignTags",
|
|
1285
|
-
unassignTags: "$[1].unassignTags"
|
|
1286
|
-
},
|
|
1287
|
-
singleArgumentUnchanged: false
|
|
111
|
+
function bulkApproveParticipant(payload) {
|
|
112
|
+
function __bulkApproveParticipant({ host }) {
|
|
113
|
+
const metadata = {
|
|
114
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
115
|
+
method: "POST",
|
|
116
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
117
|
+
packageName: PACKAGE_NAME,
|
|
118
|
+
migrationOptions: {
|
|
119
|
+
optInTransformResponse: true
|
|
1288
120
|
},
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
121
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
122
|
+
protoPath: "/v3/bulk/participants/approve",
|
|
123
|
+
data: payload,
|
|
124
|
+
host
|
|
125
|
+
}),
|
|
126
|
+
data: payload,
|
|
127
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
130
|
+
paths: [
|
|
131
|
+
{ path: "results.item.createdDate" },
|
|
132
|
+
{ path: "results.item.updatedDate" },
|
|
133
|
+
{ path: "results.item.lastActivityDate" },
|
|
134
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
139
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
140
|
+
}
|
|
141
|
+
])
|
|
142
|
+
};
|
|
143
|
+
return metadata;
|
|
1293
144
|
}
|
|
145
|
+
return __bulkApproveParticipant;
|
|
1294
146
|
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
} catch (err) {
|
|
1305
|
-
const transformedError = sdkTransformError(
|
|
1306
|
-
err,
|
|
1307
|
-
{
|
|
1308
|
-
spreadPathsToArguments: {},
|
|
1309
|
-
explicitPathsToArguments: { search: "$[0]" },
|
|
1310
|
-
singleArgumentUnchanged: false
|
|
147
|
+
function bulkApproveAllParticipant(payload) {
|
|
148
|
+
function __bulkApproveAllParticipant({ host }) {
|
|
149
|
+
const metadata = {
|
|
150
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
151
|
+
method: "POST",
|
|
152
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
153
|
+
packageName: PACKAGE_NAME,
|
|
154
|
+
migrationOptions: {
|
|
155
|
+
optInTransformResponse: true
|
|
1311
156
|
},
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
157
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
158
|
+
protoPath: "/v3/bulk/participants/approve-all",
|
|
159
|
+
data: payload,
|
|
160
|
+
host
|
|
161
|
+
}),
|
|
162
|
+
data: payload
|
|
163
|
+
};
|
|
164
|
+
return metadata;
|
|
1316
165
|
}
|
|
166
|
+
return __bulkApproveAllParticipant;
|
|
1317
167
|
}
|
|
168
|
+
|
|
169
|
+
// src/online-programs-v3-participant-participants.universal.ts
|
|
170
|
+
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
171
|
+
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
172
|
+
JoinPath2["FREE"] = "FREE";
|
|
173
|
+
JoinPath2["ADDED"] = "ADDED";
|
|
174
|
+
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
175
|
+
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
176
|
+
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
177
|
+
return JoinPath2;
|
|
178
|
+
})(JoinPath || {});
|
|
179
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
180
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
181
|
+
State2["JOINED"] = "JOINED";
|
|
182
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
183
|
+
State2["FAILED"] = "FAILED";
|
|
184
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
185
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
186
|
+
State2["REMOVED"] = "REMOVED";
|
|
187
|
+
State2["LEFT"] = "LEFT";
|
|
188
|
+
return State2;
|
|
189
|
+
})(State || {});
|
|
190
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
191
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
192
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
193
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
194
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
195
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
196
|
+
return WebhookIdentityType2;
|
|
197
|
+
})(WebhookIdentityType || {});
|
|
1318
198
|
async function bulkInviteToProgram2(programId, options) {
|
|
1319
199
|
const { httpClient, sideEffects } = arguments[2];
|
|
1320
200
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1466,65 +346,14 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
1466
346
|
throw transformedError;
|
|
1467
347
|
}
|
|
1468
348
|
}
|
|
1469
|
-
async function exportParticipantsStats2(programId) {
|
|
1470
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1471
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1472
|
-
programId
|
|
1473
|
-
});
|
|
1474
|
-
const reqOpts = exportParticipantsStats(payload);
|
|
1475
|
-
sideEffects?.onSiteCall?.();
|
|
1476
|
-
try {
|
|
1477
|
-
const result = await httpClient.request(reqOpts);
|
|
1478
|
-
sideEffects?.onSuccess?.(result);
|
|
1479
|
-
} catch (err) {
|
|
1480
|
-
const transformedError = sdkTransformError(
|
|
1481
|
-
err,
|
|
1482
|
-
{
|
|
1483
|
-
spreadPathsToArguments: {},
|
|
1484
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1485
|
-
singleArgumentUnchanged: false
|
|
1486
|
-
},
|
|
1487
|
-
["programId"]
|
|
1488
|
-
);
|
|
1489
|
-
sideEffects?.onError?.(err);
|
|
1490
|
-
throw transformedError;
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
349
|
export {
|
|
1494
|
-
AggregationType,
|
|
1495
|
-
BenefitType,
|
|
1496
|
-
Event,
|
|
1497
|
-
Interval,
|
|
1498
350
|
JoinPath,
|
|
1499
|
-
MissingValues,
|
|
1500
|
-
Mode,
|
|
1501
|
-
NestedAggregationType,
|
|
1502
|
-
ScalarType,
|
|
1503
|
-
SortDirection,
|
|
1504
|
-
SortOrder,
|
|
1505
|
-
SortType,
|
|
1506
351
|
State,
|
|
1507
|
-
Status,
|
|
1508
352
|
WebhookIdentityType,
|
|
1509
|
-
bulkAddAllToProgram2 as bulkAddAllToProgram,
|
|
1510
353
|
bulkAddToProgram2 as bulkAddToProgram,
|
|
1511
354
|
bulkApproveAllParticipant2 as bulkApproveAllParticipant,
|
|
1512
355
|
bulkApproveParticipant2 as bulkApproveParticipant,
|
|
1513
|
-
bulkCreateParticipant2 as bulkCreateParticipant,
|
|
1514
356
|
bulkInviteAllToProgram2 as bulkInviteAllToProgram,
|
|
1515
|
-
bulkInviteToProgram2 as bulkInviteToProgram
|
|
1516
|
-
bulkUpdateParticipantTags2 as bulkUpdateParticipantTags,
|
|
1517
|
-
bulkUpdateParticipantTagsByFilter2 as bulkUpdateParticipantTagsByFilter,
|
|
1518
|
-
createParticipant2 as createParticipant,
|
|
1519
|
-
deleteParticipant2 as deleteParticipant,
|
|
1520
|
-
exportParticipantsStats2 as exportParticipantsStats,
|
|
1521
|
-
getAccessStatus2 as getAccessStatus,
|
|
1522
|
-
getCompletionStats2 as getCompletionStats,
|
|
1523
|
-
getParticipant2 as getParticipant,
|
|
1524
|
-
getPremiumStats2 as getPremiumStats,
|
|
1525
|
-
issueCertificate2 as issueCertificate,
|
|
1526
|
-
queryParticipants2 as queryParticipants,
|
|
1527
|
-
searchParticipants2 as searchParticipants,
|
|
1528
|
-
typedQueryParticipants
|
|
357
|
+
bulkInviteToProgram2 as bulkInviteToProgram
|
|
1529
358
|
};
|
|
1530
359
|
//# sourceMappingURL=index.typings.mjs.map
|