@wix/auto_sdk_online-programs_participants 1.0.10 → 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.
Files changed (41) hide show
  1. package/build/cjs/index.d.ts +50 -12
  2. package/build/cjs/index.js +332 -13
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +12 -1239
  5. package/build/cjs/index.typings.js +304 -11
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +736 -37
  8. package/build/cjs/meta.js +275 -13
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/online-programs-v3-participant-participants.universal-DRubTE1O.d.ts +2228 -0
  11. package/build/es/index.d.mts +50 -12
  12. package/build/es/index.mjs +319 -12
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +12 -1239
  15. package/build/es/index.typings.mjs +292 -11
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +736 -37
  18. package/build/es/meta.mjs +262 -12
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/online-programs-v3-participant-participants.universal-DRubTE1O.d.mts +2228 -0
  21. package/build/internal/cjs/index.d.ts +50 -12
  22. package/build/internal/cjs/index.js +332 -13
  23. package/build/internal/cjs/index.js.map +1 -1
  24. package/build/internal/cjs/index.typings.d.ts +12 -1249
  25. package/build/internal/cjs/index.typings.js +304 -11
  26. package/build/internal/cjs/index.typings.js.map +1 -1
  27. package/build/internal/cjs/meta.d.ts +736 -37
  28. package/build/internal/cjs/meta.js +275 -13
  29. package/build/internal/cjs/meta.js.map +1 -1
  30. package/build/internal/cjs/online-programs-v3-participant-participants.universal-DUdmZP01.d.ts +2238 -0
  31. package/build/internal/es/index.d.mts +50 -12
  32. package/build/internal/es/index.mjs +319 -12
  33. package/build/internal/es/index.mjs.map +1 -1
  34. package/build/internal/es/index.typings.d.mts +12 -1249
  35. package/build/internal/es/index.typings.mjs +292 -11
  36. package/build/internal/es/index.typings.mjs.map +1 -1
  37. package/build/internal/es/meta.d.mts +736 -37
  38. package/build/internal/es/meta.mjs +262 -12
  39. package/build/internal/es/meta.mjs.map +1 -1
  40. package/build/internal/es/online-programs-v3-participant-participants.universal-DUdmZP01.d.mts +2238 -0
  41. package/package.json +3 -3
package/build/cjs/meta.js CHANGED
@@ -20,11 +20,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ AggregationTypeOriginal: () => AggregationType,
23
24
  BenefitTypeOriginal: () => BenefitType,
24
25
  EventOriginal: () => Event,
26
+ IntervalOriginal: () => Interval,
25
27
  JoinPathOriginal: () => JoinPath,
28
+ MissingValuesOriginal: () => MissingValues,
29
+ ModeOriginal: () => Mode,
30
+ NestedAggregationTypeOriginal: () => NestedAggregationType,
31
+ ScalarTypeOriginal: () => ScalarType,
32
+ SortDirectionOriginal: () => SortDirection,
26
33
  SortOrderOriginal: () => SortOrder,
34
+ SortTypeOriginal: () => SortType,
27
35
  StateOriginal: () => State,
36
+ StatusOriginal: () => Status,
28
37
  WebhookIdentityTypeOriginal: () => WebhookIdentityType,
29
38
  bulkAddAllToProgram: () => bulkAddAllToProgram2,
30
39
  bulkAddToProgram: () => bulkAddToProgram2,
