@wix/auto_sdk_data_collections 1.0.46 → 1.0.49

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +51 -13
  2. package/build/cjs/index.js +9 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +76 -16
  5. package/build/cjs/index.typings.js +9 -1
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +25 -6
  8. package/build/cjs/meta.js +10 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +51 -13
  11. package/build/es/index.mjs +8 -1
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +76 -16
  14. package/build/es/index.typings.mjs +8 -1
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +25 -6
  17. package/build/es/meta.mjs +9 -2
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +41 -14
  20. package/build/internal/cjs/index.js +9 -1
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +66 -18
  23. package/build/internal/cjs/index.typings.js +9 -1
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +25 -6
  26. package/build/internal/cjs/meta.js +10 -2
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +41 -14
  29. package/build/internal/es/index.mjs +8 -1
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +66 -18
  32. package/build/internal/es/index.typings.mjs +8 -1
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +25 -6
  35. package/build/internal/es/meta.mjs +9 -2
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -452,6 +452,25 @@ interface CalculatorPatternOneOf {
452
452
  /** Value is only URL encoded. */
453
453
  urlizedOnlyPattern?: UrlizedOnlyPattern;
454
454
  }
455
+ declare enum PageLinkType {
456
+ /** Default value. This value is unused. */
457
+ UNKNOWN_PAGE_LINK_TYPE = "UNKNOWN_PAGE_LINK_TYPE",
458
+ /**
459
+ * Page link with field substitution patterns stored in the data collection.
460
+ * Example: "path/{plainField}" where plainField can be any supported type.
461
+ * Can be persistent (stored in database) or overlay (calculated on-the-fly).
462
+ */
463
+ COLLECTION_DEFINED = "COLLECTION_DEFINED",
464
+ /**
465
+ * Page link with field substitution patterns provided by Routers Config.
466
+ * Only supports SLUG type fields in the template (e.g., "products/{slug}").
467
+ * Always read-only overlay fields (never persisted in database).
468
+ * Page link definitions are NOT stored in the data collection.
469
+ */
470
+ ROUTER_DEFINED = "ROUTER_DEFINED"
471
+ }
472
+ /** @enumType */
473
+ type PageLinkTypeWithLiterals = PageLinkType | 'UNKNOWN_PAGE_LINK_TYPE' | 'COLLECTION_DEFINED' | 'ROUTER_DEFINED';
455
474
  interface Reference {
456
475
  /**
457
476
  * Referenced collection ID.
@@ -1077,11 +1096,11 @@ interface RestoreDataCollectionResponse {
1077
1096
  dataCollection?: DataCollection;
1078
1097
  }
1079
1098
  interface PatchDataCollectionRequest {
1080
- /** Data collection to patch. Only fields specified in the field_mask are updated. */
1099
+ /** Data collection to update. */
1081
1100
  dataCollection: DataCollection;
1082
1101
  }
1083
1102
  interface PatchDataCollectionResponse {
1084
- /** The updated data collection. */
1103
+ /** Updated data collection. */
1085
1104
  dataCollection?: DataCollection;
1086
1105
  }
