-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add getEntriesData endpoint #227
base: main
Are you sure you want to change the base?
Conversation
import {ACCESS_DENIED_ERROR_CODE, NOT_FOUND_ERROR_CODE} from './constants'; | ||
|
||
export type GetEntriesDataResponseItemResult = { | ||
scope: Nullable<EntryScope>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have nullable type in our Entry model
Can it really be null?
@@ -11,10 +11,10 @@ export interface DLSConstructor { | |||
checkPermissionsArgs: MT.CheckPermissionDlsConfig, | |||
) => Promise<any>; | |||
|
|||
checkBulkPermission( | |||
checkBulkPermission<E extends object>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should probably be {entryId: string} not object
But we have some usages where entity type is {entryId?: string}
checkWorkbookPermissionById({ | ||
ctx, | ||
workbookId, | ||
permission: WorkbookPermission.View, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it must be like this?
permission: isEnabledFeature(ctx, Feature.UseLimitedView)
? WorkbookPermission.LimitedView
: WorkbookPermission.View,
Must be merged in following order: