@wix/auto_sdk_data_collections 1.0.108 → 1.0.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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 {
@@ -1225,32 +1295,32 @@ interface DataCollectionClonedEvent {
1225
1295
  }
1226
1296
  interface DataCollectionChangedEvent {
1227
1297
  /**
1228
- * list of new fields
1298
+ * Fields added to the collection.
1229
1299
  * @maxSize 1000
1230
1300
  */
1231
1301
  fieldsAdded?: Field[];
1232
1302
  /**
1233
- * list of changed fields
1303
+ * Fields whose definitions changed.
1234
1304
  * @maxSize 1000
1235
1305
  */
1236
1306
  fieldsUpdated?: FieldUpdate[];
1237
1307
  /**
1238
- * list of removed fields
1308
+ * Fields removed from the collection.
1239
1309
  * @maxSize 1000
1240
1310
  */
1241
1311
  fieldsRemoved?: Field[];
1242
1312
  /**
1243
- * list of new plugins
1313
+ * Plugins added to the collection.
1244
1314
  * @maxSize 100
1245
1315
  */
1246
1316
  pluginsAdded?: Plugin[];
1247
1317
  /**
1248
- * list of changed plugins
1318
+ * Plugins whose options changed.
1249
1319
  * @maxSize 100
1250
1320
  */
1251
1321
  pluginsUpdated?: PluginUpdate[];
1252
1322
  /**
1253
- * list of removed plugins
1323
+ * Plugins removed from the collection.
1254
1324
  * @maxSize 100
1255
1325
  */
1256
1326
  pluginsRemoved?: Plugin[];
@@ -1260,15 +1330,15 @@ interface DataCollectionChangedEvent {
1260
1330
  strictModeUpdated?: StrictModeUpdate;
1261
1331
  }
1262
1332
  interface FieldUpdate {
1263
- /** previous state of the field */
1333
+ /** Previous field definition. */
1264
1334
  previous?: Field;
1265
- /** current state of the field */
1335
+ /** Updated field definition. */
1266
1336
  current?: Field;
1267
1337
  }
1268
1338
  interface PluginUpdate {
1269
- /** previous state of the plugin */
1339
+ /** Previous plugin configuration. */
1270
1340
  previous?: Plugin;
1271
- /** current state of the plugin */
1341
+ /** Updated plugin configuration. */
1272
1342
  current?: Plugin;
1273
1343
  }
1274
1344
  interface PermissionsUpdate {
@@ -1296,7 +1366,7 @@ interface CreateDataCollectionRequest {
1296
1366
  collection: DataCollection;
1297
1367
  }
1298
1368
  interface CreateDataCollectionResponse {
1299
- /** Details of collection created. */
1369
+ /** Created collection. */
1300
1370
  collection?: DataCollection;
1301
1371
  }
1302
1372
  interface GetDataCollectionRequest {
@@ -1314,8 +1384,9 @@ interface GetDataCollectionRequest {
1314
1384
  */
1315
1385
  consistentRead?: boolean;
1316
1386
  /**
1317
- * List of specific field names to return, if empty all fields are returned.
1318
- * Affects all returned collections
1387
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1388
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1389
+ * An empty list returns all properties available to the caller.
1319
1390
  * @maxSize 100
1320
1391
  * @maxLength 1000
1321
1392
  */
@@ -1329,17 +1400,23 @@ declare enum Segment {
1329
1400
  /** @enumType */
1330
1401
  type SegmentWithLiterals = Segment | 'UNKNOWN_SEGMENT' | 'PUBLIC' | 'DEV';
1331
1402
  interface GetDataCollectionResponse {
1332
- /** Details of the collection requested. */
1403
+ /** Requested collection. */
1333
1404
  collection?: DataCollection;
1334
1405
  }
1335
1406
  interface ListDataCollectionsRequest {
1336
1407
  /**
1337
1408
  * Defines how collections in the response are sorted.
1338
1409
  *
1339
- * Default: Ordered by ID in ascending order.
1410
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1411
+ *
1412
+ * Default: `id` in ascending order.
1340
1413
  */
1341
1414
  sort?: Sorting;
1342
- /** Pagination information. */
1415
+ /**
1416
+ * Pagination information. The maximum page size is `1000`.
1417
+ *
1418
+ * Default: `limit` is `1000` and `offset` is `0`.
1419
+ */
1343
1420
  paging?: Paging;
1344
1421
  /**
1345
1422
  * Whether to retrieve data from the primary database instance.
@@ -1350,8 +1427,9 @@ interface ListDataCollectionsRequest {
1350
1427
  */
1351
1428
  consistentRead?: boolean;
1352
1429
  /**
1353
- * List of specific field names to return, if empty all fields are returned.
1354
- * Affects all returned collections
1430
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1431
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1432
+ * An empty list returns all properties available to the caller.
1355
1433
  * @maxSize 100
1356
1434
  * @maxLength 128
1357
1435
  */
@@ -1414,7 +1492,13 @@ interface BulkGetDataCollectionsRequest {
1414
1492
  * Default: `false`
1415
1493
  */
1416
1494
  includeReferencedCollections?: boolean;
1417
- /** Sorting preferences. */
1495
+ /**
1496
+ * Sorting preferences for active and deleted collections. Results aren't returned in request order.
1497
+ *
1498
+ * Supported properties: `id`, `displayName`, `createdDate`, `updatedDate`.
1499
+ *
1500
+ * Default: `id` in ascending order.
1501
+ */
1418
1502
  sort?: Sorting;
1419
1503
  /**
1420
1504
  * Whether to retrieve data from the primary database instance.
@@ -1425,8 +1509,9 @@ interface BulkGetDataCollectionsRequest {
1425
1509
  */
1426
1510
  consistentRead?: boolean;
1427
1511
  /**
1428
- * List of specific field names to return, if empty all fields are returned.
1429
- * Affects all returned collections
1512
+ * Top-level collection properties to return, using camelCase names, such as `displayName`.
1513
+ * Applies to every returned collection. `id`, `revision`, and `collectionType` are always retained.
1514
+ * An empty list returns all properties available to the caller.
1430
1515
  * @maxSize 100
1431
1516
  * @maxLength 1000
1432
1517
  */
@@ -1435,12 +1520,12 @@ interface BulkGetDataCollectionsRequest {
1435
1520
  interface BulkGetDataCollectionsResponse {
1436
1521
  /**
1437
1522
  * List of requested collections.
1438
- * When `include_referenced_collections` is `true` in the request, referenced collections are included here.
1523
+ * When `includeReferencedCollections` is `true` in the request, referenced collections are included here.
1439
1524
  */
1440
1525
  activeCollections?: DataCollection[];
1441
1526
  /** List of requested deleted collections. Only populated when `showDeletedCollections` is true in the request. */
1442
1527
  deletedCollections?: DataCollection[];
1443
- /** List of failed collections. */
1528
+ /** Collections that couldn't be loaded, with an error for each failure. */
1444
1529
  failedCollections?: FailedCollection[];
1445
1530
  }
1446
1531
  interface ApplicationError {
@@ -1453,7 +1538,7 @@ interface ApplicationError {
1453
1538
  }
1454
1539
  interface FailedCollection {
1455
1540
  /**
1456
- * IDs of the failed collection.
1541
+ * ID of the collection that couldn't be loaded.
1457
1542
  * @maxLength 255
1458
1543
  */
1459
1544
  collectionId?: string;
@@ -1479,13 +1564,13 @@ interface DeleteDataCollectionResponse {
1479
1564
  }
1480
1565
  interface RestoreDataCollectionRequest {
1481
1566
  /**
1482
- * Data Collection ID to restore
1567
+ * ID of the data collection to restore.
1483
1568
  * @maxLength 256
1484
1569
  */
1485
1570
  dataCollectionId?: string;
1486
1571
  }
1487
1572
  interface RestoreDataCollectionResponse {
1488
- /** Restored data collection */
1573
+ /** Restored data collection. */
1489
1574
  dataCollection?: DataCollection;
1490
1575
  }
1491
1576
  interface PatchDataCollectionRequest {
@@ -1575,7 +1660,11 @@ interface AddPublishPluginRequest {
1575
1660
  dataCollectionId: string;
1576
1661
  /** Publish plugin options. */
1577
1662
  publishOptions: PublishPluginOptions;
1578
- /** Action to take when the Draft Items plugin is already installed. */
1663
+ /**
1664
+ * Action to take when the Draft Items plugin is already installed.
1665
+ *
1666
+ * Default: `FAIL_WHEN_DRAFT_ITEMS_INSTALLED`.
1667
+ */
1579
1668
  draftItemsPluginConflictAction?: DraftItemsPluginConflictActionWithLiterals;
1580
1669
  }
1581
1670
  /** Behavior to apply when adding the Publish plugin to a collection that already has the Draft Items plugin. */
@@ -1612,7 +1701,10 @@ interface UpdatePublishPluginRequest {
1612
1701
  * @maxLength 256
1613
1702
  */
1614
1703
  dataCollectionId: string;
1615
- /** Updated Publish plugin options. Read-only fields are ignored. */
1704
+ /**
1705
+ * Replacement writable options for the Publish plugin. Omitted options use their defaults.
1706
+ * Server-managed lifecycle status is preserved.
1707
+ */
1616
1708
  publishOptions: PublishPluginOptions;
1617
1709
  }
1618
1710
  interface UpdatePublishPluginResponse {
@@ -1649,7 +1741,7 @@ interface UpdateUrlizedPluginRequest {
1649
1741
  * @maxLength 256
1650
1742
  */
1651
1743
  dataCollectionId: string;
1652
- /** Updated Urlized plugin options. */
1744
+ /** Replacement options for the Urlized plugin. Omitted options use their defaults. */
1653
1745
  urlizedOptions: UrlizedPluginOptions;
1654
1746
  }
1655
1747
  interface UpdateUrlizedPluginResponse {
@@ -1686,7 +1778,7 @@ interface UpdateMultilingualPluginRequest {
1686
1778
  * @maxLength 256
1687
1779
  */
1688
1780
  dataCollectionId: string;
1689
- /** Updated Multilingual plugin options. */
1781
+ /** Replacement options for the Multilingual plugin. Omitted options use their defaults. */
1690
1782
  multilingualOptions: MultilingualOptions;
1691
1783
  }
1692
1784
  interface UpdateMultilingualPluginResponse {
@@ -1723,7 +1815,7 @@ interface UpdateCmsPluginRequest {
1723
1815
  * @maxLength 256
1724
1816
  */
1725
1817
  dataCollectionId: string;
1726
- /** Updated CMS plugin options. */
1818
+ /** Replacement options for the CMS plugin. Omitted options use their defaults. */
1727
1819
  cmsOptions: PluginCmsOptions;
1728
1820
  }
1729
1821
  interface UpdateCmsPluginResponse {
@@ -1760,7 +1852,7 @@ interface UpdateCatalogPluginRequest {
1760
1852
  * @maxLength 256
1761
1853
  */
1762
1854
  dataCollectionId: string;
1763
- /** Updated Catalog plugin options. */
1855
+ /** Replacement options for the Catalog plugin. Omitted options use their defaults. */
1764
1856
  catalogOptions: CatalogOptions;
1765
1857
  }
1766
1858
  interface UpdateCatalogPluginResponse {
@@ -1775,7 +1867,11 @@ interface AddDraftItemsPluginRequest {
1775
1867
  dataCollectionId: string;
1776
1868
  /** Draft Items plugin options. */
1777
1869
  draftItemsOptions: DraftItemsPluginOptions;
1778
- /** Action to take when the Publish plugin is already installed. */
1870
+ /**
1871
+ * Action to take when the Publish plugin is already installed.
1872
+ *
1873
+ * Default: `FAIL_WHEN_PUBLISH_INSTALLED`.
1874
+ */
1779
1875
  publishPluginConflictAction?: PublishPluginConflictActionWithLiterals;
1780
1876
  }
1781
1877
  /** Behavior to apply when adding the Draft Items plugin to a collection that already has the Publish plugin. */
@@ -1797,7 +1893,11 @@ interface DeleteDraftItemsPluginRequest {
1797
1893
  * @maxLength 256
1798
1894
  */
1799
1895
  dataCollectionId: string;
1800
- /** Action to take for existing draft items. */
1896
+ /**
1897
+ * Action to take for existing draft items.
1898
+ *
1899
+ * Default: `FAIL_IF_DRAFT_ITEMS_EXIST`.
1900
+ */
1801
1901
  draftItemsRemovalAction?: DraftItemsRemovalActionWithLiterals;
1802
1902
  }
1803
1903
  /** Behavior to apply to existing draft items when removing the Draft Items plugin. */
@@ -1821,7 +1921,10 @@ interface UpdateDraftItemsPluginRequest {
1821
1921
  * @maxLength 256
1822
1922
  */
1823
1923
  dataCollectionId: string;
1824
- /** Updated Draft Items plugin options. Read-only fields are ignored. */
1924
+ /**
1925
+ * Replacement writable options for the Draft Items plugin. Omitted options use their defaults.
1926
+ * Server-managed paired collection IDs are preserved.
1927
+ */
1825
1928
  draftItemsOptions: DraftItemsPluginOptions;
1826
1929
  }
1827
1930
  interface UpdateDraftItemsPluginResponse {
@@ -1834,7 +1937,7 @@ interface PatchDataCollectionFieldRequest {
1834
1937
  * @maxLength 256
1835
1938
  */
1836
1939
  dataCollectionId: string;
1837
- /** Field to update. */
1940
+ /** Field to update. Specify `key` to identify the existing field. */
1838
1941
  field: Field;
1839
1942
  }
1840
1943
  interface PatchDataCollectionFieldResponse {
@@ -1855,6 +1958,7 @@ interface UpdateDataPermissionsResponse {
1855
1958
  dataCollection?: DataCollection;
1856
1959
  }
1857
1960
  interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1961
+ /** App whose collection snapshots to retrieve. */
1858
1962
  appOptions?: AppOptions;
1859
1963
  /**
1860
1964
  * Ids of schema snapshot
@@ -1873,6 +1977,7 @@ interface BulkGetDataCollectionsPageBySnapshotsRequest extends BulkGetDataCollec
1873
1977
  }
1874
1978
  /** @oneof */
1875
1979
  interface BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf {
1980
+ /** App whose collection snapshots to retrieve. */
1876
1981
  appOptions?: AppOptions;
1877
1982
  }
1878
1983
  declare enum TenantMode {
@@ -2153,15 +2258,27 @@ interface DeleteDataCollectionsSnapshotRequest {
2153
2258
  interface DeleteDataCollectionsSnapshotResponse {
2154
2259
  }
2155
2260
  interface CreateMigratedCollectionsSnapshotRequest {
2156
- /** @format GUID */
2261
+ /**
2262
+ * ID of the source snapshot.
2263
+ * @format GUID
2264
+ */
2157
2265
  existingSnapshotId?: string;
2158
- /** @maxLength 255 */
2266
+ /**
2267
+ * Namespace to assign to collections in the new snapshot.
2268
+ * @maxLength 255
2269
+ */
2159
2270
  newNamespace?: string;
2160
- /** @maxLength 255 */
2271
+ /**
2272
+ * Namespace to replace in the source snapshot.
2273
+ * @maxLength 255
2274
+ */
2161
2275
  existingNamespace?: string;
2162
2276
  }
2163
2277
  interface CreateMigratedCollectionsSnapshotResponse {
2164
- /** @format GUID */
2278
+ /**
2279
+ * ID of the created snapshot.
2280
+ * @format GUID
2281
+ */
2165
2282
  snapshotId?: string;
2166
2283
  }
2167
2284
  interface DomainEvent extends DomainEventBodyOneOf {