@erp-galoper/types 1.0.1233 → 1.0.1234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openapi.ts +529 -8
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -20792,6 +20792,150 @@ export interface paths {
20792
20792
  patch?: never;
20793
20793
  trace?: never;
20794
20794
  };
20795
+ "/api/v1/expenses/categories/": {
20796
+ parameters: {
20797
+ query?: never;
20798
+ header?: never;
20799
+ path?: never;
20800
+ cookie?: never;
20801
+ };
20802
+ /**
20803
+ * List Expense Categories
20804
+ * @description Endpoint for Listing Expense Categories
20805
+ *
20806
+ * Responses:
20807
+ * - 200:
20808
+ * - ExpenseCategoryListSchema
20809
+ * - 400:
20810
+ * - customPeriodError
20811
+ * - invalidFilterFormat
20812
+ * - 403:
20813
+ * - permissionDenied
20814
+ * - 500:
20815
+ * - internalServerError
20816
+ *
20817
+ * - Permission key:
20818
+ * - expensecategory: [ view ]
20819
+ */
20820
+ get: operations["erp_settings_expenses_settings_views_list_expense_categories"];
20821
+ put?: never;
20822
+ /**
20823
+ * New Expense Category
20824
+ * @description Endpoint for create new expense category.
20825
+ * Possible Responses:
20826
+ * - 201:
20827
+ * - expenseCategoryCreated
20828
+ * - 400:
20829
+ * - name+branchConflict
20830
+ * - limitAmountIsRequired
20831
+ * - limitCurrencyIsRequired
20832
+ * - expenseAccountDoesNotExist
20833
+ * - limitCurrencyDoesNotExist
20834
+ * - preferredSupplierDoesNotExist
20835
+ * - supplierShouldBeChild
20836
+ * - supplierIsNotActive
20837
+ * - expenseAccountShouldBeSubsidiaryAccount
20838
+ * - expenseAccountIsNotActive
20839
+ * - expenseAccountShouldBeInCompanyOrSecondaryCurrency
20840
+ * - expenseAccountShouldBeSubAccountOfDefaultExpensesAccount
20841
+ * - defaultGeneralAccountsDoesNotExist
20842
+ * - limitationPeriodIsRequired
20843
+ *
20844
+ * - 403:
20845
+ * - permissionDenied
20846
+ * - 500:
20847
+ * - internalServerError
20848
+ * - Permission Key:
20849
+ * expensecategory : [ add ]
20850
+ *
20851
+ * - User should have expenses module enabled to work on this feature.
20852
+ */
20853
+ post: operations["erp_settings_expenses_settings_views_new_expense_category"];
20854
+ delete?: never;
20855
+ options?: never;
20856
+ head?: never;
20857
+ patch?: never;
20858
+ trace?: never;
20859
+ };
20860
+ "/api/v1/expenses/categories/{id}/": {
20861
+ parameters: {
20862
+ query?: never;
20863
+ header?: never;
20864
+ path?: never;
20865
+ cookie?: never;
20866
+ };
20867
+ /**
20868
+ * Get Category Expense
20869
+ * @description Endpoint for get category expense.
20870
+ * Possible Responses:
20871
+ * - 200:
20872
+ * - ExpenseCategoryDetailSchema
20873
+ * - 404:
20874
+ * - expenseCategoryDoesNotExist
20875
+ * - 403:
20876
+ * - permissionDenied
20877
+ * - 500:
20878
+ * - internalServerError
20879
+ * - Permission Key:
20880
+ * expensecategory : [ view ]
20881
+ */
20882
+ get: operations["erp_settings_expenses_settings_views_get_category_expense"];
20883
+ /**
20884
+ * Update Expense Category
20885
+ * @description Endpoint for update new expense category.
20886
+ * Possible Responses:
20887
+ * - 200:
20888
+ * - expenseCategoryUpdated
20889
+ * - 400:
20890
+ * - name+branchConflict
20891
+ * - limitAmountIsRequired
20892
+ * - limitCurrencyIsRequired
20893
+ * - expenseAccountDoesNotExist
20894
+ * - limitCurrencyDoesNotExist
20895
+ * - preferredSupplierDoesNotExist
20896
+ * - supplierShouldBeChild
20897
+ * - supplierIsNotActive
20898
+ * - expenseAccountShouldBeSubsidiaryAccount
20899
+ * - expenseAccountIsNotActive
20900
+ * - expenseAccountShouldBeInCompanyOrSecondaryCurrency
20901
+ * - expenseAccountShouldBeSubAccountOfDefaultExpensesAccount
20902
+ * - defaultGeneralAccountsDoesNotExist
20903
+ * - limitationPeriodIsRequired
20904
+ * - 404:
20905
+ * - expenseCategoryDoesNotExist
20906
+ * - 403:
20907
+ * - permissionDenied
20908
+ * - 500:
20909
+ * - internalServerError
20910
+ * - Permission Key:
20911
+ * expensecategory : [ change ]
20912
+ *
20913
+ * - User should have expenses module enabled to work on this feature.
20914
+ */
20915
+ put: operations["erp_settings_expenses_settings_views_update_expense_category"];
20916
+ post?: never;
20917
+ /**
20918
+ * Delete Expense Category
20919
+ * @description Endpoint for deleting expense category
20920
+ * Responses:
20921
+ * - 204: None
20922
+ * - 403:
20923
+ * - permissionDenied
20924
+ * - expenseCategoryCannotBeDeleted
20925
+ * - 404:
20926
+ * - expenseCategoryDoesNotExist
20927
+ * - 500:
20928
+ * internalServerError
20929
+ *
20930
+ * - Permission key:
20931
+ * expensecategory = [ delete ]
20932
+ */
20933
+ delete: operations["erp_settings_expenses_settings_views_delete_expense_category"];
20934
+ options?: never;
20935
+ head?: never;
20936
+ patch?: never;
20937
+ trace?: never;
20938
+ };
20795
20939
  }
