@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
package/build/cjs/index.js
CHANGED
|
@@ -20,346 +20,59 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
-
AggregationType: () => AggregationType,
|
|
24
|
-
BenefitType: () => BenefitType,
|
|
25
|
-
Event: () => Event,
|
|
26
|
-
Interval: () => Interval,
|
|
27
23
|
JoinPath: () => JoinPath,
|
|
28
|
-
MissingValues: () => MissingValues,
|
|
29
|
-
Mode: () => Mode,
|
|
30
|
-
NestedAggregationType: () => NestedAggregationType,
|
|
31
|
-
ScalarType: () => ScalarType,
|
|
32
|
-
SortDirection: () => SortDirection,
|
|
33
|
-
SortOrder: () => SortOrder,
|
|
34
|
-
SortType: () => SortType,
|
|
35
24
|
State: () => State,
|
|
36
|
-
Status: () => Status,
|
|
37
25
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
38
|
-
bulkAddAllToProgram: () => bulkAddAllToProgram4,
|
|
39
26
|
bulkAddToProgram: () => bulkAddToProgram4,
|
|
40
27
|
bulkApproveAllParticipant: () => bulkApproveAllParticipant4,
|
|
41
28
|
bulkApproveParticipant: () => bulkApproveParticipant4,
|
|
42
|
-
bulkCreateParticipant: () => bulkCreateParticipant4,
|
|
43
29
|
bulkInviteAllToProgram: () => bulkInviteAllToProgram4,
|
|
44
30
|
bulkInviteToProgram: () => bulkInviteToProgram4,
|
|
45
|
-
bulkUpdateParticipantTags: () => bulkUpdateParticipantTags4,
|
|
46
|
-
bulkUpdateParticipantTagsByFilter: () => bulkUpdateParticipantTagsByFilter4,
|
|
47
|
-
createParticipant: () => createParticipant4,
|
|
48
|
-
deleteParticipant: () => deleteParticipant4,
|
|
49
|
-
exportParticipantsStats: () => exportParticipantsStats4,
|
|
50
|
-
getAccessStatus: () => getAccessStatus4,
|
|
51
|
-
getCompletionStats: () => getCompletionStats4,
|
|
52
|
-
getParticipant: () => getParticipant4,
|
|
53
|
-
getPremiumStats: () => getPremiumStats4,
|
|
54
|
-
issueCertificate: () => issueCertificate4,
|
|
55
31
|
onParticipantAdded: () => onParticipantAdded2,
|
|
56
32
|
onParticipantApproved: () => onParticipantApproved2,
|
|
57
|
-
onParticipantInvited: () => onParticipantInvited2
|
|
58
|
-
queryParticipants: () => queryParticipants4,
|
|
59
|
-
searchParticipants: () => searchParticipants4
|
|
33
|
+
onParticipantInvited: () => onParticipantInvited2
|
|
60
34
|
});
|
|
61
35
|
module.exports = __toCommonJS(index_exports);
|
|
62
36
|
|
|
63
37
|
// src/online-programs-v3-participant-participants.public.ts
|
|
64
38
|
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
65
|
-
var
|
|
66
|
-
var
|
|
39
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
40
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
67
41
|
var import_sdk_types = require("@wix/sdk-types");
|
|
68
42
|
|
|
69
43
|
// src/online-programs-v3-participant-participants.universal.ts
|
|
70
44
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
71
|
-
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
72
45
|
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
73
46
|
|
|
74
47
|
// src/online-programs-v3-participant-participants.http.ts
|
|
75
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
76
48
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
77
|
-
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
78
49
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
79
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
80
50
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
81
|
-
var
|
|
82
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(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 (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
146
|
-
}
|
|
51
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
147
52
|
function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
|
|
148
|
-
const domainToMappings = {
|
|
149
|
-
|
|
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
|
-
};
|
|
210
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
211
|
-
}
|
|
212
|
-
function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
213
|
-
const domainToMappings = {
|
|
214
|
-
"bo._base_domain_": [
|
|
215
|
-
{
|
|
216
|
-
srcPath: "/participants-service",
|
|
217
|
-
destPath: ""
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"wixbo.ai": [
|
|
221
|
-
{
|
|
222
|
-
srcPath: "/participants-service",
|
|
223
|
-
destPath: ""
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"wix-bo.com": [
|
|
227
|
-
{
|
|
228
|
-
srcPath: "/participants-service",
|
|
229
|
-
destPath: ""
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
"manage._base_domain_": [
|
|
233
|
-
{
|
|
234
|
-
srcPath: "/participants-service",
|
|
235
|
-
destPath: ""
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
_: [
|
|
239
|
-
{
|
|
240
|
-
srcPath: "/participants-service",
|
|
241
|
-
destPath: ""
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"editor._base_domain_": [
|
|
245
|
-
{
|
|
246
|
-
srcPath: "/participants-service",
|
|
247
|
-
destPath: ""
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
"blocks._base_domain_": [
|
|
251
|
-
{
|
|
252
|
-
srcPath: "/participants-service",
|
|
253
|
-
destPath: ""
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
"create.editorx": [
|
|
257
|
-
{
|
|
258
|
-
srcPath: "/participants-service",
|
|
259
|
-
destPath: ""
|
|
260
|
-
}
|
|
261
|
-
],
|
|
262
|
-
"www._base_domain_": [
|
|
263
|
-
{
|
|
264
|
-
srcPath: "/_api/participants-service",
|
|
265
|
-
destPath: ""
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
"www.wixapis.com": [
|
|
269
|
-
{
|
|
270
|
-
srcPath: "/participants-service",
|
|
271
|
-
destPath: ""
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
|
-
};
|
|
275
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
53
|
+
const domainToMappings = {};
|
|
54
|
+
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
276
55
|
}
|
|
277
56
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
278
|
-
function
|
|
279
|
-
function
|
|
280
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
281
|
-
{
|
|
282
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
283
|
-
paths: [
|
|
284
|
-
{ path: "participant.createdDate" },
|
|
285
|
-
{ path: "participant.updatedDate" },
|
|
286
|
-
{ path: "participant.lastActivityDate" },
|
|
287
|
-
{ path: "participant.certificate.issuedDate" }
|
|
288
|
-
]
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
292
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
293
|
-
}
|
|
294
|
-
]);
|
|
295
|
-
const metadata = {
|
|
296
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
297
|
-
method: "POST",
|
|
298
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
299
|
-
packageName: PACKAGE_NAME,
|
|
300
|
-
migrationOptions: {
|
|
301
|
-
optInTransformResponse: true
|
|
302
|
-
},
|
|
303
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
304
|
-
protoPath: "/v3/participants",
|
|
305
|
-
data: serializedData,
|
|
306
|
-
host
|
|
307
|
-
}),
|
|
308
|
-
data: serializedData,
|
|
309
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
310
|
-
{
|
|
311
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
312
|
-
paths: [
|
|
313
|
-
{ path: "participant.createdDate" },
|
|
314
|
-
{ path: "participant.updatedDate" },
|
|
315
|
-
{ path: "participant.lastActivityDate" },
|
|
316
|
-
{ path: "participant.certificate.issuedDate" }
|
|
317
|
-
]
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
321
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
322
|
-
}
|
|
323
|
-
])
|
|
324
|
-
};
|
|
325
|
-
return metadata;
|
|
326
|
-
}
|
|
327
|
-
return __createParticipant;
|
|
328
|
-
}
|
|
329
|
-
function bulkCreateParticipant(payload) {
|
|
330
|
-
function __bulkCreateParticipant({ host }) {
|
|
331
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
332
|
-
{
|
|
333
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
334
|
-
paths: [
|
|
335
|
-
{ path: "participants.createdDate" },
|
|
336
|
-
{ path: "participants.updatedDate" },
|
|
337
|
-
{ path: "participants.lastActivityDate" },
|
|
338
|
-
{ path: "participants.certificate.issuedDate" }
|
|
339
|
-
]
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
343
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
344
|
-
}
|
|
345
|
-
]);
|
|
57
|
+
function bulkInviteToProgram(payload) {
|
|
58
|
+
function __bulkInviteToProgram({ host }) {
|
|
346
59
|
const metadata = {
|
|
347
60
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
348
61
|
method: "POST",
|
|
349
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
62
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
350
63
|
packageName: PACKAGE_NAME,
|
|
351
64
|
migrationOptions: {
|
|
352
65
|
optInTransformResponse: true
|
|
353
66
|
},
|
|
354
|
-
url:
|
|
355
|
-
protoPath: "/v3/bulk/participants/
|
|
356
|
-
data:
|
|
67
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
68
|
+
protoPath: "/v3/bulk/participants/invite",
|
|
69
|
+
data: payload,
|
|
357
70
|
host
|
|
358
71
|
}),
|
|
359
|
-
data:
|
|
72
|
+
data: payload,
|
|
360
73
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
361
74
|
{
|
|
362
|
-
transformFn:
|
|
75
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
363
76
|
paths: [
|
|
364
77
|
{ path: "results.item.createdDate" },
|
|
365
78
|
{ path: "results.item.updatedDate" },
|
|
@@ -368,1018 +81,159 @@ function bulkCreateParticipant(payload) {
|
|
|
368
81
|
]
|
|
369
82
|
},
|
|
370
83
|
{
|
|
371
|
-
transformFn:
|
|
84
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
372
85
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
373
86
|
}
|
|
374
87
|
])
|
|
375
88
|
};
|
|
376
89
|
return metadata;
|
|
377
90
|
}
|
|
378
|
-
return
|
|
379
|
-
}
|
|
380
|
-
function bulkAddAllToProgram(payload) {
|
|
381
|
-
function __bulkAddAllToProgram({ host }) {
|
|
382
|
-
const metadata = {
|
|
383
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
384
|
-
method: "POST",
|
|
385
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkAddAllToProgram",
|
|
386
|
-
packageName: PACKAGE_NAME,
|
|
387
|
-
migrationOptions: {
|
|
388
|
-
optInTransformResponse: true
|
|
389
|
-
},
|
|
390
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
391
|
-
protoPath: "/v3/bulk/participants/add-all",
|
|
392
|
-
data: payload,
|
|
393
|
-
host
|
|
394
|
-
}),
|
|
395
|
-
data: payload
|
|
396
|
-
};
|
|
397
|
-
return metadata;
|
|
398
|
-
}
|
|
399
|
-
return __bulkAddAllToProgram;
|
|
400
|
-
}
|
|
401
|
-
function deleteParticipant(payload) {
|
|
402
|
-
function __deleteParticipant({ host }) {
|
|
403
|
-
const metadata = {
|
|
404
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
405
|
-
method: "DELETE",
|
|
406
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
407
|
-
packageName: PACKAGE_NAME,
|
|
408
|
-
migrationOptions: {
|
|
409
|
-
optInTransformResponse: true
|
|
410
|
-
},
|
|
411
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
412
|
-
protoPath: "/v3/participants/{participantId}",
|
|
413
|
-
data: payload,
|
|
414
|
-
host
|
|
415
|
-
}),
|
|
416
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
417
|
-
};
|
|
418
|
-
return metadata;
|
|
419
|
-
}
|
|
420
|
-
return __deleteParticipant;
|
|
421
|
-
}
|
|
422
|
-
function issueCertificate(payload) {
|
|
423
|
-
function __issueCertificate({ host }) {
|
|
424
|
-
const metadata = {
|
|
425
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
426
|
-
method: "POST",
|
|
427
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
428
|
-
packageName: PACKAGE_NAME,
|
|
429
|
-
migrationOptions: {
|
|
430
|
-
optInTransformResponse: true
|
|
431
|
-
},
|
|
432
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
433
|
-
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
434
|
-
data: payload,
|
|
435
|
-
host
|
|
436
|
-
}),
|
|
437
|
-
data: payload,
|
|
438
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
439
|
-
{
|
|
440
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
441
|
-
paths: [
|
|
442
|
-
{ path: "participant.createdDate" },
|
|
443
|
-
{ path: "participant.updatedDate" },
|
|
444
|
-
{ path: "participant.lastActivityDate" },
|
|
445
|
-
{ path: "participant.certificate.issuedDate" }
|
|
446
|
-
]
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
450
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
451
|
-
}
|
|
452
|
-
])
|
|
453
|
-
};
|
|
454
|
-
return metadata;
|
|
455
|
-
}
|
|
456
|
-
return __issueCertificate;
|
|
457
|
-
}
|
|
458
|
-
function getCompletionStats(payload) {
|
|
459
|
-
function __getCompletionStats({ host }) {
|
|
460
|
-
const metadata = {
|
|
461
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
462
|
-
method: "GET",
|
|
463
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetCompletionStats",
|
|
464
|
-
packageName: PACKAGE_NAME,
|
|
465
|
-
migrationOptions: {
|
|
466
|
-
optInTransformResponse: true
|
|
467
|
-
},
|
|
468
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
469
|
-
protoPath: "/v3/stats/completion/{programId}",
|
|
470
|
-
data: payload,
|
|
471
|
-
host
|
|
472
|
-
}),
|
|
473
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
474
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
475
|
-
{
|
|
476
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
477
|
-
paths: [{ path: "completionRate" }]
|
|
478
|
-
}
|
|
479
|
-
])
|
|
480
|
-
};
|
|
481
|
-
return metadata;
|
|
482
|
-
}
|
|
483
|
-
return __getCompletionStats;
|
|
484
|
-
}
|
|
485
|
-
function getPremiumStats(payload) {
|
|
486
|
-
function __getPremiumStats({ host }) {
|
|
487
|
-
const metadata = {
|
|
488
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
489
|
-
method: "GET",
|
|
490
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
491
|
-
packageName: PACKAGE_NAME,
|
|
492
|
-
migrationOptions: {
|
|
493
|
-
optInTransformResponse: true
|
|
494
|
-
},
|
|
495
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
496
|
-
protoPath: "/v3/stats/premium",
|
|
497
|
-
data: payload,
|
|
498
|
-
host
|
|
499
|
-
}),
|
|
500
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
501
|
-
};
|
|
502
|
-
return metadata;
|
|
503
|
-
}
|
|
504
|
-
return __getPremiumStats;
|
|
505
|
-
}
|
|
506
|
-
function getParticipant(payload) {
|
|
507
|
-
function __getParticipant({ host }) {
|
|
508
|
-
const metadata = {
|
|
509
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
510
|
-
method: "GET",
|
|
511
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
512
|
-
packageName: PACKAGE_NAME,
|
|
513
|
-
migrationOptions: {
|
|
514
|
-
optInTransformResponse: true
|
|
515
|
-
},
|
|
516
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
517
|
-
protoPath: "/v3/participants/{participantId}",
|
|
518
|
-
data: payload,
|
|
519
|
-
host
|
|
520
|
-
}),
|
|
521
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
522
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
523
|
-
{
|
|
524
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
525
|
-
paths: [
|
|
526
|
-
{ path: "participant.createdDate" },
|
|
527
|
-
{ path: "participant.updatedDate" },
|
|
528
|
-
{ path: "participant.lastActivityDate" },
|
|
529
|
-
{ path: "participant.certificate.issuedDate" }
|
|
530
|
-
]
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
534
|
-
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
535
|
-
}
|
|
536
|
-
])
|
|
537
|
-
};
|
|
538
|
-
return metadata;
|
|
539
|
-
}
|
|
540
|
-
return __getParticipant;
|
|
541
|
-
}
|
|
542
|
-
function queryParticipants(payload) {
|
|
543
|
-
function __queryParticipants({ host }) {
|
|
544
|
-
const metadata = {
|
|
545
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
546
|
-
method: "POST",
|
|
547
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
548
|
-
packageName: PACKAGE_NAME,
|
|
549
|
-
migrationOptions: {
|
|
550
|
-
optInTransformResponse: true
|
|
551
|
-
},
|
|
552
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
553
|
-
protoPath: "/v3/participants/query",
|
|
554
|
-
data: payload,
|
|
555
|
-
host
|
|
556
|
-
}),
|
|
557
|
-
data: payload,
|
|
558
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
559
|
-
{
|
|
560
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
561
|
-
paths: [
|
|
562
|
-
{ path: "participants.createdDate" },
|
|
563
|
-
{ path: "participants.updatedDate" },
|
|
564
|
-
{ path: "participants.lastActivityDate" },
|
|
565
|
-
{ path: "participants.certificate.issuedDate" }
|
|
566
|
-
]
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
570
|
-
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
571
|
-
}
|
|
572
|
-
])
|
|
573
|
-
};
|
|
574
|
-
return metadata;
|
|
575
|
-
}
|
|
576
|
-
return __queryParticipants;
|
|
577
|
-
}
|
|
578
|
-
function getAccessStatus(payload) {
|
|
579
|
-
function __getAccessStatus({ host }) {
|
|
580
|
-
const metadata = {
|
|
581
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
582
|
-
method: "GET",
|
|
583
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
584
|
-
packageName: PACKAGE_NAME,
|
|
585
|
-
migrationOptions: {
|
|
586
|
-
optInTransformResponse: true
|
|
587
|
-
},
|
|
588
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
589
|
-
protoPath: "/v3/participants/access",
|
|
590
|
-
data: payload,
|
|
591
|
-
host
|
|
592
|
-
}),
|
|
593
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
594
|
-
};
|
|
595
|
-
return metadata;
|
|
596
|
-
}
|
|
597
|
-
return __getAccessStatus;
|
|
91
|
+
return __bulkInviteToProgram;
|
|
598
92
|
}
|
|
599
|
-
function
|
|
600
|
-
function
|
|
93
|
+
function bulkInviteAllToProgram(payload) {
|
|
94
|
+
function __bulkInviteAllToProgram({ host }) {
|
|
601
95
|
const metadata = {
|
|
602
96
|
entityFqdn: "wix.online_programs.v3.participant",
|
|
603
|
-
method: "POST",
|
|
604
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
605
|
-
packageName: PACKAGE_NAME,
|
|
606
|
-
migrationOptions: {
|
|
607
|
-
optInTransformResponse: true
|
|
608
|
-
},
|
|
609
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
610
|
-
protoPath: "/v3/bulk/participants/update-tags",
|
|
611
|
-
data: payload,
|
|
612
|
-
host
|
|
613
|
-
}),
|
|
614
|
-
data: payload
|
|
615
|
-
};
|
|
616
|
-
return metadata;
|
|
617
|
-
}
|
|
618
|
-
return __bulkUpdateParticipantTags;
|
|
619
|
-
}
|
|
620
|
-
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
621
|
-
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
622
|
-
const metadata = {
|
|
623
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
624
|
-
method: "POST",
|
|
625
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
626
|
-
packageName: PACKAGE_NAME,
|
|
627
|
-
migrationOptions: {
|
|
628
|
-
optInTransformResponse: true
|
|
629
|
-
},
|
|
630
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
631
|
-
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
632
|
-
data: payload,
|
|
633
|
-
host
|
|
634
|
-
}),
|
|
635
|
-
data: payload
|
|
636
|
-
};
|
|
637
|
-
return metadata;
|
|
638
|
-
}
|
|
639
|
-
return __bulkUpdateParticipantTagsByFilter;
|
|
640
|
-
}
|
|
641
|
-
function searchParticipants(payload) {
|
|
642
|
-
function __searchParticipants({ host }) {
|
|
643
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
644
|
-
{
|
|
645
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
646
|
-
paths: [
|
|
647
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
648
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
649
|
-
{
|
|
650
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
654
|
-
}
|
|
655
|
-
]
|
|
656
|
-
}
|
|
657
|
-
]);
|
|
658
|
-
const metadata = {
|
|
659
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
660
|
-
method: "POST",
|
|
661
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
662
|
-
packageName: PACKAGE_NAME,
|
|
663
|
-
migrationOptions: {
|
|
664
|
-
optInTransformResponse: true
|
|
665
|
-
},
|
|
666
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
667
|
-
protoPath: "/v3/participants/search",
|
|
668
|
-
data: serializedData,
|
|
669
|
-
host
|
|
670
|
-
}),
|
|
671
|
-
data: serializedData,
|
|
672
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
673
|
-
{
|
|
674
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
675
|
-
paths: [
|
|
676
|
-
{ path: "participants.createdDate" },
|
|
677
|
-
{ path: "participants.updatedDate" },
|
|
678
|
-
{ path: "participants.lastActivityDate" },
|
|
679
|
-
{ path: "participants.certificate.issuedDate" }
|
|
680
|
-
]
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
684
|
-
paths: [
|
|
685
|
-
{ path: "participants.progress.completionPercentage" },
|
|
686
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
687
|
-
{
|
|
688
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
692
|
-
},
|
|
693
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
694
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
695
|
-
{
|
|
696
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
700
|
-
},
|
|
701
|
-
{
|
|
702
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
706
|
-
}
|
|
707
|
-
]
|
|
708
|
-
}
|
|
709
|
-
])
|
|
710
|
-
};
|
|
711
|
-
return metadata;
|
|
712
|
-
}
|
|
713
|
-
return __searchParticipants;
|
|
714
|
-
}
|
|
715
|
-
function bulkInviteToProgram(payload) {
|
|
716
|
-
function __bulkInviteToProgram({ host }) {
|
|
717
|
-
const metadata = {
|
|
718
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
719
|
-
method: "POST",
|
|
720
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
721
|
-
packageName: PACKAGE_NAME,
|
|
722
|
-
migrationOptions: {
|
|
723
|
-
optInTransformResponse: true
|
|
724
|
-
},
|
|
725
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
726
|
-
protoPath: "/v3/bulk/participants/invite",
|
|
727
|
-
data: payload,
|
|
728
|
-
host
|
|
729
|
-
}),
|
|
730
|
-
data: payload,
|
|
731
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
732
|
-
{
|
|
733
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
734
|
-
paths: [
|
|
735
|
-
{ path: "results.item.createdDate" },
|
|
736
|
-
{ path: "results.item.updatedDate" },
|
|
737
|
-
{ path: "results.item.lastActivityDate" },
|
|
738
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
739
|
-
]
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
743
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
744
|
-
}
|
|
745
|
-
])
|
|
746
|
-
};
|
|
747
|
-
return metadata;
|
|
748
|
-
}
|
|
749
|
-
return __bulkInviteToProgram;
|
|
750
|
-
}
|
|
751
|
-
function bulkInviteAllToProgram(payload) {
|
|
752
|
-
function __bulkInviteAllToProgram({ host }) {
|
|
753
|
-
const metadata = {
|
|
754
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
755
|
-
method: "POST",
|
|
756
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
757
|
-
packageName: PACKAGE_NAME,
|
|
758
|
-
migrationOptions: {
|
|
759
|
-
optInTransformResponse: true
|
|
760
|
-
},
|
|
761
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
762
|
-
protoPath: "/v3/bulk/participants/invite-all",
|
|
763
|
-
data: payload,
|
|
764
|
-
host
|
|
765
|
-
}),
|
|
766
|
-
data: payload
|
|
767
|
-
};
|
|
768
|
-
return metadata;
|
|
769
|
-
}
|
|
770
|
-
return __bulkInviteAllToProgram;
|
|
771
|
-
}
|
|
772
|
-
function bulkAddToProgram(payload) {
|
|
773
|
-
function __bulkAddToProgram({ host }) {
|
|
774
|
-
const metadata = {
|
|
775
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
776
|
-
method: "POST",
|
|
777
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
778
|
-
packageName: PACKAGE_NAME,
|
|
779
|
-
migrationOptions: {
|
|
780
|
-
optInTransformResponse: true
|
|
781
|
-
},
|
|
782
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
783
|
-
protoPath: "/v3/bulk/participants/add",
|
|
784
|
-
data: payload,
|
|
785
|
-
host
|
|
786
|
-
}),
|
|
787
|
-
data: payload,
|
|
788
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
789
|
-
{
|
|
790
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
791
|
-
paths: [
|
|
792
|
-
{ path: "results.item.createdDate" },
|
|
793
|
-
{ path: "results.item.updatedDate" },
|
|
794
|
-
{ path: "results.item.lastActivityDate" },
|
|
795
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
796
|
-
]
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
800
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
801
|
-
}
|
|
802
|
-
])
|
|
803
|
-
};
|
|
804
|
-
return metadata;
|
|
805
|
-
}
|
|
806
|
-
return __bulkAddToProgram;
|
|
807
|
-
}
|
|
808
|
-
function bulkApproveParticipant(payload) {
|
|
809
|
-
function __bulkApproveParticipant({ host }) {
|
|
810
|
-
const metadata = {
|
|
811
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
812
|
-
method: "POST",
|
|
813
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
814
|
-
packageName: PACKAGE_NAME,
|
|
815
|
-
migrationOptions: {
|
|
816
|
-
optInTransformResponse: true
|
|
817
|
-
},
|
|
818
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
819
|
-
protoPath: "/v3/bulk/participants/approve",
|
|
820
|
-
data: payload,
|
|
821
|
-
host
|
|
822
|
-
}),
|
|
823
|
-
data: payload,
|
|
824
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
825
|
-
{
|
|
826
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
827
|
-
paths: [
|
|
828
|
-
{ path: "results.item.createdDate" },
|
|
829
|
-
{ path: "results.item.updatedDate" },
|
|
830
|
-
{ path: "results.item.lastActivityDate" },
|
|
831
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
832
|
-
]
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
836
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
837
|
-
}
|
|
838
|
-
])
|
|
839
|
-
};
|
|
840
|
-
return metadata;
|
|
841
|
-
}
|
|
842
|
-
return __bulkApproveParticipant;
|
|
843
|
-
}
|
|
844
|
-
function bulkApproveAllParticipant(payload) {
|
|
845
|
-
function __bulkApproveAllParticipant({ host }) {
|
|
846
|
-
const metadata = {
|
|
847
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
848
|
-
method: "POST",
|
|
849
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
850
|
-
packageName: PACKAGE_NAME,
|
|
851
|
-
migrationOptions: {
|
|
852
|
-
optInTransformResponse: true
|
|
853
|
-
},
|
|
854
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
855
|
-
protoPath: "/v3/bulk/participants/approve-all",
|
|
856
|
-
data: payload,
|
|
857
|
-
host
|
|
858
|
-
}),
|
|
859
|
-
data: payload
|
|
860
|
-
};
|
|
861
|
-
return metadata;
|
|
862
|
-
}
|
|
863
|
-
return __bulkApproveAllParticipant;
|
|
864
|
-
}
|
|
865
|
-
function exportParticipantsStats(payload) {
|
|
866
|
-
function __exportParticipantsStats({ host }) {
|
|
867
|
-
const metadata = {
|
|
868
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
869
|
-
method: "GET",
|
|
870
|
-
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
871
|
-
packageName: PACKAGE_NAME,
|
|
872
|
-
migrationOptions: {
|
|
873
|
-
optInTransformResponse: true
|
|
874
|
-
},
|
|
875
|
-
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
876
|
-
protoPath: "/v3/participants/export/{programId}",
|
|
877
|
-
data: payload,
|
|
878
|
-
host
|
|
879
|
-
}),
|
|
880
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
881
|
-
};
|
|
882
|
-
return metadata;
|
|
883
|
-
}
|
|
884
|
-
return __exportParticipantsStats;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
888
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
889
|
-
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
890
|
-
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
891
|
-
JoinPath2["FREE"] = "FREE";
|
|
892
|
-
JoinPath2["ADDED"] = "ADDED";
|
|
893
|
-
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
894
|
-
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
895
|
-
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
896
|
-
return JoinPath2;
|
|
897
|
-
})(JoinPath || {});
|
|
898
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
899
|
-
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
900
|
-
Status2["JOINED"] = "JOINED";
|
|
901
|
-
Status2["COMPLETED"] = "COMPLETED";
|
|
902
|
-
Status2["FAILED"] = "FAILED";
|
|
903
|
-
Status2["SUSPENDED"] = "SUSPENDED";
|
|
904
|
-
Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
905
|
-
Status2["REMOVED"] = "REMOVED";
|
|
906
|
-
Status2["LEFT"] = "LEFT";
|
|
907
|
-
return Status2;
|
|
908
|
-
})(Status || {});
|
|
909
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
910
|
-
SortOrder2["ASC"] = "ASC";
|
|
911
|
-
SortOrder2["DESC"] = "DESC";
|
|
912
|
-
return SortOrder2;
|
|
913
|
-
})(SortOrder || {});
|
|
914
|
-
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
915
|
-
SortType2["COUNT"] = "COUNT";
|
|
916
|
-
SortType2["VALUE"] = "VALUE";
|
|
917
|
-
return SortType2;
|
|
918
|
-
})(SortType || {});
|
|
919
|
-
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
920
|
-
SortDirection2["DESC"] = "DESC";
|
|
921
|
-
SortDirection2["ASC"] = "ASC";
|
|
922
|
-
return SortDirection2;
|
|
923
|
-
})(SortDirection || {});
|
|
924
|
-
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
925
|
-
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
926
|
-
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
927
|
-
return MissingValues2;
|
|
928
|
-
})(MissingValues || {});
|
|
929
|
-
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
930
|
-
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
931
|
-
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
932
|
-
ScalarType2["MIN"] = "MIN";
|
|
933
|
-
ScalarType2["MAX"] = "MAX";
|
|
934
|
-
return ScalarType2;
|
|
935
|
-
})(ScalarType || {});
|
|
936
|
-
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
937
|
-
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
938
|
-
NestedAggregationType2["VALUE"] = "VALUE";
|
|
939
|
-
NestedAggregationType2["RANGE"] = "RANGE";
|
|
940
|
-
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
941
|
-
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
942
|
-
return NestedAggregationType2;
|
|
943
|
-
})(NestedAggregationType || {});
|
|
944
|
-
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
945
|
-
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
946
|
-
Interval2["YEAR"] = "YEAR";
|
|
947
|
-
Interval2["MONTH"] = "MONTH";
|
|
948
|
-
Interval2["WEEK"] = "WEEK";
|
|
949
|
-
Interval2["DAY"] = "DAY";
|
|
950
|
-
Interval2["HOUR"] = "HOUR";
|
|
951
|
-
Interval2["MINUTE"] = "MINUTE";
|
|
952
|
-
Interval2["SECOND"] = "SECOND";
|
|
953
|
-
return Interval2;
|
|
954
|
-
})(Interval || {});
|
|
955
|
-
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
956
|
-
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
957
|
-
AggregationType2["VALUE"] = "VALUE";
|
|
958
|
-
AggregationType2["RANGE"] = "RANGE";
|
|
959
|
-
AggregationType2["SCALAR"] = "SCALAR";
|
|
960
|
-
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
961
|
-
AggregationType2["NESTED"] = "NESTED";
|
|
962
|
-
return AggregationType2;
|
|
963
|
-
})(AggregationType || {});
|
|
964
|
-
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
965
|
-
Mode2["OR"] = "OR";
|
|
966
|
-
Mode2["AND"] = "AND";
|
|
967
|
-
return Mode2;
|
|
968
|
-
})(Mode || {});
|
|
969
|
-
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
970
|
-
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
971
|
-
BenefitType2["LIMITED"] = "LIMITED";
|
|
972
|
-
BenefitType2["UNLIMITED"] = "UNLIMITED";
|
|
973
|
-
return BenefitType2;
|
|
974
|
-
})(BenefitType || {});
|
|
975
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
976
|
-
Event2["Updated"] = "Updated";
|
|
977
|
-
Event2["Deleted"] = "Deleted";
|
|
978
|
-
Event2["Created"] = "Created";
|
|
979
|
-
return Event2;
|
|
980
|
-
})(Event || {});
|
|
981
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
982
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
983
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
984
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
985
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
986
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
987
|
-
return WebhookIdentityType2;
|
|
988
|
-
})(WebhookIdentityType || {});
|
|
989
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
990
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
991
|
-
State2["JOINED"] = "JOINED";
|
|
992
|
-
State2["COMPLETED"] = "COMPLETED";
|
|
993
|
-
State2["FAILED"] = "FAILED";
|
|
994
|
-
State2["SUSPENDED"] = "SUSPENDED";
|
|
995
|
-
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
996
|
-
State2["REMOVED"] = "REMOVED";
|
|
997
|
-
State2["LEFT"] = "LEFT";
|
|
998
|
-
return State2;
|
|
999
|
-
})(State || {});
|
|
1000
|
-
async function createParticipant2(participant) {
|
|
1001
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1002
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1003
|
-
participant
|
|
1004
|
-
});
|
|
1005
|
-
const reqOpts = createParticipant(payload);
|
|
1006
|
-
sideEffects?.onSiteCall?.();
|
|
1007
|
-
try {
|
|
1008
|
-
const result = await httpClient.request(reqOpts);
|
|
1009
|
-
sideEffects?.onSuccess?.(result);
|
|
1010
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
1011
|
-
} catch (err) {
|
|
1012
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1013
|
-
err,
|
|
1014
|
-
{
|
|
1015
|
-
spreadPathsToArguments: {},
|
|
1016
|
-
explicitPathsToArguments: { participant: "$[0]" },
|
|
1017
|
-
singleArgumentUnchanged: false
|
|
1018
|
-
},
|
|
1019
|
-
["participant"]
|
|
1020
|
-
);
|
|
1021
|
-
sideEffects?.onError?.(err);
|
|
1022
|
-
throw transformedError;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
async function bulkCreateParticipant2(participants, options) {
|
|
1026
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1027
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1028
|
-
participants,
|
|
1029
|
-
returnEntity: options?.returnEntity
|
|
1030
|
-
});
|
|
1031
|
-
const reqOpts = bulkCreateParticipant(payload);
|
|
1032
|
-
sideEffects?.onSiteCall?.();
|
|
1033
|
-
try {
|
|
1034
|
-
const result = await httpClient.request(reqOpts);
|
|
1035
|
-
sideEffects?.onSuccess?.(result);
|
|
1036
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1037
|
-
} catch (err) {
|
|
1038
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1039
|
-
err,
|
|
1040
|
-
{
|
|
1041
|
-
spreadPathsToArguments: {},
|
|
1042
|
-
explicitPathsToArguments: {
|
|
1043
|
-
participants: "$[0]",
|
|
1044
|
-
returnEntity: "$[1].returnEntity"
|
|
1045
|
-
},
|
|
1046
|
-
singleArgumentUnchanged: false
|
|
1047
|
-
},
|
|
1048
|
-
["participants", "options"]
|
|
1049
|
-
);
|
|
1050
|
-
sideEffects?.onError?.(err);
|
|
1051
|
-
throw transformedError;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
async function bulkAddAllToProgram2(programId, options) {
|
|
1055
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1056
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1057
|
-
programId,
|
|
1058
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
1059
|
-
});
|
|
1060
|
-
const reqOpts = bulkAddAllToProgram(payload);
|
|
1061
|
-
sideEffects?.onSiteCall?.();
|
|
1062
|
-
try {
|
|
1063
|
-
const result = await httpClient.request(reqOpts);
|
|
1064
|
-
sideEffects?.onSuccess?.(result);
|
|
1065
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1066
|
-
} catch (err) {
|
|
1067
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1068
|
-
err,
|
|
1069
|
-
{
|
|
1070
|
-
spreadPathsToArguments: {},
|
|
1071
|
-
explicitPathsToArguments: {
|
|
1072
|
-
programId: "$[0]",
|
|
1073
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
1074
|
-
},
|
|
1075
|
-
singleArgumentUnchanged: false
|
|
1076
|
-
},
|
|
1077
|
-
["programId", "options"]
|
|
1078
|
-
);
|
|
1079
|
-
sideEffects?.onError?.(err);
|
|
1080
|
-
throw transformedError;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
async function deleteParticipant2(participantId) {
|
|
1084
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1085
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1086
|
-
participantId
|
|
1087
|
-
});
|
|
1088
|
-
const reqOpts = deleteParticipant(payload);
|
|
1089
|
-
sideEffects?.onSiteCall?.();
|
|
1090
|
-
try {
|
|
1091
|
-
const result = await httpClient.request(reqOpts);
|
|
1092
|
-
sideEffects?.onSuccess?.(result);
|
|
1093
|
-
} catch (err) {
|
|
1094
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1095
|
-
err,
|
|
1096
|
-
{
|
|
1097
|
-
spreadPathsToArguments: {},
|
|
1098
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1099
|
-
singleArgumentUnchanged: false
|
|
1100
|
-
},
|
|
1101
|
-
["participantId"]
|
|
1102
|
-
);
|
|
1103
|
-
sideEffects?.onError?.(err);
|
|
1104
|
-
throw transformedError;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
async function issueCertificate2(participantId) {
|
|
1108
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1109
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1110
|
-
participantId
|
|
1111
|
-
});
|
|
1112
|
-
const reqOpts = issueCertificate(payload);
|
|
1113
|
-
sideEffects?.onSiteCall?.();
|
|
1114
|
-
try {
|
|
1115
|
-
const result = await httpClient.request(reqOpts);
|
|
1116
|
-
sideEffects?.onSuccess?.(result);
|
|
1117
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1118
|
-
} catch (err) {
|
|
1119
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1120
|
-
err,
|
|
1121
|
-
{
|
|
1122
|
-
spreadPathsToArguments: {},
|
|
1123
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1124
|
-
singleArgumentUnchanged: false
|
|
1125
|
-
},
|
|
1126
|
-
["participantId"]
|
|
1127
|
-
);
|
|
1128
|
-
sideEffects?.onError?.(err);
|
|
1129
|
-
throw transformedError;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
async function getCompletionStats2(programId) {
|
|
1133
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1134
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1135
|
-
programId
|
|
1136
|
-
});
|
|
1137
|
-
const reqOpts = getCompletionStats(payload);
|
|
1138
|
-
sideEffects?.onSiteCall?.();
|
|
1139
|
-
try {
|
|
1140
|
-
const result = await httpClient.request(reqOpts);
|
|
1141
|
-
sideEffects?.onSuccess?.(result);
|
|
1142
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1143
|
-
} catch (err) {
|
|
1144
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1145
|
-
err,
|
|
1146
|
-
{
|
|
1147
|
-
spreadPathsToArguments: {},
|
|
1148
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1149
|
-
singleArgumentUnchanged: false
|
|
1150
|
-
},
|
|
1151
|
-
["programId"]
|
|
1152
|
-
);
|
|
1153
|
-
sideEffects?.onError?.(err);
|
|
1154
|
-
throw transformedError;
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
async function getPremiumStats2() {
|
|
1158
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1159
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1160
|
-
const reqOpts = getPremiumStats(payload);
|
|
1161
|
-
sideEffects?.onSiteCall?.();
|
|
1162
|
-
try {
|
|
1163
|
-
const result = await httpClient.request(reqOpts);
|
|
1164
|
-
sideEffects?.onSuccess?.(result);
|
|
1165
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1166
|
-
} catch (err) {
|
|
1167
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1168
|
-
err,
|
|
1169
|
-
{
|
|
1170
|
-
spreadPathsToArguments: {},
|
|
1171
|
-
explicitPathsToArguments: {},
|
|
1172
|
-
singleArgumentUnchanged: false
|
|
1173
|
-
},
|
|
1174
|
-
[]
|
|
1175
|
-
);
|
|
1176
|
-
sideEffects?.onError?.(err);
|
|
1177
|
-
throw transformedError;
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
async function getParticipant2(participantId) {
|
|
1181
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1182
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1183
|
-
participantId
|
|
1184
|
-
});
|
|
1185
|
-
const reqOpts = getParticipant(payload);
|
|
1186
|
-
sideEffects?.onSiteCall?.();
|
|
1187
|
-
try {
|
|
1188
|
-
const result = await httpClient.request(reqOpts);
|
|
1189
|
-
sideEffects?.onSuccess?.(result);
|
|
1190
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
1191
|
-
} catch (err) {
|
|
1192
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1193
|
-
err,
|
|
1194
|
-
{
|
|
1195
|
-
spreadPathsToArguments: {},
|
|
1196
|
-
explicitPathsToArguments: { participantId: "$[0]" },
|
|
1197
|
-
singleArgumentUnchanged: false
|
|
1198
|
-
},
|
|
1199
|
-
["participantId"]
|
|
1200
|
-
);
|
|
1201
|
-
sideEffects?.onError?.(err);
|
|
1202
|
-
throw transformedError;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
function queryParticipants2() {
|
|
1206
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1207
|
-
return (0, import_query_builder.queryBuilder)({
|
|
1208
|
-
func: async (payload) => {
|
|
1209
|
-
const reqOpts = queryParticipants(payload);
|
|
1210
|
-
sideEffects?.onSiteCall?.();
|
|
1211
|
-
try {
|
|
1212
|
-
const result = await httpClient.request(reqOpts);
|
|
1213
|
-
sideEffects?.onSuccess?.(result);
|
|
1214
|
-
return result;
|
|
1215
|
-
} catch (err) {
|
|
1216
|
-
sideEffects?.onError?.(err);
|
|
1217
|
-
throw err;
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
requestTransformer: (query) => {
|
|
1221
|
-
const args = [query, {}];
|
|
1222
|
-
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1223
|
-
...args?.[1],
|
|
1224
|
-
query: args?.[0]
|
|
1225
|
-
});
|
|
1226
|
-
},
|
|
1227
|
-
responseTransformer: ({
|
|
1228
|
-
data
|
|
1229
|
-
}) => {
|
|
1230
|
-
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1231
|
-
(0, import_transform_paths2.transformPaths)(data, [])
|
|
1232
|
-
);
|
|
1233
|
-
return {
|
|
1234
|
-
items: transformedData?.participants,
|
|
1235
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
1236
|
-
};
|
|
1237
|
-
},
|
|
1238
|
-
errorTransformer: (err) => {
|
|
1239
|
-
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
1240
|
-
spreadPathsToArguments: {},
|
|
1241
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1242
|
-
singleArgumentUnchanged: false
|
|
1243
|
-
});
|
|
1244
|
-
throw transformedError;
|
|
1245
|
-
},
|
|
1246
|
-
pagingMethod: "CURSOR",
|
|
1247
|
-
transformationPaths: {}
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
async function typedQueryParticipants(query) {
|
|
1251
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1252
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
1253
|
-
const reqOpts = queryParticipants(payload);
|
|
1254
|
-
sideEffects?.onSiteCall?.();
|
|
1255
|
-
try {
|
|
1256
|
-
const result = await httpClient.request(reqOpts);
|
|
1257
|
-
sideEffects?.onSuccess?.(result);
|
|
1258
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1259
|
-
} catch (err) {
|
|
1260
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1261
|
-
err,
|
|
1262
|
-
{
|
|
1263
|
-
spreadPathsToArguments: {},
|
|
1264
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
1265
|
-
singleArgumentUnchanged: false
|
|
1266
|
-
},
|
|
1267
|
-
["query"]
|
|
1268
|
-
);
|
|
1269
|
-
sideEffects?.onError?.(err);
|
|
1270
|
-
throw transformedError;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
async function getAccessStatus2() {
|
|
1274
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1275
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1276
|
-
const reqOpts = getAccessStatus(payload);
|
|
1277
|
-
sideEffects?.onSiteCall?.();
|
|
1278
|
-
try {
|
|
1279
|
-
const result = await httpClient.request(reqOpts);
|
|
1280
|
-
sideEffects?.onSuccess?.(result);
|
|
1281
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1282
|
-
} catch (err) {
|
|
1283
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1284
|
-
err,
|
|
1285
|
-
{
|
|
1286
|
-
spreadPathsToArguments: {},
|
|
1287
|
-
explicitPathsToArguments: {},
|
|
1288
|
-
singleArgumentUnchanged: false
|
|
1289
|
-
},
|
|
1290
|
-
[]
|
|
1291
|
-
);
|
|
1292
|
-
sideEffects?.onError?.(err);
|
|
1293
|
-
throw transformedError;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
async function bulkUpdateParticipantTags2(participantIds, options) {
|
|
1297
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1298
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1299
|
-
participantIds,
|
|
1300
|
-
assignTags: options?.assignTags,
|
|
1301
|
-
unassignTags: options?.unassignTags
|
|
1302
|
-
});
|
|
1303
|
-
const reqOpts = bulkUpdateParticipantTags(payload);
|
|
1304
|
-
sideEffects?.onSiteCall?.();
|
|
1305
|
-
try {
|
|
1306
|
-
const result = await httpClient.request(reqOpts);
|
|
1307
|
-
sideEffects?.onSuccess?.(result);
|
|
1308
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1309
|
-
} catch (err) {
|
|
1310
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1311
|
-
err,
|
|
1312
|
-
{
|
|
1313
|
-
spreadPathsToArguments: {},
|
|
1314
|
-
explicitPathsToArguments: {
|
|
1315
|
-
participantIds: "$[0]",
|
|
1316
|
-
assignTags: "$[1].assignTags",
|
|
1317
|
-
unassignTags: "$[1].unassignTags"
|
|
1318
|
-
},
|
|
1319
|
-
singleArgumentUnchanged: false
|
|
97
|
+
method: "POST",
|
|
98
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
99
|
+
packageName: PACKAGE_NAME,
|
|
100
|
+
migrationOptions: {
|
|
101
|
+
optInTransformResponse: true
|
|
1320
102
|
},
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
103
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
104
|
+
protoPath: "/v3/bulk/participants/invite-all",
|
|
105
|
+
data: payload,
|
|
106
|
+
host
|
|
107
|
+
}),
|
|
108
|
+
data: payload
|
|
109
|
+
};
|
|
110
|
+
return metadata;
|
|
1325
111
|
}
|
|
112
|
+
return __bulkInviteAllToProgram;
|
|
1326
113
|
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
114
|
+
function bulkAddToProgram(payload) {
|
|
115
|
+
function __bulkAddToProgram({ host }) {
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
118
|
+
method: "POST",
|
|
119
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
migrationOptions: {
|
|
122
|
+
optInTransformResponse: true
|
|
123
|
+
},
|
|
124
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
125
|
+
protoPath: "/v3/bulk/participants/add",
|
|
126
|
+
data: payload,
|
|
127
|
+
host
|
|
128
|
+
}),
|
|
129
|
+
data: payload,
|
|
130
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
131
|
+
{
|
|
132
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
133
|
+
paths: [
|
|
134
|
+
{ path: "results.item.createdDate" },
|
|
135
|
+
{ path: "results.item.updatedDate" },
|
|
136
|
+
{ path: "results.item.lastActivityDate" },
|
|
137
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
138
|
+
]
|
|
1351
139
|
},
|
|
1352
|
-
|
|
140
|
+
{
|
|
141
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
142
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
143
|
+
}
|
|
144
|
+
])
|
|
145
|
+
};
|
|
146
|
+
return metadata;
|
|
147
|
+
}
|
|
148
|
+
return __bulkAddToProgram;
|
|
149
|
+
}
|
|
150
|
+
function bulkApproveParticipant(payload) {
|
|
151
|
+
function __bulkApproveParticipant({ host }) {
|
|
152
|
+
const metadata = {
|
|
153
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
154
|
+
method: "POST",
|
|
155
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
156
|
+
packageName: PACKAGE_NAME,
|
|
157
|
+
migrationOptions: {
|
|
158
|
+
optInTransformResponse: true
|
|
1353
159
|
},
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
160
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
161
|
+
protoPath: "/v3/bulk/participants/approve",
|
|
162
|
+
data: payload,
|
|
163
|
+
host
|
|
164
|
+
}),
|
|
165
|
+
data: payload,
|
|
166
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
167
|
+
{
|
|
168
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
169
|
+
paths: [
|
|
170
|
+
{ path: "results.item.createdDate" },
|
|
171
|
+
{ path: "results.item.updatedDate" },
|
|
172
|
+
{ path: "results.item.lastActivityDate" },
|
|
173
|
+
{ path: "results.item.certificate.issuedDate" }
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
178
|
+
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
179
|
+
}
|
|
180
|
+
])
|
|
181
|
+
};
|
|
182
|
+
return metadata;
|
|
1358
183
|
}
|
|
184
|
+
return __bulkApproveParticipant;
|
|
1359
185
|
}
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
} catch (err) {
|
|
1370
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1371
|
-
err,
|
|
1372
|
-
{
|
|
1373
|
-
spreadPathsToArguments: {},
|
|
1374
|
-
explicitPathsToArguments: { search: "$[0]" },
|
|
1375
|
-
singleArgumentUnchanged: false
|
|
186
|
+
function bulkApproveAllParticipant(payload) {
|
|
187
|
+
function __bulkApproveAllParticipant({ host }) {
|
|
188
|
+
const metadata = {
|
|
189
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
190
|
+
method: "POST",
|
|
191
|
+
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
192
|
+
packageName: PACKAGE_NAME,
|
|
193
|
+
migrationOptions: {
|
|
194
|
+
optInTransformResponse: true
|
|
1376
195
|
},
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
196
|
+
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
197
|
+
protoPath: "/v3/bulk/participants/approve-all",
|
|
198
|
+
data: payload,
|
|
199
|
+
host
|
|
200
|
+
}),
|
|
201
|
+
data: payload
|
|
202
|
+
};
|
|
203
|
+
return metadata;
|
|
1381
204
|
}
|
|
205
|
+
return __bulkApproveAllParticipant;
|
|
1382
206
|
}
|
|
207
|
+
|
|
208
|
+
// src/online-programs-v3-participant-participants.universal.ts
|
|
209
|
+
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
210
|
+
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
211
|
+
JoinPath2["FREE"] = "FREE";
|
|
212
|
+
JoinPath2["ADDED"] = "ADDED";
|
|
213
|
+
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
214
|
+
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
215
|
+
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
216
|
+
return JoinPath2;
|
|
217
|
+
})(JoinPath || {});
|
|
218
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
219
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
220
|
+
State2["JOINED"] = "JOINED";
|
|
221
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
222
|
+
State2["FAILED"] = "FAILED";
|
|
223
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
224
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
225
|
+
State2["REMOVED"] = "REMOVED";
|
|
226
|
+
State2["LEFT"] = "LEFT";
|
|
227
|
+
return State2;
|
|
228
|
+
})(State || {});
|
|
229
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
230
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
231
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
232
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
233
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
234
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
235
|
+
return WebhookIdentityType2;
|
|
236
|
+
})(WebhookIdentityType || {});
|
|
1383
237
|
async function bulkInviteToProgram2(programId, options) {
|
|
1384
238
|
const { httpClient, sideEffects } = arguments[2];
|
|
1385
239
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -1531,131 +385,8 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
1531
385
|
throw transformedError;
|
|
1532
386
|
}
|
|
1533
387
|
}
|
|
1534
|
-
async function exportParticipantsStats2(programId) {
|
|
1535
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1536
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1537
|
-
programId
|
|
1538
|
-
});
|
|
1539
|
-
const reqOpts = exportParticipantsStats(payload);
|
|
1540
|
-
sideEffects?.onSiteCall?.();
|
|
1541
|
-
try {
|
|
1542
|
-
const result = await httpClient.request(reqOpts);
|
|
1543
|
-
sideEffects?.onSuccess?.(result);
|
|
1544
|
-
} catch (err) {
|
|
1545
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1546
|
-
err,
|
|
1547
|
-
{
|
|
1548
|
-
spreadPathsToArguments: {},
|
|
1549
|
-
explicitPathsToArguments: { programId: "$[0]" },
|
|
1550
|
-
singleArgumentUnchanged: false
|
|
1551
|
-
},
|
|
1552
|
-
["programId"]
|
|
1553
|
-
);
|
|
1554
|
-
sideEffects?.onError?.(err);
|
|
1555
|
-
throw transformedError;
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
388
|
|
|
1559
389
|
// src/online-programs-v3-participant-participants.public.ts
|
|
1560
|
-
function createParticipant3(httpClient) {
|
|
1561
|
-
return (participant) => createParticipant2(
|
|
1562
|
-
participant,
|
|
1563
|
-
// @ts-ignore
|
|
1564
|
-
{ httpClient }
|
|
1565
|
-
);
|
|
1566
|
-
}
|
|
1567
|
-
function bulkCreateParticipant3(httpClient) {
|
|
1568
|
-
return (participants, options) => bulkCreateParticipant2(
|
|
1569
|
-
participants,
|
|
1570
|
-
options,
|
|
1571
|
-
// @ts-ignore
|
|
1572
|
-
{ httpClient }
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1575
|
-
function bulkAddAllToProgram3(httpClient) {
|
|
1576
|
-
return (programId, options) => bulkAddAllToProgram2(
|
|
1577
|
-
programId,
|
|
1578
|
-
options,
|
|
1579
|
-
// @ts-ignore
|
|
1580
|
-
{ httpClient }
|
|
1581
|
-
);
|
|
1582
|
-
}
|
|
1583
|
-
function deleteParticipant3(httpClient) {
|
|
1584
|
-
return (participantId) => deleteParticipant2(
|
|
1585
|
-
participantId,
|
|
1586
|
-
// @ts-ignore
|
|
1587
|
-
{ httpClient }
|
|
1588
|
-
);
|
|
1589
|
-
}
|
|
1590
|
-
function issueCertificate3(httpClient) {
|
|
1591
|
-
return (participantId) => issueCertificate2(
|
|
1592
|
-
participantId,
|
|
1593
|
-
// @ts-ignore
|
|
1594
|
-
{ httpClient }
|
|
1595
|
-
);
|
|
1596
|
-
}
|
|
1597
|
-
function getCompletionStats3(httpClient) {
|
|
1598
|
-
return (programId) => getCompletionStats2(
|
|
1599
|
-
programId,
|
|
1600
|
-
// @ts-ignore
|
|
1601
|
-
{ httpClient }
|
|
1602
|
-
);
|
|
1603
|
-
}
|
|
1604
|
-
function getPremiumStats3(httpClient) {
|
|
1605
|
-
return () => getPremiumStats2(
|
|
1606
|
-
// @ts-ignore
|
|
1607
|
-
{ httpClient }
|
|
1608
|
-
);
|
|
1609
|
-
}
|
|
1610
|
-
function getParticipant3(httpClient) {
|
|
1611
|
-
return (participantId) => getParticipant2(
|
|
1612
|
-
participantId,
|
|
1613
|
-
// @ts-ignore
|
|
1614
|
-
{ httpClient }
|
|
1615
|
-
);
|
|
1616
|
-
}
|
|
1617
|
-
function queryParticipants3(httpClient) {
|
|
1618
|
-
return () => queryParticipants2(
|
|
1619
|
-
// @ts-ignore
|
|
1620
|
-
{ httpClient }
|
|
1621
|
-
);
|
|
1622
|
-
}
|
|
1623
|
-
function typedQueryParticipants2(httpClient) {
|
|
1624
|
-
return (query) => typedQueryParticipants(
|
|
1625
|
-
query,
|
|
1626
|
-
// @ts-ignore
|
|
1627
|
-
{ httpClient }
|
|
1628
|
-
);
|
|
1629
|
-
}
|
|
1630
|
-
function getAccessStatus3(httpClient) {
|
|
1631
|
-
return () => getAccessStatus2(
|
|
1632
|
-
// @ts-ignore
|
|
1633
|
-
{ httpClient }
|
|
1634
|
-
);
|
|
1635
|
-
}
|
|
1636
|
-
function bulkUpdateParticipantTags3(httpClient) {
|
|
1637
|
-
return (participantIds, options) => bulkUpdateParticipantTags2(
|
|
1638
|
-
participantIds,
|
|
1639
|
-
options,
|
|
1640
|
-
// @ts-ignore
|
|
1641
|
-
{ httpClient }
|
|
1642
|
-
);
|
|
1643
|
-
}
|
|
1644
|
-
function bulkUpdateParticipantTagsByFilter3(httpClient) {
|
|
1645
|
-
return (filter, options) => bulkUpdateParticipantTagsByFilter2(
|
|
1646
|
-
filter,
|
|
1647
|
-
options,
|
|
1648
|
-
// @ts-ignore
|
|
1649
|
-
{ httpClient }
|
|
1650
|
-
);
|
|
1651
|
-
}
|
|
1652
|
-
function searchParticipants3(httpClient) {
|
|
1653
|
-
return (search) => searchParticipants2(
|
|
1654
|
-
search,
|
|
1655
|
-
// @ts-ignore
|
|
1656
|
-
{ httpClient }
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
390
|
function bulkInviteToProgram3(httpClient) {
|
|
1660
391
|
return (programId, options) => bulkInviteToProgram2(
|
|
1661
392
|
programId,
|
|
@@ -1695,20 +426,13 @@ function bulkApproveAllParticipant3(httpClient) {
|
|
|
1695
426
|
{ httpClient }
|
|
1696
427
|
);
|
|
1697
428
|
}
|
|
1698
|
-
function exportParticipantsStats3(httpClient) {
|
|
1699
|
-
return (programId) => exportParticipantsStats2(
|
|
1700
|
-
programId,
|
|
1701
|
-
// @ts-ignore
|
|
1702
|
-
{ httpClient }
|
|
1703
|
-
);
|
|
1704
|
-
}
|
|
1705
429
|
var onParticipantAdded = (0, import_sdk_types.EventDefinition)(
|
|
1706
430
|
"wix.online_programs.v3.participant_added",
|
|
1707
431
|
true,
|
|
1708
432
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1709
|
-
(0,
|
|
433
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1710
434
|
{
|
|
1711
|
-
transformFn:
|
|
435
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1712
436
|
paths: [{ path: "metadata.eventTime" }]
|
|
1713
437
|
}
|
|
1714
438
|
])
|
|
@@ -1718,9 +442,9 @@ var onParticipantApproved = (0, import_sdk_types.EventDefinition)(
|
|
|
1718
442
|
"wix.online_programs.v3.participant_participant_approved",
|
|
1719
443
|
true,
|
|
1720
444
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1721
|
-
(0,
|
|
445
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1722
446
|
{
|
|
1723
|
-
transformFn:
|
|
447
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1724
448
|
paths: [{ path: "metadata.eventTime" }]
|
|
1725
449
|
}
|
|
1726
450
|
])
|
|
@@ -1730,9 +454,9 @@ var onParticipantInvited = (0, import_sdk_types.EventDefinition)(
|
|
|
1730
454
|
"wix.online_programs.v3.participant_participant_invited",
|
|
1731
455
|
true,
|
|
1732
456
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1733
|
-
(0,
|
|
457
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1734
458
|
{
|
|
1735
|
-
transformFn:
|
|
459
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1736
460
|
paths: [{ path: "metadata.eventTime" }]
|
|
1737
461
|
}
|
|
1738
462
|
])
|
|
@@ -1740,39 +464,13 @@ var onParticipantInvited = (0, import_sdk_types.EventDefinition)(
|
|
|
1740
464
|
)();
|
|
1741
465
|
|
|
1742
466
|
// src/online-programs-v3-participant-participants.context.ts
|
|
1743
|
-
var
|
|
467
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
1744
468
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1745
|
-
var
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
hasOptionsParameter: false
|
|
1751
|
-
});
|
|
1752
|
-
function overloadedQuery(query) {
|
|
1753
|
-
return router(...arguments);
|
|
1754
|
-
}
|
|
1755
|
-
return overloadedQuery;
|
|
1756
|
-
}
|
|
1757
|
-
var createParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createParticipant3);
|
|
1758
|
-
var bulkCreateParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipant3);
|
|
1759
|
-
var bulkAddAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddAllToProgram3);
|
|
1760
|
-
var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
|
|
1761
|
-
var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
|
|
1762
|
-
var getCompletionStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getCompletionStats3);
|
|
1763
|
-
var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
|
|
1764
|
-
var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
|
|
1765
|
-
var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
|
|
1766
|
-
var bulkUpdateParticipantTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTags3);
|
|
1767
|
-
var bulkUpdateParticipantTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTagsByFilter3);
|
|
1768
|
-
var searchParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchParticipants3);
|
|
1769
|
-
var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteToProgram3);
|
|
1770
|
-
var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkInviteAllToProgram3);
|
|
1771
|
-
var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkAddToProgram3);
|
|
1772
|
-
var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveParticipant3);
|
|
1773
|
-
var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkApproveAllParticipant3);
|
|
1774
|
-
var exportParticipantsStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(exportParticipantsStats3);
|
|
1775
|
-
var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryParticipants);
|
|
469
|
+
var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteToProgram3);
|
|
470
|
+
var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteAllToProgram3);
|
|
471
|
+
var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkAddToProgram3);
|
|
472
|
+
var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveParticipant3);
|
|
473
|
+
var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveAllParticipant3);
|
|
1776
474
|
var onParticipantAdded2 = (0, import_event_definition_modules.createEventModule)(onParticipantAdded);
|
|
1777
475
|
var onParticipantApproved2 = (0, import_event_definition_modules.createEventModule)(
|
|
1778
476
|
onParticipantApproved
|
|
@@ -1782,42 +480,16 @@ var onParticipantInvited2 = (0, import_event_definition_modules.createEventModul
|
|
|
1782
480
|
);
|
|
1783
481
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1784
482
|
0 && (module.exports = {
|
|
1785
|
-
AggregationType,
|
|
1786
|
-
BenefitType,
|
|
1787
|
-
Event,
|
|
1788
|
-
Interval,
|
|
1789
483
|
JoinPath,
|
|
1790
|
-
MissingValues,
|
|
1791
|
-
Mode,
|
|
1792
|
-
NestedAggregationType,
|
|
1793
|
-
ScalarType,
|
|
1794
|
-
SortDirection,
|
|
1795
|
-
SortOrder,
|
|
1796
|
-
SortType,
|
|
1797
484
|
State,
|
|
1798
|
-
Status,
|
|
1799
485
|
WebhookIdentityType,
|
|
1800
|
-
bulkAddAllToProgram,
|
|
1801
486
|
bulkAddToProgram,
|
|
1802
487
|
bulkApproveAllParticipant,
|
|
1803
488
|
bulkApproveParticipant,
|
|
1804
|
-
bulkCreateParticipant,
|
|
1805
489
|
bulkInviteAllToProgram,
|
|
1806
490
|
bulkInviteToProgram,
|
|
1807
|
-
bulkUpdateParticipantTags,
|
|
1808
|
-
bulkUpdateParticipantTagsByFilter,
|
|
1809
|
-
createParticipant,
|
|
1810
|
-
deleteParticipant,
|
|
1811
|
-
exportParticipantsStats,
|
|
1812
|
-
getAccessStatus,
|
|
1813
|
-
getCompletionStats,
|
|
1814
|
-
getParticipant,
|
|
1815
|
-
getPremiumStats,
|
|
1816
|
-
issueCertificate,
|
|
1817
491
|
onParticipantAdded,
|
|
1818
492
|
onParticipantApproved,
|
|
1819
|
-
onParticipantInvited
|
|
1820
|
-
queryParticipants,
|
|
1821
|
-
searchParticipants
|
|
493
|
+
onParticipantInvited
|
|
1822
494
|
});
|
|
1823
495
|
//# sourceMappingURL=index.js.map
|