@@ -33,6 +42,8 @@ __export(meta_exports, {
33
42
  bulkCreateParticipant: () => bulkCreateParticipant2,
34
43
  bulkInviteAllToProgram: () => bulkInviteAllToProgram2,
35
44
  bulkInviteToProgram: () => bulkInviteToProgram2,
45
+ bulkUpdateParticipantTags: () => bulkUpdateParticipantTags2,
46
+ bulkUpdateParticipantTagsByFilter: () => bulkUpdateParticipantTagsByFilter2,
36
47
  createParticipant: () => createParticipant2,
37
48
  deleteParticipant: () => deleteParticipant2,
38
49
  exportParticipantsStats: () => exportParticipantsStats2,
@@ -41,7 +52,8 @@ __export(meta_exports, {
41
52
  getParticipant: () => getParticipant2,
42
53
  getPremiumStats: () => getPremiumStats2,
43
54
  issueCertificate: () => issueCertificate2,
44
- queryParticipants: () => queryParticipants2
55
+ queryParticipants: () => queryParticipants2,
56
+ searchParticipants: () => searchParticipants2
45
57
  });
46
58
  module.exports = __toCommonJS(meta_exports);
47
59
 
@@ -570,6 +582,122 @@ function getAccessStatus(payload) {
570
582
  }
571
583
  return __getAccessStatus;
572
584
  }
585
+ function bulkUpdateParticipantTags(payload) {
586
+ function __bulkUpdateParticipantTags({ host }) {
587
+ const metadata = {
588
+ entityFqdn: "wix.online_programs.v3.participant",
589
+ method: "POST",
590
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTags",
591
+ packageName: PACKAGE_NAME,
592
+ migrationOptions: {
593
+ optInTransformResponse: true
594
+ },
595
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
596
+ protoPath: "/v3/bulk/participants/update-tags",
597
+ data: payload,
598
+ host
599
+ }),
600
+ data: payload
601
+ };
602
+ return metadata;
603
+ }
604
+ return __bulkUpdateParticipantTags;
605
+ }
606
+ function bulkUpdateParticipantTagsByFilter(payload) {
607
+ function __bulkUpdateParticipantTagsByFilter({ host }) {
608
+ const metadata = {
609
+ entityFqdn: "wix.online_programs.v3.participant",
610
+ method: "POST",
611
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.BulkUpdateParticipantTagsByFilter",
612
+ packageName: PACKAGE_NAME,
613
+ migrationOptions: {
614
+ optInTransformResponse: true
615
+ },
616
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
617
+ protoPath: "/v3/bulk/participants/update-tags-by-filter",
618
+ data: payload,
619
+ host
620
+ }),
621
+ data: payload
622
+ };
623
+ return metadata;
624
+ }
625
+ return __bulkUpdateParticipantTagsByFilter;
626
+ }
627
+ function searchParticipants(payload) {
628
+ function __searchParticipants({ host }) {
629
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
630
+ {
631
+ transformFn: import_float.transformSDKFloatToRESTFloat,
632
+ paths: [
633
+ { path: "search.aggregations.range.buckets.from" },
634
+ { path: "search.aggregations.range.buckets.to" },
635
+ {
636
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
637
+ },
638
+ {
639
+ path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
640
+ }
641
+ ]
642
+ }
643
+ ]);
644
+ const metadata = {
645
+ entityFqdn: "wix.online_programs.v3.participant",
646
+ method: "POST",
647
+ methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.SearchParticipants",
648
+ packageName: PACKAGE_NAME,
649
+ migrationOptions: {
650
+ optInTransformResponse: true
651
+ },
652
+ url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
653
+ protoPath: "/v3/participants/search",
654
+ data: serializedData,
655
+ host
656
+ }),
657
+ data: serializedData,
658
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
659
+ {
660
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
661
+ paths: [
662
+ { path: "participants.createdDate" },
663
+ { path: "participants.updatedDate" },
664
+ { path: "participants.lastActivityDate" },
665
+ { path: "participants.certificate.issuedDate" }
666
+ ]
667
+ },
668
+ {
669
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
670
+ paths: [
671
+ { path: "participants.progress.completionPercentage" },
672
+ { path: "aggregationData.results.scalar.value" },
673
+ {
674
+ path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
675
+ },
676
+ {
677
+ path: "aggregationData.results.nested.results.results.*.scalar.value"
678
+ },
679
+ { path: "aggregationData.results.ranges.results.from" },
680
+ { path: "aggregationData.results.ranges.results.to" },
681
+ {
682
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
683
+ },
684
+ {
685
+ path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
686
+ },
687
+ {
688
+ path: "aggregationData.results.nested.results.results.*.range.from"
689
+ },
690
+ {
691
+ path: "aggregationData.results.nested.results.results.*.range.to"
692
+ }
693
+ ]
694
+ }
695
+ ])
696
+ };
697
+ return metadata;
698
+ }
699
+ return __searchParticipants;
700
+ }
573
701
  function bulkInviteToProgram(payload) {
574
702
  function __bulkInviteToProgram({ host }) {
575
703
  const metadata = {
@@ -752,22 +880,77 @@ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
752
880
  JoinPath2["FREE_COUPON"] = "FREE_COUPON";
753
881
  return JoinPath2;
754
882
  })(JoinPath || {});
755
- var State = /* @__PURE__ */ ((State2) => {
756
- State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
757
- State2["JOINED"] = "JOINED";
758
- State2["COMPLETED"] = "COMPLETED";
759
- State2["FAILED"] = "FAILED";
760
- State2["SUSPENDED"] = "SUSPENDED";
761
- State2["AUTO_REMOVED"] = "AUTO_REMOVED";
762
- State2["REMOVED"] = "REMOVED";
763
- State2["LEFT"] = "LEFT";
764
- return State2;
765
- })(State || {});
883
+ var Status = /* @__PURE__ */ ((Status2) => {
884
+ Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
885
+ Status2["JOINED"] = "JOINED";
886
+ Status2["COMPLETED"] = "COMPLETED";
887
+ Status2["FAILED"] = "FAILED";
888
+ Status2["SUSPENDED"] = "SUSPENDED";
889
+ Status2["AUTO_REMOVED"] = "AUTO_REMOVED";
890
+ Status2["REMOVED"] = "REMOVED";
891
+ Status2["LEFT"] = "LEFT";
892
+ return Status2;
893
+ })(Status || {});
766
894
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
767
895
  SortOrder2["ASC"] = "ASC";
768
896
  SortOrder2["DESC"] = "DESC";
769
897
  return SortOrder2;
770
898
  })(SortOrder || {});
