@wix/auto_sdk_data_collections 1.0.43 → 1.0.45

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 +24 -4
  2. package/build/cjs/index.js +159 -12
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +73 -78
  5. package/build/cjs/index.typings.js +139 -10
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +35 -4
  8. package/build/cjs/meta.js +116 -9
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +24 -4
  11. package/build/es/index.mjs +157 -12
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +73 -78
  14. package/build/es/index.typings.mjs +137 -10
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +35 -4
  17. package/build/es/meta.mjs +114 -9
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +24 -4
  20. package/build/internal/cjs/index.js +159 -12
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +73 -78
  23. package/build/internal/cjs/index.typings.js +139 -10
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +35 -4
  26. package/build/internal/cjs/meta.js +116 -9
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +24 -4
  29. package/build/internal/es/index.mjs +157 -12
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +73 -78
  32. package/build/internal/es/index.typings.mjs +137 -10
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +35 -4
  35. package/build/internal/es/meta.mjs +114 -9
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, RestoreDataCollectionResponse, PatchDataCollection, PatchDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, PatchDataCollectionFieldIdentifiers, PatchDataCollectionField, PatchDataCollectionFieldResponse } from './index.typings.js';
3
- export { AccessLevel, AccessLevelWithLiterals, ActionEvent, AllowedDataPermissions, AppOptions, ApplicationError, ArraySizeRange, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CatalogOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, DeleteDataCollectionFieldRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, Destination, Direction, DirectionWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedCollection, Failure, Field, FieldCapabilities, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, ListDataCollectionsRequest, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, Permissions, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StringLengthRange, TenantMode, TenantModeWithLiterals, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UrlizedOnlyPattern, UrlizedPluginOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Object } from './index.typings.js';
2
+ import { DataCollection, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, RestoreDataCollectionResponse, PatchDataCollection, PatchDataCollectionResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, Field, PatchDataCollectionFieldResponse } from './index.typings.js';
3
+ export { AccessLevel, AccessLevelWithLiterals, ActionEvent, AddDataCollectionPluginRequest, AllowedDataPermissions, AppOptions, ApplicationError, ArraySizeRange, BulkGetDataCollectionsPageBySnapshotsRequest, BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, BulkGetDataCollectionsPageBySnapshotsResponse, BulkGetDataCollectionsRequest, BulkGetDataCollectionsResponse, Calculator, CalculatorPatternOneOf, CatalogOptions, CmsOptions, CollectionCapabilities, CollectionDefinition, CollectionOperation, CollectionOperationWithLiterals, CollectionType, CollectionTypeWithLiterals, CreateAppCollectionsSnapshotRequest, CreateAppCollectionsSnapshotResponse, CreateDataCollectionFieldRequest, CreateDataCollectionRequest, CreateDataCollectionResponse, CreateDataCollectionsSnapshotRequest, CreateDataCollectionsSnapshotResponse, CreateMigratedCollectionsSnapshotRequest, CreateMigratedCollectionsSnapshotResponse, DataCollectionChangedEvent, DataCollectionClonedEvent, DataCollectionEvictedEvent, DataOperation, DataOperationWithLiterals, DataPermissions, DeleteDataCollectionFieldRequest, DeleteDataCollectionPluginRequest, DeleteDataCollectionRequest, DeleteDataCollectionResponse, DeleteDataCollectionsSnapshotRequest, DeleteDataCollectionsSnapshotResponse, Destination, Direction, DirectionWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedCollection, Failure, FieldCapabilities, FieldPlugin, FieldPluginOptionsOneOf, FieldPluginType, FieldPluginTypeWithLiterals, FieldRangeValidationsOneOf, FieldUpdate, FieldsPattern, Format, FormatWithLiterals, GetDataCollectionRequest, GetDataCollectionResponse, IdentificationData, IdentificationDataIdOneOf, Index, IndexField, IndexLimits, IndexQuotaLimits, IndexSource, IndexSourceWithLiterals, IndexStatus, IndexStatusWithLiterals, ListDataCollectionsRequest, MessageEnvelope, MultiReference, MultilingualOptions, NumberRange, ObjectField, Order, OrderWithLiterals, PageLink, PageLinkPluginOptions, Paging, PagingMetadataV2, PagingMode, PagingModeWithLiterals, PatchDataCollectionFieldRequest, PatchDataCollectionRequest, Permissions, Plugin, PluginCmsOptions, PluginOptionsOneOf, PluginType, PluginTypeWithLiterals, PluginUpdate, PublishPluginOptions, QueryOperator, QueryOperatorWithLiterals, Reference, RestorationCollection, RestoreDataCollectionRequest, RestoreDataCollectionsFromSnapshotRequest, RestoreDataCollectionsFromSnapshotResponse, RestoreInfo, Role, RoleWithLiterals, Segment, SegmentWithLiterals, SingleItemPluginOptions, SiteSort, Slug, SnapshotCollection, Sort, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StringLengthRange, TenantMode, TenantModeWithLiterals, Type, TypeMetadata, TypeMetadataMetadataOneOf, TypeWithLiterals, UpdateDataCollectionFieldRequest, UpdateDataCollectionRequest, UpdateDataCollectionResponse, UpdateDataPermissionsRequest, UpdateDataPermissionsResponse, UrlizedOnlyPattern, UrlizedPluginOptions, WebhookIdentityType, WebhookIdentityTypeWithLiterals, _Array, _Object } from './index.typings.js';
4
4
 
