@wix/auto_sdk_data_collections 1.0.43 → 1.0.44

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 +21 -3
  2. package/build/cjs/index.js +150 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +62 -1
  5. package/build/cjs/index.typings.js +132 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +30 -2
  8. package/build/cjs/meta.js +110 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +21 -3
  11. package/build/es/index.mjs +148 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +62 -1
  14. package/build/es/index.typings.mjs +130 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +30 -2
  17. package/build/es/meta.mjs +108 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +21 -3
  20. package/build/internal/cjs/index.js +150 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +62 -1
  23. package/build/internal/cjs/index.typings.js +132 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +30 -2
  26. package/build/internal/cjs/meta.js +110 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +21 -3
  29. package/build/internal/es/index.mjs +148 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +62 -1
  32. package/build/internal/es/index.typings.mjs +130 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +30 -2
  35. package/build/internal/es/meta.mjs +108 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1125,6 +1125,32 @@ interface DeleteDataCollectionFieldResponse {
1125
1125
  /** Updated data collection. */
1126
1126
  dataCollection?: DataCollection;
1127
1127
  }
1128
+ interface AddDataCollectionPluginRequest {
1129
+ /**
1130
+ * ID of the data collection to update.
1131
+ * @maxLength 256
1132
+ */
1133
+ dataCollectionId: string;
1134
+ /** Plugin to add. */
1135
+ plugin: Plugin;
1136
+ }
1137
+ interface AddDataCollectionPluginResponse {
1138
+ /** Updated data collection. */
1139
+ dataCollection?: DataCollection;
1140
+ }
1141
+ interface DeleteDataCollectionPluginRequest {
1142
+ /**
1143
+ * ID of the data collection to update.
1144
+ * @maxLength 256
1145
+ */
1146
+ dataCollectionId: string;
1147
+ /** Plugin type to remove. */
1148
+ pluginType: PluginTypeWithLiterals;
1149
+ }
1150
+ interface DeleteDataCollectionPluginResponse {
1151
+ /** Updated data collection. */
1152
+ dataCollection?: DataCollection;
1153
+ }
1128
1154
  interface PatchDataCollectionFieldRequest {
1129
1155
  /**
1130
1156
  * ID of the data collection to update.
@@ -1929,6 +1955,41 @@ interface DeleteDataCollectionFieldOptions {
1929
1955
  */
1930
1956
  fieldKey: string;
1931
1957
  }
