@wix/members 1.0.92 → 1.0.93
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 +4 -4
- package/type-bundles/context.bundle.d.ts +258 -255
- package/type-bundles/index.bundle.d.ts +258 -255
- package/type-bundles/meta.bundle.d.ts +136 -136
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/members",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.93",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/members_authentication": "1.0.
|
|
21
|
+
"@wix/members_authentication": "1.0.21",
|
|
22
22
|
"@wix/members_authorization": "1.0.1",
|
|
23
|
-
"@wix/members_badges": "1.0.
|
|
23
|
+
"@wix/members_badges": "1.0.29",
|
|
24
24
|
"@wix/members_custom-field": "1.0.1",
|
|
25
25
|
"@wix/members_custom-field-suggestion": "1.0.1",
|
|
26
26
|
"@wix/members_member-role-definition": "1.0.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": ""
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "35d430f3fcef671add884c8b4099a4c158d4934957c3a6245bf59a78"
|
|
54
54
|
}
|
|
@@ -304,7 +304,7 @@ interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
|
304
304
|
slug?: string;
|
|
305
305
|
/** ID of the entity associated with the event. */
|
|
306
306
|
entityId?: string;
|
|
307
|
-
/** Event timestamp. */
|
|
307
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
308
308
|
eventTime?: Date;
|
|
309
309
|
/**
|
|
310
310
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -333,6 +333,9 @@ interface DomainEventBodyOneOf$4 {
|
|
|
333
333
|
interface EntityCreatedEvent$4 {
|
|
334
334
|
entity?: string;
|
|
335
335
|
}
|
|
336
|
+
interface RestoreInfo$2 {
|
|
337
|
+
deletedDate?: Date;
|
|
338
|
+
}
|
|
336
339
|
interface EntityUpdatedEvent$4 {
|
|
337
340
|
/**
|
|
338
341
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -453,7 +456,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
453
456
|
slug?: string;
|
|
454
457
|
/** ID of the entity associated with the event. */
|
|
455
458
|
entityId?: string;
|
|
456
|
-
/** Event timestamp. */
|
|
459
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
457
460
|
eventTime?: Date;
|
|
458
461
|
/**
|
|
459
462
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -687,7 +690,7 @@ declare const context$8_unassignBadge: typeof unassignBadge;
|
|
|
687
690
|
declare const context$8_updateBadge: typeof updateBadge;
|
|
688
691
|
declare const context$8_updateBadgesDisplayOrder: typeof updateBadgesDisplayOrder;
|
|
689
692
|
declare namespace context$8 {
|
|
690
|
-
export { type ActionEvent$4 as ActionEvent, type context$8_AssignBadgeRequest as AssignBadgeRequest, type context$8_AssignBadgeResponse as AssignBadgeResponse, type context$8_AssignBadgeResponseNonNullableFields as AssignBadgeResponseNonNullableFields, type context$8_AssignBadgesRequest as AssignBadgesRequest, type context$8_AssignBadgesResponse as AssignBadgesResponse, type context$8_Badge as Badge, type context$8_BadgeAssigned as BadgeAssigned, type context$8_BadgeAssignedEnvelope as BadgeAssignedEnvelope, type context$8_BadgeCreatedEnvelope as BadgeCreatedEnvelope, type context$8_BadgeDeletedEnvelope as BadgeDeletedEnvelope, type context$8_BadgeMemberCount as BadgeMemberCount, type context$8_BadgeNonNullableFields as BadgeNonNullableFields, type context$8_BadgeUnassigned as BadgeUnassigned, type context$8_BadgeUnassignedEnvelope as BadgeUnassignedEnvelope, type context$8_BadgeUpdatedEnvelope as BadgeUpdatedEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type context$8_CountBadgesRequest as CountBadgesRequest, type context$8_CountBadgesResponse as CountBadgesResponse, type context$8_CreateBadgeRequest as CreateBadgeRequest, type context$8_CreateBadgeResponse as CreateBadgeResponse, type context$8_CreateBadgeResponseNonNullableFields as CreateBadgeResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$3 as Cursors, type context$8_DeleteBadgeRequest as DeleteBadgeRequest, type context$8_DeleteBadgeResponse as DeleteBadgeResponse, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$8_GetBadgeRequest as GetBadgeRequest, type context$8_GetBadgeResponse as GetBadgeResponse, type context$8_GetBadgeResponseNonNullableFields as GetBadgeResponseNonNullableFields, type context$8_GetMemberCountsPerBadgeRequest as GetMemberCountsPerBadgeRequest, type context$8_GetMemberCountsPerBadgeResponse as GetMemberCountsPerBadgeResponse, type context$8_GetMemberCountsPerBadgeResponseNonNullableFields as GetMemberCountsPerBadgeResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$8_ListBadgesOptions as ListBadgesOptions, type context$8_ListBadgesRequest as ListBadgesRequest, type context$8_ListBadgesResponse as ListBadgesResponse, type context$8_ListBadgesResponseNonNullableFields as ListBadgesResponseNonNullableFields, type context$8_ListMembersBadgeIdsRequest as ListMembersBadgeIdsRequest, type context$8_ListMembersBadgeIdsResponse as ListMembersBadgeIdsResponse, type context$8_ListMembersBadgeIdsResponseNonNullableFields as ListMembersBadgeIdsResponseNonNullableFields, type context$8_ListMembersByBadgeOptions as ListMembersByBadgeOptions, type ListMembersRequest$2 as ListMembersRequest, type ListMembersResponse$2 as ListMembersResponse, type ListMembersResponseNonNullableFields$1 as ListMembersResponseNonNullableFields, type context$8_ListMembersWithBadgesRequest as ListMembersWithBadgesRequest, type context$8_ListMembersWithBadgesResponse as ListMembersWithBadgesResponse, type context$8_MemberBadgeIds as MemberBadgeIds, type MessageEnvelope$3 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type context$8_QueryBadgesRequest as QueryBadgesRequest, type context$8_QueryBadgesResponse as QueryBadgesResponse, SortOrder$3 as SortOrder, type Sorting$4 as Sorting, type context$8_UnassignBadgeRequest as UnassignBadgeRequest, type context$8_UnassignBadgeResponse as UnassignBadgeResponse, type context$8_UpdateBadge as UpdateBadge, type context$8_UpdateBadgeRequest as UpdateBadgeRequest, type context$8_UpdateBadgeResponse as UpdateBadgeResponse, type context$8_UpdateBadgeResponseNonNullableFields as UpdateBadgeResponseNonNullableFields, type context$8_UpdateBadgesDisplayOrderRequest as UpdateBadgesDisplayOrderRequest, type context$8_UpdateBadgesDisplayOrderResponse as UpdateBadgesDisplayOrderResponse, type context$8_UpdateBadgesDisplayOrderResponseNonNullableFields as UpdateBadgesDisplayOrderResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, context$8_assignBadge as assignBadge, context$8_createBadge as createBadge, context$8_deleteBadge as deleteBadge, context$8_getBadge as getBadge, context$8_getMemberCountsPerBadge as getMemberCountsPerBadge, context$8_listBadges as listBadges, context$8_listBadgesPerMember as listBadgesPerMember, context$8_listMembersByBadge as listMembersByBadge, context$8_onBadgeAssigned as onBadgeAssigned, context$8_onBadgeCreated as onBadgeCreated, context$8_onBadgeDeleted as onBadgeDeleted, context$8_onBadgeUnassigned as onBadgeUnassigned, context$8_onBadgeUpdated as onBadgeUpdated, context$8_unassignBadge as unassignBadge, context$8_updateBadge as updateBadge, context$8_updateBadgesDisplayOrder as updateBadgesDisplayOrder };
|
|
693
|
+
export { type ActionEvent$4 as ActionEvent, type context$8_AssignBadgeRequest as AssignBadgeRequest, type context$8_AssignBadgeResponse as AssignBadgeResponse, type context$8_AssignBadgeResponseNonNullableFields as AssignBadgeResponseNonNullableFields, type context$8_AssignBadgesRequest as AssignBadgesRequest, type context$8_AssignBadgesResponse as AssignBadgesResponse, type context$8_Badge as Badge, type context$8_BadgeAssigned as BadgeAssigned, type context$8_BadgeAssignedEnvelope as BadgeAssignedEnvelope, type context$8_BadgeCreatedEnvelope as BadgeCreatedEnvelope, type context$8_BadgeDeletedEnvelope as BadgeDeletedEnvelope, type context$8_BadgeMemberCount as BadgeMemberCount, type context$8_BadgeNonNullableFields as BadgeNonNullableFields, type context$8_BadgeUnassigned as BadgeUnassigned, type context$8_BadgeUnassignedEnvelope as BadgeUnassignedEnvelope, type context$8_BadgeUpdatedEnvelope as BadgeUpdatedEnvelope, type BaseEventMetadata$1 as BaseEventMetadata, type context$8_CountBadgesRequest as CountBadgesRequest, type context$8_CountBadgesResponse as CountBadgesResponse, type context$8_CreateBadgeRequest as CreateBadgeRequest, type context$8_CreateBadgeResponse as CreateBadgeResponse, type context$8_CreateBadgeResponseNonNullableFields as CreateBadgeResponseNonNullableFields, type CursorPaging$3 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$3 as Cursors, type context$8_DeleteBadgeRequest as DeleteBadgeRequest, type context$8_DeleteBadgeResponse as DeleteBadgeResponse, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$8_GetBadgeRequest as GetBadgeRequest, type context$8_GetBadgeResponse as GetBadgeResponse, type context$8_GetBadgeResponseNonNullableFields as GetBadgeResponseNonNullableFields, type context$8_GetMemberCountsPerBadgeRequest as GetMemberCountsPerBadgeRequest, type context$8_GetMemberCountsPerBadgeResponse as GetMemberCountsPerBadgeResponse, type context$8_GetMemberCountsPerBadgeResponseNonNullableFields as GetMemberCountsPerBadgeResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$8_ListBadgesOptions as ListBadgesOptions, type context$8_ListBadgesRequest as ListBadgesRequest, type context$8_ListBadgesResponse as ListBadgesResponse, type context$8_ListBadgesResponseNonNullableFields as ListBadgesResponseNonNullableFields, type context$8_ListMembersBadgeIdsRequest as ListMembersBadgeIdsRequest, type context$8_ListMembersBadgeIdsResponse as ListMembersBadgeIdsResponse, type context$8_ListMembersBadgeIdsResponseNonNullableFields as ListMembersBadgeIdsResponseNonNullableFields, type context$8_ListMembersByBadgeOptions as ListMembersByBadgeOptions, type ListMembersRequest$2 as ListMembersRequest, type ListMembersResponse$2 as ListMembersResponse, type ListMembersResponseNonNullableFields$1 as ListMembersResponseNonNullableFields, type context$8_ListMembersWithBadgesRequest as ListMembersWithBadgesRequest, type context$8_ListMembersWithBadgesResponse as ListMembersWithBadgesResponse, type context$8_MemberBadgeIds as MemberBadgeIds, type MessageEnvelope$3 as MessageEnvelope, type Paging$4 as Paging, type PagingMetadata$3 as PagingMetadata, type context$8_QueryBadgesRequest as QueryBadgesRequest, type context$8_QueryBadgesResponse as QueryBadgesResponse, type RestoreInfo$2 as RestoreInfo, SortOrder$3 as SortOrder, type Sorting$4 as Sorting, type context$8_UnassignBadgeRequest as UnassignBadgeRequest, type context$8_UnassignBadgeResponse as UnassignBadgeResponse, type context$8_UpdateBadge as UpdateBadge, type context$8_UpdateBadgeRequest as UpdateBadgeRequest, type context$8_UpdateBadgeResponse as UpdateBadgeResponse, type context$8_UpdateBadgeResponseNonNullableFields as UpdateBadgeResponseNonNullableFields, type context$8_UpdateBadgesDisplayOrderRequest as UpdateBadgesDisplayOrderRequest, type context$8_UpdateBadgesDisplayOrderResponse as UpdateBadgesDisplayOrderResponse, type context$8_UpdateBadgesDisplayOrderResponseNonNullableFields as UpdateBadgesDisplayOrderResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, context$8_assignBadge as assignBadge, context$8_createBadge as createBadge, context$8_deleteBadge as deleteBadge, context$8_getBadge as getBadge, context$8_getMemberCountsPerBadge as getMemberCountsPerBadge, context$8_listBadges as listBadges, context$8_listBadgesPerMember as listBadgesPerMember, context$8_listMembersByBadge as listMembersByBadge, context$8_onBadgeAssigned as onBadgeAssigned, context$8_onBadgeCreated as onBadgeCreated, context$8_onBadgeDeleted as onBadgeDeleted, context$8_onBadgeUnassigned as onBadgeUnassigned, context$8_onBadgeUpdated as onBadgeUpdated, context$8_unassignBadge as unassignBadge, context$8_updateBadge as updateBadge, context$8_updateBadgesDisplayOrder as updateBadgesDisplayOrder };
|
|
691
694
|
}
|
|
692
695
|
|
|
693
696
|
interface Member$1 {
|
|
@@ -863,6 +866,229 @@ interface Group {
|
|
|
863
866
|
name?: string;
|
|
864
867
|
type?: string;
|
|
865
868
|
}
|
|
869
|
+
/** Registration options. */
|
|
870
|
+
interface RegisterRequest {
|
|
871
|
+
/** Login email address for the new site member. */
|
|
872
|
+
email?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Password the new site member will use to log in.
|
|
875
|
+
*
|
|
876
|
+
* Must be 4 to 15 ASCII-printable characters.
|
|
877
|
+
*/
|
|
878
|
+
password?: string;
|
|
879
|
+
/** Contact information for the registered member. */
|
|
880
|
+
contactInfo?: MemberContactInfo;
|
|
881
|
+
/**
|
|
882
|
+
* @internal
|
|
883
|
+
* @internal */
|
|
884
|
+
dialogData?: DialogData;
|
|
885
|
+
/**
|
|
886
|
+
* Sets the privacy status of a new member upon registration.
|
|
887
|
+
*
|
|
888
|
+
* - `PUBLIC`: Member is visible to everyone.
|
|
889
|
+
* - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
|
|
890
|
+
* - `UNKNOWN`: Insufficient permissions to get the status.
|
|
891
|
+
*/
|
|
892
|
+
profilePrivacyStatus?: SiteMemberPrivacyStatus;
|
|
893
|
+
/**
|
|
894
|
+
* @internal
|
|
895
|
+
* @internal */
|
|
896
|
+
isOfflineRegistration?: boolean;
|
|
897
|
+
/**
|
|
898
|
+
* @internal
|
|
899
|
+
* @internal */
|
|
900
|
+
recaptchaToken?: string | null;
|
|
901
|
+
/**
|
|
902
|
+
* @internal
|
|
903
|
+
* @internal */
|
|
904
|
+
invisibleRecaptchaToken?: string | null;
|
|
905
|
+
/**
|
|
906
|
+
* @internal
|
|
907
|
+
* @internal */
|
|
908
|
+
emailVerification?: EmailVerification;
|
|
909
|
+
/**
|
|
910
|
+
* @internal
|
|
911
|
+
* @internal */
|
|
912
|
+
isMobile?: boolean | null;
|
|
913
|
+
}
|
|
914
|
+
interface MemberContactInfo {
|
|
915
|
+
/** First name. */
|
|
916
|
+
firstName?: string | null;
|
|
917
|
+
/** Last name. */
|
|
918
|
+
lastName?: string | null;
|
|
919
|
+
/** Contact's profile picture. */
|
|
920
|
+
picture?: string | null;
|
|
921
|
+
/** Contact's email addresses. */
|
|
922
|
+
emails?: string[];
|
|
923
|
+
/** Contact's phone numbers. */
|
|
924
|
+
phones?: string[];
|
|
925
|
+
/** List of contact's labels. */
|
|
926
|
+
labels?: string[];
|
|
927
|
+
/**
|
|
928
|
+
* @internal
|
|
929
|
+
* @internal */
|
|
930
|
+
locale?: string | null;
|
|
931
|
+
/**
|
|
932
|
+
* Any number of custom fields.
|
|
933
|
+
* [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
934
|
+
* are used to store additional information about your site's contacts.
|
|
935
|
+
* When setting a custom field, use key:value pairs,
|
|
936
|
+
* where the key matches the names defined in your site's
|
|
937
|
+
* [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
|
|
938
|
+
* You can only set values for custom fields that already exist in the Contacts application.
|
|
939
|
+
*/
|
|
940
|
+
customFields?: CustomField$2[];
|
|
941
|
+
}
|
|
942
|
+
interface DialogData {
|
|
943
|
+
visitorId?: string | null;
|
|
944
|
+
appId?: string | null;
|
|
945
|
+
initiator?: string | null;
|
|
946
|
+
}
|
|
947
|
+
interface EmailVerification {
|
|
948
|
+
/** ID of the verification process. */
|
|
949
|
+
verificationId?: string;
|
|
950
|
+
/**
|
|
951
|
+
* 6-digit code for verification. Code can be between 100000 and 999999.
|
|
952
|
+
*
|
|
953
|
+
*/
|
|
954
|
+
otp?: string;
|
|
955
|
+
}
|
|
956
|
+
interface RegisterResponse {
|
|
957
|
+
/** Newly registered member. */
|
|
958
|
+
member?: Member$1;
|
|
959
|
+
/**
|
|
960
|
+
* in case the site is open for registration, all members are automatically
|
|
961
|
+
* approved. they will get a temporary token for obtaining a valid session
|
|
962
|
+
*/
|
|
963
|
+
session?: Session;
|
|
964
|
+
/**
|
|
965
|
+
* in case the site requires members approval, the registered member
|
|
966
|
+
* will be an applicant until he's approved. the token can be used as a member
|
|
967
|
+
* identifier for approval using the `MembersService.Approve` API
|
|
968
|
+
*/
|
|
969
|
+
approvalToken?: string | null;
|
|
970
|
+
}
|
|
971
|
+
interface Session {
|
|
972
|
+
/** Session token when the current member is logged into the site. */
|
|
973
|
+
token?: string | null;
|
|
974
|
+
}
|
|
975
|
+
interface EmailVerificationRequired {
|
|
976
|
+
/** ID of the verification process. */
|
|
977
|
+
verificationId?: string;
|
|
978
|
+
}
|
|
979
|
+
interface EmailVerificationFailed {
|
|
980
|
+
/** ID of the failed verification process. */
|
|
981
|
+
verificationId?: string;
|
|
982
|
+
/** Reason for verification failure. */
|
|
983
|
+
verificationFailureReason?: VerificationFailureReason;
|
|
984
|
+
}
|
|
985
|
+
declare enum VerificationFailureReason {
|
|
986
|
+
/** Default value - means no failure */
|
|
987
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
988
|
+
/** Bad verification code */
|
|
989
|
+
BAD_CODE = "BAD_CODE",
|
|
990
|
+
/** Verification code was not found */
|
|
991
|
+
NOT_FOUND = "NOT_FOUND",
|
|
992
|
+
/** Error while sending the code to the user */
|
|
993
|
+
SEND_CODE_ERROR = "SEND_CODE_ERROR"
|
|
994
|
+
}
|
|
995
|
+
interface LoginRequest {
|
|
996
|
+
/** Login email address. */
|
|
997
|
+
email?: string;
|
|
998
|
+
/** Member password. */
|
|
999
|
+
password?: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* @internal
|
|
1002
|
+
* @internal */
|
|
1003
|
+
recaptchaToken?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* @internal
|
|
1006
|
+
* @internal */
|
|
1007
|
+
invisibleRecaptchaToken?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* @internal
|
|
1010
|
+
* @internal */
|
|
1011
|
+
emailVerification?: EmailVerification;
|
|
1012
|
+
/**
|
|
1013
|
+
* @internal
|
|
1014
|
+
* @internal */
|
|
1015
|
+
isMobile?: boolean | null;
|
|
1016
|
+
}
|
|
1017
|
+
/** Session token for logging the member in. */
|
|
1018
|
+
interface LoginResponse {
|
|
1019
|
+
/** Session token. */
|
|
1020
|
+
session?: Session;
|
|
1021
|
+
/** the member's details */
|
|
1022
|
+
member?: Member$1;
|
|
1023
|
+
}
|
|
1024
|
+
interface GetResetPasswordLinkRequest {
|
|
1025
|
+
/** Contact ID of the member whose password will be reset. */
|
|
1026
|
+
contactId?: string;
|
|
1027
|
+
}
|
|
1028
|
+
interface GetResetPasswordLinkResponse {
|
|
1029
|
+
/**
|
|
1030
|
+
* Reset password link.
|
|
1031
|
+
* Valid for one use, up to two weeks from when it is created.
|
|
1032
|
+
*/
|
|
1033
|
+
resetPasswordLink?: string;
|
|
1034
|
+
}
|
|
1035
|
+
interface SendSetPasswordEmailRequest {
|
|
1036
|
+
/** Login email of the member whose password will be set. */
|
|
1037
|
+
email: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* @internal
|
|
1040
|
+
* @internal
|
|
1041
|
+
* @deprecated
|
|
1042
|
+
*/
|
|
1043
|
+
requestedByMember?: boolean;
|
|
1044
|
+
/**
|
|
1045
|
+
* Whether to hide the ignore this email message .
|
|
1046
|
+
*
|
|
1047
|
+
* If `true`, the email tells the member
|
|
1048
|
+
* they can safely ignore
|
|
1049
|
+
* if they did not request the password change.
|
|
1050
|
+
*
|
|
1051
|
+
* Default: `false`.
|
|
1052
|
+
*/
|
|
1053
|
+
hideIgnoreMessage?: boolean;
|
|
1054
|
+
}
|
|
1055
|
+
interface SendSetPasswordEmailResponse {
|
|
1056
|
+
/** Indicates if the request was successfully received. */
|
|
1057
|
+
accepted?: boolean;
|
|
1058
|
+
}
|
|
1059
|
+
interface ResetPasswordRequest {
|
|
1060
|
+
/** Contact ID of the member whose password will be reset. */
|
|
1061
|
+
contactId?: string;
|
|
1062
|
+
}
|
|
1063
|
+
interface ResetPasswordResponse {
|
|
1064
|
+
/** Indicates if the request was successfully received. */
|
|
1065
|
+
accepted?: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
interface SocialLoginRequest extends SocialLoginRequestLoginOneOf {
|
|
1068
|
+
appleLogin?: AppleLogin;
|
|
1069
|
+
googleLogin?: GoogleLogin;
|
|
1070
|
+
facebookLogin?: FacebookLogin;
|
|
1071
|
+
/** Must either pass explicit msid OR signed instance with visitor */
|
|
1072
|
+
metaSiteId?: string | null;
|
|
1073
|
+
}
|
|
1074
|
+
/** @oneof */
|
|
1075
|
+
interface SocialLoginRequestLoginOneOf {
|
|
1076
|
+
appleLogin?: AppleLogin;
|
|
1077
|
+
googleLogin?: GoogleLogin;
|
|
1078
|
+
facebookLogin?: FacebookLogin;
|
|
1079
|
+
}
|
|
1080
|
+
interface AppleLogin {
|
|
1081
|
+
/** JWT signed by apple, contains target (aud), email etc */
|
|
1082
|
+
token?: string;
|
|
1083
|
+
}
|
|
1084
|
+
interface GoogleLogin {
|
|
1085
|
+
/** JWT signed by Google, contains target (aud), email etc */
|
|
1086
|
+
token?: string;
|
|
1087
|
+
}
|
|
1088
|
+
interface FacebookLogin {
|
|
1089
|
+
/** AccessToken created by Facebook, used to later fetch details over API */
|
|
1090
|
+
token?: string;
|
|
1091
|
+
}
|
|
866
1092
|
interface ListMembersRequest$1 {
|
|
867
1093
|
/** for paging - maximum number of records to retrieve */
|
|
868
1094
|
limit?: number;
|
|
@@ -1093,10 +1319,6 @@ interface ApproveMemberResponse$1 {
|
|
|
1093
1319
|
/** Approval session token. */
|
|
1094
1320
|
session?: Session;
|
|
1095
1321
|
}
|
|
1096
|
-
interface Session {
|
|
1097
|
-
/** Session token when the current member is logged into the site. */
|
|
1098
|
-
token?: string | null;
|
|
1099
|
-
}
|
|
1100
1322
|
interface BlockMemberRequest$2 extends BlockMemberRequestMemberIdentifierOneOf {
|
|
1101
1323
|
/** ID of the member to block. */
|
|
1102
1324
|
_id?: string;
|
|
@@ -1125,225 +1347,6 @@ interface MakeMemberOfflineRequest {
|
|
|
1125
1347
|
}
|
|
1126
1348
|
interface MakeMemberOfflineResponse {
|
|
1127
1349
|
}
|
|
1128
|
-
/** Registration options. */
|
|
1129
|
-
interface RegisterRequest {
|
|
1130
|
-
/** Login email address for the new site member. */
|
|
1131
|
-
email?: string;
|
|
1132
|
-
/**
|
|
1133
|
-
* Password the new site member will use to log in.
|
|
1134
|
-
*
|
|
1135
|
-
* Must be 4 to 15 ASCII-printable characters.
|
|
1136
|
-
*/
|
|
1137
|
-
password?: string;
|
|
1138
|
-
/** Contact information for the registered member. */
|
|
1139
|
-
contactInfo?: MemberContactInfo;
|
|
1140
|
-
/**
|
|
1141
|
-
* @internal
|
|
1142
|
-
* @internal */
|
|
1143
|
-
dialogData?: DialogData;
|
|
1144
|
-
/**
|
|
1145
|
-
* Sets the privacy status of a new member upon registration.
|
|
1146
|
-
*
|
|
1147
|
-
* - `PUBLIC`: Member is visible to everyone.
|
|
1148
|
-
* - `PRIVATE`: Member is hidden from site visitors and other site members. Member is returned only to site contributors and apps with the appropriate permissions.
|
|
1149
|
-
* - `UNKNOWN`: Insufficient permissions to get the status.
|
|
1150
|
-
*/
|
|
1151
|
-
profilePrivacyStatus?: SiteMemberPrivacyStatus;
|
|
1152
|
-
/**
|
|
1153
|
-
* @internal
|
|
1154
|
-
* @internal */
|
|
1155
|
-
isOfflineRegistration?: boolean;
|
|
1156
|
-
/**
|
|
1157
|
-
* @internal
|
|
1158
|
-
* @internal */
|
|
1159
|
-
recaptchaToken?: string | null;
|
|
1160
|
-
/**
|
|
1161
|
-
* @internal
|
|
1162
|
-
* @internal */
|
|
1163
|
-
invisibleRecaptchaToken?: string | null;
|
|
1164
|
-
/**
|
|
1165
|
-
* @internal
|
|
1166
|
-
* @internal */
|
|
1167
|
-
emailVerification?: EmailVerification;
|
|
1168
|
-
/**
|
|
1169
|
-
* @internal
|
|
1170
|
-
* @internal */
|
|
1171
|
-
isMobile?: boolean | null;
|
|
1172
|
-
}
|
|
1173
|
-
interface MemberContactInfo {
|
|
1174
|
-
/** First name. */
|
|
1175
|
-
firstName?: string | null;
|
|
1176
|
-
/** Last name. */
|
|
1177
|
-
lastName?: string | null;
|
|
1178
|
-
/** Contact's profile picture. */
|
|
1179
|
-
picture?: string | null;
|
|
1180
|
-
/** Contact's email addresses. */
|
|
1181
|
-
emails?: string[];
|
|
1182
|
-
/** Contact's phone numbers. */
|
|
1183
|
-
phones?: string[];
|
|
1184
|
-
/** List of contact's labels. */
|
|
1185
|
-
labels?: string[];
|
|
1186
|
-
/**
|
|
1187
|
-
* @internal
|
|
1188
|
-
* @internal */
|
|
1189
|
-
locale?: string | null;
|
|
1190
|
-
/**
|
|
1191
|
-
* Any number of custom fields.
|
|
1192
|
-
* [Custom fields](https://support.wix.com/en/article/adding-custom-fields-to-contacts)
|
|
1193
|
-
* are used to store additional information about your site's contacts.
|
|
1194
|
-
* When setting a custom field, use key:value pairs,
|
|
1195
|
-
* where the key matches the names defined in your site's
|
|
1196
|
-
* [Contact List](https://support.wix.com/en/article/accessing-your-contact-list).
|
|
1197
|
-
* You can only set values for custom fields that already exist in the Contacts application.
|
|
1198
|
-
*/
|
|
1199
|
-
customFields?: CustomField$2[];
|
|
1200
|
-
}
|
|
1201
|
-
interface DialogData {
|
|
1202
|
-
visitorId?: string | null;
|
|
1203
|
-
appId?: string | null;
|
|
1204
|
-
initiator?: string | null;
|
|
1205
|
-
}
|
|
1206
|
-
interface EmailVerification {
|
|
1207
|
-
/** ID of the verification process. */
|
|
1208
|
-
verificationId?: string;
|
|
1209
|
-
/**
|
|
1210
|
-
* 6-digit code for verification. Code can be between 100000 and 999999.
|
|
1211
|
-
*
|
|
1212
|
-
*/
|
|
1213
|
-
otp?: string;
|
|
1214
|
-
}
|
|
1215
|
-
interface RegisterResponse {
|
|
1216
|
-
/** Newly registered member. */
|
|
1217
|
-
member?: Member$1;
|
|
1218
|
-
/**
|
|
1219
|
-
* in case the site is open for registration, all members are automatically
|
|
1220
|
-
* approved. they will get a temporary token for obtaining a valid session
|
|
1221
|
-
*/
|
|
1222
|
-
session?: Session;
|
|
1223
|
-
/**
|
|
1224
|
-
* in case the site requires members approval, the registered member
|
|
1225
|
-
* will be an applicant until he's approved. the token can be used as a member
|
|
1226
|
-
* identifier for approval using the `MembersService.Approve` API
|
|
1227
|
-
*/
|
|
1228
|
-
approvalToken?: string | null;
|
|
1229
|
-
}
|
|
1230
|
-
interface EmailVerificationRequired {
|
|
1231
|
-
/** ID of the verification process. */
|
|
1232
|
-
verificationId?: string;
|
|
1233
|
-
}
|
|
1234
|
-
interface EmailVerificationFailed {
|
|
1235
|
-
/** ID of the failed verification process. */
|
|
1236
|
-
verificationId?: string;
|
|
1237
|
-
/** Reason for verification failure. */
|
|
1238
|
-
verificationFailureReason?: VerificationFailureReason;
|
|
1239
|
-
}
|
|
1240
|
-
declare enum VerificationFailureReason {
|
|
1241
|
-
/** Default value - means no failure */
|
|
1242
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1243
|
-
/** Bad verification code */
|
|
1244
|
-
BAD_CODE = "BAD_CODE",
|
|
1245
|
-
/** Verification code was not found */
|
|
1246
|
-
NOT_FOUND = "NOT_FOUND",
|
|
1247
|
-
/** Error while sending the code to the user */
|
|
1248
|
-
SEND_CODE_ERROR = "SEND_CODE_ERROR"
|
|
1249
|
-
}
|
|
1250
|
-
interface LoginRequest {
|
|
1251
|
-
/** Login email address. */
|
|
1252
|
-
email?: string;
|
|
1253
|
-
/** Member password. */
|
|
1254
|
-
password?: string;
|
|
1255
|
-
/**
|
|
1256
|
-
* @internal
|
|
1257
|
-
* @internal */
|
|
1258
|
-
recaptchaToken?: string;
|
|
1259
|
-
/**
|
|
1260
|
-
* @internal
|
|
1261
|
-
* @internal */
|
|
1262
|
-
invisibleRecaptchaToken?: string;
|
|
1263
|
-
/**
|
|
1264
|
-
* @internal
|
|
1265
|
-
* @internal */
|
|
1266
|
-
emailVerification?: EmailVerification;
|
|
1267
|
-
/**
|
|
1268
|
-
* @internal
|
|
1269
|
-
* @internal */
|
|
1270
|
-
isMobile?: boolean | null;
|
|
1271
|
-
}
|
|
1272
|
-
/** Session token for logging the member in. */
|
|
1273
|
-
interface LoginResponse {
|
|
1274
|
-
/** Session token. */
|
|
1275
|
-
session?: Session;
|
|
1276
|
-
/** the member's details */
|
|
1277
|
-
member?: Member$1;
|
|
1278
|
-
}
|
|
1279
|
-
interface GetResetPasswordLinkRequest {
|
|
1280
|
-
/** Contact ID of the member whose password will be reset. */
|
|
1281
|
-
contactId?: string;
|
|
1282
|
-
}
|
|
1283
|
-
interface GetResetPasswordLinkResponse {
|
|
1284
|
-
/**
|
|
1285
|
-
* Reset password link.
|
|
1286
|
-
* Valid for one use, up to two weeks from when it is created.
|
|
1287
|
-
*/
|
|
1288
|
-
resetPasswordLink?: string;
|
|
1289
|
-
}
|
|
1290
|
-
interface SendSetPasswordEmailRequest {
|
|
1291
|
-
/** Login email of the member whose password will be set. */
|
|
1292
|
-
email: string;
|
|
1293
|
-
/**
|
|
1294
|
-
* @internal
|
|
1295
|
-
* @internal
|
|
1296
|
-
* @deprecated
|
|
1297
|
-
*/
|
|
1298
|
-
requestedByMember?: boolean;
|
|
1299
|
-
/**
|
|
1300
|
-
* Whether to hide the ignore this email message .
|
|
1301
|
-
*
|
|
1302
|
-
* If `true`, the email tells the member
|
|
1303
|
-
* they can safely ignore
|
|
1304
|
-
* if they did not request the password change.
|
|
1305
|
-
*
|
|
1306
|
-
* Default: `false`.
|
|
1307
|
-
*/
|
|
1308
|
-
hideIgnoreMessage?: boolean;
|
|
1309
|
-
}
|
|
1310
|
-
interface SendSetPasswordEmailResponse {
|
|
1311
|
-
/** Indicates if the request was successfully received. */
|
|
1312
|
-
accepted?: boolean;
|
|
1313
|
-
}
|
|
1314
|
-
interface ResetPasswordRequest {
|
|
1315
|
-
/** Contact ID of the member whose password will be reset. */
|
|
1316
|
-
contactId?: string;
|
|
1317
|
-
}
|
|
1318
|
-
interface ResetPasswordResponse {
|
|
1319
|
-
/** Indicates if the request was successfully received. */
|
|
1320
|
-
accepted?: boolean;
|
|
1321
|
-
}
|
|
1322
|
-
interface SocialLoginRequest extends SocialLoginRequestLoginOneOf {
|
|
1323
|
-
appleLogin?: AppleLogin;
|
|
1324
|
-
googleLogin?: GoogleLogin;
|
|
1325
|
-
facebookLogin?: FacebookLogin;
|
|
1326
|
-
/** Must either pass explicit msid OR signed instance with visitor */
|
|
1327
|
-
metaSiteId?: string | null;
|
|
1328
|
-
}
|
|
1329
|
-
/** @oneof */
|
|
1330
|
-
interface SocialLoginRequestLoginOneOf {
|
|
1331
|
-
appleLogin?: AppleLogin;
|
|
1332
|
-
googleLogin?: GoogleLogin;
|
|
1333
|
-
facebookLogin?: FacebookLogin;
|
|
1334
|
-
}
|
|
1335
|
-
interface AppleLogin {
|
|
1336
|
-
/** JWT signed by apple, contains target (aud), email etc */
|
|
1337
|
-
token?: string;
|
|
1338
|
-
}
|
|
1339
|
-
interface GoogleLogin {
|
|
1340
|
-
/** JWT signed by Google, contains target (aud), email etc */
|
|
1341
|
-
token?: string;
|
|
1342
|
-
}
|
|
1343
|
-
interface FacebookLogin {
|
|
1344
|
-
/** AccessToken created by Facebook, used to later fetch details over API */
|
|
1345
|
-
token?: string;
|
|
1346
|
-
}
|
|
1347
1350
|
interface CustomFieldNonNullableFields$1 {
|
|
1348
1351
|
numValue: number;
|
|
1349
1352
|
name: string;
|
|
@@ -1366,9 +1369,6 @@ interface MemberNonNullableFields$1 {
|
|
|
1366
1369
|
picture: string;
|
|
1367
1370
|
groups: GroupNonNullableFields[];
|
|
1368
1371
|
}
|
|
1369
|
-
interface ChangeLoginEmailResponseNonNullableFields {
|
|
1370
|
-
member?: MemberNonNullableFields$1;
|
|
1371
|
-
}
|
|
1372
1372
|
interface RegisterResponseNonNullableFields {
|
|
1373
1373
|
member?: MemberNonNullableFields$1;
|
|
1374
1374
|
}
|
|
@@ -1378,29 +1378,8 @@ interface LoginResponseNonNullableFields {
|
|
|
1378
1378
|
interface SendSetPasswordEmailResponseNonNullableFields {
|
|
1379
1379
|
accepted: boolean;
|
|
1380
1380
|
}
|
|
1381
|
-
interface
|
|
1382
|
-
|
|
1383
|
-
* @internal
|
|
1384
|
-
* @internal */
|
|
1385
|
-
revokeCurrentSessions?: boolean | null;
|
|
1386
|
-
}
|
|
1387
|
-
interface ApproveOptions extends ApproveMemberRequestMemberIdentifierOneOf {
|
|
1388
|
-
/** ID of the member to approve. */
|
|
1389
|
-
_id?: string;
|
|
1390
|
-
/** Login email address of the member to approve. */
|
|
1391
|
-
email?: string;
|
|
1392
|
-
/** Approval token returned by the [`register()`](#register) function. */
|
|
1393
|
-
token?: string;
|
|
1394
|
-
}
|
|
1395
|
-
interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
|
|
1396
|
-
/** ID of the member to block. */
|
|
1397
|
-
_id?: string;
|
|
1398
|
-
/** Login email address of the member to block. */
|
|
1399
|
-
email?: string;
|
|
1400
|
-
/**
|
|
1401
|
-
* @internal
|
|
1402
|
-
* @internal */
|
|
1403
|
-
source?: Source;
|
|
1381
|
+
interface ChangeLoginEmailResponseNonNullableFields {
|
|
1382
|
+
member?: MemberNonNullableFields$1;
|
|
1404
1383
|
}
|
|
1405
1384
|
interface RegisterOptions {
|
|
1406
1385
|
/** Contact information for the registered member. */
|
|
@@ -1456,15 +1435,39 @@ interface SendSetPasswordEmailOptions {
|
|
|
1456
1435
|
*/
|
|
1457
1436
|
hideIgnoreMessage?: boolean;
|
|
1458
1437
|
}
|
|
1438
|
+
interface ChangeLoginEmailOptions {
|
|
1439
|
+
/**
|
|
1440
|
+
* @internal
|
|
1441
|
+
* @internal */
|
|
1442
|
+
revokeCurrentSessions?: boolean | null;
|
|
1443
|
+
}
|
|
1444
|
+
interface ApproveOptions extends ApproveMemberRequestMemberIdentifierOneOf {
|
|
1445
|
+
/** ID of the member to approve. */
|
|
1446
|
+
_id?: string;
|
|
1447
|
+
/** Login email address of the member to approve. */
|
|
1448
|
+
email?: string;
|
|
1449
|
+
/** Approval token returned by the [`register()`](#register) function. */
|
|
1450
|
+
token?: string;
|
|
1451
|
+
}
|
|
1452
|
+
interface BlockOptions extends BlockMemberRequestMemberIdentifierOneOf {
|
|
1453
|
+
/** ID of the member to block. */
|
|
1454
|
+
_id?: string;
|
|
1455
|
+
/** Login email address of the member to block. */
|
|
1456
|
+
email?: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* @internal
|
|
1459
|
+
* @internal */
|
|
1460
|
+
source?: Source;
|
|
1461
|
+
}
|
|
1459
1462
|
|
|
1460
1463
|
declare function createRESTModule$7<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1461
1464
|
|
|
1462
|
-
declare const changeLoginEmail: ReturnType<typeof createRESTModule$7<typeof publicChangeLoginEmail>>;
|
|
1463
|
-
declare const approve: ReturnType<typeof createRESTModule$7<typeof publicApprove>>;
|
|
1464
|
-
declare const block: ReturnType<typeof createRESTModule$7<typeof publicBlock>>;
|
|
1465
1465
|
declare const register: ReturnType<typeof createRESTModule$7<typeof publicRegister>>;
|
|
1466
1466
|
declare const login: ReturnType<typeof createRESTModule$7<typeof publicLogin>>;
|
|
1467
1467
|
declare const sendSetPasswordEmail: ReturnType<typeof createRESTModule$7<typeof publicSendSetPasswordEmail>>;
|
|
1468
|
+
declare const changeLoginEmail: ReturnType<typeof createRESTModule$7<typeof publicChangeLoginEmail>>;
|
|
1469
|
+
declare const approve: ReturnType<typeof createRESTModule$7<typeof publicApprove>>;
|
|
1470
|
+
declare const block: ReturnType<typeof createRESTModule$7<typeof publicBlock>>;
|
|
1468
1471
|
|
|
1469
1472
|
type context$7_AppleLogin = AppleLogin;
|
|
1470
1473
|
type context$7_ApproveMemberRequestMemberIdentifierOneOf = ApproveMemberRequestMemberIdentifierOneOf;
|