5
5
  declare function createDataCollection$1(httpClient: HttpClient): CreateDataCollectionSignature;
6
6
  interface CreateDataCollectionSignature {
@@ -121,12 +121,30 @@ interface DeleteDataCollectionFieldSignature {
121
121
  */
122
122
  (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>>;
123
123
  }
124
+ declare function addDataCollectionPlugin$1(httpClient: HttpClient): AddDataCollectionPluginSignature;
125
+ interface AddDataCollectionPluginSignature {
126
+ /**
127
+ * Adds a plugin to a data collection.
128
+ * @param - ID of the data collection to update.
129
+ */
130
+ (dataCollectionId: string, options: NonNullablePaths<AddDataCollectionPluginOptions, `plugin` | `plugin.type`, 3>): Promise<NonNullablePaths<AddDataCollectionPluginResponse, `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>>;
131
+ }
132
+ declare function deleteDataCollectionPlugin$1(httpClient: HttpClient): DeleteDataCollectionPluginSignature;
133
+ interface DeleteDataCollectionPluginSignature {
134
+ /**
135
+ * Deletes a plugin from a data collection.
136
+ * @param - ID of the data collection to update.
137
+ */
138
+ (dataCollectionId: string, options: NonNullablePaths<DeleteDataCollectionPluginOptions, `pluginType`, 2>): Promise<NonNullablePaths<DeleteDataCollectionPluginResponse, `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>>;
139
+ }
124
140
  declare function patchDataCollectionField$1(httpClient: HttpClient): PatchDataCollectionFieldSignature;
125
141
  interface PatchDataCollectionFieldSignature {
126
142
  /**
127
143
  * Patches (partial update) a field in the structure of a data collection.
144
+ * @param - ID of the data collection to update.
145
+ * @param - Field to patch.
128
146
  */
129
- (identifiers: NonNullablePaths<PatchDataCollectionFieldIdentifiers, `dataCollectionId` | `fieldKey`, 2>, field: PatchDataCollectionField): 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>>;
147
+ (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>>;
130
148
  }
131
149
 
132
150
  declare const createDataCollection: MaybeContext<BuildRESTFunction<typeof createDataCollection$1> & typeof createDataCollection$1>;
@@ -141,6 +159,8 @@ declare const patchDataCollection: MaybeContext<BuildRESTFunction<typeof patchDa
141
159
  declare const createDataCollectionField: MaybeContext<BuildRESTFunction<typeof createDataCollectionField$1> & typeof createDataCollectionField$1>;
142
160
  declare const updateDataCollectionField: MaybeContext<BuildRESTFunction<typeof updateDataCollectionField$1> & typeof updateDataCollectionField$1>;
143
161
  declare const deleteDataCollectionField: MaybeContext<BuildRESTFunction<typeof deleteDataCollectionField$1> & typeof deleteDataCollectionField$1>;
162
+ declare const addDataCollectionPlugin: MaybeContext<BuildRESTFunction<typeof addDataCollectionPlugin$1> & typeof addDataCollectionPlugin$1>;
163
+ declare const deleteDataCollectionPlugin: MaybeContext<BuildRESTFunction<typeof deleteDataCollectionPlugin$1> & typeof deleteDataCollectionPlugin$1>;
144
164
  declare const patchDataCollectionField: MaybeContext<BuildRESTFunction<typeof patchDataCollectionField$1> & typeof patchDataCollectionField$1>;
145
165
 
146
- export { CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollection, PatchDataCollectionField, PatchDataCollectionFieldIdentifiers, PatchDataCollectionFieldResponse, PatchDataCollectionResponse, RestoreDataCollectionResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };
166
+ export { AddDataCollectionPluginOptions, AddDataCollectionPluginResponse, CreateDataCollectionFieldOptions, CreateDataCollectionFieldResponse, DataCollection, DeleteDataCollectionFieldOptions, DeleteDataCollectionFieldResponse, DeleteDataCollectionPluginOptions, DeleteDataCollectionPluginResponse, Field, GetDataCollectionOptions, ListDataCollectionsOptions, ListDataCollectionsResponse, PatchDataCollection, PatchDataCollectionFieldResponse, PatchDataCollectionResponse, RestoreDataCollectionResponse, UpdateDataCollectionFieldOptions, UpdateDataCollectionFieldResponse, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };
@@ -40,10 +40,12 @@ __export(index_exports, {
40
40
  TenantMode: () => TenantMode,
41
41
  Type: () => Type,
42
42
  WebhookIdentityType: () => WebhookIdentityType,
43
+ addDataCollectionPlugin: () => addDataCollectionPlugin4,
43
44
  createDataCollection: () => createDataCollection4,
44
45
  createDataCollectionField: () => createDataCollectionField4,
45
46
  deleteDataCollection: () => deleteDataCollection4,
46
47
  deleteDataCollectionField: () => deleteDataCollectionField4,
48
+ deleteDataCollectionPlugin: () => deleteDataCollectionPlugin4,
47
49
  getDataCollection: () => getDataCollection4,
48
50
  listDataCollections: () => listDataCollections4,
49
51
  patchDataCollection: () => patchDataCollection4,
@@ -849,6 +851,76 @@ function deleteDataCollectionField(payload) {
849
851
  }
850
852
  return __deleteDataCollectionField;
851
853
  }
854
+ function addDataCollectionPlugin(payload) {
855
+ function __addDataCollectionPlugin({ host }) {
856
+ const metadata = {
857
+ entityFqdn: "wix.data.v2.data_collection",
858
+ method: "POST",
859
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin",
860
+ packageName: PACKAGE_NAME,
861
+ migrationOptions: {
862
+ optInTransformResponse: true
863
+ },
864
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
865
+ { protoPath: "/v2/collections/add-plugin", data: payload, host }
866
+ ),
867
+ data: payload,
868
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
869
+ {
870
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
871
+ paths: [
872
+ { path: "dataCollection.createdDate" },
873
+ { path: "dataCollection.updatedDate" }
874
+ ]
875
+ },
876
+ {
877
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
878
+ paths: [
879
+ { path: "dataCollection.fields.numberRange.min" },
880
+ { path: "dataCollection.fields.numberRange.max" }
881
+ ]
882
+ }
883
+ ])
884
+ };
885
+ return metadata;
886
+ }
887
+ return __addDataCollectionPlugin;
888
+ }
889
+ function deleteDataCollectionPlugin(payload) {
890
+ function __deleteDataCollectionPlugin({ host }) {
891
+ const metadata = {
892
+ entityFqdn: "wix.data.v2.data_collection",
893
+ method: "POST",
894
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin",
895
+ packageName: PACKAGE_NAME,
896
+ migrationOptions: {
897
+ optInTransformResponse: true
898
+ },
899
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
900
+ { protoPath: "/v2/collections/delete-plugin", data: payload, host }
901
+ ),
902
+ data: payload,
903
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
904
+ {
905
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
906
+ paths: [
907
+ { path: "dataCollection.createdDate" },
908
+ { path: "dataCollection.updatedDate" }
909
+ ]
910
+ },
911
+ {
912
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
913
+ paths: [
914
+ { path: "dataCollection.fields.numberRange.min" },
915
+ { path: "dataCollection.fields.numberRange.max" }
916
+ ]
917
+ }
918
+ ])
919
+ };
920
+ return metadata;
921
+ }
922
+ return __deleteDataCollectionPlugin;
923
+ }
852
924
  function patchDataCollectionField(payload) {
853
925
  function __patchDataCollectionField({ host }) {
854
926
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -866,7 +938,7 @@ function patchDataCollectionField(payload) {
866
938
  ]);
867
939
  const metadata = {
868
940
  entityFqdn: "wix.data.v2.data_collection",
869
- method: "PATCH",
941
+ method: "POST",
870
942
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
871
943
  packageName: PACKAGE_NAME,
872
944
  migrationOptions: {
@@ -874,7 +946,7 @@ function patchDataCollectionField(payload) {
874
946
  },
875
947
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
876
948
  {
877
- protoPath: "/v2/collections/{dataCollectionId}/fields/{field.key}",
949
+ protoPath: "/v2/collections/{dataCollectionId}/patch-field",
878
950
  data: serializedData,
879
951
  host
880
952
  }
@@ -1372,13 +1444,13 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
1372
1444
  throw transformedError;
1373
1445
  }
1374
1446
  }
1375
- async function patchDataCollectionField2(identifiers, field) {
1447
+ async function addDataCollectionPlugin2(dataCollectionId, options) {
1376
1448
  const { httpClient, sideEffects } = arguments[2];
1377
1449
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1378
- dataCollectionId: identifiers?.dataCollectionId,
1379
- field: { ...field, key: identifiers?.fieldKey }
1450
+ dataCollectionId,
1451
+ plugin: options?.plugin
1380
1452
  });
1381
- const reqOpts = patchDataCollectionField(payload);
1453
+ const reqOpts = addDataCollectionPlugin(payload);
1382
1454
  sideEffects?.onSiteCall?.();
1383
1455
  try {
1384
1456
  const result = await httpClient.request(reqOpts);
@@ -1388,14 +1460,69 @@ async function patchDataCollectionField2(identifiers, field) {
1388
1460
  const transformedError = (0, import_transform_error.transformError)(
1389
1461
  err,
1390
1462
  {
1391
- spreadPathsToArguments: { field: "$[1]" },
1463
+ spreadPathsToArguments: {},
1464
+ explicitPathsToArguments: {
1465
+ dataCollectionId: "$[0]",
1466
+ plugin: "$[1].plugin"
1467
+ },
1468
+ singleArgumentUnchanged: false
1469
+ },
1470
+ ["dataCollectionId", "options"]
1471
+ );
1472
+ sideEffects?.onError?.(err);
1473
+ throw transformedError;
1474
+ }
1475
+ }
1476
+ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
1477
+ const { httpClient, sideEffects } = arguments[2];
1478
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1479
+ dataCollectionId,
1480
+ pluginType: options?.pluginType
1481
+ });
1482
+ const reqOpts = deleteDataCollectionPlugin(payload);
1483
+ sideEffects?.onSiteCall?.();
1484
+ try {
1485
+ const result = await httpClient.request(reqOpts);
1486
+ sideEffects?.onSuccess?.(result);
1487
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1488
+ } catch (err) {
1489
+ const transformedError = (0, import_transform_error.transformError)(
1490
+ err,
1491
+ {
1492
+ spreadPathsToArguments: {},
1392
1493
  explicitPathsToArguments: {
1393
- dataCollectionId: "$[0].dataCollectionId",
1394
- "field.key": "$[0].fieldKey"
1494
+ dataCollectionId: "$[0]",
1495
+ pluginType: "$[1].pluginType"
1395
1496
  },
1396
1497
  singleArgumentUnchanged: false
1397
1498
  },
1398
- ["identifiers", "field"]
1499
+ ["dataCollectionId", "options"]
1500
+ );
1501
+ sideEffects?.onError?.(err);
1502
+ throw transformedError;
1503
+ }
1504
+ }
1505
+ async function patchDataCollectionField2(dataCollectionId, field) {
1506
+ const { httpClient, sideEffects } = arguments[2];
1507
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1508
+ dataCollectionId,
1509
+ field
1510
+ });
1511
+ const reqOpts = patchDataCollectionField(payload);
1512
+ sideEffects?.onSiteCall?.();
1513
+ try {
1514
+ const result = await httpClient.request(reqOpts);
1515
+ sideEffects?.onSuccess?.(result);
1516
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1517
+ } catch (err) {
1518
+ const transformedError = (0, import_transform_error.transformError)(
1519
+ err,
1520
+ {
1521
+ spreadPathsToArguments: {},
1522
+ explicitPathsToArguments: { dataCollectionId: "$[0]", field: "$[1]" },
1523
+ singleArgumentUnchanged: false
1524
+ },
1525
+ ["dataCollectionId", "field"]
1399
1526
  );
1400
1527
  sideEffects?.onError?.(err);
1401
1528
  throw transformedError;
@@ -1478,9 +1605,25 @@ function deleteDataCollectionField3(httpClient) {
1478
1605
  { httpClient }
1479
1606
  );
1480
1607
  }
