@wix/members 1.0.132 → 1.0.134

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.
@@ -656,68 +656,6 @@ interface Group$1 {
656
656
  name?: string;
657
657
  type?: string;
658
658
  }
659
- interface ChangeLoginEmailRequest$1 {
660
- /** Member ID. */
661
- id: string;
662
- /** New login email address. */
663
- newEmail?: string;
664
- /** Whether to revoke active sessions immediately after changing the member's login email. */
665
- revokeCurrentSessions?: boolean | null;
666
- }
667
- interface ChangeLoginEmailResponse$1 {
668
- /** Member with the updated login email address. */
669
- member?: Member$3;
670
- }
671
- interface ApproveMemberRequest$3 extends ApproveMemberRequestMemberIdentifierOneOf$1 {
672
- /** ID of the member to approve. */
673
- id?: string;
674
- /** Login email address of the member to approve. */
675
- email?: string;
676
- /**
677
- * <!--ONLY:VELO
678
- * Approval token returned by `register()`.
679
- * <!--END:ONLY:VELO-->
680
- */
681
- token?: string;
682
- }
683
- /** @oneof */
684
- interface ApproveMemberRequestMemberIdentifierOneOf$1 {
685
- /** ID of the member to approve. */
686
- id?: string;
687
- /** Login email address of the member to approve. */
688
- email?: string;
689
- /**
690
- * <!--ONLY:VELO
691
- * Approval token returned by `register()`.
692
- * <!--END:ONLY:VELO-->
693
- */
694
- token?: string;
695
- }
696
- interface ApproveMemberResponse$3 {
697
- session?: Session$1;
698
- }
699
- interface Session$1 {
700
- token?: string | null;
701
- }
702
- interface BlockMemberRequest$5 extends BlockMemberRequestMemberIdentifierOneOf$1 {
703
- id?: string;
704
- /** Login email address of the member to block. */
705
- email?: string;
706
- /** Indicate the source of the block request */
707
- source?: Source$1;
708
- }
709
- /** @oneof */
710
- interface BlockMemberRequestMemberIdentifierOneOf$1 {
711
- id?: string;
712
- /** Login email address of the member to block. */
713
- email?: string;
714
- }
715
- declare enum Source$1 {
716
- UNKNOWN = "UNKNOWN",
717
- HANDLING_SPAM = "HANDLING_SPAM"
718
- }
719
- interface BlockMemberResponse$5 {
720
- }
721
659
  /** Registration options. */
