diff --git a/src/app/(protected)/(cadastros)/cadastros/(t_imovel)/imoveis/urbanos/page.tsx b/src/app/(protected)/(cadastros)/cadastros/(t_imovel)/imoveis/urbanos/page.tsx index 424f95d..52b4f0d 100644 --- a/src/app/(protected)/(cadastros)/cadastros/(t_imovel)/imoveis/urbanos/page.tsx +++ b/src/app/(protected)/(cadastros)/cadastros/(t_imovel)/imoveis/urbanos/page.tsx @@ -4,17 +4,17 @@ import { useEffect, useState, useCallback } from 'react'; import { Card, CardContent } from '@/components/ui/card'; import Loading from '@/app/_components/loading/loading'; -import TImovelTable from '../../../_components/t_imovel/TImovelTable'; -import TImovelForm from '../../../_components/t_imovel/TImovelForm'; +import TImovelTable from '@/packages/administrativo/components/t_imovel/TImovelTable'; +import TImovelForm from '@/packages/administrativo/components/t_imovel/TImovelForm'; -import { useTImovelIndexHook } from '../../../_hooks/t_imovel/useTImovelIndexHook'; -import { useTImovelSaveHook } from '../../../_hooks/t_imovel/useTImovelSaveHook'; -import { useTImovelDeleteHook } from '../../../_hooks/t_imovel/useTImovelDeleteHook'; +import { useTImovelIndexHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelIndexHook'; +import { useTImovelSaveHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelSaveHook'; +import { useTImovelDeleteHook } from '@/packages/administrativo/hooks/t_imovel/useTImovelDeleteHook'; import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog'; import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog'; -import TImovelInterface from '../../../_interfaces/TImovelInterface'; +import TImovelInterface from '@/packages/administrativo/interfaces/TImovelInterface'; import Header from '@/app/_components/structure/Header'; export default function TTBAndamentoServico() { diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelColumns.tsx b/src/packages/administrativo/components/t_imovel/TImovelColumns.tsx similarity index 98% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelColumns.tsx rename to src/packages/administrativo/components/t_imovel/TImovelColumns.tsx index 71a6181..f999aac 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelColumns.tsx +++ b/src/packages/administrativo/components/t_imovel/TImovelColumns.tsx @@ -1,5 +1,5 @@ import { ColumnDef } from "@tanstack/react-table"; -import TImovelInterface from "../../_interfaces/TImovelInterface"; +import TImovelInterface from "../../interfaces/TImovelInterface"; import { Button } from "@/components/ui/button"; import { EllipsisIcon, diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelForm.tsx b/src/packages/administrativo/components/t_imovel/TImovelForm.tsx similarity index 98% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelForm.tsx rename to src/packages/administrativo/components/t_imovel/TImovelForm.tsx index e3774ba..0638319 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelForm.tsx +++ b/src/packages/administrativo/components/t_imovel/TImovelForm.tsx @@ -24,7 +24,7 @@ import { } from '@/components/ui/form'; import { Input } from '@/components/ui/input'; -import { TImovelFormValues, TImovelSchema } from '../../_schemas/TImovelSchema'; +import { TImovelFormValues, TImovelSchema } from '../../schemas/TImovelSchema'; import LoadingButton from '@/app/_components/loadingButton/LoadingButton'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import { CheckIcon, ChevronsUpDownIcon, HouseIcon, IdCardIcon } from 'lucide-react'; @@ -34,7 +34,7 @@ import { ImovelTipoRegistro } from '@/enums/ImovelTipoRegistro'; import { ImovelTipoClasseEnum } from '@/enums/ImovelTipoClasseEnum'; import { ResetFormIfData } from '@/actions/form/ResetFormIfData'; import { TImovelFormProps } from './TImovelFormProps'; -import { useGTBBairroReadHook } from '../../_hooks/g_tb_bairro/useGTBBairroReadHook'; +import { useGTBBairroReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_bairro/useGTBBairroReadHook'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command'; import { cn } from '@/lib/utils'; diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelFormProps.ts b/src/packages/administrativo/components/t_imovel/TImovelFormProps.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelFormProps.ts rename to src/packages/administrativo/components/t_imovel/TImovelFormProps.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelTable.tsx b/src/packages/administrativo/components/t_imovel/TImovelTable.tsx similarity index 91% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelTable.tsx rename to src/packages/administrativo/components/t_imovel/TImovelTable.tsx index 45f6696..db08e6a 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel/TImovelTable.tsx +++ b/src/packages/administrativo/components/t_imovel/TImovelTable.tsx @@ -2,7 +2,7 @@ import { DataTable } from '@/app/_components/dataTable/DataTable'; import TImovelColumns from './TImovelColumns'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; +import TImovelInterface from '../../interfaces/TImovelInterface'; interface TImovelTableProps { data?: TImovelInterface[]; diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeColumns.tsx b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeColumns.tsx similarity index 97% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeColumns.tsx rename to src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeColumns.tsx index ac1657e..486c30c 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeColumns.tsx +++ b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeColumns.tsx @@ -1,5 +1,5 @@ import { ColumnDef } from "@tanstack/react-table"; -import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface"; +import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface"; import { Button } from "@/components/ui/button"; import { EllipsisIcon, diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeForm.tsx b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeForm.tsx similarity index 99% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeForm.tsx rename to src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeForm.tsx index 1648914..89f5174 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeForm.tsx +++ b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeForm.tsx @@ -25,9 +25,9 @@ import { import { Input } from '@/components/ui/input'; import LoadingButton from '@/app/_components/loadingButton/LoadingButton'; -import { TImovelUnidadeFormValues, TImovelUnidadeSchema } from '../../_schemas/TImovelUnidadeSchema'; +import { TImovelUnidadeFormValues, TImovelUnidadeSchema } from '../../schemas/TImovelUnidadeSchema'; import TImovelUnidadeProps from './TImovelUnidadeFormProps'; -import { useGTBTipoLogradouroReadHook } from '../../_hooks/g_tb_tipologradouro/useGTBTipoLogradouroReadHook'; +import { useGTBTipoLogradouroReadHook } from '../../../../app/(protected)/(cadastros)/cadastros/_hooks/g_tb_tipologradouro/useGTBTipoLogradouroReadHook'; import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '@/components/ui/command'; diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeFormProps.ts b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeFormProps.ts similarity index 76% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeFormProps.ts rename to src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeFormProps.ts index 032744e..9df2ab7 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeFormProps.ts +++ b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeFormProps.ts @@ -1,4 +1,4 @@ -import { TImovelUnidadeFormValues } from "../../_schemas/TImovelUnidadeSchema"; +import { TImovelUnidadeFormValues } from "../../schemas/TImovelUnidadeSchema"; export default interface TImovelUnidadeProps { isOpen: boolean; diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadePage.tsx b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadePage.tsx similarity index 91% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadePage.tsx rename to src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadePage.tsx index cfc5372..025a1e3 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadePage.tsx +++ b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadePage.tsx @@ -6,14 +6,14 @@ import Loading from '@/app/_components/loading/loading'; import TImovelUnidadeTable from './TImovelUnidadeTable'; import TImovelUnidadeForm from './TImovelUnidadeForm'; -import { useTImovelUnidadeIndexHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeIndexHook'; -import { useTImovelUnidadeSaveHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeSaveHook'; -import { useTImovelUnidadeDeleteHook } from '../.././_hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook'; +import { useTImovelUnidadeIndexHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeIndexHook'; +import { useTImovelUnidadeSaveHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeSaveHook'; +import { useTImovelUnidadeDeleteHook } from '../../hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook'; import ConfirmDialog from '@/app/_components/confirm_dialog/ConfirmDialog'; import { useConfirmDialog } from '@/app/_components/confirm_dialog/useConfirmDialog'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; import Header from '@/app/_components/structure/Header'; export default function TImovelUnidadePage() { diff --git a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeTable.tsx b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeTable.tsx similarity index 91% rename from src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeTable.tsx rename to src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeTable.tsx index 6c49ecf..b7323fe 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_components/t_imovel_unidade/TImovelUnidadeTable.tsx +++ b/src/packages/administrativo/components/t_imovel_unidade/TImovelUnidadeTable.tsx @@ -1,7 +1,7 @@ 'use client'; import { DataTable } from '@/app/_components/dataTable/DataTable'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; import TImovelUnidadeColumns from './TImovelUnidadeColumns'; interface TImovelUnidadeTableProps { diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelDeleteData.ts b/src/packages/administrativo/data/TImovel/TImovelDeleteData.ts similarity index 83% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelDeleteData.ts rename to src/packages/administrativo/data/TImovel/TImovelDeleteData.ts index 4f8248a..ef3be0c 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelDeleteData.ts +++ b/src/packages/administrativo/data/TImovel/TImovelDeleteData.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler"; -import TImovelInterface from "../../_interfaces/TImovelInterface"; +import TImovelInterface from "../../interfaces/TImovelInterface"; async function executeTImovelDeleteData(data: TImovelInterface) { diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelIndexData.ts b/src/packages/administrativo/data/TImovel/TImovelIndexData.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelIndexData.ts rename to src/packages/administrativo/data/TImovel/TImovelIndexData.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelSaveData.ts b/src/packages/administrativo/data/TImovel/TImovelSaveData.ts similarity index 86% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelSaveData.ts rename to src/packages/administrativo/data/TImovel/TImovelSaveData.ts index bb37d2f..34b6bc0 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/TImovel/TImovelSaveData.ts +++ b/src/packages/administrativo/data/TImovel/TImovelSaveData.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler"; -import TImovelInterface from "../../_interfaces/TImovelInterface"; +import TImovelInterface from "../../interfaces/TImovelInterface"; async function executeTImovelSaveData(data: TImovelInterface) { diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeDeleteData.ts b/src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeDeleteData.ts similarity index 82% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeDeleteData.ts rename to src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeDeleteData.ts index bda2703..c695584 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeDeleteData.ts +++ b/src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeDeleteData.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler"; -import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface"; +import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface"; async function executeTImovelUnidadeDeleteData(data: TImovelUnidadeInterface) { diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeIndexData.ts b/src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeIndexData.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeIndexData.ts rename to src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeIndexData.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeSaveData.ts b/src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeSaveData.ts similarity index 81% rename from src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeSaveData.ts rename to src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeSaveData.ts index 48a305a..7515972 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_data/TImovelUnidade/TImovelUnidadeSaveData.ts +++ b/src/packages/administrativo/data/TImovelUnidade/TImovelUnidadeSaveData.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from "@/actions/withClientErrorHandler/withClientErrorHandler"; -import TImovelUnidadeInterface from "../../_interfaces/TImovelUnidadeInterface"; +import TImovelUnidadeInterface from "../../interfaces/TImovelUnidadeInterface"; async function executeTImovelUnidadeSaveData(data: TImovelUnidadeInterface) { diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelDeleteHook.ts b/src/packages/administrativo/hooks/t_imovel/useTImovelDeleteHook.ts similarity index 75% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelDeleteHook.ts rename to src/packages/administrativo/hooks/t_imovel/useTImovelDeleteHook.ts index 78d9577..620ff87 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelDeleteHook.ts +++ b/src/packages/administrativo/hooks/t_imovel/useTImovelDeleteHook.ts @@ -1,7 +1,7 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; -import { TImovelDeleteService } from '../../_services/t_imovel/TImovelDeleteService'; +import TImovelInterface from '../../interfaces/TImovelInterface'; +import { TImovelDeleteService } from '../../services/t_imovel/TImovelDeleteService'; export const useTImovelDeleteHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelIndexHook.ts b/src/packages/administrativo/hooks/t_imovel/useTImovelIndexHook.ts similarity index 80% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelIndexHook.ts rename to src/packages/administrativo/hooks/t_imovel/useTImovelIndexHook.ts index 91b0b33..ee83fb7 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelIndexHook.ts +++ b/src/packages/administrativo/hooks/t_imovel/useTImovelIndexHook.ts @@ -2,8 +2,8 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; -import { TImovelIndexData } from '../../_data/TImovel/TImovelIndexData'; +import TImovelInterface from '../../interfaces/TImovelInterface'; +import { TImovelIndexData } from '../../data/TImovel/TImovelIndexData'; export const useTImovelIndexHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelSaveHook.ts b/src/packages/administrativo/hooks/t_imovel/useTImovelSaveHook.ts similarity index 84% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelSaveHook.ts rename to src/packages/administrativo/hooks/t_imovel/useTImovelSaveHook.ts index 75f37c6..710419b 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel/useTImovelSaveHook.ts +++ b/src/packages/administrativo/hooks/t_imovel/useTImovelSaveHook.ts @@ -2,8 +2,8 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; -import { TImovelSaveService } from '../../_services/t_imovel/TImovelSaveService'; +import TImovelInterface from '../../interfaces/TImovelInterface'; +import { TImovelSaveService } from '../../services/t_imovel/TImovelSaveService'; export const useTImovelSaveHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts similarity index 75% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts rename to src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts index 84b6fb0..19fb252 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts +++ b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeDeleteHook.ts @@ -1,7 +1,7 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; -import { TImovelDeleteService } from '../../_services/t_imovel/TImovelDeleteService'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; +import { TImovelDeleteService } from '../../services/t_imovel/TImovelDeleteService'; export const useTImovelUnidadeDeleteHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts similarity index 78% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts rename to src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts index 1a38494..2e854c6 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts +++ b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeIndexHook.ts @@ -2,8 +2,8 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; -import { TImovelUnidadeIndexData } from '../../_data/TImovelUnidade/TImovelUnidadeIndexData'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; +import { TImovelUnidadeIndexData } from '../../data/TImovelUnidade/TImovelUnidadeIndexData'; export const useTImovelUnidadeIndexHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts similarity index 82% rename from src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts rename to src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts index efa5c5d..d7509fe 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts +++ b/src/packages/administrativo/hooks/t_imovel_unidade/useTImovelUnidadeSaveHook.ts @@ -2,8 +2,8 @@ import { useResponse } from '@/app/_response/ResponseContext'; import { useState } from 'react'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; -import { TImovelUnidadeSaveService } from '../../_services/t_imovel_unidade/TImovelUnidadeSaveService'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; +import { TImovelUnidadeSaveService } from '../../services/t_imovel_unidade/TImovelUnidadeSaveService'; export const useTImovelUnidadeSaveHook = () => { const { setResponse } = useResponse(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_interfaces/TImovelInterface.ts b/src/packages/administrativo/interfaces/TImovelInterface.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_interfaces/TImovelInterface.ts rename to src/packages/administrativo/interfaces/TImovelInterface.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_interfaces/TImovelUnidadeInterface.ts b/src/packages/administrativo/interfaces/TImovelUnidadeInterface.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_interfaces/TImovelUnidadeInterface.ts rename to src/packages/administrativo/interfaces/TImovelUnidadeInterface.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_schemas/TImovelSchema.ts b/src/packages/administrativo/schemas/TImovelSchema.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_schemas/TImovelSchema.ts rename to src/packages/administrativo/schemas/TImovelSchema.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_schemas/TImovelUnidadeSchema.ts b/src/packages/administrativo/schemas/TImovelUnidadeSchema.ts similarity index 100% rename from src/app/(protected)/(cadastros)/cadastros/_schemas/TImovelUnidadeSchema.ts rename to src/packages/administrativo/schemas/TImovelUnidadeSchema.ts diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelDeleteService.ts b/src/packages/administrativo/services/t_imovel/TImovelDeleteService.ts similarity index 69% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelDeleteService.ts rename to src/packages/administrativo/services/t_imovel/TImovelDeleteService.ts index da4ae95..895794e 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelDeleteService.ts +++ b/src/packages/administrativo/services/t_imovel/TImovelDeleteService.ts @@ -1,6 +1,6 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import { TImovelDeleteData } from '../../_data/TImovel/TImovelDeleteData'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; +import { TImovelDeleteData } from '../../data/TImovel/TImovelDeleteData'; +import TImovelInterface from '../../interfaces/TImovelInterface'; async function executeTImovelDeleteService(data: TImovelInterface) { const response = await TImovelDeleteData(data); diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelIndexService.ts b/src/packages/administrativo/services/t_imovel/TImovelIndexService.ts similarity index 81% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelIndexService.ts rename to src/packages/administrativo/services/t_imovel/TImovelIndexService.ts index c0f5754..f392a20 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelIndexService.ts +++ b/src/packages/administrativo/services/t_imovel/TImovelIndexService.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import { TImovelIndexData } from '../../_data/TImovel/TImovelIndexData'; +import { TImovelIndexData } from '../../data/TImovel/TImovelIndexData'; export default async function executeTImovelIndexService() { const response = await TImovelIndexData(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelSaveService.ts b/src/packages/administrativo/services/t_imovel/TImovelSaveService.ts similarity index 69% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelSaveService.ts rename to src/packages/administrativo/services/t_imovel/TImovelSaveService.ts index c85effd..82ffce0 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel/TImovelSaveService.ts +++ b/src/packages/administrativo/services/t_imovel/TImovelSaveService.ts @@ -1,6 +1,6 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import { TImovelSaveData } from '../../_data/TImovel/TImovelSaveData'; -import TImovelInterface from '../../_interfaces/TImovelInterface'; +import { TImovelSaveData } from '../../data/TImovel/TImovelSaveData'; +import TImovelInterface from '../../interfaces/TImovelInterface'; async function executeTImovelSaveService(data: TImovelInterface) { const response = await TImovelSaveData(data); diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeDeleteService.ts b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeDeleteService.ts similarity index 67% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeDeleteService.ts rename to src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeDeleteService.ts index 7df9afc..0b5553f 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeDeleteService.ts +++ b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeDeleteService.ts @@ -1,6 +1,6 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; -import { TImovelUnidadeDeleteData } from '../../_data/TImovelUnidade/TImovelUnidadeDeleteData'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; +import { TImovelUnidadeDeleteData } from '../../data/TImovelUnidade/TImovelUnidadeDeleteData'; async function executeTImovelUnidadeDeleteService(data: TImovelUnidadeInterface) { const response = await TImovelUnidadeDeleteData(data); diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeIndexService.ts b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeIndexService.ts similarity index 78% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeIndexService.ts rename to src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeIndexService.ts index e2a9fac..31eba39 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeIndexService.ts +++ b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeIndexService.ts @@ -1,5 +1,5 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import { TImovelUnidadeIndexData } from '../../_data/TImovelUnidade/TImovelUnidadeIndexData'; +import { TImovelUnidadeIndexData } from '../../data/TImovelUnidade/TImovelUnidadeIndexData'; export default async function executeTImovelUnidadeIndexService() { const response = await TImovelUnidadeIndexData(); diff --git a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeSaveService.ts b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeSaveService.ts similarity index 67% rename from src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeSaveService.ts rename to src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeSaveService.ts index cd8b928..cf786c0 100644 --- a/src/app/(protected)/(cadastros)/cadastros/_services/t_imovel_unidade/TImovelUnidadeSaveService.ts +++ b/src/packages/administrativo/services/t_imovel_unidade/TImovelUnidadeSaveService.ts @@ -1,6 +1,6 @@ import { withClientErrorHandler } from '@/actions/withClientErrorHandler/withClientErrorHandler'; -import TImovelUnidadeInterface from '../../_interfaces/TImovelUnidadeInterface'; -import { TImovelUnidadeSaveData } from '../../_data/TImovelUnidade/TImovelUnidadeSaveData'; +import TImovelUnidadeInterface from '../../interfaces/TImovelUnidadeInterface'; +import { TImovelUnidadeSaveData } from '../../data/TImovelUnidade/TImovelUnidadeSaveData'; async function executeTImovelUnidadeSaveService(data: TImovelUnidadeInterface) { const response = await TImovelUnidadeSaveData(data);