Replace @nda directive with resolver helper

Export and request-access already know visibility and
auth; a shared requireCompletedNDA call keeps NDA
enforcement there and drops GraphQL PUBLIC probing.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-07-30 16:56:55 +02:00
parent 93818d8292
commit 34fa2356e1
6 changed files with 110 additions and 253 deletions

View File

@@ -11,8 +11,6 @@ directive @goModel(
directive @goEnum(value: String) on ENUM_VALUE
directive @nda on FIELD_DEFINITION | OBJECT
scalar BigInt
scalar CursorKey
scalar Datetime

View File

@@ -467,30 +467,30 @@ type DocumentAccess implements Node {
extend type Mutation {
exportDocumentPDF(input: ExportDocumentPDFInput!): ExportDocumentPDFPayload!
@authentication(required: OPTIONAL) @nda
@authentication(required: OPTIONAL)
exportReportPDF(input: ExportReportPDFInput!): ExportReportPDFPayload!
@authentication(required: OPTIONAL) @nda
@authentication(required: OPTIONAL)
exportCompliancePortalFile(
input: ExportCompliancePortalFileInput!
): ExportCompliancePortalFilePayload! @authentication(required: OPTIONAL) @nda
): ExportCompliancePortalFilePayload! @authentication(required: OPTIONAL)
requestDocumentAccess(
input: RequestDocumentAccessInput!
): RequestDocumentAccessPayload! @authentication(required: PRESENT) @nda
): RequestDocumentAccessPayload! @authentication(required: PRESENT)
requestReportAccess(
input: RequestReportAccessInput!
): RequestReportAccessPayload! @authentication(required: PRESENT) @nda
): RequestReportAccessPayload! @authentication(required: PRESENT)
requestCompliancePortalFileAccess(
input: RequestCompliancePortalFileAccessInput!
): RequestFileAccessPayload! @authentication(required: PRESENT) @nda
): RequestFileAccessPayload! @authentication(required: PRESENT)
requestAccesses(
input: RequestAccessesInput!
): RequestAccessesResultPayload! @authentication(required: PRESENT) @nda
): RequestAccessesResultPayload! @authentication(required: PRESENT)
}
type RequestDocumentAccessPayload {