Skip to content

Commit

Permalink
feat: add publishedVersion to EntitySys (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanparmelee authored Dec 30, 2024
1 parent 10309fa commit 9a46714
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/types/sys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface EntitySys extends BaseSys {
locale?: string
contentSourceMaps?: CPAContentSourceMaps
contentSourceMapsLookup?: ContentSourceMapsLookup
publishedVersion: number
}
2 changes: 2 additions & 0 deletions test/types/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const entrySys: EntrySys = {
updatedAt: dateValue,
id: stringValue,
createdAt: dateValue,
publishedVersion: numberValue,
}

export const entryBasics = {
Expand Down Expand Up @@ -117,6 +118,7 @@ export const assetSys: AssetSys = {
updatedAt: dateValue,
id: stringValue,
createdAt: dateValue,
publishedVersion: numberValue,
}

export const assetBasics = {
Expand Down
2 changes: 2 additions & 0 deletions test/unit/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const tagSysMock: TagSys = {
updatedBy: { sys: copy(userLinkMock) },
space: { sys: copy(spaceLinkMock) },
environment: { sys: copy(environmentLinkMock) },
publishedVersion: 1,
}

const sysMock: EntrySys = {
Expand All @@ -78,6 +79,7 @@ const sysMock: EntrySys = {
space: { sys: copy(spaceLinkMock) },
contentType: { sys: copy(contentTypeLinkMock) },
environment: { sys: copy(environmentLinkMock) },
publishedVersion: 1,
}

const contentTypeMock: ContentType = {
Expand Down

0 comments on commit 9a46714

Please sign in to comment.