export interface Follower { /** Member ID of the member who performed the action. */ memberId?: string; /** Member ID of the member being followed or unfollowed. */ affectedMemberId?: string; } export interface FollowMemberRequest { /** Member ID. */ memberId?: string; } export interface FollowMemberResponse { } export interface MemberFollowed { /** Member who is following the other member. */ memberConnection?: Follower; } export interface UnfollowMemberRequest { /** Member ID. */ memberId?: string; } export interface UnfollowMemberResponse { } export interface MemberUnfollowed { /** Member who is unfollowing the other member. */ memberConnection?: Follower; } export interface ListMyMemberFollowingRequest { /** * Pagination options. For more information, see * [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */ paging?: Paging; } export interface Paging { /** Number of items to load. */ limit?: number | null; /** Number of items to skip in the current sort order. */ offset?: number | null; } export interface ListMyMemberFollowingResponse { /** List of site members who are followed by the current member. */ memberIds?: string[]; /** Metadata for the paginated results. */ pagingMetadata?: PagingMetadata; } export interface PagingMetadata { /** Number of items returned in the response. */ count?: number | null; /** Offset that was requested. */ offset?: number | null; /** Total number of items that match the query. */ total?: number | null; /** Flag that indicates the server failed to calculate the `total` field. */ tooManyToCount?: boolean | null; } export interface ListMemberFollowingRequest { /** Member ID. */ memberId: string; /** * Pagination options. For more information, see * [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */ paging?: Paging; } export interface ListMemberFollowingResponse { /** List of site members who are followed by the requested member. */ memberIds?: string[]; /** Metadata for the paginated results. */ pagingMetadata?: PagingMetadata; } export interface ListMyMemberFollowersRequest { /** Metadata for the paginated results. */ paging?: Paging; } export interface ListMyMemberFollowersResponse { /** List of members who are following the current member. */ memberIds?: string[]; /** Metadata for the paginated results. */ pagingMetadata?: PagingMetadata; } export interface ListMemberFollowersRequest { /** Member ID. */ memberId: string; /** Metadata for the paginated results. */ paging?: Paging; } export interface ListMemberFollowersResponse { /** List of members who are following the request member. */ memberIds?: string[]; /** Metadata for the paginated results. */ pagingMetadata?: PagingMetadata; } export interface ListMyMemberConnectionsRequest { /** * List of member IDs whose connections to the current member * will be retrieved. */ connectedMemberIds?: string[]; } export interface ListMyMemberConnectionsResponse { /** List of site members whose connections to the current member were retrieved. */ connectedMembers?: ConnectedMembers[]; } export interface ConnectedMembers { /** Site member ID. */ connectedMemberId?: string; /** Indicates if the listed member is followed by the requested member. */ followedByMember?: boolean; /** Indicates if the listed member is following the requested member. */ followingMember?: boolean; } export interface ListMemberConnectionsRequest { /** * List of member IDs whose connections to the requested member * will be retrieved. * For multiple connections, format as * `?connectedMemberIds=member-1-id&connectedMemberIds=member-2-id`. */ connectedMemberIds: string[]; /** ID of the requested member. */ memberId: string; } export interface ListMemberConnectionsResponse { /** List of site members whose connections to the requested member were retrieved. */ connectedMembers?: ConnectedMembers[]; } export interface DomainEvent extends DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; /** * Unique event ID. * Allows clients to ignore duplicate webhooks. */ id?: string; /** * Assumes actions are also always typed to an entity_type * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction */ entityFqdn?: string; /** * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) * This is although the created/updated/deleted notion is duplication of the oneof types * Example: created/updated/deleted/started/completed/email_opened */ slug?: string; /** ID of the entity associated with the event. */ entityId?: string; /** Event timestamp. */ eventTime?: Date; /** * Whether the event was triggered as a result of a privacy regulation application * (for example, GDPR). */ triggeredByAnonymizeRequest?: boolean | null; /** If present, indicates the action that triggered the event. */ originatedFrom?: string | null; /** * A sequence number defining the order of updates to the underlying entity. * For example, given that some entity was updated at 16:00 and than again at 16:01, * it is guaranteed that the sequence number of the second update is strictly higher than the first. * As the consumer, you can use this value to ensure that you handle messages in the correct order. * To do so, you will need to persist this number on your end, and compare the sequence number from the * message against the one you have stored. Given that the stored number is higher, you should ignore the message. */ entityEventSequence?: string | null; } /** @oneof */ export interface DomainEventBodyOneOf { createdEvent?: EntityCreatedEvent; updatedEvent?: EntityUpdatedEvent; deletedEvent?: EntityDeletedEvent; actionEvent?: ActionEvent; } export interface EntityCreatedEvent { entityAsJson?: string; } export interface EntityUpdatedEvent { /** * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. */ currentEntityAsJson?: string; } export interface EntityDeletedEvent { /** Entity that was deleted */ deletedEntityAsJson?: string | null; } export interface ActionEvent { bodyAsJson?: string; } export interface ListMemberFollowingResponseNonNullableFields { memberIds: string[]; } export interface ListMemberFollowersResponseNonNullableFields { memberIds: string[]; } export interface ListMemberConnectionsResponseNonNullableFields { connectedMembers: { connectedMemberId: string; followedByMember: boolean; followingMember: boolean; }[]; }