899
+ var SortType = /* @__PURE__ */ ((SortType2) => {
900
+ SortType2["COUNT"] = "COUNT";
901
+ SortType2["VALUE"] = "VALUE";
902
+ return SortType2;
903
+ })(SortType || {});
904
+ var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
905
+ SortDirection2["DESC"] = "DESC";
906
+ SortDirection2["ASC"] = "ASC";
907
+ return SortDirection2;
908
+ })(SortDirection || {});
909
+ var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
910
+ MissingValues2["EXCLUDE"] = "EXCLUDE";
911
+ MissingValues2["INCLUDE"] = "INCLUDE";
912
+ return MissingValues2;
913
+ })(MissingValues || {});
914
+ var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
915
+ ScalarType2["UNKNOWN_SCALAR_TYPE"] = "UNKNOWN_SCALAR_TYPE";
916
+ ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
917
+ ScalarType2["MIN"] = "MIN";
918
+ ScalarType2["MAX"] = "MAX";
919
+ return ScalarType2;
920
+ })(ScalarType || {});
921
+ var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
922
+ NestedAggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
923
+ NestedAggregationType2["VALUE"] = "VALUE";
924
+ NestedAggregationType2["RANGE"] = "RANGE";
925
+ NestedAggregationType2["SCALAR"] = "SCALAR";
926
+ NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
927
+ return NestedAggregationType2;
928
+ })(NestedAggregationType || {});
929
+ var Interval = /* @__PURE__ */ ((Interval2) => {
930
+ Interval2["UNKNOWN_INTERVAL"] = "UNKNOWN_INTERVAL";
931
+ Interval2["YEAR"] = "YEAR";
932
+ Interval2["MONTH"] = "MONTH";
933
+ Interval2["WEEK"] = "WEEK";
934
+ Interval2["DAY"] = "DAY";
935
+ Interval2["HOUR"] = "HOUR";
936
+ Interval2["MINUTE"] = "MINUTE";
937
+ Interval2["SECOND"] = "SECOND";
938
+ return Interval2;
939
+ })(Interval || {});
940
+ var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
941
+ AggregationType2["UNKNOWN_AGGREGATION_TYPE"] = "UNKNOWN_AGGREGATION_TYPE";
942
+ AggregationType2["VALUE"] = "VALUE";
943
+ AggregationType2["RANGE"] = "RANGE";
944
+ AggregationType2["SCALAR"] = "SCALAR";
945
+ AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
946
+ AggregationType2["NESTED"] = "NESTED";
947
+ return AggregationType2;
948
+ })(AggregationType || {});
949
+ var Mode = /* @__PURE__ */ ((Mode2) => {
950
+ Mode2["OR"] = "OR";
951
+ Mode2["AND"] = "AND";
952
+ return Mode2;
953
+ })(Mode || {});
771
954
  var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
772
955
  BenefitType2["UNDEFINED"] = "UNDEFINED";
773
956
  BenefitType2["LIMITED"] = "LIMITED";
@@ -788,6 +971,17 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
788
971
  WebhookIdentityType2["APP"] = "APP";
789
972
  return WebhookIdentityType2;
790
973
  })(WebhookIdentityType || {});
974
+ var State = /* @__PURE__ */ ((State2) => {
975
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
976
+ State2["JOINED"] = "JOINED";
977
+ State2["COMPLETED"] = "COMPLETED";
978
+ State2["FAILED"] = "FAILED";
979
+ State2["SUSPENDED"] = "SUSPENDED";
980
+ State2["AUTO_REMOVED"] = "AUTO_REMOVED";
981
+ State2["REMOVED"] = "REMOVED";
982
+ State2["LEFT"] = "LEFT";
983
+ return State2;
984
+ })(State || {});
791
985
 
