Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 10 additions & 19 deletions codegen/lib/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ const getClients = (blueprint: Blueprint): ClientModel[] => {
// Namespaces without a route of their own (e.g. /acs) become clients that
// only expose child clients.
for (const namespace of blueprint.namespaces) {
if (namespace.isUndocumented) continue
sources.set(namespace.path, {
name: namespace.name,
parentPath: namespace.parentPath,
Expand All @@ -167,7 +166,6 @@ const getClients = (blueprint: Blueprint): ClientModel[] => {
}

for (const route of blueprint.routes) {
if (route.isUndocumented) continue
sources.set(route.path, {
name: route.name,
parentPath: route.parentPath,
Expand All @@ -185,9 +183,7 @@ const getClients = (blueprint: Blueprint): ClientModel[] => {
clients.set(path, {
name: pascalCase(namespace),
namespace,
methods: source.endpoints
.filter((endpoint) => !endpoint.isUndocumented)
.map(createClientMethod),
methods: source.endpoints.map(createClientMethod),
childClientIdentifiers: [],
})
}
Expand All @@ -209,10 +205,7 @@ const getClientNamespace = (path: string): string =>
path.slice(1).split('/').join('_')

const getTopLevelClientNamespaces = (blueprint: Blueprint): string[] => {
const namespaces = [
...blueprint.namespaces.filter((namespace) => !namespace.isUndocumented),
...blueprint.routes.filter((route) => !route.isUndocumented),
]
const namespaces = [...blueprint.namespaces, ...blueprint.routes]
.filter(({ parentPath }) => parentPath == null)
.map(({ path }) => getClientNamespace(path))
return [...new Set(namespaces)].sort()
Expand All @@ -224,16 +217,14 @@ const createClientMethod = (endpoint: Endpoint): ClientMethod => {
return {
methodName: endpoint.name,
path: endpoint.path,
parameters: endpoint.request.parameters
.filter((parameter) => !parameter.isUndocumented)
.map((parameter) => ({
name: parameter.name,
required: parameter.isRequired,
position:
endpoint.name === 'get' && parameter.name === `${returnPath}_id`
? 0
: undefined,
})),
parameters: endpoint.request.parameters.map((parameter) => ({
name: parameter.name,
required: parameter.isRequired,
position:
endpoint.name === 'get' && parameter.name === `${returnPath}_id`
? 0
: undefined,
})),
returnPath,
returnResource,
}
Expand Down
2 changes: 1 addition & 1 deletion codegen/smith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Metalsmith(rootDir)
.source('./content')
.destination('../')
.clean(false)
.use(blueprint({ types }))
.use(blueprint({ types, omitUndocumented: true }))
.use(routes)
.use(
layouts({
Expand Down
11 changes: 0 additions & 11 deletions lib/seam/routes/resources/acs_credential_pool.rb

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion lib/seam/routes/resources/acs_user.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/seam/routes/resources/batch.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions lib/seam/routes/resources/bridge_client_session.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/seam/routes/resources/bridge_connected_systems.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/seam/routes/resources/connect_webview.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions lib/seam/routes/resources/customer.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/seam/routes/resources/customization_profile.rb

This file was deleted.

11 changes: 0 additions & 11 deletions lib/seam/routes/resources/enrollment_automation.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/seam/routes/resources/event.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions lib/seam/routes/resources/index.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions lib/seam/routes/resources/magic_link.rb

This file was deleted.

9 changes: 0 additions & 9 deletions lib/seam/routes/resources/phone_session.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/seam/routes/resources/space.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions lib/seam/routes/resources/staff_member.rb

This file was deleted.

14 changes: 0 additions & 14 deletions lib/seam/routes/resources/unmanaged_acs_access_group.rb

This file was deleted.

14 changes: 0 additions & 14 deletions lib/seam/routes/resources/unmanaged_acs_credential.rb

This file was deleted.

14 changes: 0 additions & 14 deletions lib/seam/routes/resources/unmanaged_acs_user.rb

This file was deleted.

Loading
Loading