@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
@@ -1094,6 +1094,32 @@ interface DeleteDataCollectionFieldResponse {
1094
1094
  /** Updated data collection. */
1095
1095
  dataCollection?: DataCollection;
1096
1096
  }
1097
+ interface AddDataCollectionPluginRequest {
1098
+ /**
1099
+ * ID of the data collection to update.
1100
+ * @maxLength 256
1101
+ */
1102
+ dataCollectionId: string;
1103
+ /** Plugin to add. */
1104
+ plugin: Plugin;
1105
+ }
1106
+ interface AddDataCollectionPluginResponse {
1107
+ /** Updated data collection. */
1108
+ dataCollection?: DataCollection;
1109
+ }
1110
+ interface DeleteDataCollectionPluginRequest {
1111
+ /**
1112
+ * ID of the data collection to update.
1113
+ * @maxLength 256
1114
+ */
1115
+ dataCollectionId: string;
1116
+ /** Plugin type to remove. */
1117
+ pluginType: PluginTypeWithLiterals;
1118
+ }
1119
+ interface DeleteDataCollectionPluginResponse {
1120
+ /** Updated data collection. */
1121
+ dataCollection?: DataCollection;
1122
+ }
1097
1123
  interface PatchDataCollectionFieldRequest {
1098
1124
  /**
1099
1125
  * ID of the data collection to update.
@@ -1851,6 +1877,41 @@ interface DeleteDataCollectionFieldOptions {
1851
1877
  */
1852
1878
  fieldKey: string;
1853
1879
  }
1880
+ /**
1881
+ * Adds a plugin to a data collection.
1882
+ * @param dataCollectionId - ID of the data collection to update.
1883
+ * @public
1884
+ * @documentationMaturity preview
1885
+ * @requiredField dataCollectionId
1886
+ * @requiredField options
1887
+ * @requiredField options.plugin
1888
+ * @requiredField options.plugin.type
1889
+ * @permissionId WIX_DATA.UPDATE_COLLECTION
1890
+ * @applicableIdentity APP
1891
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.AddDataCollectionPlugin
1892
+ */
1893
+ 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>>;
1894
+ interface AddDataCollectionPluginOptions {
1895
+ /** Plugin to add. */
1896
+ plugin: Plugin;
1897
+ }
1898
+ /**
1899
+ * Deletes a plugin from a data collection.
1900
+ * @param dataCollectionId - ID of the data collection to update.
1901
+ * @public
1902
+ * @documentationMaturity preview
1903
+ * @requiredField dataCollectionId
1904
+ * @requiredField options
1905
+ * @requiredField options.pluginType
1906
+ * @permissionId WIX_DATA.UPDATE_COLLECTION
1907
+ * @applicableIdentity APP
1908
+ * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.DeleteDataCollectionPlugin
1909
+ */
1910
+ 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>>;
1911
+ interface DeleteDataCollectionPluginOptions {
1912
+ /** Plugin type to remove. */
1913
+ pluginType: PluginTypeWithLiterals;
1914
+ }
1854
1915
  /**
1855
1916
  * Patches (partial update) a field in the structure of a data collection.
1856
1917
  * @public
@@ -1938,4 +1999,4 @@ interface PatchDataCollectionField {
1938
1999
  plugins?: FieldPlugin[];
1939
2000
  }
1940
2001
 
1941
- 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, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
2002
+ 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, patchDataCollectionField, 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,