import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { CustomField, CreateCustomFieldApplicationErrors, GetCustomFieldResponse, ListCustomFieldsOptions, ListCustomFieldsResponse, UpdateCustomField, UpdateCustomFieldApplicationErrors, UpdateCustomFieldsOrderOptions, UpdateCustomFieldsOrderResponse } from './index.typings.js'; export { AccountInfo, ActionEvent, AppliesTo, AppliesToWithLiterals, Asset, CreateCustomFieldRequest, CreateCustomFieldResponse, DefaultPrivacyChanged, DeleteContext, DeleteCustomFieldRequest, DeleteCustomFieldResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetCustomFieldRequest, HideCustomFieldRequest, HideCustomFieldResponse, IdentificationData, IdentificationDataIdOneOf, IncorrectFieldTypeData, IncorrectPrivacyData, InvalidSocialTypeData, ListCustomFieldsRequest, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, Origin, OriginWithLiterals, Paging, PagingMetadata, PicassoAssigned, PicassoUnassigned, Privacy, PrivacyWithLiterals, ReservedFieldNameNonEditable, RestoreInfo, Section, SectionWithLiterals, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SocialTypeType, SocialTypeTypeWithLiterals, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, Type, TypeWithLiterals, UpdateCustomFieldRequest, UpdateCustomFieldResponse, UpdateCustomFieldsOrderRequest, UserDomainMediaDisabled, UserDomainMediaEnabled, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js'; declare function createCustomField$1(httpClient: HttpClient): CreateCustomFieldSignature; interface CreateCustomFieldSignature { /** * Creates a custom field. * @param - Custom field to create. * @returns Created custom field. */ (field: NonNullablePaths): Promise & { __applicationErrorsType?: CreateCustomFieldApplicationErrors; }>; } declare function getCustomField$1(httpClient: HttpClient): GetCustomFieldSignature; interface GetCustomFieldSignature { /** * Retrieves a custom field by ID. * @param - Custom field ID. */ (_id: string): Promise>; } declare function listCustomFields$1(httpClient: HttpClient): ListCustomFieldsSignature; interface ListCustomFieldsSignature { /** * Retrieves a list of custom fields and fields provided by Members Area, given the provided paging. * * The fields are ordered by section in the following sequence: * - `GENERAL` * - `DISPLAY_INFO` * - `SOCIAL` * * The fields in the same section are ordered by the field creation date. * * To change the order of fields in sections, call Update Custom Fields Order. */ (options?: ListCustomFieldsOptions): Promise>; } declare function updateCustomField$1(httpClient: HttpClient): UpdateCustomFieldSignature; interface UpdateCustomFieldSignature { /** * Updates a custom field. * * For custom fields you can update the following fields: `name`, `defaultPrivacy`, and `socialType`. * * For system fields you can only update the `defaultPrivacy` field. * @param - Custom field ID. * @returns Updated custom field. */ (_id: string, field: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateCustomFieldApplicationErrors; }>; } declare function deleteCustomField$1(httpClient: HttpClient): DeleteCustomFieldSignature; interface DeleteCustomFieldSignature { /** * Deletes a custom field and removes the corresponding column from the [Contact List](https://support.wix.com/en/article/wix-contacts-managing-your-contact-list) * display. The custom field is no longer suggested when adding custom fields. * @param - ID of the custom field to delete. * @param - Revision number. */ (_id: string, revision: string): Promise; } declare function hideCustomField$1(httpClient: HttpClient): HideCustomFieldSignature; interface HideCustomFieldSignature { /** * Hides a custom field from the custom fields list, yet it's still available as a [suggested field](https://dev.wix.com/docs/rest/crm/members-contacts/members/custom-fields/custom-field-suggestions/introduction) * to add later. * * The related contacts custom field will still be available in the [Contact List](https://support.wix.com/en/article/wix-contacts-managing-your-contact-list). * @param - ID of the custom field to hide. * @param - Revision number. */ (_id: string, revision: string): Promise; } declare function updateCustomFieldsOrder$1(httpClient: HttpClient): UpdateCustomFieldsOrderSignature; interface UpdateCustomFieldsOrderSignature { /** * Updates the order of custom fields in a section. * @param - IDs of the custom fields to be reordered. */ (fieldIds: string[], options?: UpdateCustomFieldsOrderOptions): Promise>; } declare const createCustomField: MaybeContext & typeof createCustomField$1>; declare const getCustomField: MaybeContext & typeof getCustomField$1>; declare const listCustomFields: MaybeContext & typeof listCustomFields$1>; declare const updateCustomField: MaybeContext & typeof updateCustomField$1>; declare const deleteCustomField: MaybeContext & typeof deleteCustomField$1>; declare const hideCustomField: MaybeContext & typeof hideCustomField$1>; declare const updateCustomFieldsOrder: MaybeContext & typeof updateCustomFieldsOrder$1>; export { CreateCustomFieldApplicationErrors, CustomField, GetCustomFieldResponse, ListCustomFieldsOptions, ListCustomFieldsResponse, UpdateCustomField, UpdateCustomFieldApplicationErrors, UpdateCustomFieldsOrderOptions, UpdateCustomFieldsOrderResponse, createCustomField, deleteCustomField, getCustomField, hideCustomField, listCustomFields, updateCustomField, updateCustomFieldsOrder };