Skip to content

Commit aee3d27

Browse files
committed
chore: fix path params and regenerate client
1 parent 4c34235 commit aee3d27

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

opt/wildcat/__dev_openapi.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": "0.1.0"
1010
},
1111
"paths": {
12-
"/v1/admin/credit/quote/:id": {
12+
"/v1/admin/credit/quote/{id}": {
1313
"get": {
1414
"tags": [
1515
"crate::credit::admin"
@@ -176,7 +176,7 @@
176176
}
177177
}
178178
},
179-
"/v1/credit/mint/quote/:id": {
179+
"/v1/credit/mint/quote/{id}": {
180180
"get": {
181181
"tags": [
182182
"crate::credit::web"
@@ -210,7 +210,7 @@
210210
}
211211
}
212212
},
213-
"/v1/credit/quote/:id": {
213+
"/v1/credit/quote/{id}": {
214214
"post": {
215215
"tags": [
216216
"crate::credit::web"

src/generated/client/sdk.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
2020

2121
export const adminLookupQuote = <ThrowOnError extends boolean = false>(options: Options<AdminLookupQuoteData, ThrowOnError>) => {
2222
return (options.client ?? _heyApiClient).get<AdminLookupQuoteResponse, unknown, ThrowOnError>({
23-
url: '/v1/admin/credit/quote/:id',
23+
url: '/v1/admin/credit/quote/{id}',
2424
...options
2525
});
2626
};
2727

2828
export const resolveQuote = <ThrowOnError extends boolean = false>(options: Options<ResolveQuoteData, ThrowOnError>) => {
2929
return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
30-
url: '/v1/admin/credit/quote/:id',
30+
url: '/v1/admin/credit/quote/{id}',
3131
...options,
3232
headers: {
3333
'Content-Type': 'application/json',
@@ -69,14 +69,14 @@ export const enquireQuote = <ThrowOnError extends boolean = false>(options: Opti
6969

7070
export const lookupQuote = <ThrowOnError extends boolean = false>(options: Options<LookupQuoteData, ThrowOnError>) => {
7171
return (options.client ?? _heyApiClient).get<LookupQuoteResponse, unknown, ThrowOnError>({
72-
url: '/v1/credit/mint/quote/:id',
72+
url: '/v1/credit/mint/quote/{id}',
7373
...options
7474
});
7575
};
7676

7777
export const resolveOffer = <ThrowOnError extends boolean = false>(options: Options<ResolveOfferData, ThrowOnError>) => {
7878
return (options.client ?? _heyApiClient).post<unknown, unknown, ThrowOnError>({
79-
url: '/v1/credit/quote/:id',
79+
url: '/v1/credit/quote/{id}',
8080
...options,
8181
headers: {
8282
'Content-Type': 'application/json',

src/generated/client/types.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export type AdminLookupQuoteData = {
164164
id: string;
165165
};
166166
query?: never;
167-
url: '/v1/admin/credit/quote/:id';
167+
url: '/v1/admin/credit/quote/{id}';
168168
};
169169

170170
export type AdminLookupQuoteErrors = {
@@ -192,7 +192,7 @@ export type ResolveQuoteData = {
192192
id: string;
193193
};
194194
query?: never;
195-
url: '/v1/admin/credit/quote/:id';
195+
url: '/v1/admin/credit/quote/{id}';
196196
};
197197

198198
export type ResolveQuoteResponses = {
@@ -276,7 +276,7 @@ export type LookupQuoteData = {
276276
id: string;
277277
};
278278
query?: never;
279-
url: '/v1/credit/mint/quote/:id';
279+
url: '/v1/credit/mint/quote/{id}';
280280
};
281281

282282
export type LookupQuoteErrors = {
@@ -304,7 +304,7 @@ export type ResolveOfferData = {
304304
id: string;
305305
};
306306
query?: never;
307-
url: '/v1/credit/quote/:id';
307+
url: '/v1/credit/quote/{id}';
308308
};
309309

310310
export type ResolveOfferErrors = {

0 commit comments

Comments
 (0)