@wix/auto_sdk_data_collections 1.0.108 → 1.0.109

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.
@@ -1,6 +1,9 @@
1
1
  import { NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
- /** A data collection determines the structure of data to be stored in a database. */
3
+ /**
4
+ * A data collection defines the fields, data types, item permissions, and plugins for a set of data items.
5
+ * Use the Data Items API to store and retrieve the items themselves.
6
+ */
4
7
  interface DataCollection {
5
8
  /**
6
9
  * [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`.
@@ -30,6 +33,8 @@ interface DataCollection {
30
33
  maxPageSize?: number | null;
31
34
  /**
32
35
  * Collection's display name as shown in the CMS. For example, `My First Collection`.
36
+ *
37
+ * Default: The collection ID.
33
38
  * @maxLength 1000
34
39
  */
35
40
  displayName?: string | null;
@@ -47,6 +52,8 @@ interface DataCollection {
47
52
  displayNamespace?: string | null;
48
53
  /**
49
54
  * Field whose value the CMS displays to represent the collection item when referenced in a different collection.
55
+ *
56
+ * Default: The first field in the request, or `title` if no fields are specified.
50
57
  * @maxLength 1000
51
58
  */
52
59
  displayField?: string | null;
@@ -95,7 +102,7 @@ interface DataCollection {
95
102
  */
96
103
  dataPermissions?: DataPermissions;
97
104
  /**
98
- * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`
105
+ * Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`
99
106
  * @internal
100
107
  * @readonly
101
108
  */
@@ -247,7 +254,7 @@ interface Field extends FieldRangeValidationsOneOf {
247
254
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
248
255
  */
249
256
  type?: TypeWithLiterals;
250
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
257
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
251
258
  typeMetadata?: TypeMetadata;
252
259
  /**
253
260
  * Whether the field is a system field.
@@ -267,6 +274,7 @@ interface Field extends FieldRangeValidationsOneOf {
267
274
  */
268
275
  description?: string | null;
269
276
  /**
277
+ * Plugin that manages this field.
270
278
  * @internal
271
279
  * @maxLength 100
272
280
  */
@@ -278,7 +286,7 @@ interface Field extends FieldRangeValidationsOneOf {
278
286
  */
279
287
  readOnly?: boolean | null;
280
288
  /**
281
- * Whether the field is immutable. An immutable field can be set once, but then cannot be updated.
289
+ * Whether the field is immutable. An immutable field can be set once, but then can't be updated.
282
290
  *
283
291
  * Default: `false`
284
292
  */
@@ -301,7 +309,7 @@ interface Field extends FieldRangeValidationsOneOf {
301
309
  */
302
310
  deleted?: boolean | null;
303
311
  /**
304
- * This indicates that this fields is conditional and is not retrieved by default.
312
+ * Conditions that control whether this field is included when retrieving data items.
305
313
  * @readonly
306
314
  */
307
315
  condition?: FieldCondition;
@@ -710,7 +718,7 @@ interface ObjectField {
710
718
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
711
719
  */
712
720
  type?: TypeWithLiterals;
713
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
721
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
714
722
  typeMetadata?: TypeMetadata;
715
723
  /**
716
724
  * Capabilities the object field supports.
@@ -719,12 +727,19 @@ interface ObjectField {
719
727
  capabilities?: FieldCapabilities;
720
728
  }
721
729
  interface FieldsPattern {
722
- /** @maxLength 1000 */
730
+ /**
731
+ * Pattern used to generate the field value from item properties.
732
+ * @maxLength 1000
733
+ */
723
734
  pattern?: string;
735
+ /** Whether to convert the generated value to lowercase. Default: `false`. */
724
736
  lowercase?: boolean;
725
737
  }
726
738
  interface UrlizedOnlyPattern {
727
- /** @maxLength 1000 */
739
+ /**
740
+ * Pattern used to generate the field value from item properties.
741
+ * @maxLength 1000
742
+ */
728
743
  pattern?: string;
729
744
  }
730
745
  interface Calculator extends CalculatorPatternOneOf {
@@ -789,13 +804,16 @@ interface _Object {
789
804
  * @maxSize 1000
790
805
  */
791
806
  fields?: ObjectField[];
792
- /** @internal */
807
+ /**
808
+ * Value assigned when a data item omits this field.
809
+ * @internal
810
+ */
793
811
  defaultValue?: Record<string, any> | null;
794
812
  }
795
813
  interface _Array {
796
814
  /** Element's data type. */
797
815
  elementType?: TypeWithLiterals;
798
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
816
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
799
817
  typeMetadata?: TypeMetadata;
800
818
  /**
801
819
  * Minimum permitted number of items in an array field.
@@ -811,6 +829,7 @@ interface _Array {
811
829
  defaultValue?: any[];
812
830
  }
813
831
  interface PageLink {
832
+ /** Calculation pattern used to generate the page link. Required for page link fields. */
814
833
  calculator?: Calculator;
815
834
  /**
816
835
  * Defines reference to router pattern in the site document.
@@ -825,6 +844,7 @@ interface PageLink {
825
844
  }
826
845
  interface Slug {
827
846
  /**
847
+ * Pattern used to generate the field value from item properties.
828
848
  * @minLength 1
829
849
  * @maxLength 1000
830
850
  */
@@ -843,16 +863,21 @@ interface Slug {
843
863
  defaultValue?: string | null;
844
864
  }
845
865
  interface Text extends TextValidationOneOf {
866
+ /** Length and pattern constraints for the text value. */
846
867
  textValidation?: TextValidation;
868
+ /** Allowed text values. */
847
869
  enumValues?: EnumValues;
848
870
  defaultValue?: string | null;
849
871
  }
850
872
  /** @oneof */
851
873
  interface TextValidationOneOf {
874
+ /** Length and pattern constraints for the text value. */
852
875
  textValidation?: TextValidation;
876
+ /** Allowed text values. */
853
877
  enumValues?: EnumValues;
854
878
  }
855
879
  interface _Number {
880
+ /** Value assigned when a data item omits this field. */
856
881
  defaultValue?: number | null;
857
882
  /** Minimum permitted value for a numerical field. */
858
883
  min?: number | null;
@@ -860,48 +885,68 @@ interface _Number {
860
885
  max?: number | null;
861
886
  }
862
887
  interface _Date extends _DateDefaultValueOneOf, _DateMinDateOneOf, _DateMaxDateOneOf {
888
+ /** Fixed date and time used as the default value. */
863
889
  defaultValueFixed?: Date | null;
890
+ /** Offset from the current date, in days, used as the default value. */
864
891
  defaultValueOffsetFromNowInDays?: number | null;
892
+ /** Earliest permitted date and time. */
865
893
  minDateFixed?: Date | null;
894
+ /** Offset from the current date, in days, used as the earliest permitted date. */
866
895
  minValueOffsetFromNowInDays?: number | null;
896
+ /** Latest permitted date and time. */
867
897
  maxDateFixed?: Date | null;
898
+ /** Offset from the current date, in days, used as the latest permitted date. */
868
899
  maxValueOffsetFromNowInDays?: number | null;
869
900
  }
870
901
  /** @oneof */
871
902
  interface _DateDefaultValueOneOf {
903
+ /** Fixed date and time used as the default value. */
872
904
  defaultValueFixed?: Date | null;
905
+ /** Offset from the current date, in days, used as the default value. */
873
906
  defaultValueOffsetFromNowInDays?: number | null;
874
907
  }
875
908
  /** @oneof */
876
909
  interface _DateMinDateOneOf {
910
+ /** Earliest permitted date and time. */
877
911
  minDateFixed?: Date | null;
912
+ /** Offset from the current date, in days, used as the earliest permitted date. */
878
913
  minValueOffsetFromNowInDays?: number | null;
879
914
  }
880
915
  /** @oneof */
881
916
  interface _DateMaxDateOneOf {
917
+ /** Latest permitted date and time. */
882
918
  maxDateFixed?: Date | null;
919
+ /** Offset from the current date, in days, used as the latest permitted date. */
883
920
  maxValueOffsetFromNowInDays?: number | null;
884
921
  }
885
922
  interface Datetime extends DatetimeDefaultValueOneOf, DatetimeMinDateOneOf, DatetimeMaxDateOneOf {
923
+ /** Fixed date and time used as the default value. */
886
924
  defaultValueFixed?: Date | null;
925
+ /** Offset from the current time, in seconds, used as the default value. */
887
926
  defaultValueOffsetFromNowInSeconds?: number | null;
927
+ /** Earliest permitted date and time. */
888
928
  minDateFixed?: Date | null;
889
929
  minDateOffsetFromNowInSeconds?: number | null;
930
+ /** Latest permitted date and time. */
890
931
  maxDateFixed?: Date | null;
891
932
  maxDateOffsetFromNowInSeconds?: number | null;
892
933
  }
893
934
  /** @oneof */
894
935
  interface DatetimeDefaultValueOneOf {
936
+ /** Fixed date and time used as the default value. */
895
937
  defaultValueFixed?: Date | null;
938
+ /** Offset from the current time, in seconds, used as the default value. */
896
939
  defaultValueOffsetFromNowInSeconds?: number | null;
897
940
  }
898
941
  /** @oneof */
899
942
  interface DatetimeMinDateOneOf {
943
+ /** Earliest permitted date and time. */
900
944
  minDateFixed?: Date | null;
901
945
  minDateOffsetFromNowInSeconds?: number | null;
902
946
  }
903
947
  /** @oneof */
904
948
  interface DatetimeMaxDateOneOf {
949
+ /** Latest permitted date and time. */
905
950
  maxDateFixed?: Date | null;
906
951
  maxDateOffsetFromNowInSeconds?: number | null;
907
952
  }
@@ -909,6 +954,7 @@ interface Image {
909
954
  defaultValue?: string | null;
910
955
  }
911
956
  interface _Boolean {
957
+ /** Value assigned when a data item omits this field. */
912
958
  defaultValue?: boolean | null;
913
959
  }
914
960
  interface Document {
@@ -916,10 +962,12 @@ interface Document {
916
962
  }
917
963
  interface Url {
918
964
  /**
965
+ * Value assigned when a data item omits this field.
919
966
  * @minLength 1
920
967
  * @maxLength 2048
921
968
  */
922
969
  defaultValue?: string | null;
970
+ /** Length and pattern constraints for the text value. */
923
971
  textValidation?: TextValidation;
924
972
  }
925
973
  interface RichText {
@@ -976,16 +1024,21 @@ interface Time {
976
1024
  maxTime?: string | null;
977
1025
  }
978
1026
  interface RichContent {
1027
+ /** Value assigned when a data item omits this field. */
979
1028
  defaultValue?: Record<string, any> | null;
980
1029
  }
981
1030
  interface MediaGallery {
982
1031
  defaultValue?: Record<string, any>[] | null;
983
1032
  }
984
1033
  interface Address {
1034
+ /** Value assigned when a data item omits this field. */
985
1035
  defaultValue?: Record<string, any> | null;
986
1036
  }
987
1037
  interface Email {
988
- /** @format EMAIL */
1038
+ /**
1039
+ * Value assigned when a data item omits this field.
1040
+ * @format EMAIL
1041
+ */
989
1042
  defaultValue?: string | null;
990
1043
  }
991
1044
  interface LegacyColor {
@@ -1037,12 +1090,13 @@ interface ArraySizeRange {
1037
1090
  */
1038
1091
  maxSize?: number | null;
1039
1092
  }
1040
- /** Optional plug-in aspects for fields */
1093
+ /** Plugins that extend a field's behavior. */
1041
1094
  interface FieldPlugin extends FieldPluginOptionsOneOf {
1042
1095
  /** Options for the CMS plugin. */
1043
1096
  cmsOptions?: CmsOptions;
1044
1097
  /** Options for the CATEGORY_FIELD plugin. */
1045
1098
  categoryFieldOptions?: CategoryFieldOptions;
1099
+ /** Field plugin type. */
1046
1100
  type?: FieldPluginTypeWithLiterals;
1047
1101
  }
1048
1102
  /** @oneof */
@@ -1053,9 +1107,9 @@ interface FieldPluginOptionsOneOf {
1053
1107
  categoryFieldOptions?: CategoryFieldOptions;
1054
1108
  }
1055
1109
  declare enum FieldPluginType {
1056
- /** Uknown plugin type. */
1110
+ /** Unknown plugin type. */
1057
1111
  UNKNOWN = "UNKNOWN",
1058
- /** CMS-related field attributes */
1112
+ /** CMS-related field attributes. */
1059
1113
  CMS = "CMS",
1060
1114
  /**
1061
1115
  * Marks a multi-reference field as a category field linking to a Category Group.
@@ -1100,7 +1154,7 @@ interface CategoryFieldOptions {
1100
1154
  }
1101
1155
  interface FieldCondition {
1102
1156
  /**
1103
- * If `group_name` is set, this field will not be present in query results. To retrieve this field, pass `group_name` value to `includeFieldGroups` parameter in query operations.
1157
+ * If `groupName` is set, this field will not be present in query results. To retrieve this field, pass `groupName` value to `includeFieldGroups` parameter in query operations.
1104
1158
  * @maxLength 100
1105
1159
  */
1106
1160
  groupName?: string | null;
@@ -1213,7 +1267,9 @@ interface PluginOptionsOneOf {
1213
1267
  draftItemsOptions?: DraftItemsPluginOptions;
1214
1268
  }
1215
1269
  declare enum Status {
1270
+ /** Items are published by default. */
1216
1271
  PUBLISHED = "PUBLISHED",
1272
+ /** Items are drafts by default. */
1217
1273
  DRAFT = "DRAFT"
1218
1274
  }
1219
1275
  /** @enumType */
@@ -1327,7 +1383,11 @@ declare enum PluginType {
1327
1383
  /** @enumType */
1328
1384
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
1329
1385
  interface PublishPluginOptions {
1330
- /** Default status. */
1386
+ /**
1387
+ * Publication status assigned to items that don't specify one.
1388
+ *
1389
+ * Default: `PUBLISHED`.
1390
+ */
1331
1391
  defaultStatus?: StatusWithLiterals;
1332
1392
  /**
1333
1393
  * Server-managed lifecycle status.
@@ -1344,7 +1404,11 @@ interface SingleItemPluginOptions {
1344
1404
  singleItemId?: string;
1345
1405
  }
1346
1406
  interface UrlizedPluginOptions {
1347
- /** Encoding method for generating a URL in ASCII characters. */
1407
+ /**
1408
+ * Encoding method for generating a URL in ASCII characters.
1409
+ *
1410
+ * Default: `ORIGINAL`.
1411
+ */
1348
1412
  format?: FormatWithLiterals;
1349
1413
  }
1350
1414
  interface MultilingualOptions {
@@ -1356,7 +1420,17 @@ interface MultilingualOptions {
1356
1420
  translatableFieldKeys?: string[];
1357
1421
  }
1358
1422
  interface PageLinkPluginOptions {
1423
+ /**
1424
+ * Whether page link values are stored with the items.
1425
+ *
1426
+ * Default: `false`.
1427
+ */
1359
1428
  isPersisted?: boolean;
1429
+ /**
1430
+ * Whether page link values can be updated.
1431
+ *
1432
+ * Default: `false`.
1433
+ */
1360
1434
  isMutable?: boolean;
1361
1435
  }
1362
1436
  interface PluginCmsOptions {
@@ -1508,10 +1582,13 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1508
1582
  * @readonly
1509
1583
  */
1510
1584
  publishedCollectionId?: string;
1511
- /** @internal */
1585
+ /**
1586
+ * Access levels required to view and manage drafts and change publication status.
1587
+ * @internal
1588
+ */
1512
1589
  draftPermissions?: DraftPermissions;
1513
1590
  /**
1514
- * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1591
+ * Actual draft management operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`.
1515
1592
  * @internal
1516
1593
  * @readonly
1517
1594
  */
@@ -1607,32 +1684,32 @@ interface DataCollectionClonedEvent {
1607
1684
  }
1608
1685
  interface DataCollectionChangedEvent {
1609
1686
  /**
1610
- * list of new fields
1687
+ * Fields added to the collection.
1611
1688
  * @maxSize 1000
1612
1689
  */
1613
1690
  fieldsAdded?: Field[];
1614
1691
  /**
1615
- * list of changed fields
1692
+ * Fields whose definitions changed.
1616
1693
  * @maxSize 1000
1617
1694
  */
1618
1695
  fieldsUpdated?: FieldUpdate[];
1619
1696
  /**
1620
- * list of removed fields
1697
+ * Fields removed from the collection.
1621
1698
  * @maxSize 1000
1622
1699
  */
1623
1700
  fieldsRemoved?: Field[];
1624
1701
  /**
1625
- * list of new plugins
1702
+ * Plugins added to the collection.
1626
1703
  * @maxSize 100
1627
1704
  */
1628
1705
  pluginsAdded?: Plugin[];
1629
1706
  /**
1630
- * list of changed plugins
1707
+ * Plugins whose options changed.
1631
1708
  * @maxSize 100
1632
1709
  */
1633
1710
  pluginsUpdated?: PluginUpdate[];
1634
1711
  /**
1635
- * list of removed plugins
1712
+ * Plugins removed from the collection.
1636
1713
  * @maxSize 100
1637
1714
  */
1638
1715
  pluginsRemoved?: Plugin[];
@@ -1642,15 +1719,15 @@ interface DataCollectionChangedEvent {
1642
1719
  strictModeUpdated?: StrictModeUpdate;
1643
1720
  }
1644
1721
  interface FieldUpdate {
1645
- /** previous state of the field */
1722
+ /** Previous field definition. */
1646
1723
  previous?: Field;
1647
- /** current state of the field */
1724
+ /** Updated field definition. */
1648
1725
  current?: Field;
1649
1726
  }
1650
1727
  interface PluginUpdate {
1651
- /** previous state of the plugin */
1728
+ /** Previous plugin configuration. */
1652
1729
  previous?: Plugin;
1653
- /** current state of the plugin */
1730
+ /** Updated plugin configuration. */
1654
1731
  current?: Plugin;
1655
1732
  }
1656
1733
  interface PermissionsUpdate {
@@ -1678,7 +1755,7 @@ interface CreateDataCollectionRequest {
1678
1755
  collection: DataCollection;
1679
1756
  }
1680
1757
  interface CreateDataCollectionResponse {
1681
- /** Details of collection created. */
1758
+ /** Created collection. */
1682
1759
  collection?: DataCollection;
1683
1760
  }
1684
1761
  interface GetDataCollectionRequest {
@@ -1721,8 +1798,9 @@ interface GetDataCollectionRequest {
1721
1798
  */
1722
1799
  segment?: SegmentWithLiterals;
1723
1800
  /**
1724
- * List of specific field names to return, if empty all fields are returned.
1725
- * Affects all returned collections
1801
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1802
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1803
+ * An empty list returns all properties available to the caller.
1726
1804
  * @maxSize 100
1727
1805
  * @maxLength 1000
1728
1806
  */
@@ -1736,7 +1814,7 @@ declare enum Segment {
1736
1814
  /** @enumType */
1737
1815
  type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1738
1816
  interface GetDataCollectionResponse {
1739
- /** Details of the collection requested. */
1817
+ /** Requested collection. */
1740
1818
  collection?: DataCollection;
1741
1819
  /**
1742
1820
  * Details of collections referenced by the collection requested.
@@ -1749,10 +1827,16 @@ interface ListDataCollectionsRequest {
1749
1827
  /**
1750
1828
  * Defines how collections in the response are sorted.
1751
1829
  *
1752
- * Default: Ordered by ID in ascending order.
1830
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1831
+ *
1832
+ * Default: `id` in ascending order.
1753
1833
  */
1754
1834
  sort?: Sorting;
1755
- /** Pagination information. */
1835
+ /**
1836
+ * Pagination information. The maximum page size is `1000`.
1837
+ *
1838
+ * Default: `limit` is `1000` and `offset` is `0`.
1839
+ */
1756
1840
  paging?: Paging;
1757
1841
  /**
1758
1842
  * Whether to retrieve data from the primary database instance.
@@ -1774,8 +1858,9 @@ interface ListDataCollectionsRequest {
1774
1858
  */
1775
1859
  segment?: SegmentWithLiterals;
1776
1860
  /**
1777
- * List of specific field names to return, if empty all fields are returned.
1778
- * Affects all returned collections
1861
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1862
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1863
+ * An empty list returns all properties available to the caller.
1779
1864
  * @maxSize 100
1780
1865
  * @maxLength 128
1781
1866
  */
@@ -1846,7 +1931,13 @@ interface BulkGetDataCollectionsRequest {
1846
1931
  * Default: `false`
1847
1932
  */
1848
1933
  includeReferencedCollections?: boolean;
1849
- /** Sorting preferences. */
1934
+ /**
1935
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
1936
+ *
1937
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1938
+ *
1939
+ * Default: `id` in ascending order.
1940
+ */
1850
1941
  sort?: Sorting;
1851
1942
  /**
1852
1943
  * Whether to retrieve data from the primary database instance.
@@ -1868,8 +1959,9 @@ interface BulkGetDataCollectionsRequest {
1868
1959
  */
1869
1960
  segment?: SegmentWithLiterals;
1870
1961
  /**
1871
- * List of specific field names to return, if empty all fields are returned.
1872
- * Affects all returned collections
1962
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1963
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1964
+ * An empty list returns all properties available to the caller.
1873
1965
  * @maxSize 100
1874
1966
  * @maxLength 1000
1875
1967
  */
@@ -1878,12 +1970,12 @@ interface BulkGetDataCollectionsRequest {
1878
1970
  interface BulkGetDataCollectionsResponse {
1879
1971
  /**
1880
1972
  * List of requested collections.
1881
- * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
1973
+ * When `includeReferencedCollections` is `true` in the request, referenced collections are included here.
1882
1974
  */
1883
1975
  activeCollections?: DataCollection[];
1884
1976
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
1885
1977
  deletedCollections?: DataCollection[];
1886
- /** List of failed collections. */
1978
+ /** Collections that couldn't be loaded, with an error for each failure. */
1887
1979
  failedCollections?: FailedCollection[];
1888
1980
  }
1889
1981
  interface ApplicationError {
@@ -1896,7 +1988,7 @@ interface ApplicationError {
1896
1988
  }
1897
1989
  interface FailedCollection {
1898
1990
  /**
1899
- * IDs of the failed collection.
1991
+ * ID of the collection that couldn't be loaded.
1900
1992
  * @maxLength 255
1901
1993
  */
1902
1994
  collectionId?: string;
@@ -1922,13 +2014,13 @@ interface DeleteDataCollectionResponse {
1922
2014
  }
1923
2015
  interface RestoreDataCollectionRequest {
1924
2016
  /**
1925
- * Data Collection ID to restore
2017
+ * ID of the data collection to restore.
1926
2018
  * @maxLength 256
1927
2019
  */
1928
2020
  dataCollectionId?: string;
1929
2021
  }
1930
2022
  interface RestoreDataCollectionResponse {
1931
- /** Restored data collection */
2023
+ /** Restored data collection. */
1932
2024
  dataCollection?: DataCollection;
1933
2025
  }
1934
2026
  interface PatchDataCollectionRequest {
@@ -2028,7 +2120,11 @@ interface AddPublishPluginRequest {
2028
2120
  dataCollectionId: string;
2029
2121
  /** Publish plugin options. */
2030
2122
  publishOptions: PublishPluginOptions;
2031
- /** Action to take when the Draft Items plugin is already installed. */
2123
+ /**
2124
+ * Action to take when the Draft Items plugin is already installed.
2125
+ *
2126
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
2127
+ */
2032
2128
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
2033
2129
  }
2034
2130
  /** Behavior to apply when adding the Publish plugin to a collection that already has the Draft Items plugin. */
@@ -2065,7 +2161,10 @@ interface UpdatePublishPluginRequest {
2065
2161
  * @maxLength 256
2066
2162
  */
2067
2163
  dataCollectionId: string;
2068
- /** Updated Publish plugin options. Read-only fields are ignored. */
2164
+ /**
2165
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
2166
+ * Server-managed lifecycle status is preserved.
2167
+ */
2069
2168
  publishOptions: PublishPluginOptions;
2070
2169
  }
2071
2170
  interface UpdatePublishPluginResponse {
@@ -2102,7 +2201,7 @@ interface UpdateUrlizedPluginRequest {
2102
2201
  * @maxLength 256
2103
2202
  */
2104
2203
  dataCollectionId: string;
2105
- /** Updated Urlized plugin options. */
2204
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
2106
2205
  urlizedOptions: UrlizedPluginOptions;
2107
2206
  }
2108
2207
  interface UpdateUrlizedPluginResponse {
@@ -2139,7 +2238,7 @@ interface UpdateMultilingualPluginRequest {
2139
2238
  * @maxLength 256
2140
2239
  */
2141
2240
  dataCollectionId: string;
2142
- /** Updated Multilingual plugin options. */
2241
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
2143
2242
  multilingualOptions: MultilingualOptions;
2144
2243
  }
2145
2244
  interface UpdateMultilingualPluginResponse {
@@ -2176,7 +2275,7 @@ interface UpdateCmsPluginRequest {
2176
2275
  * @maxLength 256
2177
2276
  */
2178
2277
  dataCollectionId: string;
2179
- /** Updated CMS plugin options. */
2278
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
2180
2279
  cmsOptions: PluginCmsOptions;
2181
2280
  }
2182
2281
  interface UpdateCmsPluginResponse {
@@ -2213,7 +2312,7 @@ interface UpdateCatalogPluginRequest {
2213
2312
  * @maxLength 256
2214
2313
  */
2215
2314
  dataCollectionId: string;
2216
- /** Updated Catalog plugin options. */
2315
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
2217
2316
  catalogOptions: CatalogOptions;
2218
2317
  }
2219
2318
  interface UpdateCatalogPluginResponse {
@@ -2228,7 +2327,11 @@ interface AddDraftItemsPluginRequest {
2228
2327
  dataCollectionId: string;
2229
2328
  /** Draft Items plugin options. */
2230
2329
  draftItemsOptions: DraftItemsPluginOptions;
2231
- /** Action to take when the Publish plugin is already installed. */
2330
+ /**
2331
+ * Action to take when the Publish plugin is already installed.
2332
+ *
2333
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
2334
+ */
2232
2335
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
2233
2336
  }
2234
2337
  /** Behavior to apply when adding the Draft Items plugin to a collection that already has the Publish plugin. */
@@ -2250,7 +2353,11 @@ interface DeleteDraftItemsPluginRequest {
2250
2353
  * @maxLength 256
2251
2354
  */
2252
2355
  dataCollectionId: string;
2253
- /** Action to take for existing draft items. */
2356
+ /**
2357
+ * Action to take for existing draft items.
2358
+ *
2359
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
2360
+ */
2254
2361
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
2255
2362
  }
2256
2363
  /** Behavior to apply to existing draft items when removing the Draft Items plugin. */
@@ -2274,7 +2381,10 @@ interface UpdateDraftItemsPluginRequest {
2274
2381
  * @maxLength 256
2275
2382
  */
2276
2383
  dataCollectionId: string;
2277
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
2384
+ /**
2385
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
2386
+ * Server-managed paired collection IDs are preserved.
2387
+ */
2278
2388
  draftItemsOptions: DraftItemsPluginOptions;
2279
2389
  }
2280
2390
  interface UpdateDraftItemsPluginResponse {
@@ -2287,12 +2397,13 @@ interface PatchDataCollectionFieldRequest {
2287
2397
  * @maxLength 256
2288
2398
  */
2289
2399
  dataCollectionId: string;
2290
- /** Field to update. */
2400
+ /** Field to update. Specify `key` to identify the existing field. */
2291
2401
  field: Field;
2292
2402
  /**
2293
2403
  * Field mask specifying which field properties to update.
2294
2404
  * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2295
2405
  * Attempting to update `key` or other unsupported properties results in an error.
2406
+ * Each masked property must have a value in `field`. To set `encrypted` to `false`, explicitly include it in the mask.
2296
2407
  * @internal
2297
2408
  */
2298
2409
  fieldMask?: string[];
@@ -2315,6 +2426,7 @@ interface UpdateDataPermissionsResponse {
2315
2426
  dataCollection?: DataCollection;
2316
2427
  }
2317
2428
  interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2429
+ /** App whose collection snapshots to retrieve. */
2318
2430
  appOptions?: AppOptions;
2319
2431
  /**
2320
2432
  * Ids of schema snapshot
@@ -2333,6 +2445,7 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollec
2333
2445
  }
2334
2446
  /** @oneof */
2335
2447
  interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2448
+ /** App whose collection snapshots to retrieve. */
2336
2449
  appOptions?: AppOptions;
2337
2450
  }
2338
2451
  declare enum TenantMode {
@@ -2620,15 +2733,27 @@ interface DeleteDataCollectionsSnapshotRequest {
2620
2733
  interface DeleteDataCollectionsSnapshotResponse {
2621
2734
  }
2622
2735
  interface CreateMigratedCollectionsSnapshotRequest {
2623
- /** @format GUID */
2736
+ /**
2737
+ * ID of the source snapshot.
2738
+ * @format GUID
2739
+ */
2624
2740
  existingSnapshotId?: string;
2625
- /** @maxLength 255 */
2741
+ /**
2742
+ * Namespace to assign to collections in the new snapshot.
2743
+ * @maxLength 255
2744
+ */
2626
2745
  newNamespace?: string;
2627
- /** @maxLength 255 */
2746
+ /**
2747
+ * Namespace to replace in the source snapshot.
2748
+ * @maxLength 255
2749
+ */
2628
2750
  existingNamespace?: string;
2629
2751
  }
2630
2752
  interface CreateMigratedCollectionsSnapshotResponse {
2631
- /** @format GUID */
2753
+ /**
2754
+ * ID of the created snapshot.
2755
+ * @format GUID
2756
+ */
2632
2757
  snapshotId?: string;
2633
2758
  }
2634
2759
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -2785,7 +2910,7 @@ interface AccountInfo {
2785
2910
  siteId?: string | null;
2786
2911
  }
2787
2912
  /**
2788
- * Creates a new data collection.
2913
+ * Creates a data collection.
2789
2914
  *
2790
2915
  * The request body must include an ID, details for at least 1 field, and a permissions object. If any of these are missing, the collection isn't created.
2791
2916
  * @param collection - Collection details.
@@ -2801,25 +2926,26 @@ interface AccountInfo {
2801
2926
  * @param options - Options for creating a data collection.
2802
2927
  * @permissionId WIX_DATA.CREATE_COLLECTION
2803
2928
  * @applicableIdentity APP
2804
- * @returns Details of collection created.
2929
+ * @returns Created collection.
2805
2930
  * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.CreateDataCollection
2806
2931
  */
2807
2932
  declare function createDataCollection(collection: NonNullablePaths<DataCollection, `_id` | `fields.${number}.key` | `fields.${number}.type` | `permissions.insert` | `permissions.read` | `permissions.remove` | `permissions.update`, 2>): 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` | `deprecation.deprecated`, 4>>;
2808
2933
  /**
2809
2934
  * Retrieves a data collection by ID.
2810
2935
  *
2811
- * Starting on August 3rd, 2026, when called with a visitor (unauthenticated) identity, the response contains only
2812
- * the collection details needed to display the collection's data: `id`, `displayName`, `displayField`, `plugins`,
2813
- * and for each field in `fields` its `key`, `displayName`, `type`, and `typeMetadata`. All other collection
2814
- * details, such as `permissions` and `capabilities`, are omitted. Calls made with any other identity return the
2815
- * full collection.
2936
+ * Calls made with a visitor (unauthenticated) identity return a limited collection view.
2937
+ * The response includes display information, plugins, paging information, and supported operations.
2938
+ * It omits permissions, creation and update dates, index limits, and field descriptions and encryption settings.
2939
+ * Other identities return the full collection, subject to the requested field selection.
2940
+ *
2941
+ * To retrieve multiple collections in one call, use [Bulk Get Data Collections](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/bulk-get-data-collections).
2816
2942
  * @param dataCollectionId - ID of the collection to retrieve.
2817
2943
  * @public
2818
2944
  * @requiredField dataCollectionId
2819
2945
  * @param options - Options for retrieving a data collection.
2820
2946
  * @permissionId WIX_DATA.GET_COLLECTION
2821
2947
  * @applicableIdentity APP
2822
- * @returns Details of the collection requested.
2948
+ * @returns Requested collection.
2823
2949
  * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.GetDataCollection
2824
2950
  */
2825
2951
  declare function getDataCollection(dataCollectionId: string, options?: GetDataCollectionOptions): 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` | `deprecation.deprecated`, 4>>;
@@ -2838,17 +2964,20 @@ interface GetDataCollectionOptions {
2838
2964
  */
2839
2965
  includeAllowedDataPermissions?: boolean;
2840
2966
  /**
2841
- * List of specific field names to return, if empty all fields are returned.
2842
- * Affects all returned collections
2967
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
2968
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
2969
+ * An empty list returns all properties available to the caller.
2843
2970
  * @maxSize 100
2844
2971
  * @maxLength 1000
2845
2972
  */
2846
2973
  fields?: string[];
2847
2974
  }
2848
2975
  /**
2849
- * Retrieves a list of all data collections associated with the site or project.
2976
+ * Retrieves a page of data collections associated with the site or project.
2850
2977
  *
2851
- * By default, the list is ordered by ID in ascending order.
2978
+ * By default, results are sorted by `id` in ascending order, `paging.limit` is `1000`, and `paging.offset` is `0`.
2979
+ * The maximum page size is `1000`. Larger limits are reduced to `1000`.
2980
+ * To retrieve the next page, increase `paging.offset` by the number of collections returned.
2852
2981
  * @public
2853
2982
  * @param options - Options for retrieving a list of data collections.
2854
2983
  * @permissionId WIX_DATA.LIST_COLLECTIONS
@@ -2860,10 +2989,16 @@ interface ListDataCollectionsOptions {
2860
2989
  /**
2861
2990
  * Defines how collections in the response are sorted.
2862
2991
  *
2863
- * Default: Ordered by ID in ascending order.
2992
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
2993
+ *
2994
+ * Default: `id` in ascending order.
2864
2995
  */
2865
2996
  sort?: Sorting;
2866
- /** Pagination information. */
2997
+ /**
2998
+ * Pagination information. The maximum page size is `1000`.
2999
+ *
3000
+ * Default: `limit` is `1000` and `offset` is `0`.
3001
+ */
2867
3002
  paging?: Paging;
2868
3003
  /**
2869
3004
  * Whether to retrieve data from the primary database instance.
@@ -2879,8 +3014,9 @@ interface ListDataCollectionsOptions {
2879
3014
  */
2880
3015
  includeAllowedDataPermissions?: boolean;
2881
3016
  /**
2882
- * List of specific field names to return, if empty all fields are returned.
2883
- * Affects all returned collections
3017
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
3018
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
3019
+ * An empty list returns all properties available to the caller.
2884
3020
  * @maxSize 100
2885
3021
  * @maxLength 128
2886
3022
  */
@@ -2889,11 +3025,16 @@ interface ListDataCollectionsOptions {
2889
3025
  /**
2890
3026
  * Retrieves multiple data collections by ID.
2891
3027
  *
2892
- * Starting on August 3rd, 2026, when called with a visitor (unauthenticated) identity, the returned collections
2893
- * contain only the details needed to display the collections' data: `id`, `displayName`, `displayField`,
2894
- * `plugins`, and for each field in `fields` its `key`, `displayName`, `type`, and `typeMetadata`. All other
2895
- * collection details, such as `permissions` and `capabilities`, are omitted. Calls made with any other identity
2896
- * return the full collections.
3028
+ * Calls made with a visitor (unauthenticated) identity return a limited collection view.
3029
+ * The response includes display information, plugins, paging information, and supported operations.
3030
+ * It omits permissions, creation and update dates, index limits, and field descriptions and encryption settings.
3031
+ * Other identities return the full collection, subject to the requested field selection.
3032
+ *
3033
+ * Successful results are returned in `activeCollections` and, when requested, `deletedCollections`.
3034
+ * Collection loading failures are returned separately in `failedCollections`.
3035
+ * Results are sorted by `id` in ascending order unless `sort` specifies a different order.
3036
+ *
3037
+ * To retrieve a single collection, call [Get Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/get-data-collection).
2897
3038
  * @public
2898
3039
  * @documentationMaturity preview
2899
3040
  * @permissionId WIX_DATA.BULK_GET_COLLECTIONS
@@ -2921,7 +3062,13 @@ interface BulkGetDataCollectionsOptions {
2921
3062
  * Default: `false`
2922
3063
  */
2923
3064
  includeReferencedCollections?: boolean;
2924
- /** Sorting preferences. */
3065
+ /**
3066
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
3067
+ *
3068
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
3069
+ *
3070
+ * Default: `id` in ascending order.
3071
+ */
2925
3072
  sort?: Sorting;
2926
3073
  /**
2927
3074
  * Whether to retrieve data from the primary database instance.
@@ -2937,8 +3084,9 @@ interface BulkGetDataCollectionsOptions {
2937
3084
  */
2938
3085
  includeAllowedDataPermissions?: boolean;
2939
3086
  /**
2940
- * List of specific field names to return, if empty all fields are returned.
2941
- * Affects all returned collections
3087
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
3088
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
3089
+ * An empty list returns all properties available to the caller.
2942
3090
  * @maxSize 100
2943
3091
  * @maxLength 1000
2944
3092
  */
@@ -2988,7 +3136,7 @@ declare function updateDataCollection(collection: NonNullablePaths<DataCollectio
2988
3136
  *
2989
3137
  * Before deleting a collection:
2990
3138
  * - Make sure the collection isn't connected to any site pages or elements.
2991
- * - You can create a manual backup of a collections with the Backups API, in case you need to restore them later.
3139
+ * - You can create a manual backup of collections with the Backups API, in case you need to restore them later.
2992
3140
  * - You can also export a collection to a CSV file with the Data Movement Jobs API, if you want to save the data outside of Wix.
2993
3141
  *
2994
3142
  * > **Note:**
@@ -3002,10 +3150,10 @@ declare function updateDataCollection(collection: NonNullablePaths<DataCollectio
3002
3150
  */
3003
3151
  declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
3004
3152
  /**
3005
- * Restores recently deleted collection.
3153
+ * Restores a recently deleted data collection.
3006
3154
  *
3007
3155
  * Fails with `WDE0025` if collection was deleted too long ago or has never existed.
3008
- * @param dataCollectionId - Data Collection ID to restore
3156
+ * @param dataCollectionId - ID of the data collection to restore.
3009
3157
  * @public
3010
3158
  * @documentationMaturity preview
3011
3159
  * @requiredField dataCollectionId
@@ -3062,6 +3210,8 @@ interface PatchDataCollection {
3062
3210
  maxPageSize?: number | null;
3063
3211
  /**
3064
3212
  * Collection's display name as shown in the CMS. For example, `My First Collection`.
3213
+ *
3214
+ * Default: The collection ID.
3065
3215
  * @maxLength 1000
3066
3216
  */
3067
3217
  displayName?: string | null;
@@ -3079,6 +3229,8 @@ interface PatchDataCollection {
3079
3229
  displayNamespace?: string | null;
3080
3230
  /**
3081
3231
  * Field whose value the CMS displays to represent the collection item when referenced in a different collection.
3232
+ *
3233
+ * Default: The first field in the request, or `title` if no fields are specified.
3082
3234
  * @maxLength 1000
3083
3235
  */
3084
3236
  displayField?: string | null;
@@ -3127,7 +3279,7 @@ interface PatchDataCollection {
3127
3279
  */
3128
3280
  dataPermissions?: DataPermissions;
3129
3281
  /**
3130
- * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`
3282
+ * Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`
3131
3283
  * @internal
3132
3284
  * @readonly
3133
3285
  */
@@ -3169,13 +3321,13 @@ interface CreateDataCollectionFieldOptions {
3169
3321
  field: Field;
3170
3322
  }
3171
3323
  /**
3172
- * Updates 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.
3324
+ * Replaces the definition of a field in a data collection.
3173
3325
  *
3174
3326
  * <blockquote class="important">
3175
3327
  * <strong>Important:</strong>
3176
3328
  *
3177
- * After `fields` is updated, it only contains the properties included in the Update Data Collection Field request.
3178
- * If the existing `fields` array has properties with values and those properties aren't included in the updated details, their values are lost.<br/><br/>
3329
+ * The field identified by `field.key` is replaced with the supplied definition.
3330
+ * Properties omitted from that field definition aren't preserved. Other fields in the collection aren't replaced.<br/><br/>
3179
3331
  *
3180
3332
  * To update only specific properties in the array without affecting others, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
3181
3333
  * </blockquote>
@@ -3259,6 +3411,8 @@ interface DeleteDataCollectionPluginOptions {
3259
3411
  }
3260
3412
  /**
3261
3413
  * Adds the Publish plugin to a data collection.
3414
+ *
3415
+ * Fails if the collection already has this plugin.
3262
3416
  * @public
3263
3417
  * @documentationMaturity preview
3264
3418
  * @requiredField dataCollectionId
@@ -3274,11 +3428,17 @@ declare function addPublishPlugin(dataCollectionId: string, options?: NonNullabl
3274
3428
  interface AddPublishPluginOptions {
3275
3429
  /** Publish plugin options. */
3276
3430
  publishOptions: PublishPluginOptions;
3277
- /** Action to take when the Draft Items plugin is already installed. */
3431
+ /**
3432
+ * Action to take when the Draft Items plugin is already installed.
3433
+ *
3434
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
3435
+ */
3278
3436
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
3279
3437
  }
3280
3438
  /**
3281
3439
  * Removes the Publish plugin from a data collection.
3440
+ *
3441
+ * Fails if the collection doesn't have this plugin.
3282
3442
  * @param dataCollectionId - ID of the data collection to update.
3283
3443
  * @public
3284
3444
  * @documentationMaturity preview
@@ -3290,6 +3450,9 @@ interface AddPublishPluginOptions {
3290
3450
  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` | `dataCollection.deprecation.deprecated`, 5>>;
3291
3451
  /**
3292
3452
  * Updates the Publish plugin options on a data collection.
3453
+ *
3454
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3455
+ * Server-managed properties are preserved, and other plugins aren't changed.
3293
3456
  * @param dataCollectionId - ID of the data collection to update.
3294
3457
  * @public
3295
3458
  * @documentationMaturity preview
@@ -3302,11 +3465,16 @@ declare function deletePublishPlugin(dataCollectionId: string): Promise<NonNulla
3302
3465
  */
3303
3466
  declare function updatePublishPlugin(dataCollectionId: string, options: NonNullablePaths<UpdatePublishPluginOptions, `publishOptions`, 0>): Promise<NonNullablePaths<UpdatePublishPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3304
3467
  interface UpdatePublishPluginOptions {
3305
- /** Updated Publish plugin options. Read-only fields are ignored. */
3468
+ /**
3469
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
3470
+ * Server-managed lifecycle status is preserved.
3471
+ */
3306
3472
  publishOptions: PublishPluginOptions;
3307
3473
  }
3308
3474
  /**
3309
3475
  * Adds the Urlized plugin to a data collection.
3476
+ *
3477
+ * Fails if the collection already has this plugin.
3310
3478
  * @public
3311
3479
  * @documentationMaturity preview
3312
3480
  * @requiredField dataCollectionId
@@ -3325,6 +3493,8 @@ interface AddUrlizedPluginOptions {
3325
3493
  }
3326
3494
  /**
3327
3495
  * Removes the Urlized plugin from a data collection.
3496
+ *
3497
+ * Fails if the collection doesn't have this plugin.
3328
3498
  * @param dataCollectionId - ID of the data collection to update.
3329
3499
  * @public
3330
3500
  * @documentationMaturity preview
@@ -3336,6 +3506,9 @@ interface AddUrlizedPluginOptions {
3336
3506
  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` | `dataCollection.deprecation.deprecated`, 5>>;
3337
3507
  /**
3338
3508
  * Updates the Urlized plugin options on a data collection.
3509
+ *
3510
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3511
+ * Server-managed properties are preserved, and other plugins aren't changed.
3339
3512
  * @param dataCollectionId - ID of the data collection to update.
3340
3513
  * @public
3341
3514
  * @documentationMaturity preview
@@ -3348,11 +3521,13 @@ declare function deleteUrlizedPlugin(dataCollectionId: string): Promise<NonNulla
3348
3521
  */
3349
3522
  declare function updateUrlizedPlugin(dataCollectionId: string, options: NonNullablePaths<UpdateUrlizedPluginOptions, `urlizedOptions`, 0>): Promise<NonNullablePaths<UpdateUrlizedPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3350
3523
  interface UpdateUrlizedPluginOptions {
3351
- /** Updated Urlized plugin options. */
3524
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
3352
3525
  urlizedOptions: UrlizedPluginOptions;
3353
3526
  }
3354
3527
  /**
3355
3528
  * Adds the Multilingual plugin to a data collection.
3529
+ *
3530
+ * Fails if the collection already has this plugin.
3356
3531
  * @public
3357
3532
  * @documentationMaturity preview
3358
3533
  * @requiredField dataCollectionId
@@ -3371,6 +3546,8 @@ interface AddMultilingualPluginOptions {
3371
3546
  }
3372
3547
  /**
3373
3548
  * Removes the Multilingual plugin from a data collection.
3549
+ *
3550
+ * Fails if the collection doesn't have this plugin.
3374
3551
  * @param dataCollectionId - ID of the data collection to update.
3375
3552
  * @public
3376
3553
  * @documentationMaturity preview
@@ -3382,6 +3559,9 @@ interface AddMultilingualPluginOptions {
3382
3559
  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` | `dataCollection.deprecation.deprecated`, 5>>;
3383
3560
  /**
3384
3561
  * Updates the Multilingual plugin options on a data collection.
3562
+ *
3563
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3564
+ * Server-managed properties are preserved, and other plugins aren't changed.
3385
3565
  * @param dataCollectionId - ID of the data collection to update.
3386
3566
  * @public
3387
3567
  * @documentationMaturity preview
@@ -3394,11 +3574,13 @@ declare function deleteMultilingualPlugin(dataCollectionId: string): Promise<Non
3394
3574
  */
3395
3575
  declare function updateMultilingualPlugin(dataCollectionId: string, options: NonNullablePaths<UpdateMultilingualPluginOptions, `multilingualOptions`, 0>): Promise<NonNullablePaths<UpdateMultilingualPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3396
3576
  interface UpdateMultilingualPluginOptions {
3397
- /** Updated Multilingual plugin options. */
3577
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
3398
3578
  multilingualOptions: MultilingualOptions;
3399
3579
  }
3400
3580
  /**
3401
3581
  * Adds the CMS plugin to a data collection.
3582
+ *
3583
+ * Fails if the collection already has this plugin.
3402
3584
  * @public
3403
3585
  * @documentationMaturity preview
3404
3586
  * @requiredField dataCollectionId
@@ -3417,6 +3599,8 @@ interface AddCmsPluginOptions {
3417
3599
  }
3418
3600
  /**
3419
3601
  * Removes the CMS plugin from a data collection.
3602
+ *
3603
+ * Fails if the collection doesn't have this plugin.
3420
3604
  * @param dataCollectionId - ID of the data collection to update.
3421
3605
  * @public
3422
3606
  * @documentationMaturity preview
@@ -3428,6 +3612,9 @@ interface AddCmsPluginOptions {
3428
3612
  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` | `dataCollection.deprecation.deprecated`, 5>>;
3429
3613
  /**
3430
3614
  * Updates the CMS plugin options on a data collection.
3615
+ *
3616
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3617
+ * Server-managed properties are preserved, and other plugins aren't changed.
3431
3618
  * @param dataCollectionId - ID of the data collection to update.
3432
3619
  * @public
3433
3620
  * @documentationMaturity preview
@@ -3440,11 +3627,13 @@ declare function deleteCmsPlugin(dataCollectionId: string): Promise<NonNullableP
3440
3627
  */
3441
3628
  declare function updateCmsPlugin(dataCollectionId: string, options: NonNullablePaths<UpdateCmsPluginOptions, `cmsOptions`, 0>): Promise<NonNullablePaths<UpdateCmsPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3442
3629
  interface UpdateCmsPluginOptions {
3443
- /** Updated CMS plugin options. */
3630
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
3444
3631
  cmsOptions: PluginCmsOptions;
3445
3632
  }
3446
3633
  /**
3447
3634
  * Adds the Catalog plugin to a data collection.
3635
+ *
3636
+ * Fails if the collection already has this plugin.
3448
3637
  * @public
3449
3638
  * @documentationMaturity preview
3450
3639
  * @requiredField dataCollectionId
@@ -3463,6 +3652,8 @@ interface AddCatalogPluginOptions {
3463
3652
  }
3464
3653
  /**
3465
3654
  * Removes the Catalog plugin from a data collection.
3655
+ *
3656
+ * Fails if the collection doesn't have this plugin.
3466
3657
  * @param dataCollectionId - ID of the data collection to update.
3467
3658
  * @public
3468
3659
  * @documentationMaturity preview
@@ -3474,6 +3665,9 @@ interface AddCatalogPluginOptions {
3474
3665
  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` | `dataCollection.deprecation.deprecated`, 5>>;
3475
3666
  /**
3476
3667
  * Updates the Catalog plugin options on a data collection.
3668
+ *
3669
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3670
+ * Server-managed properties are preserved, and other plugins aren't changed.
3477
3671
  * @param dataCollectionId - ID of the data collection to update.
3478
3672
  * @public
3479
3673
  * @documentationMaturity preview
@@ -3486,11 +3680,13 @@ declare function deleteCatalogPlugin(dataCollectionId: string): Promise<NonNulla
3486
3680
  */
3487
3681
  declare function updateCatalogPlugin(dataCollectionId: string, options: NonNullablePaths<UpdateCatalogPluginOptions, `catalogOptions`, 0>): Promise<NonNullablePaths<UpdateCatalogPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3488
3682
  interface UpdateCatalogPluginOptions {
3489
- /** Updated Catalog plugin options. */
3683
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
3490
3684
  catalogOptions: CatalogOptions;
3491
3685
  }
3492
3686
  /**
3493
3687
  * Adds the Draft Items plugin to a data collection.
3688
+ *
3689
+ * Fails if the collection already has this plugin.
3494
3690
  * @public
3495
3691
  * @documentationMaturity preview
3496
3692
  * @requiredField dataCollectionId
@@ -3506,11 +3702,17 @@ declare function addDraftItemsPlugin(dataCollectionId: string, options?: NonNull
3506
3702
  interface AddDraftItemsPluginOptions {
3507
3703
  /** Draft Items plugin options. */
3508
3704
  draftItemsOptions: DraftItemsPluginOptions;
3509
- /** Action to take when the Publish plugin is already installed. */
3705
+ /**
3706
+ * Action to take when the Publish plugin is already installed.
3707
+ *
3708
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
3709
+ */
3510
3710
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
3511
3711
  }
3512
3712
  /**
3513
3713
  * Removes the Draft Items plugin from a data collection.
3714
+ *
3715
+ * Fails if the collection doesn't have this plugin.
3514
3716
  * @param dataCollectionId - ID of the data collection to update.
3515
3717
  * @public
3516
3718
  * @documentationMaturity preview
@@ -3522,11 +3724,18 @@ interface AddDraftItemsPluginOptions {
3522
3724
  */
3523
3725
  declare function deleteDraftItemsPlugin(dataCollectionId: string, options?: DeleteDraftItemsPluginOptions): Promise<NonNullablePaths<DeleteDraftItemsPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3524
3726
  interface DeleteDraftItemsPluginOptions {
3525
- /** Action to take for existing draft items. */
3727
+ /**
3728
+ * Action to take for existing draft items.
3729
+ *
3730
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
3731
+ */
3526
3732
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
3527
3733
  }
3528
3734
  /**
3529
3735
  * Updates the Draft Items plugin options on a data collection.
3736
+ *
3737
+ * The plugin must already be installed. The supplied options replace its writable options; omitted options use their defaults.
3738
+ * Server-managed properties are preserved, and other plugins aren't changed.
3530
3739
  * @param dataCollectionId - ID of the data collection to update.
3531
3740
  * @public
3532
3741
  * @documentationMaturity preview
@@ -3539,17 +3748,20 @@ interface DeleteDraftItemsPluginOptions {
3539
3748
  */
3540
3749
  declare function updateDraftItemsPlugin(dataCollectionId: string, options: NonNullablePaths<UpdateDraftItemsPluginOptions, `draftItemsOptions`, 0>): Promise<NonNullablePaths<UpdateDraftItemsPluginResponse, `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` | `dataCollection.deprecation.deprecated`, 5>>;
3541
3750
  interface UpdateDraftItemsPluginOptions {
3542
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
3751
+ /**
3752
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
3753
+ * Server-managed paired collection IDs are preserved.
3754
+ */
3543
3755
  draftItemsOptions: DraftItemsPluginOptions;
3544
3756
  }
3545
3757
  /**
3546
- * 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.
3758
+ * Updates specified properties of a field in a data collection.
3547
3759
  *
3548
3760
  * 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.
3549
3761
  *
3550
3762
  * 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).
3551
3763
  * @param dataCollectionId - ID of the data collection to update.
3552
- * @param field - Field to update.
3764
+ * @param field - Field to update. Specify `key` to identify the existing field.
3553
3765
  * @public
3554
3766
  * @requiredField dataCollectionId
3555
3767
  * @requiredField field