mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01: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) {
|
if (dailyHoursTracked?.value) {
|
||||||
return (
|
return (
|
||||||
formatDate(
|
formatDate(
|
||||||
dailyHoursTracked?.value[dataIndex].date
|
dailyHoursTracked?.value[dataIndex].date,
|
||||||
|
organization?.value?.date_format
|
||||||
) +
|
) +
|
||||||
': ' +
|
': ' +
|
||||||
formatHumanReadableDuration(
|
formatHumanReadableDuration(
|
||||||
|
|||||||
@@ -178,6 +178,11 @@ export type DetailedInvoiceResponse = ZodiosResponseByAlias<
|
|||||||
'getInvoice'
|
'getInvoice'
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
export type InvoiceIndexEntry = ZodiosResponseByAlias<
|
||||||
|
SolidTimeApi,
|
||||||
|
'getInvoices'
|
||||||
|
>['data'][0];
|
||||||
|
|
||||||
export type UpdateInvoiceSettings = ZodiosBodyByAlias<
|
export type UpdateInvoiceSettings = ZodiosBodyByAlias<
|
||||||
SolidTimeApi,
|
SolidTimeApi,
|
||||||
'updateInvoiceSettings'
|
'updateInvoiceSettings'
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ const DetailedInvoiceResource = z
|
|||||||
paid_at: z.union([z.string(), z.null()]),
|
paid_at: z.union([z.string(), z.null()]),
|
||||||
due_at: z.string(),
|
due_at: z.string(),
|
||||||
discount_type: z.string(),
|
discount_type: z.string(),
|
||||||
discount_amount: z.string(),
|
discount_amount: z.number().int(),
|
||||||
tax_rate: z.string(),
|
tax_rate: z.number().int(),
|
||||||
status: z.string(),
|
status: z.string(),
|
||||||
currency: z.string(),
|
currency: z.string(),
|
||||||
date: z.string(),
|
date: z.string(),
|
||||||
|
|||||||
@@ -18,5 +18,8 @@
|
|||||||
"resources/js/**/*.d.ts",
|
"resources/js/**/*.d.ts",
|
||||||
"resources/js/**/*.vue",
|
"resources/js/**/*.vue",
|
||||||
"resources/js/ziggy.d.ts",
|
"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