1958
+ /**
1959
+ * Adds a plugin to a data collection.
1960
+ * @param dataCollectionId - ID of the data collection to update.
1961
+ * @public
1962
+ * @documentationMaturity preview
1963
+ * @requiredField dataCollectionId
1964
+ * @requiredField options
1965
+ * @requiredField options.plugin
1966
+ * @requiredField options.plugin.type
1967
+ * @permissionId WIX_DATA.UPDATE_COLLECTION
1968
+ * @applicableIdentity APP
1969
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin
1970
+ */
1971
+ declare function addDataCollectionPlugin(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>>;
1972
+ interface AddDataCollectionPluginOptions {
1973
+ /** Plugin to add. */
1974
+ plugin: Plugin;
1975
+ }
1976
+ /**
1977
+ * Deletes a plugin from a data collection.
1978
+ * @param dataCollectionId - ID of the data collection to update.
1979
+ * @public
1980
+ * @documentationMaturity preview
1981
+ * @requiredField dataCollectionId
1982
+ * @requiredField options
1983
+ * @requiredField options.pluginType
1984
+ * @permissionId WIX_DATA.UPDATE_COLLECTION
1985
+ * @applicableIdentity APP
1986
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin
1987
+ */
1988
+ declare function deleteDataCollectionPlugin(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>>;
1989
+ interface DeleteDataCollectionPluginOptions {
1990
+ /** Plugin type to remove. */
1991
+ pluginType: PluginTypeWithLiterals;
1992
+ }
1932
1993
  /**
1933
1994
  * Patches (partial update) a field in the structure of a data collection.
1934
1995
  * @public
@@ -2016,4 +2077,4 @@ interface PatchDataCollectionField {
2016
2077
  plugins?: FieldPlugin[];
2017
2078
  }
2018
2079
 
2019
- export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, 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 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 PatchDataCollectionField, type PatchDataCollectionFieldIdentifiers, 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, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, getDataCollection, listDataCollections, patchDataCollection, patchDataCollectionField, restoreDataCollection, updateDataCollection, updateDataCollectionField };
2080
+ 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 PatchDataCollectionField, type PatchDataCollectionFieldIdentifiers, 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 };
@@ -796,6 +796,76 @@ function deleteDataCollectionField(payload) {
796
796
  }
797
797
  return __deleteDataCollectionField;
798
798
  }
799
+ function addDataCollectionPlugin(payload) {
800
+ function __addDataCollectionPlugin({ host }) {
801
+ const metadata = {
802
+ entityFqdn: "wix.data.v2.data_collection",
803
+ method: "POST",
804
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin",
805
+ packageName: PACKAGE_NAME,
806
+ migrationOptions: {
807
+ optInTransformResponse: true
808
+ },
809
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
810
+ { protoPath: "/v2/collections/add-plugin", data: payload, host }
811
+ ),
812
+ data: payload,
813
+ transformResponse: (payload2) => transformPaths(payload2, [
814
+ {
815
+ transformFn: transformRESTTimestampToSDKTimestamp,
816
+ paths: [
817
+ { path: "dataCollection.createdDate" },
818
+ { path: "dataCollection.updatedDate" }
819
+ ]
820
+ },
821
+ {
822
+ transformFn: transformRESTFloatToSDKFloat,
823
+ paths: [
824
+ { path: "dataCollection.fields.numberRange.min" },
825
+ { path: "dataCollection.fields.numberRange.max" }
826
+ ]
827
+ }
828
+ ])
829
+ };
830
+ return metadata;
831
+ }
832
+ return __addDataCollectionPlugin;
833
+ }
834
+ function deleteDataCollectionPlugin(payload) {
835
+ function __deleteDataCollectionPlugin({ host }) {
836
+ const metadata = {
837
+ entityFqdn: "wix.data.v2.data_collection",
838
+ method: "POST",
839
+ methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin",
840
+ packageName: PACKAGE_NAME,
841
+ migrationOptions: {
842
+ optInTransformResponse: true
843
+ },
844
+ url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
845
+ { protoPath: "/v2/collections/delete-plugin", data: payload, host }
846
+ ),
847
+ data: payload,
848
+ transformResponse: (payload2) => transformPaths(payload2, [
849
+ {
850
+ transformFn: transformRESTTimestampToSDKTimestamp,
851
+ paths: [
852
+ { path: "dataCollection.createdDate" },
853
+ { path: "dataCollection.updatedDate" }
854
+ ]
855
+ },
856
+ {
857
+ transformFn: transformRESTFloatToSDKFloat,
858
+ paths: [
859
+ { path: "dataCollection.fields.numberRange.min" },
860
+ { path: "dataCollection.fields.numberRange.max" }
861
+ ]
862
+ }
863
+ ])
864
+ };
865
+ return metadata;
866
+ }
867
+ return __deleteDataCollectionPlugin;
868
+ }
799
869
  function patchDataCollectionField(payload) {
800
870
  function __patchDataCollectionField({ host }) {
801
871
  const serializedData = transformPaths(payload, [
@@ -1319,6 +1389,64 @@ async function deleteDataCollectionField2(dataCollectionId, options) {
1319
1389
  throw transformedError;
1320
1390
  }
1321
1391
  }
1392
+ async function addDataCollectionPlugin2(dataCollectionId, options) {
1393
+ const { httpClient, sideEffects } = arguments[2];
1394
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1395
+ dataCollectionId,
1396
+ plugin: options?.plugin
1397
+ });
1398
+ const reqOpts = addDataCollectionPlugin(payload);
1399
+ sideEffects?.onSiteCall?.();
1400
+ try {
1401
+ const result = await httpClient.request(reqOpts);
1402
+ sideEffects?.onSuccess?.(result);
1403
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1404
+ } catch (err) {
1405
+ const transformedError = sdkTransformError(
1406
+ err,
1407
+ {
1408
+ spreadPathsToArguments: {},
1409
+ explicitPathsToArguments: {
1410
+ dataCollectionId: "$[0]",
1411
+ plugin: "$[1].plugin"
1412
+ },
1413
+ singleArgumentUnchanged: false
1414
+ },
1415
+ ["dataCollectionId", "options"]
1416
+ );
1417
+ sideEffects?.onError?.(err);
1418
+ throw transformedError;
1419
+ }
1420
+ }
1421
+ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
1422
+ const { httpClient, sideEffects } = arguments[2];
1423
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1424
+ dataCollectionId,
1425
+ pluginType: options?.pluginType
1426
+ });
1427
+ const reqOpts = deleteDataCollectionPlugin(payload);
1428
+ sideEffects?.onSiteCall?.();
1429
+ try {
1430
+ const result = await httpClient.request(reqOpts);
1431
+ sideEffects?.onSuccess?.(result);
1432
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1433
+ } catch (err) {
1434
+ const transformedError = sdkTransformError(
1435
+ err,
1436
+ {
1437
+ spreadPathsToArguments: {},
1438
+ explicitPathsToArguments: {
1439
+ dataCollectionId: "$[0]",
1440
+ pluginType: "$[1].pluginType"
1441
+ },
1442
+ singleArgumentUnchanged: false
1443
+ },
1444
+ ["dataCollectionId", "options"]
1445
+ );
1446
+ sideEffects?.onError?.(err);
1447
+ throw transformedError;
1448
+ }
1449
+ }
1322
1450
  async function patchDataCollectionField2(identifiers, field) {
1323
1451
  const { httpClient, sideEffects } = arguments[2];
1324
1452
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -1369,10 +1497,12 @@ export {
1369
1497
  TenantMode,
1370
1498
  Type,
1371
1499
  WebhookIdentityType,
1500
+ addDataCollectionPlugin2 as addDataCollectionPlugin,
1372
1501
  createDataCollection2 as createDataCollection,
1373
1502
  createDataCollectionField2 as createDataCollectionField,
1374
1503
  deleteDataCollection2 as deleteDataCollection,
1375
1504
  deleteDataCollectionField2 as deleteDataCollectionField,
1505
+ deleteDataCollectionPlugin2 as deleteDataCollectionPlugin,
1376
1506
  getDataCollection2 as getDataCollection,
1377
1507
  listDataCollections2 as listDataCollections,
1378
1508
  patchDataCollection2 as patchDataCollection,