fix(timesheet): ajusted imports to type

This commit is contained in:
Matthieu Haineault 2025-09-09 09:46:38 -04:00
parent 04b5778dd4
commit 8f3a4c13d1
6 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
<script setup lang="ts"> <script setup lang="ts">
/* eslint-disable */ /* eslint-disable */
import { computed } from 'vue'; import { computed } from 'vue';
import { CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface'; import type { CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface';
import { Shift } from '../../types/timesheet-shift-interface'; import type { Shift } from '../../types/timesheet-shift-interface';
const props = defineProps<{ const props = defineProps<{

View File

@ -5,8 +5,8 @@ import { useI18n } from 'vue-i18n';
import { useTimesheetStore } from 'src/stores/timesheet-store'; import { useTimesheetStore } from 'src/stores/timesheet-store';
import TimesheetShiftComment from '../shift/timesheet-shift-comment.vue'; import TimesheetShiftComment from '../shift/timesheet-shift-comment.vue';
import TimesheetSavePayload from './timesheet-save-payload.vue'; import TimesheetSavePayload from './timesheet-save-payload.vue';
import { Shift } from '../../types/timesheet-shift-interface'; import type { Shift } from '../../types/timesheet-shift-interface';
import { CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface'; import type { CreateShiftPayload } from '../../types/timesheet-shifts-payload-interface';
const timesheet_store = useTimesheetStore(); const timesheet_store = useTimesheetStore();

View File

@ -2,7 +2,7 @@ import { useAuthStore } from "src/stores/auth-store";
import { useTimesheetStore } from "src/stores/timesheet-store" import { useTimesheetStore } from "src/stores/timesheet-store"
import { ref } from "vue"; import { ref } from "vue";
import { timesheetTempService } from "../services/timesheet-services"; import { timesheetTempService } from "../services/timesheet-services";
import { CreateShiftPayload } from "../types/timesheet-shifts-payload-interface"; import type { CreateShiftPayload } from "../types/timesheet-shifts-payload-interface";
export const useTimesheetApi = () => { export const useTimesheetApi = () => {

View File

@ -6,7 +6,7 @@ import { useI18n } from 'vue-i18n';
import TimesheetShiftForm from '../components/timesheet/timesheet-shift-form.vue'; import TimesheetShiftForm from '../components/timesheet/timesheet-shift-form.vue';
import TimesheetNavigation from '../components/timesheet/timesheet-navigation.vue'; import TimesheetNavigation from '../components/timesheet/timesheet-navigation.vue';
import { date as qdate } from 'quasar'; import { date as qdate } from 'quasar';
import { CreateShiftPayload } from '../types/timesheet-shifts-payload-interface'; import type { CreateShiftPayload } from '../types/timesheet-shifts-payload-interface';
const { locale } = useI18n(); const { locale } = useI18n();
const timesheet_store = useTimesheetStore(); const timesheet_store = useTimesheetStore();

View File

@ -1,6 +1,6 @@
import { api } from "src/boot/axios"; import { api } from "src/boot/axios";
import type {Timesheet} from "src/modules/timesheets/types/timesheet-interface"; import type {Timesheet} from "src/modules/timesheets/types/timesheet-interface";
import type { CreateShiftPayload, CreateWeekShiftPayload } from "../types/timesheet-shift-interface"; import type { CreateShiftPayload, CreateWeekShiftPayload } from "../types/timesheet-shifts-payload-interface";
export const timesheetTempService = { export const timesheetTempService = {
//GET //GET

View File

@ -2,12 +2,12 @@ import { defineStore } from 'pinia';
import { ref } from 'vue'; import { ref } from 'vue';
import { timesheetApprovalService } from 'src/modules/timesheet-approval/services/services-timesheet-approval'; import { timesheetApprovalService } from 'src/modules/timesheet-approval/services/services-timesheet-approval';
import { timesheetTempService } from 'src/modules/timesheets/services/timesheet-services'; import { timesheetTempService } from 'src/modules/timesheets/services/timesheet-services';
import { default_pay_period_employee_details, type PayPeriodEmployeeDetails } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-employee-details-interface';
import type { PayPeriod } from 'src/modules/shared/types/pay-period-interface'; import type { PayPeriod } from 'src/modules/shared/types/pay-period-interface';
import type { PayPeriodOverviewEmployee } from "src/modules/timesheet-approval/types/timesheet-approval-pay-period-overview-employee-interface"; import type { PayPeriodOverviewEmployee } from "src/modules/timesheet-approval/types/timesheet-approval-pay-period-overview-employee-interface";
import { default_pay_period_employee_details, type PayPeriodEmployeeDetails } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-employee-details-interface';
import type { PayPeriodReportFilters } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-report-interface'; import type { PayPeriodReportFilters } from 'src/modules/timesheet-approval/types/timesheet-approval-pay-period-report-interface';
import type { Timesheet } from 'src/modules/timesheets/types/timesheet-interface'; import type { Timesheet } from 'src/modules/timesheets/types/timesheet-interface';
import type { CreateShiftPayload } from 'src/modules/timesheets/types/timesheet-shift-interface'; import type{ CreateShiftPayload } from 'src/modules/timesheets/types/timesheet-shifts-payload-interface';
const default_pay_period: PayPeriod = { const default_pay_period: PayPeriod = {
pay_period_no: -1, pay_period_no: -1,