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