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