@wix/auto_sdk_data_collections 1.0.13 → 1.0.15

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../index.typings.ts","../../../src/data-v2-data-collection-collections.universal.ts","../../../src/data-v2-data-collection-collections.http.ts"],"sourcesContent":["export * from './src/data-v2-data-collection-collections.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDataV2DataCollection from './data-v2-data-collection-collections.http.js';\n\n/** A data collection determines the structure of data to be stored in a database. */\nexport interface DataCollection {\n /**\n * Collection ID. For example, `my-first-collection`. May include a namespace.\n * @immutable\n * @maxLength 256\n */\n _id?: string;\n /**\n * Collection type. Indicates how the collection was created and how it is stored.\n * @readonly\n */\n collectionType?: CollectionTypeWithLiterals;\n /**\n * ID of the app that defined this collection. For collections defined by Wix users, this value is null.\n * @format GUID\n * @readonly\n */\n ownerAppId?: string | null;\n /**\n * Maximum number of items returned in a single query, based on the underlying storage.\n * Native collections have a maximum page size of 1000 for offset-based queries or 100 for cursor-based queries.\n * External collections' maximum page size defaults to 50, but an external provider can set any maximum value up to 1000.\n * @readonly\n */\n maxPageSize?: number | null;\n /**\n * Collection's display name as shown in the CMS. For example, `My First Collection`.\n * @maxLength 1000\n */\n displayName?: string | null;\n /**\n * Default item sorting order when a query doesn't specify one.\n * @readonly\n */\n defaultDisplayOrder?: Sort;\n /**\n * UI-friendly namespace of the Wix app with which the data collection is associated, such as Stores or Bookings.\n * Empty for all data collections not owned by Wix apps.\n * @readonly\n * @maxLength 1000\n */\n displayNamespace?: string | null;\n /**\n * Field whose value the CMS displays to represent the collection item when referenced in a different collection.\n * @maxLength 1000\n */\n displayField?: string | null;\n /**\n * Capabilities the collection supports.\n * @readonly\n */\n capabilities?: CollectionCapabilities;\n /**\n * Collection's field structure.\n * @maxSize 1000\n */\n fields?: Field[];\n /** Levels of permission for accessing and modifying data, defined by lowest role needed to perform each action. */\n permissions?: Permissions;\n /**\n * Collection's current revision number, which increments each time the collection is updated. For an update operation to succeed, you must specify the latest revision number.\n * @readonly\n */\n revision?: string | null;\n /**\n * Plugins the collection uses. Plugins apply additional capabilities to the collection or extend its functionality.\n * @maxSize 100\n */\n plugins?: Plugin[];\n /**\n * Paging modes the collection supports. In native collections, offset-based paging is supported by default.\n * @readonly\n * @maxSize 2\n */\n pagingModes?: PagingModeWithLiterals[];\n /**\n * Date the collection was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date the collection was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Levels of permission for accessing and modifying data.\n * @internal\n */\n dataPermissions?: DataPermissions;\n /**\n * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`\n * @internal\n * @readonly\n */\n allowedDataPermissions?: AllowedDataPermissions;\n}\n\nexport enum CollectionType {\n /** User-created collection. */\n NATIVE = 'NATIVE',\n /** [Collection](https://support.wix.com/en/article/velo-working-with-wix-app-collections-and-code#what-are-wix-app-collections) created by a Wix app when it is installed. This type of collection can be modified dynamically by that app (for example, Wix Forms). */\n WIX_APP = 'WIX_APP',\n /** Collection created by a Wix Blocks app. */\n BLOCKS_APP = 'BLOCKS_APP',\n /** Collection located in externally connected storage. */\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type CollectionTypeWithLiterals =\n | CollectionType\n | 'NATIVE'\n | 'WIX_APP'\n | 'BLOCKS_APP'\n | 'EXTERNAL';\n\nexport interface Sort {\n /**\n * Field to sort by.\n * @maxLength 1000\n */\n fieldKey?: string;\n /**\n * Sort order. Use `ASC` for ascending order or `DESC` for descending order.\n *\n * Default: `ASC`\n */\n direction?: DirectionWithLiterals;\n}\n\nexport enum Direction {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type DirectionWithLiterals = Direction | 'ASC' | 'DESC';\n\nexport interface CollectionCapabilities {\n /**\n * Data operations the collection supports. The listed operations can be performed on data the collection contains.\n *\n * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.\n * @maxSize 100\n */\n dataOperations?: DataOperationWithLiterals[];\n /**\n * Collection operations supported. The listed operations can be performed on the collection itself.\n * @maxSize 100\n */\n collectionOperations?: CollectionOperationWithLiterals[];\n /** Maximum number of indexes for the collection. */\n indexLimits?: IndexLimits;\n /**\n * Maximum number of indexes for the collection.\n * @internal\n */\n indexQuotaLimits?: IndexQuotaLimits;\n}\n\nexport enum DataOperation {\n AGGREGATE = 'AGGREGATE',\n BULK_INSERT = 'BULK_INSERT',\n BULK_REMOVE = 'BULK_REMOVE',\n BULK_SAVE = 'BULK_SAVE',\n BULK_UPDATE = 'BULK_UPDATE',\n COUNT = 'COUNT',\n DISTINCT = 'DISTINCT',\n FIND = 'FIND',\n GET = 'GET',\n INSERT = 'INSERT',\n INSERT_REFERENCE = 'INSERT_REFERENCE',\n IS_REFERENCED = 'IS_REFERENCED',\n QUERY_REFERENCED = 'QUERY_REFERENCED',\n REMOVE = 'REMOVE',\n REMOVE_REFERENCE = 'REMOVE_REFERENCE',\n REPLACE_REFERENCES = 'REPLACE_REFERENCES',\n SAVE = 'SAVE',\n TRUNCATE = 'TRUNCATE',\n UPDATE = 'UPDATE',\n PATCH = 'PATCH',\n BULK_PATCH = 'BULK_PATCH',\n}\n\n/** @enumType */\nexport type DataOperationWithLiterals =\n | DataOperation\n | 'AGGREGATE'\n | 'BULK_INSERT'\n | 'BULK_REMOVE'\n | 'BULK_SAVE'\n | 'BULK_UPDATE'\n | 'COUNT'\n | 'DISTINCT'\n | 'FIND'\n | 'GET'\n | 'INSERT'\n | 'INSERT_REFERENCE'\n | 'IS_REFERENCED'\n | 'QUERY_REFERENCED'\n | 'REMOVE'\n | 'REMOVE_REFERENCE'\n | 'REPLACE_REFERENCES'\n | 'SAVE'\n | 'TRUNCATE'\n | 'UPDATE'\n | 'PATCH'\n | 'BULK_PATCH';\n\nexport enum CollectionOperation {\n /** Allows updating the collection's structure, for example adding, updating, or deleting fields. If not included, the collection's structure can't be changed. */\n UPDATE = 'UPDATE',\n /** Allows deleting the entire collection. If not included, the collection can't be deleted. */\n REMOVE = 'REMOVE',\n}\n\n/** @enumType */\nexport type CollectionOperationWithLiterals =\n | CollectionOperation\n | 'UPDATE'\n | 'REMOVE';\n\nexport interface IndexLimits {\n /** Maximum number of regular (non-unique) indexes allowed for this collection. */\n regular?: number;\n /** Maximum number of unique indexes allowed for this collection. */\n unique?: number;\n /** Maximum number of regular and unique indexes allowed for this collection. */\n total?: number;\n}\n\nexport interface IndexQuotaLimits {\n /**\n * limit of regular single-field indexes, even if 0 1-field indices may be created using\n * 3-field quota (if available)\n */\n regular1Field?: number;\n /** limit of regular indexes up to 3-fields (in addition to 1-field indexes quota) */\n regular3Field?: number;\n /** limit of unique indexes */\n unique1Field?: number;\n /** Maximum number of regular and unique indexes allowed for this collection. */\n total?: number;\n}\n\nexport interface Field extends FieldRangeValidationsOneOf {\n /** Range of possible values for a numerical field. */\n numberRange?: NumberRange;\n /** Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`. */\n stringLengthRange?: StringLengthRange;\n /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */\n arraySizeRange?: ArraySizeRange;\n /**\n * Unique identifier for the field. For example, `firstName`.\n * @maxLength 1000\n */\n key?: string;\n /**\n * Field's display name when displayed in the CMS. For example, `First Name`.\n * @maxLength 1000\n */\n displayName?: string | null;\n /**\n * Field's data type.\n *\n * Learn more about data types in Wix Data ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data)).\n */\n type?: TypeWithLiterals;\n /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */\n typeMetadata?: TypeMetadata;\n /**\n * Whether the field is a system field.\n * @readonly\n */\n systemField?: boolean;\n /**\n * Capabilities the field supports.\n * @readonly\n */\n capabilities?: FieldCapabilities;\n /** Whether the field is encrypted. */\n encrypted?: boolean;\n /**\n * Field description.\n * @maxLength 16000\n */\n description?: string | null;\n /**\n * Whether the field is read-only. A read-only field can't be changed.\n *\n * Default: `false`\n */\n readOnly?: boolean | null;\n /**\n * Whether the field is immutable. An immutable field can be set once, but then cannot be updated.\n *\n * Default: `false`\n */\n immutable?: boolean | null;\n /**\n * Whether the field is required.\n *\n * Default: `false`\n */\n required?: boolean | null;\n /**\n * Additional optional plugins for the field.\n * @maxSize 100\n */\n plugins?: FieldPlugin[];\n}\n\n/** @oneof */\nexport interface FieldRangeValidationsOneOf {\n /** Range of possible values for a numerical field. */\n numberRange?: NumberRange;\n /** Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`. */\n stringLengthRange?: StringLengthRange;\n /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */\n arraySizeRange?: ArraySizeRange;\n}\n\nexport enum Type {\n UNKNOWN_FIELD_TYPE = 'UNKNOWN_FIELD_TYPE',\n /** Plain-text string. */\n TEXT = 'TEXT',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Date string in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`. */\n DATE = 'DATE',\n /** [JavaScript Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data)) or an object in the following format: `\"someFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}` ([REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data)). */\n DATETIME = 'DATETIME',\n /** Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URL. */\n IMAGE = 'IMAGE',\n /** Boolean `true` or `false` value. */\n BOOLEAN = 'BOOLEAN',\n /** Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URL. */\n DOCUMENT = 'DOCUMENT',\n /** URL in one of the following formats: `http://`, `https://`, `ftp://`, `mailto:`, `sms:`, `tel:`. */\n URL = 'URL',\n /** [Rich-text](https://dev.wix.com/docs/rest/articles/getting-started/rich-text) string that may contain a subset of HTML tags. */\n RICH_TEXT = 'RICH_TEXT',\n /** Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URL. */\n VIDEO = 'VIDEO',\n /** Any field type. */\n ANY = 'ANY',\n /** Array of strings. */\n ARRAY_STRING = 'ARRAY_STRING',\n /** Array of documents: web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URLs. */\n ARRAY_DOCUMENT = 'ARRAY_DOCUMENT',\n /** Web URL or a [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URL. */\n AUDIO = 'AUDIO',\n /** Time string in `hh:mm:ss.SSS` format. */\n TIME = 'TIME',\n /** Language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. These may include country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format. */\n LANGUAGE = 'LANGUAGE',\n /** [Rich content](https://dev.wix.com/docs/ricos/getting-started/introduction). */\n RICH_CONTENT = 'RICH_CONTENT',\n /** Array of web or [Media Manager](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction) URLs. */\n MEDIA_GALLERY = 'MEDIA_GALLERY',\n /** Physical address object ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data#address-object) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data#address-object)). */\n ADDRESS = 'ADDRESS',\n /** [Dynamic page link](https://support.wix.com/en/article/cms-linking-to-dynamic-pages). */\n PAGE_LINK = 'PAGE_LINK',\n /** Reference to another item in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items)) to learn about item references. */\n REFERENCE = 'REFERENCE',\n /** References to multiple items in another collection. See Query Referenced Data Items ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/items/query-referenced) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/query-referenced-data-items)) to learn about item references. */\n MULTI_REFERENCE = 'MULTI_REFERENCE',\n /** JSON object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_TIME = 'LEGACY_TIME',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_BOOK = 'LEGACY_BOOK',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_EXTERNAL_URL = 'LEGACY_EXTERNAL_URL',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_BROKEN_REFERENCE = 'LEGACY_BROKEN_REFERENCE',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_IMAGE = 'LEGACY_IMAGE',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_COLOR = 'LEGACY_COLOR',\n /** Deprecated type that might appear in legacy collections. */\n LEGACY_EXTERNAL_VIDEO = 'LEGACY_EXTERNAL_VIDEO',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n | Type\n | 'UNKNOWN_FIELD_TYPE'\n | 'TEXT'\n | 'NUMBER'\n | 'DATE'\n | 'DATETIME'\n | 'IMAGE'\n | 'BOOLEAN'\n | 'DOCUMENT'\n | 'URL'\n | 'RICH_TEXT'\n | 'VIDEO'\n | 'ANY'\n | 'ARRAY_STRING'\n | 'ARRAY_DOCUMENT'\n | 'AUDIO'\n | 'TIME'\n | 'LANGUAGE'\n | 'RICH_CONTENT'\n | 'MEDIA_GALLERY'\n | 'ADDRESS'\n | 'PAGE_LINK'\n | 'REFERENCE'\n | 'MULTI_REFERENCE'\n | 'OBJECT'\n | 'ARRAY'\n | 'LEGACY_TIME'\n | 'LEGACY_BOOK'\n | 'LEGACY_EXTERNAL_URL'\n | 'LEGACY_BROKEN_REFERENCE'\n | 'LEGACY_IMAGE'\n | 'LEGACY_COLOR'\n | 'LEGACY_EXTERNAL_VIDEO';\n\nexport interface TypeMetadata extends TypeMetadataMetadataOneOf {\n /** Metadata for a reference field. */\n reference?: Reference;\n /** Metadata for a multi-reference field. */\n multiReference?: MultiReference;\n /** Metadata for an object field. */\n object?: _Object;\n /** Metadata for an array field. */\n array?: _Array;\n /** Metadata for a page link field. */\n pageLink?: PageLink;\n}\n\n/** @oneof */\nexport interface TypeMetadataMetadataOneOf {\n /** Metadata for a reference field. */\n reference?: Reference;\n /** Metadata for a multi-reference field. */\n multiReference?: MultiReference;\n /** Metadata for an object field. */\n object?: _Object;\n /** Metadata for an array field. */\n array?: _Array;\n /** Metadata for a page link field. */\n pageLink?: PageLink;\n}\n\nexport interface FieldCapabilities {\n /**\n * Whether the collection can be sorted by this field.\n *\n * Default: `false`\n */\n sortable?: boolean;\n /**\n * Query operators that can be used for this field.\n * @maxSize 100\n */\n queryOperators?: QueryOperatorWithLiterals[];\n}\n\nexport enum QueryOperator {\n EQ = 'EQ',\n LT = 'LT',\n GT = 'GT',\n NE = 'NE',\n LTE = 'LTE',\n GTE = 'GTE',\n STARTS_WITH = 'STARTS_WITH',\n ENDS_WITH = 'ENDS_WITH',\n CONTAINS = 'CONTAINS',\n HAS_SOME = 'HAS_SOME',\n HAS_ALL = 'HAS_ALL',\n EXISTS = 'EXISTS',\n URLIZED = 'URLIZED',\n}\n\n/** @enumType */\nexport type QueryOperatorWithLiterals =\n | QueryOperator\n | 'EQ'\n | 'LT'\n | 'GT'\n | 'NE'\n | 'LTE'\n | 'GTE'\n | 'STARTS_WITH'\n | 'ENDS_WITH'\n | 'CONTAINS'\n | 'HAS_SOME'\n | 'HAS_ALL'\n | 'EXISTS'\n | 'URLIZED';\n\nexport interface ObjectField {\n /**\n * Field ID.\n * @maxLength 1000\n */\n key?: string;\n /**\n * Display name for the field.\n * @maxLength 1000\n */\n displayName?: string | null;\n /**\n * Field type.\n *\n * Learn more about data types in Wix Data ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/data-types-in-wix-data) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data)).\n */\n type?: TypeWithLiterals;\n /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */\n typeMetadata?: TypeMetadata;\n /**\n * Capabilities the object field supports.\n * @readonly\n */\n capabilities?: FieldCapabilities;\n}\n\nexport interface FieldsPattern {\n /** @maxLength 1000 */\n pattern?: string;\n lowercase?: boolean;\n}\n\nexport interface UrlizedOnlyPattern {\n /** @maxLength 1000 */\n pattern?: string;\n}\n\nexport interface Calculator extends CalculatorPatternOneOf {\n /** Value is calculated according to pattern, whitespaces are replaced with dash [-]. */\n fieldsPattern?: FieldsPattern;\n /** Value is only URL encoded. */\n urlizedOnlyPattern?: UrlizedOnlyPattern;\n}\n\n/** @oneof */\nexport interface CalculatorPatternOneOf {\n /** Value is calculated according to pattern, whitespaces are replaced with dash [-]. */\n fieldsPattern?: FieldsPattern;\n /** Value is only URL encoded. */\n urlizedOnlyPattern?: UrlizedOnlyPattern;\n}\n\nexport interface Reference {\n /**\n * Referenced collection ID.\n * @maxLength 256\n */\n referencedCollectionId?: string;\n}\n\nexport interface MultiReference {\n /**\n * Referenced collection ID.\n * @maxLength 256\n */\n referencedCollectionId?: string;\n /**\n * Referencing field ID.\n * @maxLength 1000\n */\n referencingFieldKey?: string;\n /**\n * Display name in the CMS for the referenced data.\n * @maxLength 1000\n */\n referencingDisplayName?: string;\n}\n\nexport interface _Object {\n /**\n * Fields within the object.\n * @maxSize 1000\n */\n fields?: ObjectField[];\n}\n\nexport interface _Array {\n /** Element's data type. */\n elementType?: TypeWithLiterals;\n /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */\n typeMetadata?: TypeMetadata;\n}\n\nexport interface PageLink {\n calculator?: Calculator;\n /**\n * Defines reference to router pattern in the site document.\n * @maxLength 1000\n */\n linkedRouterPage?: string | null;\n}\n\nexport interface NumberRange {\n /**\n * Minimum permitted value for a numerical field.\n *\n * Default: No validation\n */\n min?: number | null;\n /**\n * Maximum permitted value for a numerical field.\n *\n * Default: No validation\n */\n max?: number | null;\n}\n\nexport interface StringLengthRange {\n /**\n * Minimum permitted length for a text field.\n *\n * Default: No validation\n */\n minLength?: number | null;\n /**\n * Maximum permitted length for a text field.\n *\n * Default: No validation\n */\n maxLength?: number | null;\n}\n\nexport interface ArraySizeRange {\n /**\n * Minimum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.\n *\n * Default: No validation\n */\n minSize?: number | null;\n /**\n * Maximum permitted number of items in an array field. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`.\n *\n * Default: No validation\n */\n maxSize?: number | null;\n}\n\n/** Optional plug-in aspects for fields */\nexport interface FieldPlugin extends FieldPluginOptionsOneOf {\n /** Options for the CMS plugin. */\n cmsOptions?: CmsOptions;\n type?: FieldPluginTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface FieldPluginOptionsOneOf {\n /** Options for the CMS plugin. */\n cmsOptions?: CmsOptions;\n}\n\nexport enum FieldPluginType {\n /** Uknown plugin type. */\n UNKNOWN = 'UNKNOWN',\n /** CMS-related field attributes */\n CMS = 'CMS',\n}\n\n/** @enumType */\nexport type FieldPluginTypeWithLiterals = FieldPluginType | 'UNKNOWN' | 'CMS';\n\n/** Options for the CMS plugin. */\nexport interface CmsOptions {\n /**\n * Indicates an internal CMS field. The CMS does not display internal fields.\n *\n * Default: `false`\n */\n internal?: boolean;\n}\n\n/** Permissions defined by the lowest role needed to perform each action. */\nexport interface Permissions {\n /** Lowest role needed to add a collection. */\n insert?: RoleWithLiterals;\n /** Lowest role needed to update a collection. */\n update?: RoleWithLiterals;\n /** Lowest role needed to remove a collection. */\n remove?: RoleWithLiterals;\n /** Lowest role needed to read a collection. */\n read?: RoleWithLiterals;\n}\n\nexport enum Role {\n /** Unknown role. */\n UNKNOWN_ROLE = 'UNKNOWN_ROLE',\n /** Site administrator. */\n ADMIN = 'ADMIN',\n /** Signed-in user who added content to this collection. */\n SITE_MEMBER_AUTHOR = 'SITE_MEMBER_AUTHOR',\n /** Any signed-in user. */\n SITE_MEMBER = 'SITE_MEMBER',\n /** Any site visitor. */\n ANYONE = 'ANYONE',\n}\n\n/** @enumType */\nexport type RoleWithLiterals =\n | Role\n | 'UNKNOWN_ROLE'\n | 'ADMIN'\n | 'SITE_MEMBER_AUTHOR'\n | 'SITE_MEMBER'\n | 'ANYONE';\n\nexport interface Plugin extends PluginOptionsOneOf {\n /**\n * Options for the Publish plugin.\n * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.\n */\n publishOptions?: PublishPluginOptions;\n /** Options for the Single Item plugin. */\n singleItemOptions?: SingleItemPluginOptions;\n /** Options for the Urlized plugin. */\n urlizedOptions?: UrlizedPluginOptions;\n /** Options for the Multilingual plugin. */\n multilingualOptions?: MultilingualOptions;\n /** Options for the PageLink plugin. */\n editablePageLinkOptions?: PageLinkPluginOptions;\n /** Options for the CMS plugin. */\n cmsOptions?: PluginCmsOptions;\n /** Plugin type. */\n type?: PluginTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface PluginOptionsOneOf {\n /**\n * Options for the Publish plugin.\n * This plugin allows items in a [data collection](https://dev.wix.com/docs/rest/business-solutions/cms/data-collections/data-collection-object) to be marked as draft or published. Published items are visible to site visitors, while draft items are not.\n */\n publishOptions?: PublishPluginOptions;\n /** Options for the Single Item plugin. */\n singleItemOptions?: SingleItemPluginOptions;\n /** Options for the Urlized plugin. */\n urlizedOptions?: UrlizedPluginOptions;\n /** Options for the Multilingual plugin. */\n multilingualOptions?: MultilingualOptions;\n /** Options for the PageLink plugin. */\n editablePageLinkOptions?: PageLinkPluginOptions;\n /** Options for the CMS plugin. */\n cmsOptions?: PluginCmsOptions;\n}\n\nexport enum Status {\n UNKNOWN_PUBLISH_PLUGIN_STATUS = 'UNKNOWN_PUBLISH_PLUGIN_STATUS',\n PUBLISHED = 'PUBLISHED',\n DRAFT = 'DRAFT',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_PUBLISH_PLUGIN_STATUS'\n | 'PUBLISHED'\n | 'DRAFT';\n\nexport enum Format {\n UNKNOWN_URLIZED_PLUGIN_FORMAT = 'UNKNOWN_URLIZED_PLUGIN_FORMAT',\n /** Letters are converted to lower case and spaces are replaced with dashes before generating the encoded URL. */\n ORIGINAL = 'ORIGINAL',\n /** No changes are made before generating the encoded URL. */\n PLAIN = 'PLAIN',\n}\n\n/** @enumType */\nexport type FormatWithLiterals =\n | Format\n | 'UNKNOWN_URLIZED_PLUGIN_FORMAT'\n | 'ORIGINAL'\n | 'PLAIN';\n\n/** if CMS-defined sort is enabled and should be used in site */\nexport interface SiteSort {\n /**\n * Field and order for the site sort.\n * @maxSize 100\n */\n sort?: Sort[];\n}\n\nexport enum PluginType {\n /** Unknown plugin type. */\n UNKNOWN_PLUGIN_TYPE = 'UNKNOWN_PLUGIN_TYPE',\n /** Allows items to be marked as either draft or published. For each item you can set a publishing time when the item will become visible to site visitors. */\n PUBLISH = 'PUBLISH',\n /** Ensures the collection can have one item at most. Can only be applied to a new collection. */\n SINGLE_ITEM = 'SINGLE_ITEM',\n /** Generates item URLs for collections used by dynamic pages. */\n URLIZED = 'URLIZED',\n /** Deprecated. Will be removed in the future. */\n GRIDAPPLESS = 'GRIDAPPLESS',\n /** Indicates that the collection is translatable. This allows you to manage translation for selected fields using [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual). */\n MULTILINGUAL = 'MULTILINGUAL',\n /** Indicates that collection is shared with current site. */\n SHARED = 'SHARED',\n /** Indicates that page link fields are persisted and can be updated. */\n EDITABLE_PAGE_LINK = 'EDITABLE_PAGE_LINK',\n /** CMS-specific collection properties. */\n CMS = 'CMS',\n}\n\n/** @enumType */\nexport type PluginTypeWithLiterals =\n | PluginType\n | 'UNKNOWN_PLUGIN_TYPE'\n | 'PUBLISH'\n | 'SINGLE_ITEM'\n | 'URLIZED'\n | 'GRIDAPPLESS'\n | 'MULTILINGUAL'\n | 'SHARED'\n | 'EDITABLE_PAGE_LINK'\n | 'CMS';\n\nexport interface PublishPluginOptions {\n /** Default status. */\n defaultStatus?: StatusWithLiterals;\n}\n\nexport interface SingleItemPluginOptions {\n /**\n * ID of the single item in this collection. If you insert or update an item, its ID value is always changed to this.\n * @maxLength 16000\n */\n singleItemId?: string;\n}\n\nexport interface UrlizedPluginOptions {\n /** Encoding method for generating a URL in ASCII characters. */\n format?: FormatWithLiterals;\n}\n\nexport interface MultilingualOptions {\n /**\n * IDs of fields to allow translation.\n * @maxSize 1000\n * @maxLength 1000\n */\n translatableFieldKeys?: string[];\n}\n\nexport interface PageLinkPluginOptions {\n isPersisted?: boolean;\n isMutable?: boolean;\n}\n\nexport interface PluginCmsOptions {\n /** CMS sort, applied when a collection is displayed on a site. */\n siteSort?: SiteSort;\n}\n\nexport enum PagingMode {\n /** Offset-based paging. */\n OFFSET = 'OFFSET',\n /** Cursor-based paging. */\n CURSOR = 'CURSOR',\n}\n\n/** @enumType */\nexport type PagingModeWithLiterals = PagingMode | 'OFFSET' | 'CURSOR';\n\n/** Data permissions defined by access level for each action. */\nexport interface DataPermissions {\n /** Access level for data items read */\n itemRead?: AccessLevelWithLiterals;\n /** Access level for data items insert */\n itemInsert?: AccessLevelWithLiterals;\n /** Access level for data items update */\n itemUpdate?: AccessLevelWithLiterals;\n /** Access level for data items removal */\n itemRemove?: AccessLevelWithLiterals;\n}\n\n/**\n * Describes who can perform certain action.\n * Each level includes all levels below it (except UNDEFINED).\n */\nexport enum AccessLevel {\n /** Not set. */\n UNDEFINED = 'UNDEFINED',\n /** Any subject, including visitors. */\n ANYONE = 'ANYONE',\n /** Any signed-in user (both site members and collaborators). */\n SITE_MEMBER = 'SITE_MEMBER',\n /** Any signed-in user, but site members only have access to own items. */\n SITE_MEMBER_AUTHOR = 'SITE_MEMBER_AUTHOR',\n /** Site collaborator that has a role with CMS Access permission. */\n CMS_EDITOR = 'CMS_EDITOR',\n /** CMS administrators and users or roles granted with special access. */\n PRIVILEGED = 'PRIVILEGED',\n}\n\n/** @enumType */\nexport type AccessLevelWithLiterals =\n | AccessLevel\n | 'UNDEFINED'\n | 'ANYONE'\n | 'SITE_MEMBER'\n | 'SITE_MEMBER_AUTHOR'\n | 'CMS_EDITOR'\n | 'PRIVILEGED';\n\nexport interface AllowedDataPermissions {\n /** If data items read permitted */\n itemRead?: boolean;\n /** If for data items insert permitted */\n itemInsert?: boolean;\n /** If data items update permitted */\n itemUpdate?: boolean;\n /** If data items removal permitted */\n itemRemove?: boolean;\n}\n\nexport interface DataCollectionClonedEvent {\n /**\n * Instance ID of the collection from which the data is cloned.\n * @format GUID\n */\n originInstanceId?: string;\n /**\n * ID of the collection from which the data is cloned.\n * @maxLength 256\n */\n originId?: string;\n}\n\nexport interface DataCollectionChangedEvent {\n /**\n * list of new fields\n * @maxSize 1000\n */\n fieldsAdded?: Field[];\n /**\n * list of changed fields\n * @maxSize 1000\n */\n fieldsUpdated?: FieldUpdate[];\n /**\n * list of removed fields\n * @maxSize 1000\n */\n fieldsRemoved?: Field[];\n /**\n * list of new plugins\n * @maxSize 100\n */\n pluginsAdded?: Plugin[];\n /**\n * list of changed plugins\n * @maxSize 100\n */\n pluginsUpdated?: PluginUpdate[];\n /**\n * list of removed plugins\n * @maxSize 100\n */\n pluginsRemoved?: Plugin[];\n}\n\nexport interface FieldUpdate {\n /** previous state of the field */\n previous?: Field;\n /** current state of the field */\n current?: Field;\n}\n\nexport interface PluginUpdate {\n /** previous state of the plugin */\n previous?: Plugin;\n /** current state of the plugin */\n current?: Plugin;\n}\n\nexport interface DataCollectionEvictedEvent {\n /**\n * ID of the collection that was permanently deleted.\n * @minLength 1\n * @maxLength 1000\n */\n _id?: string;\n}\n\nexport interface CreateDataCollectionRequest {\n /** Collection details. */\n collection: DataCollection;\n}\n\nexport interface CreateDataCollectionResponse {\n /** Details of collection created. */\n collection?: DataCollection;\n}\n\nexport interface GetDataCollectionRequest {\n /**\n * ID of the collection to retrieve.\n * @maxLength 256\n */\n dataCollectionId: string;\n /**\n * Whether to retrieve data from the primary database instance.\n * This decreases performance but ensures data retrieved is up to date even immediately after an update.\n * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).\n *\n * Default: `false`\n */\n consistentRead?: boolean;\n /**\n * If set allowed for caller data permissions would be included in the response\n * @internal\n */\n includeAllowedDataPermissions?: boolean;\n /**\n * List of specific field names to return, if empty all fields are returned.\n * Affects all returned collections\n * @maxSize 100\n * @maxLength 1000\n */\n fields?: string[];\n}\n\nexport enum Segment {\n UNKNOWN_SEGMENT = 'UNKNOWN_SEGMENT',\n PUBLIC = 'PUBLIC',\n DEV = 'DEV',\n}\n\n/** @enumType */\nexport type SegmentWithLiterals =\n | Segment\n | 'UNKNOWN_SEGMENT'\n | 'PUBLIC'\n | 'DEV';\n\nexport interface GetDataCollectionResponse {\n /** Details of the collection requested. */\n collection?: DataCollection;\n /**\n * Details of collections referenced by the collection requested.\n * Only populated when `includeReferencedCollections` is `true` in the request.\n */\n referencedCollections?: DataCollection[];\n}\n\nexport interface ListDataCollectionsRequest {\n /**\n * Defines how collections in the response are sorted.\n *\n * Default: Ordered by ID in ascending order.\n */\n sort?: Sorting;\n /** Pagination information. */\n paging?: Paging;\n /**\n * Whether to retrieve data from the primary database instance.\n * This decreases performance but ensures data retrieved is up to date even immediately after an update.\n * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).\n *\n * Default: `false`\n */\n consistentRead?: boolean;\n /**\n * If set allowed for caller data permissions would be included in the response\n * @internal\n */\n includeAllowedDataPermissions?: boolean;\n /**\n * List of specific field names to return, if empty all fields are returned.\n * Affects all returned collections\n * @maxSize 100\n * @maxLength 128\n */\n fields?: string[];\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 1000\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface ListDataCollectionsResponse {\n /** List of collections. */\n collections?: DataCollection[];\n /** Paging information. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n}\n\nexport interface BulkGetDataCollectionsRequest {\n /**\n * IDs of the collections to retrieve.\n * @minSize 1\n * @maxSize 100\n * @maxLength 256\n */\n dataCollectionIds?: string[];\n /**\n * Whether to include deleted collections.\n *\n * Default: `false`\n */\n showDeletedCollections?: boolean;\n /**\n * Whether the returned collection list should include referenced collections.\n *\n * Default: `false`\n */\n includeReferencedCollections?: boolean;\n /** Sorting preferences. */\n sort?: Sorting;\n /**\n * Whether to retrieve data from the primary database instance.\n * This decreases performance but ensures data retrieved is up to date even immediately after an update.\n * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).\n *\n * Default: `false`\n */\n consistentRead?: boolean;\n /**\n * If set allowed for caller data permissions would be included in the response\n * @internal\n */\n includeAllowedDataPermissions?: boolean;\n /**\n * List of specific field names to return, if empty all fields are returned.\n * Affects all returned collections\n * @maxSize 100\n * @maxLength 1000\n */\n fields?: string[];\n}\n\nexport interface BulkGetDataCollectionsResponse {\n /**\n * List of requested collections.\n * When `include_referenced_collections` is `true` in the request, referenced collections are included here.\n */\n activeCollections?: DataCollection[];\n /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */\n deletedCollections?: DataCollection[];\n}\n\nexport interface UpdateDataCollectionRequest {\n /** Updated collection details. The existing collection is replaced with this version. */\n collection: DataCollection;\n}\n\nexport interface UpdateDataCollectionResponse {\n /** Updated collection details. */\n collection?: DataCollection;\n}\n\nexport interface DeleteDataCollectionRequest {\n /**\n * ID of the collection to delete.\n * @maxLength 256\n */\n dataCollectionId: string;\n}\n\nexport interface DeleteDataCollectionResponse {}\n\nexport interface RestoreDataCollectionRequest {\n /**\n * Data Collection ID to restore\n * @maxLength 256\n */\n dataCollectionId?: string;\n}\n\nexport interface RestoreDataCollectionResponse {\n /** Restored data collection */\n dataCollection?: DataCollection;\n}\n\nexport interface CreateDataCollectionFieldRequest {\n /**\n * ID of data collection to update\n * @maxLength 256\n */\n dataCollectionId: string;\n /** field to create */\n field: Field;\n}\n\nexport interface CreateDataCollectionFieldResponse {\n /** updated data collection */\n dataCollection?: DataCollection;\n}\n\nexport interface UpdateDataCollectionFieldRequest {\n /**\n * ID of data collection to update\n * @maxLength 256\n */\n dataCollectionId: string;\n /** Field to update */\n field: Field;\n}\n\nexport interface UpdateDataCollectionFieldResponse {\n /** updated data collection */\n dataCollection?: DataCollection;\n}\n\nexport interface DeleteDataCollectionFieldRequest {\n /**\n * ID of data collection to update\n * @maxLength 256\n */\n dataCollectionId: string;\n /**\n * Field ID to delete\n * @maxLength 1000\n */\n fieldKey: string;\n}\n\nexport interface DeleteDataCollectionFieldResponse {\n /** updated data collection */\n dataCollection?: DataCollection;\n}\n\nexport interface UpdateDataPermissionsRequest {\n /**\n * ID of data collections to update\n * @maxLength 256\n */\n dataCollectionId?: string;\n /** Data permissions to set */\n dataPermissions?: DataPermissions;\n}\n\nexport interface UpdateDataPermissionsResponse {\n /** Updated data collection */\n dataCollection?: DataCollection;\n}\n\nexport interface BulkGetDataCollectionsPageBySnapshotsRequest {\n /**\n * Ids of schema snapshot\n * @format GUID\n * @minSize 1\n * @maxSize 1000\n */\n snapshotIds?: string[];\n /** Pagination information. */\n paging?: Paging;\n}\n\nexport interface BulkGetDataCollectionsPageBySnapshotsResponse {\n /** List of snapshot collection map */\n snapshotCollections?: SnapshotCollection[];\n /** Paging information. */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface SnapshotCollection {\n /**\n * snapshot to which collection belongs\n * @format GUID\n */\n snapshotId?: string;\n /** snapshot collection */\n collection?: DataCollection;\n /**\n * snapshot of collection indexes\n * @maxSize 100\n */\n indexes?: Index[];\n}\n\n/** An index is a map of a collection's data, organized according to specific fields to increase query speed. */\nexport interface Index {\n /**\n * Name of the index.\n * @minLength 1\n * @maxLength 128\n */\n name?: string;\n /**\n * Fields for which the index is defined.\n *\n * Max: 3 fields (for a unique index: 1 field)\n * @minSize 1\n * @maxSize 3\n */\n fields?: IndexField[];\n /**\n * Current status of the index.\n * @readonly\n */\n status?: IndexStatusWithLiterals;\n /**\n * Contains details about the reasons for failure when `status` is `FAILED`.\n * @readonly\n */\n failure?: Failure;\n /**\n * Whether the index enforces uniqueness of values in the field for which it is defined.\n * If `true`, the index can have only one field.\n *\n * Default: `false`\n */\n unique?: boolean;\n /**\n * Whether the index ignores case.\n *\n * Default: `false`\n */\n caseInsensitive?: boolean;\n /** Specifies the origin of the index definition. */\n source?: IndexSourceWithLiterals;\n}\n\n/**\n * Order determines how values are ordered in the index. This is important when\n * ordering and/or range querying by indexed fields.\n */\nexport enum Order {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type OrderWithLiterals = Order | 'ASC' | 'DESC';\n\nexport interface IndexField {\n /**\n * Path of the field to index. For example: `title` or `options.price`.\n * @minLength 1\n * @maxLength 128\n */\n path?: string;\n /**\n * Sort order for the index. Base on how the data is regularly queried.\n *\n * Default: `ASC`\n */\n order?: OrderWithLiterals;\n}\n\nexport enum IndexStatus {\n /** Place holder. Never returned by the service. */\n UNKNOWN = 'UNKNOWN',\n /** Index creation is in progress. */\n BUILDING = 'BUILDING',\n /** Index has been successfully created and can be used in queries. */\n ACTIVE = 'ACTIVE',\n /** Index is in the process of being dropped. */\n DROPPING = 'DROPPING',\n /** Index has been dropped successfully. */\n DROPPED = 'DROPPED',\n /** Index creation has failed. */\n FAILED = 'FAILED',\n /** Index contains incorrectly indexed data. */\n INVALID = 'INVALID',\n}\n\n/** @enumType */\nexport type IndexStatusWithLiterals =\n | IndexStatus\n | 'UNKNOWN'\n | 'BUILDING'\n | 'ACTIVE'\n | 'DROPPING'\n | 'DROPPED'\n | 'FAILED'\n | 'INVALID';\n\nexport interface Failure {\n /**\n * Error code.\n * - `WDE0112`: Unknown error while building collection index.\n * - `WDE0113`: Duplicate key error while building collection index.\n * - `WDE0114`: Document too large while building collection index.\n * @maxLength 7\n */\n code?: string;\n /**\n * Description of the failure.\n * @maxLength 1024\n */\n description?: string;\n /**\n * ID of the data item that caused the failure.\n * For example, if `unique` is `true`, the ID of an item containing a duplicate value.\n * @maxLength 16000\n */\n itemId?: string | null;\n}\n\nexport enum IndexSource {\n /** Place holder. Never returned by the service. */\n UNKNOWN_INDEX_SOURCE = 'UNKNOWN_INDEX_SOURCE',\n /** Index is created by the system, present for all collections. */\n SYSTEM = 'SYSTEM',\n /** Index was created by a user via API or UI. */\n USER = 'USER',\n /** Index is created automatically by the system based on user queries. */\n AUTO = 'AUTO',\n}\n\n/** @enumType */\nexport type IndexSourceWithLiterals =\n | IndexSource\n | 'UNKNOWN_INDEX_SOURCE'\n | 'SYSTEM'\n | 'USER'\n | 'AUTO';\n\nexport interface CreateDataCollectionsSnapshotRequest {}\n\nexport interface CreateDataCollectionsSnapshotResponse {\n /**\n * created snapshot ID\n * @format GUID\n */\n snapshotId?: string;\n /** data collections in snapshot */\n snapshotCollections?: DataCollection[];\n}\n\nexport interface RestoreDataCollectionsFromSnapshotRequest {\n /**\n * snapshot ID to restore\n * @format GUID\n */\n snapshotId?: string;\n /**\n * collection IDs to restore, if empty – all collections would be restored\n * @maxSize 1000\n * @maxLength 256\n * @deprecated\n * @replacedBy restoration_collections\n * @targetRemovalDate 2025-12-31\n */\n dataCollectionIds?: string[];\n /**\n * collection to restore, if empty – all collections would be restored\n * @maxSize 1000\n */\n restorationCollections?: RestorationCollection[];\n}\n\nexport interface Destination {\n /**\n * Collection id.\n * @minLength 1\n * @maxLength 1000\n */\n dataCollectionId?: string;\n /**\n * Display name. When not specified value is taken from the snapshot.\n * @maxLength 1000\n */\n displayName?: string | null;\n}\n\nexport interface RestorationCollection {\n /**\n * Collection ID to restore\n * @minLength 1\n * @maxLength 1000\n */\n dataCollectionId?: string;\n /**\n * Destination where to restore the collection.\n * When not specified destination is taken from snapshot.\n */\n destination?: Destination;\n}\n\nexport interface RestoreDataCollectionsFromSnapshotResponse {\n /** restored collections */\n restoredCollections?: DataCollection[];\n}\n\nexport interface DeleteDataCollectionsSnapshotRequest {\n /**\n * snapshot ID to delete\n * @format GUID\n */\n snapshotId?: string;\n}\n\nexport interface DeleteDataCollectionsSnapshotResponse {}\n\nexport interface CreateMigratedCollectionsSnapshotRequest {\n /** @format GUID */\n existingSnapshotId?: string;\n /** @maxLength 255 */\n newNamespace?: string;\n /** @maxLength 255 */\n existingNamespace?: string;\n}\n\nexport interface CreateMigratedCollectionsSnapshotResponse {\n /** @format GUID */\n snapshotId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\ntype DataCollectionNonNullablePaths =\n | `_id`\n | `collectionType`\n | `defaultDisplayOrder.fieldKey`\n | `defaultDisplayOrder.direction`\n | `capabilities.dataOperations`\n | `capabilities.collectionOperations`\n | `capabilities.indexLimits.regular`\n | `capabilities.indexLimits.unique`\n | `capabilities.indexLimits.total`\n | `fields`\n | `fields.${number}.key`\n | `fields.${number}.type`\n | `fields.${number}.typeMetadata.reference.referencedCollectionId`\n | `fields.${number}.typeMetadata.multiReference.referencedCollectionId`\n | `fields.${number}.typeMetadata.multiReference.referencingFieldKey`\n | `fields.${number}.typeMetadata.multiReference.referencingDisplayName`\n | `fields.${number}.typeMetadata.array.elementType`\n | `fields.${number}.typeMetadata.pageLink.calculator.fieldsPattern.pattern`\n | `fields.${number}.typeMetadata.pageLink.calculator.fieldsPattern.lowercase`\n | `fields.${number}.typeMetadata.pageLink.calculator.urlizedOnlyPattern.pattern`\n | `fields.${number}.systemField`\n | `fields.${number}.encrypted`\n | `permissions.insert`\n | `permissions.update`\n | `permissions.remove`\n | `permissions.read`\n | `plugins`\n | `plugins.${number}.publishOptions.defaultStatus`\n | `plugins.${number}.singleItemOptions.singleItemId`\n | `plugins.${number}.urlizedOptions.format`\n | `plugins.${number}.editablePageLinkOptions.isPersisted`\n | `plugins.${number}.editablePageLinkOptions.isMutable`\n | `plugins.${number}.type`\n | `pagingModes`;\n\n/**\n * Creates a new data collection.\n *\n * 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.\n * @param collection - Collection details.\n * @public\n * @requiredField collection\n * @requiredField collection._id\n * @requiredField collection.fields.key\n * @requiredField collection.fields.type\n * @requiredField collection.permissions.insert\n * @requiredField collection.permissions.read\n * @requiredField collection.permissions.remove\n * @requiredField collection.permissions.update\n * @param options - Options for creating a data collection.\n * @permissionId WIX_DATA.CREATE_COLLECTION\n * @applicableIdentity APP\n * @returns Details of collection created.\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection\n */\nexport async function createDataCollection(\n collection: NonNullablePaths<\n DataCollection,\n | `_id`\n | `fields.${number}.key`\n | `fields.${number}.type`\n | `permissions.insert`\n | `permissions.read`\n | `permissions.remove`\n | `permissions.update`\n >\n): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n collection: collection,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.createDataCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { collection: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['collection']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a data collection by ID.\n * @param dataCollectionId - ID of the collection to retrieve.\n * @public\n * @requiredField dataCollectionId\n * @param options - Options for retrieving a data collection.\n * @permissionId WIX_DATA.GET_COLLECTION\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Details of the collection requested.\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection\n */\nexport async function getDataCollection(\n dataCollectionId: string,\n options?: GetDataCollectionOptions\n): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n consistentRead: options?.consistentRead,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixDataV2DataCollection.getDataCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n dataCollectionId: '$[0]',\n consistentRead: '$[1].consistentRead',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetDataCollectionOptions {\n /**\n * Whether to retrieve data from the primary database instance.\n * This decreases performance but ensures data retrieved is up to date even immediately after an update.\n * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).\n *\n * Default: `false`\n */\n consistentRead?: boolean;\n /**\n * List of specific field names to return, if empty all fields are returned.\n * Affects all returned collections\n * @maxSize 100\n * @maxLength 1000\n */\n fields?: string[];\n}\n\n/**\n * Retrieves a list of all data collections associated with the site or project.\n *\n * By default, the list is ordered by ID in ascending order.\n * @public\n * @param options - Options for retrieving a list of data collections.\n * @permissionId WIX_DATA.LIST_COLLECTIONS\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections\n */\nexport async function listDataCollections(\n options?: ListDataCollectionsOptions\n): Promise<\n NonNullablePaths<\n ListDataCollectionsResponse,\n {\n [P in DataCollectionNonNullablePaths]: `collections.${number}.${P}`;\n }[DataCollectionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sort: options?.sort,\n paging: options?.paging,\n consistentRead: options?.consistentRead,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.listDataCollections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sort: '$[0].sort',\n paging: '$[0].paging',\n consistentRead: '$[0].consistentRead',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDataCollectionsOptions {\n /**\n * Defines how collections in the response are sorted.\n *\n * Default: Ordered by ID in ascending order.\n */\n sort?: Sorting;\n /** Pagination information. */\n paging?: Paging;\n /**\n * Whether to retrieve data from the primary database instance.\n * This decreases performance but ensures data retrieved is up to date even immediately after an update.\n * Learn more about [Wix Data and eventual consistency](https://dev.wix.com/api/rest/wix-data/wix-data/eventual-consistency).\n *\n * Default: `false`\n */\n consistentRead?: boolean;\n /**\n * List of specific field names to return, if empty all fields are returned.\n * Affects all returned collections\n * @maxSize 100\n * @maxLength 128\n */\n fields?: string[];\n}\n\n/**\n * Updates a data collection.\n *\n * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.\n * If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.\n * Otherwise, the request fails.\n *\n * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.\n *\n * > **Note:**\n * > 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\n * > aren't included in the updated collection details, their values are lost.\n * @param collection - Updated collection details. The existing collection is replaced with this version.\n * @public\n * @requiredField collection\n * @requiredField collection._id\n * @requiredField collection.fields.key\n * @requiredField collection.fields.type\n * @requiredField collection.permissions.insert\n * @requiredField collection.permissions.read\n * @requiredField collection.permissions.remove\n * @requiredField collection.permissions.update\n * @requiredField collection.revision\n * @param options - Options for updating a data collection.\n * @permissionId WIX_DATA.UPDATE_COLLECTION\n * @applicableIdentity APP\n * @returns Updated collection details.\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection\n */\nexport async function updateDataCollection(\n collection: NonNullablePaths<\n DataCollection,\n | `_id`\n | `fields.${number}.key`\n | `fields.${number}.type`\n | `permissions.insert`\n | `permissions.read`\n | `permissions.remove`\n | `permissions.update`\n | `revision`\n >\n): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n collection: collection,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.updateDataCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.collection!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { collection: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['collection']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes a data collection.\n *\n * > **Note:**\n * > Once a collection is deleted, it can only be restored for limited amount of time.\n * @param dataCollectionId - ID of the collection to delete.\n * @public\n * @requiredField dataCollectionId\n * @permissionId WIX_DATA.DELETE_COLLECTION\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection\n */\nexport async function deleteDataCollection(\n dataCollectionId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.deleteDataCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dataCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Restores recently deleted collection.\n *\n * Fails with `WDE0025` if collection was deleted too long ago or has never existed.\n * @param dataCollectionId - Data Collection ID to restore\n * @internal\n * @documentationMaturity preview\n * @requiredField dataCollectionId\n * @permissionId WIX_DATA.CREATE_COLLECTION\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection\n */\nexport async function restoreDataCollection(\n dataCollectionId: string\n): Promise<\n NonNullablePaths<\n RestoreDataCollectionResponse,\n {\n [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;\n }[DataCollectionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.restoreDataCollection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dataCollectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds new field to data collection schema\n * @param dataCollectionId - ID of data collection to update\n * @internal\n * @documentationMaturity preview\n * @requiredField dataCollectionId\n * @requiredField options\n * @requiredField options.field\n * @permissionId WIX_DATA.CREATE_COLLECTION_FIELD\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField\n */\nexport async function createDataCollectionField(\n dataCollectionId: string,\n options: NonNullablePaths<CreateDataCollectionFieldOptions, `field`>\n): Promise<\n NonNullablePaths<\n CreateDataCollectionFieldResponse,\n {\n [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;\n }[DataCollectionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n field: options?.field,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.createDataCollectionField(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n dataCollectionId: '$[0]',\n field: '$[1].field',\n },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateDataCollectionFieldOptions {\n /** field to create */\n field: Field;\n}\n\n/**\n * Updates data collection field\n * @param dataCollectionId - ID of data collection to update\n * @internal\n * @documentationMaturity preview\n * @requiredField dataCollectionId\n * @requiredField options\n * @requiredField options.field\n * @permissionId WIX_DATA.UPDATE_COLLECTION_FIELD\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField\n */\nexport async function updateDataCollectionField(\n dataCollectionId: string,\n options: NonNullablePaths<UpdateDataCollectionFieldOptions, `field`>\n): Promise<\n NonNullablePaths<\n UpdateDataCollectionFieldResponse,\n {\n [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;\n }[DataCollectionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n field: options?.field,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.updateDataCollectionField(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n dataCollectionId: '$[0]',\n field: '$[1].field',\n },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateDataCollectionFieldOptions {\n /** Field to update */\n field: Field;\n}\n\n/**\n * Deletes data collection field\n * @param dataCollectionId - ID of data collection to update\n * @internal\n * @documentationMaturity preview\n * @requiredField dataCollectionId\n * @requiredField options\n * @requiredField options.fieldKey\n * @permissionId WIX_DATA.DELETE_COLLECTION_FIELD\n * @applicableIdentity APP\n * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField\n */\nexport async function deleteDataCollectionField(\n dataCollectionId: string,\n options: NonNullablePaths<DeleteDataCollectionFieldOptions, `fieldKey`>\n): Promise<\n NonNullablePaths<\n DeleteDataCollectionFieldResponse,\n {\n [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;\n }[DataCollectionNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dataCollectionId: dataCollectionId,\n fieldKey: options?.fieldKey,\n });\n\n const reqOpts =\n ambassadorWixDataV2DataCollection.deleteDataCollectionField(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n dataCollectionId: '$[0]',\n fieldKey: '$[1].fieldKey',\n },\n singleArgumentUnchanged: false,\n },\n ['dataCollectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteDataCollectionFieldOptions {\n /**\n * Field ID to delete\n * @maxLength 1000\n */\n fieldKey: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\nimport { _Array, _Object } from './data-v2-data-collection-collections.types';\n\nfunction resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/cloud-data',\n destPath: '',\n },\n ],\n 'code._base_domain_': [\n {\n srcPath: '/_api/cloud-data/v1/data-settings',\n destPath: '/v1/data-settings',\n },\n {\n srcPath: '/_api/cloud-data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/cloud-data/v1/connector',\n destPath: '/v1/connector',\n },\n {\n srcPath: '/_api/data/v1/data-settings',\n destPath: '/v1/data-settings',\n },\n {\n srcPath: '/_api/data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/data/v1/connector',\n destPath: '/v1/connector',\n },\n {\n srcPath: '/_api/cloud-data/v1/wix-data',\n destPath: '/v1/wix-data',\n },\n ],\n 'cloud-data.wix-code.com': [\n {\n srcPath: '',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n {\n srcPath: '/_api/data',\n destPath: '',\n },\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n ],\n 'dev._base_domain_': [\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/cloud-data/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/_api/cloud-data/v2',\n destPath: '/v2',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/cloud-data/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/_api/cloud-data/v2',\n destPath: '/v2',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/cloud-data/v1',\n destPath: '/v1',\n },\n {\n srcPath: '/_api/cloud-data/v2',\n destPath: '/v2',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n {\n srcPath: '/_api/data',\n destPath: '',\n },\n {\n srcPath: '/_api/cloud-data',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/cloud-data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/cloud-data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/cloud-data/v1/wix-data',\n destPath: '/v1/wix-data',\n },\n {\n srcPath: '/_api/cloud-data/v1/data-settings',\n destPath: '/v1/data-settings',\n },\n {\n srcPath: '/_api/data/v2/indexes',\n destPath: '/v2/indexes',\n },\n {\n srcPath: '/_api/cloud-data/v1/external-database-connections',\n destPath: '/v1/external-database-connections',\n },\n {\n srcPath: '/_api/data/v1/data-collection-sharing',\n destPath: '/v1/data-collection-sharing',\n },\n {\n srcPath: '/_api/cloud-data/v2/collections',\n destPath: '/v2/collections',\n },\n {\n srcPath: '/_api/cloud-data/v2/bulk',\n destPath: '/v2/bulk',\n },\n {\n srcPath: '/_api/cloud-data/v2/items',\n destPath: '/v2/items',\n },\n {\n srcPath: '/_api/cloud-data/v2/dbs/tasks',\n destPath: '/v2/dbs/tasks',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/cloud-data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/cloud-data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/cloud-data/v1/wix-data',\n destPath: '/v1/wix-data',\n },\n {\n srcPath: '/_api/cloud-data/v1/data-settings',\n destPath: '/v1/data-settings',\n },\n {\n srcPath: '/_api/data/v2/indexes',\n destPath: '/v2/indexes',\n },\n {\n srcPath: '/_api/cloud-data/v1/external-database-connections',\n destPath: '/v1/external-database-connections',\n },\n {\n srcPath: '/_api/data/v1/data-collection-sharing',\n destPath: '/v1/data-collection-sharing',\n },\n {\n srcPath: '/_api/cloud-data/v2/collections',\n destPath: '/v2/collections',\n },\n {\n srcPath: '/_api/cloud-data/v2/bulk',\n destPath: '/v2/bulk',\n },\n {\n srcPath: '/_api/cloud-data/v2/items',\n destPath: '/v2/items',\n },\n {\n srcPath: '/_api/cloud-data/v2/dbs/tasks',\n destPath: '/v2/dbs/tasks',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/cloud-data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/cloud-data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/data/v1/schemas',\n destPath: '/v1/schemas',\n },\n {\n srcPath: '/_api/data/dbs/tasks',\n destPath: '/dbs/tasks',\n },\n {\n srcPath: '/_api/cloud-data/v1/wix-data',\n destPath: '/v1/wix-data',\n },\n {\n srcPath: '/_api/cloud-data/v1/data-settings',\n destPath: '/v1/data-settings',\n },\n {\n srcPath: '/_api/data/v2/indexes',\n destPath: '/v2/indexes',\n },\n {\n srcPath: '/_api/cloud-data/v1/external-database-connections',\n destPath: '/v1/external-database-connections',\n },\n {\n srcPath: '/_api/data/v1/data-collection-sharing',\n destPath: '/v1/data-collection-sharing',\n },\n {\n srcPath: '/_api/cloud-data/v2/collections',\n destPath: '/v2/collections',\n },\n {\n srcPath: '/_api/cloud-data/v2/bulk',\n destPath: '/v2/bulk',\n },\n {\n srcPath: '/_api/cloud-data/v2/items',\n destPath: '/v2/items',\n },\n {\n srcPath: '/_api/cloud-data/v2/dbs/tasks',\n destPath: '/v2/dbs/tasks',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/wix-data/v1/collections',\n destPath: '/v1/wix-data/collections',\n },\n {\n srcPath: '/wix-data/v1/external-database-connections',\n destPath: '/v1/external-database-connections',\n },\n {\n srcPath: '/wix-data/v2/indexes',\n destPath: '/v2/indexes',\n },\n {\n srcPath: '/wix-data/v1/items',\n destPath: '/v1/items',\n },\n {\n srcPath: '/wix-data/v1/bulk',\n destPath: '/v1/bulk',\n },\n {\n srcPath: '/wix-data/v1/external-databases',\n destPath: '/v1/external-databases',\n },\n {\n srcPath: '/wix-data/v2',\n destPath: '/v2',\n },\n ],\n 'www.wixgateway.com': [\n {\n srcPath: '/wix-data/v1/items',\n destPath: '/v1/items',\n },\n {\n srcPath: '/wix-data/v1/bulk',\n destPath: '/v1/bulk',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/cloud-data/v2',\n destPath: '/v2',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_data_collections';\n\n/**\n * Creates a new data collection.\n *\n * 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.\n */\nexport function createDataCollection(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDataCollection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'collection.createdDate' },\n { path: 'collection.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'collection.fields.numberRange.min' },\n { path: 'collection.fields.numberRange.max' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'collection.createdDate' },\n { path: 'collection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'collection.fields.numberRange.min' },\n { path: 'collection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDataCollection;\n}\n\n/** Retrieves a data collection by ID. */\nexport function getDataCollection(payload: object): RequestOptionsFactory<any> {\n function __getDataCollection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections/{dataCollectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'collection.createdDate' },\n { path: 'collection.updatedDate' },\n { path: 'referencedCollections.createdDate' },\n { path: 'referencedCollections.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'collection.fields.numberRange.min' },\n { path: 'collection.fields.numberRange.max' },\n { path: 'referencedCollections.fields.numberRange.min' },\n { path: 'referencedCollections.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDataCollection;\n}\n\n/**\n * Retrieves a list of all data collections associated with the site or project.\n *\n * By default, the list is ordered by ID in ascending order.\n */\nexport function listDataCollections(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDataCollections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'collections.createdDate' },\n { path: 'collections.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'collections.fields.numberRange.min' },\n { path: 'collections.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDataCollections;\n}\n\n/**\n * Updates a data collection.\n *\n * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.\n * If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.\n * Otherwise, the request fails.\n *\n * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.\n *\n * > **Note:**\n * > 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\n * > aren't included in the updated collection details, their values are lost.\n */\nexport function updateDataCollection(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDataCollection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'collection.createdDate' },\n { path: 'collection.updatedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'collection.fields.numberRange.min' },\n { path: 'collection.fields.numberRange.max' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'collection.createdDate' },\n { path: 'collection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'collection.fields.numberRange.min' },\n { path: 'collection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDataCollection;\n}\n\n/**\n * Deletes a data collection.\n *\n * > **Note:**\n * > Once a collection is deleted, it can only be restored for limited amount of time.\n */\nexport function deleteDataCollection(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDataCollection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections/{dataCollectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteDataCollection;\n}\n\n/**\n * Restores recently deleted collection.\n *\n * Fails with `WDE0025` if collection was deleted too long ago or has never existed.\n */\nexport function restoreDataCollection(\n payload: object\n): RequestOptionsFactory<any> {\n function __restoreDataCollection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n {\n protoPath: '/v2/collections/restore/{dataCollectionId}',\n data: payload,\n host,\n }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dataCollection.createdDate' },\n { path: 'dataCollection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'dataCollection.fields.numberRange.min' },\n { path: 'dataCollection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __restoreDataCollection;\n}\n\n/** Adds new field to data collection schema */\nexport function createDataCollectionField(\n payload: object\n): RequestOptionsFactory<any> {\n function __createDataCollectionField({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'field.numberRange.min' },\n { path: 'field.numberRange.max' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n {\n protoPath: '/v2/collections/create-field',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dataCollection.createdDate' },\n { path: 'dataCollection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'dataCollection.fields.numberRange.min' },\n { path: 'dataCollection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createDataCollectionField;\n}\n\n/** Updates data collection field */\nexport function updateDataCollectionField(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateDataCollectionField({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'field.numberRange.min' },\n { path: 'field.numberRange.max' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n {\n protoPath: '/v2/collections/update-field',\n data: serializedData,\n host,\n }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dataCollection.createdDate' },\n { path: 'dataCollection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'dataCollection.fields.numberRange.min' },\n { path: 'dataCollection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateDataCollectionField;\n}\n\n/** Deletes data collection field */\nexport function deleteDataCollectionField(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteDataCollectionField({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.v2.data_collection',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(\n { protoPath: '/v2/collections/delete-field', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dataCollection.createdDate' },\n { path: 'dataCollection.updatedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'dataCollection.fields.numberRange.min' },\n { path: 'dataCollection.fields.numberRange.max' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteDataCollectionField;\n}\n"],"mappings":";;;;;;;;;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BAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,oBAAoB,SAAS;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAmBA,eAAsBQ,2BACpB,kBACA,SAQA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,IACA,UAAU,SAAS;AAAA,EACrB,CAAC;AAED,QAAM,UAC8B,0BAA0B,OAAO;AAErE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAR;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,kBAAkB;AAAA,UAClB,UAAU;AAAA,QACZ;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,oBAAoB,SAAS;AAAA,IAChC;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["createDataCollection","createDataCollectionField","deleteDataCollection","deleteDataCollectionField","getDataCollection","listDataCollections","restoreDataCollection","updateDataCollection","updateDataCollectionField","import_float","import_timestamp","import_rest_modules","payload","CollectionType","Direction","DataOperation","CollectionOperation","Type","QueryOperator","FieldPluginType","Role","Status","Format","PluginType","PagingMode","AccessLevel","Segment","SortOrder","Order","IndexStatus","IndexSource","WebhookIdentityType","createDataCollection","sdkTransformError","getDataCollection","listDataCollections","updateDataCollection","deleteDataCollection","restoreDataCollection","createDataCollectionField","updateDataCollectionField","deleteDataCollectionField"]}
@@ -1,4 +1,5 @@
1
- import { ai as CreateDataCollectionRequest$1, aj as CreateDataCollectionResponse$1, ak as GetDataCollectionRequest$1, al as GetDataCollectionResponse$1, am as ListDataCollectionsRequest$1, a as ListDataCollectionsResponse$1, as as UpdateDataCollectionRequest$1, at as UpdateDataCollectionResponse$1, au as DeleteDataCollectionRequest$1, av as DeleteDataCollectionResponse$1, aw as RestoreDataCollectionRequest$1, R as RestoreDataCollectionResponse$1, ax as CreateDataCollectionFieldRequest$1, b as CreateDataCollectionFieldResponse$1, ay as UpdateDataCollectionFieldRequest$1, c as UpdateDataCollectionFieldResponse$1, az as DeleteDataCollectionFieldRequest$1, e as DeleteDataCollectionFieldResponse$1 } from './data-v2-data-collection-collections.universal-DZ3_N2Cv.js';
1
+ import { CreateDataCollectionRequest as CreateDataCollectionRequest$1, CreateDataCollectionResponse as CreateDataCollectionResponse$1, GetDataCollectionRequest as GetDataCollectionRequest$1, GetDataCollectionResponse as GetDataCollectionResponse$1, ListDataCollectionsRequest as ListDataCollectionsRequest$1, ListDataCollectionsResponse as ListDataCollectionsResponse$1, UpdateDataCollectionRequest as UpdateDataCollectionRequest$1, UpdateDataCollectionResponse as UpdateDataCollectionResponse$1, DeleteDataCollectionRequest as DeleteDataCollectionRequest$1, DeleteDataCollectionResponse as DeleteDataCollectionResponse$1, RestoreDataCollectionRequest as RestoreDataCollectionRequest$1, RestoreDataCollectionResponse as RestoreDataCollectionResponse$1, CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest$1, CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse$1, UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest$1, UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse$1, DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest$1, DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
2
3
 
3
4
  /** A data collection determines the structure of data to be stored in a database. */
4
5
  interface DataCollection {
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { D as DataCollection, G as GetDataCollectionOptions, L as ListDataCollectionsOptions, a as ListDataCollectionsResponse, R as RestoreDataCollectionResponse, C as CreateDataCollectionFieldOptions, b as CreateDataCollectionFieldResponse, U as UpdateDataCollectionFieldOptions, c as UpdateDataCollectionFieldResponse, d as DeleteDataCollectionFieldOptions, e as DeleteDataCollectionFieldResponse } from './data-v2-data-collection-collections.universal-DZ3_N2Cv.mjs';
3
- export { A as AccessLevel, aY as ActionEvent, ac as AllowedDataPermissions, Y as ArraySizeRange, aC as BulkGetDataCollectionsPageBySnapshotsRequest, aD as BulkGetDataCollectionsPageBySnapshotsResponse, aq as BulkGetDataCollectionsRequest, ar as BulkGetDataCollectionsResponse, E as Calculator, H as CalculatorPatternOneOf, a0 as CmsOptions, q as CollectionCapabilities, i as CollectionOperation, f as CollectionType, ax as CreateDataCollectionFieldRequest, ai as CreateDataCollectionRequest, aj as CreateDataCollectionResponse, aI as CreateDataCollectionsSnapshotRequest, aJ as CreateDataCollectionsSnapshotResponse, aQ as CreateMigratedCollectionsSnapshotRequest, aR as CreateMigratedCollectionsSnapshotResponse, ae as DataCollectionChangedEvent, ad as DataCollectionClonedEvent, ah as DataCollectionEvictedEvent, h as DataOperation, ab as DataPermissions, az as DeleteDataCollectionFieldRequest, au as DeleteDataCollectionRequest, av as DeleteDataCollectionResponse, aO as DeleteDataCollectionsSnapshotRequest, aP as DeleteDataCollectionsSnapshotResponse, aL as Destination, g as Direction, aS as DomainEvent, aT as DomainEventBodyOneOf, aU as EntityCreatedEvent, aX as EntityDeletedEvent, aW as EntityUpdatedEvent, aH as Failure, t as Field, x as FieldCapabilities, Z as FieldPlugin, $ as FieldPluginOptionsOneOf, F as FieldPluginType, u as FieldRangeValidationsOneOf, af as FieldUpdate, z as FieldsPattern, k as Format, ak as GetDataCollectionRequest, al as GetDataCollectionResponse, a_ as IdentificationData, a$ as IdentificationDataIdOneOf, aF as Index, aG as IndexField, r as IndexLimits, s as IndexQuotaLimits, o as IndexSource, I as IndexStatus, am as ListDataCollectionsRequest, aZ as MessageEnvelope, M as MultiReference, a8 as MultilingualOptions, V as NumberRange, y as ObjectField, O as Order, N as PageLink, a9 as PageLinkPluginOptions, ao as Paging, ap as PagingMetadataV2, l as PagingMode, a1 as Permissions, a2 as Plugin, aa as PluginCmsOptions, a3 as PluginOptionsOneOf, P as PluginType, ag as PluginUpdate, a5 as PublishPluginOptions, Q as QueryOperator, J as Reference, aM as RestorationCollection, aw as RestoreDataCollectionRequest, aK as RestoreDataCollectionsFromSnapshotRequest, aN as RestoreDataCollectionsFromSnapshotResponse, aV as RestoreInfo, j as Role, m as Segment, a6 as SingleItemPluginOptions, a4 as SiteSort, aE as SnapshotCollection, p as Sort, n as SortOrder, an as Sorting, S as Status, X as StringLengthRange, T as Type, v as TypeMetadata, w as TypeMetadataMetadataOneOf, ay as UpdateDataCollectionFieldRequest, as as UpdateDataCollectionRequest, at as UpdateDataCollectionResponse, aA as UpdateDataPermissionsRequest, aB as UpdateDataPermissionsResponse, B as UrlizedOnlyPattern, a7 as UrlizedPluginOptions, W as WebhookIdentityType, K as _Array, _ as _Object } from './data-v2-data-collection-collections.universal-DZ3_N2Cv.mjs';
2
+ import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, RestoreDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse } from './index.typings.mjs';
3
+ export { AccessLevel, ActionEvent, AllowedDataPermissions, ArraySizeRange, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CmsOptions, CollectionCapabilities, CollectionOperation, CollectionType, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataPermissions, DeleteDataCollectionFieldRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, Destination, Direction, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Failure, Field, FieldCapabilities, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexStatus, ListDataCollectionsRequest, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, PageLink, PageLinkPluginOptions, Paging, PagingMetadataV2, PagingMode, Permissions, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginUpdate, PublishPluginOptions, QueryOperator, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, Role, Segment, SingleItemPluginOptions, SiteSort, SnapshotCollection, Sort, SortOrder, Sorting, Status, StringLengthRange, Type, TypeMetadata, TypeMetadataMetadataOneOf, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UrlizedOnlyPattern, UrlizedPluginOptions, WebhookIdentityType, _Array, _Object } from './index.typings.mjs';
4
4
 
5
5
  declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature;
6
6
  interface CreateDataCollectionSignature {
@@ -1,3 +1,5 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
1
3
  /** A data collection determines the structure of data to be stored in a database. */
2
4
  interface DataCollection {
3
5
  /**
@@ -853,6 +855,8 @@ declare enum Segment {
853
855
  PUBLIC = "PUBLIC",
854
856
  DEV = "DEV"
855
857
  }
858
+ /** @enumType */
859
+ type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
856
860
  interface GetDataCollectionResponse {
857
861
  /** Details of the collection requested. */
858
862
  collection?: DataCollection;
@@ -1429,6 +1433,41 @@ declare enum WebhookIdentityType {
1429
1433
  }
1430
1434
  /** @enumType */
1431
1435
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1436
+ type DataCollectionNonNullablePaths = `_id` | `collectionType` | `defaultDisplayOrder.fieldKey` | `defaultDisplayOrder.direction` | `capabilities.dataOperations` | `capabilities.collectionOperations` | `capabilities.indexLimits.regular` | `capabilities.indexLimits.unique` | `capabilities.indexLimits.total` | `fields` | `fields.${number}.key` | `fields.${number}.type` | `fields.${number}.typeMetadata.reference.referencedCollectionId` | `fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `fields.${number}.typeMetadata.array.elementType` | `fields.${number}.typeMetadata.pageLink.calculator.fieldsPattern.pattern` | `fields.${number}.typeMetadata.pageLink.calculator.fieldsPattern.lowercase` | `fields.${number}.typeMetadata.pageLink.calculator.urlizedOnlyPattern.pattern` | `fields.${number}.systemField` | `fields.${number}.encrypted` | `permissions.insert` | `permissions.update` | `permissions.remove` | `permissions.read` | `plugins` | `plugins.${number}.publishOptions.defaultStatus` | `plugins.${number}.singleItemOptions.singleItemId` | `plugins.${number}.urlizedOptions.format` | `plugins.${number}.editablePageLinkOptions.isPersisted` | `plugins.${number}.editablePageLinkOptions.isMutable` | `plugins.${number}.type` | `pagingModes`;
1437
+ /**
1438
+ * Creates a new data collection.
1439
+ *
1440
+ * 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.
1441
+ * @param collection - Collection details.
1442
+ * @public
1443
+ * @requiredField collection
1444
+ * @requiredField collection._id
1445
+ * @requiredField collection.fields.key
1446
+ * @requiredField collection.fields.type
1447
+ * @requiredField collection.permissions.insert
1448
+ * @requiredField collection.permissions.read
1449
+ * @requiredField collection.permissions.remove
1450
+ * @requiredField collection.permissions.update
1451
+ * @param options - Options for creating a data collection.
1452
+ * @permissionId WIX_DATA.CREATE_COLLECTION
1453
+ * @applicableIdentity APP
1454
+ * @returns Details of collection created.
1455
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection
1456
+ */
1457
+ declare function createDataCollection(collection: NonNullablePaths<DataCollection, `_id` | `fields.${number}.key` | `fields.${number}.type` | `permissions.insert` | `permissions.read` | `permissions.remove` | `permissions.update`>): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>>;
1458
+ /**
1459
+ * Retrieves a data collection by ID.
1460
+ * @param dataCollectionId - ID of the collection to retrieve.
1461
+ * @public
1462
+ * @requiredField dataCollectionId
1463
+ * @param options - Options for retrieving a data collection.
1464
+ * @permissionId WIX_DATA.GET_COLLECTION
1465
+ * @applicableIdentity APP
1466
+ * @applicableIdentity VISITOR
1467
+ * @returns Details of the collection requested.
1468
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection
1469
+ */
1470
+ declare function getDataCollection(dataCollectionId: string, options?: GetDataCollectionOptions): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>>;
1432
1471
  interface GetDataCollectionOptions {
1433
1472
  /**
1434
1473
  * Whether to retrieve data from the primary database instance.
@@ -1446,6 +1485,19 @@ interface GetDataCollectionOptions {
1446
1485
  */
1447
1486
  fields?: string[];
1448
1487
  }
1488
+ /**
1489
+ * Retrieves a list of all data collections associated with the site or project.
1490
+ *
1491
+ * By default, the list is ordered by ID in ascending order.
1492
+ * @public
1493
+ * @param options - Options for retrieving a list of data collections.
1494
+ * @permissionId WIX_DATA.LIST_COLLECTIONS
1495
+ * @applicableIdentity APP
1496
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.ListDataCollections
1497
+ */
1498
+ declare function listDataCollections(options?: ListDataCollectionsOptions): Promise<NonNullablePaths<ListDataCollectionsResponse, {
1499
+ [P in DataCollectionNonNullablePaths]: `collections.${number}.${P}`;
1500
+ }[DataCollectionNonNullablePaths]>>;
1449
1501
  interface ListDataCollectionsOptions {
1450
1502
  /**
1451
1503
  * Defines how collections in the response are sorted.
@@ -1471,14 +1523,117 @@ interface ListDataCollectionsOptions {
1471
1523
  */
1472
1524
  fields?: string[];
1473
1525
  }
1526
+ /**
1527
+ * Updates a data collection.
1528
+ *
1529
+ * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.
1530
+ * If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.
1531
+ * Otherwise, the request fails.
1532
+ *
1533
+ * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
1534
+ *
1535
+ * > **Note:**
1536
+ * > 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
1537
+ * > aren't included in the updated collection details, their values are lost.
1538
+ * @param collection - Updated collection details. The existing collection is replaced with this version.
1539
+ * @public
1540
+ * @requiredField collection
1541
+ * @requiredField collection._id
1542
+ * @requiredField collection.fields.key
1543
+ * @requiredField collection.fields.type
1544
+ * @requiredField collection.permissions.insert
1545
+ * @requiredField collection.permissions.read
1546
+ * @requiredField collection.permissions.remove
1547
+ * @requiredField collection.permissions.update
1548
+ * @requiredField collection.revision
1549
+ * @param options - Options for updating a data collection.
1550
+ * @permissionId WIX_DATA.UPDATE_COLLECTION
1551
+ * @applicableIdentity APP
1552
+ * @returns Updated collection details.
1553
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollection
1554
+ */
1555
+ declare function updateDataCollection(collection: NonNullablePaths<DataCollection, `_id` | `fields.${number}.key` | `fields.${number}.type` | `permissions.insert` | `permissions.read` | `permissions.remove` | `permissions.update` | `revision`>): Promise<NonNullablePaths<DataCollection, DataCollectionNonNullablePaths>>;
1556
+ /**
1557
+ * Deletes a data collection.
1558
+ *
1559
+ * > **Note:**
1560
+ * > Once a collection is deleted, it can only be restored for limited amount of time.
1561
+ * @param dataCollectionId - ID of the collection to delete.
1562
+ * @public
1563
+ * @requiredField dataCollectionId
1564
+ * @permissionId WIX_DATA.DELETE_COLLECTION
1565
+ * @applicableIdentity APP
1566
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection
1567
+ */
1568
+ declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
1569
+ /**
1570
+ * Restores recently deleted collection.
1571
+ *
1572
+ * Fails with `WDE0025` if collection was deleted too long ago or has never existed.
1573
+ * @param dataCollectionId - Data Collection ID to restore
1574
+ * @internal
1575
+ * @documentationMaturity preview
1576
+ * @requiredField dataCollectionId
1577
+ * @permissionId WIX_DATA.CREATE_COLLECTION
1578
+ * @applicableIdentity APP
1579
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.RestoreDataCollection
1580
+ */
1581
+ declare function restoreDataCollection(dataCollectionId: string): Promise<NonNullablePaths<RestoreDataCollectionResponse, {
1582
+ [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
1583
+ }[DataCollectionNonNullablePaths]>>;
1584
+ /**
1585
+ * Adds new field to data collection schema
1586
+ * @param dataCollectionId - ID of data collection to update
1587
+ * @internal
1588
+ * @documentationMaturity preview
1589
+ * @requiredField dataCollectionId
1590
+ * @requiredField options
1591
+ * @requiredField options.field
1592
+ * @permissionId WIX_DATA.CREATE_COLLECTION_FIELD
1593
+ * @applicableIdentity APP
1594
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField
1595
+ */
1596
+ declare function createDataCollectionField(dataCollectionId: string, options: NonNullablePaths<CreateDataCollectionFieldOptions, `field`>): Promise<NonNullablePaths<CreateDataCollectionFieldResponse, {
1597
+ [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
1598
+ }[DataCollectionNonNullablePaths]>>;
1474
1599
  interface CreateDataCollectionFieldOptions {
1475
1600
  /** field to create */
1476
1601
  field: Field;
1477
1602
  }
1603
+ /**
1604
+ * Updates data collection field
1605
+ * @param dataCollectionId - ID of data collection to update
1606
+ * @internal
1607
+ * @documentationMaturity preview
1608
+ * @requiredField dataCollectionId
1609
+ * @requiredField options
1610
+ * @requiredField options.field
1611
+ * @permissionId WIX_DATA.UPDATE_COLLECTION_FIELD
1612
+ * @applicableIdentity APP
1613
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField
1614
+ */
1615
+ declare function updateDataCollectionField(dataCollectionId: string, options: NonNullablePaths<UpdateDataCollectionFieldOptions, `field`>): Promise<NonNullablePaths<UpdateDataCollectionFieldResponse, {
1616
+ [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
1617
+ }[DataCollectionNonNullablePaths]>>;
1478
1618
  interface UpdateDataCollectionFieldOptions {
1479
1619
  /** Field to update */
1480
1620
  field: Field;
1481
1621
  }
1622
+ /**
1623
+ * Deletes data collection field
1624
+ * @param dataCollectionId - ID of data collection to update
1625
+ * @internal
1626
+ * @documentationMaturity preview
1627
+ * @requiredField dataCollectionId
1628
+ * @requiredField options
1629
+ * @requiredField options.fieldKey
1630
+ * @permissionId WIX_DATA.DELETE_COLLECTION_FIELD
1631
+ * @applicableIdentity APP
1632
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionField
1633
+ */
1634
+ declare function deleteDataCollectionField(dataCollectionId: string, options: NonNullablePaths<DeleteDataCollectionFieldOptions, `fieldKey`>): Promise<NonNullablePaths<DeleteDataCollectionFieldResponse, {
1635
+ [P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
1636
+ }[DataCollectionNonNullablePaths]>>;
1482
1637
  interface DeleteDataCollectionFieldOptions {
1483
1638
  /**
1484
1639
  * Field ID to delete
@@ -1487,4 +1642,4 @@ interface DeleteDataCollectionFieldOptions {
1487
1642
  fieldKey: string;
1488
1643
  }
1489
1644
 
1490
- export { type FieldPluginOptionsOneOf as $, AccessLevel as A, type UrlizedOnlyPattern as B, type CreateDataCollectionFieldOptions as C, type DataCollection as D, type Calculator as E, FieldPluginType as F, type GetDataCollectionOptions as G, type CalculatorPatternOneOf as H, IndexStatus as I, type Reference as J, type _Array as K, type ListDataCollectionsOptions as L, type MultiReference as M, type PageLink as N, Order as O, PluginType as P, QueryOperator as Q, type RestoreDataCollectionResponse as R, Status as S, Type as T, type UpdateDataCollectionFieldOptions as U, type NumberRange as V, WebhookIdentityType as W, type StringLengthRange as X, type ArraySizeRange as Y, type FieldPlugin as Z, type _Object as _, type ListDataCollectionsResponse as a, type IdentificationDataIdOneOf as a$, type CmsOptions as a0, type Permissions as a1, type Plugin as a2, type PluginOptionsOneOf as a3, type SiteSort as a4, type PublishPluginOptions as a5, type SingleItemPluginOptions as a6, type UrlizedPluginOptions as a7, type MultilingualOptions as a8, type PageLinkPluginOptions as a9, type UpdateDataPermissionsRequest as aA, type UpdateDataPermissionsResponse as aB, type BulkGetDataCollectionsPageBySnapshotsRequest as aC, type BulkGetDataCollectionsPageBySnapshotsResponse as aD, type SnapshotCollection as aE, type Index as aF, type IndexField as aG, type Failure as aH, type CreateDataCollectionsSnapshotRequest as aI, type CreateDataCollectionsSnapshotResponse as aJ, type RestoreDataCollectionsFromSnapshotRequest as aK, type Destination as aL, type RestorationCollection as aM, type RestoreDataCollectionsFromSnapshotResponse as aN, type DeleteDataCollectionsSnapshotRequest as aO, type DeleteDataCollectionsSnapshotResponse as aP, type CreateMigratedCollectionsSnapshotRequest as aQ, type CreateMigratedCollectionsSnapshotResponse as aR, type DomainEvent as aS, type DomainEventBodyOneOf as aT, type EntityCreatedEvent as aU, type RestoreInfo as aV, type EntityUpdatedEvent as aW, type EntityDeletedEvent as aX, type ActionEvent as aY, type MessageEnvelope as aZ, type IdentificationData as a_, type PluginCmsOptions as aa, type DataPermissions as ab, type AllowedDataPermissions as ac, type DataCollectionClonedEvent as ad, type DataCollectionChangedEvent as ae, type FieldUpdate as af, type PluginUpdate as ag, type DataCollectionEvictedEvent as ah, type CreateDataCollectionRequest as ai, type CreateDataCollectionResponse as aj, type GetDataCollectionRequest as ak, type GetDataCollectionResponse as al, type ListDataCollectionsRequest as am, type Sorting as an, type Paging as ao, type PagingMetadataV2 as ap, type BulkGetDataCollectionsRequest as aq, type BulkGetDataCollectionsResponse as ar, type UpdateDataCollectionRequest as as, type UpdateDataCollectionResponse as at, type DeleteDataCollectionRequest as au, type DeleteDataCollectionResponse as av, type RestoreDataCollectionRequest as aw, type CreateDataCollectionFieldRequest as ax, type UpdateDataCollectionFieldRequest as ay, type DeleteDataCollectionFieldRequest as az, type CreateDataCollectionFieldResponse as b, type UpdateDataCollectionFieldResponse as c, type DeleteDataCollectionFieldOptions as d, type DeleteDataCollectionFieldResponse as e, CollectionType as f, Direction as g, DataOperation as h, CollectionOperation as i, Role as j, Format as k, PagingMode as l, Segment as m, SortOrder as n, IndexSource as o, type Sort as p, type CollectionCapabilities as q, type IndexLimits as r, type IndexQuotaLimits as s, type Field as t, type FieldRangeValidationsOneOf as u, type TypeMetadata as v, type TypeMetadataMetadataOneOf as w, type FieldCapabilities as x, type ObjectField as y, type FieldsPattern as z };
1645
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CmsOptions, type CollectionCapabilities, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, restoreDataCollection, updateDataCollection, updateDataCollectionField };