Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Apr 23, 2024
1 parent b46d347 commit 48b784e
Show file tree
Hide file tree
Showing 10 changed files with 181 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
query getAllListCounts {
_allAccessRequestsMeta {
count
__typename
}
_allActivitiesMeta {
count
__typename
}
_allAlertsMeta {
count
__typename
}
_allApplicationsMeta {
count
__typename
}
_allBlobsMeta {
count
__typename
}
_allContentsMeta {
count
__typename
}
_allCredentialIssuersMeta {
count
__typename
}
_allDatasetsMeta {
count
__typename
}
_allEnvironmentsMeta {
count
__typename
}
_allGatewayConsumersMeta {
count
__typename
}
_allGatewayGroupsMeta {
count
__typename
}
_allGatewayPluginsMeta {
count
__typename
}
_allGatewayRoutesMeta {
count
__typename
}
_allGatewayServicesMeta {
count
__typename
}
_allLabelsMeta {
count
__typename
}
_allLegalsMeta {
count
__typename
}
_allMetricsMeta {
count
__typename
}
_allOrganizationUnitsMeta {
count
__typename
}
_allOrganizationsMeta {
count
__typename
}
_allProductsMeta {
count
__typename
}
_allServiceAccessesMeta {
count
__typename
}
_allTemporaryIdentitiesMeta {
count
__typename
}
_allUsersMeta {
count
__typename
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
user: authenticatedTemporaryIdentity {
id
_label_
__typename
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
query getList($where: ActivityWhereInput, $search: String, $sortBy: [SortActivitiesBy!], $first: Int, $skip: Int) {
allActivities(
where: $where
search: $search
sortBy: $sortBy
first: $first
skip: $skip
) {
_label_
id
extRefId
type
__typename
}
_allActivitiesMeta(where: $where, search: $search) {
count
__typename
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
query getList($where: EnvironmentWhereInput, $search: String, $sortBy: [SortEnvironmentsBy!], $first: Int, $skip: Int) {
allEnvironments(
where: $where
search: $search
sortBy: $sortBy
first: $first
skip: $skip
) {
_label_
id
appId
name
__typename
}
_allEnvironmentsMeta(where: $where, search: $search) {
count
__typename
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
query getList($where: GatewayServiceWhereInput, $search: String, $sortBy: [SortGatewayServicesBy!], $first: Int, $skip: Int) {
allGatewayServices(
where: $where
search: $search
sortBy: $sortBy
first: $first
skip: $skip
) {
_label_
id
name
namespace
__typename
}
_allGatewayServicesMeta(where: $where, search: $search) {
count
__typename
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
query getList($where: OrganizationWhereInput, $search: String, $sortBy: [SortOrganizationsBy!], $first: Int, $skip: Int) {
allOrganizations(
where: $where
search: $search
sortBy: $sortBy
first: $first
skip: $skip
) {
_label_
id
name
sector
__typename
}
_allOrganizationsMeta(where: $where, search: $search) {
count
__typename
}
}
52 changes: 0 additions & 52 deletions src/controllers/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,54 +554,6 @@ components:
additionalProperties: false
DraftDatasetRefID:
type: string
LegalRefID:
type: string
CredentialIssuerRefID:
type: string
Environment:
properties:
appId:
type: string
name:
type: string
enum:
- dev
- test
- prod
- sandbox
- other
active:
type: boolean
approval:
type: boolean
flow:
type: string
enum:
- public
- protected-externally
- authorization-code
- client-credentials
- kong-acl-only
- kong-api-key-only
- kong-api-key-acl
additionalDetailsToRequest:
type: string
services:
items:
$ref: '#/components/schemas/GatewayServiceRefID'
type: array
legal:
$ref: '#/components/schemas/LegalRefID'
credentialIssuer:
$ref: '#/components/schemas/CredentialIssuerRefID'
type: object
additionalProperties: false
example:
name: dev
active: false
approval: false
flow: public
appId: '00000000'
Product:
properties:
appId:
Expand All @@ -614,10 +566,6 @@ components:
type: string
dataset:
$ref: '#/components/schemas/DraftDatasetRefID'
environments:
items:
$ref: '#/components/schemas/Environment'
type: array
type: object
additionalProperties: false
example:
Expand Down
27 changes: 0 additions & 27 deletions src/controllers/v2/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,32 +362,6 @@ const models: TsoaRoute.Models = {
"type": {"dataType":"string","validators":{}},
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"LegalRefID": {
"dataType": "refAlias",
"type": {"dataType":"string","validators":{}},
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"CredentialIssuerRefID": {
"dataType": "refAlias",
"type": {"dataType":"string","validators":{}},
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"Environment": {
"dataType": "refObject",
"properties": {
"appId": {"dataType":"string"},
"name": {"dataType":"union","subSchemas":[{"dataType":"enum","enums":["dev"]},{"dataType":"enum","enums":["test"]},{"dataType":"enum","enums":["prod"]},{"dataType":"enum","enums":["sandbox"]},{"dataType":"enum","enums":["other"]}]},
"active": {"dataType":"boolean"},
"approval": {"dataType":"boolean"},
"flow": {"dataType":"union","subSchemas":[{"dataType":"enum","enums":["public"]},{"dataType":"enum","enums":["protected-externally"]},{"dataType":"enum","enums":["authorization-code"]},{"dataType":"enum","enums":["client-credentials"]},{"dataType":"enum","enums":["kong-acl-only"]},{"dataType":"enum","enums":["kong-api-key-only"]},{"dataType":"enum","enums":["kong-api-key-acl"]}]},
"additionalDetailsToRequest": {"dataType":"string"},
"services": {"dataType":"array","array":{"dataType":"refAlias","ref":"GatewayServiceRefID"}},
"legal": {"ref":"LegalRefID"},
"credentialIssuer": {"ref":"CredentialIssuerRefID"},
},
"additionalProperties": false,
},
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"Product": {
"dataType": "refObject",
"properties": {
Expand All @@ -396,7 +370,6 @@ const models: TsoaRoute.Models = {
"description": {"dataType":"string"},
"namespace": {"dataType":"string"},
"dataset": {"ref":"DraftDatasetRefID"},
"environments": {"dataType":"array","array":{"dataType":"refObject","ref":"Environment"}},
},
"additionalProperties": false,
},
Expand Down
1 change: 0 additions & 1 deletion src/controllers/v2/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ export interface Product {
description?: string;
namespace?: string;
dataset?: DraftDatasetRefID;
environments?: Environment[];
}


Expand Down
8 changes: 4 additions & 4 deletions src/nextapp/pages/manager/namespaces/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ const NamespacesPage: React.FC = () => {
</Text>
</Box>
<Box>
<Heading size="md" fontSize="18px" pt={16} pb={6}>Prepare the configuration</Heading>
<Heading size="md" fontSize="18px" pt={10} pb={6}>Prepare the configuration</Heading>
<CliCommand
title='Log in'
description='Login via device with your IDIR.'
Expand All @@ -580,7 +580,7 @@ const NamespacesPage: React.FC = () => {
command='gwa gateway create'
/>

<Heading size="md" fontSize="18px" pt={16} pb={6}>Apply configuration to your gateway</Heading>
<Heading size="md" fontSize="18px" pt={10} pb={6}>Apply configuration to your gateway</Heading>
<CliCommand
id='generate-config'
title='Generate Yaml configuration file'
Expand All @@ -595,15 +595,15 @@ const NamespacesPage: React.FC = () => {
command='gwa apply --input <gw-config.yaml>'
/>

<Heading size="md" fontSize="18px" pt={16} pb={6}>Help</Heading>
<Heading size="md" fontSize="18px" pt={10} pb={6}>Help</Heading>
<CliCommand
title='Help'
description="If you are not sure about how to use a specific command, you can type --help after the
command's name to learn more about its usage and syntax."
command='gwa <command> --help'
/>

<Heading size="md" fontSize="18px" pt={16} pb={6}>Other utility functions</Heading>
<Heading size="md" fontSize="18px" pt={10} pb={6}>Other utility functions</Heading>
<CliCommand
title='Get'
description="With get you can obtain gateway resources and retrieve a table of datasets, issuers,
Expand Down

0 comments on commit 48b784e

Please sign in to comment.