Add request param presence callback to request accesses

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-20 16:54:11 +04:00
parent c79c62fc78
commit bb8d477495
15 changed files with 738 additions and 128 deletions

View File

@@ -7,7 +7,7 @@ export const currentTrustGraphQuery = graphql`
email
fullName
}
currentTrustCenter {
currentTrustCenter @required(action: THROW) {
id
slug
isViewerMember

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<663225cc4e0d94b50dc97084c3d51aae>>
* @generated SignedSource<<700a3b76b18e7182c5a08c98b5d7fa2a>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -45,7 +45,7 @@ export type TrustGraphCurrentQuery$data = {
readonly totalCount: number;
};
readonly " $fragmentSpreads": FragmentRefs<"OverviewPageFragment">;
} | null | undefined;
};
readonly viewer: {
readonly email: any;
readonly fullName: string;
@@ -228,106 +228,110 @@ return {
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "TrustCenter",
"kind": "LinkedField",
"name": "currentTrustCenter",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "NonDisclosureAgreement",
"kind": "LinkedField",
"name": "nonDisclosureAgreement",
"plural": false,
"selections": [
(v7/*: any*/),
(v8/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "ElectronicSignature",
"kind": "LinkedField",
"name": "viewerSignature",
"plural": false,
"selections": [
(v9/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": [
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v0/*: any*/),
(v13/*: any*/)
],
"storageKey": null
},
{
"args": null,
"kind": "FragmentSpread",
"name": "OverviewPageFragment"
},
(v14/*: any*/),
{
"alias": null,
"args": (v15/*: any*/),
"concreteType": "AuditConnection",
"kind": "LinkedField",
"name": "audits",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "AuditEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "AuditRowFragment"
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": "audits(first:50)"
}
],
"storageKey": null
"kind": "RequiredField",
"field": {
"alias": null,
"args": null,
"concreteType": "TrustCenter",
"kind": "LinkedField",
"name": "currentTrustCenter",
"plural": false,
"selections": [
(v2/*: any*/),
(v3/*: any*/),
(v4/*: any*/),
(v5/*: any*/),
(v6/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "NonDisclosureAgreement",
"kind": "LinkedField",
"name": "nonDisclosureAgreement",
"plural": false,
"selections": [
(v7/*: any*/),
(v8/*: any*/),
{
"alias": null,
"args": null,
"concreteType": "ElectronicSignature",
"kind": "LinkedField",
"name": "viewerSignature",
"plural": false,
"selections": [
(v9/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Organization",
"kind": "LinkedField",
"name": "organization",
"plural": false,
"selections": [
(v10/*: any*/),
(v11/*: any*/),
(v12/*: any*/),
(v0/*: any*/),
(v13/*: any*/)
],
"storageKey": null
},
{
"args": null,
"kind": "FragmentSpread",
"name": "OverviewPageFragment"
},
(v14/*: any*/),
{
"alias": null,
"args": (v15/*: any*/),
"concreteType": "AuditConnection",
"kind": "LinkedField",
"name": "audits",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "AuditEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "Audit",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v2/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "AuditRowFragment"
}
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": "audits(first:50)"
}
],
"storageKey": null
},
"action": "THROW"
}
],
"type": "Query",
@@ -702,6 +706,6 @@ return {
};
})();
(node as any).hash = "6cbe676214b698d12e2cae08060a7285";
(node as any).hash = "64b166174da80cd3082ab4becf716b1c";
export default node;