Skip to content

Commit a23fddf

Browse files
committed
ci: Format code
1 parent 5568d55 commit a23fddf

61 files changed

Lines changed: 51 additions & 269 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

codegen/layouts/default.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{contents}}
1+
{{contents}}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
(
2-
parameters{{#if isOptionalParamsOk}}?{{/if}}: {{parametersTypeName}},
3-
options{{#if isFnType}}?{{/if}}: {{optionsTypeName}}{{#unless isFnType}} = {}{{/unless}},
4-
){{#if isFnType}} => {{else}}: {{/if}}{{requestTypeName}}
1+
( parameters{{#if isOptionalParamsOk}}?{{/if}}:
2+
{{parametersTypeName}}, options{{#if isFnType}}?{{/if}}:
3+
{{optionsTypeName}}{{#unless isFnType}} = {}{{/unless}}, ){{#if isFnType}}
4+
=>
5+
{{else}}: {{/if}}{{requestTypeName}}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
get {{ methodName }}(): {{ className }} {
2-
return {{ className }}.fromClient(this.client, this.defaults)
3-
}
1+
get
2+
{{methodName}}():
3+
{{className}}
4+
{ return
5+
{{className}}.fromClient(this.client, this.defaults) }
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import { seamApiLtsVersion } from 'lib/lts-version.js'
2-
import { type Client, createClient } from 'lib/seam/connect/client.js'
3-
import {
4-
isSeamHttpWithoutWorkspaceOptionsWithClient,
5-
isSeamHttpWithoutWorkspaceOptionsWithConsoleSessionToken,
6-
isSeamHttpWithoutWorkspaceOptionsWithPersonalAccessToken,
7-
type SeamHttpRequestOptions,
8-
SeamHttpWithoutWorkspaceInvalidOptionsError,
9-
type SeamHttpWithoutWorkspaceOptions,
10-
type SeamHttpWithoutWorkspaceOptionsWithClient,
11-
type SeamHttpWithoutWorkspaceOptionsWithConsoleSessionToken,
12-
type SeamHttpWithoutWorkspaceOptionsWithPersonalAccessToken,
13-
} from 'lib/seam/connect/options.js'
14-
import { limitToSeamHttpRequestOptions, parseOptions } from 'lib/seam/connect/parse-options.js'
1+
import { seamApiLtsVersion } from 'lib/lts-version.js' import { type Client,
2+
createClient } from 'lib/seam/connect/client.js' import {
3+
isSeamHttpWithoutWorkspaceOptionsWithClient,
4+
isSeamHttpWithoutWorkspaceOptionsWithConsoleSessionToken,
5+
isSeamHttpWithoutWorkspaceOptionsWithPersonalAccessToken, type
6+
SeamHttpRequestOptions, SeamHttpWithoutWorkspaceInvalidOptionsError, type
7+
SeamHttpWithoutWorkspaceOptions, type SeamHttpWithoutWorkspaceOptionsWithClient,
8+
type SeamHttpWithoutWorkspaceOptionsWithConsoleSessionToken, type
9+
SeamHttpWithoutWorkspaceOptionsWithPersonalAccessToken, } from
10+
'lib/seam/connect/options.js' import { limitToSeamHttpRequestOptions,
11+
parseOptions } from 'lib/seam/connect/parse-options.js'
Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,30 @@
1-
import { seamApiLtsVersion } from 'lib/lts-version.js'
2-
import type {
3-
RouteRequestBody,
4-
RouteRequestParams,
5-
RouteResponse,
6-
} from '@seamapi/types/connect'
7-
import type { SetNonNullable } from 'lib/types.js'
8-
9-
import {
10-
getAuthHeadersForClientSessionToken,
11-
warnOnInsecureuserIdentifierKey,
12-
} from 'lib/seam/connect/auth.js'
13-
import {
14-
type Client,
15-
type ClientOptions,
16-
createClient,
17-
} from 'lib/seam/connect/client.js'
18-
import {
19-
isSeamHttpOptionsWithApiKey,
20-
isSeamHttpOptionsWithClient,
21-
isSeamHttpOptionsWithClientSessionToken,
22-
isSeamHttpOptionsWithConsoleSessionToken,
23-
isSeamHttpOptionsWithPersonalAccessToken,
24-
type SeamHttpFromPublishableKeyOptions,
25-
SeamHttpInvalidOptionsError,
26-
type SeamHttpOptions,
27-
type SeamHttpOptionsWithApiKey,
28-
type SeamHttpOptionsWithClient,
29-
type SeamHttpOptionsWithClientSessionToken,
30-
type SeamHttpOptionsWithConsoleSessionToken,
31-
type SeamHttpOptionsWithPersonalAccessToken,
32-
type SeamHttpRequestOptions,
33-
} from 'lib/seam/connect/options.js'
34-
import {
35-
limitToSeamHttpRequestOptions,
36-
parseOptions
37-
} from 'lib/seam/connect/parse-options.js'
38-
import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
39-
import { SeamPaginator } from 'lib/seam/connect/seam-paginator.js'
1+
import { seamApiLtsVersion } from 'lib/lts-version.js' import type {
2+
RouteRequestBody, RouteRequestParams, RouteResponse, } from
3+
'@seamapi/types/connect' import type { SetNonNullable } from 'lib/types.js'
4+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, }
5+
from 'lib/seam/connect/auth.js' import { type Client, type ClientOptions,
6+
createClient, } from 'lib/seam/connect/client.js' import {
7+
isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient,
8+
isSeamHttpOptionsWithClientSessionToken,
9+
isSeamHttpOptionsWithConsoleSessionToken,
10+
isSeamHttpOptionsWithPersonalAccessToken, type
11+
SeamHttpFromPublishableKeyOptions, SeamHttpInvalidOptionsError, type
12+
SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient,
13+
type SeamHttpOptionsWithClientSessionToken, type
14+
SeamHttpOptionsWithConsoleSessionToken, type
15+
SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions, } from
16+
'lib/seam/connect/options.js' import { limitToSeamHttpRequestOptions,
17+
parseOptions } from 'lib/seam/connect/parse-options.js' import { SeamHttpRequest
18+
} from 'lib/seam/connect/seam-http-request.js' import { SeamPaginator } from
19+
'lib/seam/connect/seam-paginator.js'
4020

4121
{{#unless skipClientSessionImport}}
42-
import { SeamHttpClientSessions } from 'lib/seam/connect/routes/client-sessions/index.js'
22+
import { SeamHttpClientSessions } from
23+
'lib/seam/connect/routes/client-sessions/index.js'
4324
{{/unless}}
4425

4526
{{#each subroutes}}
46-
import { {{className}} } from './{{fileName}}'
47-
{{/each}}
27+
import {
28+
{{className}}
29+
} from './{{fileName}}'
30+
{{/each}}

codegen/lib/layouts/route.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@ export const getEndpointLayoutContext = (
124124
const getResponseContext = (
125125
endpoint: Endpoint,
126126
): Pick<EndpointLayoutContext, 'returnsVoid' | 'responseKey'> => {
127-
if (endpoint.response.responseType === 'void')
128-
{return {
127+
if (endpoint.response.responseType === 'void') {
128+
return {
129129
returnsVoid: true,
130130
responseKey: '',
131-
}}
131+
}
132+
}
132133
const { responseKey } = endpoint.response
133134
return {
134135
returnsVoid: false,

examples/locks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Builder, Command, Describe } from 'landlubber'
22

33
import type { Handler } from './index.js'
44

5-
65
interface Options {}
76

87
export const command: Command = 'locks'

examples/workspace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Builder, Command, Describe } from 'landlubber'
22

33
import type { Handler } from './index.js'
44

5-
65
interface Options {}
76

87
export const command: Command = 'workspace'

src/lib/seam/connect/routes/access-codes/access-codes.ts

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/seam/connect/routes/access-codes/simulate/simulate.ts

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)