From 3f06fbde1d4d0406f62ebf01d97fd69c290ad321 Mon Sep 17 00:00:00 2001 From: Abdulquadri Mumuney Date: Tue, 30 Aug 2022 07:51:12 +0100 Subject: [PATCH] feature: Add missing graphql files --- .../graphql/access/get-access-permission.graphql | 7 +++++++ .../graphql/data-redaction/add-data-redaction.graphql | 8 ++++++++ .../data-redaction/add-role-data-redaction.graphql | 3 +++ .../graphql/data-redaction/get-data-redaction.graphql | 8 ++++++++ .../graphql/data-redaction/get-data-redactions.graphql | 8 ++++++++ .../data-redaction/get-developer-data-redaction.graphql | 8 ++++++++ .../data-redaction/get-role-data-redaction.graphql | 8 ++++++++ .../graphql/data-redaction/remove-data-redaction.graphql | 3 +++ .../data-redaction/remove-role-data-redaction.graphql | 3 +++ .../graphql/data-redaction/update-data-redaction.graphql | 8 ++++++++ src/jvmMain/resources/graphql/system/get-services.graphql | 6 ++++++ 11 files changed, 70 insertions(+) create mode 100644 src/jvmMain/resources/graphql/access/get-access-permission.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/add-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/add-role-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/get-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/get-data-redactions.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/get-developer-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/get-role-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/remove-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/remove-role-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/data-redaction/update-data-redaction.graphql create mode 100644 src/jvmMain/resources/graphql/system/get-services.graphql diff --git a/src/jvmMain/resources/graphql/access/get-access-permission.graphql b/src/jvmMain/resources/graphql/access/get-access-permission.graphql new file mode 100644 index 00000000..230f407e --- /dev/null +++ b/src/jvmMain/resources/graphql/access/get-access-permission.graphql @@ -0,0 +1,7 @@ +query getAccessPermissions ($id: String!){ + getAccessPermission (id: $id){ + id + locationPatterns + type + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/add-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/add-data-redaction.graphql new file mode 100644 index 00000000..5faf7e57 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/add-data-redaction.graphql @@ -0,0 +1,8 @@ +mutation ($id: String!, $type: RedactionType!, $lookup: String!, $replacement: String!){ + addDataRedaction (id: $id, type: $type, lookup: $lookup, replacement: $replacement){ + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/add-role-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/add-role-data-redaction.graphql new file mode 100644 index 00000000..b093dd9b --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/add-role-data-redaction.graphql @@ -0,0 +1,3 @@ +mutation ($role: String!, $dataRedactionId: String!){ + addRoleDataRedaction (role: $role, dataRedactionId: $dataRedactionId) +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/get-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/get-data-redaction.graphql new file mode 100644 index 00000000..34579558 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/get-data-redaction.graphql @@ -0,0 +1,8 @@ +query ($id: String!){ + getDataRedaction (id: $id){ + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/get-data-redactions.graphql b/src/jvmMain/resources/graphql/data-redaction/get-data-redactions.graphql new file mode 100644 index 00000000..ff50f71e --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/get-data-redactions.graphql @@ -0,0 +1,8 @@ +query { + getDataRedactions { + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/get-developer-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/get-developer-data-redaction.graphql new file mode 100644 index 00000000..9ef3d431 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/get-developer-data-redaction.graphql @@ -0,0 +1,8 @@ +query ($developerId: String!){ + getDeveloperDataRedactions (developerId: $developerId){ + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/get-role-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/get-role-data-redaction.graphql new file mode 100644 index 00000000..ce864c83 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/get-role-data-redaction.graphql @@ -0,0 +1,8 @@ +query ($role: String!){ + getRoleDataRedactions (role: $role){ + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/remove-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/remove-data-redaction.graphql new file mode 100644 index 00000000..f2a481f3 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/remove-data-redaction.graphql @@ -0,0 +1,3 @@ +mutation ($id: String!){ + removeDataRedaction (id: $id) +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/remove-role-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/remove-role-data-redaction.graphql new file mode 100644 index 00000000..c061de02 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/remove-role-data-redaction.graphql @@ -0,0 +1,3 @@ +mutation ($role: String!, $dataRedactionId: String!){ + removeRoleDataRedaction (role: $role, dataRedactionId: $dataRedactionId) +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/data-redaction/update-data-redaction.graphql b/src/jvmMain/resources/graphql/data-redaction/update-data-redaction.graphql new file mode 100644 index 00000000..b77b6227 --- /dev/null +++ b/src/jvmMain/resources/graphql/data-redaction/update-data-redaction.graphql @@ -0,0 +1,8 @@ +mutation ($id: String!, $type: RedactionType!, $lookup: String!, $replacement: String!){ + updateDataRedaction (id: $id, type: $type, lookup: $lookup, replacement: $replacement){ + id + type + lookup + replacement + } +} \ No newline at end of file diff --git a/src/jvmMain/resources/graphql/system/get-services.graphql b/src/jvmMain/resources/graphql/system/get-services.graphql new file mode 100644 index 00000000..c816b8a3 --- /dev/null +++ b/src/jvmMain/resources/graphql/system/get-services.graphql @@ -0,0 +1,6 @@ +query getServices { + getServices { + id + name + } +} \ No newline at end of file