Skip to content

Commit

Permalink
Revert delete type name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Oct 11, 2024
1 parent 5aeb2ee commit 7a0bd51
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
9 changes: 5 additions & 4 deletions generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,13 +452,14 @@ const renderRequestType = ({
// and https://github.com/seamapi/javascript-http/issues/43
const requestFormatToRequestType = (
name: string,
_namespace: string,
namespace: string,
): 'params' | 'body' => {
if (namespace.includes('simulate')) return 'body'
if (['get', 'list', 'view'].includes(name)) return 'params'
if (['delete'].includes(name)) return 'params'
if (name.includes('revoke')) return 'body'
if (name.includes('remove')) return 'body'
if (name.includes('deactivate')) return 'body'
if (name.includes('revoke')) return 'params'
if (name.includes('remove')) return 'params'
if (name.includes('deactivate')) return 'params'
if (name.startsWith('list')) return 'params'
return 'body'
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/seam/connect/routes/acs-access-groups.ts

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

8 changes: 4 additions & 4 deletions src/lib/seam/connect/routes/acs-users.ts

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

4 changes: 2 additions & 2 deletions src/lib/seam/connect/routes/client-sessions.ts

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

4 changes: 2 additions & 2 deletions src/lib/seam/connect/routes/phones.ts

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

8 changes: 4 additions & 4 deletions src/lib/seam/connect/routes/user-identities.ts

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

0 comments on commit 7a0bd51

Please sign in to comment.