@wix/auto_sdk_data_collections 1.0.19 → 1.0.21
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 +36 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +50 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +36 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +50 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1603,16 +1603,18 @@ declare function restoreDataCollection(dataCollectionId: string): Promise<NonNul
|
|
|
1603
1603
|
/**
|
|
1604
1604
|
* Adds new field to data collection schema
|
|
1605
1605
|
* @param dataCollectionId - ID of data collection to update
|
|
1606
|
-
* @
|
|
1606
|
+
* @public
|
|
1607
1607
|
* @documentationMaturity preview
|
|
1608
1608
|
* @requiredField dataCollectionId
|
|
1609
1609
|
* @requiredField options
|
|
1610
1610
|
* @requiredField options.field
|
|
1611
|
+
* @requiredField options.field.key
|
|
1612
|
+
* @requiredField options.field.type
|
|
1611
1613
|
* @permissionId WIX_DATA.CREATE_COLLECTION_FIELD
|
|
1612
1614
|
* @applicableIdentity APP
|
|
1613
1615
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollectionField
|
|
1614
1616
|
*/
|
|
1615
|
-
declare function createDataCollectionField(dataCollectionId: string, options: NonNullablePaths<CreateDataCollectionFieldOptions, `field`>): Promise<NonNullablePaths<CreateDataCollectionFieldResponse, {
|
|
1617
|
+
declare function createDataCollectionField(dataCollectionId: string, options: NonNullablePaths<CreateDataCollectionFieldOptions, `field` | `field.key` | `field.type`>): Promise<NonNullablePaths<CreateDataCollectionFieldResponse, {
|
|
1616
1618
|
[P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
|
|
1617
1619
|
}[DataCollectionNonNullablePaths]>>;
|
|
1618
1620
|
interface CreateDataCollectionFieldOptions {
|
|
@@ -1622,16 +1624,18 @@ interface CreateDataCollectionFieldOptions {
|
|
|
1622
1624
|
/**
|
|
1623
1625
|
* Updates data collection field
|
|
1624
1626
|
* @param dataCollectionId - ID of data collection to update
|
|
1625
|
-
* @
|
|
1627
|
+
* @public
|
|
1626
1628
|
* @documentationMaturity preview
|
|
1627
1629
|
* @requiredField dataCollectionId
|
|
1628
1630
|
* @requiredField options
|
|
1629
1631
|
* @requiredField options.field
|
|
1632
|
+
* @requiredField options.field.key
|
|
1633
|
+
* @requiredField options.field.type
|
|
1630
1634
|
* @permissionId WIX_DATA.UPDATE_COLLECTION_FIELD
|
|
1631
1635
|
* @applicableIdentity APP
|
|
1632
1636
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.UpdateDataCollectionField
|
|
1633
1637
|
*/
|
|
1634
|
-
declare function updateDataCollectionField(dataCollectionId: string, options: NonNullablePaths<UpdateDataCollectionFieldOptions, `field`>): Promise<NonNullablePaths<UpdateDataCollectionFieldResponse, {
|
|
1638
|
+
declare function updateDataCollectionField(dataCollectionId: string, options: NonNullablePaths<UpdateDataCollectionFieldOptions, `field` | `field.key` | `field.type`>): Promise<NonNullablePaths<UpdateDataCollectionFieldResponse, {
|
|
1635
1639
|
[P in DataCollectionNonNullablePaths]: `dataCollection.${P}`;
|
|
1636
1640
|
}[DataCollectionNonNullablePaths]>>;
|
|
1637
1641
|
interface UpdateDataCollectionFieldOptions {
|
|
@@ -1641,7 +1645,7 @@ interface UpdateDataCollectionFieldOptions {
|
|
|
1641
1645
|
/**
|
|
1642
1646
|
* Deletes data collection field
|
|
1643
1647
|
* @param dataCollectionId - ID of data collection to update
|
|
1644
|
-
* @
|
|
1648
|
+
* @public
|
|
1645
1649
|
* @documentationMaturity preview
|
|
1646
1650
|
* @requiredField dataCollectionId
|
|
1647
1651
|
* @requiredField options
|