@wix/auto_sdk_data_collections 1.0.23 → 1.0.25

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.
@@ -702,6 +702,38 @@ interface PluginCmsOptions {
702
702
  /** CMS sort, applied when a collection is displayed on a site. */
703
703
  siteSort?: SiteSort;
704
704
  }
705
+ interface CatalogOptions {
706
+ /**
707
+ * *Required** - the field key that contains the catalog item name - field must be of type TEXT.
708
+ * @maxLength 1000
709
+ */
710
+ name?: string;
711
+ /**
712
+ * *Required** - the field key that contains the catalog item price - field must be of type NUMBER.
713
+ * @maxLength 1000
714
+ */
715
+ price?: string;
716
+ /**
717
+ * the field key that contains the catalog item URL - field must be of type URL.
718
+ * @maxLength 1000
719
+ */
720
+ url?: string | null;
721
+ /**
722
+ * the field key that contains the catalog item description - field must be of type TEXT.
723
+ * @maxLength 1000
724
+ */
725
+ description?: string | null;
726
+ /**
727
+ * the field key that contains the catalog item image - field must be of type IMAGE.
728
+ * @maxLength 1000
729
+ */
730
+ image?: string | null;
731
+ /**
732
+ * the field key that contains the catalog item quantity - field must be of type NUMBER.
733
+ * @maxLength 1000
734
+ */
735
+ quantity?: string | null;
736
+ }
705
737
  declare enum PagingMode {
706
738
  /** Offset-based paging. */
707
739
  OFFSET = "OFFSET",
@@ -1034,44 +1066,44 @@ interface RestoreDataCollectionResponse {
1034
1066
  }
1035
1067
  interface CreateDataCollectionFieldRequest {
1036
1068
  /**
1037
- * ID of data collection to update
1069
+ * ID of the data collection to update.
1038
1070
  * @maxLength 256
1039
1071
  */
1040
1072
  dataCollectionId: string;
1041
- /** field to create */
1073
+ /** New field to add. */
1042
1074
  field: Field;
1043
1075
  }
1044
1076
  interface CreateDataCollectionFieldResponse {
1045
- /** updated data collection */
1077
+ /** Updated data collection. */
1046
1078
  dataCollection?: DataCollection;
1047
1079
  }
1048
1080
  interface UpdateDataCollectionFieldRequest {
1049
1081
  /**
1050
- * ID of data collection to update
1082
+ * ID of the data collection to update.
1051
1083
  * @maxLength 256
1052
1084
  */
1053
1085
  dataCollectionId: string;
1054
- /** Field to update */
1086
+ /** Field to update. */
1055
1087
  field: Field;
1056
1088
  }
1057
1089
  interface UpdateDataCollectionFieldResponse {
1058
- /** updated data collection */
1090
+ /** Updated data collection. */
1059
1091
  dataCollection?: DataCollection;
1060
1092
  }
1061
1093
  interface DeleteDataCollectionFieldRequest {
1062
1094
  /**
1063
- * ID of data collection to update
1095
+ * ID of the data collection to update.
1064
1096
  * @maxLength 256
1065
1097
  */
1066
1098
  dataCollectionId: string;
1067
1099
  /**
1068
- * Field ID to delete
1100
+ * ID of the field to delete.
1069
1101
  * @maxLength 1000
1070
1102
  */
1071
1103
  fieldKey: string;
1072
1104
  }
1073
1105
  interface DeleteDataCollectionFieldResponse {
1074
- /** updated data collection */
1106
+ /** Updated data collection. */
1075
1107
  dataCollection?: DataCollection;
1076
1108
  }
1077
1109
  interface UpdateDataPermissionsRequest {
@@ -1494,6 +1526,11 @@ interface GetDataCollectionOptions {
1494
1526
  * Default: `false`
1495
1527
  */
1496
1528
  consistentRead?: boolean;
1529
+ /**
1530
+ * If set allowed for caller data permissions would be included in the response
1531
+ * @internal
1532
+ */
1533
+ includeAllowedDataPermissions?: boolean;
1497
1534
  /**
1498
1535
  * List of specific field names to return, if empty all fields are returned.
1499
1536
  * Affects all returned collections
@@ -1530,6 +1567,11 @@ interface ListDataCollectionsOptions {
1530
1567
  * Default: `false`
1531
1568
  */
1532
1569
  consistentRead?: boolean;
1570
+ /**
1571
+ * If set allowed for caller data permissions would be included in the response
1572
+ * @internal
1573
+ */
1574
+ includeAllowedDataPermissions?: boolean;
1533
1575
  /**
1534
1576
  * List of specific field names to return, if empty all fields are returned.
1535
1577
  * Affects all returned collections
@@ -1542,14 +1584,18 @@ interface ListDataCollectionsOptions {
1542
1584
  * Updates a data collection.
1543
1585
  *
1544
1586
  * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.
1545
- * If a collection with that ID exists, and if its current `revision` number matches the one provided, it is updated.
1587
+ * If a collection with that ID exists, and if its current `revision` number matches the one provided, it's updated.
1546
1588
  * Otherwise, the request fails.
1547
1589
  *
1548
1590
  * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
1549
1591
  *
1550
- * > **Note:**
1551
- * > After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection has properties with values and those properties
1552
- * > aren't included in the updated collection details, their values are lost.
1592
+ * <blockquote class="important">
1593
+ * <strong>Important:</strong>
1594
+ * After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection
1595
+ * has properties with values and those properties aren't included in the updated collection details, their values are lost.<br/><br/>
1596
+ *
1597
+ * To update a single field, use the Update Data Collection Field method.
1598
+ * </blockquote>
1553
1599
  * @param collection - Updated collection details. The existing collection is replaced with this version.
1554
1600
  * @public
1555
1601
  * @requiredField collection
@@ -1571,8 +1617,13 @@ declare function updateDataCollection(collection: NonNullablePaths<DataCollectio
1571
1617
  /**
1572
1618
  * Deletes a data collection.
1573
1619
  *
1620
+ * Before deleting a collection:
1621
+ * - Make sure the collection isn't connected to any site pages or elements.
1622
+ * - You can create a manual backup of a collections with the Backups API, in case you need to restore them later.
1623
+ * - You can also export a collection to a CSV file with the Data Movement Jobs API, if you want to save the data outside of Wix.
1624
+ *
1574
1625
  * > **Note:**
1575
- * > Once a collection is deleted, it can only be restored for limited amount of time.
1626
+ * > Once a collection is deleted, it can only be restored for a limited amount of time.
1576
1627
  * @param dataCollectionId - ID of the collection to delete.
1577
1628
  * @public
1578
1629
  * @requiredField dataCollectionId
@@ -1595,8 +1646,8 @@ declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
1595
1646
  */
1596
1647
  declare function restoreDataCollection(dataCollectionId: string): Promise<NonNullablePaths<RestoreDataCollectionResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
1597
1648
  /**
1598
- * Adds new field to data collection schema
1599
- * @param dataCollectionId - ID of data collection to update
1649
+ * Adds a new field to the structure of a data collection.
1650
+ * @param dataCollectionId - ID of the data collection to update.
1600
1651
  * @public
1601
1652
  * @documentationMaturity preview
1602
1653
  * @requiredField dataCollectionId
@@ -1610,12 +1661,12 @@ declare function restoreDataCollection(dataCollectionId: string): Promise<NonNul
1610
1661
  */
1611
1662
  declare function createDataCollectionField(dataCollectionId: string, options: NonNullablePaths<CreateDataCollectionFieldOptions, `field` | `field.key` | `field.type`, 3>): Promise<NonNullablePaths<CreateDataCollectionFieldResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
1612
1663
  interface CreateDataCollectionFieldOptions {
1613
- /** field to create */
1664
+ /** New field to add. */
1614
1665
  field: Field;
1615
1666
  }
1616
1667
  /**
1617
- * Updates data collection field
1618
- * @param dataCollectionId - ID of data collection to update
1668
+ * Updates a field in the structure of a data collection.
1669
+ * @param dataCollectionId - ID of the data collection to update.
1619
1670
  * @public
1620
1671
  * @documentationMaturity preview
1621
1672
  * @requiredField dataCollectionId
@@ -1629,12 +1680,15 @@ interface CreateDataCollectionFieldOptions {
1629
1680
  */
1630
1681
  declare function updateDataCollectionField(dataCollectionId: string, options: NonNullablePaths<UpdateDataCollectionFieldOptions, `field` | `field.key` | `field.type`, 3>): Promise<NonNullablePaths<UpdateDataCollectionFieldResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
1631
1682
  interface UpdateDataCollectionFieldOptions {
1632
- /** Field to update */
1683
+ /** Field to update. */
1633
1684
  field: Field;
1634
1685
  }
1635
1686
  /**
1636
- * Deletes data collection field
1637
- * @param dataCollectionId - ID of data collection to update
1687
+ * Deletes a field from the structure of a data collection.
1688
+ *
1689
+ * When a field is deleted, all values associated with that field are also deleted
1690
+ * from all items in the collection.
1691
+ * @param dataCollectionId - ID of the data collection to update.
1638
1692
  * @public
1639
1693
  * @documentationMaturity preview
1640
1694
  * @requiredField dataCollectionId
@@ -1647,10 +1701,10 @@ interface UpdateDataCollectionFieldOptions {
1647
1701
  declare function deleteDataCollectionField(dataCollectionId: string, options: NonNullablePaths<DeleteDataCollectionFieldOptions, `fieldKey`, 2>): Promise<NonNullablePaths<DeleteDataCollectionFieldResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
1648
1702
  interface DeleteDataCollectionFieldOptions {
1649
1703
  /**
1650
- * Field ID to delete
1704
+ * ID of the field to delete.
1651
1705
  * @maxLength 1000
1652
1706
  */
1653
1707
  fieldKey: string;
1654
1708
  }
1655
1709
 
1656
- export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CmsOptions, type CollectionCapabilities, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, restoreDataCollection, updateDataCollection, updateDataCollectionField };
1710
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AllowedDataPermissions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, restoreDataCollection, updateDataCollection, updateDataCollectionField };
@@ -897,6 +897,7 @@ async function getDataCollection2(dataCollectionId, options) {
897
897
  const payload = renameKeysFromSDKRequestToRESTRequest({
898
898
  dataCollectionId,
899
899
  consistentRead: options?.consistentRead,
900
+ includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
900
901
  fields: options?.fields
901
902
  });
902
903
  const reqOpts = getDataCollection(payload);
@@ -913,6 +914,7 @@ async function getDataCollection2(dataCollectionId, options) {
913
914
  explicitPathsToArguments: {
914
915
  dataCollectionId: "$[0]",
915
916
  consistentRead: "$[1].consistentRead",
917
+ includeAllowedDataPermissions: "$[1].includeAllowedDataPermissions",
916
918
  fields: "$[1].fields"
917
919
  },
918
920
  singleArgumentUnchanged: false
@@ -929,6 +931,7 @@ async function listDataCollections2(options) {
929
931
  sort: options?.sort,
930
932
  paging: options?.paging,
931
933
  consistentRead: options?.consistentRead,
934
+ includeAllowedDataPermissions: options?.includeAllowedDataPermissions,
932
935
  fields: options?.fields
933
936
  });
934
937
  const reqOpts = listDataCollections(payload);
@@ -946,6 +949,7 @@ async function listDataCollections2(options) {
946
949
  sort: "$[0].sort",
947
950
  paging: "$[0].paging",
948
951
  consistentRead: "$[0].consistentRead",
952
+ includeAllowedDataPermissions: "$[0].includeAllowedDataPermissions",
949
953
  fields: "$[0].fields"
950
954
  },
951
955
  singleArgumentUnchanged: false