@wix/auto_sdk_data_collections 1.0.88 → 1.0.90
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 +6 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +21 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2284,6 +2284,12 @@ interface AccountInfo {
|
|
|
2284
2284
|
declare function createDataCollection(collection: NonNullablePaths<DataCollection, `_id` | `fields.${number}.key` | `fields.${number}.type` | `permissions.insert` | `permissions.read` | `permissions.remove` | `permissions.update`, 4>): Promise<NonNullablePaths<DataCollection, `_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}.systemField` | `fields.${number}.capabilities.sortable` | `fields.${number}.encrypted` | `fields.${number}.condition.permission` | `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`, 6>>;
|
|
2285
2285
|
/**
|
|
2286
2286
|
* Retrieves a data collection by ID.
|
|
2287
|
+
*
|
|
2288
|
+
* Starting on August 3rd, 2026, when called with a visitor (unauthenticated) identity, the response contains only
|
|
2289
|
+
* the collection details needed to display the collection's data: `id`, `displayName`, `displayField`, `plugins`,
|
|
2290
|
+
* and for each field in `fields` its `key`, `displayName`, `type`, and `typeMetadata`. All other collection
|
|
2291
|
+
* details, such as `permissions` and `capabilities`, are omitted. Calls made with any other identity return the
|
|
2292
|
+
* full collection.
|
|
2287
2293
|
* @param dataCollectionId - ID of the collection to retrieve.
|
|
2288
2294
|
* @public
|
|
2289
2295
|
* @requiredField dataCollectionId
|
|
@@ -2660,11 +2666,13 @@ interface DeleteDataCollectionPluginOptions {
|
|
|
2660
2666
|
}
|
|
2661
2667
|
/**
|
|
2662
2668
|
* Adds the Publish plugin to a data collection.
|
|
2663
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2664
2669
|
* @internal
|
|
2665
2670
|
* @documentationMaturity preview
|
|
2666
2671
|
* @requiredField dataCollectionId
|
|
2667
2672
|
* @requiredField options.publishOptions
|
|
2673
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2674
|
+
* @param publishOptions - Publish plugin options.
|
|
2675
|
+
* @param options - Options for adding the Publish plugin.
|
|
2668
2676
|
* @permissionId data:v2:data_collection:add_publish_plugin
|
|
2669
2677
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddPublishPlugin
|
|
2670
2678
|
*/
|
|
@@ -2687,12 +2695,13 @@ interface AddPublishPluginOptions {
|
|
|
2687
2695
|
declare function deletePublishPlugin(dataCollectionId: string): Promise<NonNullablePaths<DeletePublishPluginResponse, `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>>;
|
|
2688
2696
|
/**
|
|
2689
2697
|
* Adds the Urlized plugin to a data collection.
|
|
2690
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2691
2698
|
* @internal
|
|
2692
2699
|
* @documentationMaturity preview
|
|
2693
2700
|
* @requiredField dataCollectionId
|
|
2694
2701
|
* @requiredField options
|
|
2695
2702
|
* @requiredField options.urlizedOptions
|
|
2703
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2704
|
+
* @param urlizedOptions - Urlized plugin options.
|
|
2696
2705
|
* @permissionId data:v2:data_collection:add_urlized_plugin
|
|
2697
2706
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddUrlizedPlugin
|
|
2698
2707
|
*/
|
|
@@ -2713,12 +2722,13 @@ interface AddUrlizedPluginOptions {
|
|
|
2713
2722
|
declare function deleteUrlizedPlugin(dataCollectionId: string): Promise<NonNullablePaths<DeleteUrlizedPluginResponse, `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>>;
|
|
2714
2723
|
/**
|
|
2715
2724
|
* Adds the Multilingual plugin to a data collection.
|
|
2716
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2717
2725
|
* @internal
|
|
2718
2726
|
* @documentationMaturity preview
|
|
2719
2727
|
* @requiredField dataCollectionId
|
|
2720
2728
|
* @requiredField options
|
|
2721
2729
|
* @requiredField options.multilingualOptions
|
|
2730
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2731
|
+
* @param multilingualOptions - Multilingual plugin options.
|
|
2722
2732
|
* @permissionId data:v2:data_collection:add_multilingual_plugin
|
|
2723
2733
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddMultilingualPlugin
|
|
2724
2734
|
*/
|
|
@@ -2739,12 +2749,13 @@ interface AddMultilingualPluginOptions {
|
|
|
2739
2749
|
declare function deleteMultilingualPlugin(dataCollectionId: string): Promise<NonNullablePaths<DeleteMultilingualPluginResponse, `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>>;
|
|
2740
2750
|
/**
|
|
2741
2751
|
* Adds the CMS plugin to a data collection.
|
|
2742
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2743
2752
|
* @internal
|
|
2744
2753
|
* @documentationMaturity preview
|
|
2745
2754
|
* @requiredField dataCollectionId
|
|
2746
2755
|
* @requiredField options
|
|
2747
2756
|
* @requiredField options.cmsOptions
|
|
2757
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2758
|
+
* @param cmsOptions - CMS plugin options.
|
|
2748
2759
|
* @permissionId data:v2:data_collection:add_cms_plugin
|
|
2749
2760
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCmsPlugin
|
|
2750
2761
|
*/
|
|
@@ -2765,12 +2776,13 @@ interface AddCmsPluginOptions {
|
|
|
2765
2776
|
declare function deleteCmsPlugin(dataCollectionId: string): Promise<NonNullablePaths<DeleteCmsPluginResponse, `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>>;
|
|
2766
2777
|
/**
|
|
2767
2778
|
* Adds the Catalog plugin to a data collection.
|
|
2768
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2769
2779
|
* @internal
|
|
2770
2780
|
* @documentationMaturity preview
|
|
2771
2781
|
* @requiredField dataCollectionId
|
|
2772
2782
|
* @requiredField options
|
|
2773
2783
|
* @requiredField options.catalogOptions
|
|
2784
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2785
|
+
* @param catalogOptions - Catalog plugin options.
|
|
2774
2786
|
* @permissionId data:v2:data_collection:add_catalog_plugin
|
|
2775
2787
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddCatalogPlugin
|
|
2776
2788
|
*/
|
|
@@ -2791,11 +2803,13 @@ interface AddCatalogPluginOptions {
|
|
|
2791
2803
|
declare function deleteCatalogPlugin(dataCollectionId: string): Promise<NonNullablePaths<DeleteCatalogPluginResponse, `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>>;
|
|
2792
2804
|
/**
|
|
2793
2805
|
* Adds the Draft Items plugin to a data collection.
|
|
2794
|
-
* @param dataCollectionId - ID of the data collection to update.
|
|
2795
2806
|
* @internal
|
|
2796
2807
|
* @documentationMaturity preview
|
|
2797
2808
|
* @requiredField dataCollectionId
|
|
2798
2809
|
* @requiredField options.draftItemsOptions
|
|
2810
|
+
* @param dataCollectionId - ID of the data collection to update.
|
|
2811
|
+
* @param draftItemsOptions - Draft Items plugin options.
|
|
2812
|
+
* @param options - Options for adding the Draft Items plugin.
|
|
2799
2813
|
* @permissionId data:v2:data_collection:add_draft_items_plugin
|
|
2800
2814
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDraftItemsPlugin
|
|
2801
2815
|
*/
|
|
@@ -2812,6 +2826,7 @@ interface AddDraftItemsPluginOptions {
|
|
|
2812
2826
|
* @internal
|
|
2813
2827
|
* @documentationMaturity preview
|
|
2814
2828
|
* @requiredField dataCollectionId
|
|
2829
|
+
* @param options - Options for removing the Draft Items plugin.
|
|
2815
2830
|
* @permissionId data:v2:data_collection:delete_draft_items_plugin
|
|
2816
2831
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDraftItemsPlugin
|
|
2817
2832
|
*/
|