1087
1106
  interface CreateDataCollectionFieldRequest {
@@ -1134,7 +1153,7 @@ interface AddDataCollectionPluginRequest {
1134
1153
  dataCollectionId: string;
1135
1154
  /**
1136
1155
  * Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
1137
- * If a plugin of the same type already exists, this operation will fail.
1156
+ * If a plugin of the same type already exists in the collection, this operation fails.
1138
1157
  */
1139
1158
  plugin: Plugin;
1140
1159
  }
@@ -1161,7 +1180,7 @@ interface PatchDataCollectionFieldRequest {
1161
1180
  * @maxLength 256
1162
1181
  */
1163
1182
  dataCollectionId: string;
1164
- /** Field to patch. */
1183
+ /** Field to update. */
1165
1184
  field: Field;
1166
1185
  }
1167
1186
  interface PatchDataCollectionFieldResponse {
@@ -1726,19 +1745,24 @@ interface ListDataCollectionsOptions {
1726
1745
  /**
1727
1746
  * Updates a data collection.
1728
1747
  *
1729
- * A collection ID, revision number, permissions, and at least 1 field must be provided within the `collection` body parameter.
1748
+ * A collection ID, revision number, permissions, and at least 1 field must be provided in the `collection` body parameter.
1730
1749
  * If a collection with that ID exists, and if its current `revision` number matches the one provided, it's updated.
1731
1750
  * Otherwise, the request fails.
1732
1751
  *
1733
- * When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
1734
- *
1735
1752
  * <blockquote class="important">
1736
1753
  * <strong>Important:</strong>
1737
- * After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection
1738
- * has properties with values and those properties aren't included in the updated collection details, their values are lost.<br/><br/>
1739
1754
  *
1740
- * To update a single field, use the Update Data Collection Field method.
1755
+ * After a collection is updated, it only contains the properties included in the Update Data Collection request.
1756
+ * If the existing collection has properties with values and those properties aren't included in the updated collection details,
1757
+ * their values are lost.<br/><br/>
1758
+ *
1759
+ * To update only specific properties without affecting others, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection).
1741
1760
  * </blockquote>
1761
+ *
1762
+ * When a collection is updated, its `updatedDate` changes to the current date and its `revision` increments by 1.
1763
+ *
1764
+ * To update only properties in a collection's `fields` array, use [Update Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/update-data-collection-field).
1765
+ * To only add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin).
1742
1766
  * @param collection - Updated collection details. The existing collection is replaced with this version.
1743
1767
  * @public
1744
1768
  * @requiredField collection
@@ -1789,9 +1813,15 @@ declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
1789
1813
  */
1790
1814
  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>>;
1791
1815
  /**
1792
- * Patches (partial update) a data collection.
1816
+ * Updates specified properties of a data collection.
1817
+ *
1818
+ * Only updates the properties specified in the request, all other properties remain unchanged.
1819
+ * The following properties can be updated with this method: `displayName`, `displayField`, `permissions`, `dataPermissions`. If attempting to update other, unsupported properties, this operation fails.
1820
+ *
1821
+ * To update properties in a collection's `fields`array, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
1822
+ * To add or remove `plugins`, use [Add Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/add-data-collection-plugin) or [Delete Data Collection Plugin](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/delete-data-collection-plugin).
1793
1823
  * @param _id - Collection ID. For example, `my-first-collection`. May include a namespace.
1794
- * @internal
1824
+ * @public
1795
1825
  * @documentationMaturity preview
1796
1826
  * @requiredField _id
1797
1827
  * @requiredField dataCollection
@@ -1917,7 +1947,16 @@ interface CreateDataCollectionFieldOptions {
1917
1947
  field: Field;
1918
1948
  }
1919
1949
  /**
1920
- * Updates a field in the structure of a data collection.
1950
+ * Updates properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array.
1951
+ *
1952
+ * <blockquote class="important">
1953
+ * <strong>Important:</strong>
1954
+ *
1955
+ * After `fields` is updated, it only contains the properties included in the Update Data Collection Field request.
1956
+ * If the existing `fields` array has properties with values and those properties aren't included in the updated details, their values are lost.<br/><br/>
1957
+ *
1958
+ * To update only specific properties in the array without affecting others, use [Patch Data Collection Field](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection-field).
1959
+ * </blockquote>
1921
1960
  * @param dataCollectionId - ID of the data collection to update.
1922
1961
  * @public
1923
1962
  * @documentationMaturity preview
@@ -1960,6 +1999,8 @@ interface DeleteDataCollectionFieldOptions {
1960
1999
  }
1961
2000
  /**
1962
2001
  * Adds a plugin to a data collection.
2002
+ *
2003
+ * If a plugin of the same type already exists in the collection, this operation fails.
1963
2004
  * @param dataCollectionId - ID of the data collection to update.
1964
2005
  * @public
1965
2006
  * @documentationMaturity preview
@@ -1975,12 +2016,14 @@ declare function addDataCollectionPlugin(dataCollectionId: string, options: NonN
1975
2016
  interface AddDataCollectionPluginOptions {
1976
2017
  /**
1977
2018
  * Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
1978
- * If a plugin of the same type already exists, this operation will fail.
2019
+ * If a plugin of the same type already exists in the collection, this operation fails.
1979
2020
  */
1980
2021
  plugin: Plugin;
1981
2022
  }
1982
2023
  /**
1983
- * Deletes a plugin from a data collection.
2024
+ * Removes a plugin from a data collection.
2025
+ *
2026
+ * Removing a plugin disables its functionality for the collection.
1984
2027
  * @param dataCollectionId - ID of the data collection to update.
1985
2028
  * @public
1986
2029
  * @documentationMaturity preview
@@ -1997,9 +2040,14 @@ interface DeleteDataCollectionPluginOptions {
1997
2040
  pluginType: PluginTypeWithLiterals;
1998
2041
  }
1999
2042
  /**
2000
- * Patches (partial update) a field in the structure of a data collection.
2043
+ * Updates specified properties in a [data collection's](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/create-data-collection) `fields` array.
2044
+ *
2045
+ * Only updates the properties specified in the request, all other properties remain unchanged.
2046
+ * The following properties can be updated with this method: `displayName`, `type`, `typeMetadata`, `encrypted`, `description`. If attempting to update `key` or other unsupported properties, this operation fails.
2047
+ *
2048
+ * To update properties in a data collection other than `fields`, use [Patch Data Collection](https://dev.wix.com/docs/api-reference/business-solutions/cms/collection-management/data-collections/patch-data-collection).
2001
2049
  * @param dataCollectionId - ID of the data collection to update.
2002
- * @param field - Field to patch.
2050
+ * @param field - Field to update.
2003
2051
  * @public
2004
2052
  * @documentationMaturity preview
2005
2053
  * @requiredField dataCollectionId
@@ -2010,4 +2058,4 @@ interface DeleteDataCollectionPluginOptions {
2010
2058
  */
2011
2059
  declare function patchDataCollectionField(dataCollectionId: string, field: Field): Promise<NonNullablePaths<PatchDataCollectionFieldResponse, `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>>;
2012
2060
 
2013
- export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AddDataCollectionPluginOptions, type AddDataCollectionPluginRequest, type AddDataCollectionPluginResponse, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, 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 DeleteDataCollectionPluginOptions, type DeleteDataCollectionPluginRequest, type DeleteDataCollectionPluginResponse, 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 PatchDataCollection, type PatchDataCollectionFieldRequest, type PatchDataCollectionFieldResponse, type PatchDataCollectionRequest, type PatchDataCollectionResponse, 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 Slug, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, 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, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };
2061
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AddDataCollectionPluginOptions, type AddDataCollectionPluginRequest, type AddDataCollectionPluginResponse, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, 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 DeleteDataCollectionPluginOptions, type DeleteDataCollectionPluginRequest, type DeleteDataCollectionPluginResponse, 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, PageLinkType, type PageLinkTypeWithLiterals, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type PatchDataCollection, type PatchDataCollectionFieldRequest, type PatchDataCollectionFieldResponse, type PatchDataCollectionRequest, type PatchDataCollectionResponse, 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 Slug, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, 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, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };
@@ -883,7 +883,7 @@ function patchDataCollectionField(payload) {
883
883
  ]);
884
884
  const metadata = {
885
885
  entityFqdn: "wix.data.v2.data_collection",
886
- method: "POST",
886
+ method: "PATCH",
887
887
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
888
888
  packageName: PACKAGE_NAME,
889
889
  migrationOptions: {
@@ -1012,6 +1012,12 @@ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
1012
1012
  QueryOperator2["URLIZED"] = "URLIZED";
1013
1013
  return QueryOperator2;
1014
1014
  })(QueryOperator || {});
1015
+ var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
1016
+ PageLinkType2["UNKNOWN_PAGE_LINK_TYPE"] = "UNKNOWN_PAGE_LINK_TYPE";
1017
+ PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
1018
+ PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
1019
+ return PageLinkType2;
1020
+ })(PageLinkType || {});
1015
1021
  var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
1016
1022
  FieldPluginType2["UNKNOWN"] = "UNKNOWN";
1017
1023
  FieldPluginType2["CMS"] = "CMS";
@@ -1484,6 +1490,7 @@ export {
1484
1490
  IndexSource,
1485
1491
  IndexStatus,
1486
1492
  Order,
1493
+ PageLinkType,
1487
1494
  PagingMode,
1488
1495
  PluginType,
1489
1496
  QueryOperator,