import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, RestoreDataCollectionResponse, PatchDataCollection, PatchDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, DeletePublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, DeleteUrlizedPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, DeleteMultilingualPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, DeleteCmsPluginResponse, AddCatalogPluginOptions, AddCatalogPluginResponse, DeleteCatalogPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, Field, PatchDataCollectionFieldResponse } from './index.typings.mjs'; export { AccessLevel, AccessLevelWithLiterals, AccountInfo, ActionEvent, AddCatalogPluginRequest, AddCmsPluginRequest, AddDataCollectionPluginRequest, AddDraftItemsPluginRequest, AddMultilingualPluginRequest, AddPublishPluginRequest, AddUrlizedPluginRequest, Address, AllowedDataPermissions, AllowedDraftPermissions, AppOptions, ApplicationError, ArrayDocument, ArraySizeRange, ArrayString, Audio, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CatalogOptions, CategoryFieldOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, Datetime, DatetimeDefaultValueOneOf, DatetimeMaxDateOneOf, DatetimeMinDateOneOf, DeleteCatalogPluginRequest, DeleteCmsPluginRequest, DeleteDataCollectionFieldRequest, DeleteDataCollectionPluginRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, DeleteDraftItemsPluginRequest, DeleteMultilingualPluginRequest, DeletePublishPluginRequest, DeleteUrlizedPluginRequest, Destination, Direction, DirectionWithLiterals, Document, DomainEvent, DomainEventBodyOneOf, DraftItemsPluginConflictAction, DraftItemsPluginConflictActionWithLiterals, DraftItemsPluginOptions, DraftItemsPluginOptionsPairedCollectionOneOf, DraftItemsRemovalAction, DraftItemsRemovalActionWithLiterals, DraftPermissions, Email, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EnumValues, FailedCollection, Failure, FieldCapabilities, FieldCondition, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Image, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, LegacyColor, LifecycleStatus, LifecycleStatusWithLiterals, ListDataCollectionsRequest, MediaGallery, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, PageLinkType, PageLinkTypeWithLiterals, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, Permission, PermissionWithLiterals, Permissions, PermissionsUpdate, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginConflictAction, PublishPluginConflictActionWithLiterals, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, RichContent, RichText, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StrictModeUpdate, StringLengthRange, TenantMode, TenantModeWithLiterals, Text, TextValidation, TextValidationOneOf, Time, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, Url, UrlizedOnlyPattern, UrlizedPluginOptions, Video, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Boolean, _Date, _DateDefaultValueOneOf, _DateMaxDateOneOf, _DateMinDateOneOf, _Number, _Object } from './index.typings.mjs'; declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature; interface CreateDataCollectionSignature { /** * Creates a new data collection. * * The request body must include an ID, details for at least 1 field, and a permissions object. If any of these are missing, the collection isn't created. * @param - Collection details. * @param - Options for creating a data collection. * @returns Details of collection created. */ (collection: NonNullablePaths): Promise>; } declare function getDataCollection$1(httpClient: HttpClient): GetDataCollectionSignature; interface GetDataCollectionSignature { /** * Retrieves a data collection by ID. * @param - ID of the collection to retrieve. * @param - Options for retrieving a data collection. * @returns Details of the collection requested. */ (dataCollectionId: string, options?: GetDataCollectionOptions): Promise>; } declare function listDataCollections$1(httpClient: HttpClient): ListDataCollectionsSignature; interface ListDataCollectionsSignature { /** * Retrieves a list of all data collections associated with the site or project. * * By default, the list is ordered by ID in ascending order. * @param - Options for retrieving a list of data collections. */ (options?: ListDataCollectionsOptions): Promise>; } declare function updateDataCollection$1(httpClient: HttpClient): UpdateDataCollectionSignature; interface UpdateDataCollectionSignature { /** * Updates a data collection. * * A collection ID, revision number, permissions, and at least 1 field must be provided in the `collection` body parameter. * If a collection with that ID exists, and if its current `revision` number matches the one provided, it's updated. * Otherwise, the request fails. * *
* Important: * * After a collection is updated, it only contains the properties included in the Update Data Collection request. * If the existing collection has properties with values and those properties aren't included in the updated collection details, * their values are lost.

* * To update only specific properties without affecting others, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection). *
* * When a collection is updated, its `updatedDate` changes to the current date and its `revision` increments by 1. * * To update only properties in a collection's `fields` array, use [Update Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/update-data-collection-field). * To only add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin). * @param - Updated collection details. The existing collection is replaced with this version. * @param - Options for updating a data collection. * @returns Updated collection details. */ (collection: NonNullablePaths): Promise>; } declare function deleteDataCollection$1(httpClient: HttpClient): DeleteDataCollectionSignature; interface DeleteDataCollectionSignature { /** * Deletes a data collection. * * Before deleting a collection: * - Make sure the collection isn't connected to any site pages or elements. * - You can create a manual backup of a collections with the Backups API, in case you need to restore them later. * - You can also export a collection to a CSV file with the Data Movement Jobs API, if you want to save the data outside of Wix. * * > **Note:** * > Once a collection is deleted, it can only be restored for a limited amount of time. * @param - ID of the collection to delete. */ (dataCollectionId: string): Promise; } /** @internal */ declare function restoreDataCollection$1(httpClient: HttpClient): RestoreDataCollectionSignature; interface RestoreDataCollectionSignature { /** * Restores recently deleted collection. * * Fails with `WDE0025` if collection was deleted too long ago or has never existed. * @param - Data Collection ID to restore */ (dataCollectionId: string): Promise>; } declare function patchDataCollection$1(httpClient: HttpClient): PatchDataCollectionSignature; interface PatchDataCollectionSignature { /** * Updates specified properties of a data collection. * * Only updates the properties specified in the request, all other properties remain unchanged. * The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`. * Attempting to update unsupported properties causes this operation to fail. * * To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field). * To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin). * @param - [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`. * For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`. */ (_id: string, dataCollection: PatchDataCollection): Promise>; } declare function createDataCollectionField$1(httpClient: HttpClient): CreateDataCollectionFieldSignature; interface CreateDataCollectionFieldSignature { /** * Adds a new field to the structure of a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } declare function updateDataCollectionField$1(httpClient: HttpClient): UpdateDataCollectionFieldSignature; interface UpdateDataCollectionFieldSignature { /** * Updates properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array. * *
* Important: * * After `fields` is updated, it only contains the properties included in the Update Data Collection Field request. * If the existing `fields` array has properties with values and those properties aren't included in the updated details, their values are lost.

* * To update only specific properties in the array without affecting others, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field). *
* @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } declare function deleteDataCollectionField$1(httpClient: HttpClient): DeleteDataCollectionFieldSignature; interface DeleteDataCollectionFieldSignature { /** * Deletes a field from the structure of a data collection. * * When a field is deleted, all values associated with that field are also deleted * from all items in the collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } declare function addDataCollectionPlugin$1(httpClient: HttpClient): AddDataCollectionPluginSignature; interface AddDataCollectionPluginSignature { /** * Adds a plugin to a data collection. * * If a plugin of the same type already exists in the collection, this operation fails. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } declare function deleteDataCollectionPlugin$1(httpClient: HttpClient): DeleteDataCollectionPluginSignature; interface DeleteDataCollectionPluginSignature { /** * Removes a plugin from a data collection. * * Removing a plugin disables its functionality for the collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } /** @internal */ declare function addPublishPlugin$1(httpClient: HttpClient): AddPublishPluginSignature; interface AddPublishPluginSignature { /** * Adds the Publish plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options?: NonNullablePaths): Promise>; } /** @internal */ declare function deletePublishPlugin$1(httpClient: HttpClient): DeletePublishPluginSignature; interface DeletePublishPluginSignature { /** * Removes the Publish plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string): Promise>; } /** @internal */ declare function addUrlizedPlugin$1(httpClient: HttpClient): AddUrlizedPluginSignature; interface AddUrlizedPluginSignature { /** * Adds the Urlized plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } /** @internal */ declare function deleteUrlizedPlugin$1(httpClient: HttpClient): DeleteUrlizedPluginSignature; interface DeleteUrlizedPluginSignature { /** * Removes the Urlized plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string): Promise>; } /** @internal */ declare function addMultilingualPlugin$1(httpClient: HttpClient): AddMultilingualPluginSignature; interface AddMultilingualPluginSignature { /** * Adds the Multilingual plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } /** @internal */ declare function deleteMultilingualPlugin$1(httpClient: HttpClient): DeleteMultilingualPluginSignature; interface DeleteMultilingualPluginSignature { /** * Removes the Multilingual plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string): Promise>; } /** @internal */ declare function addCmsPlugin$1(httpClient: HttpClient): AddCmsPluginSignature; interface AddCmsPluginSignature { /** * Adds the CMS plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } /** @internal */ declare function deleteCmsPlugin$1(httpClient: HttpClient): DeleteCmsPluginSignature; interface DeleteCmsPluginSignature { /** * Removes the CMS plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string): Promise>; } /** @internal */ declare function addCatalogPlugin$1(httpClient: HttpClient): AddCatalogPluginSignature; interface AddCatalogPluginSignature { /** * Adds the Catalog plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options: NonNullablePaths): Promise>; } /** @internal */ declare function deleteCatalogPlugin$1(httpClient: HttpClient): DeleteCatalogPluginSignature; interface DeleteCatalogPluginSignature { /** * Removes the Catalog plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string): Promise>; } /** @internal */ declare function addDraftItemsPlugin$1(httpClient: HttpClient): AddDraftItemsPluginSignature; interface AddDraftItemsPluginSignature { /** * Adds the Draft Items plugin to a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options?: NonNullablePaths): Promise>; } /** @internal */ declare function deleteDraftItemsPlugin$1(httpClient: HttpClient): DeleteDraftItemsPluginSignature; interface DeleteDraftItemsPluginSignature { /** * Removes the Draft Items plugin from a data collection. * @param - ID of the data collection to update. */ (dataCollectionId: string, options?: DeleteDraftItemsPluginOptions): Promise>; } declare function patchDataCollectionField$1(httpClient: HttpClient): PatchDataCollectionFieldSignature; interface PatchDataCollectionFieldSignature { /** * Updates specified properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array. * * When you change a field's type, existing values aren't migrated. Use [Bulk Update Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-update-data-items) or [Bulk Patch Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-patch-data-items) to update item values to match the new type. * * To update properties in a data collection other than `fields`, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection). * @param - ID of the data collection to update. * @param - Field to update. */ (dataCollectionId: string, field: Field): Promise>; } declare const createDataCollection: MaybeContext & typeof createDataCollection$1>; declare const getDataCollection: MaybeContext & typeof getDataCollection$1>; declare const listDataCollections: MaybeContext & typeof listDataCollections$1>; declare const updateDataCollection: MaybeContext & typeof updateDataCollection$1>; declare const deleteDataCollection: MaybeContext & typeof deleteDataCollection$1>; /** @internal */ declare const restoreDataCollection: MaybeContext & typeof restoreDataCollection$1>; declare const patchDataCollection: MaybeContext & typeof patchDataCollection$1>; declare const createDataCollectionField: MaybeContext & typeof createDataCollectionField$1>; declare const updateDataCollectionField: MaybeContext & typeof updateDataCollectionField$1>; declare const deleteDataCollectionField: MaybeContext & typeof deleteDataCollectionField$1>; declare const addDataCollectionPlugin: MaybeContext & typeof addDataCollectionPlugin$1>; declare const deleteDataCollectionPlugin: MaybeContext & typeof deleteDataCollectionPlugin$1>; /** @internal */ declare const addPublishPlugin: MaybeContext & typeof addPublishPlugin$1>; /** @internal */ declare const deletePublishPlugin: MaybeContext & typeof deletePublishPlugin$1>; /** @internal */ declare const addUrlizedPlugin: MaybeContext & typeof addUrlizedPlugin$1>; /** @internal */ declare const deleteUrlizedPlugin: MaybeContext & typeof deleteUrlizedPlugin$1>; /** @internal */ declare const addMultilingualPlugin: MaybeContext & typeof addMultilingualPlugin$1>; /** @internal */ declare const deleteMultilingualPlugin: MaybeContext & typeof deleteMultilingualPlugin$1>; /** @internal */ declare const addCmsPlugin: MaybeContext & typeof addCmsPlugin$1>; /** @internal */ declare const deleteCmsPlugin: MaybeContext & typeof deleteCmsPlugin$1>; /** @internal */ declare const addCatalogPlugin: MaybeContext & typeof addCatalogPlugin$1>; /** @internal */ declare const deleteCatalogPlugin: MaybeContext & typeof deleteCatalogPlugin$1>; /** @internal */ declare const addDraftItemsPlugin: MaybeContext & typeof addDraftItemsPlugin$1>; /** @internal */ declare const deleteDraftItemsPlugin: MaybeContext & typeof deleteDraftItemsPlugin$1>; declare const patchDataCollectionField: MaybeContext & typeof patchDataCollectionField$1>; export { AddCatalogPluginOptions, AddCatalogPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteCatalogPluginResponse, DeleteCmsPluginResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, DeleteMultilingualPluginResponse, DeletePublishPluginResponse, DeleteUrlizedPluginResponse, Field, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollection, PatchDataCollectionFieldResponse, PatchDataCollectionResponse, RestoreDataCollectionResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, addCatalogPlugin, addCmsPlugin, addDataCollectionPlugin, addDraftItemsPlugin, addMultilingualPlugin, addPublishPlugin, addUrlizedPlugin, createDataCollection, createDataCollectionField, deleteCatalogPlugin, deleteCmsPlugin, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, deleteDraftItemsPlugin, deleteMultilingualPlugin, deletePublishPlugin, deleteUrlizedPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };