@wix/auto_sdk_online-programs_participants 1.0.9 → 1.0.11
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 +50 -12
- package/build/cjs/index.js +332 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -1239
- package/build/cjs/index.typings.js +304 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +736 -37
- package/build/cjs/meta.js +275 -13
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/online-programs-v3-participant-participants.universal-DRubTE1O.d.ts +2228 -0
- package/build/es/index.d.mts +50 -12
- package/build/es/index.mjs +319 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -1239
- package/build/es/index.typings.mjs +292 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +736 -37
- package/build/es/meta.mjs +262 -12
- package/build/es/meta.mjs.map +1 -1
- package/build/es/online-programs-v3-participant-participants.universal-DRubTE1O.d.mts +2228 -0
- package/build/internal/cjs/index.d.ts +50 -12
- package/build/internal/cjs/index.js +332 -13
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -1249
- package/build/internal/cjs/index.typings.js +304 -11
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +736 -37
- package/build/internal/cjs/meta.js +275 -13
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/online-programs-v3-participant-participants.universal-DUdmZP01.d.ts +2238 -0
- package/build/internal/es/index.d.mts +50 -12
- package/build/internal/es/index.mjs +319 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -1249
- package/build/internal/es/index.typings.mjs +292 -11
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +736 -37
- package/build/internal/es/meta.mjs +262 -12
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/online-programs-v3-participant-participants.universal-DUdmZP01.d.mts +2238 -0
- package/package.json +3 -3
|
@@ -531,6 +531,122 @@ function getAccessStatus(payload) {
|
|
|
531
531
|
}
|
|
532
532
|
return __getAccessStatus;
|
|
533
533
|
}
|
|
534
|
+
function bulkUpdateParticipantTags(payload) {
|
|
535
|
+
function __bulkUpdateParticipantTags({ host }) {
|
|
536
|
+
const metadata = {
|
|
537
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
538
|
+
method: "POST",
|
|
539
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
|
|
540
|
+
packageName: PACKAGE_NAME,
|
|
541
|
+
migrationOptions: {
|
|
542
|
+
optInTransformResponse: true
|
|
543
|
+
},
|
|
544
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
545
|
+
protoPath: "/v3/bulk/participants/update-tags",
|
|
546
|
+
data: payload,
|
|
547
|
+
host
|
|
548
|
+
}),
|
|
549
|
+
data: payload
|
|
550
|
+
};
|
|
551
|
+
return metadata;
|
|
552
|
+
}
|
|
553
|
+
return __bulkUpdateParticipantTags;
|
|
554
|
+
}
|
|
555
|
+
function bulkUpdateParticipantTagsByFilter(payload) {
|
|
556
|
+
function __bulkUpdateParticipantTagsByFilter({ host }) {
|
|
557
|
+
const metadata = {
|
|
558
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
559
|
+
method: "POST",
|
|
560
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
|
|
561
|
+
packageName: PACKAGE_NAME,
|
|
562
|
+
migrationOptions: {
|
|
563
|
+
optInTransformResponse: true
|
|
564
|
+
},
|
|
565
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
566
|
+
protoPath: "/v3/bulk/participants/update-tags-by-filter",
|
|
567
|
+
data: payload,
|
|
568
|
+
host
|
|
569
|
+
}),
|
|
570
|
+
data: payload
|
|
571
|
+
};
|
|
572
|
+
return metadata;
|
|
573
|
+
}
|
|
574
|
+
return __bulkUpdateParticipantTagsByFilter;
|
|
575
|
+
}
|
|
576
|
+
function searchParticipants(payload) {
|
|
577
|
+
function __searchParticipants({ host }) {
|
|
578
|
+
const serializedData = transformPaths(payload, [
|
|
579
|
+
{
|
|
580
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
581
|
+
paths: [
|
|
582
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
583
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
584
|
+
{
|
|
585
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}
|
|
592
|
+
]);
|
|
593
|
+
const metadata = {
|
|
594
|
+
entityFqdn: "wix.online_programs.v3.participant",
|
|
595
|
+
method: "POST",
|
|
596
|
+
methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
|
|
597
|
+
packageName: PACKAGE_NAME,
|
|
598
|
+
migrationOptions: {
|
|
599
|
+
optInTransformResponse: true
|
|
600
|
+
},
|
|
601
|
+
url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
|
|
602
|
+
protoPath: "/v3/participants/search",
|
|
603
|
+
data: serializedData,
|
|
604
|
+
host
|
|
605
|
+
}),
|
|
606
|
+
data: serializedData,
|
|
607
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
608
|
+
{
|
|
609
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
610
|
+
paths: [
|
|
611
|
+
{ path: "participants.createdDate" },
|
|
612
|
+
{ path: "participants.updatedDate" },
|
|
613
|
+
{ path: "participants.lastActivityDate" },
|
|
614
|
+
{ path: "participants.certificate.issuedDate" }
|
|
615
|
+
]
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
619
|
+
paths: [
|
|
620
|
+
{ path: "participants.progress.completionPercentage" },
|
|
621
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
622
|
+
{
|
|
623
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
627
|
+
},
|
|
628
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
629
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
630
|
+
{
|
|
631
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
])
|
|
645
|
+
};
|
|
646
|
+
return metadata;
|
|
647
|
+
}
|
|
648
|
+
return __searchParticipants;
|
|
649
|
+
}
|
|
534
650
|
function bulkInviteToProgram(payload) {
|
|
535
651
|
function __bulkInviteToProgram({ host }) {
|
|
536
652
|
const metadata = {
|
|
@@ -714,22 +830,77 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
|
|
|
714
830
|
JoinPath2["FREE_COUPON"] = "FREE_COUPON";
|
|
715
831
|
return JoinPath2;
|
|
716
832
|
})(JoinPath || {});
|
|
717
|
-
var
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
return
|
|
727
|
-
})(
|
|
833
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
834
|
+
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
835
|
+
Status2["JOINED"] = "JOINED";
|
|
836
|
+
Status2["COMPLETED"] = "COMPLETED";
|
|
837
|
+
Status2["FAILED"] = "FAILED";
|
|
838
|
+
Status2["SUSPENDED"] = "SUSPENDED";
|
|
839
|
+
Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
840
|
+
Status2["REMOVED"] = "REMOVED";
|
|
841
|
+
Status2["LEFT"] = "LEFT";
|
|
842
|
+
return Status2;
|
|
843
|
+
})(Status || {});
|
|
728
844
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
729
845
|
SortOrder2["ASC"] = "ASC";
|
|
730
846
|
SortOrder2["DESC"] = "DESC";
|
|
731
847
|
return SortOrder2;
|
|
732
848
|
})(SortOrder || {});
|
|
849
|
+
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
850
|
+
SortType2["COUNT"] = "COUNT";
|
|
851
|
+
SortType2["VALUE"] = "VALUE";
|
|
852
|
+
return SortType2;
|
|
853
|
+
})(SortType || {});
|
|
854
|
+
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
855
|
+
SortDirection2["DESC"] = "DESC";
|
|
856
|
+
SortDirection2["ASC"] = "ASC";
|
|
857
|
+
return SortDirection2;
|
|
858
|
+
})(SortDirection || {});
|
|
859
|
+
var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
|
|
860
|
+
MissingValues2["EXCLUDE"] = "EXCLUDE";
|
|
861
|
+
MissingValues2["INCLUDE"] = "INCLUDE";
|
|
862
|
+
return MissingValues2;
|
|
863
|
+
})(MissingValues || {});
|
|
864
|
+
var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
|
|
865
|
+
ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
|
|
866
|
+
ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
|
|
867
|
+
ScalarType2["MIN"] = "MIN";
|
|
868
|
+
ScalarType2["MAX"] = "MAX";
|
|
869
|
+
return ScalarType2;
|
|
870
|
+
})(ScalarType || {});
|
|
871
|
+
var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
|
|
872
|
+
NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
873
|
+
NestedAggregationType2["VALUE"] = "VALUE";
|
|
874
|
+
NestedAggregationType2["RANGE"] = "RANGE";
|
|
875
|
+
NestedAggregationType2["SCALAR"] = "SCALAR";
|
|
876
|
+
NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
877
|
+
return NestedAggregationType2;
|
|
878
|
+
})(NestedAggregationType || {});
|
|
879
|
+
var Interval = /* @__PURE__ */ ((Interval2) => {
|
|
880
|
+
Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
|
|
881
|
+
Interval2["YEAR"] = "YEAR";
|
|
882
|
+
Interval2["MONTH"] = "MONTH";
|
|
883
|
+
Interval2["WEEK"] = "WEEK";
|
|
884
|
+
Interval2["DAY"] = "DAY";
|
|
885
|
+
Interval2["HOUR"] = "HOUR";
|
|
886
|
+
Interval2["MINUTE"] = "MINUTE";
|
|
887
|
+
Interval2["SECOND"] = "SECOND";
|
|
888
|
+
return Interval2;
|
|
889
|
+
})(Interval || {});
|
|
890
|
+
var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
|
|
891
|
+
AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
|
|
892
|
+
AggregationType2["VALUE"] = "VALUE";
|
|
893
|
+
AggregationType2["RANGE"] = "RANGE";
|
|
894
|
+
AggregationType2["SCALAR"] = "SCALAR";
|
|
895
|
+
AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
|
|
896
|
+
AggregationType2["NESTED"] = "NESTED";
|
|
897
|
+
return AggregationType2;
|
|
898
|
+
})(AggregationType || {});
|
|
899
|
+
var Mode = /* @__PURE__ */ ((Mode2) => {
|
|
900
|
+
Mode2["OR"] = "OR";
|
|
901
|
+
Mode2["AND"] = "AND";
|
|
902
|
+
return Mode2;
|
|
903
|
+
})(Mode || {});
|
|
733
904
|
var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
|
|
734
905
|
BenefitType2["UNDEFINED"] = "UNDEFINED";
|
|
735
906
|
BenefitType2["LIMITED"] = "LIMITED";
|
|
@@ -750,6 +921,17 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
750
921
|
WebhookIdentityType2["APP"] = "APP";
|
|
751
922
|
return WebhookIdentityType2;
|
|
752
923
|
})(WebhookIdentityType || {});
|
|
924
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
925
|
+
State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
|
|
926
|
+
State2["JOINED"] = "JOINED";
|
|
927
|
+
State2["COMPLETED"] = "COMPLETED";
|
|
928
|
+
State2["FAILED"] = "FAILED";
|
|
929
|
+
State2["SUSPENDED"] = "SUSPENDED";
|
|
930
|
+
State2["AUTO_REMOVED"] = "AUTO_REMOVED";
|
|
931
|
+
State2["REMOVED"] = "REMOVED";
|
|
932
|
+
State2["LEFT"] = "LEFT";
|
|
933
|
+
return State2;
|
|
934
|
+
})(State || {});
|
|
753
935
|
async function createParticipant2(participant) {
|
|
754
936
|
const { httpClient, sideEffects } = arguments[1];
|
|
755
937
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1046,6 +1228,93 @@ async function getAccessStatus2() {
|
|
|
1046
1228
|
throw transformedError;
|
|
1047
1229
|
}
|
|
1048
1230
|
}
|
|
1231
|
+
async function bulkUpdateParticipantTags2(participantIds, options) {
|
|
1232
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1233
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1234
|
+
participantIds,
|
|
1235
|
+
assignTags: options?.assignTags,
|
|
1236
|
+
unassignTags: options?.unassignTags
|
|
1237
|
+
});
|
|
1238
|
+
const reqOpts = bulkUpdateParticipantTags(payload);
|
|
1239
|
+
sideEffects?.onSiteCall?.();
|
|
1240
|
+
try {
|
|
1241
|
+
const result = await httpClient.request(reqOpts);
|
|
1242
|
+
sideEffects?.onSuccess?.(result);
|
|
1243
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1244
|
+
} catch (err) {
|
|
1245
|
+
const transformedError = sdkTransformError(
|
|
1246
|
+
err,
|
|
1247
|
+
{
|
|
1248
|
+
spreadPathsToArguments: {},
|
|
1249
|
+
explicitPathsToArguments: {
|
|
1250
|
+
participantIds: "$[0]",
|
|
1251
|
+
assignTags: "$[1].assignTags",
|
|
1252
|
+
unassignTags: "$[1].unassignTags"
|
|
1253
|
+
},
|
|
1254
|
+
singleArgumentUnchanged: false
|
|
1255
|
+
},
|
|
1256
|
+
["participantIds", "options"]
|
|
1257
|
+
);
|
|
1258
|
+
sideEffects?.onError?.(err);
|
|
1259
|
+
throw transformedError;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
async function bulkUpdateParticipantTagsByFilter2(filter, options) {
|
|
1263
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1264
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1265
|
+
filter,
|
|
1266
|
+
assignTags: options?.assignTags,
|
|
1267
|
+
unassignTags: options?.unassignTags
|
|
1268
|
+
});
|
|
1269
|
+
const reqOpts = bulkUpdateParticipantTagsByFilter(
|
|
1270
|
+
payload
|
|
1271
|
+
);
|
|
1272
|
+
sideEffects?.onSiteCall?.();
|
|
1273
|
+
try {
|
|
1274
|
+
const result = await httpClient.request(reqOpts);
|
|
1275
|
+
sideEffects?.onSuccess?.(result);
|
|
1276
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1277
|
+
} catch (err) {
|
|
1278
|
+
const transformedError = sdkTransformError(
|
|
1279
|
+
err,
|
|
1280
|
+
{
|
|
1281
|
+
spreadPathsToArguments: {},
|
|
1282
|
+
explicitPathsToArguments: {
|
|
1283
|
+
filter: "$[0]",
|
|
1284
|
+
assignTags: "$[1].assignTags",
|
|
1285
|
+
unassignTags: "$[1].unassignTags"
|
|
1286
|
+
},
|
|
1287
|
+
singleArgumentUnchanged: false
|
|
1288
|
+
},
|
|
1289
|
+
["filter", "options"]
|
|
1290
|
+
);
|
|
1291
|
+
sideEffects?.onError?.(err);
|
|
1292
|
+
throw transformedError;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
async function searchParticipants2(search) {
|
|
1296
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1297
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ search });
|
|
1298
|
+
const reqOpts = searchParticipants(payload);
|
|
1299
|
+
sideEffects?.onSiteCall?.();
|
|
1300
|
+
try {
|
|
1301
|
+
const result = await httpClient.request(reqOpts);
|
|
1302
|
+
sideEffects?.onSuccess?.(result);
|
|
1303
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1304
|
+
} catch (err) {
|
|
1305
|
+
const transformedError = sdkTransformError(
|
|
1306
|
+
err,
|
|
1307
|
+
{
|
|
1308
|
+
spreadPathsToArguments: {},
|
|
1309
|
+
explicitPathsToArguments: { search: "$[0]" },
|
|
1310
|
+
singleArgumentUnchanged: false
|
|
1311
|
+
},
|
|
1312
|
+
["search"]
|
|
1313
|
+
);
|
|
1314
|
+
sideEffects?.onError?.(err);
|
|
1315
|
+
throw transformedError;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1049
1318
|
async function bulkInviteToProgram2(programId, options) {
|
|
1050
1319
|
const { httpClient, sideEffects } = arguments[2];
|
|
1051
1320
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -1222,11 +1491,20 @@ async function exportParticipantsStats2(programId) {
|
|
|
1222
1491
|
}
|
|
1223
1492
|
}
|
|
1224
1493
|
export {
|
|
1494
|
+
AggregationType,
|
|
1225
1495
|
BenefitType,
|
|
1226
1496
|
Event,
|
|
1497
|
+
Interval,
|
|
1227
1498
|
JoinPath,
|
|
1499
|
+
MissingValues,
|
|
1500
|
+
Mode,
|
|
1501
|
+
NestedAggregationType,
|
|
1502
|
+
ScalarType,
|
|
1503
|
+
SortDirection,
|
|
1228
1504
|
SortOrder,
|
|
1505
|
+
SortType,
|
|
1229
1506
|
State,
|
|
1507
|
+
Status,
|
|
1230
1508
|
WebhookIdentityType,
|
|
1231
1509
|
bulkAddAllToProgram2 as bulkAddAllToProgram,
|
|
1232
1510
|
bulkAddToProgram2 as bulkAddToProgram,
|
|
@@ -1235,6 +1513,8 @@ export {
|
|
|
1235
1513
|
bulkCreateParticipant2 as bulkCreateParticipant,
|
|
1236
1514
|
bulkInviteAllToProgram2 as bulkInviteAllToProgram,
|
|
1237
1515
|
bulkInviteToProgram2 as bulkInviteToProgram,
|
|
1516
|
+
bulkUpdateParticipantTags2 as bulkUpdateParticipantTags,
|
|
1517
|
+
bulkUpdateParticipantTagsByFilter2 as bulkUpdateParticipantTagsByFilter,
|
|
1238
1518
|
createParticipant2 as createParticipant,
|
|
1239
1519
|
deleteParticipant2 as deleteParticipant,
|
|
1240
1520
|
exportParticipantsStats2 as exportParticipantsStats,
|
|
@@ -1244,6 +1524,7 @@ export {
|
|
|
1244
1524
|
getPremiumStats2 as getPremiumStats,
|
|
1245
1525
|
issueCertificate2 as issueCertificate,
|
|
1246
1526
|
queryParticipants2 as queryParticipants,
|
|
1527
|
+
searchParticipants2 as searchParticipants,
|
|
1247
1528
|
typedQueryParticipants
|
|
1248
1529
|
};
|
|
1249
1530
|
//# sourceMappingURL=index.typings.mjs.map
|