Skip to content

Commit

Permalink
fix: add raw data param for partial unpublish (#2529)
Browse files Browse the repository at this point in the history
  • Loading branch information
colomolo authored Jan 28, 2025
1 parent a9dc615 commit 6a938fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/plain/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ export type PlainClientAPI = {
rawData: EntryProps<T>
): Promise<EntryProps<T>>
unpublish<T extends KeyValueMap = KeyValueMap>(
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; locales?: string[] }>
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; locales?: string[] }>,
rawData?: EntryProps<T>
): Promise<EntryProps<T>>
archive<T extends KeyValueMap = KeyValueMap>(
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string }>
Expand Down Expand Up @@ -346,7 +347,8 @@ export type PlainClientAPI = {
rawData: AssetProps
): Promise<AssetProps>
unpublish(
params: OptionalDefaults<GetSpaceEnvironmentParams & { assetId: string; locales?: string[] }>
params: OptionalDefaults<GetSpaceEnvironmentParams & { assetId: string; locales?: string[] }>,
rawData?: AssetProps
): Promise<AssetProps>
archive(
params: OptionalDefaults<GetSpaceEnvironmentParams & { assetId: string }>
Expand Down

0 comments on commit 6a938fa

Please sign in to comment.