@wix/auto_sdk_members_members 1.0.138 → 1.0.140
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/index.d.ts +2 -8
- package/build/cjs/index.js +9 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +42 -10
- package/build/cjs/index.typings.js +9 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +41 -1
- package/build/cjs/meta.js +9 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -8
- package/build/es/index.mjs +8 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +42 -10
- package/build/es/index.typings.mjs +8 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +41 -1
- package/build/es/meta.mjs +8 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -8
- package/build/internal/cjs/index.typings.d.ts +42 -10
- package/build/internal/cjs/meta.d.ts +41 -1
- package/build/internal/es/index.d.mts +2 -8
- package/build/internal/es/index.typings.d.mts +42 -10
- package/build/internal/es/meta.d.mts +41 -1
- package/package.json +2 -2
|
@@ -1620,6 +1620,46 @@ interface MemberIdChanged {
|
|
|
1620
1620
|
/** @format GUID */
|
|
1621
1621
|
toId?: string;
|
|
1622
1622
|
}
|
|
1623
|
+
interface ImportMembersRequest {
|
|
1624
|
+
/**
|
|
1625
|
+
* Members to import. A member is created if it doesn't exist, or updated if it does.
|
|
1626
|
+
* @minSize 1
|
|
1627
|
+
* @maxSize 100
|
|
1628
|
+
*/
|
|
1629
|
+
members?: MaskedMember[];
|
|
1630
|
+
/**
|
|
1631
|
+
* Whether to return the full imported member entities in the response.
|
|
1632
|
+
*
|
|
1633
|
+
* Default: `false`
|
|
1634
|
+
*/
|
|
1635
|
+
returnEntity?: boolean;
|
|
1636
|
+
}
|
|
1637
|
+
interface MaskedMember {
|
|
1638
|
+
/** Member info to import. */
|
|
1639
|
+
member?: Member;
|
|
1640
|
+
/** Explicit list of fields to update. Only applies when the member already exists. */
|
|
1641
|
+
fieldMask?: string[];
|
|
1642
|
+
}
|
|
1643
|
+
interface ImportMembersResponse {
|
|
1644
|
+
/** Results of the import, one per requested member, in the same order as the request. */
|
|
1645
|
+
results?: ImportMemberResult[];
|
|
1646
|
+
}
|
|
1647
|
+
declare enum BulkActionType {
|
|
1648
|
+
UNKNOWN_ACTION_TYPE = "UNKNOWN_ACTION_TYPE",
|
|
1649
|
+
INSERT = "INSERT",
|
|
1650
|
+
UPDATE = "UPDATE",
|
|
1651
|
+
DELETE = "DELETE"
|
|
1652
|
+
}
|
|
1653
|
+
/** @enumType */
|
|
1654
|
+
type BulkActionTypeWithLiterals = BulkActionType | 'UNKNOWN_ACTION_TYPE' | 'INSERT' | 'UPDATE' | 'DELETE';
|
|
1655
|
+
interface ImportMemberResult {
|
|
1656
|
+
/** Whether the member was created or updated. */
|
|
1657
|
+
action?: BulkActionTypeWithLiterals;
|
|
1658
|
+
/** Metadata for the imported member, including its ID, index in the request, and whether the import succeeded. */
|
|
1659
|
+
itemMetadata?: ItemMetadata;
|
|
1660
|
+
/** Imported member. Returned only when `returnEntity` is `true` and the import succeeded. */
|
|
1661
|
+
item?: Member;
|
|
1662
|
+
}
|
|
1623
1663
|
interface MessageEnvelope {
|
|
1624
1664
|
/**
|
|
1625
1665
|
* App instance ID.
|
|
@@ -1828,13 +1868,7 @@ interface MemberCreatedEnvelope {
|
|
|
1828
1868
|
entity: Member;
|
|
1829
1869
|
metadata: EventMetadata;
|
|
1830
1870
|
}
|
|
1831
|
-
/**
|
|
1832
|
-
* Triggered when a member is created.
|
|
1833
|
-
*
|
|
1834
|
-
* The site owner can configure the site to automatically approve members or require manual approval.
|
|
1835
|
-
*
|
|
1836
|
-
* A member who has been approved either automatically or manually has a `status` of `"APPROVED"`. A created member waiting for approval has a `status` of `"PENDING"`. A `"PENDING"` member can't log in to the site.
|
|
1837
|
-
* @permissionScope Manage_Wix_Rentals_App_Forms_submissions
|
|
1871
|
+
/** @permissionScope Manage_Wix_Rentals_App_Forms_submissions
|
|
1838
1872
|
* @permissionScopeId SCOPE.RENTALS.MANAGE
|
|
1839
1873
|
* @permissionScope Manage Stores
|
|
1840
1874
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
@@ -1879,7 +1913,6 @@ interface MemberCreatedEnvelope {
|
|
|
1879
1913
|
* @permissionId MEMBERS.MEMBER_READ
|
|
1880
1914
|
* @webhook
|
|
1881
1915
|
* @eventType wix.members.v1.member_created
|
|
1882
|
-
* @serviceIdentifier com.wixpress.members.api.Members
|
|
1883
1916
|
* @slug created
|
|
1884
1917
|
*/
|
|
1885
1918
|
declare function onMemberCreated(handler: (event: MemberCreatedEnvelope) => void | Promise<void>): void;
|
|
@@ -1986,7 +2019,6 @@ interface MemberUpdatedEnvelope {
|
|
|
1986
2019
|
* @permissionId MEMBERS.MEMBER_READ
|
|
1987
2020
|
* @webhook
|
|
1988
2021
|
* @eventType wix.members.v1.member_updated
|
|
1989
|
-
* @serviceIdentifier com.wixpress.members.api.Members
|
|
1990
2022
|
* @slug updated
|
|
1991
2023
|
*/
|
|
1992
2024
|
declare function onMemberUpdated(handler: (event: MemberUpdatedEnvelope) => void | Promise<void>): void;
|
|
@@ -2667,4 +2699,4 @@ declare function deleteMemberEmails(_id: string): Promise<NonNullablePaths<Delet
|
|
|
2667
2699
|
*/
|
|
2668
2700
|
declare function deleteMemberAddresses(_id: string): Promise<NonNullablePaths<DeleteMemberAddressesResponse, `member.status` | `member.contact.phones` | `member.contact.emails` | `member.contact.addresses` | `member.contact.addresses.${number}.streetAddress.number` | `member.contact.addresses.${number}.streetAddress.name` | `member.profile.photo._id` | `member.profile.photo.url` | `member.profile.photo.height` | `member.profile.photo.width` | `member.privacyStatus` | `member.activityStatus`, 5>>;
|
|
2669
2701
|
|
|
2670
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActiveSubscriptionMemberBlockForbiddenPayload, type ActiveSubscriptionMemberDeleteForbiddenPayload, ActivityStatusStatus, type ActivityStatusStatusWithLiterals, type Address, type AddressLocation, type AddressStreetOneOf, type App, type ApplicationError, type ApproveMemberRequest, type ApproveMemberResponse, type Asset, type BaseEventMetadata, type BlockMemberApplicationErrors, type BlockMemberRequest, type BlockMemberResponse, type BulkActionMetadata, type BulkApproveMembersRequest, type BulkApproveMembersResponse, type BulkBlockMembersRequest, type BulkBlockMembersResponse, type BulkDeleteMembersByFilterOptions, type BulkDeleteMembersByFilterRequest, type BulkDeleteMembersByFilterResponse, type BulkDeleteMembersRequest, type BulkDeleteMembersResponse, type BulkMemberResult, type CommonQueryWithEntityContext, type Contact, type ContentDeletionRequested, type ContentReassignmentRequested, type CreateMemberOptions, type CreateMemberRequest, type CreateMemberResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomField, type CustomTag, type DeleteContext, type DeleteMemberAddressesRequest, type DeleteMemberAddressesResponse, type DeleteMemberEmailsRequest, type DeleteMemberEmailsResponse, type DeleteMemberPhonesRequest, type DeleteMemberPhonesResponse, type DeleteMemberRequest, type DeleteMemberResponse, type DeleteMemberValidationErrors, type DeleteMyMemberOptions, type DeleteMyMemberRequest, type DeleteMyMemberResponse, type DeleteMyMemberValidationErrors, DeleteStatus, type DeleteStatusWithLiterals, type DisconnectMemberRequest, type DisconnectMemberResponse, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type File, type GetCurrentMemberApplicationErrors, type GetCurrentMemberOptions, type GetMemberApplicationErrors, type GetMemberOptions, type GetMemberRequest, type GetMemberResponse, type GetMyMemberRequest, type GetMyMemberResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type InvalidCustomFieldUrlPayload, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type JoinCommunityApplicationErrors, type JoinCommunityRequest, type JoinCommunityResponse, type LeaveCommunityRequest, type LeaveCommunityResponse, type ListMembersOptions, type ListMembersRequest, type ListMembersResponse, type Member, type MemberApproved, type MemberBlocked, type MemberCreatedEnvelope, type MemberDeletedEnvelope, type MemberIdChanged, type MemberJoinedCommunity, type MemberLeftCommunity, type MemberMuted, type MemberOwnershipTransferred, type MemberQuery, type MemberQuerySpec, type MemberSelfBlockForbiddenPayload, type MemberToMemberBlockedPayload, type MemberUnmuted, type MemberUpdatedEnvelope, type MembersQueryBuilder, type MembersQueryResult, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MuteMemberRequest, type MuteMemberResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OwnerMemberBlockForbiddenPayload, type OwnerOrContributorDeleteForbiddenPayload, type Page, type Pages, type Paging, type PagingMetadata, type PicassoAssigned, type PicassoUnassigned, PrivacyStatusStatus, type PrivacyStatusStatusWithLiterals, type Profile, type Query, type QueryMembersOptions, type QueryMembersRequest, type QueryMembersResponse, type Recipient, type RestoreInfo, type Search, type ServiceProvisioned, type ServiceRemoved, Set, type SetWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, type SlugAlreadyExistsPayload, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, Status, type StatusWithLiterals, type StreetAddress, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type URI, type URIs, type UnmuteMemberRequest, type UnmuteMemberResponse, type UpdateCurrentMemberSlugApplicationErrors, type UpdateMember, type UpdateMemberRequest, type UpdateMemberResponse, type UpdateMemberSlugApplicationErrors, type UpdateMemberSlugRequest, type UpdateMemberSlugResponse, type UpdateMemberValidationErrors, type UpdateMySlugRequest, type UpdateMySlugResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, approveMember, blockMember, bulkApproveMembers, bulkBlockMembers, bulkDeleteMembers, bulkDeleteMembersByFilter, createMember, deleteMember, deleteMemberAddresses, deleteMemberEmails, deleteMemberPhones, deleteMyMember, disconnectMember, getCurrentMember, getMember, joinCommunity, leaveCommunity, listMembers, muteMember, onMemberCreated, onMemberDeleted, onMemberUpdated, queryMembers, typedQueryMembers, unmuteMember, updateCurrentMemberSlug, updateMember, updateMemberSlug, utils };
|
|
2702
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ActiveSubscriptionMemberBlockForbiddenPayload, type ActiveSubscriptionMemberDeleteForbiddenPayload, ActivityStatusStatus, type ActivityStatusStatusWithLiterals, type Address, type AddressLocation, type AddressStreetOneOf, type App, type ApplicationError, type ApproveMemberRequest, type ApproveMemberResponse, type Asset, type BaseEventMetadata, type BlockMemberApplicationErrors, type BlockMemberRequest, type BlockMemberResponse, type BulkActionMetadata, BulkActionType, type BulkActionTypeWithLiterals, type BulkApproveMembersRequest, type BulkApproveMembersResponse, type BulkBlockMembersRequest, type BulkBlockMembersResponse, type BulkDeleteMembersByFilterOptions, type BulkDeleteMembersByFilterRequest, type BulkDeleteMembersByFilterResponse, type BulkDeleteMembersRequest, type BulkDeleteMembersResponse, type BulkMemberResult, type CommonQueryWithEntityContext, type Contact, type ContentDeletionRequested, type ContentReassignmentRequested, type CreateMemberOptions, type CreateMemberRequest, type CreateMemberResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomField, type CustomTag, type DeleteContext, type DeleteMemberAddressesRequest, type DeleteMemberAddressesResponse, type DeleteMemberEmailsRequest, type DeleteMemberEmailsResponse, type DeleteMemberPhonesRequest, type DeleteMemberPhonesResponse, type DeleteMemberRequest, type DeleteMemberResponse, type DeleteMemberValidationErrors, type DeleteMyMemberOptions, type DeleteMyMemberRequest, type DeleteMyMemberResponse, type DeleteMyMemberValidationErrors, DeleteStatus, type DeleteStatusWithLiterals, type DisconnectMemberRequest, type DisconnectMemberResponse, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type File, type GetCurrentMemberApplicationErrors, type GetCurrentMemberOptions, type GetMemberApplicationErrors, type GetMemberOptions, type GetMemberRequest, type GetMemberResponse, type GetMyMemberRequest, type GetMyMemberResponse, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImportMemberResult, type ImportMembersRequest, type ImportMembersResponse, type InvalidCustomFieldUrlPayload, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type JoinCommunityApplicationErrors, type JoinCommunityRequest, type JoinCommunityResponse, type LeaveCommunityRequest, type LeaveCommunityResponse, type ListMembersOptions, type ListMembersRequest, type ListMembersResponse, type MaskedMember, type Member, type MemberApproved, type MemberBlocked, type MemberCreatedEnvelope, type MemberDeletedEnvelope, type MemberIdChanged, type MemberJoinedCommunity, type MemberLeftCommunity, type MemberMuted, type MemberOwnershipTransferred, type MemberQuery, type MemberQuerySpec, type MemberSelfBlockForbiddenPayload, type MemberToMemberBlockedPayload, type MemberUnmuted, type MemberUpdatedEnvelope, type MembersQueryBuilder, type MembersQueryResult, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type MuteMemberRequest, type MuteMemberResponse, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type OwnerMemberBlockForbiddenPayload, type OwnerOrContributorDeleteForbiddenPayload, type Page, type Pages, type Paging, type PagingMetadata, type PicassoAssigned, type PicassoUnassigned, PrivacyStatusStatus, type PrivacyStatusStatusWithLiterals, type Profile, type Query, type QueryMembersOptions, type QueryMembersRequest, type QueryMembersResponse, type Recipient, type RestoreInfo, type Search, type ServiceProvisioned, type ServiceRemoved, Set, type SetWithLiterals, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, type SlugAlreadyExistsPayload, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, Status, type StatusWithLiterals, type StreetAddress, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type URI, type URIs, type UnmuteMemberRequest, type UnmuteMemberResponse, type UpdateCurrentMemberSlugApplicationErrors, type UpdateMember, type UpdateMemberRequest, type UpdateMemberResponse, type UpdateMemberSlugApplicationErrors, type UpdateMemberSlugRequest, type UpdateMemberSlugResponse, type UpdateMemberValidationErrors, type UpdateMySlugRequest, type UpdateMySlugResponse, type UserDomainMediaDisabled, type UserDomainMediaEnabled, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, approveMember, blockMember, bulkApproveMembers, bulkBlockMembers, bulkDeleteMembers, bulkDeleteMembersByFilter, createMember, deleteMember, deleteMemberAddresses, deleteMemberEmails, deleteMemberPhones, deleteMyMember, disconnectMember, getCurrentMember, getMember, joinCommunity, leaveCommunity, listMembers, muteMember, onMemberCreated, onMemberDeleted, onMemberUpdated, queryMembers, typedQueryMembers, unmuteMember, updateCurrentMemberSlug, updateMember, updateMemberSlug, utils };
|
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
ActivityStatusStatus: () => ActivityStatusStatus,
|
|
24
|
+
BulkActionType: () => BulkActionType,
|
|
24
25
|
DeleteStatus: () => DeleteStatus,
|
|
25
26
|
Namespace: () => Namespace,
|
|
26
27
|
PrivacyStatusStatus: () => PrivacyStatusStatus,
|
|
@@ -918,6 +919,13 @@ var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
|
918
919
|
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
919
920
|
return DeleteStatus2;
|
|
920
921
|
})(DeleteStatus || {});
|
|
922
|
+
var BulkActionType = /* @__PURE__ */ ((BulkActionType2) => {
|
|
923
|
+
BulkActionType2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
924
|
+
BulkActionType2["INSERT"] = "INSERT";
|
|
925
|
+
BulkActionType2["UPDATE"] = "UPDATE";
|
|
926
|
+
BulkActionType2["DELETE"] = "DELETE";
|
|
927
|
+
return BulkActionType2;
|
|
928
|
+
})(BulkActionType || {});
|
|
921
929
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
922
930
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
923
931
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1567,6 +1575,7 @@ async function deleteMemberAddresses2(_id) {
|
|
|
1567
1575
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1568
1576
|
0 && (module.exports = {
|
|
1569
1577
|
ActivityStatusStatus,
|
|
1578
|
+
BulkActionType,
|
|
1570
1579
|
DeleteStatus,
|
|
1571
1580
|
Namespace,
|
|
1572
1581
|
PrivacyStatusStatus,
|