722
660
  interface RegisterRequest$1 {
723
661
  /** Login email address for the new site member. */
@@ -812,6 +750,9 @@ interface RegisterResponse$1 {
812
750
  */
813
751
  approvalToken?: string | null;
814
752
  }
753
+ interface Session$1 {
754
+ token?: string | null;
755
+ }
815
756
  interface LoginRequest$1 {
816
757
  /** Login email address. */
817
758
  email?: string;
@@ -870,6 +811,65 @@ interface SendSetPasswordEmailResponse$1 {
870
811
  /** Indicates if the request was successfully received. */
871
812
  accepted?: boolean;
872
813
  }
814
+ interface ChangeLoginEmailRequest$1 {
815
+ /** Member ID. */
816
+ id: string;
817
+ /** New login email address. */
818
+ newEmail?: string;
819
+ /** Whether to revoke active sessions immediately after changing the member's login email. */
820
+ revokeCurrentSessions?: boolean | null;
821
+ }
822
+ interface ChangeLoginEmailResponse$1 {
823
+ /** Member with the updated login email address. */
824
+ member?: Member$3;
825
+ }
826
+ interface ApproveMemberRequest$3 extends ApproveMemberRequestMemberIdentifierOneOf$1 {
827
+ /** ID of the member to approve. */
828
+ id?: string;
829
+ /** Login email address of the member to approve. */
830
+ email?: string;
831
+ /**
832
+ * <!--ONLY:VELO
833
+ * Approval token returned by `register()`.
834
+ * <!--END:ONLY:VELO-->
835
+ */
836
+ token?: string;
837
+ }
838
+ /** @oneof */
839
+ interface ApproveMemberRequestMemberIdentifierOneOf$1 {
840
+ /** ID of the member to approve. */
841
+ id?: string;
842
+ /** Login email address of the member to approve. */
843
+ email?: string;
844
+ /**
845
+ * <!--ONLY:VELO
846
+ * Approval token returned by `register()`.
847
+ * <!--END:ONLY:VELO-->
848
+ */
849
+ token?: string;
850
+ }
851
+ interface ApproveMemberResponse$3 {
852
+ session?: Session$1;
853
+ }
854
+ interface BlockMemberRequest$5 extends BlockMemberRequestMemberIdentifierOneOf$1 {
855
+ id?: string;
856
+ /** Login email address of the member to block. */
857
+ email?: string;
858
+ /** Indicate the source of the block request */
859
+ source?: Source$1;
860
+ }
861
+ /** @oneof */
862
+ interface BlockMemberRequestMemberIdentifierOneOf$1 {
863
+ id?: string;
864
+ /** Login email address of the member to block. */
865
+ email?: string;
866
+ }
867
+ declare enum Source$1 {
868
+ UNKNOWN = "UNKNOWN",
869
+ HANDLING_SPAM = "HANDLING_SPAM"
870
+ }
871
+ interface BlockMemberResponse$5 {
872
+ }
873
873
  interface CustomFieldNonNullableFields$3 {
874
874
  numValue: number;
875
875
  name: string;
@@ -903,9 +903,6 @@ interface MemberNonNullableFields$3 {
903
903
  picture?: ImageNonNullableFields$4;
904
904
  groups: GroupNonNullableFields$1[];
905
905
  }
906
- interface ChangeLoginEmailResponseNonNullableFields$1 {
907
- member?: MemberNonNullableFields$3;
908
- }
909
906
  interface RegisterResponseNonNullableFields$1 {
910
907
  member?: MemberNonNullableFields$3;
911
908
  }
@@ -915,6 +912,9 @@ interface LoginResponseNonNullableFields$1 {
915
912
  interface SendSetPasswordEmailResponseNonNullableFields$1 {
916
913
  accepted: boolean;
917
914
  }
915
+ interface ChangeLoginEmailResponseNonNullableFields$1 {
916
+ member?: MemberNonNullableFields$3;
917
+ }
918
918
 
919
919
  interface Member$2 {
920
920
  /**
@@ -1089,71 +1089,6 @@ interface Group {
1089
1089
  name?: string;
1090
1090
  type?: string;
1091
1091
  }
1092
- interface ChangeLoginEmailRequest {
1093
- /** Member ID. */
1094
- _id: string;
1095
- /** New login email address. */
1096
- newEmail?: string;
1097
- /**
1098
- * @internal
1099
- * @internal */
1100
- revokeCurrentSessions?: boolean | null;
1101
- }
1102
- interface ChangeLoginEmailResponse {
1103
- /** Member with the updated login email address. */
1104
- member?: Member$2;
1105
- }
1106
- interface ApproveMemberRequest$2 extends ApproveMemberRequestMemberIdentifierOneOf {
1107
- /** ID of the member to approve. */
1108
- _id?: string;
1109
- /** Login email address of the member to approve. */
1110
- email?: string;
1111
- /** Approval token returned by the [`register()`](#register) function. */
1112
- token?: string;
1113
- }
1114
- /** @oneof */
1115
- interface ApproveMemberRequestMemberIdentifierOneOf {
1116
- /** ID of the member to approve. */
1117
- _id?: string;
1118
- /** Login email address of the member to approve. */
1119
- email?: string;
1120
- /**
1121
- * <!--ONLY:VELO
1122
- * Approval token returned by `register()`.
1123
- * <!--END:ONLY:VELO-->
1124
- */
1125
- token?: string;
1126
- }
1127
- interface ApproveMemberResponse$2 {
1128
- /** Approval session token. */
1129
- session?: Session;
1130
- }
1131
- interface Session {
1132
- /** Session token when the current member is logged into the site. */
1133
- token?: string | null;
1134
- }
1135
- interface BlockMemberRequest$4 extends BlockMemberRequestMemberIdentifierOneOf {
1136
- /** ID of the member to block. */
1137
- _id?: string;
1138
- /** Login email address of the member to block. */
1139
- email?: string;
1140
- /**
1141
- * @internal
1142
- * @internal */
1143
- source?: Source;
1144
- }
1145
- /** @oneof */
1146
- interface BlockMemberRequestMemberIdentifierOneOf {
1147
- _id?: string;
1148
- /** Login email address of the member to block. */
1149
- email?: string;
1150
- }
1151
- declare enum Source {
1152
- UNKNOWN = "UNKNOWN",
1153
- HANDLING_SPAM = "HANDLING_SPAM"
1154
- }
1155
- interface BlockMemberResponse$4 {
1156
- }
1157
1092
  /** Registration options. */
1158
1093
  interface RegisterRequest {
1159
1094
  /** Login email address for the new site member. */
@@ -1256,6 +1191,10 @@ interface RegisterResponse {
1256
1191
  */
1257
1192
  approvalToken?: string | null;
1258
1193
  }
1194
+ interface Session {
1195
+ /** Session token when the current member is logged into the site. */
1196
+ token?: string | null;
1197
+ }
1259
1198
  interface LoginRequest {
1260
1199
  /** Login email address. */
1261
1200
  email?: string;
@@ -1309,6 +1248,67 @@ interface SendSetPasswordEmailResponse {
1309
1248
  /** Indicates if the request was successfully received. */
1310
1249
  accepted?: boolean;
1311
1250
  }
1251
+ interface ChangeLoginEmailRequest {
1252
+ /** Member ID. */
1253
+ _id: string;
1254
+ /** New login email address. */
1255
+ newEmail?: string;
1256
+ /**
1257
+ * @internal
1258
+ * @internal */
1259
+ revokeCurrentSessions?: boolean | null;
1260
+ }
1261
+ interface ChangeLoginEmailResponse {
1262
+ /** Member with the updated login email address. */
1263
+ member?: Member$2;
1264
+ }
1265
+ interface ApproveMemberRequest$2 extends ApproveMemberRequestMemberIdentifierOneOf {
1266
+ /** ID of the member to approve. */
1267
+ _id?: string;
1268
+ /** Login email address of the member to approve. */
1269
+ email?: string;
1270
+ /** Approval token returned by the [`register()`](#register) function. */
1271
+ token?: string;
1272
+ }
1273
+ /** @oneof */
1274
+ interface ApproveMemberRequestMemberIdentifierOneOf {
1275
+ /** ID of the member to approve. */
1276
+ _id?: string;
1277
+ /** Login email address of the member to approve. */
1278
+ email?: string;
1279
+ /**
1280
+ * <!--ONLY:VELO
1281
+ * Approval token returned by `register()`.
1282
+ * <!--END:ONLY:VELO-->
1283
+ */
1284
+ token?: string;
1285
+ }
1286
+ interface ApproveMemberResponse$2 {
1287
+ /** Approval session token. */
1288
+ session?: Session;
1289
+ }
1290
+ interface BlockMemberRequest$4 extends BlockMemberRequestMemberIdentifierOneOf {
1291
+ /** ID of the member to block. */
1292
+ _id?: string;
1293
+ /** Login email address of the member to block. */
1294
+ email?: string;
1295
+ /**
1296
+ * @internal
1297
+ * @internal */
1298
+ source?: Source;
1299
+ }
1300
+ /** @oneof */
1301
+ interface BlockMemberRequestMemberIdentifierOneOf {
1302
+ _id?: string;
1303
+ /** Login email address of the member to block. */
1304
+ email?: string;
1305
+ }
1306
+ declare enum Source {
1307
+ UNKNOWN = "UNKNOWN",
1308
+ HANDLING_SPAM = "HANDLING_SPAM"
1309
+ }
1310
+ interface BlockMemberResponse$4 {
1311
+ }
1312
1312
  interface CustomFieldNonNullableFields$2 {
1313
1313
  numValue: number;
1314
1314
  name: string;
@@ -1331,9 +1331,6 @@ interface MemberNonNullableFields$2 {
1331
1331
  picture: string;
1332
1332
  groups: GroupNonNullableFields[];
1333
1333
  }
1334
- interface ChangeLoginEmailResponseNonNullableFields {
1335
- member?: MemberNonNullableFields$2;
1336
- }
1337
1334
  interface RegisterResponseNonNullableFields {
1338
1335
  member?: MemberNonNullableFields$2;
1339
1336
  }
@@ -1343,6 +1340,9 @@ interface LoginResponseNonNullableFields {
1343
1340
  interface SendSetPasswordEmailResponseNonNullableFields {
1344
1341
  accepted: boolean;
1345
1342
  }
1343
+ interface ChangeLoginEmailResponseNonNullableFields {
1344
+ member?: MemberNonNullableFields$2;
1345
+ }
1346
1346
 
1347
1347
  type __PublicMethodMetaInfo$9<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1348
1348
  getUrl: (context: any) => string;
@@ -1354,14 +1354,14 @@ type __PublicMethodMetaInfo$9<K = string, M = unknown, T = unknown, S = unknown,
1354
1354
  __responseType: Q;
1355
1355
  __originalResponseType: R;
1356
1356
  };
1357
+ declare function register(): __PublicMethodMetaInfo$9<'POST', {}, RegisterRequest, RegisterRequest$1, RegisterResponse & RegisterResponseNonNullableFields, RegisterResponse$1 & RegisterResponseNonNullableFields$1>;
1358
+ declare function login(): __PublicMethodMetaInfo$9<'POST', {}, LoginRequest, LoginRequest$1, LoginResponse & LoginResponseNonNullableFields, LoginResponse$1 & LoginResponseNonNullableFields$1>;
1359
+ declare function sendSetPasswordEmail(): __PublicMethodMetaInfo$9<'POST', {}, SendSetPasswordEmailRequest, SendSetPasswordEmailRequest$1, SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields, SendSetPasswordEmailResponse$1 & SendSetPasswordEmailResponseNonNullableFields$1>;
1357
1360
  declare function changeLoginEmail(): __PublicMethodMetaInfo$9<'PATCH', {
1358
1361
  id: string;
1359
1362
  }, ChangeLoginEmailRequest, ChangeLoginEmailRequest$1, ChangeLoginEmailResponse & ChangeLoginEmailResponseNonNullableFields, ChangeLoginEmailResponse$1 & ChangeLoginEmailResponseNonNullableFields$1>;
1360
1363
  declare function approve(): __PublicMethodMetaInfo$9<'POST', {}, ApproveMemberRequest$2, ApproveMemberRequest$3, ApproveMemberResponse$2, ApproveMemberResponse$3>;
1361
1364
  declare function block(): __PublicMethodMetaInfo$9<'POST', {}, BlockMemberRequest$4, BlockMemberRequest$5, BlockMemberResponse$4, BlockMemberResponse$5>;
1362
- declare function register(): __PublicMethodMetaInfo$9<'POST', {}, RegisterRequest, RegisterRequest$1, RegisterResponse & RegisterResponseNonNullableFields, RegisterResponse$1 & RegisterResponseNonNullableFields$1>;
1363
- declare function login(): __PublicMethodMetaInfo$9<'POST', {}, LoginRequest, LoginRequest$1, LoginResponse & LoginResponseNonNullableFields, LoginResponse$1 & LoginResponseNonNullableFields$1>;
1364
- declare function sendSetPasswordEmail(): __PublicMethodMetaInfo$9<'POST', {}, SendSetPasswordEmailRequest, SendSetPasswordEmailRequest$1, SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields, SendSetPasswordEmailResponse$1 & SendSetPasswordEmailResponseNonNullableFields$1>;
1365
1365
 
1366
1366
  declare const meta$9_approve: typeof approve;
1367
1367
  declare const meta$9_block: typeof block;
@@ -3989,7 +3989,7 @@ interface MemberReport$1 {
3989
3989
  /** Reason for reporting a member. */
3990
3990
  reason?: Reason$1;
3991
3991
  /**
3992
- * Date and time when the report was created.
3992
+ * Date and time the report was created.
3993
3993
  * @readonly
3994
3994
  */
3995
3995
  createdDate?: Date | null;
@@ -3997,7 +3997,7 @@ interface MemberReport$1 {
3997
3997
  interface Reason$1 {
3998
3998
  /** Report reason type. */
3999
3999
  category?: Category$1;
4000
- /** Description of why the member is reported. */
4000
+ /** Why the member is reported. */
4001
4001
  description?: string | null;
4002
4002
  }
4003
4003
  declare enum Category$1 {
@@ -4102,7 +4102,7 @@ interface Cursors$3 {
4102
4102
  prev?: string | null;
4103
4103
  }
4104
4104
  interface MarkMemberReportsAsReviewedRequest$1 {
4105
- /** ID of the member whose reports to be marked as reviewed. */
4105
+ /** ID of the member whose reports are to be marked as reviewed. */
4106
4106
  memberId: string;
4107
4107
  }
4108
4108
  interface MarkMemberReportsAsReviewedResponse$1 {
@@ -4184,7 +4184,7 @@ interface MemberReport {
4184
4184
  /** Reason for reporting a member. */
4185
4185
  reason?: Reason;
4186
4186
  /**
4187
- * Date and time when the report was created.
4187
+ * Date and time the report was created.
4188
4188
  * @readonly
4189
4189
  */
4190
4190
  _createdDate?: Date | null;
@@ -4192,7 +4192,7 @@ interface MemberReport {
4192
4192
  interface Reason {
4193
4193
  /** Report reason type. */
4194
4194
  category?: Category;
4195
- /** Description of why the member is reported. */
4195
+ /** Why the member is reported. */
4196
4196
  description?: string | null;
4197
4197
  }
4198
4198
  declare enum Category {
@@ -4297,7 +4297,7 @@ interface Cursors$2 {
4297
4297
  prev?: string | null;
4298
4298
  }
4299
4299
  interface MarkMemberReportsAsReviewedRequest {
4300
- /** ID of the member whose reports to be marked as reviewed. */
4300
+ /** ID of the member whose reports are to be marked as reviewed. */
4301
4301
  memberId: string;
4302
4302
  }
4303
4303
  interface MarkMemberReportsAsReviewedResponse {