feat: change the controllers tags

This commit is contained in:
Ahmed Bouhuolia
2025-06-13 01:57:53 +02:00
parent ff93168d72
commit bcae2dae03
63 changed files with 77 additions and 71 deletions

View File

@@ -15,7 +15,7 @@ import { IAccountsFilter, IAccountsTransactionsFilter } from './Accounts.types';
import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger';
@Controller('accounts') @Controller('accounts')
@ApiTags('accounts') @ApiTags('Accounts')
export class AccountsController { export class AccountsController {
constructor(private readonly accountsApplication: AccountsApplication) {} constructor(private readonly accountsApplication: AccountsApplication) {}

View File

@@ -14,7 +14,7 @@ import { CreateBankRuleDto } from './dtos/BankRule.dto';
import { EditBankRuleDto } from './dtos/BankRule.dto'; import { EditBankRuleDto } from './dtos/BankRule.dto';
@Controller('banking/rules') @Controller('banking/rules')
@ApiTags('bank-rules') @ApiTags('Bank Rules')
export class BankRulesController { export class BankRulesController {
constructor(private readonly bankRulesApplication: BankRulesApplication) {} constructor(private readonly bankRulesApplication: BankRulesApplication) {}

View File

@@ -4,7 +4,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { ICashflowAccountsFilter } from './types/BankAccounts.types'; import { ICashflowAccountsFilter } from './types/BankAccounts.types';
@Controller('banking/accounts') @Controller('banking/accounts')
@ApiTags('banking-accounts') @ApiTags('Bank Accounts')
export class BankAccountsController { export class BankAccountsController {
constructor(private bankAccountsApplication: BankAccountsApplication) {} constructor(private bankAccountsApplication: BankAccountsApplication) {}

View File

@@ -5,7 +5,7 @@ import { CategorizeBankTransactionRouteDto } from './dtos/CategorizeBankTransact
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
@Controller('banking/categorize') @Controller('banking/categorize')
@ApiTags('banking-categorization') @ApiTags('Banking Categorization')
export class BankingCategorizeController { export class BankingCategorizeController {
constructor( constructor(
private readonly bankingCategorizeApplication: BankingCategorizeApplication, private readonly bankingCategorizeApplication: BankingCategorizeApplication,

View File

@@ -5,7 +5,7 @@ import { GetMatchedTransactionsFilter } from './types';
import { MatchBankTransactionDto } from './dtos/MatchBankTransaction.dto'; import { MatchBankTransactionDto } from './dtos/MatchBankTransaction.dto';
@Controller('banking/matching') @Controller('banking/matching')
@ApiTags('banking-transactions-matching') @ApiTags('Banking Transactions Matching')
export class BankingMatchingController { export class BankingMatchingController {
constructor( constructor(
private readonly bankingMatchingApplication: BankingMatchingApplication, private readonly bankingMatchingApplication: BankingMatchingApplication,

View File

@@ -4,7 +4,7 @@ import { PlaidItemDto } from './dtos/PlaidItem.dto';
import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('banking/plaid') @Controller('banking/plaid')
@ApiTags('banking-plaid') @ApiTags('Banking Plaid')
export class BankingPlaidController { export class BankingPlaidController {
constructor(private readonly plaidApplication: PlaidApplication) {} constructor(private readonly plaidApplication: PlaidApplication) {}

View File

@@ -3,7 +3,7 @@ import { ApiTags } from '@nestjs/swagger';
import { RecognizedTransactionsApplication } from './RecognizedTransactions.application'; import { RecognizedTransactionsApplication } from './RecognizedTransactions.application';
@Controller('banking/recognized') @Controller('banking/recognized')
@ApiTags('banking-recognized') @ApiTags('Banking Recognized Transactions')
export class BankingRecognizedTransactionsController { export class BankingRecognizedTransactionsController {
constructor( constructor(
private readonly recognizedTransactionsApplication: RecognizedTransactionsApplication, private readonly recognizedTransactionsApplication: RecognizedTransactionsApplication,

View File

@@ -4,7 +4,7 @@ import { BankingTransactionsApplication } from '../BankingTransactionsApplicatio
import { GetPendingTransactionsQueryDto } from '../dtos/GetPendingTransactionsQuery.dto'; import { GetPendingTransactionsQueryDto } from '../dtos/GetPendingTransactionsQuery.dto';
@Controller('banking/pending') @Controller('banking/pending')
@ApiTags('banking-pending') @ApiTags('Banking Pending Transactions')
export class BankingPendingTransactionsController { export class BankingPendingTransactionsController {
constructor( constructor(
private readonly bankingTransactionsApplication: BankingTransactionsApplication, private readonly bankingTransactionsApplication: BankingTransactionsApplication,

View File

@@ -13,7 +13,7 @@ import { CreateBankTransactionDto } from '../dtos/CreateBankTransaction.dto';
import { GetBankTransactionsQueryDto } from '../dtos/GetBankTranasctionsQuery.dto'; import { GetBankTransactionsQueryDto } from '../dtos/GetBankTranasctionsQuery.dto';
@Controller('banking/transactions') @Controller('banking/transactions')
@ApiTags('banking-transactions') @ApiTags('Banking Transactions')
export class BankingTransactionsController { export class BankingTransactionsController {
constructor( constructor(
private readonly bankingTransactionsApplication: BankingTransactionsApplication, private readonly bankingTransactionsApplication: BankingTransactionsApplication,

View File

@@ -10,7 +10,7 @@ import { GetUncategorizedTransactionsQueryDto } from '../dtos/GetUncategorizedTr
import { BankingTransactionsApplication } from '../BankingTransactionsApplication.service'; import { BankingTransactionsApplication } from '../BankingTransactionsApplication.service';
@Controller('banking/uncategorized') @Controller('banking/uncategorized')
@ApiTags('banking-uncategorized') @ApiTags('Banking Uncategorized Transactions')
export class BankingUncategorizedTransactionsController { export class BankingUncategorizedTransactionsController {
constructor( constructor(
private readonly bankingTransactionsApplication: BankingTransactionsApplication, private readonly bankingTransactionsApplication: BankingTransactionsApplication,

View File

@@ -13,7 +13,7 @@ import { ExcludedBankTransactionsQuery } from './types/BankTransactionsExclude.t
import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('banking/exclude') @Controller('banking/exclude')
@ApiTags('banking-transactions') @ApiTags('Banking Transactions')
export class BankingTransactionsExcludeController { export class BankingTransactionsExcludeController {
constructor( constructor(
private readonly excludeBankTransactionsApplication: ExcludeBankTransactionsApplication, private readonly excludeBankTransactionsApplication: ExcludeBankTransactionsApplication,

View File

@@ -18,7 +18,7 @@ import { GetBillPaymentsFilterDto } from './dtos/GetBillPaymentsFilter.dto';
import { BillPaymentsPages } from './commands/BillPaymentsPages.service'; import { BillPaymentsPages } from './commands/BillPaymentsPages.service';
@Controller('bill-payments') @Controller('bill-payments')
@ApiTags('bill-payments') @ApiTags('Bill Payments')
export class BillPaymentsController { export class BillPaymentsController {
constructor( constructor(
private billPaymentsApplication: BillPaymentsApplication, private billPaymentsApplication: BillPaymentsApplication,

View File

@@ -14,7 +14,7 @@ import { IBillsFilter } from './Bills.types';
import { CreateBillDto, EditBillDto } from './dtos/Bill.dto'; import { CreateBillDto, EditBillDto } from './dtos/Bill.dto';
@Controller('bills') @Controller('bills')
@ApiTags('bills') @ApiTags('Bills')
export class BillsController { export class BillsController {
constructor(private billsApplication: BillsApplication) {} constructor(private billsApplication: BillsApplication) {}

View File

@@ -12,7 +12,7 @@ import { CreateBranchDto, EditBranchDto } from './dtos/Branch.dto';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
@Controller('branches') @Controller('branches')
@ApiTags('branches') @ApiTags('Branches')
export class BranchesController { export class BranchesController {
constructor(private readonly branchesApplication: BranchesApplication) {} constructor(private readonly branchesApplication: BranchesApplication) {}

View File

@@ -13,7 +13,7 @@ import { ActivateContactService } from './commands/ActivateContact.service';
import { InactivateContactService } from './commands/InactivateContact.service'; import { InactivateContactService } from './commands/InactivateContact.service';
@Controller('contacts') @Controller('contacts')
@ApiTags('contacts') @ApiTags('Contacts')
export class ContactsController { export class ContactsController {
constructor( constructor(
private readonly getAutoCompleteService: GetAutoCompleteContactsService, private readonly getAutoCompleteService: GetAutoCompleteContactsService,

View File

@@ -3,7 +3,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { GetCreditNoteAssociatedAppliedInvoices } from './queries/GetCreditNoteAssociatedAppliedInvoices.service'; import { GetCreditNoteAssociatedAppliedInvoices } from './queries/GetCreditNoteAssociatedAppliedInvoices.service';
@Controller('credit-notes') @Controller('credit-notes')
@ApiTags('credit-notes-apply-invoice') @ApiTags('Credit Notes Apply Invoice')
export class CreditNotesApplyInvoiceController { export class CreditNotesApplyInvoiceController {
constructor( constructor(
private readonly getCreditNoteAssociatedAppliedInvoicesService: GetCreditNoteAssociatedAppliedInvoices, private readonly getCreditNoteAssociatedAppliedInvoicesService: GetCreditNoteAssociatedAppliedInvoices,

View File

@@ -21,7 +21,7 @@ import { CurrenciesApplication } from './CurrenciesApplication.service';
import { CreateCurrencyDto } from './dtos/CreateCurrency.dto'; import { CreateCurrencyDto } from './dtos/CreateCurrency.dto';
import { EditCurrencyDto } from './dtos/EditCurrency.dto'; import { EditCurrencyDto } from './dtos/EditCurrency.dto';
@ApiTags('currencies') @ApiTags('Currencies')
@Controller('/currencies') @Controller('/currencies')
export class CurrenciesController { export class CurrenciesController {
constructor(private readonly currenciesApp: CurrenciesApplication) {} constructor(private readonly currenciesApp: CurrenciesApplication) {}

View File

@@ -18,7 +18,7 @@ import { CreateCustomerDto } from './dtos/CreateCustomer.dto';
import { EditCustomerDto } from './dtos/EditCustomer.dto'; import { EditCustomerDto } from './dtos/EditCustomer.dto';
@Controller('customers') @Controller('customers')
@ApiTags('customers') @ApiTags('Customers')
export class CustomersController { export class CustomersController {
constructor(private customersApplication: CustomersApplication) {} constructor(private customersApplication: CustomersApplication) {}

View File

@@ -2,7 +2,7 @@ import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
import { Controller, Get } from '@nestjs/common'; import { Controller, Get } from '@nestjs/common';
import { DashboardService } from './Dashboard.service'; import { DashboardService } from './Dashboard.service';
@ApiTags('dashboard') @ApiTags('Dashboard')
@Controller('dashboard') @Controller('dashboard')
export class DashboardController { export class DashboardController {
constructor(private readonly dashboardService: DashboardService) {} constructor(private readonly dashboardService: DashboardService) {}

View File

@@ -14,7 +14,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { CreateExpenseDto, EditExpenseDto } from './dtos/Expense.dto'; import { CreateExpenseDto, EditExpenseDto } from './dtos/Expense.dto';
@Controller('expenses') @Controller('expenses')
@ApiTags('expenses') @ApiTags('Expenses')
export class ExpensesController { export class ExpensesController {
constructor(private readonly expensesApplication: ExpensesApplication) {} constructor(private readonly expensesApplication: ExpensesApplication) {}

View File

@@ -7,7 +7,7 @@ import { ExportResourceService } from './ExportService';
import { convertAcceptFormatToFormat } from './Export.utils'; import { convertAcceptFormatToFormat } from './Export.utils';
@Controller('/export') @Controller('/export')
@ApiTags('export') @ApiTags('Export')
export class ExportController { export class ExportController {
constructor(private readonly exportResourceApp: ExportResourceService) {} constructor(private readonly exportResourceApp: ExportResourceService) {}

View File

@@ -7,7 +7,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { APAgingSummaryQueryDto } from './APAgingSummaryQuery.dto'; import { APAgingSummaryQueryDto } from './APAgingSummaryQuery.dto';
@Controller('reports/payable-aging-summary') @Controller('reports/payable-aging-summary')
@ApiTags('reports') @ApiTags('Reports')
export class APAgingSummaryController { export class APAgingSummaryController {
constructor(private readonly APAgingSummaryApp: APAgingSummaryApplication) {} constructor(private readonly APAgingSummaryApp: APAgingSummaryApplication) {}

View File

@@ -7,7 +7,7 @@ import { Response } from 'express';
import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('reports/receivable-aging-summary') @Controller('reports/receivable-aging-summary')
@ApiTags('reports') @ApiTags('Reports')
export class ARAgingSummaryController { export class ARAgingSummaryController {
constructor(private readonly ARAgingSummaryApp: ARAgingSummaryApplication) {} constructor(private readonly ARAgingSummaryApp: ARAgingSummaryApplication) {}

View File

@@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { BalanceSheetQueryDto } from './BalanceSheet.dto'; import { BalanceSheetQueryDto } from './BalanceSheet.dto';
@Controller('/reports/balance-sheet') @Controller('/reports/balance-sheet')
@ApiTags('reports') @ApiTags('Reports')
export class BalanceSheetStatementController { export class BalanceSheetStatementController {
constructor(private readonly balanceSheetApp: BalanceSheetApplication) {} constructor(private readonly balanceSheetApp: BalanceSheetApplication) {}

View File

@@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { CashFlowStatementQueryDto } from './CashFlowStatementQuery.dto'; import { CashFlowStatementQueryDto } from './CashFlowStatementQuery.dto';
@Controller('reports/cashflow-statement') @Controller('reports/cashflow-statement')
@ApiTags('reports') @ApiTags('Reports')
export class CashflowController { export class CashflowController {
constructor(private readonly cashflowSheetApp: CashflowSheetApplication) {} constructor(private readonly cashflowSheetApp: CashflowSheetApplication) {}

View File

@@ -6,7 +6,7 @@ import { CustomerBalanceSummaryQueryDto } from './CustomerBalanceSummaryQuery.dt
import { AcceptType } from '@/constants/accept-type'; import { AcceptType } from '@/constants/accept-type';
@Controller('/reports/customer-balance-summary') @Controller('/reports/customer-balance-summary')
@ApiTags('reports') @ApiTags('Reports')
export class CustomerBalanceSummaryController { export class CustomerBalanceSummaryController {
constructor( constructor(
private readonly customerBalanceSummaryApp: CustomerBalanceSummaryApplication, private readonly customerBalanceSummaryApp: CustomerBalanceSummaryApplication,

View File

@@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type';
import { GeneralLedgerQueryDto } from './GeneralLedgerQuery.dto'; import { GeneralLedgerQueryDto } from './GeneralLedgerQuery.dto';
@Controller('/reports/general-ledger') @Controller('/reports/general-ledger')
@ApiTags('reports') @ApiTags('Reports')
export class GeneralLedgerController { export class GeneralLedgerController {
constructor( constructor(
private readonly generalLedgerApplication: GeneralLedgerApplication, private readonly generalLedgerApplication: GeneralLedgerApplication,

View File

@@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type';
import { InventoryItemDetailsQueryDto } from './InventoryItemDetailsQuery.dto'; import { InventoryItemDetailsQueryDto } from './InventoryItemDetailsQuery.dto';
@Controller('reports/inventory-item-details') @Controller('reports/inventory-item-details')
@ApiTags('reports') @ApiTags('Reports')
export class InventoryItemDetailsController { export class InventoryItemDetailsController {
constructor( constructor(
private readonly inventoryItemDetailsApp: InventoryItemDetailsApplication, private readonly inventoryItemDetailsApp: InventoryItemDetailsApplication,

View File

@@ -6,7 +6,7 @@ import { InventoryValuationQueryDto } from './InventoryValuationQuery.dto';
import { AcceptType } from '@/constants/accept-type'; import { AcceptType } from '@/constants/accept-type';
@Controller('reports/inventory-valuation') @Controller('reports/inventory-valuation')
@ApiTags('reports') @ApiTags('Reports')
export class InventoryValuationController { export class InventoryValuationController {
constructor( constructor(
private readonly inventoryValuationApp: InventoryValuationSheetApplication, private readonly inventoryValuationApp: InventoryValuationSheetApplication,

View File

@@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { JournalSheetQueryDto } from './JournalSheetQuery.dto'; import { JournalSheetQueryDto } from './JournalSheetQuery.dto';
@Controller('/reports/journal') @Controller('/reports/journal')
@ApiTags('reports') @ApiTags('Reports')
export class JournalSheetController { export class JournalSheetController {
constructor(private readonly journalSheetApp: JournalSheetApplication) {} constructor(private readonly journalSheetApp: JournalSheetApplication) {}

View File

@@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { ProfitLossSheetQueryDto } from './ProfitLossSheetQuery.dto'; import { ProfitLossSheetQueryDto } from './ProfitLossSheetQuery.dto';
@Controller('/reports/profit-loss-sheet') @Controller('/reports/profit-loss-sheet')
@ApiTags('reports') @ApiTags('Reports')
export class ProfitLossSheetController { export class ProfitLossSheetController {
constructor( constructor(
private readonly profitLossSheetApp: ProfitLossSheetApplication, private readonly profitLossSheetApp: ProfitLossSheetApplication,

View File

@@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { PurchasesByItemsQueryDto } from './PurchasesByItemsQuery.dto'; import { PurchasesByItemsQueryDto } from './PurchasesByItemsQuery.dto';
@Controller('/reports/purchases-by-items') @Controller('/reports/purchases-by-items')
@ApiTags('reports') @ApiTags('Reports')
export class PurchasesByItemReportController { export class PurchasesByItemReportController {
constructor( constructor(
private readonly purchasesByItemsApp: PurchasesByItemsApplication, private readonly purchasesByItemsApp: PurchasesByItemsApplication,

View File

@@ -15,7 +15,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { SalesByItemsQueryDto } from './SalesByItemsQuery.dto'; import { SalesByItemsQueryDto } from './SalesByItemsQuery.dto';
@Controller('/reports/sales-by-items') @Controller('/reports/sales-by-items')
@ApiTags('reports') @ApiTags('Reports')
export class SalesByItemsController { export class SalesByItemsController {
constructor(private readonly salesByItemsApp: SalesByItemsApplication) {} constructor(private readonly salesByItemsApp: SalesByItemsApplication) {}

View File

@@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type';
import { SalesTaxLiabilitySummaryApplication } from './SalesTaxLiabilitySummaryApplication'; import { SalesTaxLiabilitySummaryApplication } from './SalesTaxLiabilitySummaryApplication';
@Controller('/reports/sales-tax-liability-summary') @Controller('/reports/sales-tax-liability-summary')
@ApiTags('reports') @ApiTags('Reports')
export class SalesTaxLiabilitySummaryController { export class SalesTaxLiabilitySummaryController {
constructor( constructor(
private readonly salesTaxLiabilitySummaryApp: SalesTaxLiabilitySummaryApplication, private readonly salesTaxLiabilitySummaryApp: SalesTaxLiabilitySummaryApplication,

View File

@@ -7,7 +7,7 @@ import { Response } from 'express';
import { TransactionsByCustomerQueryDto } from './TransactionsByCustomerQuery.dto'; import { TransactionsByCustomerQueryDto } from './TransactionsByCustomerQuery.dto';
@Controller('/reports/transactions-by-customers') @Controller('/reports/transactions-by-customers')
@ApiTags('reports') @ApiTags('Reports')
export class TransactionsByCustomerController { export class TransactionsByCustomerController {
constructor( constructor(
private readonly transactionsByCustomersApp: TransactionsByCustomerApplication, private readonly transactionsByCustomersApp: TransactionsByCustomerApplication,

View File

@@ -4,7 +4,7 @@ import { ITransactionsByReferenceQuery } from './TransactionsByReference.types';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
@Controller('reports/transactions-by-reference') @Controller('reports/transactions-by-reference')
@ApiTags('reports') @ApiTags('Reports')
export class TransactionsByReferenceController { export class TransactionsByReferenceController {
constructor( constructor(
private readonly transactionsByReferenceApp: TransactionsByReferenceApplication, private readonly transactionsByReferenceApp: TransactionsByReferenceApplication,

View File

@@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { TransactionsByVendorQueryDto } from './TransactionsByVendorQuery.dto'; import { TransactionsByVendorQueryDto } from './TransactionsByVendorQuery.dto';
@Controller('/reports/transactions-by-vendors') @Controller('/reports/transactions-by-vendors')
@ApiTags('reports') @ApiTags('Reports')
export class TransactionsByVendorController { export class TransactionsByVendorController {
constructor( constructor(
private readonly transactionsByVendorsApp: TransactionsByVendorApplication, private readonly transactionsByVendorsApp: TransactionsByVendorApplication,

View File

@@ -7,7 +7,7 @@ import { TrialBalanceSheetApplication } from './TrialBalanceSheetApplication';
import { TrialBalanceSheetQueryDto } from './TrialBalanceSheetQuery.dto'; import { TrialBalanceSheetQueryDto } from './TrialBalanceSheetQuery.dto';
@Controller('reports/trial-balance-sheet') @Controller('reports/trial-balance-sheet')
@ApiTags('reports') @ApiTags('Reports')
export class TrialBalanceSheetController { export class TrialBalanceSheetController {
constructor( constructor(
private readonly trialBalanceSheetApp: TrialBalanceSheetApplication, private readonly trialBalanceSheetApp: TrialBalanceSheetApplication,

View File

@@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { VendorBalanceSummaryQueryDto } from './VendorBalanceSummaryQuery.dto'; import { VendorBalanceSummaryQueryDto } from './VendorBalanceSummaryQuery.dto';
@Controller('/reports/vendor-balance-summary') @Controller('/reports/vendor-balance-summary')
@ApiTags('reports') @ApiTags('Reports')
export class VendorBalanceSummaryController { export class VendorBalanceSummaryController {
constructor( constructor(
private readonly vendorBalanceSummaryApp: VendorBalanceSummaryApplication, private readonly vendorBalanceSummaryApp: VendorBalanceSummaryApplication,

View File

@@ -18,7 +18,7 @@ import { uploadImportFileMulterOptions } from './ImportMulter.utils';
import { parseJsonSafe } from '@/utils/parse-json'; import { parseJsonSafe } from '@/utils/parse-json';
@Controller('import') @Controller('import')
@ApiTags('import') @ApiTags('Import')
export class ImportController { export class ImportController {
constructor(private readonly importResourceApp: ImportResourceApplication) {} constructor(private readonly importResourceApp: ImportResourceApplication) {}

View File

@@ -1,3 +1,4 @@
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { import {
Body, Body,
Controller, Controller,
@@ -11,12 +12,10 @@ import {
import { InventoryAdjustmentsApplicationService } from './InventoryAdjustmentsApplication.service'; import { InventoryAdjustmentsApplicationService } from './InventoryAdjustmentsApplication.service';
import { IInventoryAdjustmentsFilter } from './types/InventoryAdjustments.types'; import { IInventoryAdjustmentsFilter } from './types/InventoryAdjustments.types';
import { InventoryAdjustment } from './models/InventoryAdjustment'; import { InventoryAdjustment } from './models/InventoryAdjustment';
import { IPaginationMeta } from '@/interfaces/Model';
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { CreateQuickInventoryAdjustmentDto } from './dtos/CreateQuickInventoryAdjustment.dto'; import { CreateQuickInventoryAdjustmentDto } from './dtos/CreateQuickInventoryAdjustment.dto';
@Controller('inventory-adjustments') @Controller('inventory-adjustments')
@ApiTags('inventory-adjustments') @ApiTags('Inventory Adjustments')
export class InventoryAdjustmentsController { export class InventoryAdjustmentsController {
constructor( constructor(
private readonly inventoryAdjustmentsApplicationService: InventoryAdjustmentsApplicationService, private readonly inventoryAdjustmentsApplicationService: InventoryAdjustmentsApplicationService,

View File

@@ -4,7 +4,7 @@ import { GetInventoyItemsCostQueryDto } from './dtos/GetInventoryItemsCostQuery.
import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('inventory-cost') @Controller('inventory-cost')
@ApiTags('inventory-cost') @ApiTags('Inventory Cost')
export class InventoryCostController { export class InventoryCostController {
constructor( constructor(
private readonly inventoryItemCost: GetItemsInventoryValuationListService, private readonly inventoryItemCost: GetItemsInventoryValuationListService,

View File

@@ -20,7 +20,7 @@ import {
} from './dtos/ItemCategory.dto'; } from './dtos/ItemCategory.dto';
@Controller('item-categories') @Controller('item-categories')
@ApiTags('item-categories') @ApiTags('Item Categories')
export class ItemCategoryController { export class ItemCategoryController {
constructor( constructor(
private readonly itemCategoryApplication: ItemCategoryApplication, private readonly itemCategoryApplication: ItemCategoryApplication,

View File

@@ -18,7 +18,7 @@ import {
import { IManualJournalsFilter } from './types/ManualJournals.types'; import { IManualJournalsFilter } from './types/ManualJournals.types';
@Controller('manual-journals') @Controller('manual-journals')
@ApiTags('manual-journals') @ApiTags('Manual Journals')
export class ManualJournalsController { export class ManualJournalsController {
constructor(private manualJournalsApplication: ManualJournalsApplication) {} constructor(private manualJournalsApplication: ManualJournalsApplication) {}

View File

@@ -4,7 +4,7 @@ import { PaymentLinksApplication } from './PaymentLinksApplication';
import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger';
@Controller('payment-links') @Controller('payment-links')
@ApiTags('payment-links') @ApiTags('Payment Links')
export class PaymentLinksController { export class PaymentLinksController {
constructor(private readonly paymentLinkApp: PaymentLinksApplication) {} constructor(private readonly paymentLinkApp: PaymentLinksApplication) {}
@@ -44,7 +44,8 @@ export class PaymentLinksController {
@Get('/:paymentLinkId/stripe_checkout_session') @Get('/:paymentLinkId/stripe_checkout_session')
@ApiOperation({ @ApiOperation({
summary: 'Create Stripe checkout session', summary: 'Create Stripe checkout session',
description: 'Creates a Stripe checkout session for an invoice payment link', description:
'Creates a Stripe checkout session for an invoice payment link',
}) })
@ApiParam({ @ApiParam({
name: 'paymentLinkId', name: 'paymentLinkId',
@@ -83,7 +84,8 @@ export class PaymentLinksController {
@Get('/:paymentLinkId/invoice/pdf') @Get('/:paymentLinkId/invoice/pdf')
@ApiOperation({ @ApiOperation({
summary: 'Get payment link invoice PDF', summary: 'Get payment link invoice PDF',
description: 'Retrieves the PDF of the invoice associated with a payment link', description:
'Retrieves the PDF of the invoice associated with a payment link',
}) })
@ApiParam({ @ApiParam({
name: 'paymentLinkId', name: 'paymentLinkId',
@@ -103,7 +105,10 @@ export class PaymentLinksController {
}, },
}, },
}) })
@ApiResponse({ status: 404, description: 'Payment link or invoice not found' }) @ApiResponse({
status: 404,
description: 'Payment link or invoice not found',
})
public async getPaymentLinkInvoicePdf( public async getPaymentLinkInvoicePdf(
@Param('paymentLinkId') paymentLinkId: string, @Param('paymentLinkId') paymentLinkId: string,
@Res() res: Response, @Res() res: Response,

View File

@@ -24,7 +24,7 @@ import {
import { AcceptType } from '@/constants/accept-type'; import { AcceptType } from '@/constants/accept-type';
@Controller('payments-received') @Controller('payments-received')
@ApiTags('payments-received') @ApiTags('Payments Received')
export class PaymentReceivesController { export class PaymentReceivesController {
constructor(private paymentReceivesApplication: PaymentReceivesApplication) {} constructor(private paymentReceivesApplication: PaymentReceivesApplication) {}

View File

@@ -11,7 +11,7 @@ import { ApiTags } from '@nestjs/swagger';
import { PaymentServicesApplication } from './PaymentServicesApplication'; import { PaymentServicesApplication } from './PaymentServicesApplication';
import { EditPaymentMethodDTO } from './types'; import { EditPaymentMethodDTO } from './types';
@ApiTags('PaymentServices') @ApiTags('Payment Services')
@Controller('payment-services') @Controller('payment-services')
export class PaymentServicesController { export class PaymentServicesController {
constructor( constructor(

View File

@@ -12,7 +12,7 @@ import { PdfTemplateApplication } from './PdfTemplate.application';
import { ICreateInvoicePdfTemplateDTO, IEditPdfTemplateDTO } from './types'; import { ICreateInvoicePdfTemplateDTO, IEditPdfTemplateDTO } from './types';
@Controller('pdf-templates') @Controller('pdf-templates')
@ApiTags('pdf-templates') @ApiTags('Pdf Templates')
export class PdfTemplatesController { export class PdfTemplatesController {
constructor( constructor(
private readonly pdfTemplateApplication: PdfTemplateApplication, private readonly pdfTemplateApplication: PdfTemplateApplication,

View File

@@ -27,7 +27,7 @@ import { AcceptType } from '@/constants/accept-type';
import { Response } from 'express'; import { Response } from 'express';
@Controller('sale-estimates') @Controller('sale-estimates')
@ApiTags('sale-estimates') @ApiTags('Sale Estimates')
export class SaleEstimatesController { export class SaleEstimatesController {
/** /**
* @param {SaleEstimatesApplication} saleEstimatesApplication - Sale estimates application. * @param {SaleEstimatesApplication} saleEstimatesApplication - Sale estimates application.

View File

@@ -35,7 +35,7 @@ import {
import { AcceptType } from '@/constants/accept-type'; import { AcceptType } from '@/constants/accept-type';
@Controller('sale-invoices') @Controller('sale-invoices')
@ApiTags('sale-invoices') @ApiTags('Sale Invoices')
@ApiHeader({ @ApiHeader({
name: 'organization-id', name: 'organization-id',
description: 'The organization id', description: 'The organization id',

View File

@@ -23,7 +23,7 @@ import { AcceptType } from '@/constants/accept-type';
import { Response } from 'express'; import { Response } from 'express';
@Controller('sale-receipts') @Controller('sale-receipts')
@ApiTags('sale-receipts') @ApiTags('Sale Receipts')
export class SaleReceiptsController { export class SaleReceiptsController {
constructor(private saleReceiptApplication: SaleReceiptApplication) {} constructor(private saleReceiptApplication: SaleReceiptApplication) {}

View File

@@ -1,22 +1,22 @@
import { Body, Controller, Get, Post, Put } from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { Body, Controller, Get, Put } from '@nestjs/common';
import { SettingsApplicationService } from './SettingsApplication.service'; import { SettingsApplicationService } from './SettingsApplication.service';
import { ISettingsDTO } from './Settings.types'; import { ISettingsDTO } from './Settings.types';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller('settings') @Controller('settings')
@ApiTags('settings') @ApiTags('Settings')
export class SettingsController { export class SettingsController {
constructor( constructor(
private readonly settingsApplicationService: SettingsApplicationService, private readonly settingsApplicationService: SettingsApplicationService,
) {} ) {}
@Put('') @Put()
@ApiOperation({ summary: 'Save the given settings.' }) @ApiOperation({ summary: 'Save the given settings.' })
async saveSettings(@Body() settingsDTO: ISettingsDTO) { async saveSettings(@Body() settingsDTO: ISettingsDTO) {
return this.settingsApplicationService.saveSettings(settingsDTO); return this.settingsApplicationService.saveSettings(settingsDTO);
} }
@Get('') @Get()
@ApiOperation({ summary: 'Retrieves the settings.' }) @ApiOperation({ summary: 'Retrieves the settings.' })
async getSettings() { async getSettings() {
return this.settingsApplicationService.getSettings(); return this.settingsApplicationService.getSettings();

View File

@@ -13,7 +13,7 @@ import { ApiOperation, ApiTags, ApiResponse, ApiBody } from '@nestjs/swagger';
import { SubscriptionApplication } from './SubscriptionApplication'; import { SubscriptionApplication } from './SubscriptionApplication';
@Controller('subscription') @Controller('subscription')
@ApiTags('subscriptions') @ApiTags('Subscriptions')
export class SubscriptionsController { export class SubscriptionsController {
constructor(private readonly subscriptionApp: SubscriptionApplication) {} constructor(private readonly subscriptionApp: SubscriptionApplication) {}

View File

@@ -1,7 +1,9 @@
import { Controller, Post, Req } from '@nestjs/common'; import { Controller, Post, Req } from '@nestjs/common';
import { LemonSqueezyWebhooks } from './webhooks/LemonSqueezyWebhooks'; import { LemonSqueezyWebhooks } from './webhooks/LemonSqueezyWebhooks';
import { ApiTags } from '@nestjs/swagger';
@Controller('/webhooks/lemon') @Controller('/webhooks/lemon')
@ApiTags('Subscriptions')
export class SubscriptionsLemonWebhook { export class SubscriptionsLemonWebhook {
constructor(private readonly lemonWebhooksService: LemonSqueezyWebhooks) {} constructor(private readonly lemonWebhooksService: LemonSqueezyWebhooks) {}

View File

@@ -12,7 +12,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { CreateTaxRateDto, EditTaxRateDto } from './dtos/TaxRate.dto'; import { CreateTaxRateDto, EditTaxRateDto } from './dtos/TaxRate.dto';
@Controller('tax-rates') @Controller('tax-rates')
@ApiTags('tax-rates') @ApiTags('Tax Rates')
export class TaxRatesController { export class TaxRatesController {
constructor(private readonly taxRatesApplication: TaxRatesApplication) {} constructor(private readonly taxRatesApplication: TaxRatesApplication) {}

View File

@@ -13,7 +13,7 @@ import { UsersApplication } from './Users.application';
import { EditUserDto } from './dtos/EditUser.dto'; import { EditUserDto } from './dtos/EditUser.dto';
@Controller('users') @Controller('users')
@ApiTags('users') @ApiTags('Users')
export class UsersController { export class UsersController {
constructor(private readonly usersApplication: UsersApplication) {} constructor(private readonly usersApplication: UsersApplication) {}

View File

@@ -4,7 +4,7 @@ import { UsersApplication } from './Users.application';
import { InviteUserDto, SendInviteUserDto } from './dtos/InviteUser.dto'; import { InviteUserDto, SendInviteUserDto } from './dtos/InviteUser.dto';
@Controller('invite') @Controller('invite')
@ApiTags('users') @ApiTags('Users')
export class UsersInviteController { export class UsersInviteController {
constructor(private readonly usersApplication: UsersApplication) {} constructor(private readonly usersApplication: UsersApplication) {}

View File

@@ -17,7 +17,7 @@ import {
} from './dtos/VendorCredit.dto'; } from './dtos/VendorCredit.dto';
@Controller('vendor-credits') @Controller('vendor-credits')
@ApiTags('vendor-credits') @ApiTags('Vendor Credits')
export class VendorCreditsController { export class VendorCreditsController {
constructor( constructor(
private readonly vendorCreditsApplication: VendorCreditsApplicationService, private readonly vendorCreditsApplication: VendorCreditsApplicationService,

View File

@@ -4,7 +4,7 @@ import { IVendorCreditApplyToInvoicesDTO } from './types/VendorCreditApplyBills.
import { ApiTags } from '@nestjs/swagger'; import { ApiTags } from '@nestjs/swagger';
@Controller('vendor-credits') @Controller('vendor-credits')
@ApiTags('vendor-credits-apply-bills') @ApiTags('Vendor Credits Apply Bills')
export class VendorCreditApplyBillsController { export class VendorCreditApplyBillsController {
constructor( constructor(
private readonly vendorCreditApplyBillsApplication: VendorCreditApplyBillsApplicationService, private readonly vendorCreditApplyBillsApplication: VendorCreditApplyBillsApplicationService,

View File

@@ -5,7 +5,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { RefundVendorCreditDto } from './dtos/RefundVendorCredit.dto'; import { RefundVendorCreditDto } from './dtos/RefundVendorCredit.dto';
@Controller('vendor-credits') @Controller('vendor-credits')
@ApiTags('vendor-credits-refunds') @ApiTags('Vendor Credits Refunds')
export class VendorCreditsRefundController { export class VendorCreditsRefundController {
constructor( constructor(
private readonly vendorCreditsRefundApplication: VendorCreditsRefundApplication, private readonly vendorCreditsRefundApplication: VendorCreditsRefundApplication,

View File

@@ -3,7 +3,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { GetResourceViewsService } from './GetResourceViews.service'; import { GetResourceViewsService } from './GetResourceViews.service';
@Controller('views') @Controller('views')
@ApiTags('views') @ApiTags('Views')
export class ViewsController { export class ViewsController {
constructor( constructor(
private readonly getResourceViewsService: GetResourceViewsService, private readonly getResourceViewsService: GetResourceViewsService,

View File

@@ -12,7 +12,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { CreateWarehouseDto, EditWarehouseDto } from './dtos/Warehouse.dto'; import { CreateWarehouseDto, EditWarehouseDto } from './dtos/Warehouse.dto';
@Controller('warehouses') @Controller('warehouses')
@ApiTags('warehouses') @ApiTags('Warehouses')
export class WarehousesController { export class WarehousesController {
constructor(private warehousesApplication: WarehousesApplication) {} constructor(private warehousesApplication: WarehousesApplication) {}

View File

@@ -18,7 +18,7 @@ import {
import { GetWarehouseTransfersQueryDto } from '../Warehouses/dtos/GetWarehouseTransfersQuery.dto'; import { GetWarehouseTransfersQueryDto } from '../Warehouses/dtos/GetWarehouseTransfersQuery.dto';
@Controller('warehouse-transfers') @Controller('warehouse-transfers')
@ApiTags('warehouse-transfers') @ApiTags('Warehouse Transfers')
export class WarehouseTransfersController { export class WarehouseTransfersController {
/** /**
* @param {WarehouseTransferApplication} warehouseTransferApplication - Warehouse transfer application. * @param {WarehouseTransferApplication} warehouseTransferApplication - Warehouse transfer application.