@wix/members 1.0.100 → 1.0.101
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/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +308 -308
- package/type-bundles/index.bundle.d.ts +308 -308
- package/type-bundles/meta.bundle.d.ts +136 -136
|
@@ -1057,229 +1057,6 @@ interface Group {
|
|
|
1057
1057
|
name?: string;
|
|
1058
1058
|
type?: string;
|
|
1059
1059
|
}
|
|
1060
|
-
/** Registration options. */
|
|
1061
|
-
interface RegisterRequest {
|
|
1062
|
-
/** Login email address for the new site member. */
|
|
1063
|
-
email?: string;
|
|
1064
|
-
/**
|
|
1065
|
-
* Password the new site member will use to log in.
|
|
1066
|
-
*
|
|
1067
|
-
* Must be 4 to 15 ASCII-printable characters.
|
|
1068
|
-
*/
|
|
1069
|
-
password?: string;
|
|
1070
|
-
/** Contact information for the registered member. */
|
|
1071
|
-
contactInfo?: MemberContactInfo;
|
|
1072
|
-
/**
|
|
1073
|
-
* @internal
|
|
1074
|
-
* @internal */
|
|
1075
|
-
dialogData?: DialogData;
|
|
1076
|
-
/**
|
|
1077
|
-
* Sets the privacy status of a new member upon registration.
|
|
1078
|
-
*
|
|
1079
|
-
* - `PUBLIC`: Member is visible to everyone.
|
|
1080
|
-
* - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
|
|
1081
|
-
* - `UNKNOWN`: Insufficient permissions to get the status.
|
|
1082
|
-
*/
|
|
1083
|
-
profilePrivacyStatus?: SiteMemberPrivacyStatus;
|
|
1084
|
-
/**
|
|
1085
|
-
* @internal
|
|
1086
|
-
* @internal */
|
|
1087
|
-
isOfflineRegistration?: boolean;
|
|
1088
|
-
/**
|
|
1089
|
-
* @internal
|
|
1090
|
-
* @internal */
|
|
1091
|
-
recaptchaToken?: string | null;
|
|
1092
|
-
/**
|
|
1093
|
-
* @internal
|
|
1094
|
-
* @internal */
|
|
1095
|
-
invisibleRecaptchaToken?: string | null;
|
|
1096
|
-
/**
|
|
1097
|
-
* @internal
|
|
1098
|
-
* @internal */
|
|
1099
|
-
emailVerification?: EmailVerification;
|
|
1100
|
-
/**
|
|
1101
|
-
* @internal
|
|
1102
|
-
* @internal */
|
|
1103
|
-
isMobile?: boolean | null;
|
|
1104
|
-
}
|
|
1105
|
-
interface MemberContactInfo {
|
|
1106
|
-
/** First name. */
|
|
1107
|
-
firstName?: string | null;
|
|
1108
|
-
/** Last name. */
|
|
1109
|
-
lastName?: string | null;
|
|
1110
|
-
/** Contact's profile picture. */
|
|
1111
|
-
picture?: string | null;
|
|
1112
|
-
/** Contact's email addresses. */
|
|
1113
|
-
emails?: string[];
|
|
1114
|
-
/** Contact's phone numbers. */
|
|
1115
|
-
phones?: string[];
|
|
1116
|
-
/** List of contact's labels. */
|
|
1117
|
-
labels?: string[];
|
|
1118
|
-
/**
|
|
1119
|
-
* @internal
|
|
1120
|
-
* @internal */
|
|
1121
|
-
locale?: string | null;
|
|
1122
|
-
/**
|
|
1123
|
-
* Any number of custom fields.
|
|
1124
|
-
* [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
1125
|
-
* are used to store additional information about your site's contacts.
|
|
1126
|
-
* When setting a custom field, use key:value pairs,
|
|
1127
|
-
* where the key matches the names defined in your site's
|
|
1128
|
-
* [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
|
|
1129
|
-
* You can only set values for custom fields that already exist in the Contacts application.
|
|
1130
|
-
*/
|
|
1131
|
-
customFields?: CustomField$2[];
|
|
1132
|
-
}
|
|
1133
|
-
interface DialogData {
|
|
1134
|
-
visitorId?: string | null;
|
|
1135
|
-
appId?: string | null;
|
|
1136
|
-
initiator?: string | null;
|
|
1137
|
-
}
|
|
1138
|
-
interface EmailVerification {
|
|
1139
|
-
/** ID of the verification process. */
|
|
1140
|
-
verificationId?: string;
|
|
1141
|
-
/**
|
|
1142
|
-
* 6-digit code for verification. Code can be between 100000 and 999999.
|
|
1143
|
-
*
|
|
1144
|
-
*/
|
|
1145
|
-
otp?: string;
|
|
1146
|
-
}
|
|
1147
|
-
interface RegisterResponse {
|
|
1148
|
-
/** Newly registered member. */
|
|
1149
|
-
member?: Member$1;
|
|
1150
|
-
/**
|
|
1151
|
-
* in case the site is open for registration, all members are automatically
|
|
1152
|
-
* approved. they will get a temporary token for obtaining a valid session
|
|
1153
|
-
*/
|
|
1154
|
-
session?: Session;
|
|
1155
|
-
/**
|
|
1156
|
-
* in case the site requires members approval, the registered member
|
|
1157
|
-
* will be an applicant until he's approved. the token can be used as a member
|
|
1158
|
-
* identifier for approval using the `MembersService.Approve` API
|
|
1159
|
-
*/
|
|
1160
|
-
approvalToken?: string | null;
|
|
1161
|
-
}
|
|
1162
|
-
interface Session {
|
|
1163
|
-
/** Session token when the current member is logged into the site. */
|
|
1164
|
-
token?: string | null;
|
|
1165
|
-
}
|
|
1166
|
-
interface EmailVerificationRequired {
|
|
1167
|
-
/** ID of the verification process. */
|
|
1168
|
-
verificationId?: string;
|
|
1169
|
-
}
|
|
1170
|
-
interface EmailVerificationFailed {
|
|
1171
|
-
/** ID of the failed verification process. */
|
|
1172
|
-
verificationId?: string;
|
|
1173
|
-
/** Reason for verification failure. */
|
|
1174
|
-
verificationFailureReason?: VerificationFailureReason;
|
|
1175
|
-
}
|
|
1176
|
-
declare enum VerificationFailureReason {
|
|
1177
|
-
/** Default value - means no failure */
|
|
1178
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1179
|
-
/** Bad verification code */
|
|
1180
|
-
BAD_CODE = "BAD_CODE",
|
|
1181
|
-
/** Verification code was not found */
|
|
1182
|
-
NOT_FOUND = "NOT_FOUND",
|
|
1183
|
-
/** Error while sending the code to the user */
|
|
1184
|
-
SEND_CODE_ERROR = "SEND_CODE_ERROR"
|
|
1185
|
-
}
|
|
1186
|
-
interface LoginRequest {
|
|
1187
|
-
/** Login email address. */
|
|
1188
|
-
email?: string;
|
|
1189
|
-
/** Member password. */
|
|
1190
|
-
password?: string;
|
|
1191
|
-
/**
|
|
1192
|
-
* @internal
|
|
1193
|
-
* @internal */
|
|
1194
|
-
recaptchaToken?: string;
|
|
1195
|
-
/**
|
|
1196
|
-
* @internal
|
|
1197
|
-
* @internal */
|
|
1198
|
-
invisibleRecaptchaToken?: string;
|
|
1199
|
-
/**
|
|
1200
|
-
* @internal
|
|
1201
|
-
* @internal */
|
|
1202
|
-
emailVerification?: EmailVerification;
|
|
1203
|
-
/**
|
|
1204
|
-
* @internal
|
|
1205
|
-
* @internal */
|
|
1206
|
-
isMobile?: boolean | null;
|
|
1207
|
-
}
|
|
1208
|
-
/** Session token for logging the member in. */
|
|
1209
|
-
interface LoginResponse {
|
|
1210
|
-
/** Session token. */
|
|
1211
|
-
session?: Session;
|
|
1212
|
-
/** the member's details */
|
|
1213
|
-
member?: Member$1;
|
|
1214
|
-
}
|
|
1215
|
-
interface GetResetPasswordLinkRequest {
|
|
1216
|
-
/** Contact ID of the member whose password will be reset. */
|
|
1217
|
-
contactId?: string;
|
|
1218
|
-
}
|
|
1219
|
-
interface GetResetPasswordLinkResponse {
|
|
1220
|
-
/**
|
|
1221
|
-
* Reset password link.
|
|
1222
|
-
* Valid for one use, up to two weeks from when it is created.
|
|
1223
|
-
*/
|
|
1224
|
-
resetPasswordLink?: string;
|
|
1225
|
-
}
|
|
1226
|
-
interface SendSetPasswordEmailRequest {
|
|
1227
|
-
/** Login email of the member whose password will be set. */
|
|
1228
|
-
email: string;
|
|
1229
|
-
/**
|
|
1230
|
-
* @internal
|
|
1231
|
-
* @internal
|
|
1232
|
-
* @deprecated
|
|
1233
|
-
*/
|
|
1234
|
-
requestedByMember?: boolean;
|
|
1235
|
-
/**
|
|
1236
|
-
* Whether to hide the ignore this email message .
|
|
1237
|
-
*
|
|
1238
|
-
* If `true`, the email tells the member
|
|
1239
|
-
* they can safely ignore
|
|
1240
|
-
* if they did not request the password change.
|
|
1241
|
-
*
|
|
1242
|
-
* Default: `false`.
|
|
1243
|
-
*/
|
|
1244
|
-
hideIgnoreMessage?: boolean;
|
|
1245
|
-
}
|
|
1246
|
-
interface SendSetPasswordEmailResponse {
|
|
1247
|
-
/** Indicates if the request was successfully received. */
|
|
1248
|
-
accepted?: boolean;
|
|
1249
|
-
}
|
|
1250
|
-
interface ResetPasswordRequest {
|
|
1251
|
-
/** Contact ID of the member whose password will be reset. */
|
|
1252
|
-
contactId?: string;
|
|
1253
|
-
}
|
|
1254
|
-
interface ResetPasswordResponse {
|
|
1255
|
-
/** Indicates if the request was successfully received. */
|
|
1256
|
-
accepted?: boolean;
|
|
1257
|
-
}
|
|
1258
|
-
interface SocialLoginRequest extends SocialLoginRequestLoginOneOf {
|
|
1259
|
-
appleLogin?: AppleLogin;
|
|
1260
|
-
googleLogin?: GoogleLogin;
|
|
1261
|
-
facebookLogin?: FacebookLogin;
|
|
1262
|
-
/** Must either pass explicit msid OR signed instance with visitor */
|
|
1263
|
-
metaSiteId?: string | null;
|
|
1264
|
-
}
|
|
1265
|
-
/** @oneof */
|
|
1266
|
-
interface SocialLoginRequestLoginOneOf {
|
|
1267
|
-
appleLogin?: AppleLogin;
|
|
1268
|
-
googleLogin?: GoogleLogin;
|
|
1269
|
-
facebookLogin?: FacebookLogin;
|
|
1270
|
-
}
|
|
1271
|
-
interface AppleLogin {
|
|
1272
|
-
/** JWT signed by apple, contains target (aud), email etc */
|
|
1273
|
-
token?: string;
|
|
1274
|
-
}
|
|
1275
|
-
interface GoogleLogin {
|
|
1276
|
-
/** JWT signed by Google, contains target (aud), email etc */
|
|
1277
|
-
token?: string;
|
|
1278
|
-
}
|
|
1279
|
-
interface FacebookLogin {
|
|
1280
|
-
/** AccessToken created by Facebook, used to later fetch details over API */
|
|
1281
|
-
token?: string;
|
|
1282
|
-
}
|
|
1283
1060
|
interface ListMembersRequest$1 {
|
|
1284
1061
|
/** for paging - maximum number of records to retrieve */
|
|
1285
1062
|
limit?: number;
|
|
@@ -1510,6 +1287,10 @@ interface ApproveMemberResponse$1 {
|
|
|
1510
1287
|
/** Approval session token. */
|
|
1511
1288
|
session?: Session;
|
|
1512
1289
|
}
|
|
1290
|
+
interface Session {
|
|
1291
|
+
/** Session token when the current member is logged into the site. */
|
|
1292
|
+
token?: string | null;
|
|
1293
|
+
}
|
|
1513
1294
|
interface BlockMemberRequest$2 extends BlockMemberRequestMemberIdentifierOneOf {
|
|
1514
1295
|
/** ID of the member to block. */
|
|
1515
1296
|
_id?: string;
|
|
@@ -1538,44 +1319,21 @@ interface MakeMemberOfflineRequest {
|
|
|
1538
1319
|
}
|
|
1539
1320
|
interface MakeMemberOfflineResponse {
|
|
1540
1321
|
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
_id: string;
|
|
1552
|
-
emailVerified: boolean;
|
|
1553
|
-
role: Role$1;
|
|
1554
|
-
profilePrivacyStatus: SiteMemberPrivacyStatus;
|
|
1555
|
-
status: SiteMemberStatus;
|
|
1556
|
-
emails: string[];
|
|
1557
|
-
phones: string[];
|
|
1558
|
-
labels: string[];
|
|
1559
|
-
customFields: CustomFieldNonNullableFields$1[];
|
|
1560
|
-
picture: string;
|
|
1561
|
-
groups: GroupNonNullableFields[];
|
|
1562
|
-
}
|
|
1563
|
-
interface RegisterResponseNonNullableFields {
|
|
1564
|
-
member?: MemberNonNullableFields$1;
|
|
1565
|
-
}
|
|
1566
|
-
interface LoginResponseNonNullableFields {
|
|
1567
|
-
member?: MemberNonNullableFields$1;
|
|
1568
|
-
}
|
|
1569
|
-
interface SendSetPasswordEmailResponseNonNullableFields {
|
|
1570
|
-
accepted: boolean;
|
|
1571
|
-
}
|
|
1572
|
-
interface ChangeLoginEmailResponseNonNullableFields {
|
|
1573
|
-
member?: MemberNonNullableFields$1;
|
|
1574
|
-
}
|
|
1575
|
-
interface RegisterOptions {
|
|
1322
|
+
/** Registration options. */
|
|
1323
|
+
interface RegisterRequest {
|
|
1324
|
+
/** Login email address for the new site member. */
|
|
1325
|
+
email?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* Password the new site member will use to log in.
|
|
1328
|
+
*
|
|
1329
|
+
* Must be 4 to 15 ASCII-printable characters.
|
|
1330
|
+
*/
|
|
1331
|
+
password?: string;
|
|
1576
1332
|
/** Contact information for the registered member. */
|
|
1577
1333
|
contactInfo?: MemberContactInfo;
|
|
1578
|
-
/**
|
|
1334
|
+
/**
|
|
1335
|
+
* @internal
|
|
1336
|
+
* @internal */
|
|
1579
1337
|
dialogData?: DialogData;
|
|
1580
1338
|
/**
|
|
1581
1339
|
* Sets the privacy status of a new member upon registration.
|
|
@@ -1585,30 +1343,147 @@ interface RegisterOptions {
|
|
|
1585
1343
|
* - `UNKNOWN`: Insufficient permissions to get the status.
|
|
1586
1344
|
*/
|
|
1587
1345
|
profilePrivacyStatus?: SiteMemberPrivacyStatus;
|
|
1588
|
-
/**
|
|
1346
|
+
/**
|
|
1347
|
+
* @internal
|
|
1348
|
+
* @internal */
|
|
1589
1349
|
isOfflineRegistration?: boolean;
|
|
1590
|
-
/**
|
|
1350
|
+
/**
|
|
1351
|
+
* @internal
|
|
1352
|
+
* @internal */
|
|
1591
1353
|
recaptchaToken?: string | null;
|
|
1592
|
-
/**
|
|
1354
|
+
/**
|
|
1355
|
+
* @internal
|
|
1356
|
+
* @internal */
|
|
1593
1357
|
invisibleRecaptchaToken?: string | null;
|
|
1594
1358
|
/**
|
|
1595
|
-
*
|
|
1359
|
+
* @internal
|
|
1596
1360
|
* @internal */
|
|
1597
1361
|
emailVerification?: EmailVerification;
|
|
1598
|
-
/**
|
|
1362
|
+
/**
|
|
1363
|
+
* @internal
|
|
1364
|
+
* @internal */
|
|
1599
1365
|
isMobile?: boolean | null;
|
|
1600
1366
|
}
|
|
1601
|
-
interface
|
|
1602
|
-
/**
|
|
1367
|
+
interface MemberContactInfo {
|
|
1368
|
+
/** First name. */
|
|
1369
|
+
firstName?: string | null;
|
|
1370
|
+
/** Last name. */
|
|
1371
|
+
lastName?: string | null;
|
|
1372
|
+
/** Contact's profile picture. */
|
|
1373
|
+
picture?: string | null;
|
|
1374
|
+
/** Contact's email addresses. */
|
|
1375
|
+
emails?: string[];
|
|
1376
|
+
/** Contact's phone numbers. */
|
|
1377
|
+
phones?: string[];
|
|
1378
|
+
/** List of contact's labels. */
|
|
1379
|
+
labels?: string[];
|
|
1380
|
+
/**
|
|
1381
|
+
* @internal
|
|
1382
|
+
* @internal */
|
|
1383
|
+
locale?: string | null;
|
|
1384
|
+
/**
|
|
1385
|
+
* Any number of custom fields.
|
|
1386
|
+
* [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
1387
|
+
* are used to store additional information about your site's contacts.
|
|
1388
|
+
* When setting a custom field, use key:value pairs,
|
|
1389
|
+
* where the key matches the names defined in your site's
|
|
1390
|
+
* [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
|
|
1391
|
+
* You can only set values for custom fields that already exist in the Contacts application.
|
|
1392
|
+
*/
|
|
1393
|
+
customFields?: CustomField$2[];
|
|
1394
|
+
}
|
|
1395
|
+
interface DialogData {
|
|
1396
|
+
visitorId?: string | null;
|
|
1397
|
+
appId?: string | null;
|
|
1398
|
+
initiator?: string | null;
|
|
1399
|
+
}
|
|
1400
|
+
interface EmailVerification {
|
|
1401
|
+
/** ID of the verification process. */
|
|
1402
|
+
verificationId?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* 6-digit code for verification. Code can be between 100000 and 999999.
|
|
1405
|
+
*
|
|
1406
|
+
*/
|
|
1407
|
+
otp?: string;
|
|
1408
|
+
}
|
|
1409
|
+
interface RegisterResponse {
|
|
1410
|
+
/** Newly registered member. */
|
|
1411
|
+
member?: Member$1;
|
|
1412
|
+
/**
|
|
1413
|
+
* in case the site is open for registration, all members are automatically
|
|
1414
|
+
* approved. they will get a temporary token for obtaining a valid session
|
|
1415
|
+
*/
|
|
1416
|
+
session?: Session;
|
|
1417
|
+
/**
|
|
1418
|
+
* in case the site requires members approval, the registered member
|
|
1419
|
+
* will be an applicant until he's approved. the token can be used as a member
|
|
1420
|
+
* identifier for approval using the `MembersService.Approve` API
|
|
1421
|
+
*/
|
|
1422
|
+
approvalToken?: string | null;
|
|
1423
|
+
}
|
|
1424
|
+
interface EmailVerificationRequired {
|
|
1425
|
+
/** ID of the verification process. */
|
|
1426
|
+
verificationId?: string;
|
|
1427
|
+
}
|
|
1428
|
+
interface EmailVerificationFailed {
|
|
1429
|
+
/** ID of the failed verification process. */
|
|
1430
|
+
verificationId?: string;
|
|
1431
|
+
/** Reason for verification failure. */
|
|
1432
|
+
verificationFailureReason?: VerificationFailureReason;
|
|
1433
|
+
}
|
|
1434
|
+
declare enum VerificationFailureReason {
|
|
1435
|
+
/** Default value - means no failure */
|
|
1436
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1437
|
+
/** Bad verification code */
|
|
1438
|
+
BAD_CODE = "BAD_CODE",
|
|
1439
|
+
/** Verification code was not found */
|
|
1440
|
+
NOT_FOUND = "NOT_FOUND",
|
|
1441
|
+
/** Error while sending the code to the user */
|
|
1442
|
+
SEND_CODE_ERROR = "SEND_CODE_ERROR"
|
|
1443
|
+
}
|
|
1444
|
+
interface LoginRequest {
|
|
1445
|
+
/** Login email address. */
|
|
1446
|
+
email?: string;
|
|
1447
|
+
/** Member password. */
|
|
1448
|
+
password?: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* @internal
|
|
1451
|
+
* @internal */
|
|
1603
1452
|
recaptchaToken?: string;
|
|
1604
|
-
/**
|
|
1453
|
+
/**
|
|
1454
|
+
* @internal
|
|
1455
|
+
* @internal */
|
|
1605
1456
|
invisibleRecaptchaToken?: string;
|
|
1606
|
-
/**
|
|
1457
|
+
/**
|
|
1458
|
+
* @internal
|
|
1459
|
+
* @internal */
|
|
1607
1460
|
emailVerification?: EmailVerification;
|
|
1608
|
-
/**
|
|
1461
|
+
/**
|
|
1462
|
+
* @internal
|
|
1463
|
+
* @internal */
|
|
1609
1464
|
isMobile?: boolean | null;
|
|
1610
1465
|
}
|
|
1611
|
-
|
|
1466
|
+
/** Session token for logging the member in. */
|
|
1467
|
+
interface LoginResponse {
|
|
1468
|
+
/** Session token. */
|
|
1469
|
+
session?: Session;
|
|
1470
|
+
/** the member's details */
|
|
1471
|
+
member?: Member$1;
|
|
1472
|
+
}
|
|
1473
|
+
interface GetResetPasswordLinkRequest {
|
|
1474
|
+
/** Contact ID of the member whose password will be reset. */
|
|
1475
|
+
contactId?: string;
|
|
1476
|
+
}
|
|
1477
|
+
interface GetResetPasswordLinkResponse {
|
|
1478
|
+
/**
|
|
1479
|
+
* Reset password link.
|
|
1480
|
+
* Valid for one use, up to two weeks from when it is created.
|
|
1481
|
+
*/
|
|
1482
|
+
resetPasswordLink?: string;
|
|
1483
|
+
}
|
|
1484
|
+
interface SendSetPasswordEmailRequest {
|
|
1485
|
+
/** Login email of the member whose password will be set. */
|
|
1486
|
+
email: string;
|
|
1612
1487
|
/**
|
|
1613
1488
|
* @internal
|
|
1614
1489
|
* @internal
|
|
@@ -1626,6 +1501,77 @@ interface SendSetPasswordEmailOptions {
|
|
|
1626
1501
|
*/
|
|
1627
1502
|
hideIgnoreMessage?: boolean;
|
|
1628
1503
|
}
|
|
1504
|
+
interface SendSetPasswordEmailResponse {
|
|
1505
|
+
/** Indicates if the request was successfully received. */
|
|
1506
|
+
accepted?: boolean;
|
|
1507
|
+
}
|
|
1508
|
+
interface ResetPasswordRequest {
|
|
1509
|
+
/** Contact ID of the member whose password will be reset. */
|
|
1510
|
+
contactId?: string;
|
|
1511
|
+
}
|
|
1512
|
+
interface ResetPasswordResponse {
|
|
1513
|
+
/** Indicates if the request was successfully received. */
|
|
1514
|
+
accepted?: boolean;
|
|
1515
|
+
}
|
|
1516
|
+
interface SocialLoginRequest extends SocialLoginRequestLoginOneOf {
|
|
1517
|
+
appleLogin?: AppleLogin;
|
|
1518
|
+
googleLogin?: GoogleLogin;
|
|
1519
|
+
facebookLogin?: FacebookLogin;
|
|
1520
|
+
/** Must either pass explicit msid OR signed instance with visitor */
|
|
1521
|
+
metaSiteId?: string | null;
|
|
1522
|
+
}
|
|
1523
|
+
/** @oneof */
|
|
1524
|
+
interface SocialLoginRequestLoginOneOf {
|
|
1525
|
+
appleLogin?: AppleLogin;
|
|
1526
|
+
googleLogin?: GoogleLogin;
|
|
1527
|
+
facebookLogin?: FacebookLogin;
|
|
1528
|
+
}
|
|
1529
|
+
interface AppleLogin {
|
|
1530
|
+
/** JWT signed by apple, contains target (aud), email etc */
|
|
1531
|
+
token?: string;
|
|
1532
|
+
}
|
|
1533
|
+
interface GoogleLogin {
|
|
1534
|
+
/** JWT signed by Google, contains target (aud), email etc */
|
|
1535
|
+
token?: string;
|
|
1536
|
+
}
|
|
1537
|
+
interface FacebookLogin {
|
|
1538
|
+
/** AccessToken created by Facebook, used to later fetch details over API */
|
|
1539
|
+
token?: string;
|
|
1540
|
+
}
|
|
1541
|
+
interface CustomFieldNonNullableFields$1 {
|
|
1542
|
+
numValue: number;
|
|
1543
|
+
name: string;
|
|
1544
|
+
}
|
|
1545
|
+
interface GroupNonNullableFields {
|
|
1546
|
+
_id: string;
|
|
1547
|
+
name: string;
|
|
1548
|
+
type: string;
|
|
1549
|
+
}
|
|
1550
|
+
interface MemberNonNullableFields$1 {
|
|
1551
|
+
_id: string;
|
|
1552
|
+
emailVerified: boolean;
|
|
1553
|
+
role: Role$1;
|
|
1554
|
+
profilePrivacyStatus: SiteMemberPrivacyStatus;
|
|
1555
|
+
status: SiteMemberStatus;
|
|
1556
|
+
emails: string[];
|
|
1557
|
+
phones: string[];
|
|
1558
|
+
labels: string[];
|
|
1559
|
+
customFields: CustomFieldNonNullableFields$1[];
|
|
1560
|
+
picture: string;
|
|
1561
|
+
groups: GroupNonNullableFields[];
|
|
1562
|
+
}
|
|
1563
|
+
interface ChangeLoginEmailResponseNonNullableFields {
|
|
1564
|
+
member?: MemberNonNullableFields$1;
|
|
1565
|
+
}
|
|
1566
|
+
interface RegisterResponseNonNullableFields {
|
|
1567
|
+
member?: MemberNonNullableFields$1;
|
|
1568
|
+
}
|
|
1569
|
+
interface LoginResponseNonNullableFields {
|
|
1570
|
+
member?: MemberNonNullableFields$1;
|
|
1571
|
+
}
|
|
1572
|
+
interface SendSetPasswordEmailResponseNonNullableFields {
|
|
1573
|
+
accepted: boolean;
|
|
1574
|
+
}
|
|
1629
1575
|
interface ChangeLoginEmailOptions {
|
|
1630
1576
|
/**
|
|
1631
1577
|
* @internal
|
|
@@ -1650,51 +1596,61 @@ interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
|
|
|
1650
1596
|
* @internal */
|
|
1651
1597
|
source?: Source;
|
|
1652
1598
|
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1599
|
+
interface RegisterOptions {
|
|
1600
|
+
/** Contact information for the registered member. */
|
|
1601
|
+
contactInfo?: MemberContactInfo;
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
dialogData?: DialogData;
|
|
1656
1604
|
/**
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
* The specified `password` must be between 4 and 100 ASCII characters.
|
|
1660
|
-
*
|
|
1661
|
-
* >**Note:** The `register()` function behaves differently depending on your site's [member signup settings](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-members/enabling-custom-site-registration).
|
|
1662
|
-
* @param - Login email address for the new site member.
|
|
1663
|
-
* @param - Password the new site member will use to log in.
|
|
1605
|
+
* Sets the privacy status of a new member upon registration.
|
|
1664
1606
|
*
|
|
1665
|
-
*
|
|
1666
|
-
*
|
|
1607
|
+
* - `PUBLIC`: Member is visible to everyone.
|
|
1608
|
+
* - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
|
|
1609
|
+
* - `UNKNOWN`: Insufficient permissions to get the status.
|
|
1667
1610
|
*/
|
|
1668
|
-
|
|
1611
|
+
profilePrivacyStatus?: SiteMemberPrivacyStatus;
|
|
1612
|
+
/** @internal */
|
|
1613
|
+
isOfflineRegistration?: boolean;
|
|
1614
|
+
/** @internal */
|
|
1615
|
+
recaptchaToken?: string | null;
|
|
1616
|
+
/** @internal */
|
|
1617
|
+
invisibleRecaptchaToken?: string | null;
|
|
1618
|
+
/**
|
|
1619
|
+
* Email verification.
|
|
1620
|
+
* @internal */
|
|
1621
|
+
emailVerification?: EmailVerification;
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
isMobile?: boolean | null;
|
|
1669
1624
|
}
|
|
1670
|
-
|
|
1671
|
-
|
|
1625
|
+
interface LoginOptions {
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
recaptchaToken?: string;
|
|
1628
|
+
/** @internal */
|
|
1629
|
+
invisibleRecaptchaToken?: string;
|
|
1630
|
+
/** @internal */
|
|
1631
|
+
emailVerification?: EmailVerification;
|
|
1632
|
+
/** @internal */
|
|
1633
|
+
isMobile?: boolean | null;
|
|
1634
|
+
}
|
|
1635
|
+
interface SendSetPasswordEmailOptions {
|
|
1672
1636
|
/**
|
|
1673
|
-
*
|
|
1674
|
-
*
|
|
1675
|
-
*
|
|
1676
|
-
*
|
|
1677
|
-
* To complete the login, the returned session token must be applied using the `applySessionToken()` function in the wix-members-frontend API.
|
|
1678
|
-
* @param - Login email address.
|
|
1679
|
-
* @param - Member password.
|
|
1680
|
-
* @param - Options for logging in a member.
|
|
1681
|
-
* @returns Session token for logging the member in.
|
|
1637
|
+
* @internal
|
|
1638
|
+
* @internal
|
|
1639
|
+
* @deprecated
|
|
1682
1640
|
*/
|
|
1683
|
-
|
|
1684
|
-
}
|
|
1685
|
-
declare function sendSetPasswordEmail$1(httpClient: HttpClient): SendSetPasswordEmailSignature;
|
|
1686
|
-
interface SendSetPasswordEmailSignature {
|
|
1641
|
+
requestedByMember?: boolean;
|
|
1687
1642
|
/**
|
|
1688
|
-
*
|
|
1643
|
+
* Whether to hide the ignore this email message .
|
|
1689
1644
|
*
|
|
1690
|
-
*
|
|
1691
|
-
*
|
|
1692
|
-
*
|
|
1693
|
-
*
|
|
1694
|
-
*
|
|
1645
|
+
* If `true`, the email tells the member
|
|
1646
|
+
* they can safely ignore
|
|
1647
|
+
* if they did not request the password change.
|
|
1648
|
+
*
|
|
1649
|
+
* Default: `false`.
|
|
1695
1650
|
*/
|
|
1696
|
-
|
|
1651
|
+
hideIgnoreMessage?: boolean;
|
|
1697
1652
|
}
|
|
1653
|
+
|
|
1698
1654
|
declare function changeLoginEmail$1(httpClient: HttpClient): ChangeLoginEmailSignature;
|
|
1699
1655
|
interface ChangeLoginEmailSignature {
|
|
1700
1656
|
/**
|
|
@@ -1739,13 +1695,57 @@ interface BlockSignature {
|
|
|
1739
1695
|
*/
|
|
1740
1696
|
(options?: BlockOptions | undefined): Promise<void>;
|
|
1741
1697
|
}
|
|
1698
|
+
declare function register$1(httpClient: HttpClient): RegisterSignature;
|
|
1699
|
+
interface RegisterSignature {
|
|
1700
|
+
/**
|
|
1701
|
+
* Registers a new site member.
|
|
1702
|
+
*
|
|
1703
|
+
* The specified `password` must be between 4 and 100 ASCII characters.
|
|
1704
|
+
*
|
|
1705
|
+
* >**Note:** The `register()` function behaves differently depending on your site's [member signup settings](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-members/enabling-custom-site-registration).
|
|
1706
|
+
* @param - Login email address for the new site member.
|
|
1707
|
+
* @param - Password the new site member will use to log in.
|
|
1708
|
+
*
|
|
1709
|
+
* Must be 4 to 15 ASCII-printable characters.
|
|
1710
|
+
* @param - Options for registering a new member.
|
|
1711
|
+
*/
|
|
1712
|
+
(email: string, password: string, options?: RegisterOptions | undefined): Promise<RegisterResponse & RegisterResponseNonNullableFields>;
|
|
1713
|
+
}
|
|
1714
|
+
declare function login$1(httpClient: HttpClient): LoginSignature;
|
|
1715
|
+
interface LoginSignature {
|
|
1716
|
+
/**
|
|
1717
|
+
* Logs in a registered member with an email and password.
|
|
1718
|
+
*
|
|
1719
|
+
* The `login()` function only works with existing members. To register a new member use the [`register()`](#register) function.
|
|
1720
|
+
*
|
|
1721
|
+
* To complete the login, the returned session token must be applied using the `applySessionToken()` function in the wix-members-frontend API.
|
|
1722
|
+
* @param - Login email address.
|
|
1723
|
+
* @param - Member password.
|
|
1724
|
+
* @param - Options for logging in a member.
|
|
1725
|
+
* @returns Session token for logging the member in.
|
|
1726
|
+
*/
|
|
1727
|
+
(email: string, password: string, options?: LoginOptions | undefined): Promise<LoginResponse & LoginResponseNonNullableFields>;
|
|
1728
|
+
}
|
|
1729
|
+
declare function sendSetPasswordEmail$1(httpClient: HttpClient): SendSetPasswordEmailSignature;
|
|
1730
|
+
interface SendSetPasswordEmailSignature {
|
|
1731
|
+
/**
|
|
1732
|
+
* Sends a site member an email with a link to set their password.
|
|
1733
|
+
*
|
|
1734
|
+
* The set password link is valid for 3 hours,
|
|
1735
|
+
* and it can be used only once.
|
|
1736
|
+
* If the link expires, the original password remains.
|
|
1737
|
+
* @param - Login email of the member whose password will be set.
|
|
1738
|
+
* @param - Email display options.
|
|
1739
|
+
*/
|
|
1740
|
+
(email: string, options?: SendSetPasswordEmailOptions | undefined): Promise<SendSetPasswordEmailResponse & SendSetPasswordEmailResponseNonNullableFields>;
|
|
1741
|
+
}
|
|
1742
1742
|
|
|
1743
|
-
declare const register: BuildRESTFunction<typeof register$1> & typeof register$1;
|
|
1744
|
-
declare const login: BuildRESTFunction<typeof login$1> & typeof login$1;
|
|
1745
|
-
declare const sendSetPasswordEmail: BuildRESTFunction<typeof sendSetPasswordEmail$1> & typeof sendSetPasswordEmail$1;
|
|
1746
1743
|
declare const changeLoginEmail: BuildRESTFunction<typeof changeLoginEmail$1> & typeof changeLoginEmail$1;
|
|
1747
1744
|
declare const approve: BuildRESTFunction<typeof approve$1> & typeof approve$1;
|
|
1748
1745
|
declare const block: BuildRESTFunction<typeof block$1> & typeof block$1;
|
|
1746
|
+
declare const register: BuildRESTFunction<typeof register$1> & typeof register$1;
|
|
1747
|
+
declare const login: BuildRESTFunction<typeof login$1> & typeof login$1;
|
|
1748
|
+
declare const sendSetPasswordEmail: BuildRESTFunction<typeof sendSetPasswordEmail$1> & typeof sendSetPasswordEmail$1;
|
|
1749
1749
|
|
|
1750
1750
|
type context$7_AppleLogin = AppleLogin;
|
|
1751
1751
|
type context$7_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
|