@wix/auto_sdk_data_collections 1.0.44 → 1.0.46

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 +6 -4
  2. package/build/cjs/index.js +10 -13
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +14 -80
  5. package/build/cjs/index.typings.js +8 -11
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +6 -3
  8. package/build/cjs/meta.js +6 -9
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +6 -4
  11. package/build/es/index.mjs +10 -13
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +14 -80
  14. package/build/es/index.typings.mjs +8 -11
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +6 -3
  17. package/build/es/meta.mjs +6 -9
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +7 -5
  20. package/build/internal/cjs/index.js +10 -13
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +15 -82
  23. package/build/internal/cjs/index.typings.js +8 -11
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +6 -3
  26. package/build/internal/cjs/meta.js +6 -9
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +7 -5
  29. package/build/internal/es/index.mjs +10 -13
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +15 -82
  32. package/build/internal/es/index.typings.mjs +8 -11
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +6 -3
  35. package/build/internal/es/meta.mjs +6 -9
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -583,6 +583,7 @@ declare enum Role {
583
583
  }
584
584
  /** @enumType */
585
585
  type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'ADMIN' | 'SITE_MEMBER_AUTHOR' | 'SITE_MEMBER' | 'ANYONE';
586
+ /** Plugins that extend collection functionality. */
586
587
  interface Plugin extends PluginOptionsOneOf {
587
588
  /**
588
589
  * Options for the Publish plugin.
@@ -1100,7 +1101,10 @@ interface AddDataCollectionPluginRequest {
1100
1101
  * @maxLength 256
1101
1102
  */
1102
1103
  dataCollectionId: string;
1103
- /** Plugin to add. */
1104
+ /**
1105
+ * Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
1106
+ * If a plugin of the same type already exists, this operation will fail.
1107
+ */
1104
1108
  plugin: Plugin;
1105
1109
  }
