@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.
@@ -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
- * @internal
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
- * @internal
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
- * @internal
1648
+ * @public
1645
1649
  * @documentationMaturity preview
1646
1650
  * @requiredField dataCollectionId
1647
1651
  * @requiredField options