@wix/auto_sdk_data_collections 1.0.108 → 1.0.110

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.js';
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 {
@@ -1366,7 +1440,9 @@ interface PluginCmsOptions {
1366
1440
  }
1367
1441
  interface CatalogOptions {
1368
1442
  /**
1369
- * *Required** - the field key that contains the catalog item name - field must be of type TEXT.
1443
+ * Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.
1444
+ *
1445
+ * Use `nameFieldKey` instead. If both properties are specified, a non-empty `nameFieldKey` takes precedence.
1370
1446
  * @maxLength 1000
1371
1447
  * @deprecated
1372
1448
  * @replacedBy name_field_key
@@ -1374,7 +1450,9 @@ interface CatalogOptions {
1374
1450
  */
1375
1451
  name?: string;
1376
1452
  /**
1377
- * *Required** - the field key that contains the catalog item price - field must be of type NUMBER.
1453
+ * Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.
1454
+ *
1455
+ * Use `priceFieldKey` instead. If both properties are specified, a non-empty `priceFieldKey` takes precedence.
1378
1456
  * @maxLength 1000
1379
1457
  * @deprecated
1380
1458
  * @replacedBy price_field_key
@@ -1382,7 +1460,9 @@ interface CatalogOptions {
1382
1460
  */
1383
1461
  price?: string;
1384
1462
  /**
1385
- * the field key that contains the catalog item URL - field must be of type URL.
1463
+ * Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.
1464
+ *
1465
+ * Use `urlFieldKey` instead. If both properties are specified, a non-empty `urlFieldKey` takes precedence.
1386
1466
  * @maxLength 1000
1387
1467
  * @deprecated
1388
1468
  * @replacedBy url_field_key
@@ -1390,7 +1470,9 @@ interface CatalogOptions {
1390
1470
  */
1391
1471
  url?: string | null;
1392
1472
  /**
1393
- * the field key that contains the catalog item description - field must be of type TEXT.
1473
+ * Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.
1474
+ *
1475
+ * Use `descriptionFieldKey` instead. If both properties are specified, a non-empty `descriptionFieldKey` takes precedence.
1394
1476
  * @maxLength 1000
1395
1477
  * @deprecated
1396
1478
  * @replacedBy description_field_key
@@ -1398,7 +1480,9 @@ interface CatalogOptions {
1398
1480
  */
1399
1481
  description?: string | null;
1400
1482
  /**
1401
- * the field key that contains the catalog item image - field must be of type IMAGE.
1483
+ * Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.
1484
+ *
1485
+ * Use `imageFieldKey` instead. If both properties are specified, a non-empty `imageFieldKey` takes precedence.
1402
1486
  * @maxLength 1000
1403
1487
  * @deprecated
1404
1488
  * @replacedBy image_field_key
@@ -1406,7 +1490,9 @@ interface CatalogOptions {
1406
1490
  */
1407
1491
  image?: string | null;
1408
1492
  /**
1409
- * the field key that contains the catalog item quantity - field must be of type NUMBER.
1493
+ * Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.
1494
+ *
1495
+ * Use `quantityFieldKey` instead. If both properties are specified, a non-empty `quantityFieldKey` takes precedence.
1410
1496
  * @maxLength 1000
1411
1497
  * @deprecated
1412
1498
  * @replacedBy quantity_field_key
@@ -1414,7 +1500,9 @@ interface CatalogOptions {
1414
1500
  */
1415
1501
  quantity?: string | null;
1416
1502
  /**
1417
- * the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
1503
+ * Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.
1504
+ *
1505
+ * Use `digitalFileFieldKey` instead. If both properties are specified, a non-empty `digitalFileFieldKey` takes precedence.
1418
1506
  * @maxLength 1000
1419
1507
  * @deprecated
1420
1508
  * @replacedBy digital_file_field_key
@@ -1422,7 +1510,9 @@ interface CatalogOptions {
1422
1510
  */
1423
1511
  digitalFile?: string | null;
1424
1512
  /**
1425
- * the field key that contains the catalog item weight - field must be of type NUMBER.
1513
+ * Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.
1514
+ *
1515
+ * Use `weightFieldKey` instead. If both properties are specified, a non-empty `weightFieldKey` takes precedence.
1426
1516
  * @maxLength 1000
1427
1517
  * @deprecated
1428
1518
  * @replacedBy weight_field_key
@@ -1430,7 +1520,9 @@ interface CatalogOptions {
1430
1520
  */
1431
1521
  weight?: string | null;
1432
1522
  /**
1433
- * the field key that contains the catalog item SKU - field must be of type TEXT.
1523
+ * Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.
1524
+ *
1525
+ * Use `skuFieldKey` instead. If both properties are specified, a non-empty `skuFieldKey` takes precedence.
1434
1526
  * @maxLength 1000
1435
1527
  * @deprecated
1436
1528
  * @replacedBy sku_field_key
@@ -1438,7 +1530,9 @@ interface CatalogOptions {
1438
1530
  */
1439
1531
  sku?: string | null;
1440
1532
  /**
1441
- * the field key that contains the catalog item shippable flag - field must be of type BOOLEAN.
1533
+ * Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.
1534
+ *
1535
+ * Use `shippableFieldKey` instead. If both properties are specified, a non-empty `shippableFieldKey` takes precedence.
1442
1536
  * @maxLength 1000
1443
1537
  * @deprecated
1444
1538
  * @replacedBy shippable_field_key
@@ -1446,52 +1540,56 @@ interface CatalogOptions {
1446
1540
  */
1447
1541
  shippable?: string | null;
1448
1542
  /**
1449
- * *Required** - the field key that contains the catalog item name - field must be of type TEXT.
1543
+ * Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.
1544
+ *
1545
+ * Required when configuring the Catalog plugin.
1450
1546
  * @maxLength 1000
1451
1547
  */
1452
1548
  nameFieldKey?: string;
1453
1549
  /**
1454
- * *Required** - the field key that contains the catalog item price - field must be of type NUMBER.
1550
+ * Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.
1551
+ *
1552
+ * Required when configuring the Catalog plugin.
1455
1553
  * @maxLength 1000
1456
1554
  */
1457
1555
  priceFieldKey?: string;
1458
1556
  /**
1459
- * the field key that contains the catalog item URL - field must be of type URL.
1557
+ * Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.
1460
1558
  * @maxLength 1000
1461
1559
  */
1462
1560
  urlFieldKey?: string | null;
1463
1561
  /**
1464
- * the field key that contains the catalog item description - field must be of type TEXT.
1562
+ * Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.
1465
1563
  * @maxLength 1000
1466
1564
  */
1467
1565
  descriptionFieldKey?: string | null;
1468
1566
  /**
1469
- * the field key that contains the catalog item image - field must be of type IMAGE.
1567
+ * Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.
1470
1568
  * @maxLength 1000
1471
1569
  */
1472
1570
  imageFieldKey?: string | null;
1473
1571
  /**
1474
- * the field key that contains the catalog item quantity - field must be of type NUMBER.
1572
+ * Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.
1475
1573
  * @maxLength 1000
1476
1574
  */
1477
1575
  quantityFieldKey?: string | null;
1478
1576
  /**
1479
- * the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
1577
+ * Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.
1480
1578
  * @maxLength 1000
1481
1579
  */
1482
1580
  digitalFileFieldKey?: string | null;
1483
1581
  /**
1484
- * the field key that contains the catalog item weight - field must be of type NUMBER.
1582
+ * Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.
1485
1583
  * @maxLength 1000
1486
1584
  */
1487
1585
  weightFieldKey?: string | null;
1488
1586
  /**
1489
- * the field key that contains the catalog item SKU - field must be of type TEXT.
1587
+ * Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.
1490
1588
  * @maxLength 1000
1491
1589
  */
1492
1590
  skuFieldKey?: string | null;
1493
1591
  /**
1494
- * the field key that contains the catalog item shippable flag - field must be of type BOOLEAN.
1592
+ * Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.
1495
1593
  * @maxLength 1000
1496
1594
  */
1497
1595
  shippableFieldKey?: string | null;
@@ -1509,10 +1607,13 @@ interface DraftItemsPluginOptions extends DraftItemsPluginOptionsPairedCollectio
1509
1607
  * @readonly
1510
1608
  */
1511
1609
  publishedCollectionId?: string;
1512
- /** @internal */
1610
+ /**
1611
+ * Access levels required to view and manage drafts and change publication status.
1612
+ * @internal
1613
+ */
1513
1614
  draftPermissions?: DraftPermissions;
1514
1615
  /**
1515
- * Actual draft management operations permitted for the caller. Included only if requested by `include_allowed_data_permissions`.
1616
+ * Actual draft management operations permitted for the caller. Included only if requested by `includeAllowedDataPermissions`.
1516
1617
  * @internal
1517
1618
  * @readonly
1518
1619
  */
@@ -1608,32 +1709,32 @@ interface DataCollectionClonedEvent {
1608
1709
  }
1609
1710
  interface DataCollectionChangedEvent {
1610
1711
  /**
1611
- * list of new fields
1712
+ * Fields added to the collection.
1612
1713
  * @maxSize 1000
1613
1714
  */
1614
1715
  fieldsAdded?: Field[];
1615
1716
  /**
1616
- * list of changed fields
1717
+ * Fields whose definitions changed.
1617
1718
  * @maxSize 1000
1618
1719
  */
1619
1720
  fieldsUpdated?: FieldUpdate[];
1620
1721
  /**
1621
- * list of removed fields
1722
+ * Fields removed from the collection.
1622
1723
  * @maxSize 1000
1623
1724
  */
1624
1725
  fieldsRemoved?: Field[];
1625
1726
  /**
1626
- * list of new plugins
1727
+ * Plugins added to the collection.
1627
1728
  * @maxSize 100
1628
1729
  */
1629
1730
  pluginsAdded?: Plugin[];
1630
1731
  /**
1631
- * list of changed plugins
1732
+ * Plugins whose options changed.
1632
1733
  * @maxSize 100
1633
1734
  */
1634
1735
  pluginsUpdated?: PluginUpdate[];
1635
1736
  /**
1636
- * list of removed plugins
1737
+ * Plugins removed from the collection.
1637
1738
  * @maxSize 100
1638
1739
  */
1639
1740
  pluginsRemoved?: Plugin[];
@@ -1643,15 +1744,15 @@ interface DataCollectionChangedEvent {
1643
1744
  strictModeUpdated?: StrictModeUpdate;
1644
1745
  }
1645
1746
  interface FieldUpdate {
1646
- /** previous state of the field */
1747
+ /** Previous field definition. */
1647
1748
  previous?: Field;
1648
- /** current state of the field */
1749
+ /** Updated field definition. */
1649
1750
  current?: Field;
1650
1751
  }
1651
1752
  interface PluginUpdate {
1652
- /** previous state of the plugin */
1753
+ /** Previous plugin configuration. */
1653
1754
  previous?: Plugin;
1654
- /** current state of the plugin */
1755
+ /** Updated plugin configuration. */
1655
1756
  current?: Plugin;
1656
1757
  }
1657
1758
  interface PermissionsUpdate {
@@ -1679,7 +1780,7 @@ interface CreateDataCollectionRequest {
1679
1780
  collection: DataCollection;
1680
1781
  }
1681
1782
  interface CreateDataCollectionResponse {
1682
- /** Details of collection created. */
1783
+ /** Created collection. */
1683
1784
  collection?: DataCollection;
1684
1785
  }
1685
1786
  interface GetDataCollectionRequest {
@@ -1722,8 +1823,9 @@ interface GetDataCollectionRequest {
1722
1823
  */
1723
1824
  segment?: SegmentWithLiterals;
1724
1825
  /**
1725
- * List of specific field names to return, if empty all fields are returned.
1726
- * Affects all returned collections
1826
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1827
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1828
+ * An empty list returns all properties available to the caller.
1727
1829
  * @maxSize 100
1728
1830
  * @maxLength 1000
1729
1831
  */
@@ -1737,7 +1839,7 @@ declare enum Segment {
1737
1839
  /** @enumType */
1738
1840
  type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1739
1841
  interface GetDataCollectionResponse {
1740
- /** Details of the collection requested. */
1842
+ /** Requested collection. */
1741
1843
  collection?: DataCollection;
1742
1844
  /**
1743
1845
  * Details of collections referenced by the collection requested.
@@ -1750,10 +1852,16 @@ interface ListDataCollectionsRequest {
1750
1852
  /**
1751
1853
  * Defines how collections in the response are sorted.
1752
1854
  *
1753
- * Default: Ordered by ID in ascending order.
1855
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1856
+ *
1857
+ * Default: `id` in ascending order.
1754
1858
  */
1755
1859
  sort?: Sorting;
1756
- /** Pagination information. */
1860
+ /**
1861
+ * Pagination information. The maximum page size is `1000`.
1862
+ *
1863
+ * Default: `limit` is `1000` and `offset` is `0`.
1864
+ */
1757
1865
  paging?: Paging;
1758
1866
  /**
1759
1867
  * Whether to retrieve data from the primary database instance.
@@ -1775,8 +1883,9 @@ interface ListDataCollectionsRequest {
1775
1883
  */
1776
1884
  segment?: SegmentWithLiterals;
1777
1885
  /**
1778
- * List of specific field names to return, if empty all fields are returned.
1779
- * Affects all returned collections
1886
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1887
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1888
+ * An empty list returns all properties available to the caller.
1780
1889
  * @maxSize 100
1781
1890
  * @maxLength 128
1782
1891
  */
@@ -1847,7 +1956,13 @@ interface BulkGetDataCollectionsRequest {
1847
1956
  * Default: `false`
1848
1957
  */
1849
1958
  includeReferencedCollections?: boolean;
1850
- /** Sorting preferences. */
1959
+ /**
1960
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
1961
+ *
1962
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1963
+ *
1964
+ * Default: `id` in ascending order.
1965
+ */
1851
1966
  sort?: Sorting;
1852
1967
  /**
1853
1968
  * Whether to retrieve data from the primary database instance.
@@ -1869,8 +1984,9 @@ interface BulkGetDataCollectionsRequest {
1869
1984
  */
1870
1985
  segment?: SegmentWithLiterals;
1871
1986
  /**
1872
- * List of specific field names to return, if empty all fields are returned.
1873
- * Affects all returned collections
1987
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1988
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1989
+ * An empty list returns all properties available to the caller.
1874
1990
  * @maxSize 100
1875
1991
  * @maxLength 1000
1876
1992
  */
@@ -1879,12 +1995,12 @@ interface BulkGetDataCollectionsRequest {
1879
1995
  interface BulkGetDataCollectionsResponse {
1880
1996
  /**
1881
1997
  * List of requested collections.
1882
- * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
1998
+ * When `includeReferencedCollections` is `true` in the request, referenced collections are included here.
1883
1999
  */
1884
2000
  activeCollections?: DataCollection[];
1885
2001
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
1886
2002
  deletedCollections?: DataCollection[];
1887
- /** List of failed collections. */
2003
+ /** Collections that couldn't be loaded, with an error for each failure. */
1888
2004
  failedCollections?: FailedCollection[];
1889
2005
  }
1890
2006
  interface ApplicationError {
@@ -1897,7 +2013,7 @@ interface ApplicationError {
1897
2013
  }
1898
2014
  interface FailedCollection {
1899
2015
  /**
1900
- * IDs of the failed collection.
2016
+ * ID of the collection that couldn't be loaded.
1901
2017
  * @maxLength 255
1902
2018
  */
1903
2019
  collectionId?: string;
@@ -1923,13 +2039,13 @@ interface DeleteDataCollectionResponse {
1923
2039
  }
1924
2040
  interface RestoreDataCollectionRequest {
1925
2041
  /**
1926
- * Data Collection ID to restore
2042
+ * ID of the data collection to restore.
1927
2043
  * @maxLength 256
1928
2044
  */
1929
2045
  dataCollectionId?: string;
1930
2046
  }
1931
2047
  interface RestoreDataCollectionResponse {
1932
- /** Restored data collection */
2048
+ /** Restored data collection. */
1933
2049
  dataCollection?: DataCollection;
1934
2050
  }
1935
2051
  interface PatchDataCollectionRequest {
@@ -2029,7 +2145,11 @@ interface AddPublishPluginRequest {
2029
2145
  dataCollectionId: string;
2030
2146
  /** Publish plugin options. */
2031
2147
  publishOptions: PublishPluginOptions;
2032
- /** Action to take when the Draft Items plugin is already installed. */
2148
+ /**
2149
+ * Action to take when the Draft Items plugin is already installed.
2150
+ *
2151
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
2152
+ */
2033
2153
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
2034
2154
  }
2035
2155
  /** Behavior to apply when adding the Publish plugin to a collection that already has the Draft Items plugin. */
@@ -2066,7 +2186,10 @@ interface UpdatePublishPluginRequest {
2066
2186
  * @maxLength 256
2067
2187
  */
2068
2188
  dataCollectionId: string;
2069
- /** Updated Publish plugin options. Read-only fields are ignored. */
2189
+ /**
2190
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
2191
+ * Server-managed lifecycle status is preserved.
2192
+ */
2070
2193
  publishOptions: PublishPluginOptions;
2071
2194
  }
2072
2195
  interface UpdatePublishPluginResponse {
@@ -2103,7 +2226,7 @@ interface UpdateUrlizedPluginRequest {
2103
2226
  * @maxLength 256
2104
2227
  */
2105
2228
  dataCollectionId: string;
2106
- /** Updated Urlized plugin options. */
2229
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
2107
2230
  urlizedOptions: UrlizedPluginOptions;
2108
2231
  }
2109
2232
  interface UpdateUrlizedPluginResponse {
@@ -2140,7 +2263,7 @@ interface UpdateMultilingualPluginRequest {
2140
2263
  * @maxLength 256
2141
2264
  */
2142
2265
  dataCollectionId: string;
2143
- /** Updated Multilingual plugin options. */
2266
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
2144
2267
  multilingualOptions: MultilingualOptions;
2145
2268
  }
2146
2269
  interface UpdateMultilingualPluginResponse {
@@ -2177,7 +2300,7 @@ interface UpdateCmsPluginRequest {
2177
2300
  * @maxLength 256
2178
2301
  */
2179
2302
  dataCollectionId: string;
2180
- /** Updated CMS plugin options. */
2303
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
2181
2304
  cmsOptions: PluginCmsOptions;
2182
2305
  }
2183
2306
  interface UpdateCmsPluginResponse {
@@ -2214,7 +2337,7 @@ interface UpdateCatalogPluginRequest {
2214
2337
  * @maxLength 256
2215
2338
  */
2216
2339
  dataCollectionId: string;
2217
- /** Updated Catalog plugin options. */
2340
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
2218
2341
  catalogOptions: CatalogOptions;
2219
2342
  }
2220
2343
  interface UpdateCatalogPluginResponse {
@@ -2229,7 +2352,11 @@ interface AddDraftItemsPluginRequest {
2229
2352
  dataCollectionId: string;
2230
2353
  /** Draft Items plugin options. */
2231
2354
  draftItemsOptions: DraftItemsPluginOptions;
2232
- /** Action to take when the Publish plugin is already installed. */
2355
+ /**
2356
+ * Action to take when the Publish plugin is already installed.
2357
+ *
2358
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
2359
+ */
2233
2360
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
2234
2361
  }
2235
2362
  /** Behavior to apply when adding the Draft Items plugin to a collection that already has the Publish plugin. */
@@ -2251,7 +2378,11 @@ interface DeleteDraftItemsPluginRequest {
2251
2378
  * @maxLength 256
2252
2379
  */
2253
2380
  dataCollectionId: string;
2254
- /** Action to take for existing draft items. */
2381
+ /**
2382
+ * Action to take for existing draft items.
2383
+ *
2384
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
2385
+ */
2255
2386
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
2256
2387
  }
2257
2388
  /** Behavior to apply to existing draft items when removing the Draft Items plugin. */
@@ -2275,7 +2406,10 @@ interface UpdateDraftItemsPluginRequest {
2275
2406
  * @maxLength 256
2276
2407
  */
2277
2408
  dataCollectionId: string;
2278
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
2409
+ /**
2410
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
2411
+ * Server-managed paired collection IDs are preserved.
2412
+ */
2279
2413
  draftItemsOptions: DraftItemsPluginOptions;
2280
2414
  }
2281
2415
  interface UpdateDraftItemsPluginResponse {
@@ -2288,12 +2422,13 @@ interface PatchDataCollectionFieldRequest {
2288
2422
  * @maxLength 256
2289
2423
  */
2290
2424
  dataCollectionId: string;
2291
- /** Field to update. */
2425
+ /** Field to update. Specify `key` to identify the existing field. */
2292
2426
  field: Field;
2293
2427
  /**
2294
2428
  * Field mask specifying which field properties to update.
2295
2429
  * Supported properties: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`.
2296
2430
  * Attempting to update `key` or other unsupported properties results in an error.
2431
+ * Each masked property must have a value in `field`. To set `encrypted` to `false`, explicitly include it in the mask.
2297
2432
  * @internal
2298
2433
  */
2299
2434
  fieldMask?: string[];
@@ -2316,6 +2451,7 @@ interface UpdateDataPermissionsResponse {
2316
2451
  dataCollection?: DataCollection;
2317
2452
  }
2318
2453
  interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2454
+ /** App whose collection snapshots to retrieve. */
2319
2455
  appOptions?: AppOptions;
2320
2456
  /**
2321
2457
  * Ids of schema snapshot
@@ -2334,6 +2470,7 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollec
2334
2470
  }
2335
2471
  /** @oneof */
2336
2472
  interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2473
+ /** App whose collection snapshots to retrieve. */
2337
2474
  appOptions?: AppOptions;
2338
2475
  }
2339
2476
  declare enum TenantMode {
@@ -2621,15 +2758,27 @@ interface DeleteDataCollectionsSnapshotRequest {
2621
2758
  interface DeleteDataCollectionsSnapshotResponse {
2622
2759
  }
2623
2760
  interface CreateMigratedCollectionsSnapshotRequest {
2624
- /** @format GUID */
2761
+ /**
2762
+ * ID of the source snapshot.
2763
+ * @format GUID
2764
+ */
2625
2765
  existingSnapshotId?: string;
2626
- /** @maxLength 255 */
2766
+ /**
2767
+ * Namespace to assign to collections in the new snapshot.
2768
+ * @maxLength 255
2769
+ */
2627
2770
  newNamespace?: string;
2628
- /** @maxLength 255 */
2771
+ /**
2772
+ * Namespace to replace in the source snapshot.
2773
+ * @maxLength 255
2774
+ */
2629
2775
  existingNamespace?: string;
2630
2776
  }
2631
2777
  interface CreateMigratedCollectionsSnapshotResponse {
2632
- /** @format GUID */
2778
+ /**
2779
+ * ID of the created snapshot.
2780
+ * @format GUID
2781
+ */
2633
2782
  snapshotId?: string;
2634
2783
  }
2635
2784
  interface DomainEvent extends DomainEventBodyOneOf {