20796
20940
  export type webhooks = Record<string, never>;
20797
20941
  export interface components {
@@ -25790,7 +25934,7 @@ export interface components {
25790
25934
  * GeneralAccountsOptions
25791
25935
  * @enum {string}
25792
25936
  */
25793
- GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident";
25937
+ GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses";
25794
25938
  /** ExportSchema */
25795
25939
  ExportSchema: {
25796
25940
  /** Pdf */
@@ -26612,7 +26756,7 @@ export interface components {
26612
26756
  * FileType
26613
26757
  * @enum {string}
26614
26758
  */
26615
- FileType: "item" | "company" | "user" | "supplier" | "customer" | "itemCategory" | "journalVoucher" | "supplierPriceList" | "requisition" | "purchaseQuotation" | "purchaseOrder" | "purchaseReturnOrder" | "advancePayment" | "requestForQuotation" | "purchaseInvoice" | "purchaseReturnInvoice" | "salesPriceList" | "closingCommission" | "commissionStructure" | "commissionPayout" | "offerAndPromotion" | "refundVoucher" | "paymentVoucher" | "purchaseCreditNote" | "downPayment" | "receiptVoucher" | "salesPerson" | "salesQuotation" | "salesOrder" | "salesReturnOrder" | "salesInvoice" | "salesReturnInvoice" | "salesRefundVoucher" | "returnSalesOrder" | "returnSalesInvoice" | "goodsReceiptNote" | "goodsDeliveryNote" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "customFieldValue" | "transferRequest";
26759
+ FileType: "item" | "company" | "user" | "supplier" | "customer" | "itemCategory" | "journalVoucher" | "supplierPriceList" | "requisition" | "purchaseQuotation" | "purchaseOrder" | "purchaseReturnOrder" | "advancePayment" | "requestForQuotation" | "purchaseInvoice" | "purchaseReturnInvoice" | "salesPriceList" | "closingCommission" | "commissionStructure" | "commissionPayout" | "offerAndPromotion" | "refundVoucher" | "paymentVoucher" | "purchaseCreditNote" | "downPayment" | "receiptVoucher" | "salesPerson" | "salesQuotation" | "salesOrder" | "salesReturnOrder" | "salesInvoice" | "salesReturnInvoice" | "salesRefundVoucher" | "returnSalesOrder" | "returnSalesInvoice" | "goodsReceiptNote" | "goodsDeliveryNote" | "salesCreditNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "customFieldValue" | "transferRequest" | "expenseCategory";
26616
26760
  /** currencyCodeOut */
26617
26761
  currencyCodeOut: {
26618
26762
  /** Currencycode */
@@ -26704,7 +26848,7 @@ export interface components {
26704
26848
  * LogModelName
26705
26849
  * @enum {string}
26706
26850
  */
26707
- LogModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event";
26851
+ LogModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "expenseCategory";
26708
26852
  /**
26709
26853
  * LogType
26710
26854
  * @enum {string}
@@ -51908,7 +52052,7 @@ export interface components {
51908
52052
  * CombinedModelName
51909
52053
  * @enum {string}
51910
52054
  */
51911
- common__shared_schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport";
52055
+ common__shared_schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "expenseCategory" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport";
51912
52056
  /** TasksListSchema */
51913
52057
  TasksListSchema: {
51914
52058
  info: components["schemas"]["PageInfoSchema"];
@@ -52563,6 +52707,115 @@ export interface components {
52563
52707
  /** Color */
52564
52708
  color: string;
52565
52709
  };
52710
+ /** ExpenseCategoryDetailSchema */
52711
+ ExpenseCategoryDetailSchema: {
52712
+ /**
52713
+ * Datecreated
52714
+ * Format: date-time
52715
+ */
52716
+ dateCreated: string;
52717
+ /** Datemodified */
52718
+ dateModified: string | null;
52719
+ createdBy: components["schemas"]["RecordUserSchema"];
52720
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
52721
+ /**
52722
+ * Id
52723
+ * Format: uuid
52724
+ */
52725
+ id: string;
52726
+ /** Name */
52727
+ name: string;
52728
+ expenseAccount: components["schemas"]["AccountSummaryInfo"];
52729
+ /** Haslimit */
52730
+ hasLimit: boolean;
52731
+ /** Limitamount */
52732
+ limitAmount: string | null;
52733
+ limitCurrency: components["schemas"]["CurrencySummaryInfo"] | null;
52734
+ limitationPeriod: components["schemas"]["LimitationPeriodEnum"] | null;
52735
+ preferredSupplier: components["schemas"]["AccountSummaryInfo"] | null;
52736
+ /** Isactive */
52737
+ isActive: boolean;
52738
+ /** Notes */
52739
+ notes: string | null;
52740
+ /** Description */
52741
+ description: string | null;
52742
+ /** Attachments */
52743
+ attachments: string[] | null;
52744
+ /** Candelete */
52745
+ canDelete: boolean;
52746
+ };
52747
+ /** ExpenseCategoryResponseSchema */
52748
+ ExpenseCategoryResponseSchema: {
52749
+ /** Message */
52750
+ message: string;
52751
+ /** Code */
52752
+ code: string;
52753
+ data: components["schemas"]["ExpenseCategoryDetailSchema"];
52754
+ };
52755
+ /**
52756
+ * LimitationPeriodEnum
52757
+ * @enum {string}
52758
+ */
52759
+ LimitationPeriodEnum: "monthly" | "quarterly" | "annually" | "semiAnnual";
52760
+ /** CreateUpdateExpenseCategorySchema */
52761
+ CreateUpdateExpenseCategorySchema: {
52762
+ /** Name */
52763
+ name: string;
52764
+ /**
52765
+ * Expenseaccount
52766
+ * @description - expense account id
52767
+ * - get accounts using route /api/v1/chart_of_account/?branchId=1&type=expenses
52768
+ */
52769
+ expenseAccount: number;
52770
+ /**
52771
+ * Haslimit
52772
+ * @description Flag to indicate if this category has a spending limit
52773
+ * @default false
52774
+ */
52775
+ hasLimit: boolean;
52776
+ /**
52777
+ * Limitamount
52778
+ * @description - This field is number
52779
+ * - Max allowed amount for this category, visible and required when hasLimit is true
52780
+ */
52781
+ limitAmount?: string;
52782
+ /**
52783
+ * Limitcurrency
52784
+ * @description - Currency of the limit amount
52785
+ * - visible and required when hasLimit is true
52786
+ * - should be either primary or secondary currency, use route /api/v1/currencies/primary_and_secondary/
52787
+ */
52788
+ limitCurrency?: number;
52789
+ /** @description visible and required when hasLimit is true */
52790
+ limitationPeriod?: components["schemas"]["LimitationPeriodEnum"];
52791
+ /**
52792
+ * Preferredsupplier
52793
+ * @description - preferred supplier for this category
52794
+ * - use api route /api/v1/suppliers/?type=children and filter by type equals expense
52795
+ */
52796
+ preferredSupplier?: number;
52797
+ /**
52798
+ * Isactive
52799
+ * @default true
52800
+ */
52801
+ isActive: boolean;
52802
+ /** Notes */
52803
+ notes?: string;
52804
+ /** Description */
52805
+ description?: string;
52806
+ /**
52807
+ * Attachments
52808
+ * @description to upload files use route /api/v1/common/upload and in payload type = {expenseCategory}
52809
+ * @default []
52810
+ */
52811
+ attachments: string[];
52812
+ };
52813
+ /** ExpenseCategoryListSchema */
52814
+ ExpenseCategoryListSchema: {
52815
+ info: components["schemas"]["PageInfoSchema"];
52816
+ /** Results */
52817
+ results: components["schemas"]["ExpenseCategoryDetailSchema"][];
52818
+ };
52566
52819
  };
52567
52820
  responses: never;
52568
52821
  parameters: never;
@@ -55487,7 +55740,7 @@ export interface operations {
55487
55740
  parameters: {
55488
55741
  query: {
55489
55742
  branchId: number;
55490
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident";
55743
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses";
55491
55744
  accountId?: number;
55492
55745
  /** @description search by account number, name or type */
55493
55746
  search?: string;
@@ -55644,7 +55897,7 @@ export interface operations {
55644
55897
  parameters: {
55645
55898
  query: {
55646
55899
  branchId: number;
55647
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident";
55900
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses";
55648
55901
  accountId?: number;
55649
55902
  /** @description required when type [cheque, cash, credit card] */
55650
55903
  supplierId?: number;
@@ -56955,7 +57208,7 @@ export interface operations {
56955
57208
  common_views_get_logs: {
56956
57209
  parameters: {
56957
57210
  query?: {
56958
- logModelName?: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event";
57211
+ logModelName?: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "expenseCategory";
56959
57212
  logType?: "Created" | "Changed" | "Deleted";
56960
57213
  startDate?: string;
56961
57214
  endDate?: string;
@@ -57012,7 +57265,7 @@ export interface operations {
57012
57265
  common_views_get_model_names: {
57013
57266
  parameters: {
57014
57267
  query?: {
57015
- CombinedModelNames?: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport";
57268
+ CombinedModelNames?: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "expenseCategory" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport";
57016
57269
  };
57017
57270
  header?: never;
57018
57271
  path?: never;
@@ -94419,4 +94672,272 @@ export interface operations {
94419
94672
  };
94420
94673
  };
94421
94674
  };
94675
+ erp_settings_expenses_settings_views_list_expense_categories: {
94676
+ parameters: {
94677
+ query?: {
94678
+ /** @description Search by name, preferred supplier name/account number, limit amount, expense account name/account number */
94679
+ search?: string | null;
94680
+ };
94681
+ header?: never;
94682
+ path?: never;
94683
+ cookie?: never;
94684
+ };
94685
+ requestBody?: never;
94686
+ responses: {
94687
+ /** @description OK */
94688
+ 200: {
94689
+ headers: {
94690
+ [name: string]: unknown;
94691
+ };
94692
+ content: {
94693
+ "application/json": components["schemas"]["ExpenseCategoryListSchema"];
94694
+ };
94695
+ };
94696
+ /** @description Bad Request */
94697
+ 400: {
94698
+ headers: {
94699
+ [name: string]: unknown;
94700
+ };
94701
+ content: {
94702
+ "application/json": components["schemas"]["ErrorMessages"];
94703
+ };
94704
+ };
94705
+ /** @description Forbidden */
94706
+ 403: {
94707
+ headers: {
94708
+ [name: string]: unknown;
94709
+ };
94710
+ content: {
94711
+ "application/json": components["schemas"]["MessageResponse"];
94712
+ };
94713
+ };
94714
+ /** @description Internal Server Error */
94715
+ 500: {
94716
+ headers: {
94717
+ [name: string]: unknown;
94718
+ };
94719
+ content: {
94720
+ "application/json": components["schemas"]["MessageResponse"];
94721
+ };
94722
+ };
94723
+ };
94724
+ };
94725
+ erp_settings_expenses_settings_views_new_expense_category: {
94726
+ parameters: {
94727
+ query?: never;
94728
+ header?: never;
94729
+ path?: never;
94730
+ cookie?: never;
94731
+ };
94732
+ requestBody: {
94733
+ content: {
94734
+ "application/json": components["schemas"]["CreateUpdateExpenseCategorySchema"];
94735
+ };
94736
+ };
94737
+ responses: {
94738
+ /** @description Created */
94739
+ 201: {
94740
+ headers: {
94741
+ [name: string]: unknown;
94742
+ };
94743
+ content: {
94744
+ "application/json": components["schemas"]["ExpenseCategoryResponseSchema"];
94745
+ };
94746
+ };
94747
+ /** @description Bad Request */
94748
+ 400: {
94749
+ headers: {
94750
+ [name: string]: unknown;
94751
+ };
94752
+ content: {
94753
+ "application/json": components["schemas"]["ErrorMessages"];
94754
+ };
94755
+ };
94756
+ /** @description Forbidden */
94757
+ 403: {
94758
+ headers: {
94759
+ [name: string]: unknown;
94760
+ };
94761
+ content: {
94762
+ "application/json": components["schemas"]["MessageResponse"];
94763
+ };
94764
+ };
94765
+ /** @description Internal Server Error */
94766
+ 500: {
94767
+ headers: {
94768
+ [name: string]: unknown;
94769
+ };
94770
+ content: {
94771
+ "application/json": components["schemas"]["MessageResponse"];
94772
+ };
94773
+ };
94774
+ };
94775
+ };
94776
+ erp_settings_expenses_settings_views_get_category_expense: {
94777
+ parameters: {
94778
+ query?: never;
94779
+ header?: never;
94780
+ path: {
94781
+ id: string;
94782
+ };
94783
+ cookie?: never;
94784
+ };
94785
+ requestBody?: never;
94786
+ responses: {
94787
+ /** @description OK */
94788
+ 200: {
94789
+ headers: {
94790
+ [name: string]: unknown;
94791
+ };
94792
+ content: {
94793
+ "application/json": components["schemas"]["ExpenseCategoryDetailSchema"];
94794
+ };
94795
+ };
94796
+ /** @description Forbidden */
94797
+ 403: {
94798
+ headers: {
94799
+ [name: string]: unknown;
94800
+ };
94801
+ content: {
94802
+ "application/json": components["schemas"]["MessageResponse"];
94803
+ };
94804
+ };
94805
+ /** @description Not Found */
94806
+ 404: {
94807
+ headers: {
94808
+ [name: string]: unknown;
94809
+ };
94810
+ content: {
94811
+ "application/json": components["schemas"]["MessageResponse"];
94812
+ };
94813
+ };
94814
+ /** @description Internal Server Error */
94815
+ 500: {
94816
+ headers: {
94817
+ [name: string]: unknown;
94818
+ };
94819
+ content: {
94820
+ "application/json": components["schemas"]["MessageResponse"];
94821
+ };
94822
+ };
94823
+ };
94824
+ };
94825
+ erp_settings_expenses_settings_views_update_expense_category: {
94826
+ parameters: {
94827
+ query?: never;
94828
+ header?: never;
94829
+ path: {
94830
+ id: string;
94831
+ };
94832
+ cookie?: never;
94833
+ };
94834
+ requestBody: {
94835
+ content: {
94836
+ "application/json": components["schemas"]["CreateUpdateExpenseCategorySchema"];
94837
+ };
94838
+ };
94839
+ responses: {
94840
+ /** @description OK */
94841
+ 200: {
94842
+ headers: {
94843
+ [name: string]: unknown;
94844
+ };
94845
+ content: {
94846
+ "application/json": components["schemas"]["ExpenseCategoryResponseSchema"];
94847
+ };
94848
+ };
94849
+ /** @description Bad Request */
94850
+ 400: {
94851
+ headers: {
94852
+ [name: string]: unknown;
94853
+ };
94854
+ content: {
94855
+ "application/json": components["schemas"]["ErrorMessages"];
94856
+ };
94857
+ };
94858
+ /** @description Forbidden */
94859
+ 403: {
94860
+ headers: {
94861
+ [name: string]: unknown;
94862
+ };
94863
+ content: {
94864
+ "application/json": components["schemas"]["MessageResponse"];
94865
+ };
94866
+ };
94867
+ /** @description Not Found */
94868
+ 404: {
94869
+ headers: {
94870
+ [name: string]: unknown;
94871
+ };
94872
+ content: {
94873
+ "application/json": components["schemas"]["MessageResponse"];
94874
+ };
94875
+ };
94876
+ /** @description Internal Server Error */
94877
+ 500: {
94878
+ headers: {
94879
+ [name: string]: unknown;
94880
+ };
94881
+ content: {
94882
+ "application/json": components["schemas"]["MessageResponse"];
94883
+ };
94884
+ };
94885
+ };
94886
+ };
94887
+ erp_settings_expenses_settings_views_delete_expense_category: {
94888
+ parameters: {
94889
+ query?: never;
94890
+ header?: never;
94891
+ path: {
94892
+ id: string;
94893
+ };
94894
+ cookie?: never;
94895
+ };
94896
+ requestBody?: never;
94897
+ responses: {
94898
+ /** @description No Content */
94899
+ 204: {
94900
+ headers: {
94901
+ [name: string]: unknown;
94902
+ };
94903
+ content?: never;
94904
+ };
94905
+ /** @description Bad Request */
94906
+ 400: {
94907
+ headers: {
94908
+ [name: string]: unknown;
94909
+ };
94910
+ content: {
94911
+ "application/json": components["schemas"]["ErrorMessages"];
94912
+ };
94913
+ };
94914
+ /** @description Forbidden */
94915
+ 403: {
94916
+ headers: {
94917
+ [name: string]: unknown;
94918
+ };
94919
+ content: {
94920
+ "application/json": components["schemas"]["MessageResponse"];
94921
+ };
94922
+ };
94923
+ /** @description Not Found */
94924
+ 404: {
94925
+ headers: {
94926
+ [name: string]: unknown;
94927
+ };
94928
+ content: {
94929
+ "application/json": components["schemas"]["MessageResponse"];
94930
+ };
94931
+ };
94932
+ /** @description Internal Server Error */
94933
+ 500: {
94934
+ headers: {
94935
+ [name: string]: unknown;
94936
+ };
94937
+ content: {
94938
+ "application/json": components["schemas"]["MessageResponse"];
94939
+ };
94940
+ };
94941
+ };
94942
+ };
94422
94943
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1233",
3
+ "version": "1.0.1234",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],