@wix/auto_sdk_online-programs_participants 1.0.14 → 1.0.16
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 +181 -48
- package/build/cjs/index.js +1425 -188
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -690
- package/build/cjs/index.typings.js +1074 -129
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1302 -165
- package/build/cjs/meta.js +924 -110
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.ts +2461 -0
- package/build/es/index.d.mts +181 -48
- package/build/es/index.mjs +1371 -162
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -690
- package/build/es/index.typings.mjs +1036 -114
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1302 -165
- package/build/es/meta.mjs +888 -95
- package/build/es/meta.mjs.map +1 -1
- package/build/es/online-programs-participants-v3-participant-participants.universal-CVjCdKBh.d.mts +2461 -0
- package/build/internal/cjs/index.d.ts +196 -48
- package/build/internal/cjs/index.typings.d.ts +12 -690
- package/build/internal/cjs/meta.d.ts +1473 -265
- package/build/internal/cjs/online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.ts +2504 -0
- package/build/internal/es/index.d.mts +196 -48
- package/build/internal/es/index.typings.d.mts +12 -690
- package/build/internal/es/meta.d.mts +1473 -265
- package/build/internal/es/online-programs-participants-v3-participant-participants.universal-B1sw-MEh.d.mts +2504 -0
- package/package.json +5 -5
- package/build/internal/cjs/index.js +0 -495
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -390
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -327
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/es/index.mjs +0 -461
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -359
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -293
- package/build/internal/es/meta.mjs.map +0 -1
package/build/cjs/index.js
CHANGED
|
@@ -20,88 +20,413 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
AggregationType: () => AggregationType,
|
|
24
|
+
BulkActionType: () => BulkActionType,
|
|
25
|
+
EnrollmentStatus: () => EnrollmentStatus,
|
|
26
|
+
Interval: () => Interval,
|
|
27
|
+
MissingValues: () => MissingValues,
|
|
28
|
+
Mode: () => Mode,
|
|
29
|
+
NestedAggregationType: () => NestedAggregationType,
|
|
30
|
+
PricingType: () => PricingType,
|
|
31
|
+
ProgressStatus: () => ProgressStatus,
|
|
32
|
+
RequestedFields: () => RequestedFields,
|
|
33
|
+
ScalarType: () => ScalarType,
|
|
34
|
+
SortDirection: () => SortDirection,
|
|
35
|
+
SortOrder: () => SortOrder,
|
|
36
|
+
SortType: () => SortType,
|
|
25
37
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
bulkCreateParticipants: () => bulkCreateParticipants4,
|
|
39
|
+
bulkCreateParticipantsForAllMembers: () => bulkCreateParticipantsForAllMembers4,
|
|
40
|
+
bulkUpdateParticipantTags: () => bulkUpdateParticipantTags4,
|
|
41
|
+
bulkUpdateParticipantTagsByFilter: () => bulkUpdateParticipantTagsByFilter4,
|
|
42
|
+
createParticipant: () => createParticipant4,
|
|
43
|
+
deleteParticipant: () => deleteParticipant4,
|
|
44
|
+
exportParticipantsStats: () => exportParticipantsStats4,
|
|
45
|
+
getAccessStatus: () => getAccessStatus4,
|
|
46
|
+
getParticipant: () => getParticipant4,
|
|
47
|
+
getPremiumStats: () => getPremiumStats4,
|
|
48
|
+
issueCertificate: () => issueCertificate4,
|
|
49
|
+
onParticipantCompletedProgram: () => onParticipantCompletedProgram2,
|
|
50
|
+
onParticipantCreated: () => onParticipantCreated2,
|
|
51
|
+
onParticipantDeleted: () => onParticipantDeleted2,
|
|
52
|
+
onParticipantLeft: () => onParticipantLeft2,
|
|
53
|
+
onParticipantMissedProgramDeadline: () => onParticipantMissedProgramDeadline2,
|
|
54
|
+
onParticipantProgramDurationEnded: () => onParticipantProgramDurationEnded2,
|
|
55
|
+
onParticipantRemoved: () => onParticipantRemoved2,
|
|
56
|
+
onParticipantTagsModified: () => onParticipantTagsModified2,
|
|
57
|
+
onParticipantUpdated: () => onParticipantUpdated2,
|
|
58
|
+
queryParticipants: () => queryParticipants4,
|
|
59
|
+
searchParticipants: () => searchParticipants4,
|
|
60
|
+
updateParticipant: () => updateParticipant4,
|
|
61
|
+
utils: () => utils
|
|
34
62
|
});
|
|
35
63
|
module.exports = __toCommonJS(index_exports);
|
|
36
64
|
|
|
37
|
-
// src/online-programs-v3-participant-participants.public.ts
|
|
65
|
+
// src/online-programs-participants-v3-participant-participants.public.ts
|
|
38
66
|
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
39
|
-
var
|
|
40
|
-
var
|
|
67
|
+
var import_float3 = require("@wix/sdk-runtime/transformations/float");
|
|
68
|
+
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
69
|
+
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
41
70
|
var import_sdk_types = require("@wix/sdk-types");
|
|
42
71
|
|
|
43
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
72
|
+
// src/online-programs-participants-v3-participant-participants.universal.ts
|
|
44
73
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
74
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
45
75
|
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
46
76
|
|
|
47
|
-
// src/online-programs-v3-participant-participants.http.ts
|
|
77
|
+
// src/online-programs-participants-v3-participant-participants.http.ts
|
|
78
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
48
79
|
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
80
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
49
81
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
82
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
83
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
50
84
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
51
|
-
var
|
|
52
|
-
function
|
|
53
|
-
const domainToMappings = {
|
|
54
|
-
|
|
85
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
86
|
+
function resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl(opts) {
|
|
87
|
+
const domainToMappings = {
|
|
88
|
+
"bo._base_domain_": [
|
|
89
|
+
{
|
|
90
|
+
srcPath: "/participants-service",
|
|
91
|
+
destPath: ""
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"wixbo.ai": [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/participants-service",
|
|
97
|
+
destPath: ""
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"wix-bo.com": [
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/participants-service",
|
|
103
|
+
destPath: ""
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"manage._base_domain_": [
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/participants-service",
|
|
109
|
+
destPath: ""
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
_: [
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/participants-service",
|
|
115
|
+
destPath: ""
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"editor._base_domain_": [
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/participants-service",
|
|
121
|
+
destPath: ""
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"blocks._base_domain_": [
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/participants-service",
|
|
127
|
+
destPath: ""
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"create.editorx": [
|
|
131
|
+
{
|
|
132
|
+
srcPath: "/participants-service",
|
|
133
|
+
destPath: ""
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"www._base_domain_": [
|
|
137
|
+
{
|
|
138
|
+
srcPath: "/_api/participants-service",
|
|
139
|
+
destPath: ""
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"www.wixapis.com": [
|
|
143
|
+
{
|
|
144
|
+
srcPath: "/online-programs/v3/participants",
|
|
145
|
+
destPath: "/v3/participants"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
srcPath: "/online-programs/v3/bulk/participants",
|
|
149
|
+
destPath: "/v3/bulk/participants"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
srcPath: "/online-programs/participants/v3/participants",
|
|
153
|
+
destPath: "/v3/participants"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
srcPath: "/online-programs/participants/v3/bulk/participants",
|
|
157
|
+
destPath: "/v3/bulk/participants"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
srcPath: "/online-programs/participants/v3/stats/premium",
|
|
161
|
+
destPath: "/v3/stats/premium"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"*.dev.wix-code.com": [
|
|
165
|
+
{
|
|
166
|
+
srcPath: "/_api/participants-service",
|
|
167
|
+
destPath: ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
};
|
|
171
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
172
|
+
}
|
|
173
|
+
function resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl(opts) {
|
|
174
|
+
const domainToMappings = {
|
|
175
|
+
"bo._base_domain_": [
|
|
176
|
+
{
|
|
177
|
+
srcPath: "/participants-service",
|
|
178
|
+
destPath: ""
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"wixbo.ai": [
|
|
182
|
+
{
|
|
183
|
+
srcPath: "/participants-service",
|
|
184
|
+
destPath: ""
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"wix-bo.com": [
|
|
188
|
+
{
|
|
189
|
+
srcPath: "/participants-service",
|
|
190
|
+
destPath: ""
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"manage._base_domain_": [
|
|
194
|
+
{
|
|
195
|
+
srcPath: "/participants-service",
|
|
196
|
+
destPath: ""
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
_: [
|
|
200
|
+
{
|
|
201
|
+
srcPath: "/participants-service",
|
|
202
|
+
destPath: ""
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"editor._base_domain_": [
|
|
206
|
+
{
|
|
207
|
+
srcPath: "/participants-service",
|
|
208
|
+
destPath: ""
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"blocks._base_domain_": [
|
|
212
|
+
{
|
|
213
|
+
srcPath: "/participants-service",
|
|
214
|
+
destPath: ""
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"create.editorx": [
|
|
218
|
+
{
|
|
219
|
+
srcPath: "/participants-service",
|
|
220
|
+
destPath: ""
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"www._base_domain_": [
|
|
224
|
+
{
|
|
225
|
+
srcPath: "/_api/participants-service",
|
|
226
|
+
destPath: ""
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"www.wixapis.com": [
|
|
230
|
+
{
|
|
231
|
+
srcPath: "/online-programs/v3/participants",
|
|
232
|
+
destPath: "/v3/participants"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
srcPath: "/online-programs/v3/bulk/participants",
|
|
236
|
+
destPath: "/v3/bulk/participants"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
srcPath: "/online-programs/participants/v3/participants",
|
|
240
|
+
destPath: "/v3/participants"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
srcPath: "/online-programs/participants/v3/bulk/participants",
|
|
244
|
+
destPath: "/v3/bulk/participants"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
srcPath: "/online-programs/participants/v3/stats/premium",
|
|
248
|
+
destPath: "/v3/stats/premium"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"*.dev.wix-code.com": [
|
|
252
|
+
{
|
|
253
|
+
srcPath: "/_api/participants-service",
|
|
254
|
+
destPath: ""
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
};
|
|
258
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
55
259
|
}
|
|
56
260
|
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
57
|
-
function
|
|
58
|
-
function
|
|
261
|
+
function createParticipant(payload) {
|
|
262
|
+
function __createParticipant({ host }) {
|
|
263
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
264
|
+
{
|
|
265
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
266
|
+
paths: [
|
|
267
|
+
{ path: "participant.createdDate" },
|
|
268
|
+
{ path: "participant.updatedDate" },
|
|
269
|
+
{ path: "participant.lastActivityDate" },
|
|
270
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
275
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
276
|
+
}
|
|
277
|
+
]);
|
|
59
278
|
const metadata = {
|
|
60
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
279
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
61
280
|
method: "POST",
|
|
62
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
281
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.CreateParticipant",
|
|
63
282
|
packageName: PACKAGE_NAME,
|
|
64
283
|
migrationOptions: {
|
|
65
284
|
optInTransformResponse: true
|
|
66
285
|
},
|
|
67
|
-
url:
|
|
68
|
-
protoPath: "/v3/
|
|
69
|
-
data:
|
|
286
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
287
|
+
protoPath: "/v3/participants",
|
|
288
|
+
data: serializedData,
|
|
70
289
|
host
|
|
71
290
|
}),
|
|
72
|
-
data:
|
|
291
|
+
data: serializedData,
|
|
292
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
293
|
+
{
|
|
294
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
295
|
+
paths: [
|
|
296
|
+
{ path: "participant.createdDate" },
|
|
297
|
+
{ path: "participant.updatedDate" },
|
|
298
|
+
{ path: "participant.lastActivityDate" },
|
|
299
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
304
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
305
|
+
}
|
|
306
|
+
])
|
|
307
|
+
};
|
|
308
|
+
return metadata;
|
|
309
|
+
}
|
|
310
|
+
return __createParticipant;
|
|
311
|
+
}
|
|
312
|
+
function updateParticipant(payload) {
|
|
313
|
+
function __updateParticipant({ host }) {
|
|
314
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
315
|
+
{
|
|
316
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
317
|
+
paths: [{ path: "fieldMask" }]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
321
|
+
paths: [
|
|
322
|
+
{ path: "participant.createdDate" },
|
|
323
|
+
{ path: "participant.updatedDate" },
|
|
324
|
+
{ path: "participant.lastActivityDate" },
|
|
325
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
330
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
331
|
+
}
|
|
332
|
+
]);
|
|
333
|
+
const metadata = {
|
|
334
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
335
|
+
method: "PATCH",
|
|
336
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.UpdateParticipant",
|
|
337
|
+
packageName: PACKAGE_NAME,
|
|
338
|
+
migrationOptions: {
|
|
339
|
+
optInTransformResponse: true
|
|
340
|
+
},
|
|
341
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
342
|
+
protoPath: "/v3/participants/{participant.id}",
|
|
343
|
+
data: serializedData,
|
|
344
|
+
host
|
|
345
|
+
}),
|
|
346
|
+
data: serializedData,
|
|
347
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
348
|
+
{
|
|
349
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
350
|
+
paths: [
|
|
351
|
+
{ path: "participant.createdDate" },
|
|
352
|
+
{ path: "participant.updatedDate" },
|
|
353
|
+
{ path: "participant.lastActivityDate" },
|
|
354
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
359
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
360
|
+
}
|
|
361
|
+
])
|
|
362
|
+
};
|
|
363
|
+
return metadata;
|
|
364
|
+
}
|
|
365
|
+
return __updateParticipant;
|
|
366
|
+
}
|
|
367
|
+
function bulkCreateParticipants(payload) {
|
|
368
|
+
function __bulkCreateParticipants({ host }) {
|
|
369
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
370
|
+
{
|
|
371
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
372
|
+
paths: [
|
|
373
|
+
{ path: "participants.createdDate" },
|
|
374
|
+
{ path: "participants.updatedDate" },
|
|
375
|
+
{ path: "participants.lastActivityDate" },
|
|
376
|
+
{ path: "participants.certificateInfo.issueDate" }
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
381
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
382
|
+
}
|
|
383
|
+
]);
|
|
384
|
+
const metadata = {
|
|
385
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
386
|
+
method: "POST",
|
|
387
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipants",
|
|
388
|
+
packageName: PACKAGE_NAME,
|
|
389
|
+
migrationOptions: {
|
|
390
|
+
optInTransformResponse: true
|
|
391
|
+
},
|
|
392
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
393
|
+
protoPath: "/v3/bulk/participants/create",
|
|
394
|
+
data: serializedData,
|
|
395
|
+
host
|
|
396
|
+
}),
|
|
397
|
+
data: serializedData,
|
|
73
398
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
74
399
|
{
|
|
75
|
-
transformFn:
|
|
400
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
76
401
|
paths: [
|
|
77
402
|
{ path: "results.item.createdDate" },
|
|
78
403
|
{ path: "results.item.updatedDate" },
|
|
79
404
|
{ path: "results.item.lastActivityDate" },
|
|
80
|
-
{ path: "results.item.
|
|
405
|
+
{ path: "results.item.certificateInfo.issueDate" }
|
|
81
406
|
]
|
|
82
407
|
},
|
|
83
408
|
{
|
|
84
|
-
transformFn:
|
|
409
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
85
410
|
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
86
411
|
}
|
|
87
412
|
])
|
|
88
413
|
};
|
|
89
414
|
return metadata;
|
|
90
415
|
}
|
|
91
|
-
return
|
|
416
|
+
return __bulkCreateParticipants;
|
|
92
417
|
}
|
|
93
|
-
function
|
|
94
|
-
function
|
|
418
|
+
function bulkCreateParticipantsForAllMembers(payload) {
|
|
419
|
+
function __bulkCreateParticipantsForAllMembers({ host }) {
|
|
95
420
|
const metadata = {
|
|
96
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
421
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
97
422
|
method: "POST",
|
|
98
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
423
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkCreateParticipantsForAllMembers",
|
|
99
424
|
packageName: PACKAGE_NAME,
|
|
100
425
|
migrationOptions: {
|
|
101
426
|
optInTransformResponse: true
|
|
102
427
|
},
|
|
103
|
-
url:
|
|
104
|
-
protoPath: "/v3/bulk/participants/
|
|
428
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
429
|
+
protoPath: "/v3/bulk/participants/create-for-all-members",
|
|
105
430
|
data: payload,
|
|
106
431
|
host
|
|
107
432
|
}),
|
|
@@ -109,92 +434,212 @@ function bulkInviteAllToProgram(payload) {
|
|
|
109
434
|
};
|
|
110
435
|
return metadata;
|
|
111
436
|
}
|
|
112
|
-
return
|
|
437
|
+
return __bulkCreateParticipantsForAllMembers;
|
|
438
|
+
}
|
|
439
|
+
function deleteParticipant(payload) {
|
|
440
|
+
function __deleteParticipant({ host }) {
|
|
441
|
+
const metadata = {
|
|
442
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
443
|
+
method: "DELETE",
|
|
444
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.DeleteParticipant",
|
|
445
|
+
packageName: PACKAGE_NAME,
|
|
446
|
+
migrationOptions: {
|
|
447
|
+
optInTransformResponse: true
|
|
448
|
+
},
|
|
449
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
450
|
+
protoPath: "/v3/participants/{participantId}",
|
|
451
|
+
data: payload,
|
|
452
|
+
host
|
|
453
|
+
}),
|
|
454
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
455
|
+
};
|
|
456
|
+
return metadata;
|
|
457
|
+
}
|
|
458
|
+
return __deleteParticipant;
|
|
113
459
|
}
|
|
114
|
-
function
|
|
115
|
-
function
|
|
460
|
+
function issueCertificate(payload) {
|
|
461
|
+
function __issueCertificate({ host }) {
|
|
116
462
|
const metadata = {
|
|
117
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
463
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
118
464
|
method: "POST",
|
|
119
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
465
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.IssueCertificate",
|
|
120
466
|
packageName: PACKAGE_NAME,
|
|
121
467
|
migrationOptions: {
|
|
122
468
|
optInTransformResponse: true
|
|
123
469
|
},
|
|
124
|
-
url:
|
|
125
|
-
protoPath: "/v3/
|
|
470
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
471
|
+
protoPath: "/v3/participants/{participantId}/issue-certificate",
|
|
126
472
|
data: payload,
|
|
127
473
|
host
|
|
128
474
|
}),
|
|
129
475
|
data: payload,
|
|
130
476
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
131
477
|
{
|
|
132
|
-
transformFn:
|
|
478
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
133
479
|
paths: [
|
|
134
|
-
{ path: "
|
|
135
|
-
{ path: "
|
|
136
|
-
{ path: "
|
|
137
|
-
{ path: "
|
|
480
|
+
{ path: "participant.createdDate" },
|
|
481
|
+
{ path: "participant.updatedDate" },
|
|
482
|
+
{ path: "participant.lastActivityDate" },
|
|
483
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
138
484
|
]
|
|
139
485
|
},
|
|
140
486
|
{
|
|
141
|
-
transformFn:
|
|
142
|
-
paths: [{ path: "
|
|
487
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
488
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
489
|
+
}
|
|
490
|
+
])
|
|
491
|
+
};
|
|
492
|
+
return metadata;
|
|
493
|
+
}
|
|
494
|
+
return __issueCertificate;
|
|
495
|
+
}
|
|
496
|
+
function getPremiumStats(payload) {
|
|
497
|
+
function __getPremiumStats({ host }) {
|
|
498
|
+
const metadata = {
|
|
499
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
500
|
+
method: "GET",
|
|
501
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetPremiumStats",
|
|
502
|
+
packageName: PACKAGE_NAME,
|
|
503
|
+
migrationOptions: {
|
|
504
|
+
optInTransformResponse: true
|
|
505
|
+
},
|
|
506
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
507
|
+
protoPath: "/v3/stats/premium",
|
|
508
|
+
data: payload,
|
|
509
|
+
host
|
|
510
|
+
}),
|
|
511
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
512
|
+
};
|
|
513
|
+
return metadata;
|
|
514
|
+
}
|
|
515
|
+
return __getPremiumStats;
|
|
516
|
+
}
|
|
517
|
+
function getParticipant(payload) {
|
|
518
|
+
function __getParticipant({ host }) {
|
|
519
|
+
const metadata = {
|
|
520
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
521
|
+
method: "GET",
|
|
522
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
|
|
523
|
+
packageName: PACKAGE_NAME,
|
|
524
|
+
migrationOptions: {
|
|
525
|
+
optInTransformResponse: true
|
|
526
|
+
},
|
|
527
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
528
|
+
protoPath: "/v3/participants/{participantId}",
|
|
529
|
+
data: payload,
|
|
530
|
+
host
|
|
531
|
+
}),
|
|
532
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
533
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
534
|
+
{
|
|
535
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
536
|
+
paths: [
|
|
537
|
+
{ path: "participant.createdDate" },
|
|
538
|
+
{ path: "participant.updatedDate" },
|
|
539
|
+
{ path: "participant.lastActivityDate" },
|
|
540
|
+
{ path: "participant.certificateInfo.issueDate" }
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
545
|
+
paths: [{ path: "participant.progress.completionPercentage" }]
|
|
143
546
|
}
|
|
144
547
|
])
|
|
145
548
|
};
|
|
146
549
|
return metadata;
|
|
147
550
|
}
|
|
148
|
-
return
|
|
551
|
+
return __getParticipant;
|
|
149
552
|
}
|
|
150
|
-
function
|
|
151
|
-
function
|
|
553
|
+
function queryParticipants(payload) {
|
|
554
|
+
function __queryParticipants({ host }) {
|
|
152
555
|
const metadata = {
|
|
153
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
556
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
154
557
|
method: "POST",
|
|
155
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
558
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
|
|
156
559
|
packageName: PACKAGE_NAME,
|
|
157
560
|
migrationOptions: {
|
|
158
561
|
optInTransformResponse: true
|
|
159
562
|
},
|
|
160
|
-
url:
|
|
161
|
-
protoPath: "/v3/
|
|
563
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
564
|
+
protoPath: "/v3/participants/query",
|
|
162
565
|
data: payload,
|
|
163
566
|
host
|
|
164
567
|
}),
|
|
165
568
|
data: payload,
|
|
166
569
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
167
570
|
{
|
|
168
|
-
transformFn:
|
|
571
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
169
572
|
paths: [
|
|
170
|
-
{ path: "
|
|
171
|
-
{ path: "
|
|
172
|
-
{ path: "
|
|
173
|
-
{ path: "
|
|
573
|
+
{ path: "participants.createdDate" },
|
|
574
|
+
{ path: "participants.updatedDate" },
|
|
575
|
+
{ path: "participants.lastActivityDate" },
|
|
576
|
+
{ path: "participants.certificateInfo.issueDate" }
|
|
174
577
|
]
|
|
175
578
|
},
|
|
176
579
|
{
|
|
177
|
-
transformFn:
|
|
178
|
-
paths: [{ path: "
|
|
580
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
581
|
+
paths: [{ path: "participants.progress.completionPercentage" }]
|
|
179
582
|
}
|
|
180
583
|
])
|
|
181
584
|
};
|
|
182
585
|
return metadata;
|
|
183
586
|
}
|
|
184
|
-
return
|
|
587
|
+
return __queryParticipants;
|
|
588
|
+
}
|
|
589
|
+
function getAccessStatus(payload) {
|
|
590
|
+
function __getAccessStatus({ host }) {
|
|
591
|
+
const metadata = {
|
|
592
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
593
|
+
method: "GET",
|
|
594
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
|
|
595
|
+
packageName: PACKAGE_NAME,
|
|
596
|
+
migrationOptions: {
|
|
597
|
+
optInTransformResponse: true
|
|
598
|
+
},
|
|
599
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
600
|
+
protoPath: "/v3/participants/access",
|
|
601
|
+
data: payload,
|
|
602
|
+
host
|
|
603
|
+
}),
|
|
604
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
605
|
+
};
|
|
606
|
+
return metadata;
|
|
607
|
+
}
|
|
608
|
+
return __getAccessStatus;
|
|
609
|
+
}
|
|
610
|
+
function bulkUpdateParticipantTags(payload) {
|
|
611
|
+
function __bulkUpdateParticipantTags({ host }) {
|
|
612
|
+
const metadata = {
|
|
613
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
614
|
+
method: "POST",
|
|
615
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
|
|
616
|
+
packageName: PACKAGE_NAME,
|
|
617
|
+
migrationOptions: {
|
|
618
|
+
optInTransformResponse: true
|
|
619
|
+
},
|
|
620
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
621
|
+
protoPath: "/v3/bulk/participants/update-tags",
|
|
622
|
+
data: payload,
|
|
623
|
+
host
|
|
624
|
+
}),
|
|
625
|
+
data: payload
|
|
626
|
+
};
|
|
627
|
+
return metadata;
|
|
628
|
+
}
|
|
629
|
+
return __bulkUpdateParticipantTags;
|
|
185
630
|
}
|
|
186
|
-
function
|
|
187
|
-
function
|
|
631
|
+
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
632
|
+
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
188
633
|
const metadata = {
|
|
189
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
634
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
190
635
|
method: "POST",
|
|
191
|
-
methodFqn: "wix.onlineprograms.participants.v3.
|
|
636
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
192
637
|
packageName: PACKAGE_NAME,
|
|
193
638
|
migrationOptions: {
|
|
194
639
|
optInTransformResponse: true
|
|
195
640
|
},
|
|
196
|
-
url:
|
|
197
|
-
protoPath: "/v3/bulk/participants/
|
|
641
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
642
|
+
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
198
643
|
data: payload,
|
|
199
644
|
host
|
|
200
645
|
}),
|
|
@@ -202,30 +647,200 @@ function bulkApproveAllParticipant(payload) {
|
|
|
202
647
|
};
|
|
203
648
|
return metadata;
|
|
204
649
|
}
|
|
205
|
-
return
|
|
650
|
+
return __bulkUpdateParticipantTagsByFilter;
|
|
651
|
+
}
|
|
652
|
+
function searchParticipants(payload) {
|
|
653
|
+
function __searchParticipants({ host }) {
|
|
654
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
655
|
+
{
|
|
656
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
657
|
+
paths: [
|
|
658
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
659
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
660
|
+
{
|
|
661
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
}
|
|
668
|
+
]);
|
|
669
|
+
const metadata = {
|
|
670
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
671
|
+
method: "POST",
|
|
672
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
673
|
+
packageName: PACKAGE_NAME,
|
|
674
|
+
migrationOptions: {
|
|
675
|
+
optInTransformResponse: true
|
|
676
|
+
},
|
|
677
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
678
|
+
protoPath: "/v3/participants/search",
|
|
679
|
+
data: serializedData,
|
|
680
|
+
host
|
|
681
|
+
}),
|
|
682
|
+
data: serializedData,
|
|
683
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
684
|
+
{
|
|
685
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
686
|
+
paths: [
|
|
687
|
+
{ path: "participants.createdDate" },
|
|
688
|
+
{ path: "participants.updatedDate" },
|
|
689
|
+
{ path: "participants.lastActivityDate" },
|
|
690
|
+
{ path: "participants.certificateInfo.issueDate" }
|
|
691
|
+
]
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
695
|
+
paths: [
|
|
696
|
+
{ path: "participants.progress.completionPercentage" },
|
|
697
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
698
|
+
{
|
|
699
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
703
|
+
},
|
|
704
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
705
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
706
|
+
{
|
|
707
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
717
|
+
}
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
])
|
|
721
|
+
};
|
|
722
|
+
return metadata;
|
|
723
|
+
}
|
|
724
|
+
return __searchParticipants;
|
|
725
|
+
}
|
|
726
|
+
function exportParticipantsStats(payload) {
|
|
727
|
+
function __exportParticipantsStats({ host }) {
|
|
728
|
+
const metadata = {
|
|
729
|
+
entityFqdn: "wix.online_programs.participants.v3.participant",
|
|
730
|
+
method: "GET",
|
|
731
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
|
|
732
|
+
packageName: PACKAGE_NAME,
|
|
733
|
+
migrationOptions: {
|
|
734
|
+
optInTransformResponse: true
|
|
735
|
+
},
|
|
736
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
|
|
737
|
+
protoPath: "/v3/participants/export/{programId}",
|
|
738
|
+
data: payload,
|
|
739
|
+
host
|
|
740
|
+
}),
|
|
741
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
742
|
+
};
|
|
743
|
+
return metadata;
|
|
744
|
+
}
|
|
745
|
+
return __exportParticipantsStats;
|
|
206
746
|
}
|
|
207
747
|
|
|
208
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
209
|
-
var
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
748
|
+
// src/online-programs-participants-v3-participant-participants.universal.ts
|
|
749
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
750
|
+
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
751
|
+
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
752
|
+
var PricingType = /* @__PURE__ */ ((PricingType2) => {
|
|
753
|
+
PricingType2["FREE"] = "FREE";
|
|
754
|
+
PricingType2["ADDED_MANUALLY"] = "ADDED_MANUALLY";
|
|
755
|
+
PricingType2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
756
|
+
PricingType2["PAID_PLAN"] = "PAID_PLAN";
|
|
757
|
+
PricingType2["FREE_COUPON"] = "FREE_COUPON";
|
|
758
|
+
return PricingType2;
|
|
759
|
+
})(PricingType || {});
|
|
760
|
+
var EnrollmentStatus = /* @__PURE__ */ ((EnrollmentStatus2) => {
|
|
761
|
+
EnrollmentStatus2["JOINED"] = "JOINED";
|
|
762
|
+
EnrollmentStatus2["SUSPENDED"] = "SUSPENDED";
|
|
763
|
+
EnrollmentStatus2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
764
|
+
EnrollmentStatus2["REMOVED"] = "REMOVED";
|
|
765
|
+
EnrollmentStatus2["LEFT"] = "LEFT";
|
|
766
|
+
return EnrollmentStatus2;
|
|
767
|
+
})(EnrollmentStatus || {});
|
|
768
|
+
var ProgressStatus = /* @__PURE__ */ ((ProgressStatus2) => {
|
|
769
|
+
ProgressStatus2["NOT_STARTED"] = "NOT_STARTED";
|
|
770
|
+
ProgressStatus2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
771
|
+
ProgressStatus2["COMPLETED"] = "COMPLETED";
|
|
772
|
+
ProgressStatus2["FAILED"] = "FAILED";
|
|
773
|
+
ProgressStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
774
|
+
return ProgressStatus2;
|
|
775
|
+
})(ProgressStatus || {});
|
|
776
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
777
|
+
RequestedFields2["PROGRESS"] = "PROGRESS";
|
|
778
|
+
return RequestedFields2;
|
|
779
|
+
})(RequestedFields || {});
|
|
780
|
+
var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
|
|
781
|
+
BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
782
|
+
BulkActionType2["INSERT"] = "INSERT";
|
|
783
|
+
BulkActionType2["UPDATE"] = "UPDATE";
|
|
784
|
+
return BulkActionType2;
|
|
785
|
+
})(BulkActionType || {});
|
|
786
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
787
|
+
SortOrder2["ASC"] = "ASC";
|
|
788
|
+
SortOrder2["DESC"] = "DESC";
|
|
789
|
+
return SortOrder2;
|
|
790
|
+
})(SortOrder || {});
|
|
791
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
792
|
+
SortType2["COUNT"] = "COUNT";
|
|
793
|
+
SortType2["VALUE"] = "VALUE";
|
|
794
|
+
return SortType2;
|
|
795
|
+
})(SortType || {});
|
|
796
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
797
|
+
SortDirection2["DESC"] = "DESC";
|
|
798
|
+
SortDirection2["ASC"] = "ASC";
|
|
799
|
+
return SortDirection2;
|
|
800
|
+
})(SortDirection || {});
|
|
801
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
802
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
803
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
804
|
+
return MissingValues2;
|
|
805
|
+
})(MissingValues || {});
|
|
806
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
807
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
808
|
+
ScalarType2["MIN"] = "MIN";
|
|
809
|
+
ScalarType2["MAX"] = "MAX";
|
|
810
|
+
ScalarType2["SUM"] = "SUM";
|
|
811
|
+
ScalarType2["AVG"] = "AVG";
|
|
812
|
+
return ScalarType2;
|
|
813
|
+
})(ScalarType || {});
|
|
814
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
815
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
816
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
817
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
818
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
819
|
+
return NestedAggregationType2;
|
|
820
|
+
})(NestedAggregationType || {});
|
|
821
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
822
|
+
Interval2["YEAR"] = "YEAR";
|
|
823
|
+
Interval2["MONTH"] = "MONTH";
|
|
824
|
+
Interval2["WEEK"] = "WEEK";
|
|
825
|
+
Interval2["DAY"] = "DAY";
|
|
826
|
+
Interval2["HOUR"] = "HOUR";
|
|
827
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
828
|
+
Interval2["SECOND"] = "SECOND";
|
|
829
|
+
return Interval2;
|
|
830
|
+
})(Interval || {});
|
|
831
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
832
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
833
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
834
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
835
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
836
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
837
|
+
return AggregationType2;
|
|
838
|
+
})(AggregationType || {});
|
|
839
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
840
|
+
Mode2["OR"] = "OR";
|
|
841
|
+
Mode2["AND"] = "AND";
|
|
842
|
+
return Mode2;
|
|
843
|
+
})(Mode || {});
|
|
229
844
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
230
845
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
231
846
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -234,74 +849,78 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
234
849
|
WebhookIdentityType2["APP"] = "APP";
|
|
235
850
|
return WebhookIdentityType2;
|
|
236
851
|
})(WebhookIdentityType || {});
|
|
237
|
-
async function
|
|
852
|
+
async function createParticipant2(participant, options) {
|
|
238
853
|
const { httpClient, sideEffects } = arguments[2];
|
|
239
854
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
returnEntity: options?.returnEntity
|
|
855
|
+
participant,
|
|
856
|
+
fields: options?.fields
|
|
243
857
|
});
|
|
244
|
-
const reqOpts =
|
|
858
|
+
const reqOpts = createParticipant(
|
|
859
|
+
payload
|
|
860
|
+
);
|
|
245
861
|
sideEffects?.onSiteCall?.();
|
|
246
862
|
try {
|
|
247
863
|
const result = await httpClient.request(reqOpts);
|
|
248
864
|
sideEffects?.onSuccess?.(result);
|
|
249
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
865
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
250
866
|
} catch (err) {
|
|
251
867
|
const transformedError = (0, import_transform_error.transformError)(
|
|
252
868
|
err,
|
|
253
869
|
{
|
|
254
870
|
spreadPathsToArguments: {},
|
|
255
871
|
explicitPathsToArguments: {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
returnEntity: "$[1].returnEntity"
|
|
872
|
+
participant: "$[0]",
|
|
873
|
+
fields: "$[1].fields"
|
|
259
874
|
},
|
|
260
875
|
singleArgumentUnchanged: false
|
|
261
876
|
},
|
|
262
|
-
["
|
|
877
|
+
["participant", "options"]
|
|
263
878
|
);
|
|
264
879
|
sideEffects?.onError?.(err);
|
|
265
880
|
throw transformedError;
|
|
266
881
|
}
|
|
267
882
|
}
|
|
268
|
-
async function
|
|
269
|
-
const { httpClient, sideEffects } = arguments[
|
|
883
|
+
async function updateParticipant2(_id, participant, options) {
|
|
884
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
270
885
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
271
|
-
|
|
272
|
-
|
|
886
|
+
participant: { ...participant, id: _id },
|
|
887
|
+
fields: options?.fields
|
|
273
888
|
});
|
|
274
|
-
const reqOpts =
|
|
889
|
+
const reqOpts = updateParticipant(
|
|
890
|
+
payload
|
|
891
|
+
);
|
|
275
892
|
sideEffects?.onSiteCall?.();
|
|
276
893
|
try {
|
|
277
894
|
const result = await httpClient.request(reqOpts);
|
|
278
895
|
sideEffects?.onSuccess?.(result);
|
|
279
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
896
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
280
897
|
} catch (err) {
|
|
281
898
|
const transformedError = (0, import_transform_error.transformError)(
|
|
282
899
|
err,
|
|
283
900
|
{
|
|
284
|
-
spreadPathsToArguments: {},
|
|
901
|
+
spreadPathsToArguments: { participant: "$[1]" },
|
|
285
902
|
explicitPathsToArguments: {
|
|
286
|
-
|
|
287
|
-
|
|
903
|
+
"participant.id": "$[0]",
|
|
904
|
+
fields: "$[2].fields"
|
|
288
905
|
},
|
|
289
906
|
singleArgumentUnchanged: false
|
|
290
907
|
},
|
|
291
|
-
["
|
|
908
|
+
["_id", "participant", "options"]
|
|
292
909
|
);
|
|
293
910
|
sideEffects?.onError?.(err);
|
|
294
911
|
throw transformedError;
|
|
295
912
|
}
|
|
296
913
|
}
|
|
297
|
-
async function
|
|
914
|
+
async function bulkCreateParticipants2(participants, options) {
|
|
298
915
|
const { httpClient, sideEffects } = arguments[2];
|
|
299
916
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
917
|
+
participants,
|
|
918
|
+
returnEntity: options?.returnEntity,
|
|
919
|
+
fields: options?.fields
|
|
303
920
|
});
|
|
304
|
-
const reqOpts =
|
|
921
|
+
const reqOpts = bulkCreateParticipants(
|
|
922
|
+
payload
|
|
923
|
+
);
|
|
305
924
|
sideEffects?.onSiteCall?.();
|
|
306
925
|
try {
|
|
307
926
|
const result = await httpClient.request(reqOpts);
|
|
@@ -313,26 +932,277 @@ async function bulkAddToProgram2(programId, options) {
|
|
|
313
932
|
{
|
|
314
933
|
spreadPathsToArguments: {},
|
|
315
934
|
explicitPathsToArguments: {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
935
|
+
participants: "$[0]",
|
|
936
|
+
returnEntity: "$[1].returnEntity",
|
|
937
|
+
fields: "$[1].fields"
|
|
319
938
|
},
|
|
320
939
|
singleArgumentUnchanged: false
|
|
321
940
|
},
|
|
322
|
-
["
|
|
941
|
+
["participants", "options"]
|
|
323
942
|
);
|
|
324
943
|
sideEffects?.onError?.(err);
|
|
325
944
|
throw transformedError;
|
|
326
945
|
}
|
|
327
946
|
}
|
|
328
|
-
async function
|
|
947
|
+
async function bulkCreateParticipantsForAllMembers2(programId, options) {
|
|
329
948
|
const { httpClient, sideEffects } = arguments[2];
|
|
330
949
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
returnEntity: options?.returnEntity
|
|
950
|
+
programId,
|
|
951
|
+
excludeMemberIds: options?.excludeMemberIds
|
|
334
952
|
});
|
|
335
|
-
const reqOpts =
|
|
953
|
+
const reqOpts = bulkCreateParticipantsForAllMembers(
|
|
954
|
+
payload
|
|
955
|
+
);
|
|
956
|
+
sideEffects?.onSiteCall?.();
|
|
957
|
+
try {
|
|
958
|
+
const result = await httpClient.request(reqOpts);
|
|
959
|
+
sideEffects?.onSuccess?.(result);
|
|
960
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
961
|
+
} catch (err) {
|
|
962
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
963
|
+
err,
|
|
964
|
+
{
|
|
965
|
+
spreadPathsToArguments: {},
|
|
966
|
+
explicitPathsToArguments: {
|
|
967
|
+
programId: "$[0]",
|
|
968
|
+
excludeMemberIds: "$[1].excludeMemberIds"
|
|
969
|
+
},
|
|
970
|
+
singleArgumentUnchanged: false
|
|
971
|
+
},
|
|
972
|
+
["programId", "options"]
|
|
973
|
+
);
|
|
974
|
+
sideEffects?.onError?.(err);
|
|
975
|
+
throw transformedError;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
async function deleteParticipant2(participantId) {
|
|
979
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
980
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
981
|
+
participantId
|
|
982
|
+
});
|
|
983
|
+
const reqOpts = deleteParticipant(
|
|
984
|
+
payload
|
|
985
|
+
);
|
|
986
|
+
sideEffects?.onSiteCall?.();
|
|
987
|
+
try {
|
|
988
|
+
const result = await httpClient.request(reqOpts);
|
|
989
|
+
sideEffects?.onSuccess?.(result);
|
|
990
|
+
} catch (err) {
|
|
991
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
992
|
+
err,
|
|
993
|
+
{
|
|
994
|
+
spreadPathsToArguments: {},
|
|
995
|
+
explicitPathsToArguments: { participantId: "$[0]" },
|
|
996
|
+
singleArgumentUnchanged: false
|
|
997
|
+
},
|
|
998
|
+
["participantId"]
|
|
999
|
+
);
|
|
1000
|
+
sideEffects?.onError?.(err);
|
|
1001
|
+
throw transformedError;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
async function issueCertificate2(participantId, options) {
|
|
1005
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1006
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1007
|
+
participantId,
|
|
1008
|
+
fields: options?.fields
|
|
1009
|
+
});
|
|
1010
|
+
const reqOpts = issueCertificate(
|
|
1011
|
+
payload
|
|
1012
|
+
);
|
|
1013
|
+
sideEffects?.onSiteCall?.();
|
|
1014
|
+
try {
|
|
1015
|
+
const result = await httpClient.request(reqOpts);
|
|
1016
|
+
sideEffects?.onSuccess?.(result);
|
|
1017
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1018
|
+
} catch (err) {
|
|
1019
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1020
|
+
err,
|
|
1021
|
+
{
|
|
1022
|
+
spreadPathsToArguments: {},
|
|
1023
|
+
explicitPathsToArguments: {
|
|
1024
|
+
participantId: "$[0]",
|
|
1025
|
+
fields: "$[1].fields"
|
|
1026
|
+
},
|
|
1027
|
+
singleArgumentUnchanged: false
|
|
1028
|
+
},
|
|
1029
|
+
["participantId", "options"]
|
|
1030
|
+
);
|
|
1031
|
+
sideEffects?.onError?.(err);
|
|
1032
|
+
throw transformedError;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
async function getPremiumStats2() {
|
|
1036
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1037
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1038
|
+
const reqOpts = getPremiumStats(
|
|
1039
|
+
payload
|
|
1040
|
+
);
|
|
1041
|
+
sideEffects?.onSiteCall?.();
|
|
1042
|
+
try {
|
|
1043
|
+
const result = await httpClient.request(reqOpts);
|
|
1044
|
+
sideEffects?.onSuccess?.(result);
|
|
1045
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1046
|
+
} catch (err) {
|
|
1047
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1048
|
+
err,
|
|
1049
|
+
{
|
|
1050
|
+
spreadPathsToArguments: {},
|
|
1051
|
+
explicitPathsToArguments: {},
|
|
1052
|
+
singleArgumentUnchanged: false
|
|
1053
|
+
},
|
|
1054
|
+
[]
|
|
1055
|
+
);
|
|
1056
|
+
sideEffects?.onError?.(err);
|
|
1057
|
+
throw transformedError;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
async function getParticipant2(participantId, options) {
|
|
1061
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1062
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1063
|
+
participantId,
|
|
1064
|
+
fields: options?.fields
|
|
1065
|
+
});
|
|
1066
|
+
const reqOpts = getParticipant(
|
|
1067
|
+
payload
|
|
1068
|
+
);
|
|
1069
|
+
sideEffects?.onSiteCall?.();
|
|
1070
|
+
try {
|
|
1071
|
+
const result = await httpClient.request(reqOpts);
|
|
1072
|
+
sideEffects?.onSuccess?.(result);
|
|
1073
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.participant;
|
|
1074
|
+
} catch (err) {
|
|
1075
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1076
|
+
err,
|
|
1077
|
+
{
|
|
1078
|
+
spreadPathsToArguments: {},
|
|
1079
|
+
explicitPathsToArguments: {
|
|
1080
|
+
participantId: "$[0]",
|
|
1081
|
+
fields: "$[1].fields"
|
|
1082
|
+
},
|
|
1083
|
+
singleArgumentUnchanged: false
|
|
1084
|
+
},
|
|
1085
|
+
["participantId", "options"]
|
|
1086
|
+
);
|
|
1087
|
+
sideEffects?.onError?.(err);
|
|
1088
|
+
throw transformedError;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
function queryParticipants2(options) {
|
|
1092
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1093
|
+
return (0, import_query_builder.queryBuilder)({
|
|
1094
|
+
func: async (payload) => {
|
|
1095
|
+
const reqOpts = queryParticipants({
|
|
1096
|
+
...payload,
|
|
1097
|
+
...options ?? {}
|
|
1098
|
+
});
|
|
1099
|
+
sideEffects?.onSiteCall?.();
|
|
1100
|
+
try {
|
|
1101
|
+
const result = await httpClient.request(reqOpts);
|
|
1102
|
+
sideEffects?.onSuccess?.(result);
|
|
1103
|
+
return result;
|
|
1104
|
+
} catch (err) {
|
|
1105
|
+
sideEffects?.onError?.(err);
|
|
1106
|
+
throw err;
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
requestTransformer: (query) => {
|
|
1110
|
+
const args = [query, options];
|
|
1111
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1112
|
+
...args?.[1],
|
|
1113
|
+
query: args?.[0]
|
|
1114
|
+
});
|
|
1115
|
+
},
|
|
1116
|
+
responseTransformer: ({
|
|
1117
|
+
data
|
|
1118
|
+
}) => {
|
|
1119
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1120
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
1121
|
+
);
|
|
1122
|
+
return {
|
|
1123
|
+
items: transformedData?.participants,
|
|
1124
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
1125
|
+
};
|
|
1126
|
+
},
|
|
1127
|
+
errorTransformer: (err) => {
|
|
1128
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
1129
|
+
spreadPathsToArguments: {},
|
|
1130
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1131
|
+
singleArgumentUnchanged: false
|
|
1132
|
+
});
|
|
1133
|
+
throw transformedError;
|
|
1134
|
+
},
|
|
1135
|
+
pagingMethod: "CURSOR",
|
|
1136
|
+
transformationPaths: {}
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
async function typedQueryParticipants(query, options) {
|
|
1140
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1141
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1142
|
+
query,
|
|
1143
|
+
...options
|
|
1144
|
+
});
|
|
1145
|
+
const reqOpts = queryParticipants(
|
|
1146
|
+
payload
|
|
1147
|
+
);
|
|
1148
|
+
sideEffects?.onSiteCall?.();
|
|
1149
|
+
try {
|
|
1150
|
+
const result = await httpClient.request(reqOpts);
|
|
1151
|
+
sideEffects?.onSuccess?.(result);
|
|
1152
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1153
|
+
} catch (err) {
|
|
1154
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1155
|
+
err,
|
|
1156
|
+
{
|
|
1157
|
+
spreadPathsToArguments: {},
|
|
1158
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
1159
|
+
singleArgumentUnchanged: false
|
|
1160
|
+
},
|
|
1161
|
+
["query", "options"]
|
|
1162
|
+
);
|
|
1163
|
+
sideEffects?.onError?.(err);
|
|
1164
|
+
throw transformedError;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
var utils = {
|
|
1168
|
+
query: /* @__PURE__ */ (0, import_query_builder_utils.createQueryUtils)(),
|
|
1169
|
+
search: /* @__PURE__ */ (0, import_search_builder_utils.createSearchUtils)()
|
|
1170
|
+
};
|
|
1171
|
+
async function getAccessStatus2() {
|
|
1172
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
1173
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
|
|
1174
|
+
const reqOpts = getAccessStatus(
|
|
1175
|
+
payload
|
|
1176
|
+
);
|
|
1177
|
+
sideEffects?.onSiteCall?.();
|
|
1178
|
+
try {
|
|
1179
|
+
const result = await httpClient.request(reqOpts);
|
|
1180
|
+
sideEffects?.onSuccess?.(result);
|
|
1181
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1182
|
+
} catch (err) {
|
|
1183
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1184
|
+
err,
|
|
1185
|
+
{
|
|
1186
|
+
spreadPathsToArguments: {},
|
|
1187
|
+
explicitPathsToArguments: {},
|
|
1188
|
+
singleArgumentUnchanged: false
|
|
1189
|
+
},
|
|
1190
|
+
[]
|
|
1191
|
+
);
|
|
1192
|
+
sideEffects?.onError?.(err);
|
|
1193
|
+
throw transformedError;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
async function bulkUpdateParticipantTags2(participantIds, options) {
|
|
1197
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1198
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1199
|
+
participantIds,
|
|
1200
|
+
assignTags: options?.assignTags,
|
|
1201
|
+
unassignTags: options?.unassignTags
|
|
1202
|
+
});
|
|
1203
|
+
const reqOpts = bulkUpdateParticipantTags(
|
|
1204
|
+
payload
|
|
1205
|
+
);
|
|
336
1206
|
sideEffects?.onSiteCall?.();
|
|
337
1207
|
try {
|
|
338
1208
|
const result = await httpClient.request(reqOpts);
|
|
@@ -345,8 +1215,8 @@ async function bulkApproveParticipant2(participantIds, options) {
|
|
|
345
1215
|
spreadPathsToArguments: {},
|
|
346
1216
|
explicitPathsToArguments: {
|
|
347
1217
|
participantIds: "$[0]",
|
|
348
|
-
|
|
349
|
-
|
|
1218
|
+
assignTags: "$[1].assignTags",
|
|
1219
|
+
unassignTags: "$[1].unassignTags"
|
|
350
1220
|
},
|
|
351
1221
|
singleArgumentUnchanged: false
|
|
352
1222
|
},
|
|
@@ -356,13 +1226,16 @@ async function bulkApproveParticipant2(participantIds, options) {
|
|
|
356
1226
|
throw transformedError;
|
|
357
1227
|
}
|
|
358
1228
|
}
|
|
359
|
-
async function
|
|
360
|
-
const { httpClient, sideEffects } = arguments[
|
|
1229
|
+
async function bulkUpdateParticipantTagsByFilter2(filter, options) {
|
|
1230
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
361
1231
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
362
|
-
|
|
363
|
-
|
|
1232
|
+
filter,
|
|
1233
|
+
assignTags: options?.assignTags,
|
|
1234
|
+
unassignTags: options?.unassignTags
|
|
364
1235
|
});
|
|
365
|
-
const reqOpts =
|
|
1236
|
+
const reqOpts = bulkUpdateParticipantTagsByFilter(
|
|
1237
|
+
payload
|
|
1238
|
+
);
|
|
366
1239
|
sideEffects?.onSiteCall?.();
|
|
367
1240
|
try {
|
|
368
1241
|
const result = await httpClient.request(reqOpts);
|
|
@@ -374,122 +1247,486 @@ async function bulkApproveAllParticipant2(options) {
|
|
|
374
1247
|
{
|
|
375
1248
|
spreadPathsToArguments: {},
|
|
376
1249
|
explicitPathsToArguments: {
|
|
377
|
-
|
|
378
|
-
|
|
1250
|
+
filter: "$[0]",
|
|
1251
|
+
assignTags: "$[1].assignTags",
|
|
1252
|
+
unassignTags: "$[1].unassignTags"
|
|
379
1253
|
},
|
|
380
1254
|
singleArgumentUnchanged: false
|
|
381
1255
|
},
|
|
382
|
-
["options"]
|
|
1256
|
+
["filter", "options"]
|
|
1257
|
+
);
|
|
1258
|
+
sideEffects?.onError?.(err);
|
|
1259
|
+
throw transformedError;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
async function searchParticipants2(search, options) {
|
|
1263
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1264
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1265
|
+
search,
|
|
1266
|
+
fields: options?.fields
|
|
1267
|
+
});
|
|
1268
|
+
const reqOpts = searchParticipants(
|
|
1269
|
+
payload
|
|
1270
|
+
);
|
|
1271
|
+
sideEffects?.onSiteCall?.();
|
|
1272
|
+
try {
|
|
1273
|
+
const result = await httpClient.request(reqOpts);
|
|
1274
|
+
sideEffects?.onSuccess?.(result);
|
|
1275
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1276
|
+
} catch (err) {
|
|
1277
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1278
|
+
err,
|
|
1279
|
+
{
|
|
1280
|
+
spreadPathsToArguments: {},
|
|
1281
|
+
explicitPathsToArguments: { search: "$[0]", fields: "$[1].fields" },
|
|
1282
|
+
singleArgumentUnchanged: false
|
|
1283
|
+
},
|
|
1284
|
+
["search", "options"]
|
|
1285
|
+
);
|
|
1286
|
+
sideEffects?.onError?.(err);
|
|
1287
|
+
throw transformedError;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
async function exportParticipantsStats2(programId) {
|
|
1291
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1292
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1293
|
+
programId
|
|
1294
|
+
});
|
|
1295
|
+
const reqOpts = exportParticipantsStats(
|
|
1296
|
+
payload
|
|
1297
|
+
);
|
|
1298
|
+
sideEffects?.onSiteCall?.();
|
|
1299
|
+
try {
|
|
1300
|
+
const result = await httpClient.request(reqOpts);
|
|
1301
|
+
sideEffects?.onSuccess?.(result);
|
|
1302
|
+
} catch (err) {
|
|
1303
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1304
|
+
err,
|
|
1305
|
+
{
|
|
1306
|
+
spreadPathsToArguments: {},
|
|
1307
|
+
explicitPathsToArguments: { programId: "$[0]" },
|
|
1308
|
+
singleArgumentUnchanged: false
|
|
1309
|
+
},
|
|
1310
|
+
["programId"]
|
|
383
1311
|
);
|
|
384
1312
|
sideEffects?.onError?.(err);
|
|
385
1313
|
throw transformedError;
|
|
386
1314
|
}
|
|
387
1315
|
}
|
|
388
1316
|
|
|
389
|
-
// src/online-programs-v3-participant-participants.public.ts
|
|
390
|
-
function
|
|
391
|
-
return (
|
|
392
|
-
|
|
1317
|
+
// src/online-programs-participants-v3-participant-participants.public.ts
|
|
1318
|
+
function createParticipant3(httpClient) {
|
|
1319
|
+
return (participant, options) => createParticipant2(
|
|
1320
|
+
participant,
|
|
393
1321
|
options,
|
|
394
1322
|
// @ts-ignore
|
|
395
1323
|
{ httpClient }
|
|
396
1324
|
);
|
|
397
1325
|
}
|
|
398
|
-
function
|
|
399
|
-
return (
|
|
400
|
-
|
|
1326
|
+
function updateParticipant3(httpClient) {
|
|
1327
|
+
return (_id, participant, options) => updateParticipant2(
|
|
1328
|
+
_id,
|
|
1329
|
+
participant,
|
|
1330
|
+
options,
|
|
1331
|
+
// @ts-ignore
|
|
1332
|
+
{ httpClient }
|
|
1333
|
+
);
|
|
1334
|
+
}
|
|
1335
|
+
function bulkCreateParticipants3(httpClient) {
|
|
1336
|
+
return (participants, options) => bulkCreateParticipants2(
|
|
1337
|
+
participants,
|
|
401
1338
|
options,
|
|
402
1339
|
// @ts-ignore
|
|
403
1340
|
{ httpClient }
|
|
404
1341
|
);
|
|
405
1342
|
}
|
|
406
|
-
function
|
|
407
|
-
return (programId, options) =>
|
|
1343
|
+
function bulkCreateParticipantsForAllMembers3(httpClient) {
|
|
1344
|
+
return (programId, options) => bulkCreateParticipantsForAllMembers2(
|
|
408
1345
|
programId,
|
|
409
1346
|
options,
|
|
410
1347
|
// @ts-ignore
|
|
411
1348
|
{ httpClient }
|
|
412
1349
|
);
|
|
413
1350
|
}
|
|
414
|
-
function
|
|
415
|
-
return (
|
|
1351
|
+
function deleteParticipant3(httpClient) {
|
|
1352
|
+
return (participantId) => deleteParticipant2(
|
|
1353
|
+
participantId,
|
|
1354
|
+
// @ts-ignore
|
|
1355
|
+
{ httpClient }
|
|
1356
|
+
);
|
|
1357
|
+
}
|
|
1358
|
+
function issueCertificate3(httpClient) {
|
|
1359
|
+
return (participantId, options) => issueCertificate2(
|
|
1360
|
+
participantId,
|
|
1361
|
+
options,
|
|
1362
|
+
// @ts-ignore
|
|
1363
|
+
{ httpClient }
|
|
1364
|
+
);
|
|
1365
|
+
}
|
|
1366
|
+
function getPremiumStats3(httpClient) {
|
|
1367
|
+
return () => getPremiumStats2(
|
|
1368
|
+
// @ts-ignore
|
|
1369
|
+
{ httpClient }
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
function getParticipant3(httpClient) {
|
|
1373
|
+
return (participantId, options) => getParticipant2(
|
|
1374
|
+
participantId,
|
|
1375
|
+
options,
|
|
1376
|
+
// @ts-ignore
|
|
1377
|
+
{ httpClient }
|
|
1378
|
+
);
|
|
1379
|
+
}
|
|
1380
|
+
function queryParticipants3(httpClient) {
|
|
1381
|
+
return (options) => queryParticipants2(
|
|
1382
|
+
options,
|
|
1383
|
+
// @ts-ignore
|
|
1384
|
+
{ httpClient }
|
|
1385
|
+
);
|
|
1386
|
+
}
|
|
1387
|
+
function typedQueryParticipants2(httpClient) {
|
|
1388
|
+
return (query, options) => typedQueryParticipants(
|
|
1389
|
+
query,
|
|
1390
|
+
options,
|
|
1391
|
+
// @ts-ignore
|
|
1392
|
+
{ httpClient }
|
|
1393
|
+
);
|
|
1394
|
+
}
|
|
1395
|
+
function getAccessStatus3(httpClient) {
|
|
1396
|
+
return () => getAccessStatus2(
|
|
1397
|
+
// @ts-ignore
|
|
1398
|
+
{ httpClient }
|
|
1399
|
+
);
|
|
1400
|
+
}
|
|
1401
|
+
function bulkUpdateParticipantTags3(httpClient) {
|
|
1402
|
+
return (participantIds, options) => bulkUpdateParticipantTags2(
|
|
416
1403
|
participantIds,
|
|
417
1404
|
options,
|
|
418
1405
|
// @ts-ignore
|
|
419
1406
|
{ httpClient }
|
|
420
1407
|
);
|
|
421
1408
|
}
|
|
422
|
-
function
|
|
423
|
-
return (options) =>
|
|
1409
|
+
function bulkUpdateParticipantTagsByFilter3(httpClient) {
|
|
1410
|
+
return (filter, options) => bulkUpdateParticipantTagsByFilter2(
|
|
1411
|
+
filter,
|
|
1412
|
+
options,
|
|
1413
|
+
// @ts-ignore
|
|
1414
|
+
{ httpClient }
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
function searchParticipants3(httpClient) {
|
|
1418
|
+
return (search, options) => searchParticipants2(
|
|
1419
|
+
search,
|
|
424
1420
|
options,
|
|
425
1421
|
// @ts-ignore
|
|
426
1422
|
{ httpClient }
|
|
427
1423
|
);
|
|
428
1424
|
}
|
|
429
|
-
|
|
430
|
-
|
|
1425
|
+
function exportParticipantsStats3(httpClient) {
|
|
1426
|
+
return (programId) => exportParticipantsStats2(
|
|
1427
|
+
programId,
|
|
1428
|
+
// @ts-ignore
|
|
1429
|
+
{ httpClient }
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
var onParticipantCompletedProgram = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1433
|
+
"wix.online_programs.participants.v3.participant_completed_program",
|
|
1434
|
+
true,
|
|
1435
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1436
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1437
|
+
{
|
|
1438
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1439
|
+
paths: [
|
|
1440
|
+
{ path: "data.participant.createdDate" },
|
|
1441
|
+
{ path: "data.participant.updatedDate" },
|
|
1442
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1443
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1444
|
+
{ path: "metadata.eventTime" }
|
|
1445
|
+
]
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1449
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1450
|
+
}
|
|
1451
|
+
])
|
|
1452
|
+
)
|
|
1453
|
+
)();
|
|
1454
|
+
var onParticipantCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1455
|
+
"wix.online_programs.participants.v3.participant_created",
|
|
1456
|
+
true,
|
|
1457
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1458
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1459
|
+
{
|
|
1460
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1461
|
+
paths: [
|
|
1462
|
+
{ path: "entity.createdDate" },
|
|
1463
|
+
{ path: "entity.updatedDate" },
|
|
1464
|
+
{ path: "entity.lastActivityDate" },
|
|
1465
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1466
|
+
{ path: "metadata.eventTime" }
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1471
|
+
paths: [{ path: "entity.progress.completionPercentage" }]
|
|
1472
|
+
}
|
|
1473
|
+
])
|
|
1474
|
+
)
|
|
1475
|
+
)();
|
|
1476
|
+
var onParticipantDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1477
|
+
"wix.online_programs.participants.v3.participant_deleted",
|
|
1478
|
+
true,
|
|
1479
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1480
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1481
|
+
{
|
|
1482
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1483
|
+
paths: [
|
|
1484
|
+
{ path: "entity.createdDate" },
|
|
1485
|
+
{ path: "entity.updatedDate" },
|
|
1486
|
+
{ path: "entity.lastActivityDate" },
|
|
1487
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1488
|
+
{ path: "metadata.eventTime" }
|
|
1489
|
+
]
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1493
|
+
paths: [{ path: "entity.progress.completionPercentage" }]
|
|
1494
|
+
}
|
|
1495
|
+
])
|
|
1496
|
+
)
|
|
1497
|
+
)();
|
|
1498
|
+
var onParticipantLeft = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1499
|
+
"wix.online_programs.participants.v3.participant_left",
|
|
1500
|
+
true,
|
|
1501
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1502
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1503
|
+
{
|
|
1504
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1505
|
+
paths: [
|
|
1506
|
+
{ path: "data.participant.createdDate" },
|
|
1507
|
+
{ path: "data.participant.updatedDate" },
|
|
1508
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1509
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1510
|
+
{ path: "metadata.eventTime" }
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1515
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1516
|
+
}
|
|
1517
|
+
])
|
|
1518
|
+
)
|
|
1519
|
+
)();
|
|
1520
|
+
var onParticipantMissedProgramDeadline = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1521
|
+
"wix.online_programs.participants.v3.participant_missed_program_deadline",
|
|
1522
|
+
true,
|
|
1523
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1524
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1525
|
+
{
|
|
1526
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1527
|
+
paths: [
|
|
1528
|
+
{ path: "data.participant.createdDate" },
|
|
1529
|
+
{ path: "data.participant.updatedDate" },
|
|
1530
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1531
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1532
|
+
{ path: "metadata.eventTime" }
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1537
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1538
|
+
}
|
|
1539
|
+
])
|
|
1540
|
+
)
|
|
1541
|
+
)();
|
|
1542
|
+
var onParticipantProgramDurationEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1543
|
+
"wix.online_programs.participants.v3.participant_program_duration_ended",
|
|
1544
|
+
true,
|
|
1545
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1546
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1547
|
+
{
|
|
1548
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1549
|
+
paths: [
|
|
1550
|
+
{ path: "data.participant.createdDate" },
|
|
1551
|
+
{ path: "data.participant.updatedDate" },
|
|
1552
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1553
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1554
|
+
{ path: "metadata.eventTime" }
|
|
1555
|
+
]
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1559
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
1560
|
+
}
|
|
1561
|
+
])
|
|
1562
|
+
)
|
|
1563
|
+
)();
|
|
1564
|
+
var onParticipantRemoved = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1565
|
+
"wix.online_programs.participants.v3.participant_removed",
|
|
431
1566
|
true,
|
|
432
1567
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
433
|
-
(0,
|
|
1568
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
434
1569
|
{
|
|
435
|
-
transformFn:
|
|
436
|
-
paths: [
|
|
1570
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1571
|
+
paths: [
|
|
1572
|
+
{ path: "data.participant.createdDate" },
|
|
1573
|
+
{ path: "data.participant.updatedDate" },
|
|
1574
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1575
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1576
|
+
{ path: "metadata.eventTime" }
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1581
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
437
1582
|
}
|
|
438
1583
|
])
|
|
439
1584
|
)
|
|
440
1585
|
)();
|
|
441
|
-
var
|
|
442
|
-
"wix.online_programs.v3.
|
|
1586
|
+
var onParticipantTagsModified = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1587
|
+
"wix.online_programs.participants.v3.participant_tags_modified",
|
|
443
1588
|
true,
|
|
444
1589
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
445
|
-
(0,
|
|
1590
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
446
1591
|
{
|
|
447
|
-
transformFn:
|
|
448
|
-
paths: [
|
|
1592
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1593
|
+
paths: [
|
|
1594
|
+
{ path: "data.participant.createdDate" },
|
|
1595
|
+
{ path: "data.participant.updatedDate" },
|
|
1596
|
+
{ path: "data.participant.lastActivityDate" },
|
|
1597
|
+
{ path: "data.participant.certificateInfo.issueDate" },
|
|
1598
|
+
{ path: "metadata.eventTime" }
|
|
1599
|
+
]
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1603
|
+
paths: [{ path: "data.participant.progress.completionPercentage" }]
|
|
449
1604
|
}
|
|
450
1605
|
])
|
|
451
1606
|
)
|
|
452
1607
|
)();
|
|
453
|
-
var
|
|
454
|
-
"wix.online_programs.v3.
|
|
1608
|
+
var onParticipantUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1609
|
+
"wix.online_programs.participants.v3.participant_updated",
|
|
455
1610
|
true,
|
|
456
1611
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
457
|
-
(0,
|
|
1612
|
+
(0, import_transform_paths3.transformPaths)(event, [
|
|
1613
|
+
{
|
|
1614
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1615
|
+
paths: [
|
|
1616
|
+
{ path: "entity.createdDate" },
|
|
1617
|
+
{ path: "entity.updatedDate" },
|
|
1618
|
+
{ path: "entity.lastActivityDate" },
|
|
1619
|
+
{ path: "entity.certificateInfo.issueDate" },
|
|
1620
|
+
{ path: "metadata.eventTime" },
|
|
1621
|
+
{ path: "modifiedFields.createdDate" },
|
|
1622
|
+
{ path: "modifiedFields.updatedDate" },
|
|
1623
|
+
{ path: "modifiedFields.lastActivityDate" },
|
|
1624
|
+
{ path: "modifiedFields.certificateInfo.issueDate" }
|
|
1625
|
+
]
|
|
1626
|
+
},
|
|
458
1627
|
{
|
|
459
|
-
transformFn:
|
|
460
|
-
paths: [
|
|
1628
|
+
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1629
|
+
paths: [
|
|
1630
|
+
{ path: "entity.progress.completionPercentage" },
|
|
1631
|
+
{ path: "modifiedFields.progress.completionPercentage" }
|
|
1632
|
+
]
|
|
461
1633
|
}
|
|
462
1634
|
])
|
|
463
1635
|
)
|
|
464
1636
|
)();
|
|
465
1637
|
|
|
466
|
-
// src/online-programs-v3-participant-participants.context.ts
|
|
467
|
-
var
|
|
1638
|
+
// src/online-programs-participants-v3-participant-participants.context.ts
|
|
1639
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
468
1640
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
1641
|
+
var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
|
|
1642
|
+
function customQueryParticipants(httpClient) {
|
|
1643
|
+
const router = /* @__PURE__ */ (0, import_query_method_router.createQueryOverloadRouter)({
|
|
1644
|
+
builderQueryFunction: (options) => queryParticipants3(httpClient)(options),
|
|
1645
|
+
typedQueryFunction: (query, options) => typedQueryParticipants2(httpClient)(query, options),
|
|
1646
|
+
hasOptionsParameter: true
|
|
1647
|
+
});
|
|
1648
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
1649
|
+
return router(...arguments);
|
|
1650
|
+
}
|
|
1651
|
+
return overloadedQuery;
|
|
1652
|
+
}
|
|
1653
|
+
var createParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createParticipant3);
|
|
1654
|
+
var updateParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateParticipant3);
|
|
1655
|
+
var bulkCreateParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipants3);
|
|
1656
|
+
var bulkCreateParticipantsForAllMembers4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateParticipantsForAllMembers3);
|
|
1657
|
+
var deleteParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteParticipant3);
|
|
1658
|
+
var issueCertificate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(issueCertificate3);
|
|
1659
|
+
var getPremiumStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPremiumStats3);
|
|
1660
|
+
var getParticipant4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getParticipant3);
|
|
1661
|
+
var getAccessStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAccessStatus3);
|
|
1662
|
+
var bulkUpdateParticipantTags4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTags3);
|
|
1663
|
+
var bulkUpdateParticipantTagsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateParticipantTagsByFilter3);
|
|
1664
|
+
var searchParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(searchParticipants3);
|
|
1665
|
+
var exportParticipantsStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(exportParticipantsStats3);
|
|
1666
|
+
var queryParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryParticipants);
|
|
1667
|
+
var onParticipantCompletedProgram2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1668
|
+
onParticipantCompletedProgram
|
|
1669
|
+
);
|
|
1670
|
+
var onParticipantCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1671
|
+
onParticipantCreated
|
|
1672
|
+
);
|
|
1673
|
+
var onParticipantDeleted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1674
|
+
onParticipantDeleted
|
|
1675
|
+
);
|
|
1676
|
+
var onParticipantLeft2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1677
|
+
onParticipantLeft
|
|
1678
|
+
);
|
|
1679
|
+
var onParticipantMissedProgramDeadline2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onParticipantMissedProgramDeadline);
|
|
1680
|
+
var onParticipantProgramDurationEnded2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onParticipantProgramDurationEnded);
|
|
1681
|
+
var onParticipantRemoved2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1682
|
+
onParticipantRemoved
|
|
1683
|
+
);
|
|
1684
|
+
var onParticipantTagsModified2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1685
|
+
onParticipantTagsModified
|
|
477
1686
|
);
|
|
478
|
-
var
|
|
479
|
-
|
|
1687
|
+
var onParticipantUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1688
|
+
onParticipantUpdated
|
|
480
1689
|
);
|
|
481
1690
|
// Annotate the CommonJS export names for ESM import in node:
|
|
482
1691
|
0 && (module.exports = {
|
|
483
|
-
|
|
484
|
-
|
|
1692
|
+
AggregationType,
|
|
1693
|
+
BulkActionType,
|
|
1694
|
+
EnrollmentStatus,
|
|
1695
|
+
Interval,
|
|
1696
|
+
MissingValues,
|
|
1697
|
+
Mode,
|
|
1698
|
+
NestedAggregationType,
|
|
1699
|
+
PricingType,
|
|
1700
|
+
ProgressStatus,
|
|
1701
|
+
RequestedFields,
|
|
1702
|
+
ScalarType,
|
|
1703
|
+
SortDirection,
|
|
1704
|
+
SortOrder,
|
|
1705
|
+
SortType,
|
|
485
1706
|
WebhookIdentityType,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
1707
|
+
bulkCreateParticipants,
|
|
1708
|
+
bulkCreateParticipantsForAllMembers,
|
|
1709
|
+
bulkUpdateParticipantTags,
|
|
1710
|
+
bulkUpdateParticipantTagsByFilter,
|
|
1711
|
+
createParticipant,
|
|
1712
|
+
deleteParticipant,
|
|
1713
|
+
exportParticipantsStats,
|
|
1714
|
+
getAccessStatus,
|
|
1715
|
+
getParticipant,
|
|
1716
|
+
getPremiumStats,
|
|
1717
|
+
issueCertificate,
|
|
1718
|
+
onParticipantCompletedProgram,
|
|
1719
|
+
onParticipantCreated,
|
|
1720
|
+
onParticipantDeleted,
|
|
1721
|
+
onParticipantLeft,
|
|
1722
|
+
onParticipantMissedProgramDeadline,
|
|
1723
|
+
onParticipantProgramDurationEnded,
|
|
1724
|
+
onParticipantRemoved,
|
|
1725
|
+
onParticipantTagsModified,
|
|
1726
|
+
onParticipantUpdated,
|
|
1727
|
+
queryParticipants,
|
|
1728
|
+
searchParticipants,
|
|
1729
|
+
updateParticipant,
|
|
1730
|
+
utils
|
|
494
1731
|
});
|
|
495
1732
|
//# sourceMappingURL=index.js.map
|