Skip to content

Commit c0788c2

Browse files
committed
fix typescript openapi mapping types
1 parent 7765056 commit c0788c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

resources/js/packages/api/src/openapi.json.client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ const InvoiceEntryResource = z
118118
id: z.string(),
119119
invoice_id: z.string(),
120120
name: z.string(),
121-
description: z.string(),
122-
unit_price: z.string(),
121+
description: z.union([z.string(), z.null()]),
122+
unit_price: z.number().int(),
123123
quantity: z.number(),
124-
order_index: z.string(),
124+
order_index: z.number().int(),
125125
created_at: z.union([z.string(), z.null()]),
126126
updated_at: z.union([z.string(), z.null()]),
127127
})
@@ -1863,7 +1863,7 @@ const endpoints = makeApi([
18631863
{
18641864
name: 'invoice',
18651865
type: 'Path',
1866-
schema: z.number().int(),
1866+
schema: z.string(),
18671867
},
18681868
],
18691869
response: z.object({ data: DetailedInvoiceResource }).passthrough(),
@@ -1904,7 +1904,7 @@ const endpoints = makeApi([
19041904
{
19051905
name: 'invoice',
19061906
type: 'Path',
1907-
schema: z.number().int(),
1907+
schema: z.string(),
19081908
},
19091909
],
19101910
response: z.object({ data: DetailedInvoiceResource }).passthrough(),
@@ -1947,7 +1947,7 @@ const endpoints = makeApi([
19471947
{
19481948
name: 'invoice',
19491949
type: 'Path',
1950-
schema: z.number().int(),
1950+
schema: z.string(),
19511951
},
19521952
],
19531953
response: z.void(),
@@ -1988,7 +1988,7 @@ const endpoints = makeApi([
19881988
{
19891989
name: 'invoice',
19901990
type: 'Path',
1991-
schema: z.number().int(),
1991+
schema: z.string(),
19921992
},
19931993
],
19941994
response: z.object({ download_link: z.string() }).passthrough(),
@@ -2038,7 +2038,7 @@ const endpoints = makeApi([
20382038
{
20392039
name: 'invoice',
20402040
type: 'Path',
2041-
schema: z.number().int(),
2041+
schema: z.string(),
20422042
},
20432043
],
20442044
response: z.object({ download_link: z.string() }).passthrough(),

0 commit comments

Comments
 (0)