@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;
@@ -220,7 +227,7 @@ interface Field extends FieldRangeValidationsOneOf {
220
227
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
221
228
  */
222
229
  type?: TypeWithLiterals;
223
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
230
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
224
231
  typeMetadata?: TypeMetadata;
225
232
  /**
226
233
  * Whether the field is a system field.
@@ -246,7 +253,7 @@ interface Field extends FieldRangeValidationsOneOf {
246
253
  */
247
254
  readOnly?: boolean | null;
248
255
  /**
249
- * Whether the field is immutable. An immutable field can be set once, but then cannot be updated.
256
+ * Whether the field is immutable. An immutable field can be set once, but then can't be updated.
250
257
  *
251
258
  * Default: `false`
252
259
  */
@@ -263,7 +270,7 @@ interface Field extends FieldRangeValidationsOneOf {
263
270
  */
264
271
  plugins?: FieldPlugin[];
265
272
  /**
266
- * This indicates that this fields is conditional and is not retrieved by default.
273
+ * Conditions that control whether this field is included when retrieving data items.
267
274
  * @readonly
268
275
  */
269
276
  condition?: FieldCondition;
@@ -456,7 +463,7 @@ interface ObjectField {
456
463
  * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
457
464
  */
458
465
  type?: TypeWithLiterals;
459
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
466
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
460
467
  typeMetadata?: TypeMetadata;
461
468
  /**
462
469
  * Capabilities the object field supports.
@@ -465,12 +472,19 @@ interface ObjectField {
465
472
  capabilities?: FieldCapabilities;
466
473
  }
467
474
  interface FieldsPattern {
468
- /** @maxLength 1000 */
475
+ /**
476
+ * Pattern used to generate the field value from item properties.
477
+ * @maxLength 1000
478
+ */
469
479
  pattern?: string;
480
+ /** Whether to convert the generated value to lowercase. Default: `false`. */
470
481
  lowercase?: boolean;
471
482
  }
472
483
  interface UrlizedOnlyPattern {
473
- /** @maxLength 1000 */
484
+ /**
485
+ * Pattern used to generate the field value from item properties.
486
+ * @maxLength 1000
487
+ */
474
488
  pattern?: string;
475
489
  }
476
490
  interface Calculator extends CalculatorPatternOneOf {
@@ -539,10 +553,11 @@ interface _Object {
539
553
  interface _Array {
540
554
  /** Element's data type. */
541
555
  elementType?: TypeWithLiterals;
542
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
556
+ /** Type-specific configuration, such as the referenced collection for a reference field or the calculation pattern for a page link. */
543
557
  typeMetadata?: TypeMetadata;
544
558
  }
545
559
  interface PageLink {
560
+ /** Calculation pattern used to generate the page link. Required for page link fields. */
546
561
  calculator?: Calculator;
547
562
  /**
548
563
  * Defines reference to router pattern in the site document.
@@ -552,22 +567,28 @@ interface PageLink {
552
567
  }
553
568
  interface Slug {
554
569
  /**
570
+ * Pattern used to generate the field value from item properties.
555
571
  * @minLength 1
556
572
  * @maxLength 1000
557
573
  */
558
574
  pattern?: string;
559
575
  }
560
576
  interface Text extends TextValidationOneOf {
577
+ /** Length and pattern constraints for the text value. */
561
578
  textValidation?: TextValidation;
579
+ /** Allowed text values. */
562
580
  enumValues?: EnumValues;
563
581
  defaultValue?: string | null;
564
582
  }
565
583
  /** @oneof */
566
584
  interface TextValidationOneOf {
585
+ /** Length and pattern constraints for the text value. */
567
586
  textValidation?: TextValidation;
587
+ /** Allowed text values. */
568
588
  enumValues?: EnumValues;
569
589
  }
570
590
  interface _Number {
591
+ /** Value assigned when a data item omits this field. */
571
592
  defaultValue?: number | null;
572
593
  /** Minimum permitted value for a numerical field. */
573
594
  min?: number | null;
@@ -575,48 +596,68 @@ interface _Number {
575
596
  max?: number | null;
576
597
  }
577
598
  interface _Date extends _DateDefaultValueOneOf, _DateMinDateOneOf, _DateMaxDateOneOf {
599
+ /** Fixed date and time used as the default value. */
578
600
  defaultValueFixed?: Date | null;
601
+ /** Offset from the current date, in days, used as the default value. */
579
602
  defaultValueOffsetFromNowInDays?: number | null;
603
+ /** Earliest permitted date and time. */
580
604
  minDateFixed?: Date | null;
605
+ /** Offset from the current date, in days, used as the earliest permitted date. */
581
606
  minValueOffsetFromNowInDays?: number | null;
607
+ /** Latest permitted date and time. */
582
608
  maxDateFixed?: Date | null;
609
+ /** Offset from the current date, in days, used as the latest permitted date. */
583
610
  maxValueOffsetFromNowInDays?: number | null;
584
611
  }
585
612
  /** @oneof */
586
613
  interface _DateDefaultValueOneOf {
614
+ /** Fixed date and time used as the default value. */
587
615
  defaultValueFixed?: Date | null;
616
+ /** Offset from the current date, in days, used as the default value. */
588
617
  defaultValueOffsetFromNowInDays?: number | null;
589
618
  }
590
619
  /** @oneof */
591
620
  interface _DateMinDateOneOf {
621
+ /** Earliest permitted date and time. */
592
622
  minDateFixed?: Date | null;
623
+ /** Offset from the current date, in days, used as the earliest permitted date. */
593
624
  minValueOffsetFromNowInDays?: number | null;
594
625
  }
595
626
  /** @oneof */
596
627
  interface _DateMaxDateOneOf {
628
+ /** Latest permitted date and time. */
597
629
  maxDateFixed?: Date | null;
630
+ /** Offset from the current date, in days, used as the latest permitted date. */
598
631
  maxValueOffsetFromNowInDays?: number | null;
599
632
  }
600
633
  interface Datetime extends DatetimeDefaultValueOneOf, DatetimeMinDateOneOf, DatetimeMaxDateOneOf {
634
+ /** Fixed date and time used as the default value. */
601
635
  defaultValueFixed?: Date | null;
636
+ /** Offset from the current time, in seconds, used as the default value. */
602
637
  defaultValueOffsetFromNowInSeconds?: number | null;
638
+ /** Earliest permitted date and time. */
603
639
  minDateFixed?: Date | null;
604
640
  minDateOffsetFromNowInSeconds?: number | null;
641
+ /** Latest permitted date and time. */
605
642
  maxDateFixed?: Date | null;
606
643
  maxDateOffsetFromNowInSeconds?: number | null;
607
644
  }
608
645
  /** @oneof */
609
646
  interface DatetimeDefaultValueOneOf {
647
+ /** Fixed date and time used as the default value. */
610
648
  defaultValueFixed?: Date | null;
649
+ /** Offset from the current time, in seconds, used as the default value. */
611
650
  defaultValueOffsetFromNowInSeconds?: number | null;
612
651
  }
613
652
  /** @oneof */
614
653
  interface DatetimeMinDateOneOf {
654
+ /** Earliest permitted date and time. */
615
655
  minDateFixed?: Date | null;
616
656
  minDateOffsetFromNowInSeconds?: number | null;
617
657
  }
618
658
  /** @oneof */
619
659
  interface DatetimeMaxDateOneOf {
660
+ /** Latest permitted date and time. */
620
661
  maxDateFixed?: Date | null;
621
662
  maxDateOffsetFromNowInSeconds?: number | null;
622
663
  }
@@ -624,6 +665,7 @@ interface Image {
624
665
  defaultValue?: string | null;
625
666
  }
626
667
  interface _Boolean {
668
+ /** Value assigned when a data item omits this field. */
627
669
  defaultValue?: boolean | null;
628
670
  }
629
671
  interface Document {
@@ -631,10 +673,12 @@ interface Document {
631
673
  }
632
674
  interface Url {
633
675
  /**
676
+ * Value assigned when a data item omits this field.
634
677
  * @minLength 1
635
678
  * @maxLength 2048
636
679
  */
637
680
  defaultValue?: string | null;
681
+ /** Length and pattern constraints for the text value. */
638
682
  textValidation?: TextValidation;
639
683
  }
640
684
  interface RichText {
@@ -691,16 +735,21 @@ interface Time {
691
735
  maxTime?: string | null;
692
736
  }
693
737
  interface RichContent {
738
+ /** Value assigned when a data item omits this field. */
694
739
  defaultValue?: Record<string, any> | null;
695
740
  }
696
741
  interface MediaGallery {
697
742
  defaultValue?: Record<string, any>[] | null;
698
743
  }
699
744
  interface Address {
745
+ /** Value assigned when a data item omits this field. */
700
746
  defaultValue?: Record<string, any> | null;
701
747
  }
702
748
  interface Email {
703
- /** @format EMAIL */
749
+ /**
750
+ * Value assigned when a data item omits this field.
751
+ * @format EMAIL
752
+ */
704
753
  defaultValue?: string | null;
705
754
  }
706
755
  interface LegacyColor {
@@ -752,12 +801,13 @@ interface ArraySizeRange {
752
801
  */
753
802
  maxSize?: number | null;
754
803
  }
755
- /** Optional plug-in aspects for fields */
804
+ /** Plugins that extend a field's behavior. */
756
805
  interface FieldPlugin extends FieldPluginOptionsOneOf {
757
806
  /** Options for the CMS plugin. */
758
807
  cmsOptions?: CmsOptions;
759
808
  /** Options for the CATEGORY_FIELD plugin. */
760
809
  categoryFieldOptions?: CategoryFieldOptions;
810
+ /** Field plugin type. */
761
811
  type?: FieldPluginTypeWithLiterals;
762
812
  }
763
813
  /** @oneof */
@@ -768,9 +818,9 @@ interface FieldPluginOptionsOneOf {
768
818
  categoryFieldOptions?: CategoryFieldOptions;
769
819
  }
770
820
  declare enum FieldPluginType {
771
- /** Uknown plugin type. */
821
+ /** Unknown plugin type. */
772
822
  UNKNOWN = "UNKNOWN",
773
- /** CMS-related field attributes */
823
+ /** CMS-related field attributes. */
774
824
  CMS = "CMS"
775
825
  }
776
826
  /** @enumType */
@@ -797,7 +847,7 @@ interface CategoryFieldOptions {
797
847
  }
798
848
  interface FieldCondition {
799
849
  /**
800
- * 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.
850
+ * 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.
801
851
  * @maxLength 100
802
852
  */
803
853
  groupName?: string | null;
@@ -890,7 +940,9 @@ interface PluginOptionsOneOf {
890
940
  cmsOptions?: PluginCmsOptions;
891
941
  }
892
942
  declare enum Status {
943
+ /** Items are published by default. */
893
944
  PUBLISHED = "PUBLISHED",
945
+ /** Items are drafts by default. */
894
946
  DRAFT = "DRAFT"
895
947
  }
896
948
  /** @enumType */
@@ -966,7 +1018,11 @@ declare enum PluginType {
966
1018
  /** @enumType */
967
1019
  type PluginTypeWithLiterals = PluginType | 'PUBLISH' | 'SINGLE_ITEM' | 'URLIZED' | 'GRIDAPPLESS' | 'MULTILINGUAL' | 'SHARED' | 'EDITABLE_PAGE_LINK' | 'CMS';
968
1020
  interface PublishPluginOptions {
969
- /** Default status. */
1021
+ /**
1022
+ * Publication status assigned to items that don't specify one.
1023
+ *
1024
+ * Default: `PUBLISHED`.
1025
+ */
970
1026
  defaultStatus?: StatusWithLiterals;
971
1027
  }
972
1028
  interface SingleItemPluginOptions {
@@ -977,7 +1033,11 @@ interface SingleItemPluginOptions {
977
1033
  singleItemId?: string;
978
1034
  }
979
1035
  interface UrlizedPluginOptions {
980
- /** Encoding method for generating a URL in ASCII characters. */
1036
+ /**
1037
+ * Encoding method for generating a URL in ASCII characters.
1038
+ *
1039
+ * Default: `ORIGINAL`.
1040
+ */
981
1041
  format?: FormatWithLiterals;
982
1042
  }
983
1043
  interface MultilingualOptions {
@@ -989,7 +1049,17 @@ interface MultilingualOptions {
989
1049
  translatableFieldKeys?: string[];
990
1050
  }
991
1051
  interface PageLinkPluginOptions {
1052
+ /**
1053
+ * Whether page link values are stored with the items.
1054
+ *
1055
+ * Default: `false`.
1056
+ */
992
1057
  isPersisted?: boolean;
1058
+ /**
1059
+ * Whether page link values can be updated.
1060
+ *
1061
+ * Default: `false`.
1062
+ */
993
1063
  isMutable?: boolean;
994
1064
  }
995
1065
  interface PluginCmsOptions {
@@ -998,7 +1068,9 @@ interface PluginCmsOptions {
998
1068
  }
999
1069
  interface CatalogOptions {
1000
1070
  /**
1001
- * *Required** - the field key that contains the catalog item name - field must be of type TEXT.
1071
+ * Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.
1072
+ *
1073
+ * Use `nameFieldKey` instead. If both properties are specified, a non-empty `nameFieldKey` takes precedence.
1002
1074
  * @maxLength 1000
1003
1075
  * @deprecated
1004
1076
  * @replacedBy name_field_key
@@ -1006,7 +1078,9 @@ interface CatalogOptions {
1006
1078
  */
1007
1079
  name?: string;
1008
1080
  /**
1009
- * *Required** - the field key that contains the catalog item price - field must be of type NUMBER.
1081
+ * Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.
1082
+ *
1083
+ * Use `priceFieldKey` instead. If both properties are specified, a non-empty `priceFieldKey` takes precedence.
1010
1084
  * @maxLength 1000
1011
1085
  * @deprecated
1012
1086
  * @replacedBy price_field_key
@@ -1014,7 +1088,9 @@ interface CatalogOptions {
1014
1088
  */
1015
1089
  price?: string;
1016
1090
  /**
1017
- * the field key that contains the catalog item URL - field must be of type URL.
1091
+ * Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.
1092
+ *
1093
+ * Use `urlFieldKey` instead. If both properties are specified, a non-empty `urlFieldKey` takes precedence.
1018
1094
  * @maxLength 1000
1019
1095
  * @deprecated
1020
1096
  * @replacedBy url_field_key
@@ -1022,7 +1098,9 @@ interface CatalogOptions {
1022
1098
  */
1023
1099
  url?: string | null;
1024
1100
  /**
1025
- * the field key that contains the catalog item description - field must be of type TEXT.
1101
+ * Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.
1102
+ *
1103
+ * Use `descriptionFieldKey` instead. If both properties are specified, a non-empty `descriptionFieldKey` takes precedence.
1026
1104
  * @maxLength 1000
1027
1105
  * @deprecated
1028
1106
  * @replacedBy description_field_key
@@ -1030,7 +1108,9 @@ interface CatalogOptions {
1030
1108
  */
1031
1109
  description?: string | null;
1032
1110
  /**
1033
- * the field key that contains the catalog item image - field must be of type IMAGE.
1111
+ * Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.
1112
+ *
1113
+ * Use `imageFieldKey` instead. If both properties are specified, a non-empty `imageFieldKey` takes precedence.
1034
1114
  * @maxLength 1000
1035
1115
  * @deprecated
1036
1116
  * @replacedBy image_field_key
@@ -1038,7 +1118,9 @@ interface CatalogOptions {
1038
1118
  */
1039
1119
  image?: string | null;
1040
1120
  /**
1041
- * the field key that contains the catalog item quantity - field must be of type NUMBER.
1121
+ * Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.
1122
+ *
1123
+ * Use `quantityFieldKey` instead. If both properties are specified, a non-empty `quantityFieldKey` takes precedence.
1042
1124
  * @maxLength 1000
1043
1125
  * @deprecated
1044
1126
  * @replacedBy quantity_field_key
@@ -1046,7 +1128,9 @@ interface CatalogOptions {
1046
1128
  */
1047
1129
  quantity?: string | null;
1048
1130
  /**
1049
- * the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
1131
+ * Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.
1132
+ *
1133
+ * Use `digitalFileFieldKey` instead. If both properties are specified, a non-empty `digitalFileFieldKey` takes precedence.
1050
1134
  * @maxLength 1000
1051
1135
  * @deprecated
1052
1136
  * @replacedBy digital_file_field_key
@@ -1054,7 +1138,9 @@ interface CatalogOptions {
1054
1138
  */
1055
1139
  digitalFile?: string | null;
1056
1140
  /**
1057
- * the field key that contains the catalog item weight - field must be of type NUMBER.
1141
+ * Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.
1142
+ *
1143
+ * Use `weightFieldKey` instead. If both properties are specified, a non-empty `weightFieldKey` takes precedence.
1058
1144
  * @maxLength 1000
1059
1145
  * @deprecated
1060
1146
  * @replacedBy weight_field_key
@@ -1062,7 +1148,9 @@ interface CatalogOptions {
1062
1148
  */
1063
1149
  weight?: string | null;
1064
1150
  /**
1065
- * the field key that contains the catalog item SKU - field must be of type TEXT.
1151
+ * Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.
1152
+ *
1153
+ * Use `skuFieldKey` instead. If both properties are specified, a non-empty `skuFieldKey` takes precedence.
1066
1154
  * @maxLength 1000
1067
1155
  * @deprecated
1068
1156
  * @replacedBy sku_field_key
@@ -1070,7 +1158,9 @@ interface CatalogOptions {
1070
1158
  */
1071
1159
  sku?: string | null;
1072
1160
  /**
1073
- * the field key that contains the catalog item shippable flag - field must be of type BOOLEAN.
1161
+ * Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.
1162
+ *
1163
+ * Use `shippableFieldKey` instead. If both properties are specified, a non-empty `shippableFieldKey` takes precedence.
1074
1164
  * @maxLength 1000
1075
1165
  * @deprecated
1076
1166
  * @replacedBy shippable_field_key
@@ -1078,52 +1168,56 @@ interface CatalogOptions {
1078
1168
  */
1079
1169
  shippable?: string | null;
1080
1170
  /**
1081
- * *Required** - the field key that contains the catalog item name - field must be of type TEXT.
1171
+ * Key of the collection field that contains the catalog item's name. The referenced field must have type `TEXT`.
1172
+ *
1173
+ * Required when configuring the Catalog plugin.
1082
1174
  * @maxLength 1000
1083
1175
  */
1084
1176
  nameFieldKey?: string;
1085
1177
  /**
1086
- * *Required** - the field key that contains the catalog item price - field must be of type NUMBER.
1178
+ * Key of the collection field that contains the catalog item's price. The referenced field must have type `NUMBER`.
1179
+ *
1180
+ * Required when configuring the Catalog plugin.
1087
1181
  * @maxLength 1000
1088
1182
  */
1089
1183
  priceFieldKey?: string;
1090
1184
  /**
1091
- * the field key that contains the catalog item URL - field must be of type URL.
1185
+ * Key of the collection field that contains the catalog item's URL. The referenced field must have type `URL`.
1092
1186
  * @maxLength 1000
1093
1187
  */
1094
1188
  urlFieldKey?: string | null;
1095
1189
  /**
1096
- * the field key that contains the catalog item description - field must be of type TEXT.
1190
+ * Key of the collection field that contains the catalog item's description. The referenced field must have type `TEXT`.
1097
1191
  * @maxLength 1000
1098
1192
  */
1099
1193
  descriptionFieldKey?: string | null;
1100
1194
  /**
1101
- * the field key that contains the catalog item image - field must be of type IMAGE.
1195
+ * Key of the collection field that contains the catalog item's image. The referenced field must have type `IMAGE` or `MEDIA_IMAGE`.
1102
1196
  * @maxLength 1000
1103
1197
  */
1104
1198
  imageFieldKey?: string | null;
1105
1199
  /**
1106
- * the field key that contains the catalog item quantity - field must be of type NUMBER.
1200
+ * Key of the collection field that contains the catalog item's quantity. The referenced field must have type `NUMBER`.
1107
1201
  * @maxLength 1000
1108
1202
  */
1109
1203
  quantityFieldKey?: string | null;
1110
1204
  /**
1111
- * the field key that contains the catalog item digital file - field must be of type SECURED_MEDIA.
1205
+ * Key of the collection field that contains the catalog item's digital file. The referenced field must have type `SECURED_MEDIA`.
1112
1206
  * @maxLength 1000
1113
1207
  */
1114
1208
  digitalFileFieldKey?: string | null;
1115
1209
  /**
1116
- * the field key that contains the catalog item weight - field must be of type NUMBER.
1210
+ * Key of the collection field that contains the catalog item's weight. The referenced field must have type `NUMBER`.
1117
1211
  * @maxLength 1000
1118
1212
  */
1119
1213
  weightFieldKey?: string | null;
1120
1214
  /**
1121
- * the field key that contains the catalog item SKU - field must be of type TEXT.
1215
+ * Key of the collection field that contains the catalog item's stock keeping unit (SKU). The referenced field must have type `TEXT`.
1122
1216
  * @maxLength 1000
1123
1217
  */
1124
1218
  skuFieldKey?: string | null;
1125
1219
  /**
1126
- * the field key that contains the catalog item shippable flag - field must be of type BOOLEAN.
1220
+ * Key of the collection field that indicates whether the catalog item requires shipping. The referenced field must have type `BOOLEAN`.
1127
1221
  * @maxLength 1000
1128
1222
  */
1129
1223
  shippableFieldKey?: string | null;
@@ -1225,32 +1319,32 @@ interface DataCollectionClonedEvent {
1225
1319
  }
1226
1320
  interface DataCollectionChangedEvent {
1227
1321
  /**
1228
- * list of new fields
1322
+ * Fields added to the collection.
1229
1323
  * @maxSize 1000
1230
1324
  */
1231
1325
  fieldsAdded?: Field[];
1232
1326
  /**
1233
- * list of changed fields
1327
+ * Fields whose definitions changed.
1234
1328
  * @maxSize 1000
1235
1329
  */
1236
1330
  fieldsUpdated?: FieldUpdate[];
1237
1331
  /**
1238
- * list of removed fields
1332
+ * Fields removed from the collection.
1239
1333
  * @maxSize 1000
1240
1334
  */
1241
1335
  fieldsRemoved?: Field[];
1242
1336
  /**
1243
- * list of new plugins
1337
+ * Plugins added to the collection.
1244
1338
  * @maxSize 100
1245
1339
  */
1246
1340
  pluginsAdded?: Plugin[];
1247
1341
  /**
1248
- * list of changed plugins
1342
+ * Plugins whose options changed.
1249
1343
  * @maxSize 100
1250
1344
  */
1251
1345
  pluginsUpdated?: PluginUpdate[];
1252
1346
  /**
1253
- * list of removed plugins
1347
+ * Plugins removed from the collection.
1254
1348
  * @maxSize 100
1255
1349
  */
1256
1350
  pluginsRemoved?: Plugin[];
@@ -1260,15 +1354,15 @@ interface DataCollectionChangedEvent {
1260
1354
  strictModeUpdated?: StrictModeUpdate;
1261
1355
  }
1262
1356
  interface FieldUpdate {
1263
- /** previous state of the field */
1357
+ /** Previous field definition. */
1264
1358
  previous?: Field;
1265
- /** current state of the field */
1359
+ /** Updated field definition. */
1266
1360
  current?: Field;
1267
1361
  }
1268
1362
  interface PluginUpdate {
1269
- /** previous state of the plugin */
1363
+ /** Previous plugin configuration. */
1270
1364
  previous?: Plugin;
1271
- /** current state of the plugin */
1365
+ /** Updated plugin configuration. */
1272
1366
  current?: Plugin;
1273
1367
  }
1274
1368
  interface PermissionsUpdate {
@@ -1296,7 +1390,7 @@ interface CreateDataCollectionRequest {
1296
1390
  collection: DataCollection;
1297
1391
  }
1298
1392
  interface CreateDataCollectionResponse {
1299
- /** Details of collection created. */
1393
+ /** Created collection. */
1300
1394
  collection?: DataCollection;
1301
1395
  }
1302
1396
  interface GetDataCollectionRequest {
@@ -1314,8 +1408,9 @@ interface GetDataCollectionRequest {
1314
1408
  */
1315
1409
  consistentRead?: boolean;
1316
1410
  /**
1317
- * List of specific field names to return, if empty all fields are returned.
1318
- * Affects all returned collections
1411
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1412
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1413
+ * An empty list returns all properties available to the caller.
1319
1414
  * @maxSize 100
1320
1415
  * @maxLength 1000
1321
1416
  */
@@ -1329,17 +1424,23 @@ declare enum Segment {
1329
1424
  /** @enumType */
1330
1425
  type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1331
1426
  interface GetDataCollectionResponse {
1332
- /** Details of the collection requested. */
1427
+ /** Requested collection. */
1333
1428
  collection?: DataCollection;
1334
1429
  }
1335
1430
  interface ListDataCollectionsRequest {
1336
1431
  /**
1337
1432
  * Defines how collections in the response are sorted.
1338
1433
  *
1339
- * Default: Ordered by ID in ascending order.
1434
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1435
+ *
1436
+ * Default: `id` in ascending order.
1340
1437
  */
1341
1438
  sort?: Sorting;
1342
- /** Pagination information. */
1439
+ /**
1440
+ * Pagination information. The maximum page size is `1000`.
1441
+ *
1442
+ * Default: `limit` is `1000` and `offset` is `0`.
1443
+ */
1343
1444
  paging?: Paging;
1344
1445
  /**
1345
1446
  * Whether to retrieve data from the primary database instance.
@@ -1350,8 +1451,9 @@ interface ListDataCollectionsRequest {
1350
1451
  */
1351
1452
  consistentRead?: boolean;
1352
1453
  /**
1353
- * List of specific field names to return, if empty all fields are returned.
1354
- * Affects all returned collections
1454
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1455
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1456
+ * An empty list returns all properties available to the caller.
1355
1457
  * @maxSize 100
1356
1458
  * @maxLength 128
1357
1459
  */
@@ -1414,7 +1516,13 @@ interface BulkGetDataCollectionsRequest {
1414
1516
  * Default: `false`
1415
1517
  */
1416
1518
  includeReferencedCollections?: boolean;
1417
- /** Sorting preferences. */
1519
+ /**
1520
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
1521
+ *
1522
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1523
+ *
1524
+ * Default: `id` in ascending order.
1525
+ */
1418
1526
  sort?: Sorting;
1419
1527
  /**
1420
1528
  * Whether to retrieve data from the primary database instance.
@@ -1425,8 +1533,9 @@ interface BulkGetDataCollectionsRequest {
1425
1533
  */
1426
1534
  consistentRead?: boolean;
1427
1535
  /**
1428
- * List of specific field names to return, if empty all fields are returned.
1429
- * Affects all returned collections
1536
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1537
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1538
+ * An empty list returns all properties available to the caller.
1430
1539
  * @maxSize 100
1431
1540
  * @maxLength 1000
1432
1541
  */
@@ -1435,12 +1544,12 @@ interface BulkGetDataCollectionsRequest {
1435
1544
  interface BulkGetDataCollectionsResponse {
1436
1545
  /**
1437
1546
  * List of requested collections.
1438
- * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
1547
+ * When `includeReferencedCollections` is `true` in the request, referenced collections are included here.
1439
1548
  */
1440
1549
  activeCollections?: DataCollection[];
1441
1550
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
1442
1551
  deletedCollections?: DataCollection[];
1443
- /** List of failed collections. */
1552
+ /** Collections that couldn't be loaded, with an error for each failure. */
1444
1553
  failedCollections?: FailedCollection[];
1445
1554
  }
1446
1555
  interface ApplicationError {
@@ -1453,7 +1562,7 @@ interface ApplicationError {
1453
1562
  }
1454
1563
  interface FailedCollection {
1455
1564
  /**
1456
- * IDs of the failed collection.
1565
+ * ID of the collection that couldn't be loaded.
1457
1566
  * @maxLength 255
1458
1567
  */
1459
1568
  collectionId?: string;
@@ -1479,13 +1588,13 @@ interface DeleteDataCollectionResponse {
1479
1588
  }
1480
1589
  interface RestoreDataCollectionRequest {
1481
1590
  /**
1482
- * Data Collection ID to restore
1591
+ * ID of the data collection to restore.
1483
1592
  * @maxLength 256
1484
1593
  */
1485
1594
  dataCollectionId?: string;
1486
1595
  }
1487
1596
  interface RestoreDataCollectionResponse {
1488
- /** Restored data collection */
1597
+ /** Restored data collection. */
1489
1598
  dataCollection?: DataCollection;
1490
1599
  }
1491
1600
  interface PatchDataCollectionRequest {
@@ -1575,7 +1684,11 @@ interface AddPublishPluginRequest {
1575
1684
  dataCollectionId: string;
1576
1685
  /** Publish plugin options. */
1577
1686
  publishOptions: PublishPluginOptions;
1578
- /** Action to take when the Draft Items plugin is already installed. */
1687
+ /**
1688
+ * Action to take when the Draft Items plugin is already installed.
1689
+ *
1690
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
1691
+ */
1579
1692
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
1580
1693
  }
1581
1694
  /** Behavior to apply when adding the Publish plugin to a collection that already has the Draft Items plugin. */
@@ -1612,7 +1725,10 @@ interface UpdatePublishPluginRequest {
1612
1725
  * @maxLength 256
1613
1726
  */
1614
1727
  dataCollectionId: string;
1615
- /** Updated Publish plugin options. Read-only fields are ignored. */
1728
+ /**
1729
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
1730
+ * Server-managed lifecycle status is preserved.
1731
+ */
1616
1732
  publishOptions: PublishPluginOptions;
1617
1733
  }
1618
1734
  interface UpdatePublishPluginResponse {
@@ -1649,7 +1765,7 @@ interface UpdateUrlizedPluginRequest {
1649
1765
  * @maxLength 256
1650
1766
  */
1651
1767
  dataCollectionId: string;
1652
- /** Updated Urlized plugin options. */
1768
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
1653
1769
  urlizedOptions: UrlizedPluginOptions;
1654
1770
  }
1655
1771
  interface UpdateUrlizedPluginResponse {
@@ -1686,7 +1802,7 @@ interface UpdateMultilingualPluginRequest {
1686
1802
  * @maxLength 256
1687
1803
  */
1688
1804
  dataCollectionId: string;
1689
- /** Updated Multilingual plugin options. */
1805
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
1690
1806
  multilingualOptions: MultilingualOptions;
1691
1807
  }
1692
1808
  interface UpdateMultilingualPluginResponse {
@@ -1723,7 +1839,7 @@ interface UpdateCmsPluginRequest {
1723
1839
  * @maxLength 256
1724
1840
  */
1725
1841
  dataCollectionId: string;
1726
- /** Updated CMS plugin options. */
1842
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
1727
1843
  cmsOptions: PluginCmsOptions;
1728
1844
  }
1729
1845
  interface UpdateCmsPluginResponse {
@@ -1760,7 +1876,7 @@ interface UpdateCatalogPluginRequest {
1760
1876
  * @maxLength 256
1761
1877
  */
1762
1878
  dataCollectionId: string;
1763
- /** Updated Catalog plugin options. */
1879
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
1764
1880
  catalogOptions: CatalogOptions;
1765
1881
  }
1766
1882
  interface UpdateCatalogPluginResponse {
@@ -1775,7 +1891,11 @@ interface AddDraftItemsPluginRequest {
1775
1891
  dataCollectionId: string;
1776
1892
  /** Draft Items plugin options. */
1777
1893
  draftItemsOptions: DraftItemsPluginOptions;
1778
- /** Action to take when the Publish plugin is already installed. */
1894
+ /**
1895
+ * Action to take when the Publish plugin is already installed.
1896
+ *
1897
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
1898
+ */
1779
1899
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
1780
1900
  }
1781
1901
  /** Behavior to apply when adding the Draft Items plugin to a collection that already has the Publish plugin. */
@@ -1797,7 +1917,11 @@ interface DeleteDraftItemsPluginRequest {
1797
1917
  * @maxLength 256
1798
1918
  */
1799
1919
  dataCollectionId: string;
1800
- /** Action to take for existing draft items. */
1920
+ /**
1921
+ * Action to take for existing draft items.
1922
+ *
1923
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
1924
+ */
1801
1925
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
1802
1926
  }
1803
1927
  /** Behavior to apply to existing draft items when removing the Draft Items plugin. */
@@ -1821,7 +1945,10 @@ interface UpdateDraftItemsPluginRequest {
1821
1945
  * @maxLength 256
1822
1946
  */
1823
1947
  dataCollectionId: string;
1824
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
1948
+ /**
1949
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
1950
+ * Server-managed paired collection IDs are preserved.
1951
+ */
1825
1952
  draftItemsOptions: DraftItemsPluginOptions;
1826
1953
  }
1827
1954
  interface UpdateDraftItemsPluginResponse {
@@ -1834,7 +1961,7 @@ interface PatchDataCollectionFieldRequest {
1834
1961
  * @maxLength 256
1835
1962
  */
1836
1963
  dataCollectionId: string;
1837
- /** Field to update. */
1964
+ /** Field to update. Specify `key` to identify the existing field. */
1838
1965
  field: Field;
1839
1966
  }
1840
1967
  interface PatchDataCollectionFieldResponse {
@@ -1855,6 +1982,7 @@ interface UpdateDataPermissionsResponse {
1855
1982
  dataCollection?: DataCollection;
1856
1983
  }
1857
1984
  interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1985
+ /** App whose collection snapshots to retrieve. */
1858
1986
  appOptions?: AppOptions;
1859
1987
  /**
1860
1988
  * Ids of schema snapshot
@@ -1873,6 +2001,7 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollec
1873
2001
  }
1874
2002
  /** @oneof */
1875
2003
  interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
2004
+ /** App whose collection snapshots to retrieve. */
1876
2005
  appOptions?: AppOptions;
1877
2006
  }
1878
2007
  declare enum TenantMode {
@@ -2153,15 +2282,27 @@ interface DeleteDataCollectionsSnapshotRequest {
2153
2282
  interface DeleteDataCollectionsSnapshotResponse {
2154
2283
  }
2155
2284
  interface CreateMigratedCollectionsSnapshotRequest {
2156
- /** @format GUID */
2285
+ /**
2286
+ * ID of the source snapshot.
2287
+ * @format GUID
2288
+ */
2157
2289
  existingSnapshotId?: string;
2158
- /** @maxLength 255 */
2290
+ /**
2291
+ * Namespace to assign to collections in the new snapshot.
2292
+ * @maxLength 255
2293
+ */
2159
2294
  newNamespace?: string;
2160
- /** @maxLength 255 */
2295
+ /**
2296
+ * Namespace to replace in the source snapshot.
2297
+ * @maxLength 255
2298
+ */
2161
2299
  existingNamespace?: string;
2162
2300
  }
2163
2301
  interface CreateMigratedCollectionsSnapshotResponse {
2164
- /** @format GUID */
2302
+ /**
2303
+ * ID of the created snapshot.
2304
+ * @format GUID
2305
+ */
2165
2306
  snapshotId?: string;
2166
2307
  }
2167
2308
  interface DomainEvent extends DomainEventBodyOneOf {