@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.
- package/build/cjs/index.d.ts +51 -13
- package/build/cjs/index.js +9 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +76 -16
- package/build/cjs/index.typings.js +9 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +25 -6
- package/build/cjs/meta.js +10 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +51 -13
- package/build/es/index.mjs +8 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +76 -16
- package/build/es/index.typings.mjs +8 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +25 -6
- package/build/es/meta.mjs +9 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +41 -14
- package/build/internal/cjs/index.js +9 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +66 -18
- package/build/internal/cjs/index.typings.js +9 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +25 -6
- package/build/internal/cjs/meta.js +10 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +41 -14
- package/build/internal/es/index.mjs +8 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +66 -18
- package/build/internal/es/index.typings.mjs +8 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +25 -6
- package/build/internal/es/meta.mjs +9 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -436,6 +436,25 @@ interface CalculatorPatternOneOf {
|
|
|
436
436
|
/** Value is only URL encoded. */
|
|
437
437
|
urlizedOnlyPattern?: UrlizedOnlyPattern;
|
|
438
438
|
}
|
|
439
|
+
declare enum PageLinkType {
|
|
440
|
+
/** Default value. This value is unused. */
|
|
441
|
+
UNKNOWN_PAGE_LINK_TYPE = "UNKNOWN_PAGE_LINK_TYPE",
|
|
442
|
+
/**
|
|
443
|
+
* Page link with field substitution patterns stored in the data collection.
|
|
444
|
+
* Example: "path/{plainField}" where plainField can be any supported type.
|
|
445
|
+
* Can be persistent (stored in database) or overlay (calculated on-the-fly).
|
|
446
|
+
*/
|
|
447
|
+
COLLECTION_DEFINED = "COLLECTION_DEFINED",
|
|
448
|
+
/**
|
|
449
|
+
* Page link with field substitution patterns provided by Routers Config.
|
|
450
|
+
* Only supports SLUG type fields in the template (e.g., "products/{slug}").
|
|
451
|
+
* Always read-only overlay fields (never persisted in database).
|
|
452
|
+
* Page link definitions are NOT stored in the data collection.
|
|
453
|
+
*/
|
|
454
|
+
ROUTER_DEFINED = "ROUTER_DEFINED"
|
|
455
|
+
}
|
|
456
|
+
/** @enumType */
|
|
457
|
+
type PageLinkTypeWithLiterals = PageLinkType | 'UNKNOWN_PAGE_LINK_TYPE' | 'COLLECTION_DEFINED' | 'ROUTER_DEFINED';
|
|
439
458
|
interface Reference {
|
|
440
459
|
/**
|
|
441
460
|
* Referenced collection ID.
|
|
@@ -1046,11 +1065,11 @@ interface RestoreDataCollectionResponse {
|
|
|
1046
1065
|
dataCollection?: DataCollection;
|
|
1047
1066
|
}
|
|
1048
1067
|
interface PatchDataCollectionRequest {
|
|
1049
|
-
/** Data collection to
|
|
1068
|
+
/** Data collection to update. */
|
|
1050
1069
|
dataCollection: DataCollection;
|
|
1051
1070
|
}
|
|
1052
1071
|
interface PatchDataCollectionResponse {
|
|
1053
|
-
/**
|
|
1072
|
+
/** Updated data collection. */
|
|
1054
1073
|
dataCollection?: DataCollection;
|
|
1055
1074
|
}
|
|
1056
1075
|
interface CreateDataCollectionFieldRequest {
|
|
@@ -1103,7 +1122,7 @@ interface AddDataCollectionPluginRequest {
|
|
|
1103
1122
|
dataCollectionId: string;
|
|
1104
1123
|
/**
|
|
1105
1124
|
* Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
|
|
1106
|
-
* If a plugin of the same type already exists, this operation
|
|
1125
|
+
* If a plugin of the same type already exists in the collection, this operation fails.
|
|
1107
1126
|
*/
|
|
1108
1127
|
plugin: Plugin;
|
|
1109
1128
|
}
|
|
@@ -1130,7 +1149,7 @@ interface PatchDataCollectionFieldRequest {
|
|
|
1130
1149
|
* @maxLength 256
|
|
1131
1150
|
*/
|
|
1132
1151
|
dataCollectionId: string;
|
|
1133
|
-
/** Field to
|
|
1152
|
+
/** Field to update. */
|
|
1134
1153
|
field: Field;
|
|
1135
1154
|
}
|
|
1136
1155
|
interface PatchDataCollectionFieldResponse {
|
|
@@ -1685,19 +1704,24 @@ interface ListDataCollectionsOptions {
|
|
|
1685
1704
|
/**
|
|
1686
1705
|
* Updates a data collection.
|
|
1687
1706
|
*
|
|
1688
|
-
* A collection ID, revision number, permissions, and at least 1 field must be provided
|
|
1707
|
+
* A collection ID, revision number, permissions, and at least 1 field must be provided in the `collection` body parameter.
|
|
1689
1708
|
* If a collection with that ID exists, and if its current `revision` number matches the one provided, it's updated.
|
|
1690
1709
|
* Otherwise, the request fails.
|
|
1691
1710
|
*
|
|
1692
|
-
* When a collection is updated, its `updatedDate` property is changed to the current date and its `revision` property is incremented.
|
|
1693
|
-
*
|
|
1694
1711
|
* <blockquote class="important">
|
|
1695
1712
|
* <strong>Important:</strong>
|
|
1696
|
-
* After a collection is updated, it only contains the properties included in the Update Data Collection request. If the existing collection
|
|
1697
|
-
* has properties with values and those properties aren't included in the updated collection details, their values are lost.<br/><br/>
|
|
1698
1713
|
*
|
|
1699
|
-
*
|
|
1714
|
+
* After a collection is updated, it only contains the properties included in the Update Data Collection request.
|
|
1715
|
+
* If the existing collection has properties with values and those properties aren't included in the updated collection details,
|
|
1716
|
+
* their values are lost.<br/><br/>
|
|
1717
|
+
*
|
|
1718
|
+
* 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).
|
|
1700
1719
|
* </blockquote>
|
|
1720
|
+
*
|
|
1721
|
+
* When a collection is updated, its `updatedDate` changes to the current date and its `revision` increments by 1.
|
|
1722
|
+
*
|
|
1723
|
+
* 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).
|
|
1724
|
+
* 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).
|
|
1701
1725
|
* @param collection - Updated collection details. The existing collection is replaced with this version.
|
|
1702
1726
|
* @public
|
|
1703
1727
|
* @requiredField collection
|
|
@@ -1734,6 +1758,24 @@ declare function updateDataCollection(collection: NonNullablePaths<DataCollectio
|
|
|
1734
1758
|
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollection
|
|
1735
1759
|
*/
|
|
1736
1760
|
declare function deleteDataCollection(dataCollectionId: string): Promise<void>;
|
|
1761
|
+
/**
|
|
1762
|
+
* Updates specified properties of a data collection.
|
|
1763
|
+
*
|
|
1764
|
+
* Only updates the properties specified in the request, all other properties remain unchanged.
|
|
1765
|
+
* The following properties can be updated with this method: `displayName`, `displayField`, `permissions`, `dataPermissions`. If attempting to update other, unsupported properties, this operation fails.
|
|
1766
|
+
*
|
|
1767
|
+
* 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).
|
|
1768
|
+
* 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).
|
|
1769
|
+
* @param _id - Collection ID. For example, `my-first-collection`. May include a namespace.
|
|
1770
|
+
* @public
|
|
1771
|
+
* @documentationMaturity preview
|
|
1772
|
+
* @requiredField _id
|
|
1773
|
+
* @requiredField dataCollection
|
|
1774
|
+
* @permissionId WIX_DATA.UPDATE_COLLECTION
|
|
1775
|
+
* @applicableIdentity APP
|
|
1776
|
+
* @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollection
|
|
1777
|
+
*/
|
|
1778
|
+
declare function patchDataCollection(_id: string, dataCollection: PatchDataCollection): Promise<NonNullablePaths<PatchDataCollectionResponse, `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>>;
|
|
1737
1779
|
interface PatchDataCollection {
|
|
1738
1780
|
/**
|
|
1739
1781
|
* Collection ID. For example, `my-first-collection`. May include a namespace.
|
|
@@ -1840,7 +1882,16 @@ interface CreateDataCollectionFieldOptions {
|
|
|
1840
1882
|
field: Field;
|
|
1841
1883
|
}
|
|
1842
1884
|
/**
|
|
1843
|
-
* Updates
|
|
1885
|
+
* 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.
|
|
1886
|
+
*
|
|
1887
|
+
* <blockquote class="important">
|
|
1888
|
+
* <strong>Important:</strong>
|
|
1889
|
+
*
|
|
1890
|
+
* After `fields` is updated, it only contains the properties included in the Update Data Collection Field request.
|
|
1891
|
+
* 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/>
|
|
1892
|
+
*
|
|
1893
|
+
* 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).
|
|
1894
|
+
* </blockquote>
|
|
1844
1895
|
* @param dataCollectionId - ID of the data collection to update.
|
|
1845
1896
|
* @public
|
|
1846
1897
|
* @documentationMaturity preview
|
|
@@ -1883,6 +1934,8 @@ interface DeleteDataCollectionFieldOptions {
|
|
|
1883
1934
|
}
|
|
1884
1935
|
/**
|
|
1885
1936
|
* Adds a plugin to a data collection.
|
|
1937
|
+
*
|
|
1938
|
+
* If a plugin of the same type already exists in the collection, this operation fails.
|
|
1886
1939
|
* @param dataCollectionId - ID of the data collection to update.
|
|
1887
1940
|
* @public
|
|
1888
1941
|
* @documentationMaturity preview
|
|
@@ -1898,12 +1951,14 @@ declare function addDataCollectionPlugin(dataCollectionId: string, options: NonN
|
|
|
1898
1951
|
interface AddDataCollectionPluginOptions {
|
|
1899
1952
|
/**
|
|
1900
1953
|
* Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
|
|
1901
|
-
* If a plugin of the same type already exists, this operation
|
|
1954
|
+
* If a plugin of the same type already exists in the collection, this operation fails.
|
|
1902
1955
|
*/
|
|
1903
1956
|
plugin: Plugin;
|
|
1904
1957
|
}
|
|
1905
1958
|
/**
|
|
1906
|
-
*
|
|
1959
|
+
* Removes a plugin from a data collection.
|
|
1960
|
+
*
|
|
1961
|
+
* Removing a plugin disables its functionality for the collection.
|
|
1907
1962
|
* @param dataCollectionId - ID of the data collection to update.
|
|
1908
1963
|
* @public
|
|
1909
1964
|
* @documentationMaturity preview
|
|
@@ -1920,9 +1975,14 @@ interface DeleteDataCollectionPluginOptions {
|
|
|
1920
1975
|
pluginType: PluginTypeWithLiterals;
|
|
1921
1976
|
}
|
|
1922
1977
|
/**
|
|
1923
|
-
*
|
|
1978
|
+
* 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.
|
|
1979
|
+
*
|
|
1980
|
+
* Only updates the properties specified in the request, all other properties remain unchanged.
|
|
1981
|
+
* 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.
|
|
1982
|
+
*
|
|
1983
|
+
* 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).
|
|
1924
1984
|
* @param dataCollectionId - ID of the data collection to update.
|
|
1925
|
-
* @param field - Field to
|
|
1985
|
+
* @param field - Field to update.
|
|
1926
1986
|
* @public
|
|
1927
1987
|
* @documentationMaturity preview
|
|
1928
1988
|
* @requiredField dataCollectionId
|
|
@@ -1933,4 +1993,4 @@ interface DeleteDataCollectionPluginOptions {
|
|
|
1933
1993
|
*/
|
|
1934
1994
|
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>>;
|
|
1935
1995
|
|
|
1936
|
-
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, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
|
|
1996
|
+
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, updateDataCollection, updateDataCollectionField };
|
|
@@ -30,6 +30,7 @@ __export(index_typings_exports, {
|
|
|
30
30
|
IndexSource: () => IndexSource,
|
|
31
31
|
IndexStatus: () => IndexStatus,
|
|
32
32
|
Order: () => Order,
|
|
33
|
+
PageLinkType: () => PageLinkType,
|
|
33
34
|
PagingMode: () => PagingMode,
|
|
34
35
|
PluginType: () => PluginType,
|
|
35
36
|
QueryOperator: () => QueryOperator,
|
|
@@ -938,7 +939,7 @@ function patchDataCollectionField(payload) {
|
|
|
938
939
|
]);
|
|
939
940
|
const metadata = {
|
|
940
941
|
entityFqdn: "wix.data.v2.data_collection",
|
|
941
|
-
method: "
|
|
942
|
+
method: "PATCH",
|
|
942
943
|
methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
|
|
943
944
|
packageName: PACKAGE_NAME,
|
|
944
945
|
migrationOptions: {
|
|
@@ -1067,6 +1068,12 @@ var QueryOperator = /* @__PURE__ */ ((QueryOperator2) => {
|
|
|
1067
1068
|
QueryOperator2["URLIZED"] = "URLIZED";
|
|
1068
1069
|
return QueryOperator2;
|
|
1069
1070
|
})(QueryOperator || {});
|
|
1071
|
+
var PageLinkType = /* @__PURE__ */ ((PageLinkType2) => {
|
|
1072
|
+
PageLinkType2["UNKNOWN_PAGE_LINK_TYPE"] = "UNKNOWN_PAGE_LINK_TYPE";
|
|
1073
|
+
PageLinkType2["COLLECTION_DEFINED"] = "COLLECTION_DEFINED";
|
|
1074
|
+
PageLinkType2["ROUTER_DEFINED"] = "ROUTER_DEFINED";
|
|
1075
|
+
return PageLinkType2;
|
|
1076
|
+
})(PageLinkType || {});
|
|
1070
1077
|
var FieldPluginType = /* @__PURE__ */ ((FieldPluginType2) => {
|
|
1071
1078
|
FieldPluginType2["UNKNOWN"] = "UNKNOWN";
|
|
1072
1079
|
FieldPluginType2["CMS"] = "CMS";
|
|
@@ -1540,6 +1547,7 @@ async function patchDataCollectionField2(dataCollectionId, field) {
|
|
|
1540
1547
|
IndexSource,
|
|
1541
1548
|
IndexStatus,
|
|
1542
1549
|
Order,
|
|
1550
|
+
PageLinkType,
|
|
1543
1551
|
PagingMode,
|
|
1544
1552
|
PluginType,
|
|
1545
1553
|
QueryOperator,
|