1608
+ function addDataCollectionPlugin3(httpClient) {
1609
+ return (dataCollectionId, options) => addDataCollectionPlugin2(
1610
+ dataCollectionId,
1611
+ options,
1612
+ // @ts-ignore
1613
+ { httpClient }
1614
+ );
1615
+ }
1616
+ function deleteDataCollectionPlugin3(httpClient) {
1617
+ return (dataCollectionId, options) => deleteDataCollectionPlugin2(
1618
+ dataCollectionId,
1619
+ options,
1620
+ // @ts-ignore
1621
+ { httpClient }
1622
+ );
1623
+ }
1481
1624
  function patchDataCollectionField3(httpClient) {
1482
- return (identifiers, field) => patchDataCollectionField2(
1483
- identifiers,
1625
+ return (dataCollectionId, field) => patchDataCollectionField2(
1626
+ dataCollectionId,
1484
1627
  field,
1485
1628
  // @ts-ignore
1486
1629
  { httpClient }
@@ -1499,6 +1642,8 @@ var patchDataCollection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTMo
1499
1642
  var createDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDataCollectionField3);
1500
1643
  var updateDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateDataCollectionField3);
1501
1644
  var deleteDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDataCollectionField3);
1645
+ var addDataCollectionPlugin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addDataCollectionPlugin3);
1646
+ var deleteDataCollectionPlugin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDataCollectionPlugin3);
1502
1647
  var patchDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(patchDataCollectionField3);
1503
1648
  // Annotate the CommonJS export names for ESM import in node:
1504
1649
  0 && (module.exports = {
@@ -1522,10 +1667,12 @@ var patchDataCollectionField4 = /* @__PURE__ */ (0, import_rest_modules3.createR
1522
1667
  TenantMode,
1523
1668
  Type,
1524
1669
  WebhookIdentityType,
1670
+ addDataCollectionPlugin,
1525
1671
  createDataCollection,
1526
1672
  createDataCollectionField,
1527
1673
  deleteDataCollection,
1528
1674
  deleteDataCollectionField,
1675
+ deleteDataCollectionPlugin,
1529
1676
  getDataCollection,
1530
1677
  listDataCollections,
1531
1678
  patchDataCollection,