Skip to content

Commit e87fb4a

Browse files
michaelphamcfclaude
andcommitted
fix: add DataAssemblyCollection alias and fix Fragment metadata type [DX-1004]
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89e52b0 commit e87fb4a

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

lib/entities/data-assembly.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import type { CursorPaginationParams, Link, MetadataProps } from '../common-types'
1+
import type {
2+
CursorPaginatedCollectionProp,
3+
CursorPaginationParams,
4+
Link,
5+
MetadataProps,
6+
} from '../common-types'
27
import { User } from './user'
38

49
export type DataAssemblyDataTypeField = {
@@ -98,3 +103,5 @@ export type UpdateDataAssemblyProps = DataAssemblyCommonProps & {
98103
export type DataAssemblyQueryOptions = CursorPaginationParams & {
99104
'sys.id[in]'?: string
100105
}
106+
107+
export type DataAssemblyCollection = CursorPaginatedCollectionProp<DataAssemblyProps>

lib/entities/fragment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Except } from 'type-fest'
22
import type {
33
CursorPaginatedCollectionProp,
44
CursorPaginationParams,
5-
ExoMetadataProps,
5+
ExperienceMetadataProps,
66
Link,
77
} from '../common-types'
88
import type {
@@ -50,7 +50,7 @@ export type FragmentProps = {
5050
designProperties: Record<string, DimensionedDesignPropertyValue>
5151
dimensionKeyMap: ExperienceDimensionKeyMap
5252
contentBindings?: ExperienceContentBindings
53-
metadata?: ExoMetadataProps
53+
metadata?: ExperienceMetadataProps
5454
slots?: Record<string, Array<TreeNode | FragmentNode | InlineFragmentNode>>
5555
}
5656

lib/export-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,4 @@ export type {
360360
export type { ComponentTypeCollection } from './entities/component-type'
361361
export type { TemplateCollection } from './entities/template'
362362
export type { ExperienceCollection } from './entities/experience'
363+
export type { DataAssemblyCollection } from './entities/data-assembly'

0 commit comments

Comments
 (0)