@wix/auto_sdk_data_collections 1.0.107 → 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,7 +1,10 @@
1
1
  import { CreateDataCollectionRequest as CreateDataCollectionRequest$1, CreateDataCollectionResponse as CreateDataCollectionResponse$1, GetDataCollectionRequest as GetDataCollectionRequest$1, GetDataCollectionResponse as GetDataCollectionResponse$1, ListDataCollectionsRequest as ListDataCollectionsRequest$1, ListDataCollectionsResponse as ListDataCollectionsResponse$1, BulkGetDataCollectionsRequest as BulkGetDataCollectionsRequest$1, BulkGetDataCollectionsResponse as BulkGetDataCollectionsResponse$1, UpdateDataCollectionRequest as UpdateDataCollectionRequest$1, UpdateDataCollectionResponse as UpdateDataCollectionResponse$1, DeleteDataCollectionRequest as DeleteDataCollectionRequest$1, DeleteDataCollectionResponse as DeleteDataCollectionResponse$1, RestoreDataCollectionRequest as RestoreDataCollectionRequest$1, RestoreDataCollectionResponse as RestoreDataCollectionResponse$1, PatchDataCollectionRequest as PatchDataCollectionRequest$1, PatchDataCollectionResponse as PatchDataCollectionResponse$1, CreateDataCollectionFieldRequest as CreateDataCollectionFieldRequest$1, CreateDataCollectionFieldResponse as CreateDataCollectionFieldResponse$1, UpdateDataCollectionFieldRequest as UpdateDataCollectionFieldRequest$1, UpdateDataCollectionFieldResponse as UpdateDataCollectionFieldResponse$1, DeleteDataCollectionFieldRequest as DeleteDataCollectionFieldRequest$1, DeleteDataCollectionFieldResponse as DeleteDataCollectionFieldResponse$1, AddDataCollectionPluginRequest as AddDataCollectionPluginRequest$1, AddDataCollectionPluginResponse as AddDataCollectionPluginResponse$1, DeleteDataCollectionPluginRequest as DeleteDataCollectionPluginRequest$1, DeleteDataCollectionPluginResponse as DeleteDataCollectionPluginResponse$1, AddPublishPluginRequest as AddPublishPluginRequest$1, AddPublishPluginResponse as AddPublishPluginResponse$1, DeletePublishPluginRequest as DeletePublishPluginRequest$1, DeletePublishPluginResponse as DeletePublishPluginResponse$1, UpdatePublishPluginRequest as UpdatePublishPluginRequest$1, UpdatePublishPluginResponse as UpdatePublishPluginResponse$1, AddUrlizedPluginRequest as AddUrlizedPluginRequest$1, AddUrlizedPluginResponse as AddUrlizedPluginResponse$1, DeleteUrlizedPluginRequest as DeleteUrlizedPluginRequest$1, DeleteUrlizedPluginResponse as DeleteUrlizedPluginResponse$1, UpdateUrlizedPluginRequest as UpdateUrlizedPluginRequest$1, UpdateUrlizedPluginResponse as UpdateUrlizedPluginResponse$1, AddMultilingualPluginRequest as AddMultilingualPluginRequest$1, AddMultilingualPluginResponse as AddMultilingualPluginResponse$1, DeleteMultilingualPluginRequest as DeleteMultilingualPluginRequest$1, DeleteMultilingualPluginResponse as DeleteMultilingualPluginResponse$1, UpdateMultilingualPluginRequest as UpdateMultilingualPluginRequest$1, UpdateMultilingualPluginResponse as UpdateMultilingualPluginResponse$1, AddCmsPluginRequest as AddCmsPluginRequest$1, AddCmsPluginResponse as AddCmsPluginResponse$1, DeleteCmsPluginRequest as DeleteCmsPluginRequest$1, DeleteCmsPluginResponse as DeleteCmsPluginResponse$1, UpdateCmsPluginRequest as UpdateCmsPluginRequest$1, UpdateCmsPluginResponse as UpdateCmsPluginResponse$1, AddCatalogPluginRequest as AddCatalogPluginRequest$1, AddCatalogPluginResponse as AddCatalogPluginResponse$1, DeleteCatalogPluginRequest as DeleteCatalogPluginRequest$1, DeleteCatalogPluginResponse as DeleteCatalogPluginResponse$1, UpdateCatalogPluginRequest as UpdateCatalogPluginRequest$1, UpdateCatalogPluginResponse as UpdateCatalogPluginResponse$1, AddDraftItemsPluginRequest as AddDraftItemsPluginRequest$1, AddDraftItemsPluginResponse as AddDraftItemsPluginResponse$1, DeleteDraftItemsPluginRequest as DeleteDraftItemsPluginRequest$1, DeleteDraftItemsPluginResponse as DeleteDraftItemsPluginResponse$1, UpdateDraftItemsPluginRequest as UpdateDraftItemsPluginRequest$1, UpdateDraftItemsPluginResponse as UpdateDraftItemsPluginResponse$1, PatchDataCollectionFieldRequest as PatchDataCollectionFieldRequest$1, PatchDataCollectionFieldResponse as PatchDataCollectionFieldResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
- /** A data collection determines the structure of data to be stored in a database. */
4
+ /**
5
+ * A data collection defines the fields, data types, item permissions, and plugins for a set of data items.
6
+ * Use the Data Items API to store and retrieve the items themselves.
7
+ */
5
8
  interface DataCollection {
6
9
  /**
7
10
  * [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`.
@@ -31,6 +34,8 @@ interface DataCollection {
31
34
  maxPageSize?: number | null;
32
35
  /**
33
36
  * Collection's display name as shown in the CMS. For example, `My First Collection`.
37
+ *
38
+ * Default: The collection ID.
34
39
  * @maxLength 1000
35
40
  */
36
41
  displayName?: string | null;
@@ -48,6 +53,8 @@ interface DataCollection {
48
53
  displayNamespace?: string | null;
49
54
  /**
50
55
  * Field whose value the CMS displays to represent the collection item when referenced in a different collection.
56
+ *
57
+ * Default: The first field in the request, or `title` if no fields are specified.
51
58
  * @maxLength 1000
52
59
  */
53
60
  displayField?: string | null;
@@ -96,7 +103,7 @@ interface DataCollection {
96
103
  */
97
104
  dataPermissions?: DataPermissions;
98
105
  /**
99
- * Actual data operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`
106
+ * Actual data operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`
100
107
  * @internal
101
108
  * @readonly
102
109
  */
@@ -248,7 +255,7 @@ interface Field extends FieldRangeValidationsOneOf {
248
255
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
249
256
  */
250
257
  type?: TypeWithLiterals;
251
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
258
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
252
259
  typeMetadata?: TypeMetadata;
253
260
  /**
254
261
  * Whether the field is a system field.
@@ -268,6 +275,7 @@ interface Field extends FieldRangeValidationsOneOf {
268
275
  */
269
276
  description?: string | null;
270
277
  /**
278
+ * Plugin that manages this field.
271
279
  * @internal
272
280
  * @maxLength 100
273
281
  */
@@ -279,7 +287,7 @@ interface Field extends FieldRangeValidationsOneOf {
279
287
  */
280
288
  readOnly?: boolean | null;
281
289
  /**
282
- * Whether the field is immutable. An immutable field can be set once, but then cannot be updated.
290
+ * Whether the field is immutable. An immutable field can be set once, but then can't be updated.
283
291
  *
284
292
  * Default: `false`
285
293
  */
@@ -302,7 +310,7 @@ interface Field extends FieldRangeValidationsOneOf {
302
310
  */
303
311
  deleted?: boolean | null;
304
312
  /**
305
- * This indicates that this fields is conditional and is not retrieved by default.
313
+ * Conditions that control whether this field is included when retrieving data items.
306
314
  * @readonly
307
315
  */
308
316
  condition?: FieldCondition;
@@ -711,7 +719,7 @@ interface ObjectField {
711
719
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
712
720
  */
713
721
  type?: TypeWithLiterals;
714
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
722
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
715
723
  typeMetadata?: TypeMetadata;
716
724
  /**
717
725
  * Capabilities the object field supports.
@@ -720,12 +728,19 @@ interface ObjectField {
720
728
  capabilities?: FieldCapabilities;
721
729
  }
722
730
  interface FieldsPattern {
723
- /** @maxLength 1000 */
731
+ /**
732
+ * Pattern used to generate the field value from item properties.
733
+ * @maxLength 1000
734
+ */
724
735
  pattern?: string;
736
+ /** Whether to convert the generated value to lowercase. Default: `false`. */
725
737
  lowercase?: boolean;
726
738
  }
727
739
  interface UrlizedOnlyPattern {
728
- /** @maxLength 1000 */
740
+ /**
741
+ * Pattern used to generate the field value from item properties.
742
+ * @maxLength 1000
743
+ */
729
744
  pattern?: string;
730
745
  }
731
746
  interface Calculator extends CalculatorPatternOneOf {
@@ -790,13 +805,16 @@ interface _Object {
790
805
  * @maxSize 1000
791
806
  */
792
807
  fields?: ObjectField[];
793
- /** @internal */
808
+ /**
809
+ * Value assigned when a data item omits this field.
810
+ * @internal
811
+ */
794
812
  defaultValue?: Record<string, any> | null;
795
813
  }
796
814
  interface _Array {
797
815
  /** Element's data type. */
798
816
  elementType?: TypeWithLiterals;
799
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
817
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
800
818
  typeMetadata?: TypeMetadata;
801
819
  /**
802
820
  * Minimum permitted number of items in an array field.
@@ -812,6 +830,7 @@ interface _Array {
812
830
  defaultValue?: any[];
813
831
  }
814
832
  interface PageLink {
833
+ /** Calculation pattern used to generate the page link. Required for page link fields. */
815
834
  calculator?: Calculator;
816
835
  /**
817
836
  * Defines reference to router pattern in the site document.
@@ -826,6 +845,7 @@ interface PageLink {
826
845
  }
827
846
  interface Slug {
828
847
  /**
848
+ * Pattern used to generate the field value from item properties.
829
849
  * @minLength 1
830
850
  * @maxLength 1000
831
851
  */
@@ -844,16 +864,21 @@ interface Slug {
844
864
  defaultValue?: string | null;
845
865
  }
846
866
  interface Text extends TextValidationOneOf {
867
+ /** Length and pattern constraints for the text value. */
847
868
  textValidation?: TextValidation;
869
+ /** Allowed text values. */
848
870
  enumValues?: EnumValues;
849
871
  defaultValue?: string | null;
850
872
  }
851
873
  /** @oneof */
852
874
  interface TextValidationOneOf {
875
+ /** Length and pattern constraints for the text value. */
853
876
  textValidation?: TextValidation;
877
+ /** Allowed text values. */
854
878
  enumValues?: EnumValues;
855
879
  }
856
880
  interface _Number {
881
+ /** Value assigned when a data item omits this field. */
857
882
  defaultValue?: number | null;
858
883
  /** Minimum permitted value for a numerical field. */
859
884
  min?: number | null;
@@ -861,48 +886,68 @@ interface _Number {
861
886
  max?: number | null;
862
887
  }
863
888
  interface _Date extends _DateDefaultValueOneOf, _DateMinDateOneOf, _DateMaxDateOneOf {
889
+ /** Fixed date and time used as the default value. */
864
890
  defaultValueFixed?: Date | null;
891
+ /** Offset from the current date, in days, used as the default value. */
865
892
  defaultValueOffsetFromNowInDays?: number | null;
893
+ /** Earliest permitted date and time. */
866
894
  minDateFixed?: Date | null;
895
+ /** Offset from the current date, in days, used as the earliest permitted date. */
867
896
  minValueOffsetFromNowInDays?: number | null;
897
+ /** Latest permitted date and time. */
868
898
  maxDateFixed?: Date | null;
899
+ /** Offset from the current date, in days, used as the latest permitted date. */
869
900
  maxValueOffsetFromNowInDays?: number | null;
870
901
  }
871
902
  /** @oneof */
872
903
  interface _DateDefaultValueOneOf {
904
+ /** Fixed date and time used as the default value. */
873
905
  defaultValueFixed?: Date | null;
906
+ /** Offset from the current date, in days, used as the default value. */
874
907
  defaultValueOffsetFromNowInDays?: number | null;
875
908
  }
876
909
  /** @oneof */
877
910
  interface _DateMinDateOneOf {
911
+ /** Earliest permitted date and time. */
878
912
  minDateFixed?: Date | null;
913
+ /** Offset from the current date, in days, used as the earliest permitted date. */
879
914
  minValueOffsetFromNowInDays?: number | null;
880
915
  }
881
916
  /** @oneof */
882
917
  interface _DateMaxDateOneOf {
918
+ /** Latest permitted date and time. */
883
919
  maxDateFixed?: Date | null;
920
+ /** Offset from the current date, in days, used as the latest permitted date. */
884
921
  maxValueOffsetFromNowInDays?: number | null;
885
922
  }
886
923
  interface Datetime extends DatetimeDefaultValueOneOf, DatetimeMinDateOneOf, DatetimeMaxDateOneOf {
924
+ /** Fixed date and time used as the default value. */
887
925
  defaultValueFixed?: Date | null;
926
+ /** Offset from the current time, in seconds, used as the default value. */
888
927
  defaultValueOffsetFromNowInSeconds?: number | null;
928
+ /** Earliest permitted date and time. */
889
929
  minDateFixed?: Date | null;
890
930
  minDateOffsetFromNowInSeconds?: number | null;
931
+ /** Latest permitted date and time. */
891
932
  maxDateFixed?: Date | null;
892
933
  maxDateOffsetFromNowInSeconds?: number | null;
893
934
  }
894
935
  /** @oneof */
895
936
  interface DatetimeDefaultValueOneOf {
937
+ /** Fixed date and time used as the default value. */
896
938
  defaultValueFixed?: Date | null;
939
+ /** Offset from the current time, in seconds, used as the default value. */
897
940
  defaultValueOffsetFromNowInSeconds?: number | null;
898
941
  }
899
942
  /** @oneof */
900
943
  interface DatetimeMinDateOneOf {
944
+ /** Earliest permitted date and time. */
901
945
  minDateFixed?: Date | null;
902
946
  minDateOffsetFromNowInSeconds?: number | null;
903
947
  }
904
948
  /** @oneof */
905
949
  interface DatetimeMaxDateOneOf {
950
+ /** Latest permitted date and time. */
906
951
  maxDateFixed?: Date | null;
907
952
  maxDateOffsetFromNowInSeconds?: number | null;
908
953
  }
@@ -910,6 +955,7 @@ interface Image {
910
955
  defaultValue?: string | null;
911
956
  }
912
957
  interface _Boolean {
958
+ /** Value assigned when a data item omits this field. */
913
959
  defaultValue?: boolean | null;
914
960
  }
915
961
  interface Document {
@@ -917,10 +963,12 @@ interface Document {
917
963
  }
918
964
  interface Url {
919
965
  /**
966
+ * Value assigned when a data item omits this field.
920
967
  * @minLength 1
921
968
  * @maxLength 2048
922
969
  */
923
970
  defaultValue?: string | null;
971
+ /** Length and pattern constraints for the text value. */
924
972
  textValidation?: TextValidation;
925
973
  }
926
974
  interface RichText {
@@ -977,16 +1025,21 @@ interface Time {
977
1025
  maxTime?: string | null;
978
1026
  }
979
1027
  interface RichContent {
1028
+ /** Value assigned when a data item omits this field. */
980
1029
  defaultValue?: Record<string, any> | null;
981
1030
  }
982
1031
  interface MediaGallery {
983
1032
  defaultValue?: Record<string, any>[] | null;
984
1033
  }
985
1034
  interface Address {
1035
+ /** Value assigned when a data item omits this field. */
986
1036
  defaultValue?: Record<string, any> | null;
987
1037
  }
988
1038
  interface Email {
989
- /** @format EMAIL */
1039
+ /**
1040
+ * Value assigned when a data item omits this field.
1041
+ * @format EMAIL
1042
+ */
990
1043
  defaultValue?: string | null;
991
1044
  }
992
1045
  interface LegacyColor {
@@ -1038,12 +1091,13 @@ interface ArraySizeRange {
1038
1091
  */
1039
1092
  maxSize?: number | null;
1040
1093
  }
1041
- /** Optional plug-in aspects for fields */
1094
+ /** Plugins that extend a field's behavior. */
1042
1095
  interface FieldPlugin extends FieldPluginOptionsOneOf {
1043
1096
  /** Options for the CMS plugin. */
1044
1097
  cmsOptions?: CmsOptions;
1045
1098
  /** Options for the CATEGORY_FIELD plugin. */
1046
1099
  categoryFieldOptions?: CategoryFieldOptions;
1100
+ /** Field plugin type. */
1047
1101
  type?: FieldPluginTypeWithLiterals;
1048
1102
  }
1049
1103
  /** @oneof */
@@ -1054,9 +1108,9 @@ interface FieldPluginOptionsOneOf {
1054
1108
  categoryFieldOptions?: CategoryFieldOptions;
1055
1109
  }
1056
1110
  declare enum FieldPluginType {
1057
- /** Uknown plugin type. */
1111
+ /** Unknown plugin type. */
1058
1112
  UNKNOWN = "UNKNOWN",
1059
- /** CMS-related field attributes */
1113
+ /** CMS-related field attributes. */
1060
1114
  CMS = "CMS",
1061
1115
  /**
1062
1116
  * Marks a multi-reference field as a category field linking to a Category Group.
@@ -1101,7 +1155,7 @@ interface CategoryFieldOptions {
1101
1155
  }
1102
1156
  interface FieldCondition {
1103
1157
  /**
1104
- * 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.
1158
+ * 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.
1105
1159
  * @maxLength 100
1106
1160
  */
1107
1161
  groupName?: string | null;
@@ -1214,7 +1268,9 @@ interface PluginOptionsOneOf {
1214
1268
  draftItemsOptions?: DraftItemsPluginOptions;
1215
1269
  }
1216
1270
  declare enum Status {
1271
+ /** Items are published by default. */
1217
1272
  PUBLISHED = "PUBLISHED",
1273
+ /** Items are drafts by default. */
1218
1274
  DRAFT = "DRAFT"
1219
1275
  }
1220
1276
  /** @enumType */
@@ -1328,7 +1384,11 @@ declare enum PluginType {
1328
1384
  /** @enumType */
1329
1385
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
1330
1386
  interface PublishPluginOptions {
1331
- /** Default status. */
1387
+ /**
1388
+ * Publication status assigned to items that don't specify one.
1389
+ *
1390
+ * Default: `PUBLISHED`.
1391
+ */
1332
1392
  defaultStatus?: StatusWithLiterals;
1333
1393
  /**
1334
1394
  * Server-managed lifecycle status.
@@ -1345,7 +1405,11 @@ interface SingleItemPluginOptions {
1345
1405
  singleItemId?: string;
1346
1406
  }
1347
1407
  interface UrlizedPluginOptions {
1348
- /** Encoding method for generating a URL in ASCII characters. */
1408
+ /**
1409
+ * Encoding method for generating a URL in ASCII characters.
1410
+ *
1411
+ * Default: `ORIGINAL`.
1412
+ */
1349
1413
  format?: FormatWithLiterals;
1350
1414
  }
1351
1415
  interface MultilingualOptions {
@@ -1357,7 +1421,17 @@ interface MultilingualOptions {
1357
1421
  translatableFieldKeys?: string[];
1358
1422
  }
1359
1423
  interface PageLinkPluginOptions {
1424
+ /**
1425
+ * Whether page link values are stored with the items.
1426
+ *
1427
+ * Default: `false`.
1428
+ */
1360
1429
  isPersisted?: boolean;
1430
+ /**
1431
+ * Whether page link values can be updated.
1432
+ *
1433
+ * Default: `false`.
1434
+ */
1361
1435
  isMutable?: boolean;
1362
1436
  }
1363
1437
  interface PluginCmsOptions {
@@ -1509,10 +1583,13 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1509
1583
  * @readonly
1510
1584
  */
1511
1585
  publishedCollectionId?: string;
1512
- /** @internal */
1586
+ /**
1587
+ * Access levels required to view and manage drafts and change publication status.
1588
+ * @internal
1589
+ */
1513
1590
  draftPermissions?: DraftPermissions;
1514
1591
  /**
1515
- * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1592
+ * Actual draft management operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`.
1516
1593
  * @internal
1517
1594
  * @readonly
1518
1595
  */
@@ -1608,32 +1685,32 @@ interface DataCollectionClonedEvent {
1608
1685
  }
1609
1686
  interface DataCollectionChangedEvent {
1610
1687
  /**
1611
- * list of new fields
1688
+ * Fields added to the collection.
1612
1689
  * @maxSize 1000
1613
1690
  */
1614
1691
  fieldsAdded?: Field[];
1615
1692
  /**
1616
- * list of changed fields
1693
+ * Fields whose definitions changed.
1617
1694
  * @maxSize 1000
1618
1695
  */
1619
1696
  fieldsUpdated?: FieldUpdate[];
1620
1697
  /**
1621
- * list of removed fields
1698
+ * Fields removed from the collection.
1622
1699
  * @maxSize 1000
1623
1700
  */
1624
1701
  fieldsRemoved?: Field[];
1625
1702
  /**
1626
- * list of new plugins
1703
+ * Plugins added to the collection.
1627
1704
  * @maxSize 100
1628
1705
  */
1629
1706
  pluginsAdded?: Plugin[];
1630
1707
  /**
1631
- * list of changed plugins
1708
+ * Plugins whose options changed.
1632
1709
  * @maxSize 100
1633
1710
  */
1634
1711
  pluginsUpdated?: PluginUpdate[];
1635
1712
  /**
1636
- * list of removed plugins
1713
+ * Plugins removed from the collection.
1637
1714
  * @maxSize 100
1638
1715
  */
1639
1716
  pluginsRemoved?: Plugin[];
@@ -1643,15 +1720,15 @@ interface DataCollectionChangedEvent {
1643
1720
  strictModeUpdated?: StrictModeUpdate;
1644
1721
  }
1645
1722
  interface FieldUpdate {
1646
- /** previous state of the field */
1723
+ /** Previous field definition. */
1647
1724
  previous?: Field;
1648
- /** current state of the field */
1725
+ /** Updated field definition. */
1649
1726
  current?: Field;
1650
1727
  }
1651
1728
  interface PluginUpdate {
1652
- /** previous state of the plugin */
1729
+ /** Previous plugin configuration. */
1653
1730
  previous?: Plugin;
1654
- /** current state of the plugin */
1731
+ /** Updated plugin configuration. */
1655
1732
  current?: Plugin;
1656
1733
  }
1657
1734
  interface PermissionsUpdate {
@@ -1679,7 +1756,7 @@ interface CreateDataCollectionRequest {
1679
1756
  collection: DataCollection;
1680
1757
  }
1681
1758
  interface CreateDataCollectionResponse {
1682
- /** Details of collection created. */
1759
+ /** Created collection. */
1683
1760
  collection?: DataCollection;
1684
1761
  }
1685
1762
  interface GetDataCollectionRequest {
@@ -1722,8 +1799,9 @@ interface GetDataCollectionRequest {
1722
1799
  */
1723
1800
  segment?: SegmentWithLiterals;
1724
1801
  /**
1725
- * List of specific field names to return, if empty all fields are returned.
1726
- * Affects all returned collections
1802
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1803
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1804
+ * An empty list returns all properties available to the caller.
1727
1805
  * @maxSize 100
1728
1806
  * @maxLength 1000
1729
1807
  */
@@ -1737,7 +1815,7 @@ declare enum Segment {
1737
1815
  /** @enumType */
1738
1816
  type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1739
1817
  interface GetDataCollectionResponse {
1740
- /** Details of the collection requested. */
1818
+ /** Requested collection. */
1741
1819
  collection?: DataCollection;
1742
1820
  /**
1743
1821
  * Details of collections referenced by the collection requested.
@@ -1750,10 +1828,16 @@ interface ListDataCollectionsRequest {
1750
1828
  /**
1751
1829
  * Defines how collections in the response are sorted.
1752
1830
  *
1753
- * Default: Ordered by ID in ascending order.
1831
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1832
+ *
1833
+ * Default: `id` in ascending order.
1754
1834
  */
1755
1835
  sort?: Sorting;
1756
- /** Pagination information. */
1836
+ /**
1837
+ * Pagination information. The maximum page size is `1000`.
1838
+ *
1839
+ * Default: `limit` is `1000` and `offset` is `0`.
1840
+ */
1757
1841
  paging?: Paging;
1758
1842
  /**
1759
1843
  * Whether to retrieve data from the primary database instance.
@@ -1775,8 +1859,9 @@ interface ListDataCollectionsRequest {
1775
1859
  */
1776
1860
  segment?: SegmentWithLiterals;
1777
1861
  /**
1778
- * List of specific field names to return, if empty all fields are returned.
1779
- * Affects all returned collections
1862
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1863
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1864
+ * An empty list returns all properties available to the caller.
1780
1865
  * @maxSize 100
1781
1866
  * @maxLength 128
1782
1867
  */
@@ -1847,7 +1932,13 @@ interface BulkGetDataCollectionsRequest {
1847
1932
  * Default: `false`
1848
1933
  */
1849
1934
  includeReferencedCollections?: boolean;
1850
- /** Sorting preferences. */
1935
+ /**
1936
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
1937
+ *
1938
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1939
+ *
1940
+ * Default: `id` in ascending order.
1941
+ */
1851
1942
  sort?: Sorting;
1852
1943
  /**
1853
1944
  * Whether to retrieve data from the primary database instance.
@@ -1869,8 +1960,9 @@ interface BulkGetDataCollectionsRequest {
1869
1960
  */
1870
1961
  segment?: SegmentWithLiterals;
1871
1962
  /**
1872
- * List of specific field names to return, if empty all fields are returned.
1873
- * Affects all returned collections
1963
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1964
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1965
+ * An empty list returns all properties available to the caller.
1874
1966
  * @maxSize 100
1875
1967
  * @maxLength 1000
1876
1968
  */
@@ -1879,12 +1971,12 @@ interface BulkGetDataCollectionsRequest {
1879
1971
  interface BulkGetDataCollectionsResponse {
1880
1972
  /**
1881
1973
  * List of requested collections.
1882
- * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
1974
+ * When `includeReferencedCollections` is `true` in the request, referenced collections are included here.
1883
1975
  */
1884
1976
  activeCollections?: DataCollection[];
1885
1977
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
1886
1978
  deletedCollections?: DataCollection[];
1887
- /** List of failed collections. */
1979
+ /** Collections that couldn't be loaded, with an error for each failure. */
1888
1980
  failedCollections?: FailedCollection[];
1889
1981
  }
1890
1982
  interface ApplicationError {
@@ -1897,7 +1989,7 @@ interface ApplicationError {
1897
1989
  }
1898
1990
  interface FailedCollection {
1899
1991
  /**
1900
- * IDs of the failed collection.
1992
+ * ID of the collection that couldn't be loaded.
1901
1993
  * @maxLength 255
1902
1994
  */
1903
1995
  collectionId?: string;
@@ -1923,13 +2015,13 @@ interface DeleteDataCollectionResponse {
1923
2015
  }
1924
2016
  interface RestoreDataCollectionRequest {
1925
2017
  /**
1926
- * Data Collection ID to restore
2018
+ * ID of the data collection to restore.
1927
2019
  * @maxLength 256
1928
2020
  */
1929
2021
  dataCollectionId?: string;
1930
2022
  }
1931
2023
  interface RestoreDataCollectionResponse {
1932
- /** Restored data collection */
2024
+ /** Restored data collection. */
1933
2025
  dataCollection?: DataCollection;
1934
2026
  }
1935
2027
  interface PatchDataCollectionRequest {
@@ -2029,7 +2121,11 @@ interface AddPublishPluginRequest {
2029
2121
  dataCollectionId: string;
2030
2122
  /** Publish plugin options. */
2031
2123
  publishOptions: PublishPluginOptions;
2032
- /** Action to take when the Draft Items plugin is already installed. */
2124
+ /**
2125
+ * Action to take when the Draft Items plugin is already installed.
2126
+ *
2127
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
2128
+ */
2033
2129
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
2034
2130
  }
2035
2131
  /** Behavior to apply when adding the Publish plugin to a collection that already has the Draft Items plugin. */
@@ -2066,7 +2162,10 @@ interface UpdatePublishPluginRequest {
2066
2162
  * @maxLength 256
2067
2163
  */
2068
2164
  dataCollectionId: string;
2069
- /** Updated Publish plugin options. Read-only fields are ignored. */
2165
+ /**
2166
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
2167
+ * Server-managed lifecycle status is preserved.
2168
+ */
2070
2169
  publishOptions: PublishPluginOptions;
2071
2170
  }
2072
2171
  interface UpdatePublishPluginResponse {
@@ -2103,7 +2202,7 @@ interface UpdateUrlizedPluginRequest {
2103
2202
  * @maxLength 256
2104
2203
  */
2105
2204
  dataCollectionId: string;
2106
- /** Updated Urlized plugin options. */
2205
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
2107
2206
  urlizedOptions: UrlizedPluginOptions;
2108
2207
  }
2109
2208
  interface UpdateUrlizedPluginResponse {
@@ -2140,7 +2239,7 @@ interface UpdateMultilingualPluginRequest {
2140
2239
  * @maxLength 256
2141
2240
  */
2142
2241
  dataCollectionId: string;
2143
- /** Updated Multilingual plugin options. */
2242
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
2144
2243
  multilingualOptions: MultilingualOptions;
2145
2244
  }
2146
2245
  interface UpdateMultilingualPluginResponse {
@@ -2177,7 +2276,7 @@ interface UpdateCmsPluginRequest {
2177
2276
  * @maxLength 256
2178
2277
  */
2179
2278
  dataCollectionId: string;
2180
- /** Updated CMS plugin options. */
2279
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
2181
2280
  cmsOptions: PluginCmsOptions;
2182
2281
  }
2183
2282
  interface UpdateCmsPluginResponse {
@@ -2214,7 +2313,7 @@ interface UpdateCatalogPluginRequest {
2214
2313
  * @maxLength 256
2215
2314
  */
2216
2315
  dataCollectionId: string;
2217
- /** Updated Catalog plugin options. */
2316
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
2218
2317
  catalogOptions: CatalogOptions;
2219
2318
  }
2220
2319
  interface UpdateCatalogPluginResponse {
@@ -2229,7 +2328,11 @@ interface AddDraftItemsPluginRequest {
2229
2328
  dataCollectionId: string;
2230
2329
  /** Draft Items plugin options. */
2231
2330
  draftItemsOptions: DraftItemsPluginOptions;
2232
- /** Action to take when the Publish plugin is already installed. */
2331
+ /**
2332
+ * Action to take when the Publish plugin is already installed.
2333
+ *
2334
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
2335
+ */
2233
2336
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
2234
2337
  }
2235
2338
  /** Behavior to apply when adding the Draft Items plugin to a collection that already has the Publish plugin. */
@@ -2251,7 +2354,11 @@ interface DeleteDraftItemsPluginRequest {
2251
2354
  * @maxLength 256
2252
2355
  */
2253
2356
  dataCollectionId: string;
2254
- /** Action to take for existing draft items. */
2357
+ /**
2358
+ * Action to take for existing draft items.
2359
+ *
2360
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
2361
+ */
2255
2362
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
2256
2363
  }
2257
2364
  /** Behavior to apply to existing draft items when removing the Draft Items plugin. */
@@ -2275,7 +2382,10 @@ interface UpdateDraftItemsPluginRequest {
2275
2382
  * @maxLength 256
2276
2383
  */
2277
2384
  dataCollectionId: string;
2278
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
2385
+ /**
2386
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
2387
+ * Server-managed paired collection IDs are preserved.
2388
+ */
2279
2389
  draftItemsOptions: DraftItemsPluginOptions;
2280
2390
  }
2281
2391
  interface UpdateDraftItemsPluginResponse {
@@ -2288,12 +2398,13 @@ interface PatchDataCollectionFieldRequest {
2288
2398
  * @maxLength 256
2289
2399
  */
2290
2400
  dataCollectionId: string;
2291
- /** Field to update. */
2401
+ /** Field to update. Specify `key` to identify the existing field. */
2292
2402
  field: Field;
2293
2403
  /**
2294
2404
  * Field mask specifying which field properties to update.
2295
2405
  * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2296
2406
  * Attempting to update `key` or other unsupported properties results in an error.
2407
+ * Each masked property must have a value in `field`. To set `encrypted` to `false`, explicitly include it in the mask.
2297
2408
  * @internal
2298
2409
  */
2299
2410
  fieldMask?: string[];
@@ -2316,6 +2427,7 @@ interface UpdateDataPermissionsResponse {
2316
2427
  dataCollection?: DataCollection;
2317
2428
  }
2318
2429
  interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2430
+ /** App whose collection snapshots to retrieve. */
2319
2431
  appOptions?: AppOptions;
2320
2432
  /**
2321
2433
  * Ids of schema snapshot
@@ -2334,6 +2446,7 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollec
2334
2446
  }
2335
2447
  /** @oneof */
2336
2448
  interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2449
+ /** App whose collection snapshots to retrieve. */
2337
2450
  appOptions?: AppOptions;
2338
2451
  }
2339
2452
  declare enum TenantMode {
@@ -2621,15 +2734,27 @@ interface DeleteDataCollectionsSnapshotRequest {
2621
2734
  interface DeleteDataCollectionsSnapshotResponse {
2622
2735
  }
2623
2736
  interface CreateMigratedCollectionsSnapshotRequest {
2624
- /** @format GUID */
2737
+ /**
2738
+ * ID of the source snapshot.
2739
+ * @format GUID
2740
+ */
2625
2741
  existingSnapshotId?: string;
2626
- /** @maxLength 255 */
2742
+ /**
2743
+ * Namespace to assign to collections in the new snapshot.
2744
+ * @maxLength 255
2745
+ */
2627
2746
  newNamespace?: string;
2628
- /** @maxLength 255 */
2747
+ /**
2748
+ * Namespace to replace in the source snapshot.
2749
+ * @maxLength 255
2750
+ */
2629
2751
  existingNamespace?: string;
2630
2752
  }
2631
2753
  interface CreateMigratedCollectionsSnapshotResponse {
2632
- /** @format GUID */
2754
+ /**
2755
+ * ID of the created snapshot.
2756
+ * @format GUID
2757
+ */
2633
2758
  snapshotId?: string;
2634
2759
  }
2635
2760
  interface DomainEvent extends DomainEventBodyOneOf {