@wix/auto_sdk_data_collections 1.0.106 → 1.0.107
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 +14 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +14 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +14 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +14 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +0 -2
- package/build/internal/cjs/index.typings.d.ts +1 -1
- package/build/internal/es/index.d.mts +0 -2
- package/build/internal/es/index.typings.d.mts +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, BulkGetDataCollectionsOptions, BulkGetDataCollectionsResponse, PatchDataCollection, PatchDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, DeletePublishPluginResponse, UpdatePublishPluginOptions, UpdatePublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, DeleteUrlizedPluginResponse, UpdateUrlizedPluginOptions, UpdateUrlizedPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, DeleteMultilingualPluginResponse, UpdateMultilingualPluginOptions, UpdateMultilingualPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, DeleteCmsPluginResponse, UpdateCmsPluginOptions, UpdateCmsPluginResponse, AddCatalogPluginOptions, AddCatalogPluginResponse, DeleteCatalogPluginResponse, UpdateCatalogPluginOptions, UpdateCatalogPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, UpdateDraftItemsPluginOptions, UpdateDraftItemsPluginResponse, Field, PatchDataCollectionFieldResponse } from './index.typings.js';
|
|
3
|
-
export { AccessLevel, AccessLevelWithLiterals, AccountInfo, ActionEvent, AddCatalogPluginRequest, AddCmsPluginRequest, AddDataCollectionPluginRequest, AddDraftItemsPluginRequest, AddMultilingualPluginRequest, AddPublishPluginRequest, AddUrlizedPluginRequest, Address, AllowedDataPermissions, AllowedDraftPermissions, AppOptions, ApplicationError, ArrayDocument, ArraySizeRange, ArrayString, Audio, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, Calculator, CalculatorPatternOneOf, CatalogOptions, CategoryFieldOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, Datetime, DatetimeDefaultValueOneOf, DatetimeMaxDateOneOf, DatetimeMinDateOneOf, DeleteCatalogPluginRequest, DeleteCmsPluginRequest, DeleteDataCollectionFieldRequest, DeleteDataCollectionPluginRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, DeleteDraftItemsPluginRequest, DeleteMultilingualPluginRequest, DeletePublishPluginRequest, DeleteUrlizedPluginRequest, Deprecation, Destination, Direction, DirectionWithLiterals, Document, DomainEvent, DomainEventBodyOneOf, DraftItemsPluginConflictAction, DraftItemsPluginConflictActionWithLiterals, DraftItemsPluginOptions, DraftItemsPluginOptionsPairedCollectionOneOf, DraftItemsRemovalAction, DraftItemsRemovalActionWithLiterals, DraftPermissions, Email, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EnumValues, FailedCollection, Failure, FieldCapabilities, FieldCondition, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Image, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, LegacyColor, LifecycleStatus, LifecycleStatusWithLiterals, ListDataCollectionsRequest, MediaGallery, MediaImage, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, PageLinkType, PageLinkTypeWithLiterals, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, Permission, PermissionWithLiterals, Permissions, PermissionsUpdate, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginConflictAction, PublishPluginConflictActionWithLiterals, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest,
|
|
2
|
+
import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, BulkGetDataCollectionsOptions, BulkGetDataCollectionsResponse, RestoreDataCollectionResponse, PatchDataCollection, PatchDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, DeletePublishPluginResponse, UpdatePublishPluginOptions, UpdatePublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, DeleteUrlizedPluginResponse, UpdateUrlizedPluginOptions, UpdateUrlizedPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, DeleteMultilingualPluginResponse, UpdateMultilingualPluginOptions, UpdateMultilingualPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, DeleteCmsPluginResponse, UpdateCmsPluginOptions, UpdateCmsPluginResponse, AddCatalogPluginOptions, AddCatalogPluginResponse, DeleteCatalogPluginResponse, UpdateCatalogPluginOptions, UpdateCatalogPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, UpdateDraftItemsPluginOptions, UpdateDraftItemsPluginResponse, Field, PatchDataCollectionFieldResponse } from './index.typings.js';
|
|
3
|
+
export { AccessLevel, AccessLevelWithLiterals, AccountInfo, ActionEvent, AddCatalogPluginRequest, AddCmsPluginRequest, AddDataCollectionPluginRequest, AddDraftItemsPluginRequest, AddMultilingualPluginRequest, AddPublishPluginRequest, AddUrlizedPluginRequest, Address, AllowedDataPermissions, AllowedDraftPermissions, AppOptions, ApplicationError, ArrayDocument, ArraySizeRange, ArrayString, Audio, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, Calculator, CalculatorPatternOneOf, CatalogOptions, CategoryFieldOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, Datetime, DatetimeDefaultValueOneOf, DatetimeMaxDateOneOf, DatetimeMinDateOneOf, DeleteCatalogPluginRequest, DeleteCmsPluginRequest, DeleteDataCollectionFieldRequest, DeleteDataCollectionPluginRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, DeleteDraftItemsPluginRequest, DeleteMultilingualPluginRequest, DeletePublishPluginRequest, DeleteUrlizedPluginRequest, Deprecation, Destination, Direction, DirectionWithLiterals, Document, DomainEvent, DomainEventBodyOneOf, DraftItemsPluginConflictAction, DraftItemsPluginConflictActionWithLiterals, DraftItemsPluginOptions, DraftItemsPluginOptionsPairedCollectionOneOf, DraftItemsRemovalAction, DraftItemsRemovalActionWithLiterals, DraftPermissions, Email, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EnumValues, FailedCollection, Failure, FieldCapabilities, FieldCondition, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Image, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, LegacyColor, LifecycleStatus, LifecycleStatusWithLiterals, ListDataCollectionsRequest, MediaGallery, MediaImage, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, PageLinkType, PageLinkTypeWithLiterals, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, Permission, PermissionWithLiterals, Permissions, PermissionsUpdate, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginConflictAction, PublishPluginConflictActionWithLiterals, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, RichContent, RichText, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StrictModeUpdate, StringLengthRange, TenantMode, TenantModeWithLiterals, Text, TextValidation, TextValidationOneOf, Time, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateCatalogPluginRequest, UpdateCmsPluginRequest, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UpdateDraftItemsPluginRequest, UpdateMultilingualPluginRequest, UpdatePublishPluginRequest, UpdateUrlizedPluginRequest, Url, UrlizedOnlyPattern, UrlizedPluginOptions, Video, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Boolean, _Date, _DateDefaultValueOneOf, _DateMaxDateOneOf, _DateMinDateOneOf, _Number, _Object } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature;
|
|
6
6
|
interface CreateDataCollectionSignature {
|
|
@@ -98,6 +98,16 @@ interface DeleteDataCollectionSignature {
|
|
|
98
98
|
*/
|
|
99
99
|
(dataCollectionId: string): Promise<void>;
|
|
100
100
|
}
|
|
101
|
+
declare function restoreDataCollection$1(httpClient: HttpClient): RestoreDataCollectionSignature;
|
|
102
|
+
interface RestoreDataCollectionSignature {
|
|
103
|
+
/**
|
|
104
|
+
* Restores recently deleted collection.
|
|
105
|
+
*
|
|
106
|
+
* Fails with `WDE0025` if collection was deleted too long ago or has never existed.
|
|
107
|
+
* @param - Data Collection ID to restore
|
|
108
|
+
*/
|
|
109
|
+
(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.fields.${number}.condition.permission` | `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` | `dataCollection.deprecation.deprecated`, 5>>;
|
|
110
|
+
}
|
|
101
111
|
declare function patchDataCollection$1(httpClient: HttpClient): PatchDataCollectionSignature;
|
|
102
112
|
interface PatchDataCollectionSignature {
|
|
103
113
|
/**
|
|
@@ -343,6 +353,7 @@ declare const listDataCollections: MaybeContext<BuildRESTFunction<typeof listDat
|
|
|
343
353
|
declare const bulkGetDataCollections: MaybeContext<BuildRESTFunction<typeof bulkGetDataCollections$1> & typeof bulkGetDataCollections$1>;
|
|
344
354
|
declare const updateDataCollection: MaybeContext<BuildRESTFunction<typeof updateDataCollection$1> & typeof updateDataCollection$1>;
|
|
345
355
|
declare const deleteDataCollection: MaybeContext<BuildRESTFunction<typeof deleteDataCollection$1> & typeof deleteDataCollection$1>;
|
|
356
|
+
declare const restoreDataCollection: MaybeContext<BuildRESTFunction<typeof restoreDataCollection$1> & typeof restoreDataCollection$1>;
|
|
346
357
|
declare const patchDataCollection: MaybeContext<BuildRESTFunction<typeof patchDataCollection$1> & typeof patchDataCollection$1>;
|
|
347
358
|
declare const createDataCollectionField: MaybeContext<BuildRESTFunction<typeof createDataCollectionField$1> & typeof createDataCollectionField$1>;
|
|
348
359
|
declare const updateDataCollectionField: MaybeContext<BuildRESTFunction<typeof updateDataCollectionField$1> & typeof updateDataCollectionField$1>;
|
|
@@ -369,4 +380,4 @@ declare const deleteDraftItemsPlugin: MaybeContext<BuildRESTFunction<typeof dele
|
|
|
369
380
|
declare const updateDraftItemsPlugin: MaybeContext<BuildRESTFunction<typeof updateDraftItemsPlugin$1> & typeof updateDraftItemsPlugin$1>;
|
|
370
381
|
declare const patchDataCollectionField: MaybeContext<BuildRESTFunction<typeof patchDataCollectionField$1> & typeof patchDataCollectionField$1>;
|
|
371
382
|
|
|
372
|
-
export { AddCatalogPluginOptions, AddCatalogPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, BulkGetDataCollectionsOptions, BulkGetDataCollectionsResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteCatalogPluginResponse, DeleteCmsPluginResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, DeleteMultilingualPluginResponse, DeletePublishPluginResponse, DeleteUrlizedPluginResponse, Field, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollection, PatchDataCollectionFieldResponse, PatchDataCollectionResponse, UpdateCatalogPluginOptions, UpdateCatalogPluginResponse, UpdateCmsPluginOptions, UpdateCmsPluginResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, UpdateDraftItemsPluginOptions, UpdateDraftItemsPluginResponse, UpdateMultilingualPluginOptions, UpdateMultilingualPluginResponse, UpdatePublishPluginOptions, UpdatePublishPluginResponse, UpdateUrlizedPluginOptions, UpdateUrlizedPluginResponse, addCatalogPlugin, addCmsPlugin, addDataCollectionPlugin, addDraftItemsPlugin, addMultilingualPlugin, addPublishPlugin, addUrlizedPlugin, bulkGetDataCollections, createDataCollection, createDataCollectionField, deleteCatalogPlugin, deleteCmsPlugin, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, deleteDraftItemsPlugin, deleteMultilingualPlugin, deletePublishPlugin, deleteUrlizedPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, updateCatalogPlugin, updateCmsPlugin, updateDataCollection, updateDataCollectionField, updateDraftItemsPlugin, updateMultilingualPlugin, updatePublishPlugin, updateUrlizedPlugin };
|
|
383
|
+
export { AddCatalogPluginOptions, AddCatalogPluginResponse, AddCmsPluginOptions, AddCmsPluginResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, AddDraftItemsPluginOptions, AddDraftItemsPluginResponse, AddMultilingualPluginOptions, AddMultilingualPluginResponse, AddPublishPluginOptions, AddPublishPluginResponse, AddUrlizedPluginOptions, AddUrlizedPluginResponse, BulkGetDataCollectionsOptions, BulkGetDataCollectionsResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteCatalogPluginResponse, DeleteCmsPluginResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, DeleteDraftItemsPluginOptions, DeleteDraftItemsPluginResponse, DeleteMultilingualPluginResponse, DeletePublishPluginResponse, DeleteUrlizedPluginResponse, Field, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollection, PatchDataCollectionFieldResponse, PatchDataCollectionResponse, RestoreDataCollectionResponse, UpdateCatalogPluginOptions, UpdateCatalogPluginResponse, UpdateCmsPluginOptions, UpdateCmsPluginResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, UpdateDraftItemsPluginOptions, UpdateDraftItemsPluginResponse, UpdateMultilingualPluginOptions, UpdateMultilingualPluginResponse, UpdatePublishPluginOptions, UpdatePublishPluginResponse, UpdateUrlizedPluginOptions, UpdateUrlizedPluginResponse, addCatalogPlugin, addCmsPlugin, addDataCollectionPlugin, addDraftItemsPlugin, addMultilingualPlugin, addPublishPlugin, addUrlizedPlugin, bulkGetDataCollections, createDataCollection, createDataCollectionField, deleteCatalogPlugin, deleteCmsPlugin, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, deleteDraftItemsPlugin, deleteMultilingualPlugin, deletePublishPlugin, deleteUrlizedPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateCatalogPlugin, updateCmsPlugin, updateDataCollection, updateDataCollectionField, updateDraftItemsPlugin, updateMultilingualPlugin, updatePublishPlugin, updateUrlizedPlugin };
|