@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_online-programs_participants",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"service-plugins"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.4.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
},
|
|
48
48
|
"sdkDependency": {
|
|
49
49
|
"fqdnNamespace": "participants",
|
|
50
|
-
"fqdn": "wix.online_programs.v3.participant"
|
|
50
|
+
"fqdn": "wix.online_programs.participants.v3.participant"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "87782c4368339bd3f0b842e078ade170eb4d839e060b270448a82416"
|
|
54
54
|
}
|
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
JoinPath: () => JoinPath,
|
|
24
|
-
State: () => State,
|
|
25
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
26
|
-
bulkAddToProgram: () => bulkAddToProgram4,
|
|
27
|
-
bulkApproveAllParticipant: () => bulkApproveAllParticipant4,
|
|
28
|
-
bulkApproveParticipant: () => bulkApproveParticipant4,
|
|
29
|
-
bulkInviteAllToProgram: () => bulkInviteAllToProgram4,
|
|
30
|
-
bulkInviteToProgram: () => bulkInviteToProgram4,
|
|
31
|
-
onParticipantAdded: () => onParticipantAdded2,
|
|
32
|
-
onParticipantApproved: () => onParticipantApproved2,
|
|
33
|
-
onParticipantInvited: () => onParticipantInvited2
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(index_exports);
|
|
36
|
-
|
|
37
|
-
// src/online-programs-v3-participant-participants.public.ts
|
|
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
|
|
44
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
45
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
46
|
-
|
|
47
|
-
// src/online-programs-v3-participant-participants.http.ts
|
|
48
|
-
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
49
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
50
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
51
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
52
|
-
function resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl(opts) {
|
|
53
|
-
const domainToMappings = {};
|
|
54
|
-
return (0, import_rest_modules.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
55
|
-
}
|
|
56
|
-
var PACKAGE_NAME = "@wix/auto_sdk_online-programs_participants";
|
|
57
|
-
function bulkInviteToProgram(payload) {
|
|
58
|
-
function __bulkInviteToProgram({ host }) {
|
|
59
|
-
const metadata = {
|
|
60
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
61
|
-
method: "POST",
|
|
62
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
|
|
63
|
-
packageName: PACKAGE_NAME,
|
|
64
|
-
migrationOptions: {
|
|
65
|
-
optInTransformResponse: true
|
|
66
|
-
},
|
|
67
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
68
|
-
protoPath: "/v3/bulk/participants/invite",
|
|
69
|
-
data: payload,
|
|
70
|
-
host
|
|
71
|
-
}),
|
|
72
|
-
data: payload,
|
|
73
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
74
|
-
{
|
|
75
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
76
|
-
paths: [
|
|
77
|
-
{ path: "results.item.createdDate" },
|
|
78
|
-
{ path: "results.item.updatedDate" },
|
|
79
|
-
{ path: "results.item.lastActivityDate" },
|
|
80
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
85
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
86
|
-
}
|
|
87
|
-
])
|
|
88
|
-
};
|
|
89
|
-
return metadata;
|
|
90
|
-
}
|
|
91
|
-
return __bulkInviteToProgram;
|
|
92
|
-
}
|
|
93
|
-
function bulkInviteAllToProgram(payload) {
|
|
94
|
-
function __bulkInviteAllToProgram({ host }) {
|
|
95
|
-
const metadata = {
|
|
96
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
97
|
-
method: "POST",
|
|
98
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
|
|
99
|
-
packageName: PACKAGE_NAME,
|
|
100
|
-
migrationOptions: {
|
|
101
|
-
optInTransformResponse: true
|
|
102
|
-
},
|
|
103
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
104
|
-
protoPath: "/v3/bulk/participants/invite-all",
|
|
105
|
-
data: payload,
|
|
106
|
-
host
|
|
107
|
-
}),
|
|
108
|
-
data: payload
|
|
109
|
-
};
|
|
110
|
-
return metadata;
|
|
111
|
-
}
|
|
112
|
-
return __bulkInviteAllToProgram;
|
|
113
|
-
}
|
|
114
|
-
function bulkAddToProgram(payload) {
|
|
115
|
-
function __bulkAddToProgram({ host }) {
|
|
116
|
-
const metadata = {
|
|
117
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
118
|
-
method: "POST",
|
|
119
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
|
|
120
|
-
packageName: PACKAGE_NAME,
|
|
121
|
-
migrationOptions: {
|
|
122
|
-
optInTransformResponse: true
|
|
123
|
-
},
|
|
124
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
125
|
-
protoPath: "/v3/bulk/participants/add",
|
|
126
|
-
data: payload,
|
|
127
|
-
host
|
|
128
|
-
}),
|
|
129
|
-
data: payload,
|
|
130
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
131
|
-
{
|
|
132
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
133
|
-
paths: [
|
|
134
|
-
{ path: "results.item.createdDate" },
|
|
135
|
-
{ path: "results.item.updatedDate" },
|
|
136
|
-
{ path: "results.item.lastActivityDate" },
|
|
137
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
138
|
-
]
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
142
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
143
|
-
}
|
|
144
|
-
])
|
|
145
|
-
};
|
|
146
|
-
return metadata;
|
|
147
|
-
}
|
|
148
|
-
return __bulkAddToProgram;
|
|
149
|
-
}
|
|
150
|
-
function bulkApproveParticipant(payload) {
|
|
151
|
-
function __bulkApproveParticipant({ host }) {
|
|
152
|
-
const metadata = {
|
|
153
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
154
|
-
method: "POST",
|
|
155
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
|
|
156
|
-
packageName: PACKAGE_NAME,
|
|
157
|
-
migrationOptions: {
|
|
158
|
-
optInTransformResponse: true
|
|
159
|
-
},
|
|
160
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
161
|
-
protoPath: "/v3/bulk/participants/approve",
|
|
162
|
-
data: payload,
|
|
163
|
-
host
|
|
164
|
-
}),
|
|
165
|
-
data: payload,
|
|
166
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
167
|
-
{
|
|
168
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
169
|
-
paths: [
|
|
170
|
-
{ path: "results.item.createdDate" },
|
|
171
|
-
{ path: "results.item.updatedDate" },
|
|
172
|
-
{ path: "results.item.lastActivityDate" },
|
|
173
|
-
{ path: "results.item.certificate.issuedDate" }
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
178
|
-
paths: [{ path: "results.item.progress.completionPercentage" }]
|
|
179
|
-
}
|
|
180
|
-
])
|
|
181
|
-
};
|
|
182
|
-
return metadata;
|
|
183
|
-
}
|
|
184
|
-
return __bulkApproveParticipant;
|
|
185
|
-
}
|
|
186
|
-
function bulkApproveAllParticipant(payload) {
|
|
187
|
-
function __bulkApproveAllParticipant({ host }) {
|
|
188
|
-
const metadata = {
|
|
189
|
-
entityFqdn: "wix.online_programs.v3.participant",
|
|
190
|
-
method: "POST",
|
|
191
|
-
methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
|
|
192
|
-
packageName: PACKAGE_NAME,
|
|
193
|
-
migrationOptions: {
|
|
194
|
-
optInTransformResponse: true
|
|
195
|
-
},
|
|
196
|
-
url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
|
|
197
|
-
protoPath: "/v3/bulk/participants/approve-all",
|
|
198
|
-
data: payload,
|
|
199
|
-
host
|
|
200
|
-
}),
|
|
201
|
-
data: payload
|
|
202
|
-
};
|
|
203
|
-
return metadata;
|
|
204
|
-
}
|
|
205
|
-
return __bulkApproveAllParticipant;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// src/online-programs-v3-participant-participants.universal.ts
|
|
209
|
-
var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
210
|
-
JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
|
|
211
|
-
JoinPath2["FREE"] = "FREE";
|
|
212
|
-
JoinPath2["ADDED"] = "ADDED";
|
|
213
|
-
JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
|
|
214
|
-
JoinPath2["PAID_PLAN"] = "PAID_PLAN";
|
|
215
|
-
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
216
|
-
return JoinPath2;
|
|
217
|
-
})(JoinPath || {});
|
|
218
|
-
var State = /* @__PURE__ */ ((State2) => {
|
|
219
|
-
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
220
|
-
State2["JOINED"] = "JOINED";
|
|
221
|
-
State2["COMPLETED"] = "COMPLETED";
|
|
222
|
-
State2["FAILED"] = "FAILED";
|
|
223
|
-
State2["SUSPENDED"] = "SUSPENDED";
|
|
224
|
-
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
225
|
-
State2["REMOVED"] = "REMOVED";
|
|
226
|
-
State2["LEFT"] = "LEFT";
|
|
227
|
-
return State2;
|
|
228
|
-
})(State || {});
|
|
229
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
230
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
231
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
232
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
233
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
234
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
235
|
-
return WebhookIdentityType2;
|
|
236
|
-
})(WebhookIdentityType || {});
|
|
237
|
-
async function bulkInviteToProgram2(programId, options) {
|
|
238
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
239
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
240
|
-
programId,
|
|
241
|
-
memberIds: options?.memberIds,
|
|
242
|
-
returnEntity: options?.returnEntity
|
|
243
|
-
});
|
|
244
|
-
const reqOpts = bulkInviteToProgram(payload);
|
|
245
|
-
sideEffects?.onSiteCall?.();
|
|
246
|
-
try {
|
|
247
|
-
const result = await httpClient.request(reqOpts);
|
|
248
|
-
sideEffects?.onSuccess?.(result);
|
|
249
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
250
|
-
} catch (err) {
|
|
251
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
252
|
-
err,
|
|
253
|
-
{
|
|
254
|
-
spreadPathsToArguments: {},
|
|
255
|
-
explicitPathsToArguments: {
|
|
256
|
-
programId: "$[0]",
|
|
257
|
-
memberIds: "$[1].memberIds",
|
|
258
|
-
returnEntity: "$[1].returnEntity"
|
|
259
|
-
},
|
|
260
|
-
singleArgumentUnchanged: false
|
|
261
|
-
},
|
|
262
|
-
["programId", "options"]
|
|
263
|
-
);
|
|
264
|
-
sideEffects?.onError?.(err);
|
|
265
|
-
throw transformedError;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
async function bulkInviteAllToProgram2(programId, options) {
|
|
269
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
270
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
271
|
-
programId,
|
|
272
|
-
excludeMemberIds: options?.excludeMemberIds
|
|
273
|
-
});
|
|
274
|
-
const reqOpts = bulkInviteAllToProgram(payload);
|
|
275
|
-
sideEffects?.onSiteCall?.();
|
|
276
|
-
try {
|
|
277
|
-
const result = await httpClient.request(reqOpts);
|
|
278
|
-
sideEffects?.onSuccess?.(result);
|
|
279
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
280
|
-
} catch (err) {
|
|
281
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
282
|
-
err,
|
|
283
|
-
{
|
|
284
|
-
spreadPathsToArguments: {},
|
|
285
|
-
explicitPathsToArguments: {
|
|
286
|
-
programId: "$[0]",
|
|
287
|
-
excludeMemberIds: "$[1].excludeMemberIds"
|
|
288
|
-
},
|
|
289
|
-
singleArgumentUnchanged: false
|
|
290
|
-
},
|
|
291
|
-
["programId", "options"]
|
|
292
|
-
);
|
|
293
|
-
sideEffects?.onError?.(err);
|
|
294
|
-
throw transformedError;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
async function bulkAddToProgram2(programId, options) {
|
|
298
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
299
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
300
|
-
programId,
|
|
301
|
-
memberIds: options?.memberIds,
|
|
302
|
-
returnEntity: options?.returnEntity
|
|
303
|
-
});
|
|
304
|
-
const reqOpts = bulkAddToProgram(payload);
|
|
305
|
-
sideEffects?.onSiteCall?.();
|
|
306
|
-
try {
|
|
307
|
-
const result = await httpClient.request(reqOpts);
|
|
308
|
-
sideEffects?.onSuccess?.(result);
|
|
309
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
310
|
-
} catch (err) {
|
|
311
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
312
|
-
err,
|
|
313
|
-
{
|
|
314
|
-
spreadPathsToArguments: {},
|
|
315
|
-
explicitPathsToArguments: {
|
|
316
|
-
programId: "$[0]",
|
|
317
|
-
memberIds: "$[1].memberIds",
|
|
318
|
-
returnEntity: "$[1].returnEntity"
|
|
319
|
-
},
|
|
320
|
-
singleArgumentUnchanged: false
|
|
321
|
-
},
|
|
322
|
-
["programId", "options"]
|
|
323
|
-
);
|
|
324
|
-
sideEffects?.onError?.(err);
|
|
325
|
-
throw transformedError;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
async function bulkApproveParticipant2(participantIds, options) {
|
|
329
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
330
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
331
|
-
participantIds,
|
|
332
|
-
programId: options?.programId,
|
|
333
|
-
returnEntity: options?.returnEntity
|
|
334
|
-
});
|
|
335
|
-
const reqOpts = bulkApproveParticipant(payload);
|
|
336
|
-
sideEffects?.onSiteCall?.();
|
|
337
|
-
try {
|
|
338
|
-
const result = await httpClient.request(reqOpts);
|
|
339
|
-
sideEffects?.onSuccess?.(result);
|
|
340
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
341
|
-
} catch (err) {
|
|
342
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
343
|
-
err,
|
|
344
|
-
{
|
|
345
|
-
spreadPathsToArguments: {},
|
|
346
|
-
explicitPathsToArguments: {
|
|
347
|
-
participantIds: "$[0]",
|
|
348
|
-
programId: "$[1].programId",
|
|
349
|
-
returnEntity: "$[1].returnEntity"
|
|
350
|
-
},
|
|
351
|
-
singleArgumentUnchanged: false
|
|
352
|
-
},
|
|
353
|
-
["participantIds", "options"]
|
|
354
|
-
);
|
|
355
|
-
sideEffects?.onError?.(err);
|
|
356
|
-
throw transformedError;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
async function bulkApproveAllParticipant2(options) {
|
|
360
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
361
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
362
|
-
programId: options?.programId,
|
|
363
|
-
excludeParticipantIds: options?.excludeParticipantIds
|
|
364
|
-
});
|
|
365
|
-
const reqOpts = bulkApproveAllParticipant(payload);
|
|
366
|
-
sideEffects?.onSiteCall?.();
|
|
367
|
-
try {
|
|
368
|
-
const result = await httpClient.request(reqOpts);
|
|
369
|
-
sideEffects?.onSuccess?.(result);
|
|
370
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
371
|
-
} catch (err) {
|
|
372
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
373
|
-
err,
|
|
374
|
-
{
|
|
375
|
-
spreadPathsToArguments: {},
|
|
376
|
-
explicitPathsToArguments: {
|
|
377
|
-
programId: "$[0].programId",
|
|
378
|
-
excludeParticipantIds: "$[0].excludeParticipantIds"
|
|
379
|
-
},
|
|
380
|
-
singleArgumentUnchanged: false
|
|
381
|
-
},
|
|
382
|
-
["options"]
|
|
383
|
-
);
|
|
384
|
-
sideEffects?.onError?.(err);
|
|
385
|
-
throw transformedError;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
// src/online-programs-v3-participant-participants.public.ts
|
|
390
|
-
function bulkInviteToProgram3(httpClient) {
|
|
391
|
-
return (programId, options) => bulkInviteToProgram2(
|
|
392
|
-
programId,
|
|
393
|
-
options,
|
|
394
|
-
// @ts-ignore
|
|
395
|
-
{ httpClient }
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
function bulkInviteAllToProgram3(httpClient) {
|
|
399
|
-
return (programId, options) => bulkInviteAllToProgram2(
|
|
400
|
-
programId,
|
|
401
|
-
options,
|
|
402
|
-
// @ts-ignore
|
|
403
|
-
{ httpClient }
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
function bulkAddToProgram3(httpClient) {
|
|
407
|
-
return (programId, options) => bulkAddToProgram2(
|
|
408
|
-
programId,
|
|
409
|
-
options,
|
|
410
|
-
// @ts-ignore
|
|
411
|
-
{ httpClient }
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
function bulkApproveParticipant3(httpClient) {
|
|
415
|
-
return (participantIds, options) => bulkApproveParticipant2(
|
|
416
|
-
participantIds,
|
|
417
|
-
options,
|
|
418
|
-
// @ts-ignore
|
|
419
|
-
{ httpClient }
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
function bulkApproveAllParticipant3(httpClient) {
|
|
423
|
-
return (options) => bulkApproveAllParticipant2(
|
|
424
|
-
options,
|
|
425
|
-
// @ts-ignore
|
|
426
|
-
{ httpClient }
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
var onParticipantAdded = (0, import_sdk_types.EventDefinition)(
|
|
430
|
-
"wix.online_programs.v3.participant_added",
|
|
431
|
-
true,
|
|
432
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
433
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
434
|
-
{
|
|
435
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
436
|
-
paths: [{ path: "metadata.eventTime" }]
|
|
437
|
-
}
|
|
438
|
-
])
|
|
439
|
-
)
|
|
440
|
-
)();
|
|
441
|
-
var onParticipantApproved = (0, import_sdk_types.EventDefinition)(
|
|
442
|
-
"wix.online_programs.v3.participant_participant_approved",
|
|
443
|
-
true,
|
|
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
|
-
)();
|
|
465
|
-
|
|
466
|
-
// src/online-programs-v3-participant-participants.context.ts
|
|
467
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
468
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
469
|
-
var bulkInviteToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteToProgram3);
|
|
470
|
-
var bulkInviteAllToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkInviteAllToProgram3);
|
|
471
|
-
var bulkAddToProgram4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkAddToProgram3);
|
|
472
|
-
var bulkApproveParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveParticipant3);
|
|
473
|
-
var bulkApproveAllParticipant4 = /* @__PURE__ */ (0, import_rest_modules2.createRESTModule)(bulkApproveAllParticipant3);
|
|
474
|
-
var onParticipantAdded2 = (0, import_event_definition_modules.createEventModule)(onParticipantAdded);
|
|
475
|
-
var onParticipantApproved2 = (0, import_event_definition_modules.createEventModule)(
|
|
476
|
-
onParticipantApproved
|
|
477
|
-
);
|
|
478
|
-
var onParticipantInvited2 = (0, import_event_definition_modules.createEventModule)(
|
|
479
|
-
onParticipantInvited
|
|
480
|
-
);
|
|
481
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
482
|
-
0 && (module.exports = {
|
|
483
|
-
JoinPath,
|
|
484
|
-
State,
|
|
485
|
-
WebhookIdentityType,
|
|
486
|
-
bulkAddToProgram,
|
|
487
|
-
bulkApproveAllParticipant,
|
|
488
|
-
bulkApproveParticipant,
|
|
489
|
-
bulkInviteAllToProgram,
|
|
490
|
-
bulkInviteToProgram,
|
|
491
|
-
onParticipantAdded,
|
|
492
|
-
onParticipantApproved,
|
|
493
|
-
onParticipantInvited
|
|
494
|
-
});
|
|
495
|
-
//# sourceMappingURL=index.js.map
|