792
986
  // src/online-programs-v3-participant-participants.meta.ts
793
987
  function createParticipant2() {
@@ -970,6 +1164,62 @@ function getAccessStatus2() {
970
1164
  __originalResponseType: null
971
1165
  };
972
1166
  }
1167
+ function bulkUpdateParticipantTags2() {
1168
+ const payload = {};
1169
+ const getRequestOptions = bulkUpdateParticipantTags(payload);
1170
+ const getUrl = (context) => {
1171
+ const { url } = getRequestOptions(context);
1172
+ return url;
1173
+ };
1174
+ return {
1175
+ getUrl,
1176
+ httpMethod: "POST",
1177
+ path: "/v3/bulk/participants/update-tags",
1178
+ pathParams: {},
1179
+ __requestType: null,
1180
+ __originalRequestType: null,
1181
+ __responseType: null,
1182
+ __originalResponseType: null
1183
+ };
1184
+ }
1185
+ function bulkUpdateParticipantTagsByFilter2() {
1186
+ const payload = {};
1187
+ const getRequestOptions = bulkUpdateParticipantTagsByFilter(
1188
+ payload
1189
+ );
1190
+ const getUrl = (context) => {
1191
+ const { url } = getRequestOptions(context);
1192
+ return url;
1193
+ };
1194
+ return {
1195
+ getUrl,
1196
+ httpMethod: "POST",
1197
+ path: "/v3/bulk/participants/update-tags-by-filter",
1198
+ pathParams: {},
1199
+ __requestType: null,
1200
+ __originalRequestType: null,
1201
+ __responseType: null,
1202
+ __originalResponseType: null
1203
+ };
1204
+ }
1205
+ function searchParticipants2() {
1206
+ const payload = {};
1207
+ const getRequestOptions = searchParticipants(payload);
1208
+ const getUrl = (context) => {
1209
+ const { url } = getRequestOptions(context);
1210
+ return url;
1211
+ };
1212
+ return {
1213
+ getUrl,
1214
+ httpMethod: "POST",
1215
+ path: "/v3/participants/search",
1216
+ pathParams: {},
1217
+ __requestType: null,
1218
+ __originalRequestType: null,
1219
+ __responseType: null,
1220
+ __originalResponseType: null
1221
+ };
1222
+ }
973
1223
  function bulkInviteToProgram2() {
974
1224
  const payload = {};
975
1225
  const getRequestOptions = bulkInviteToProgram(payload);
@@ -1080,11 +1330,20 @@ function exportParticipantsStats2() {
1080
1330
  }
1081
1331
  // Annotate the CommonJS export names for ESM import in node:
1082
1332
  0 && (module.exports = {
1333
+ AggregationTypeOriginal,
1083
1334
  BenefitTypeOriginal,
1084
1335
  EventOriginal,
1336
+ IntervalOriginal,
1085
1337
  JoinPathOriginal,
1338
+ MissingValuesOriginal,
1339
+ ModeOriginal,
1340
+ NestedAggregationTypeOriginal,
1341
+ ScalarTypeOriginal,
1342
+ SortDirectionOriginal,
1086
1343
  SortOrderOriginal,
1344
+ SortTypeOriginal,
1087
1345
  StateOriginal,
1346
+ StatusOriginal,
1088
1347
  WebhookIdentityTypeOriginal,
1089
1348
  bulkAddAllToProgram,
1090
1349
  bulkAddToProgram,
@@ -1093,6 +1352,8 @@ function exportParticipantsStats2() {
1093
1352
  bulkCreateParticipant,
1094
1353
  bulkInviteAllToProgram,
1095
1354
  bulkInviteToProgram,
1355
+ bulkUpdateParticipantTags,
1356
+ bulkUpdateParticipantTagsByFilter,
1096
1357
  createParticipant,
1097
1358
  deleteParticipant,
1098
1359
  exportParticipantsStats,
@@ -1101,6 +1362,7 @@ function exportParticipantsStats2() {
1101
1362
  getParticipant,
1102
1363
  getPremiumStats,
1103
1364
  issueCertificate,
1104
- queryParticipants
1365
+ queryParticipants,
1366
+ searchParticipants
1105
1367
  });
1106
1368
  //# sourceMappingURL=meta.js.map