Skip to content

Commit 9160b32

Browse files
authored
chore: avoid linebreaks in template interpolations (#1150)
1 parent 937a075 commit 9160b32

File tree

33 files changed

+747
-3669
lines changed

33 files changed

+747
-3669
lines changed

packages/clients/src/api/account/v2/api.gen.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ export class API extends ParentAPI {
108108
this.client.fetch<Project>(
109109
{
110110
method: 'GET',
111-
path: `/account/v2/projects/${validatePathParam(
112-
'projectId',
113-
request.projectId ?? this.client.settings.defaultProjectId,
114-
)}`,
111+
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
115112
},
116113
unmarshalProject,
117114
)
@@ -129,10 +126,7 @@ export class API extends ParentAPI {
129126
deleteProject = (request: Readonly<DeleteProjectRequest> = {}) =>
130127
this.client.fetch<void>({
131128
method: 'DELETE',
132-
path: `/account/v2/projects/${validatePathParam(
133-
'projectId',
134-
request.projectId ?? this.client.settings.defaultProjectId,
135-
)}`,
129+
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
136130
})
137131

138132
/**
@@ -152,10 +146,7 @@ export class API extends ParentAPI {
152146
),
153147
headers: jsonContentHeaders,
154148
method: 'PATCH',
155-
path: `/account/v2/projects/${validatePathParam(
156-
'projectId',
157-
request.projectId ?? this.client.settings.defaultProjectId,
158-
)}`,
149+
path: `/account/v2/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
159150
},
160151
unmarshalProject,
161152
)

packages/clients/src/api/account/v3/api.gen.ts

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ export class ProjectAPI extends ParentAPI {
102102
this.client.fetch<Project>(
103103
{
104104
method: 'GET',
105-
path: `/account/v3/projects/${validatePathParam(
106-
'projectId',
107-
request.projectId ?? this.client.settings.defaultProjectId,
108-
)}`,
105+
path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
109106
},
110107
unmarshalProject,
111108
)
@@ -121,10 +118,7 @@ export class ProjectAPI extends ParentAPI {
121118
deleteProject = (request: Readonly<ProjectApiDeleteProjectRequest> = {}) =>
122119
this.client.fetch<void>({
123120
method: 'DELETE',
124-
path: `/account/v3/projects/${validatePathParam(
125-
'projectId',
126-
request.projectId ?? this.client.settings.defaultProjectId,
127-
)}`,
121+
path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
128122
})
129123

130124
/**
@@ -142,10 +136,7 @@ export class ProjectAPI extends ParentAPI {
142136
),
143137
headers: jsonContentHeaders,
144138
method: 'PATCH',
145-
path: `/account/v3/projects/${validatePathParam(
146-
'projectId',
147-
request.projectId ?? this.client.settings.defaultProjectId,
148-
)}`,
139+
path: `/account/v3/projects/${validatePathParam('projectId', request.projectId ?? this.client.settings.defaultProjectId)}`,
149140
},
150141
unmarshalProject,
151142
)

packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ export class API extends ParentAPI {
6060
this.client.fetch<ListServerTypesResponse>(
6161
{
6262
method: 'GET',
63-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
64-
'zone',
65-
request.zone ?? this.client.settings.defaultZone,
66-
)}/server-types`,
63+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/server-types`,
6764
},
6865
unmarshalListServerTypesResponse,
6966
)
@@ -79,10 +76,7 @@ export class API extends ParentAPI {
7976
this.client.fetch<ServerType>(
8077
{
8178
method: 'GET',
82-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
83-
'zone',
84-
request.zone ?? this.client.settings.defaultZone,
85-
)}/server-type/${validatePathParam('serverType', request.serverType)}`,
79+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/server-type/${validatePathParam('serverType', request.serverType)}`,
8680
},
8781
unmarshalServerType,
8882
)
@@ -102,10 +96,7 @@ export class API extends ParentAPI {
10296
),
10397
headers: jsonContentHeaders,
10498
method: 'POST',
105-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
106-
'zone',
107-
request.zone ?? this.client.settings.defaultZone,
108-
)}/servers`,
99+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
109100
},
110101
unmarshalServer,
111102
)
@@ -114,10 +105,7 @@ export class API extends ParentAPI {
114105
this.client.fetch<ListServersResponse>(
115106
{
116107
method: 'GET',
117-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
118-
'zone',
119-
request.zone ?? this.client.settings.defaultZone,
120-
)}/servers`,
108+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
121109
urlParams: urlParams(
122110
['order_by', request.orderBy],
123111
['organization_id', request.organizationId],
@@ -147,10 +135,7 @@ export class API extends ParentAPI {
147135
this.client.fetch<ListOSResponse>(
148136
{
149137
method: 'GET',
150-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
151-
'zone',
152-
request.zone ?? this.client.settings.defaultZone,
153-
)}/os`,
138+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os`,
154139
urlParams: urlParams(
155140
['name', request.name],
156141
['page', request.page],
@@ -186,10 +171,7 @@ export class API extends ParentAPI {
186171
this.client.fetch<OS>(
187172
{
188173
method: 'GET',
189-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
190-
'zone',
191-
request.zone ?? this.client.settings.defaultZone,
192-
)}/os/${validatePathParam('osId', request.osId)}`,
174+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam('osId', request.osId)}`,
193175
},
194176
unmarshalOS,
195177
)
@@ -206,10 +188,7 @@ export class API extends ParentAPI {
206188
this.client.fetch<Server>(
207189
{
208190
method: 'GET',
209-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
210-
'zone',
211-
request.zone ?? this.client.settings.defaultZone,
212-
)}/servers/${validatePathParam('serverId', request.serverId)}`,
191+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`,
213192
},
214193
unmarshalServer,
215194
)
@@ -249,10 +228,7 @@ export class API extends ParentAPI {
249228
),
250229
headers: jsonContentHeaders,
251230
method: 'PATCH',
252-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
253-
'zone',
254-
request.zone ?? this.client.settings.defaultZone,
255-
)}/servers/${validatePathParam('serverId', request.serverId)}`,
231+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`,
256232
},
257233
unmarshalServer,
258234
)
@@ -268,10 +244,7 @@ export class API extends ParentAPI {
268244
deleteServer = (request: Readonly<DeleteServerRequest>) =>
269245
this.client.fetch<void>({
270246
method: 'DELETE',
271-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
272-
'zone',
273-
request.zone ?? this.client.settings.defaultZone,
274-
)}/servers/${validatePathParam('serverId', request.serverId)}`,
247+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}`,
275248
})
276249

277250
/**
@@ -287,10 +260,7 @@ export class API extends ParentAPI {
287260
body: '{}',
288261
headers: jsonContentHeaders,
289262
method: 'POST',
290-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
291-
'zone',
292-
request.zone ?? this.client.settings.defaultZone,
293-
)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`,
263+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reboot`,
294264
},
295265
unmarshalServer,
296266
)
@@ -310,13 +280,7 @@ export class API extends ParentAPI {
310280
body: '{}',
311281
headers: jsonContentHeaders,
312282
method: 'POST',
313-
path: `/apple-silicon/v1alpha1/zones/${validatePathParam(
314-
'zone',
315-
request.zone ?? this.client.settings.defaultZone,
316-
)}/servers/${validatePathParam(
317-
'serverId',
318-
request.serverId,
319-
)}/reinstall`,
283+
path: `/apple-silicon/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam('serverId', request.serverId)}/reinstall`,
320284
},
321285
unmarshalServer,
322286
)

0 commit comments

Comments
 (0)