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