@wix/auto_sdk_data_collections 1.0.70 → 1.0.72

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.
@@ -3,7 +3,8 @@ import { NonNullablePaths } from '@wix/sdk-types';
3
3
  /** A data collection determines the structure of data to be stored in a database. */
4
4
  interface DataCollection {
5
5
  /**
6
- * Collection ID. For example, `my-first-collection`. May include a namespace.
6
+ * [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`.
7
+ * For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
7
8
  * @immutable
8
9
  * @maxLength 256
9
10
  */
@@ -50,6 +51,7 @@ interface DataCollection {
50
51
  displayField?: string | null;
51
52
  /**
52
53
  * Capabilities the collection supports.
54
+ * Capabilities are set by default. Values depend on the collection type.
53
55
  * @readonly
54
56
  */
55
57
  capabilities?: CollectionCapabilities;
@@ -133,7 +135,7 @@ interface CollectionCapabilities {
133
135
  /**
134
136
  * Data operations the collection supports. The listed operations can be performed on data the collection contains.
135
137
  *
136
- * > **Note**: The `PATCH` and `BULK_PATCH` oeprations aren't currently supported.
138
+ * > **Note**: The `PATCH` and `BULK_PATCH` operations aren't currently supported.
137
139
  * @maxSize 100
138
140
  */
139
141
  dataOperations?: DataOperationWithLiterals[];
@@ -972,7 +974,7 @@ interface CatalogOptions {
972
974
  */
973
975
  quantity?: string | null;
974
976
  /**
975
- * the field key that contains the catalog item digital file
977
+ * the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
976
978
  * @maxLength 1000
977
979
  */
978
980
  digitalFile?: string | null;
@@ -2085,11 +2087,13 @@ declare function restoreDataCollection(dataCollectionId: string): Promise<NonNul
2085
2087
  * Updates specified properties of a data collection.
2086
2088
  *
2087
2089
  * Only updates the properties specified in the request, all other properties remain unchanged.
2088
- * The following properties can be updated with this method: `displayName`, `displayField`, `permissions`, `dataPermissions`. If attempting to update other, unsupported properties, this operation fails.
2090
+ * The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`.
2091
+ * Attempting to update unsupported properties causes this operation to fail.
2089
2092
  *
2090
- * To update properties in a collection's `fields`array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
2093
+ * To update properties in a collection's `fields` array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
2091
2094
  * To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin).
2092
- * @param _id - Collection ID. For example, `my-first-collection`. May include a namespace.
2095
+ * @param _id - [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`.
2096
+ * For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
2093
2097
  * @public
2094
2098
  * @documentationMaturity preview
2095
2099
  * @requiredField _id
@@ -2101,7 +2105,8 @@ declare function restoreDataCollection(dataCollectionId: string): Promise<NonNul
2101
2105
  declare function patchDataCollection(_id: string, dataCollection: PatchDataCollection): Promise<NonNullablePaths<PatchDataCollectionResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.fields.${number}.condition.permission` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
2102
2106
  interface PatchDataCollection {
2103
2107
  /**
2104
- * Collection ID. For example, `my-first-collection`. May include a namespace.
2108
+ * [Collection ID](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/work-with-data/introduction/about-collections#collection-ids). For example, `my-first-collection`.
2109
+ * For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
2105
2110
  * @immutable
2106
2111
  * @maxLength 256
2107
2112
  */
@@ -2148,6 +2153,7 @@ interface PatchDataCollection {
2148
2153
  displayField?: string | null;
2149
2154
  /**
2150
2155
  * Capabilities the collection supports.
2156
+ * Capabilities are set by default. Values depend on the collection type.
2151
2157
  * @readonly
2152
2158
  */
2153
2159
  capabilities?: CollectionCapabilities;
@@ -2306,10 +2312,9 @@ interface DeleteDataCollectionPluginOptions {
2306
2312
  pluginType: PluginTypeWithLiterals;
2307
2313
  }
2308
2314
  /**
2309
- * Updates specified properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array.
2315
+ * Updates specified properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array.
2310
2316
  *
2311
- * Only updates the properties specified in the request, all other properties remain unchanged.
2312
- * The following properties can be updated with this method: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`. If attempting to update `key` or other unsupported properties, this operation fails.
2317
+ * When you change a field's type, existing values aren't migrated. Use [Bulk Update Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-update-data-items) or [Bulk Patch Data Items](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/bulk-patch-data-items) to update item values to match the new type.
2313
2318
  *
2314
2319
  * To update properties in a data collection other than `fields`, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection).
2315
2320
  * @param dataCollectionId - ID of the data collection to update.