mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
update api client, add api types, fix activitygraphcard formatting
This commit is contained in:
@@ -128,7 +128,8 @@ const option = computed(() => {
|
||||
if (dailyHoursTracked?.value) {
|
||||
return (
|
||||
formatDate(
|
||||
dailyHoursTracked?.value[dataIndex].date
|
||||
dailyHoursTracked?.value[dataIndex].date,
|
||||
organization?.value?.date_format
|
||||
) +
|
||||
': ' +
|
||||
formatHumanReadableDuration(
|
||||
|
||||
@@ -178,6 +178,11 @@ export type DetailedInvoiceResponse = ZodiosResponseByAlias<
|
||||
'getInvoice'
|
||||
>;
|
||||
|
||||
export type InvoiceIndexEntry = ZodiosResponseByAlias<
|
||||
SolidTimeApi,
|
||||
'getInvoices'
|
||||
>['data'][0];
|
||||
|
||||
export type UpdateInvoiceSettings = ZodiosBodyByAlias<
|
||||
SolidTimeApi,
|
||||
'updateInvoiceSettings'
|
||||
|
||||
@@ -164,8 +164,8 @@ const DetailedInvoiceResource = z
|
||||
paid_at: z.union([z.string(), z.null()]),
|
||||
due_at: z.string(),
|
||||
discount_type: z.string(),
|
||||
discount_amount: z.string(),
|
||||
tax_rate: z.string(),
|
||||
discount_amount: z.number().int(),
|
||||
tax_rate: z.number().int(),
|
||||
status: z.string(),
|
||||
currency: z.string(),
|
||||
date: z.string(),
|
||||
|
||||
@@ -18,5 +18,8 @@
|
||||
"resources/js/**/*.d.ts",
|
||||
"resources/js/**/*.vue",
|
||||
"resources/js/ziggy.d.ts",
|
||||
"extensions/Invoicing/resources/js/**/*.ts",
|
||||
"extensions/Invoicing/resources/js/**/*.d.ts",
|
||||
"extensions/Invoicing/resources/js/**/*.vue",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user