@wix/auto_sdk_online-programs_participants 1.0.0 → 1.0.2

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/meta.js CHANGED
@@ -20,6 +20,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // meta.ts
21
21
  var meta_exports = {};
22
22
  __export(meta_exports, {
23
+ BenefitTypeOriginal: () => BenefitType,
24
+ EventOriginal: () => Event,
25
+ EventTypeOriginal: () => EventType,
26
+ InitiatorOriginal: () => Initiator,
27
+ JoinPathOriginal: () => JoinPath,
28
+ OrderItemCategoryOriginal: () => OrderItemCategory,
29
+ RefundStatusOriginal: () => RefundStatus,
30
+ RemovalReasonOriginal: () => RemovalReason,
31
+ ScheduledActionTypeOriginal: () => ScheduledActionType,
32
+ SortOrderOriginal: () => SortOrder,
33
+ StateOriginal: () => State,
34
+ StatusOriginal: () => Status,
35
+ SubdivisionTypeOriginal: () => SubdivisionType,
36
+ TransactionStatusOriginal: () => TransactionStatus,
37
+ VatTypeOriginal: () => VatType,
38
+ WebhookIdentityTypeOriginal: () => WebhookIdentityType,
23
39
  applyCoupon: () => applyCoupon2,
24
40
  bulkAddAllToProgram: () => bulkAddAllToProgram2,
25
41
  bulkAddToProgram: () => bulkAddToProgram2,
@@ -250,6 +266,9 @@ function joinProgram(payload) {
250
266
  method: "POST",
251
267
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.JoinProgram",
252
268
  packageName: PACKAGE_NAME,
269
+ migrationOptions: {
270
+ optInTransformResponse: true
271
+ },
253
272
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
254
273
  protoPath: "/v3/participants/join",
255
274
  data: payload,
@@ -282,6 +301,9 @@ function getParticipant(payload) {
282
301
  method: "GET",
283
302
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetParticipant",
284
303
  packageName: PACKAGE_NAME,
304
+ migrationOptions: {
305
+ optInTransformResponse: true
306
+ },
285
307
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
286
308
  protoPath: "/v3/participants/{participantId}",
287
309
  data: payload,
@@ -314,6 +336,9 @@ function leaveProgram(payload) {
314
336
  method: "POST",
315
337
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.LeaveProgram",
316
338
  packageName: PACKAGE_NAME,
339
+ migrationOptions: {
340
+ optInTransformResponse: true
341
+ },
317
342
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
318
343
  protoPath: "/v3/participants/{participantId}/leave",
319
344
  data: payload,
@@ -332,6 +357,9 @@ function queryParticipants(payload) {
332
357
  method: "POST",
333
358
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.QueryParticipants",
334
359
  packageName: PACKAGE_NAME,
360
+ migrationOptions: {
361
+ optInTransformResponse: true
362
+ },
335
363
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
336
364
  protoPath: "/v3/participants/query",
337
365
  data: payload,
@@ -364,6 +392,9 @@ function getAccessStatus(payload) {
364
392
  method: "GET",
365
393
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.GetAccessStatus",
366
394
  packageName: PACKAGE_NAME,
395
+ migrationOptions: {
396
+ optInTransformResponse: true
397
+ },
367
398
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
368
399
  protoPath: "/v3/participants/access",
369
400
  data: payload,
@@ -382,6 +413,9 @@ function applyCoupon(payload) {
382
413
  method: "POST",
383
414
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.ApplyCoupon",
384
415
  packageName: PACKAGE_NAME,
416
+ migrationOptions: {
417
+ optInTransformResponse: true
418
+ },
385
419
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
386
420
  protoPath: "/v3/participants/{participantId}/coupons/{couponCode}/apply",
387
421
  data: payload,
@@ -410,6 +444,9 @@ function revertCoupon(payload) {
410
444
  method: "POST",
411
445
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantsService.RevertCoupon",
412
446
  packageName: PACKAGE_NAME,
447
+ migrationOptions: {
448
+ optInTransformResponse: true
449
+ },
413
450
  url: resolveWixOnlineprogramsParticipantsV3ParticipantsServiceUrl({
414
451
  protoPath: "/v3/participants/{participantId}/coupons/{couponId}/revert",
415
452
  data: payload,
@@ -434,6 +471,9 @@ function bulkInviteToProgram(payload) {
434
471
  method: "POST",
435
472
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteToProgram",
436
473
  packageName: PACKAGE_NAME,
474
+ migrationOptions: {
475
+ optInTransformResponse: true
476
+ },
437
477
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
438
478
  protoPath: "/v3/bulk/participants/invite",
439
479
  data: payload,
@@ -466,6 +506,9 @@ function bulkInviteAllToProgram(payload) {
466
506
  method: "POST",
467
507
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkInviteAllToProgram",
468
508
  packageName: PACKAGE_NAME,
509
+ migrationOptions: {
510
+ optInTransformResponse: true
511
+ },
469
512
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
470
513
  protoPath: "/v3/bulk/participants/invite-all",
471
514
  data: payload,
@@ -484,6 +527,9 @@ function bulkAddToProgram(payload) {
484
527
  method: "POST",
485
528
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddToProgram",
486
529
  packageName: PACKAGE_NAME,
530
+ migrationOptions: {
531
+ optInTransformResponse: true
532
+ },
487
533
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
488
534
  protoPath: "/v3/bulk/participants/add",
489
535
  data: payload,
@@ -516,6 +562,9 @@ function bulkAddAllToProgram(payload) {
516
562
  method: "POST",
517
563
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkAddAllToProgram",
518
564
  packageName: PACKAGE_NAME,
565
+ migrationOptions: {
566
+ optInTransformResponse: true
567
+ },
519
568
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
520
569
  protoPath: "/v3/bulk/participants/add-all",
521
570
  data: payload,
@@ -534,6 +583,9 @@ function bulkApproveParticipant(payload) {
534
583
  method: "POST",
535
584
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveParticipant",
536
585
  packageName: PACKAGE_NAME,
586
+ migrationOptions: {
587
+ optInTransformResponse: true
588
+ },
537
589
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
538
590
  protoPath: "/v3/bulk/participants/approve",
539
591
  data: payload,
@@ -566,6 +618,9 @@ function bulkApproveAllParticipant(payload) {
566
618
  method: "POST",
567
619
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.BulkApproveAllParticipant",
568
620
  packageName: PACKAGE_NAME,
621
+ migrationOptions: {
622
+ optInTransformResponse: true
623
+ },
569
624
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
570
625
  protoPath: "/v3/bulk/participants/approve-all",
571
626
  data: payload,
@@ -584,6 +639,9 @@ function deleteParticipant(payload) {
584
639
  method: "DELETE",
585
640
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.DeleteParticipant",
586
641
  packageName: PACKAGE_NAME,
642
+ migrationOptions: {
643
+ optInTransformResponse: true
644
+ },
587
645
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
588
646
  protoPath: "/v3/participants/{participantId}",
589
647
  data: payload,
@@ -602,6 +660,9 @@ function issueCertificate(payload) {
602
660
  method: "POST",
603
661
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.IssueCertificate",
604
662
  packageName: PACKAGE_NAME,
663
+ migrationOptions: {
664
+ optInTransformResponse: true
665
+ },
605
666
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
606
667
  protoPath: "/v3/participants/{participantId}/issue-certificate",
607
668
  data: payload,
@@ -634,6 +695,9 @@ function getCompletionStats(payload) {
634
695
  method: "GET",
635
696
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetCompletionStats",
636
697
  packageName: PACKAGE_NAME,
698
+ migrationOptions: {
699
+ optInTransformResponse: true
700
+ },
637
701
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
638
702
  protoPath: "/v3/stats/completion/{programId}",
639
703
  data: payload,
@@ -658,6 +722,9 @@ function getPremiumStats(payload) {
658
722
  method: "GET",
659
723
  methodFqn: "wix.onlineprograms.participants.v3.ManageParticipantsService.GetPremiumStats",
660
724
  packageName: PACKAGE_NAME,
725
+ migrationOptions: {
726
+ optInTransformResponse: true
727
+ },
661
728
  url: resolveWixOnlineprogramsParticipantsV3ManageParticipantsServiceUrl({
662
729
  protoPath: "/v3/stats/premium",
663
730
  data: payload,
@@ -676,6 +743,9 @@ function exportParticipantsStats(payload) {
676
743
  method: "GET",
677
744
  methodFqn: "wix.onlineprograms.participants.v3.ParticipantExportsService.ExportParticipantsStats",
678
745
  packageName: PACKAGE_NAME,
746
+ migrationOptions: {
747
+ optInTransformResponse: true
748
+ },
679
749
  url: resolveWixOnlineprogramsParticipantsV3ParticipantExportsServiceUrl({
680
750
  protoPath: "/v3/participants/export/{programId}",
681
751
  data: payload,
@@ -688,6 +758,134 @@ function exportParticipantsStats(payload) {
688
758
  return __exportParticipantsStats;
689
759
  }
690
760
 
761
+ // src/online-programs-v3-participant-participants.types.ts
762
+ var JoinPath = /* @__PURE__ */ ((JoinPath2) => {
763
+ JoinPath2["UNKNOWN_JOIN_PATH"] = "UNKNOWN_JOIN_PATH";
764
+ JoinPath2["FREE"] = "FREE";
765
+ JoinPath2["ADDED"] = "ADDED";
766
+ JoinPath2["SINGLE_PAYMENT"] = "SINGLE_PAYMENT";
767
+ JoinPath2["PAID_PLAN"] = "PAID_PLAN";
768
+ JoinPath2["FREE_COUPON"] = "FREE_COUPON";
769
+ return JoinPath2;
770
+ })(JoinPath || {});
771
+ var State = /* @__PURE__ */ ((State2) => {
772
+ State2["UNKNOWN_STATE"] = "UNKNOWN_STATE";
773
+ State2["INVITED"] = "INVITED";
774
+ State2["APPROVAL_PENDING"] = "APPROVAL_PENDING";
775
+ State2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
776
+ State2["JOINED"] = "JOINED";
777
+ State2["COMPLETED"] = "COMPLETED";
778
+ State2["FAILED"] = "FAILED";
779
+ State2["SUSPENDED"] = "SUSPENDED";
780
+ State2["AUTO_REMOVED"] = "AUTO_REMOVED";
781
+ return State2;
782
+ })(State || {});
783
+ var RemovalReason = /* @__PURE__ */ ((RemovalReason2) => {
784
+ RemovalReason2["UNKNOWN_REMOVAL_REASON"] = "UNKNOWN_REMOVAL_REASON";
785
+ RemovalReason2["LEGITIMATE_LEAVE"] = "LEGITIMATE_LEAVE";
786
+ RemovalReason2["CLEANUP_FOR_REJOIN"] = "CLEANUP_FOR_REJOIN";
787
+ RemovalReason2["CLEANUP_FOR_MANUAL_ADD"] = "CLEANUP_FOR_MANUAL_ADD";
788
+ return RemovalReason2;
789
+ })(RemovalReason || {});
790
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
791
+ SortOrder2["ASC"] = "ASC";
792
+ SortOrder2["DESC"] = "DESC";
793
+ return SortOrder2;
794
+ })(SortOrder || {});
795
+ var EventType = /* @__PURE__ */ ((EventType2) => {
796
+ EventType2["UNDEFINED"] = "UNDEFINED";
797
+ EventType2["TRANSACTION_STATUS_CHANGED"] = "TRANSACTION_STATUS_CHANGED";
798
+ EventType2["REFUND_STATUS_CHANGED"] = "REFUND_STATUS_CHANGED";
799
+ EventType2["RECURRING_PAYMENT_STATUS_CHANGED"] = "RECURRING_PAYMENT_STATUS_CHANGED";
800
+ EventType2["TRANSACTION_UPDATED"] = "TRANSACTION_UPDATED";
801
+ EventType2["TRANSACTION_CREATED"] = "TRANSACTION_CREATED";
802
+ return EventType2;
803
+ })(EventType || {});
804
+ var OrderItemCategory = /* @__PURE__ */ ((OrderItemCategory2) => {
805
+ OrderItemCategory2["UNDEFINED"] = "UNDEFINED";
806
+ OrderItemCategory2["PHYSICAL"] = "PHYSICAL";
807
+ OrderItemCategory2["DIGITAL"] = "DIGITAL";
808
+ return OrderItemCategory2;
809
+ })(OrderItemCategory || {});
810
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
811
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
812
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
813
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
814
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
815
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
816
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
817
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
818
+ return SubdivisionType2;
819
+ })(SubdivisionType || {});
820
+ var VatType = /* @__PURE__ */ ((VatType2) => {
821
+ VatType2["UNSPECIFIED"] = "UNSPECIFIED";
822
+ VatType2["CPF"] = "CPF";
823
+ VatType2["CNPJ"] = "CNPJ";
824
+ return VatType2;
825
+ })(VatType || {});
826
+ var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
827
+ TransactionStatus2["UNDEFINED"] = "UNDEFINED";
828
+ TransactionStatus2["APPROVED"] = "APPROVED";
829
+ TransactionStatus2["PENDING"] = "PENDING";
830
+ TransactionStatus2["PENDING_MERCHANT"] = "PENDING_MERCHANT";
831
+ TransactionStatus2["CANCELED"] = "CANCELED";
832
+ TransactionStatus2["DECLINED"] = "DECLINED";
833
+ TransactionStatus2["REFUNDED"] = "REFUNDED";
834
+ TransactionStatus2["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
835
+ TransactionStatus2["AUTHORIZED"] = "AUTHORIZED";
836
+ TransactionStatus2["VOIDED"] = "VOIDED";
837
+ return TransactionStatus2;
838
+ })(TransactionStatus || {});
839
+ var ScheduledActionType = /* @__PURE__ */ ((ScheduledActionType2) => {
840
+ ScheduledActionType2["VOID"] = "VOID";
841
+ ScheduledActionType2["CAPTURE"] = "CAPTURE";
842
+ return ScheduledActionType2;
843
+ })(ScheduledActionType || {});
844
+ var RefundStatus = /* @__PURE__ */ ((RefundStatus2) => {
845
+ RefundStatus2["UNDEFINED"] = "UNDEFINED";
846
+ RefundStatus2["APPROVED"] = "APPROVED";
847
+ RefundStatus2["PENDING"] = "PENDING";
848
+ RefundStatus2["DECLINED"] = "DECLINED";
849
+ return RefundStatus2;
850
+ })(RefundStatus || {});
851
+ var Status = /* @__PURE__ */ ((Status2) => {
852
+ Status2["UNDEFINED"] = "UNDEFINED";
853
+ Status2["PENDING"] = "PENDING";
854
+ Status2["ACTIVE"] = "ACTIVE";
855
+ Status2["CANCELLED"] = "CANCELLED";
856
+ Status2["FINISHED"] = "FINISHED";
857
+ Status2["SUSPENDED"] = "SUSPENDED";
858
+ return Status2;
859
+ })(Status || {});
860
+ var Initiator = /* @__PURE__ */ ((Initiator2) => {
861
+ Initiator2["UNDEFINED"] = "UNDEFINED";
862
+ Initiator2["BUYER"] = "BUYER";
863
+ Initiator2["MERCHANT"] = "MERCHANT";
864
+ Initiator2["PAYMENT"] = "PAYMENT";
865
+ Initiator2["SETUP"] = "SETUP";
866
+ return Initiator2;
867
+ })(Initiator || {});
868
+ var BenefitType = /* @__PURE__ */ ((BenefitType2) => {
869
+ BenefitType2["UNDEFINED"] = "UNDEFINED";
870
+ BenefitType2["LIMITED"] = "LIMITED";
871
+ BenefitType2["UNLIMITED"] = "UNLIMITED";
872
+ return BenefitType2;
873
+ })(BenefitType || {});
874
+ var Event = /* @__PURE__ */ ((Event2) => {
875
+ Event2["Updated"] = "Updated";
876
+ Event2["Deleted"] = "Deleted";
877
+ Event2["Created"] = "Created";
878
+ return Event2;
879
+ })(Event || {});
880
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
881
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
882
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
883
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
884
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
885
+ WebhookIdentityType2["APP"] = "APP";
886
+ return WebhookIdentityType2;
887
+ })(WebhookIdentityType || {});
888
+
691
889
  // src/online-programs-v3-participant-participants.meta.ts
692
890
  function joinProgram2() {
693
891
  const payload = {};
@@ -1021,6 +1219,22 @@ function exportParticipantsStats2() {
1021
1219
  }
1022
1220
  // Annotate the CommonJS export names for ESM import in node:
1023
1221
  0 && (module.exports = {
1222
+ BenefitTypeOriginal,
1223
+ EventOriginal,
1224
+ EventTypeOriginal,
1225
+ InitiatorOriginal,
1226
+ JoinPathOriginal,
1227
+ OrderItemCategoryOriginal,
1228
+ RefundStatusOriginal,
1229
+ RemovalReasonOriginal,
1230
+ ScheduledActionTypeOriginal,
1231
+ SortOrderOriginal,
1232
+ StateOriginal,
1233
+ StatusOriginal,
1234
+ SubdivisionTypeOriginal,
1235
+ TransactionStatusOriginal,
1236
+ VatTypeOriginal,
1237
+ WebhookIdentityTypeOriginal,
1024
1238
  applyCoupon,
1025
1239
  bulkAddAllToProgram,
1026
1240
  bulkAddToProgram,