1106
1110
  interface AddDataCollectionPluginResponse {
@@ -1892,7 +1896,10 @@ interface DeleteDataCollectionFieldOptions {
1892
1896
  */
1893
1897
  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
1898
  interface AddDataCollectionPluginOptions {
1895
- /** Plugin to add. */
1899
+ /**
1900
+ * Plugin to add to the collection. Must include the plugin type and any type-specific configuration.
1901
+ * If a plugin of the same type already exists, this operation will fail.
1902
+ */
1896
1903
  plugin: Plugin;
1897
1904
  }
1898
1905
  /**
@@ -1914,89 +1921,16 @@ interface DeleteDataCollectionPluginOptions {
1914
1921
  }
1915
1922
  /**
1916
1923
  * Patches (partial update) a field in the structure of a data collection.
1924
+ * @param dataCollectionId - ID of the data collection to update.
1925
+ * @param field - Field to patch.
1917
1926
  * @public
1918
1927
  * @documentationMaturity preview
1928
+ * @requiredField dataCollectionId
1919
1929
  * @requiredField field
1920
- * @requiredField identifiers
1921
- * @requiredField identifiers.dataCollectionId
1922
- * @requiredField identifiers.fieldKey
1923
1930
  * @permissionId WIX_DATA.UPDATE_COLLECTION_FIELD
1924
1931
  * @applicableIdentity APP
1925
1932
  * @fqn com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField
1926
1933
  */
1927
- declare function patchDataCollectionField(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>>;
1928
- interface PatchDataCollectionFieldIdentifiers {
1929
- /**
1930
- * ID of the data collection to update.
1931
- * @maxLength 256
1932
- */
1933
- dataCollectionId: string;
1934
- /**
1935
- * Unique identifier for the field. For example, `firstName`.
1936
- * @maxLength 1000
1937
- */
1938
- fieldKey?: string;
1939
- }
1940
- interface PatchDataCollectionField {
1941
- /** Range of possible values for a numerical field. */
1942
- numberRange?: NumberRange;
1943
- /** Length range permitted for a text field. Relevant for fields that hold strings, such as those of type `TEXT` or `RICH_TEXT`. */
1944
- stringLengthRange?: StringLengthRange;
1945
- /** Array size range permitted. Relevant for fields that hold arrays, such as those of type `ARRAY`, `ARRAY_STRING`, or `ARRAY_DOCUMENT`. */
1946
- arraySizeRange?: ArraySizeRange;
1947
- /**
1948
- * Field's display name when displayed in the CMS. For example, `First Name`.
1949
- * @maxLength 1000
1950
- */
1951
- displayName?: string | null;
1952
- /**
1953
- * Field's data type.
1954
- *
1955
- * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
1956
- */
1957
- type?: TypeWithLiterals;
1958
- /** Metadata for complex data types. This property only exists for references, multi-references, objects, and arrays. */
1959
- typeMetadata?: TypeMetadata;
1960
- /**
1961
- * Whether the field is a system field.
1962
- * @readonly
1963
- */
1964
- systemField?: boolean;
1965
- /**
1966
- * Capabilities the field supports.
1967
- * @readonly
1968
- */
1969
- capabilities?: FieldCapabilities;
1970
- /** Whether the field is encrypted. */
1971
- encrypted?: boolean;
1972
- /**
1973
- * Field description.
1974
- * @maxLength 16000
1975
- */
1976
- description?: string | null;
1977
- /**
1978
- * Whether the field is read-only. A read-only field can't be changed.
1979
- *
1980
- * Default: `false`
1981
- */
1982
- readOnly?: boolean | null;
1983
- /**
1984
- * Whether the field is immutable. An immutable field can be set once, but then cannot be updated.
1985
- *
1986
- * Default: `false`
1987
- */
1988
- immutable?: boolean | null;
1989
- /**
1990
- * Whether the field is required.
1991
- *
1992
- * Default: `false`
1993
- */
1994
- required?: boolean | null;
1995
- /**
1996
- * Additional optional plugins for the field.
1997
- * @maxSize 100
1998
- */
1999
- plugins?: FieldPlugin[];
2000
- }
1934
+ declare function patchDataCollectionField(dataCollectionId: string, field: Field): Promise<NonNullablePaths<PatchDataCollectionFieldResponse, `dataCollection._id` | `dataCollection.collectionType` | `dataCollection.defaultDisplayOrder.fieldKey` | `dataCollection.defaultDisplayOrder.direction` | `dataCollection.capabilities.dataOperations` | `dataCollection.capabilities.collectionOperations` | `dataCollection.capabilities.indexLimits.regular` | `dataCollection.capabilities.indexLimits.unique` | `dataCollection.capabilities.indexLimits.total` | `dataCollection.fields` | `dataCollection.fields.${number}.key` | `dataCollection.fields.${number}.type` | `dataCollection.fields.${number}.typeMetadata.reference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencedCollectionId` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingFieldKey` | `dataCollection.fields.${number}.typeMetadata.multiReference.referencingDisplayName` | `dataCollection.fields.${number}.typeMetadata.array.elementType` | `dataCollection.fields.${number}.systemField` | `dataCollection.fields.${number}.capabilities.sortable` | `dataCollection.fields.${number}.encrypted` | `dataCollection.permissions.insert` | `dataCollection.permissions.update` | `dataCollection.permissions.remove` | `dataCollection.permissions.read` | `dataCollection.plugins` | `dataCollection.plugins.${number}.publishOptions.defaultStatus` | `dataCollection.plugins.${number}.singleItemOptions.singleItemId` | `dataCollection.plugins.${number}.urlizedOptions.format` | `dataCollection.plugins.${number}.editablePageLinkOptions.isPersisted` | `dataCollection.plugins.${number}.editablePageLinkOptions.isMutable` | `dataCollection.plugins.${number}.type` | `dataCollection.pagingModes`, 7>>;
2001
1935
 
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 };
1936
+ export { AccessLevel, type AccessLevelWithLiterals, type ActionEvent, type AddDataCollectionPluginOptions, type AddDataCollectionPluginRequest, type AddDataCollectionPluginResponse, type AllowedDataPermissions, type AppOptions, type ApplicationError, type ArraySizeRange, type BulkGetDataCollectionsPageBySnapshotsRequest, type BulkGetDataCollectionsPageBySnapshotsRequestTenantModeOptionsOneOf, type BulkGetDataCollectionsPageBySnapshotsResponse, type BulkGetDataCollectionsRequest, type BulkGetDataCollectionsResponse, type Calculator, type CalculatorPatternOneOf, type CatalogOptions, type CmsOptions, type CollectionCapabilities, type CollectionDefinition, CollectionOperation, type CollectionOperationWithLiterals, CollectionType, type CollectionTypeWithLiterals, type CreateAppCollectionsSnapshotRequest, type CreateAppCollectionsSnapshotResponse, type CreateDataCollectionFieldOptions, type CreateDataCollectionFieldRequest, type CreateDataCollectionFieldResponse, type CreateDataCollectionRequest, type CreateDataCollectionResponse, type CreateDataCollectionsSnapshotRequest, type CreateDataCollectionsSnapshotResponse, type CreateMigratedCollectionsSnapshotRequest, type CreateMigratedCollectionsSnapshotResponse, type DataCollection, type DataCollectionChangedEvent, type DataCollectionClonedEvent, type DataCollectionEvictedEvent, DataOperation, type DataOperationWithLiterals, type DataPermissions, type DeleteDataCollectionFieldOptions, type DeleteDataCollectionFieldRequest, type DeleteDataCollectionFieldResponse, type DeleteDataCollectionPluginOptions, type DeleteDataCollectionPluginRequest, type DeleteDataCollectionPluginResponse, type DeleteDataCollectionRequest, type DeleteDataCollectionResponse, type DeleteDataCollectionsSnapshotRequest, type DeleteDataCollectionsSnapshotResponse, type Destination, Direction, type DirectionWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedCollection, type Failure, type Field, type FieldCapabilities, type FieldPlugin, type FieldPluginOptionsOneOf, FieldPluginType, type FieldPluginTypeWithLiterals, type FieldRangeValidationsOneOf, type FieldUpdate, type FieldsPattern, Format, type FormatWithLiterals, type GetDataCollectionOptions, type GetDataCollectionRequest, type GetDataCollectionResponse, type IdentificationData, type IdentificationDataIdOneOf, type Index, type IndexField, type IndexLimits, type IndexQuotaLimits, IndexSource, type IndexSourceWithLiterals, IndexStatus, type IndexStatusWithLiterals, type ListDataCollectionsOptions, type ListDataCollectionsRequest, type ListDataCollectionsResponse, type MessageEnvelope, type MultiReference, type MultilingualOptions, type NumberRange, type ObjectField, Order, type OrderWithLiterals, type PageLink, type PageLinkPluginOptions, type Paging, type PagingMetadataV2, PagingMode, type PagingModeWithLiterals, type PatchDataCollection, type PatchDataCollectionFieldRequest, type PatchDataCollectionFieldResponse, type PatchDataCollectionRequest, type PatchDataCollectionResponse, type Permissions, type Plugin, type PluginCmsOptions, type PluginOptionsOneOf, PluginType, type PluginTypeWithLiterals, type PluginUpdate, type PublishPluginOptions, QueryOperator, type QueryOperatorWithLiterals, type Reference, type RestorationCollection, type RestoreDataCollectionRequest, type RestoreDataCollectionResponse, type RestoreDataCollectionsFromSnapshotRequest, type RestoreDataCollectionsFromSnapshotResponse, type RestoreInfo, Role, type RoleWithLiterals, Segment, type SegmentWithLiterals, type SingleItemPluginOptions, type SiteSort, type Slug, type SnapshotCollection, type Sort, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StringLengthRange, TenantMode, type TenantModeWithLiterals, Type, type TypeMetadata, type TypeMetadataMetadataOneOf, type TypeWithLiterals, type UpdateDataCollectionFieldOptions, type UpdateDataCollectionFieldRequest, type UpdateDataCollectionFieldResponse, type UpdateDataCollectionRequest, type UpdateDataCollectionResponse, type UpdateDataPermissionsRequest, type UpdateDataPermissionsResponse, type UrlizedOnlyPattern, type UrlizedPluginOptions, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type _Array, type _Object, addDataCollectionPlugin, createDataCollection, createDataCollectionField, deleteDataCollection, deleteDataCollectionField, deleteDataCollectionPlugin, getDataCollection, listDataCollections, patchDataCollectionField, updateDataCollection, updateDataCollectionField };
@@ -938,7 +938,7 @@ function patchDataCollectionField(payload) {
938
938
  ]);
939
939
  const metadata = {
940
940
  entityFqdn: "wix.data.v2.data_collection",
941
- method: "PATCH",
941
+ method: "POST",
942
942
  methodFqn: "com.wixpress.cloud.data.api.collectionservice.DataCollectionService.PatchDataCollectionField",
943
943
  packageName: PACKAGE_NAME,
944
944
  migrationOptions: {
@@ -946,7 +946,7 @@ function patchDataCollectionField(payload) {
946
946
  },
947
947
  url: resolveComWixpressCloudDataApiCollectionserviceDataCollectionServiceUrl(
948
948
  {
949
- protoPath: "/v2/collections/{dataCollectionId}/fields/{field.key}",
949
+ protoPath: "/v2/collections/{dataCollectionId}/patch-field",
950
950
  data: serializedData,
951
951
  host
952
952
  }
@@ -1502,11 +1502,11 @@ async function deleteDataCollectionPlugin2(dataCollectionId, options) {
1502
1502
  throw transformedError;
1503
1503
  }
1504
1504
  }
1505
- async function patchDataCollectionField2(identifiers, field) {
1505
+ async function patchDataCollectionField2(dataCollectionId, field) {
1506
1506
  const { httpClient, sideEffects } = arguments[2];
1507
1507
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1508
- dataCollectionId: identifiers?.dataCollectionId,
1509
- field: { ...field, key: identifiers?.fieldKey }
1508
+ dataCollectionId,
1509
+ field
1510
1510
  });
1511
1511
  const reqOpts = patchDataCollectionField(payload);
1512
1512
  sideEffects?.onSiteCall?.();
@@ -1518,14 +1518,11 @@ async function patchDataCollectionField2(identifiers, field) {
1518
1518
  const transformedError = (0, import_transform_error.transformError)(
1519
1519
  err,
1520
1520
  {
1521
- spreadPathsToArguments: { field: "$[1]" },
1522
- explicitPathsToArguments: {
1523
- dataCollectionId: "$[0].dataCollectionId",
1524
- "field.key": "$[0].fieldKey"
1525
- },
1521
+ spreadPathsToArguments: {},
1522
+ explicitPathsToArguments: { dataCollectionId: "$[0]", field: "$[1]" },
1526
1523
  singleArgumentUnchanged: false
1527
1524
  },
1528
- ["identifiers", "field"]
1525
+ ["dataCollectionId", "field"]
1529
1526
  );
1530
1527
  sideEffects?.onError?.(err);
1531
1528
  throw transformedError;