@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.
- package/build/cjs/index.d.ts +7 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +15 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +7 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +15 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +7 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -10
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +7 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +15 -10
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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`.
|
|
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;
|
|
@@ -122,7 +124,7 @@ interface CollectionCapabilities {
|
|
|
122
124
|
/**
|
|
123
125
|
* Data operations the collection supports. The listed operations can be performed on data the collection contains.
|
|
124
126
|
*
|
|
125
|
-
* > **Note**: The `PATCH` and `BULK_PATCH`
|
|
127
|
+
* > **Note**: The `PATCH` and `BULK_PATCH` operations aren't currently supported.
|
|
126
128
|
* @maxSize 100
|
|
127
129
|
*/
|
|
128
130
|
dataOperations?: DataOperationWithLiterals[];
|
|
@@ -956,7 +958,7 @@ interface CatalogOptions {
|
|
|
956
958
|
*/
|
|
957
959
|
quantity?: string | null;
|
|
958
960
|
/**
|
|
959
|
-
* the field key that contains the catalog item digital file
|
|
961
|
+
* the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
|
|
960
962
|
* @maxLength 1000
|
|
961
963
|
*/
|
|
962
964
|
digitalFile?: string | null;
|
|
@@ -2031,11 +2033,13 @@ declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
|
|
|
2031
2033
|
* Updates specified properties of a data collection.
|
|
2032
2034
|
*
|
|
2033
2035
|
* Only updates the properties specified in the request, all other properties remain unchanged.
|
|
2034
|
-
* The following properties can be updated with this method: `displayName`, `displayField`, `permissions
|
|
2036
|
+
* The following properties can be updated with this method: `displayName`, `displayField`, and `permissions`.
|
|
2037
|
+
* Attempting to update unsupported properties causes this operation to fail.
|
|
2035
2038
|
*
|
|
2036
|
-
* 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).
|
|
2039
|
+
* 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).
|
|
2037
2040
|
* 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).
|
|
2038
|
-
* @param _id - Collection ID. For example, `my-first-collection`.
|
|
2041
|
+
* @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`.
|
|
2042
|
+
* For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
|
|
2039
2043
|
* @public
|
|
2040
2044
|
* @documentationMaturity preview
|
|
2041
2045
|
* @requiredField _id
|
|
@@ -2047,7 +2051,8 @@ declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
|
|
|
2047
2051
|
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>>;
|
|
2048
2052
|
interface PatchDataCollection {
|
|
2049
2053
|
/**
|
|
2050
|
-
* Collection ID. For example, `my-first-collection`.
|
|
2054
|
+
* [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`.
|
|
2055
|
+
* For [app collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/wix-app-collections/introduction), use `AppName/CollectionName`.
|
|
2051
2056
|
* @immutable
|
|
2052
2057
|
* @maxLength 256
|
|
2053
2058
|
*/
|
|
@@ -2094,6 +2099,7 @@ interface PatchDataCollection {
|
|
|
2094
2099
|
displayField?: string | null;
|
|
2095
2100
|
/**
|
|
2096
2101
|
* Capabilities the collection supports.
|
|
2102
|
+
* Capabilities are set by default. Values depend on the collection type.
|
|
2097
2103
|
* @readonly
|
|
2098
2104
|
*/
|
|
2099
2105
|
capabilities?: CollectionCapabilities;
|
|
@@ -2241,10 +2247,9 @@ interface DeleteDataCollectionPluginOptions {
|
|
|
2241
2247
|
pluginType: PluginTypeWithLiterals;
|
|
2242
2248
|
}
|
|
2243
2249
|
/**
|
|
2244
|
-
* Updates specified properties
|
|
2250
|
+
* 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.
|
|
2245
2251
|
*
|
|
2246
|
-
*
|
|
2247
|
-
* 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.
|
|
2252
|
+
* 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.
|
|
2248
2253
|
*
|
|
2249
2254
|
* 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).
|
|
2250
2255
|
* @param dataCollectionId - ID of the data collection to update.
|