From bcae2dae03bc850eeaf71a67579bd0785776a7ab Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Fri, 13 Jun 2025 01:57:53 +0200 Subject: [PATCH] feat: change the controllers tags --- .../src/modules/Accounts/Accounts.controller.ts | 2 +- .../src/modules/BankRules/BankRules.controller.ts | 2 +- .../BankingAccounts/BankAccounts.controller.ts | 2 +- .../BankingCategorize.controller.ts | 2 +- .../BankingMatching/BankingMatching.controller.ts | 2 +- .../modules/BankingPlaid/BankingPlaid.controller.ts | 2 +- .../BankingRecognizedTransactions.controller.ts | 2 +- .../BankingPendingTransactions.controller.ts | 2 +- .../controllers/BankingTransactions.controller.ts | 2 +- .../BankingUncategorizedTransactions.controller.ts | 2 +- .../BankingTransactionsExclude.controller.ts | 2 +- .../modules/BillPayments/BillPayments.controller.ts | 2 +- .../server/src/modules/Bills/Bills.controller.ts | 2 +- .../src/modules/Branches/Branches.controller.ts | 2 +- .../src/modules/Contacts/Contacts.controller.ts | 2 +- .../CreditNotesApplyInvoice.controller.ts | 2 +- .../src/modules/Currencies/Currencies.controller.ts | 2 +- .../src/modules/Customers/Customers.controller.ts | 2 +- .../src/modules/Dashboard/Dashboard.controller.ts | 2 +- .../src/modules/Expenses/Expenses.controller.ts | 2 +- .../server/src/modules/Export/Export.controller.ts | 2 +- .../APAgingSummary/APAgingSummary.controller.ts | 2 +- .../ARAgingSummary/ARAgingSummary.controller.ts | 2 +- .../modules/BalanceSheet/BalanceSheet.controller.ts | 2 +- .../CashFlowStatement/Cashflow.controller.ts | 2 +- .../CustomerBalanceSummary.controller.ts | 2 +- .../GeneralLedger/GeneralLedger.controller.ts | 2 +- .../InventoryItemDetails.controller.ts | 2 +- .../InventoryValuation.controller.ts | 2 +- .../modules/JournalSheet/JournalSheet.controller.ts | 2 +- .../ProfitLossSheet/ProfitLossSheet.controller.ts | 2 +- .../PurchasesByItems/PurchasesByItems.controller.ts | 2 +- .../modules/SalesByItems/SalesByItems.controller.ts | 2 +- .../SalesTaxLiabilitySummary.controller.ts | 2 +- .../TransactionsByCustomer.controller.ts | 2 +- .../TransactionsByReference.controller.ts | 2 +- .../TransactionsByVendor.controller.ts | 2 +- .../TrialBalanceSheet.controller.ts | 2 +- .../VendorBalanceSummary.controller.ts | 2 +- .../server/src/modules/Import/Import.controller.ts | 2 +- .../InventoryAdjustments.controller.ts | 5 ++--- .../InventoryCost/InventoryCost.controller.ts | 2 +- .../ItemCategories/ItemCategory.controller.ts | 2 +- .../ManualJournals/ManualJournals.controller.ts | 2 +- .../modules/PaymentLinks/PaymentLinks.controller.ts | 13 +++++++++---- .../PaymentReceived/PaymentsReceived.controller.ts | 2 +- .../PaymentServices/PaymentServices.controller.ts | 2 +- .../modules/PdfTemplate/PdfTemplates.controller.ts | 2 +- .../SaleEstimates/SaleEstimates.controller.ts | 2 +- .../modules/SaleInvoices/SaleInvoices.controller.ts | 2 +- .../modules/SaleReceipts/SaleReceipts.controller.ts | 2 +- .../src/modules/Settings/Settings.controller.ts | 10 +++++----- .../Subscription/Subscriptions.controller.ts | 2 +- .../SubscriptionsLemonWebhook.controller.ts | 2 ++ .../src/modules/TaxRates/TaxRate.controller.ts | 2 +- .../src/modules/UsersModule/Users.controller.ts | 2 +- .../modules/UsersModule/UsersInvite.controller.ts | 2 +- .../VendorCredit/VendorCredits.controller.ts | 2 +- .../VendorCreditApplyBills.controller.ts | 2 +- .../VendorCreditsRefund.controller.ts | 2 +- .../server/src/modules/Views/Views.controller.ts | 2 +- .../src/modules/Warehouses/Warehouses.controller.ts | 2 +- .../WarehouseTransfers.controller.ts | 2 +- 63 files changed, 77 insertions(+), 71 deletions(-) diff --git a/packages/server/src/modules/Accounts/Accounts.controller.ts b/packages/server/src/modules/Accounts/Accounts.controller.ts index 4e5e3d878..a44011303 100644 --- a/packages/server/src/modules/Accounts/Accounts.controller.ts +++ b/packages/server/src/modules/Accounts/Accounts.controller.ts @@ -15,7 +15,7 @@ import { IAccountsFilter, IAccountsTransactionsFilter } from './Accounts.types'; import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('accounts') -@ApiTags('accounts') +@ApiTags('Accounts') export class AccountsController { constructor(private readonly accountsApplication: AccountsApplication) {} diff --git a/packages/server/src/modules/BankRules/BankRules.controller.ts b/packages/server/src/modules/BankRules/BankRules.controller.ts index 127c58dd7..3e4325216 100644 --- a/packages/server/src/modules/BankRules/BankRules.controller.ts +++ b/packages/server/src/modules/BankRules/BankRules.controller.ts @@ -14,7 +14,7 @@ import { CreateBankRuleDto } from './dtos/BankRule.dto'; import { EditBankRuleDto } from './dtos/BankRule.dto'; @Controller('banking/rules') -@ApiTags('bank-rules') +@ApiTags('Bank Rules') export class BankRulesController { constructor(private readonly bankRulesApplication: BankRulesApplication) {} diff --git a/packages/server/src/modules/BankingAccounts/BankAccounts.controller.ts b/packages/server/src/modules/BankingAccounts/BankAccounts.controller.ts index bf9fa8c51..40244408e 100644 --- a/packages/server/src/modules/BankingAccounts/BankAccounts.controller.ts +++ b/packages/server/src/modules/BankingAccounts/BankAccounts.controller.ts @@ -4,7 +4,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ICashflowAccountsFilter } from './types/BankAccounts.types'; @Controller('banking/accounts') -@ApiTags('banking-accounts') +@ApiTags('Bank Accounts') export class BankAccountsController { constructor(private bankAccountsApplication: BankAccountsApplication) {} diff --git a/packages/server/src/modules/BankingCategorize/BankingCategorize.controller.ts b/packages/server/src/modules/BankingCategorize/BankingCategorize.controller.ts index 19796e24a..86f257941 100644 --- a/packages/server/src/modules/BankingCategorize/BankingCategorize.controller.ts +++ b/packages/server/src/modules/BankingCategorize/BankingCategorize.controller.ts @@ -5,7 +5,7 @@ import { CategorizeBankTransactionRouteDto } from './dtos/CategorizeBankTransact import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('banking/categorize') -@ApiTags('banking-categorization') +@ApiTags('Banking Categorization') export class BankingCategorizeController { constructor( private readonly bankingCategorizeApplication: BankingCategorizeApplication, diff --git a/packages/server/src/modules/BankingMatching/BankingMatching.controller.ts b/packages/server/src/modules/BankingMatching/BankingMatching.controller.ts index 094248331..294e38f18 100644 --- a/packages/server/src/modules/BankingMatching/BankingMatching.controller.ts +++ b/packages/server/src/modules/BankingMatching/BankingMatching.controller.ts @@ -5,7 +5,7 @@ import { GetMatchedTransactionsFilter } from './types'; import { MatchBankTransactionDto } from './dtos/MatchBankTransaction.dto'; @Controller('banking/matching') -@ApiTags('banking-transactions-matching') +@ApiTags('Banking Transactions Matching') export class BankingMatchingController { constructor( private readonly bankingMatchingApplication: BankingMatchingApplication, diff --git a/packages/server/src/modules/BankingPlaid/BankingPlaid.controller.ts b/packages/server/src/modules/BankingPlaid/BankingPlaid.controller.ts index bf1b93787..b13c246de 100644 --- a/packages/server/src/modules/BankingPlaid/BankingPlaid.controller.ts +++ b/packages/server/src/modules/BankingPlaid/BankingPlaid.controller.ts @@ -4,7 +4,7 @@ import { PlaidItemDto } from './dtos/PlaidItem.dto'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; @Controller('banking/plaid') -@ApiTags('banking-plaid') +@ApiTags('Banking Plaid') export class BankingPlaidController { constructor(private readonly plaidApplication: PlaidApplication) {} diff --git a/packages/server/src/modules/BankingTranasctionsRegonize/BankingRecognizedTransactions.controller.ts b/packages/server/src/modules/BankingTranasctionsRegonize/BankingRecognizedTransactions.controller.ts index f0627659b..74ec6c2c6 100644 --- a/packages/server/src/modules/BankingTranasctionsRegonize/BankingRecognizedTransactions.controller.ts +++ b/packages/server/src/modules/BankingTranasctionsRegonize/BankingRecognizedTransactions.controller.ts @@ -3,7 +3,7 @@ import { ApiTags } from '@nestjs/swagger'; import { RecognizedTransactionsApplication } from './RecognizedTransactions.application'; @Controller('banking/recognized') -@ApiTags('banking-recognized') +@ApiTags('Banking Recognized Transactions') export class BankingRecognizedTransactionsController { constructor( private readonly recognizedTransactionsApplication: RecognizedTransactionsApplication, diff --git a/packages/server/src/modules/BankingTransactions/controllers/BankingPendingTransactions.controller.ts b/packages/server/src/modules/BankingTransactions/controllers/BankingPendingTransactions.controller.ts index ba051f2cb..95405aa67 100644 --- a/packages/server/src/modules/BankingTransactions/controllers/BankingPendingTransactions.controller.ts +++ b/packages/server/src/modules/BankingTransactions/controllers/BankingPendingTransactions.controller.ts @@ -4,7 +4,7 @@ import { BankingTransactionsApplication } from '../BankingTransactionsApplicatio import { GetPendingTransactionsQueryDto } from '../dtos/GetPendingTransactionsQuery.dto'; @Controller('banking/pending') -@ApiTags('banking-pending') +@ApiTags('Banking Pending Transactions') export class BankingPendingTransactionsController { constructor( private readonly bankingTransactionsApplication: BankingTransactionsApplication, diff --git a/packages/server/src/modules/BankingTransactions/controllers/BankingTransactions.controller.ts b/packages/server/src/modules/BankingTransactions/controllers/BankingTransactions.controller.ts index f41703021..a8bfb8078 100644 --- a/packages/server/src/modules/BankingTransactions/controllers/BankingTransactions.controller.ts +++ b/packages/server/src/modules/BankingTransactions/controllers/BankingTransactions.controller.ts @@ -13,7 +13,7 @@ import { CreateBankTransactionDto } from '../dtos/CreateBankTransaction.dto'; import { GetBankTransactionsQueryDto } from '../dtos/GetBankTranasctionsQuery.dto'; @Controller('banking/transactions') -@ApiTags('banking-transactions') +@ApiTags('Banking Transactions') export class BankingTransactionsController { constructor( private readonly bankingTransactionsApplication: BankingTransactionsApplication, diff --git a/packages/server/src/modules/BankingTransactions/controllers/BankingUncategorizedTransactions.controller.ts b/packages/server/src/modules/BankingTransactions/controllers/BankingUncategorizedTransactions.controller.ts index dd5789997..75e10142f 100644 --- a/packages/server/src/modules/BankingTransactions/controllers/BankingUncategorizedTransactions.controller.ts +++ b/packages/server/src/modules/BankingTransactions/controllers/BankingUncategorizedTransactions.controller.ts @@ -10,7 +10,7 @@ import { GetUncategorizedTransactionsQueryDto } from '../dtos/GetUncategorizedTr import { BankingTransactionsApplication } from '../BankingTransactionsApplication.service'; @Controller('banking/uncategorized') -@ApiTags('banking-uncategorized') +@ApiTags('Banking Uncategorized Transactions') export class BankingUncategorizedTransactionsController { constructor( private readonly bankingTransactionsApplication: BankingTransactionsApplication, diff --git a/packages/server/src/modules/BankingTransactionsExclude/BankingTransactionsExclude.controller.ts b/packages/server/src/modules/BankingTransactionsExclude/BankingTransactionsExclude.controller.ts index c75984d32..457637911 100644 --- a/packages/server/src/modules/BankingTransactionsExclude/BankingTransactionsExclude.controller.ts +++ b/packages/server/src/modules/BankingTransactionsExclude/BankingTransactionsExclude.controller.ts @@ -13,7 +13,7 @@ import { ExcludedBankTransactionsQuery } from './types/BankTransactionsExclude.t import { ApiOperation, ApiTags } from '@nestjs/swagger'; @Controller('banking/exclude') -@ApiTags('banking-transactions') +@ApiTags('Banking Transactions') export class BankingTransactionsExcludeController { constructor( private readonly excludeBankTransactionsApplication: ExcludeBankTransactionsApplication, diff --git a/packages/server/src/modules/BillPayments/BillPayments.controller.ts b/packages/server/src/modules/BillPayments/BillPayments.controller.ts index 8d741573d..1ec750cd3 100644 --- a/packages/server/src/modules/BillPayments/BillPayments.controller.ts +++ b/packages/server/src/modules/BillPayments/BillPayments.controller.ts @@ -18,7 +18,7 @@ import { GetBillPaymentsFilterDto } from './dtos/GetBillPaymentsFilter.dto'; import { BillPaymentsPages } from './commands/BillPaymentsPages.service'; @Controller('bill-payments') -@ApiTags('bill-payments') +@ApiTags('Bill Payments') export class BillPaymentsController { constructor( private billPaymentsApplication: BillPaymentsApplication, diff --git a/packages/server/src/modules/Bills/Bills.controller.ts b/packages/server/src/modules/Bills/Bills.controller.ts index 5c0667417..573fa2ac7 100644 --- a/packages/server/src/modules/Bills/Bills.controller.ts +++ b/packages/server/src/modules/Bills/Bills.controller.ts @@ -14,7 +14,7 @@ import { IBillsFilter } from './Bills.types'; import { CreateBillDto, EditBillDto } from './dtos/Bill.dto'; @Controller('bills') -@ApiTags('bills') +@ApiTags('Bills') export class BillsController { constructor(private billsApplication: BillsApplication) {} diff --git a/packages/server/src/modules/Branches/Branches.controller.ts b/packages/server/src/modules/Branches/Branches.controller.ts index 294081c47..8213906a5 100644 --- a/packages/server/src/modules/Branches/Branches.controller.ts +++ b/packages/server/src/modules/Branches/Branches.controller.ts @@ -12,7 +12,7 @@ import { CreateBranchDto, EditBranchDto } from './dtos/Branch.dto'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('branches') -@ApiTags('branches') +@ApiTags('Branches') export class BranchesController { constructor(private readonly branchesApplication: BranchesApplication) {} diff --git a/packages/server/src/modules/Contacts/Contacts.controller.ts b/packages/server/src/modules/Contacts/Contacts.controller.ts index 6ae1ef37a..5718bfd33 100644 --- a/packages/server/src/modules/Contacts/Contacts.controller.ts +++ b/packages/server/src/modules/Contacts/Contacts.controller.ts @@ -13,7 +13,7 @@ import { ActivateContactService } from './commands/ActivateContact.service'; import { InactivateContactService } from './commands/InactivateContact.service'; @Controller('contacts') -@ApiTags('contacts') +@ApiTags('Contacts') export class ContactsController { constructor( private readonly getAutoCompleteService: GetAutoCompleteContactsService, diff --git a/packages/server/src/modules/CreditNotesApplyInvoice/CreditNotesApplyInvoice.controller.ts b/packages/server/src/modules/CreditNotesApplyInvoice/CreditNotesApplyInvoice.controller.ts index e134cbf1f..e963c3d0d 100644 --- a/packages/server/src/modules/CreditNotesApplyInvoice/CreditNotesApplyInvoice.controller.ts +++ b/packages/server/src/modules/CreditNotesApplyInvoice/CreditNotesApplyInvoice.controller.ts @@ -3,7 +3,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { GetCreditNoteAssociatedAppliedInvoices } from './queries/GetCreditNoteAssociatedAppliedInvoices.service'; @Controller('credit-notes') -@ApiTags('credit-notes-apply-invoice') +@ApiTags('Credit Notes Apply Invoice') export class CreditNotesApplyInvoiceController { constructor( private readonly getCreditNoteAssociatedAppliedInvoicesService: GetCreditNoteAssociatedAppliedInvoices, diff --git a/packages/server/src/modules/Currencies/Currencies.controller.ts b/packages/server/src/modules/Currencies/Currencies.controller.ts index 6231b6ee3..901db4436 100644 --- a/packages/server/src/modules/Currencies/Currencies.controller.ts +++ b/packages/server/src/modules/Currencies/Currencies.controller.ts @@ -21,7 +21,7 @@ import { CurrenciesApplication } from './CurrenciesApplication.service'; import { CreateCurrencyDto } from './dtos/CreateCurrency.dto'; import { EditCurrencyDto } from './dtos/EditCurrency.dto'; -@ApiTags('currencies') +@ApiTags('Currencies') @Controller('/currencies') export class CurrenciesController { constructor(private readonly currenciesApp: CurrenciesApplication) {} diff --git a/packages/server/src/modules/Customers/Customers.controller.ts b/packages/server/src/modules/Customers/Customers.controller.ts index ab7329451..7b70ec38a 100644 --- a/packages/server/src/modules/Customers/Customers.controller.ts +++ b/packages/server/src/modules/Customers/Customers.controller.ts @@ -18,7 +18,7 @@ import { CreateCustomerDto } from './dtos/CreateCustomer.dto'; import { EditCustomerDto } from './dtos/EditCustomer.dto'; @Controller('customers') -@ApiTags('customers') +@ApiTags('Customers') export class CustomersController { constructor(private customersApplication: CustomersApplication) {} diff --git a/packages/server/src/modules/Dashboard/Dashboard.controller.ts b/packages/server/src/modules/Dashboard/Dashboard.controller.ts index aa5354e36..0d7634ec4 100644 --- a/packages/server/src/modules/Dashboard/Dashboard.controller.ts +++ b/packages/server/src/modules/Dashboard/Dashboard.controller.ts @@ -2,7 +2,7 @@ import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger'; import { Controller, Get } from '@nestjs/common'; import { DashboardService } from './Dashboard.service'; -@ApiTags('dashboard') +@ApiTags('Dashboard') @Controller('dashboard') export class DashboardController { constructor(private readonly dashboardService: DashboardService) {} diff --git a/packages/server/src/modules/Expenses/Expenses.controller.ts b/packages/server/src/modules/Expenses/Expenses.controller.ts index 1a84199a5..bc605fa71 100644 --- a/packages/server/src/modules/Expenses/Expenses.controller.ts +++ b/packages/server/src/modules/Expenses/Expenses.controller.ts @@ -14,7 +14,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { CreateExpenseDto, EditExpenseDto } from './dtos/Expense.dto'; @Controller('expenses') -@ApiTags('expenses') +@ApiTags('Expenses') export class ExpensesController { constructor(private readonly expensesApplication: ExpensesApplication) {} diff --git a/packages/server/src/modules/Export/Export.controller.ts b/packages/server/src/modules/Export/Export.controller.ts index efee75976..8422a9de0 100644 --- a/packages/server/src/modules/Export/Export.controller.ts +++ b/packages/server/src/modules/Export/Export.controller.ts @@ -7,7 +7,7 @@ import { ExportResourceService } from './ExportService'; import { convertAcceptFormatToFormat } from './Export.utils'; @Controller('/export') -@ApiTags('export') +@ApiTags('Export') export class ExportController { constructor(private readonly exportResourceApp: ExportResourceService) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/APAgingSummary/APAgingSummary.controller.ts b/packages/server/src/modules/FinancialStatements/modules/APAgingSummary/APAgingSummary.controller.ts index 97d2099c6..c91f3e910 100644 --- a/packages/server/src/modules/FinancialStatements/modules/APAgingSummary/APAgingSummary.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/APAgingSummary/APAgingSummary.controller.ts @@ -7,7 +7,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { APAgingSummaryQueryDto } from './APAgingSummaryQuery.dto'; @Controller('reports/payable-aging-summary') -@ApiTags('reports') +@ApiTags('Reports') export class APAgingSummaryController { constructor(private readonly APAgingSummaryApp: APAgingSummaryApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/ARAgingSummary/ARAgingSummary.controller.ts b/packages/server/src/modules/FinancialStatements/modules/ARAgingSummary/ARAgingSummary.controller.ts index d37ac4f5e..168a117b8 100644 --- a/packages/server/src/modules/FinancialStatements/modules/ARAgingSummary/ARAgingSummary.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/ARAgingSummary/ARAgingSummary.controller.ts @@ -7,7 +7,7 @@ import { Response } from 'express'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; @Controller('reports/receivable-aging-summary') -@ApiTags('reports') +@ApiTags('Reports') export class ARAgingSummaryController { constructor(private readonly ARAgingSummaryApp: ARAgingSummaryApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/BalanceSheet/BalanceSheet.controller.ts b/packages/server/src/modules/FinancialStatements/modules/BalanceSheet/BalanceSheet.controller.ts index e014bd748..22b1cd106 100644 --- a/packages/server/src/modules/FinancialStatements/modules/BalanceSheet/BalanceSheet.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/BalanceSheet/BalanceSheet.controller.ts @@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { BalanceSheetQueryDto } from './BalanceSheet.dto'; @Controller('/reports/balance-sheet') -@ApiTags('reports') +@ApiTags('Reports') export class BalanceSheetStatementController { constructor(private readonly balanceSheetApp: BalanceSheetApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/CashFlowStatement/Cashflow.controller.ts b/packages/server/src/modules/FinancialStatements/modules/CashFlowStatement/Cashflow.controller.ts index e8ff4a98d..2193660f9 100644 --- a/packages/server/src/modules/FinancialStatements/modules/CashFlowStatement/Cashflow.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/CashFlowStatement/Cashflow.controller.ts @@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { CashFlowStatementQueryDto } from './CashFlowStatementQuery.dto'; @Controller('reports/cashflow-statement') -@ApiTags('reports') +@ApiTags('Reports') export class CashflowController { constructor(private readonly cashflowSheetApp: CashflowSheetApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/CustomerBalanceSummary/CustomerBalanceSummary.controller.ts b/packages/server/src/modules/FinancialStatements/modules/CustomerBalanceSummary/CustomerBalanceSummary.controller.ts index a17525ae6..34f795ec0 100644 --- a/packages/server/src/modules/FinancialStatements/modules/CustomerBalanceSummary/CustomerBalanceSummary.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/CustomerBalanceSummary/CustomerBalanceSummary.controller.ts @@ -6,7 +6,7 @@ import { CustomerBalanceSummaryQueryDto } from './CustomerBalanceSummaryQuery.dt import { AcceptType } from '@/constants/accept-type'; @Controller('/reports/customer-balance-summary') -@ApiTags('reports') +@ApiTags('Reports') export class CustomerBalanceSummaryController { constructor( private readonly customerBalanceSummaryApp: CustomerBalanceSummaryApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/GeneralLedger/GeneralLedger.controller.ts b/packages/server/src/modules/FinancialStatements/modules/GeneralLedger/GeneralLedger.controller.ts index aa2f52a00..ffc6db114 100644 --- a/packages/server/src/modules/FinancialStatements/modules/GeneralLedger/GeneralLedger.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/GeneralLedger/GeneralLedger.controller.ts @@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type'; import { GeneralLedgerQueryDto } from './GeneralLedgerQuery.dto'; @Controller('/reports/general-ledger') -@ApiTags('reports') +@ApiTags('Reports') export class GeneralLedgerController { constructor( private readonly generalLedgerApplication: GeneralLedgerApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/InventoryItemDetails/InventoryItemDetails.controller.ts b/packages/server/src/modules/FinancialStatements/modules/InventoryItemDetails/InventoryItemDetails.controller.ts index 3ddfff5f7..567b5ab9c 100644 --- a/packages/server/src/modules/FinancialStatements/modules/InventoryItemDetails/InventoryItemDetails.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/InventoryItemDetails/InventoryItemDetails.controller.ts @@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type'; import { InventoryItemDetailsQueryDto } from './InventoryItemDetailsQuery.dto'; @Controller('reports/inventory-item-details') -@ApiTags('reports') +@ApiTags('Reports') export class InventoryItemDetailsController { constructor( private readonly inventoryItemDetailsApp: InventoryItemDetailsApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/InventoryValuationSheet/InventoryValuation.controller.ts b/packages/server/src/modules/FinancialStatements/modules/InventoryValuationSheet/InventoryValuation.controller.ts index 6b046b088..686bf97f6 100644 --- a/packages/server/src/modules/FinancialStatements/modules/InventoryValuationSheet/InventoryValuation.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/InventoryValuationSheet/InventoryValuation.controller.ts @@ -6,7 +6,7 @@ import { InventoryValuationQueryDto } from './InventoryValuationQuery.dto'; import { AcceptType } from '@/constants/accept-type'; @Controller('reports/inventory-valuation') -@ApiTags('reports') +@ApiTags('Reports') export class InventoryValuationController { constructor( private readonly inventoryValuationApp: InventoryValuationSheetApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/JournalSheet/JournalSheet.controller.ts b/packages/server/src/modules/FinancialStatements/modules/JournalSheet/JournalSheet.controller.ts index 297dda1a8..defbdbb07 100644 --- a/packages/server/src/modules/FinancialStatements/modules/JournalSheet/JournalSheet.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/JournalSheet/JournalSheet.controller.ts @@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { JournalSheetQueryDto } from './JournalSheetQuery.dto'; @Controller('/reports/journal') -@ApiTags('reports') +@ApiTags('Reports') export class JournalSheetController { constructor(private readonly journalSheetApp: JournalSheetApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/ProfitLossSheet/ProfitLossSheet.controller.ts b/packages/server/src/modules/FinancialStatements/modules/ProfitLossSheet/ProfitLossSheet.controller.ts index 829faa0ac..a4395ac04 100644 --- a/packages/server/src/modules/FinancialStatements/modules/ProfitLossSheet/ProfitLossSheet.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/ProfitLossSheet/ProfitLossSheet.controller.ts @@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ProfitLossSheetQueryDto } from './ProfitLossSheetQuery.dto'; @Controller('/reports/profit-loss-sheet') -@ApiTags('reports') +@ApiTags('Reports') export class ProfitLossSheetController { constructor( private readonly profitLossSheetApp: ProfitLossSheetApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/PurchasesByItems/PurchasesByItems.controller.ts b/packages/server/src/modules/FinancialStatements/modules/PurchasesByItems/PurchasesByItems.controller.ts index d002ec58f..09d17ff95 100644 --- a/packages/server/src/modules/FinancialStatements/modules/PurchasesByItems/PurchasesByItems.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/PurchasesByItems/PurchasesByItems.controller.ts @@ -6,7 +6,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { PurchasesByItemsQueryDto } from './PurchasesByItemsQuery.dto'; @Controller('/reports/purchases-by-items') -@ApiTags('reports') +@ApiTags('Reports') export class PurchasesByItemReportController { constructor( private readonly purchasesByItemsApp: PurchasesByItemsApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/SalesByItems/SalesByItems.controller.ts b/packages/server/src/modules/FinancialStatements/modules/SalesByItems/SalesByItems.controller.ts index 19ba4a859..6fa2a9243 100644 --- a/packages/server/src/modules/FinancialStatements/modules/SalesByItems/SalesByItems.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/SalesByItems/SalesByItems.controller.ts @@ -15,7 +15,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { SalesByItemsQueryDto } from './SalesByItemsQuery.dto'; @Controller('/reports/sales-by-items') -@ApiTags('reports') +@ApiTags('Reports') export class SalesByItemsController { constructor(private readonly salesByItemsApp: SalesByItemsApplication) {} diff --git a/packages/server/src/modules/FinancialStatements/modules/SalesTaxLiabilitySummary/SalesTaxLiabilitySummary.controller.ts b/packages/server/src/modules/FinancialStatements/modules/SalesTaxLiabilitySummary/SalesTaxLiabilitySummary.controller.ts index 36307eb12..723826ca6 100644 --- a/packages/server/src/modules/FinancialStatements/modules/SalesTaxLiabilitySummary/SalesTaxLiabilitySummary.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/SalesTaxLiabilitySummary/SalesTaxLiabilitySummary.controller.ts @@ -6,7 +6,7 @@ import { AcceptType } from '@/constants/accept-type'; import { SalesTaxLiabilitySummaryApplication } from './SalesTaxLiabilitySummaryApplication'; @Controller('/reports/sales-tax-liability-summary') -@ApiTags('reports') +@ApiTags('Reports') export class SalesTaxLiabilitySummaryController { constructor( private readonly salesTaxLiabilitySummaryApp: SalesTaxLiabilitySummaryApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/TransactionsByCustomer/TransactionsByCustomer.controller.ts b/packages/server/src/modules/FinancialStatements/modules/TransactionsByCustomer/TransactionsByCustomer.controller.ts index 064e68825..8fd032a0f 100644 --- a/packages/server/src/modules/FinancialStatements/modules/TransactionsByCustomer/TransactionsByCustomer.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/TransactionsByCustomer/TransactionsByCustomer.controller.ts @@ -7,7 +7,7 @@ import { Response } from 'express'; import { TransactionsByCustomerQueryDto } from './TransactionsByCustomerQuery.dto'; @Controller('/reports/transactions-by-customers') -@ApiTags('reports') +@ApiTags('Reports') export class TransactionsByCustomerController { constructor( private readonly transactionsByCustomersApp: TransactionsByCustomerApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/TransactionsByReference/TransactionsByReference.controller.ts b/packages/server/src/modules/FinancialStatements/modules/TransactionsByReference/TransactionsByReference.controller.ts index 7b252082f..16fa41077 100644 --- a/packages/server/src/modules/FinancialStatements/modules/TransactionsByReference/TransactionsByReference.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/TransactionsByReference/TransactionsByReference.controller.ts @@ -4,7 +4,7 @@ import { ITransactionsByReferenceQuery } from './TransactionsByReference.types'; import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('reports/transactions-by-reference') -@ApiTags('reports') +@ApiTags('Reports') export class TransactionsByReferenceController { constructor( private readonly transactionsByReferenceApp: TransactionsByReferenceApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/TransactionsByVendor/TransactionsByVendor.controller.ts b/packages/server/src/modules/FinancialStatements/modules/TransactionsByVendor/TransactionsByVendor.controller.ts index 06b4115f8..596ec6a66 100644 --- a/packages/server/src/modules/FinancialStatements/modules/TransactionsByVendor/TransactionsByVendor.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/TransactionsByVendor/TransactionsByVendor.controller.ts @@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { TransactionsByVendorQueryDto } from './TransactionsByVendorQuery.dto'; @Controller('/reports/transactions-by-vendors') -@ApiTags('reports') +@ApiTags('Reports') export class TransactionsByVendorController { constructor( private readonly transactionsByVendorsApp: TransactionsByVendorApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/TrialBalanceSheet/TrialBalanceSheet.controller.ts b/packages/server/src/modules/FinancialStatements/modules/TrialBalanceSheet/TrialBalanceSheet.controller.ts index 17ba94d63..5929725a6 100644 --- a/packages/server/src/modules/FinancialStatements/modules/TrialBalanceSheet/TrialBalanceSheet.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/TrialBalanceSheet/TrialBalanceSheet.controller.ts @@ -7,7 +7,7 @@ import { TrialBalanceSheetApplication } from './TrialBalanceSheetApplication'; import { TrialBalanceSheetQueryDto } from './TrialBalanceSheetQuery.dto'; @Controller('reports/trial-balance-sheet') -@ApiTags('reports') +@ApiTags('Reports') export class TrialBalanceSheetController { constructor( private readonly trialBalanceSheetApp: TrialBalanceSheetApplication, diff --git a/packages/server/src/modules/FinancialStatements/modules/VendorBalanceSummary/VendorBalanceSummary.controller.ts b/packages/server/src/modules/FinancialStatements/modules/VendorBalanceSummary/VendorBalanceSummary.controller.ts index 6564280f7..b0caaa364 100644 --- a/packages/server/src/modules/FinancialStatements/modules/VendorBalanceSummary/VendorBalanceSummary.controller.ts +++ b/packages/server/src/modules/FinancialStatements/modules/VendorBalanceSummary/VendorBalanceSummary.controller.ts @@ -7,7 +7,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { VendorBalanceSummaryQueryDto } from './VendorBalanceSummaryQuery.dto'; @Controller('/reports/vendor-balance-summary') -@ApiTags('reports') +@ApiTags('Reports') export class VendorBalanceSummaryController { constructor( private readonly vendorBalanceSummaryApp: VendorBalanceSummaryApplication, diff --git a/packages/server/src/modules/Import/Import.controller.ts b/packages/server/src/modules/Import/Import.controller.ts index 9b26bc78f..8439ea9b6 100644 --- a/packages/server/src/modules/Import/Import.controller.ts +++ b/packages/server/src/modules/Import/Import.controller.ts @@ -18,7 +18,7 @@ import { uploadImportFileMulterOptions } from './ImportMulter.utils'; import { parseJsonSafe } from '@/utils/parse-json'; @Controller('import') -@ApiTags('import') +@ApiTags('Import') export class ImportController { constructor(private readonly importResourceApp: ImportResourceApplication) {} diff --git a/packages/server/src/modules/InventoryAdjutments/InventoryAdjustments.controller.ts b/packages/server/src/modules/InventoryAdjutments/InventoryAdjustments.controller.ts index 8d8e32979..0b3d39338 100644 --- a/packages/server/src/modules/InventoryAdjutments/InventoryAdjustments.controller.ts +++ b/packages/server/src/modules/InventoryAdjutments/InventoryAdjustments.controller.ts @@ -1,3 +1,4 @@ +import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { Body, Controller, @@ -11,12 +12,10 @@ import { import { InventoryAdjustmentsApplicationService } from './InventoryAdjustmentsApplication.service'; import { IInventoryAdjustmentsFilter } from './types/InventoryAdjustments.types'; import { InventoryAdjustment } from './models/InventoryAdjustment'; -import { IPaginationMeta } from '@/interfaces/Model'; -import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { CreateQuickInventoryAdjustmentDto } from './dtos/CreateQuickInventoryAdjustment.dto'; @Controller('inventory-adjustments') -@ApiTags('inventory-adjustments') +@ApiTags('Inventory Adjustments') export class InventoryAdjustmentsController { constructor( private readonly inventoryAdjustmentsApplicationService: InventoryAdjustmentsApplicationService, diff --git a/packages/server/src/modules/InventoryCost/InventoryCost.controller.ts b/packages/server/src/modules/InventoryCost/InventoryCost.controller.ts index ffeb0ccd8..40f0e38a1 100644 --- a/packages/server/src/modules/InventoryCost/InventoryCost.controller.ts +++ b/packages/server/src/modules/InventoryCost/InventoryCost.controller.ts @@ -4,7 +4,7 @@ import { GetInventoyItemsCostQueryDto } from './dtos/GetInventoryItemsCostQuery. import { ApiOperation, ApiTags } from '@nestjs/swagger'; @Controller('inventory-cost') -@ApiTags('inventory-cost') +@ApiTags('Inventory Cost') export class InventoryCostController { constructor( private readonly inventoryItemCost: GetItemsInventoryValuationListService, diff --git a/packages/server/src/modules/ItemCategories/ItemCategory.controller.ts b/packages/server/src/modules/ItemCategories/ItemCategory.controller.ts index ad54acec9..cf52c7bed 100644 --- a/packages/server/src/modules/ItemCategories/ItemCategory.controller.ts +++ b/packages/server/src/modules/ItemCategories/ItemCategory.controller.ts @@ -20,7 +20,7 @@ import { } from './dtos/ItemCategory.dto'; @Controller('item-categories') -@ApiTags('item-categories') +@ApiTags('Item Categories') export class ItemCategoryController { constructor( private readonly itemCategoryApplication: ItemCategoryApplication, diff --git a/packages/server/src/modules/ManualJournals/ManualJournals.controller.ts b/packages/server/src/modules/ManualJournals/ManualJournals.controller.ts index 3519166bb..c008f9577 100644 --- a/packages/server/src/modules/ManualJournals/ManualJournals.controller.ts +++ b/packages/server/src/modules/ManualJournals/ManualJournals.controller.ts @@ -18,7 +18,7 @@ import { import { IManualJournalsFilter } from './types/ManualJournals.types'; @Controller('manual-journals') -@ApiTags('manual-journals') +@ApiTags('Manual Journals') export class ManualJournalsController { constructor(private manualJournalsApplication: ManualJournalsApplication) {} diff --git a/packages/server/src/modules/PaymentLinks/PaymentLinks.controller.ts b/packages/server/src/modules/PaymentLinks/PaymentLinks.controller.ts index fb83ec6e6..a621bd746 100644 --- a/packages/server/src/modules/PaymentLinks/PaymentLinks.controller.ts +++ b/packages/server/src/modules/PaymentLinks/PaymentLinks.controller.ts @@ -4,7 +4,7 @@ import { PaymentLinksApplication } from './PaymentLinksApplication'; import { ApiOperation, ApiParam, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('payment-links') -@ApiTags('payment-links') +@ApiTags('Payment Links') export class PaymentLinksController { constructor(private readonly paymentLinkApp: PaymentLinksApplication) {} @@ -44,7 +44,8 @@ export class PaymentLinksController { @Get('/:paymentLinkId/stripe_checkout_session') @ApiOperation({ 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({ name: 'paymentLinkId', @@ -83,7 +84,8 @@ export class PaymentLinksController { @Get('/:paymentLinkId/invoice/pdf') @ApiOperation({ 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({ 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( @Param('paymentLinkId') paymentLinkId: string, @Res() res: Response, diff --git a/packages/server/src/modules/PaymentReceived/PaymentsReceived.controller.ts b/packages/server/src/modules/PaymentReceived/PaymentsReceived.controller.ts index a2a660d94..dc7fbef76 100644 --- a/packages/server/src/modules/PaymentReceived/PaymentsReceived.controller.ts +++ b/packages/server/src/modules/PaymentReceived/PaymentsReceived.controller.ts @@ -24,7 +24,7 @@ import { import { AcceptType } from '@/constants/accept-type'; @Controller('payments-received') -@ApiTags('payments-received') +@ApiTags('Payments Received') export class PaymentReceivesController { constructor(private paymentReceivesApplication: PaymentReceivesApplication) {} diff --git a/packages/server/src/modules/PaymentServices/PaymentServices.controller.ts b/packages/server/src/modules/PaymentServices/PaymentServices.controller.ts index bb250b7ee..2f6b86216 100644 --- a/packages/server/src/modules/PaymentServices/PaymentServices.controller.ts +++ b/packages/server/src/modules/PaymentServices/PaymentServices.controller.ts @@ -11,7 +11,7 @@ import { ApiTags } from '@nestjs/swagger'; import { PaymentServicesApplication } from './PaymentServicesApplication'; import { EditPaymentMethodDTO } from './types'; -@ApiTags('PaymentServices') +@ApiTags('Payment Services') @Controller('payment-services') export class PaymentServicesController { constructor( diff --git a/packages/server/src/modules/PdfTemplate/PdfTemplates.controller.ts b/packages/server/src/modules/PdfTemplate/PdfTemplates.controller.ts index 7d1a07541..d90a91a2e 100644 --- a/packages/server/src/modules/PdfTemplate/PdfTemplates.controller.ts +++ b/packages/server/src/modules/PdfTemplate/PdfTemplates.controller.ts @@ -12,7 +12,7 @@ import { PdfTemplateApplication } from './PdfTemplate.application'; import { ICreateInvoicePdfTemplateDTO, IEditPdfTemplateDTO } from './types'; @Controller('pdf-templates') -@ApiTags('pdf-templates') +@ApiTags('Pdf Templates') export class PdfTemplatesController { constructor( private readonly pdfTemplateApplication: PdfTemplateApplication, diff --git a/packages/server/src/modules/SaleEstimates/SaleEstimates.controller.ts b/packages/server/src/modules/SaleEstimates/SaleEstimates.controller.ts index f2b04ee4e..a2011edba 100644 --- a/packages/server/src/modules/SaleEstimates/SaleEstimates.controller.ts +++ b/packages/server/src/modules/SaleEstimates/SaleEstimates.controller.ts @@ -27,7 +27,7 @@ import { AcceptType } from '@/constants/accept-type'; import { Response } from 'express'; @Controller('sale-estimates') -@ApiTags('sale-estimates') +@ApiTags('Sale Estimates') export class SaleEstimatesController { /** * @param {SaleEstimatesApplication} saleEstimatesApplication - Sale estimates application. diff --git a/packages/server/src/modules/SaleInvoices/SaleInvoices.controller.ts b/packages/server/src/modules/SaleInvoices/SaleInvoices.controller.ts index f34676cc7..04cc77465 100644 --- a/packages/server/src/modules/SaleInvoices/SaleInvoices.controller.ts +++ b/packages/server/src/modules/SaleInvoices/SaleInvoices.controller.ts @@ -35,7 +35,7 @@ import { import { AcceptType } from '@/constants/accept-type'; @Controller('sale-invoices') -@ApiTags('sale-invoices') +@ApiTags('Sale Invoices') @ApiHeader({ name: 'organization-id', description: 'The organization id', diff --git a/packages/server/src/modules/SaleReceipts/SaleReceipts.controller.ts b/packages/server/src/modules/SaleReceipts/SaleReceipts.controller.ts index 69ed54312..8474d0c33 100644 --- a/packages/server/src/modules/SaleReceipts/SaleReceipts.controller.ts +++ b/packages/server/src/modules/SaleReceipts/SaleReceipts.controller.ts @@ -23,7 +23,7 @@ import { AcceptType } from '@/constants/accept-type'; import { Response } from 'express'; @Controller('sale-receipts') -@ApiTags('sale-receipts') +@ApiTags('Sale Receipts') export class SaleReceiptsController { constructor(private saleReceiptApplication: SaleReceiptApplication) {} diff --git a/packages/server/src/modules/Settings/Settings.controller.ts b/packages/server/src/modules/Settings/Settings.controller.ts index fd91fba33..1477510b6 100644 --- a/packages/server/src/modules/Settings/Settings.controller.ts +++ b/packages/server/src/modules/Settings/Settings.controller.ts @@ -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 { ISettingsDTO } from './Settings.types'; -import { ApiOperation, ApiTags } from '@nestjs/swagger'; @Controller('settings') -@ApiTags('settings') +@ApiTags('Settings') export class SettingsController { constructor( private readonly settingsApplicationService: SettingsApplicationService, ) {} - @Put('') + @Put() @ApiOperation({ summary: 'Save the given settings.' }) async saveSettings(@Body() settingsDTO: ISettingsDTO) { return this.settingsApplicationService.saveSettings(settingsDTO); } - @Get('') + @Get() @ApiOperation({ summary: 'Retrieves the settings.' }) async getSettings() { return this.settingsApplicationService.getSettings(); diff --git a/packages/server/src/modules/Subscription/Subscriptions.controller.ts b/packages/server/src/modules/Subscription/Subscriptions.controller.ts index a70bebf5a..9198bc186 100644 --- a/packages/server/src/modules/Subscription/Subscriptions.controller.ts +++ b/packages/server/src/modules/Subscription/Subscriptions.controller.ts @@ -13,7 +13,7 @@ import { ApiOperation, ApiTags, ApiResponse, ApiBody } from '@nestjs/swagger'; import { SubscriptionApplication } from './SubscriptionApplication'; @Controller('subscription') -@ApiTags('subscriptions') +@ApiTags('Subscriptions') export class SubscriptionsController { constructor(private readonly subscriptionApp: SubscriptionApplication) {} diff --git a/packages/server/src/modules/Subscription/SubscriptionsLemonWebhook.controller.ts b/packages/server/src/modules/Subscription/SubscriptionsLemonWebhook.controller.ts index 38b0c718b..e2e5b9d5d 100644 --- a/packages/server/src/modules/Subscription/SubscriptionsLemonWebhook.controller.ts +++ b/packages/server/src/modules/Subscription/SubscriptionsLemonWebhook.controller.ts @@ -1,7 +1,9 @@ import { Controller, Post, Req } from '@nestjs/common'; import { LemonSqueezyWebhooks } from './webhooks/LemonSqueezyWebhooks'; +import { ApiTags } from '@nestjs/swagger'; @Controller('/webhooks/lemon') +@ApiTags('Subscriptions') export class SubscriptionsLemonWebhook { constructor(private readonly lemonWebhooksService: LemonSqueezyWebhooks) {} diff --git a/packages/server/src/modules/TaxRates/TaxRate.controller.ts b/packages/server/src/modules/TaxRates/TaxRate.controller.ts index 3d360e6b8..c2259c94f 100644 --- a/packages/server/src/modules/TaxRates/TaxRate.controller.ts +++ b/packages/server/src/modules/TaxRates/TaxRate.controller.ts @@ -12,7 +12,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { CreateTaxRateDto, EditTaxRateDto } from './dtos/TaxRate.dto'; @Controller('tax-rates') -@ApiTags('tax-rates') +@ApiTags('Tax Rates') export class TaxRatesController { constructor(private readonly taxRatesApplication: TaxRatesApplication) {} diff --git a/packages/server/src/modules/UsersModule/Users.controller.ts b/packages/server/src/modules/UsersModule/Users.controller.ts index 07196ed5a..fd8e5f865 100644 --- a/packages/server/src/modules/UsersModule/Users.controller.ts +++ b/packages/server/src/modules/UsersModule/Users.controller.ts @@ -13,7 +13,7 @@ import { UsersApplication } from './Users.application'; import { EditUserDto } from './dtos/EditUser.dto'; @Controller('users') -@ApiTags('users') +@ApiTags('Users') export class UsersController { constructor(private readonly usersApplication: UsersApplication) {} diff --git a/packages/server/src/modules/UsersModule/UsersInvite.controller.ts b/packages/server/src/modules/UsersModule/UsersInvite.controller.ts index 206869de0..7decf7e72 100644 --- a/packages/server/src/modules/UsersModule/UsersInvite.controller.ts +++ b/packages/server/src/modules/UsersModule/UsersInvite.controller.ts @@ -4,7 +4,7 @@ import { UsersApplication } from './Users.application'; import { InviteUserDto, SendInviteUserDto } from './dtos/InviteUser.dto'; @Controller('invite') -@ApiTags('users') +@ApiTags('Users') export class UsersInviteController { constructor(private readonly usersApplication: UsersApplication) {} diff --git a/packages/server/src/modules/VendorCredit/VendorCredits.controller.ts b/packages/server/src/modules/VendorCredit/VendorCredits.controller.ts index 99c8b7a4c..9acaf4094 100644 --- a/packages/server/src/modules/VendorCredit/VendorCredits.controller.ts +++ b/packages/server/src/modules/VendorCredit/VendorCredits.controller.ts @@ -17,7 +17,7 @@ import { } from './dtos/VendorCredit.dto'; @Controller('vendor-credits') -@ApiTags('vendor-credits') +@ApiTags('Vendor Credits') export class VendorCreditsController { constructor( private readonly vendorCreditsApplication: VendorCreditsApplicationService, diff --git a/packages/server/src/modules/VendorCreditsApplyBills/VendorCreditApplyBills.controller.ts b/packages/server/src/modules/VendorCreditsApplyBills/VendorCreditApplyBills.controller.ts index b8ef054e5..d9a7f81e2 100644 --- a/packages/server/src/modules/VendorCreditsApplyBills/VendorCreditApplyBills.controller.ts +++ b/packages/server/src/modules/VendorCreditsApplyBills/VendorCreditApplyBills.controller.ts @@ -4,7 +4,7 @@ import { IVendorCreditApplyToInvoicesDTO } from './types/VendorCreditApplyBills. import { ApiTags } from '@nestjs/swagger'; @Controller('vendor-credits') -@ApiTags('vendor-credits-apply-bills') +@ApiTags('Vendor Credits Apply Bills') export class VendorCreditApplyBillsController { constructor( private readonly vendorCreditApplyBillsApplication: VendorCreditApplyBillsApplicationService, diff --git a/packages/server/src/modules/VendorCreditsRefund/VendorCreditsRefund.controller.ts b/packages/server/src/modules/VendorCreditsRefund/VendorCreditsRefund.controller.ts index 292c2db88..5ee79421e 100644 --- a/packages/server/src/modules/VendorCreditsRefund/VendorCreditsRefund.controller.ts +++ b/packages/server/src/modules/VendorCreditsRefund/VendorCreditsRefund.controller.ts @@ -5,7 +5,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { RefundVendorCreditDto } from './dtos/RefundVendorCredit.dto'; @Controller('vendor-credits') -@ApiTags('vendor-credits-refunds') +@ApiTags('Vendor Credits Refunds') export class VendorCreditsRefundController { constructor( private readonly vendorCreditsRefundApplication: VendorCreditsRefundApplication, diff --git a/packages/server/src/modules/Views/Views.controller.ts b/packages/server/src/modules/Views/Views.controller.ts index 5064fe8ae..703d16fc6 100644 --- a/packages/server/src/modules/Views/Views.controller.ts +++ b/packages/server/src/modules/Views/Views.controller.ts @@ -3,7 +3,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { GetResourceViewsService } from './GetResourceViews.service'; @Controller('views') -@ApiTags('views') +@ApiTags('Views') export class ViewsController { constructor( private readonly getResourceViewsService: GetResourceViewsService, diff --git a/packages/server/src/modules/Warehouses/Warehouses.controller.ts b/packages/server/src/modules/Warehouses/Warehouses.controller.ts index 3c5a32d10..393ebb47d 100644 --- a/packages/server/src/modules/Warehouses/Warehouses.controller.ts +++ b/packages/server/src/modules/Warehouses/Warehouses.controller.ts @@ -12,7 +12,7 @@ import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { CreateWarehouseDto, EditWarehouseDto } from './dtos/Warehouse.dto'; @Controller('warehouses') -@ApiTags('warehouses') +@ApiTags('Warehouses') export class WarehousesController { constructor(private warehousesApplication: WarehousesApplication) {} diff --git a/packages/server/src/modules/WarehousesTransfers/WarehouseTransfers.controller.ts b/packages/server/src/modules/WarehousesTransfers/WarehouseTransfers.controller.ts index 97a5d63a6..815785c27 100644 --- a/packages/server/src/modules/WarehousesTransfers/WarehouseTransfers.controller.ts +++ b/packages/server/src/modules/WarehousesTransfers/WarehouseTransfers.controller.ts @@ -18,7 +18,7 @@ import { import { GetWarehouseTransfersQueryDto } from '../Warehouses/dtos/GetWarehouseTransfersQuery.dto'; @Controller('warehouse-transfers') -@ApiTags('warehouse-transfers') +@ApiTags('Warehouse Transfers') export class WarehouseTransfersController { /** * @param {WarehouseTransferApplication} warehouseTransferApplication - Warehouse transfer application.