export interface CustomFieldApplication { /** Custom field ID. */ customFieldId?: string | null; /** * Custom field key. * @readonly */ customFieldKey?: string | null; /** Entities to which the custom field applies. */ applications?: ApplicationsWrapper; /** Entities from which the custom field is excluded. */ exclusions?: ExclusionsWrapper; /** Revision number, which increments by 1 each time the custom field is updated. To prevent conflicting changes, the existing revision must be used when updating a custom field. */ revision?: string | null; } export interface ApplicationsWrapper { /** List of up to 100 entities to which the the custom field applies. */ items?: AppliesTo[]; } export interface AppliesTo { /** Type of the application. */ applicationType?: Type; /** Entity ID. */ entityId?: string | null; } export declare enum Type { /** Unknown application type. This value isn't used. */ UNKNOWN = "UNKNOWN", /** The field is applied to members with a specific role. */ ROLE = "ROLE", /** The field is applied to members with a specific badge. */ BADGE = "BADGE", /** The field is applied to members with a specific pricing plan. */ PRICING_PLAN = "PRICING_PLAN", /** The field is applied to the specified members. */ MEMBER = "MEMBER" } export interface ExclusionsWrapper { /** List of up to 100 entities from which the custom field is excluded. */ items?: Exclusion[]; } export interface Exclusion { /** Type of the exclusion. */ exclusionType?: ExclusionType; /** Entity ID. */ entityId?: string | null; } export declare enum ExclusionType { /** Unknown exclusion type. This value isn't used. */ UNKNOWN = "UNKNOWN", /** The field is excluded from members with a specific role. */ ROLE = "ROLE", /** The field is excluded from members with a specific badge. */ BADGE = "BADGE", /** The field is excluded from members with a specific pricing plan. */ PRICING_PLAN = "PRICING_PLAN", /** The field is excluded from the specified members. */ MEMBER = "MEMBER" } export interface CreateCustomFieldApplicationRequest { /** Custom field application details. */ application: CustomFieldApplication; } export interface CreateCustomFieldApplicationResponse { /** The created custom field application. */ application?: CustomFieldApplication; } export interface DeleteCustomFieldApplicationRequest { /** ID of the custom field which application to delete. */ customFieldId: string | null; } export interface DeleteCustomFieldApplicationResponse { } export interface UpdateCustomFieldApplicationRequest { /** Custom field application to update. */ application: CustomFieldApplication; } export interface UpdateCustomFieldApplicationResponse { /** Updated custom field application. */ application?: CustomFieldApplication; } export interface GetCustomFieldApplicationRequest { /** ID of the custom field which application to retrieve. */ customFieldId: string | null; } export interface GetCustomFieldApplicationResponse { /** Requested custom field application. */ application?: CustomFieldApplication; } export interface GetCustomFieldApplicationsRequest { /** List of IDs of the custom fields which applications should be returned. */ customFieldIds: string[]; } export interface GetCustomFieldApplicationsResponse { /** List of custom field applications. */ applications?: CustomFieldApplication[]; } export interface GetMembersCustomFieldApplicationsRequest { /** IDs of members whose custom field applications to retrieve. */ memberIds: string[]; } export interface GetMembersCustomFieldApplicationsResponse { /** List of custom field applications. */ results?: MemberCustomFieldApplication[]; } export interface MemberCustomFieldApplication { /** Member ID. */ memberId?: string | null; /** Custom field applications for the member. */ applications?: FieldApplication[]; } export interface FieldApplication { /** * Custom field key. * @readonly */ customFieldKey?: string | null; /** Whether the custom field applies to the memeber. */ applies?: boolean; /** Custom field details. */ customField?: CustomField; } export interface CustomField { /** * Custom field ID. * @readonly */ _id?: string | null; /** Custom field title. */ name?: string | null; /** * Custom field key. * @readonly */ key?: string | null; /** Privacy level of the custom field. */ defaultPrivacy?: Privacy; /** Type of information to provide for members. */ fieldType?: FieldTypeType; /** Social network type. */ socialType?: SocialTypeType; /** * Field origin. * @readonly */ fieldOrigin?: Origin; /** * Which members will have the custom field on their account. * @readonly */ appliesTo?: AppliesToAppliesTo; /** * A section which the field belongs to. * @readonly */ section?: Section; /** * Date and time when the field was created. * @readonly */ _createdDate?: Date | null; /** * Date and time when the field was updated. * @readonly */ _updatedDate?: Date | null; /** Revision number, which increments by 1 each time the custom field is updated. To prevent conflicting changes, the existing revision must be used when updating a custom field. */ revision?: string | null; } export declare enum Privacy { /** Unknown privacy. This value isn't used. */ UNKNOWN = "UNKNOWN", /** The information appears on the members' public profile pages. */ PUBLIC = "PUBLIC", /** Only the member can see this information. */ PRIVATE = "PRIVATE" } export declare enum FieldTypeType { /** Unknown field type. This value isn't used. */ UNKNOWN = "UNKNOWN", /** A text box to write any type of text. */ TEXT = "TEXT", /** Only number can be entered into the field. */ NUMBER = "NUMBER", /** Only date can be entered into the field. */ DATE = "DATE", /** Only URL can be entered into the field. */ URL = "URL", /** Only link from the selected social media platform can be entered into the field. */ SOCIAL = "SOCIAL" } export declare enum SocialTypeType { /** Unknown social type. This value isn't used. */ UNKNOWN = "UNKNOWN", /** Facebook social media platform. */ FACEBOOK = "FACEBOOK", /** Instagram social media platform. */ INSTAGRAM = "INSTAGRAM", /** LinkedIn social media platform. */ LINKEDIN = "LINKEDIN", /** X (Twitter) social media platform. */ TWITTER = "TWITTER", /** Youtube social media platform. */ YOUTUBE = "YOUTUBE", /** Pinterest social media platform. */ PINTEREST = "PINTEREST", /** TikTok social media platform. */ TIKTOK = "TIKTOK", /** DeviantArt social media platform. */ DEVIANTART = "DEVIANTART", /** SoundCloud social media platform. */ SOUNDCLOUD = "SOUNDCLOUD", /** Tumblr social media platform. */ TUMBLR = "TUMBLR", /** Vimeo social media platform. */ VIMEO = "VIMEO", /** VKontakte social media platform. */ VKONTAKTE = "VKONTAKTE", /** Odnoklassniki social media platform. */ ODNOKLASSNIKI = "ODNOKLASSNIKI", /** Other social media platform. */ OTHER = "OTHER" } export declare enum Origin { /** Unknown field origin. This value isn't used. */ UNKNOWN = "UNKNOWN", /** Custom field created by a Wix user. */ CUSTOM = "CUSTOM", /** Contact type of field. These are default fields that are already provided by Members Area, such as: "birth date", "position", "company". */ CONTACT = "CONTACT", /** System type of field. These are default fields that are already provided by Members Area, such as: "first name", "last name", "email", "phone", "address", "title". */ SYSTEM = "SYSTEM" } export declare enum AppliesToAppliesTo { /** Everyone will have this field. */ ALL_MEMBERS = "ALL_MEMBERS", /** Only the members you choose will have this field. Call the [Create Custom Field Application](https://dev.wix.com/docs/rest/crm/members-contacts/members/custom-fields/custom-field-applications/create-custom-field-application) to apply the field for specific members. */ SELECTED_MEMBERS = "SELECTED_MEMBERS" } export declare enum Section { /** General section. All custom fields and the following default fields are assigned to this section: "first name", "last name", "email", "phone", "birth date", "position", "company". */ GENERAL = "GENERAL", /** Social media section. The "social media" field is assigned to this section. */ SOCIAL = "SOCIAL", /** Display info section. The default "title" field is assigned to this section. */ DISPLAY_INFO = "DISPLAY_INFO", /** Address section. The default "address" field is assigned to this section. */ ADDRESS = "ADDRESS" } export interface GetRolesCustomFieldApplicationsRequest { /** IDs of roles which custom field applications to retrieve. */ roleIds: string[]; } export interface GetRolesCustomFieldApplicationsResponse { /** List of custom field applications. */ results?: RoleCustomFieldApplication[]; } export interface RoleCustomFieldApplication { /** Role ID. */ roleId?: string | null; /** Custom field applications for the role. */ applications?: FieldApplication[]; } 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 in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ eventTime?: Date | null; /** * 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 { entity?: string; } export interface RestoreInfo { deletedDate?: Date | null; } 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. */ currentEntity?: string; } export interface EntityDeletedEvent { /** Entity that was deleted */ deletedEntity?: string | null; } export interface ActionEvent { body?: string; } export interface Empty { } export interface MessageEnvelope { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; } export interface IdentificationData extends IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; /** @readonly */ identityType?: WebhookIdentityType; } /** @oneof */ export interface IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; } export declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } interface AppliesToNonNullableFields { applicationType: Type; } interface ApplicationsWrapperNonNullableFields { items: AppliesToNonNullableFields[]; } interface ExclusionNonNullableFields { exclusionType: ExclusionType; } interface ExclusionsWrapperNonNullableFields { items: ExclusionNonNullableFields[]; } export interface CustomFieldApplicationNonNullableFields { applications?: ApplicationsWrapperNonNullableFields; exclusions?: ExclusionsWrapperNonNullableFields; } export interface CreateCustomFieldApplicationResponseNonNullableFields { application?: CustomFieldApplicationNonNullableFields; } export interface UpdateCustomFieldApplicationResponseNonNullableFields { application?: CustomFieldApplicationNonNullableFields; } export interface GetCustomFieldApplicationResponseNonNullableFields { application?: CustomFieldApplicationNonNullableFields; } export interface GetCustomFieldApplicationsResponseNonNullableFields { applications: CustomFieldApplicationNonNullableFields[]; } interface CustomFieldNonNullableFields { defaultPrivacy: Privacy; fieldType: FieldTypeType; socialType: SocialTypeType; fieldOrigin: Origin; appliesTo: AppliesToAppliesTo; section: Section; } interface FieldApplicationNonNullableFields { applies: boolean; customField?: CustomFieldNonNullableFields; } interface MemberCustomFieldApplicationNonNullableFields { applications: FieldApplicationNonNullableFields[]; } export interface GetMembersCustomFieldApplicationsResponseNonNullableFields { results: MemberCustomFieldApplicationNonNullableFields[]; } interface RoleCustomFieldApplicationNonNullableFields { applications: FieldApplicationNonNullableFields[]; } export interface GetRolesCustomFieldApplicationsResponseNonNullableFields { results: RoleCustomFieldApplicationNonNullableFields[]; } /** * Creates a custom field application. * @param application - Custom field application details. * @public * @documentationMaturity preview * @requiredField application * @requiredField application.applications.items.entityId * @requiredField application.customFieldId * @requiredField application.exclusions.items.entityId * @permissionId MEMBERS.CUSTOM_FIELDS_CREATE * @permissionScope Manage Members * @permissionScopeId SCOPE.DC-MEMBERS.MANAGE-MEMBERS * @applicableIdentity APP * @returns The created custom field application. * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.CreateCustomFieldApplication */ export declare function createCustomFieldApplication(application: CustomFieldApplication): Promise; /** * Deletes a custom field application. * @param customFieldId - ID of the custom field which application to delete. * @public * @documentationMaturity preview * @requiredField customFieldId * @permissionId MEMBERS.CUSTOM_FIELDS_DELETE * @permissionScope Manage Members * @permissionScopeId SCOPE.DC-MEMBERS.MANAGE-MEMBERS * @applicableIdentity APP * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.DeleteCustomFieldApplication */ export declare function deleteCustomFieldApplication(customFieldId: string | null): Promise; /** * Updates custom field application. * * Partial updates are not supported. You need to pass the the whole `application` object in the request. * @param customFieldId - Custom field ID. * @public * @documentationMaturity preview * @requiredField application * @requiredField application.applications.items.entityId * @requiredField application.exclusions.items.entityId * @requiredField application.revision * @requiredField customFieldId * @permissionId MEMBERS.CUSTOM_FIELDS_UPDATE * @permissionScope Manage Members * @permissionScopeId SCOPE.DC-MEMBERS.MANAGE-MEMBERS * @applicableIdentity APP * @returns Updated custom field application. * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.UpdateCustomFieldApplication */ export declare function updateCustomFieldApplication(customFieldId: string | null, application: UpdateCustomFieldApplication): Promise; export interface UpdateCustomFieldApplication { /** * Custom field key. * @readonly */ customFieldKey?: string | null; /** Entities to which the custom field applies. */ applications?: ApplicationsWrapper; /** Entities from which the custom field is excluded. */ exclusions?: ExclusionsWrapper; /** Revision number, which increments by 1 each time the custom field is updated. To prevent conflicting changes, the existing revision must be used when updating a custom field. */ revision?: string | null; } /** * Retrieves a custom field application. * @param customFieldId - ID of the custom field which application to retrieve. * @public * @documentationMaturity preview * @requiredField customFieldId * @permissionId MEMBERS.CUSTOM_FIELDS_READ * @permissionScope Manage Members * @permissionScopeId SCOPE.DC-MEMBERS.MANAGE-MEMBERS * @permissionScope Read Members and Contacts - all read permissions * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS * @permissionScope Read Members * @permissionScopeId SCOPE.DC-MEMBERS.READ-MEMBERS * @permissionScope Manage Members and Contacts - all permissions * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS * @applicableIdentity APP * @applicableIdentity VISITOR * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.GetCustomFieldApplication */ export declare function getCustomFieldApplication(customFieldId: string | null): Promise; /** * Retrieves a list of custom field applications. * @param customFieldIds - List of IDs of the custom fields which applications should be returned. * @public * @documentationMaturity preview * @requiredField customFieldIds * @permissionId MEMBERS.CUSTOM_FIELDS_READ * @permissionScope Manage Members * @permissionScopeId SCOPE.DC-MEMBERS.MANAGE-MEMBERS * @permissionScope Read Members and Contacts - all read permissions * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.READ-MEMBERS-CONTACTS * @permissionScope Read Members * @permissionScopeId SCOPE.DC-MEMBERS.READ-MEMBERS * @permissionScope Manage Members and Contacts - all permissions * @permissionScopeId SCOPE.DC-CONTACTS-MEGA.MANAGE-MEMBERS-CONTACTS * @applicableIdentity APP * @applicableIdentity VISITOR * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.GetCustomFieldApplications */ export declare function getCustomFieldApplications(customFieldIds: string[]): Promise; /** * Retrieves a list of fields that are applied to specified members. * @param memberIds - IDs of members whose custom field applications to retrieve. * @public * @documentationMaturity preview * @requiredField memberIds * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.GetMembersCustomFieldApplications */ export declare function getMembersCustomFieldApplications(memberIds: string[]): Promise; /** * Retrieves a list of fields that are applied to specified roles. * @param roleIds - IDs of roles which custom field applications to retrieve. * @public * @documentationMaturity preview * @requiredField roleIds * @fqn com.wixpress.members.customfields.applications.CustomFieldApplications.GetRolesCustomFieldApplications */ export declare function getRolesCustomFieldApplications(roleIds: string[]): Promise; export {};