@erp-galoper/types 1.0.1643 → 1.0.1645

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 +183 -12
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -19051,6 +19051,10 @@ export interface paths {
19051
19051
  * - negativeEarningAccountShouldBeInCompanyCurrency
19052
19052
  * - positiveCumulativeEarningAccountShouldBeInCompanyCurrency
19053
19053
  * - negativeCumulativeEarningAccountShouldBeInCompanyCurrency
19054
+ * - deferredExpenseDoesNotExist
19055
+ * - prepaidExpenseDoesNotExist
19056
+ * - deferredExpenseShouldBeInCompanyCurrency
19057
+ * - prepaidExpenseShouldBeInCompanyCurrency
19054
19058
  */
19055
19059
  post: operations["erp_settings_accountingsetting_views_create_default_subsidiary_account"];
19056
19060
  delete?: never;
@@ -28337,7 +28341,7 @@ export interface components {
28337
28341
  * GeneralAccountsOptions
28338
28342
  * @enum {string}
28339
28343
  */
28340
- GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount";
28344
+ GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
28341
28345
  /** ExportSchema */
28342
28346
  ExportSchema: {
28343
28347
  /** Pdf */
@@ -28580,7 +28584,7 @@ export interface components {
28580
28584
  * RetrieveJournalEntryType
28581
28585
  * @enum {string}
28582
28586
  */
28583
- RetrieveJournalEntryType: "manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "posSessionDiscrepancies" | "posOpeningSession" | "posClosingSession";
28587
+ RetrieveJournalEntryType: "manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "expenseDeferral" | "posSessionDiscrepancies" | "posOpeningSession" | "posClosingSession";
28584
28588
  /**
28585
28589
  * StatusChoices
28586
28590
  * @enum {string}
@@ -35786,6 +35790,18 @@ export interface components {
35786
35790
  salesCogsOfGoodsReturnNonResident?: number | null;
35787
35791
  /** Salescogsofworksreturnnonresident */
35788
35792
  salesCogsOfWorksReturnNonResident?: number | null;
35793
+ /**
35794
+ * Deferredexpense
35795
+ * @description - deferred expense account id
35796
+ * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type=general&isActive=True
35797
+ */
35798
+ deferredExpense?: number | null;
35799
+ /**
35800
+ * Prepaidexpense
35801
+ * @description - prepaid expense account id
35802
+ * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type=general&isActive=True
35803
+ */
35804
+ prepaidExpense?: number | null;
35789
35805
  };
35790
35806
  /** ChartOfAccountInfoSchema */
35791
35807
  ChartOfAccountInfoSchema: {
@@ -36049,6 +36065,8 @@ export interface components {
36049
36065
  salesCogsOfWorksReturnResident?: components["schemas"]["ChartOfAccountInfoSchema"] | null;
36050
36066
  salesCogsOfGoodsReturnNonResident?: components["schemas"]["ChartOfAccountInfoSchema"] | null;
36051
36067
  salesCogsOfWorksReturnNonResident?: components["schemas"]["ChartOfAccountInfoSchema"] | null;
36068
+ prepaidExpense: components["schemas"]["ChartOfAccountInfoSchema"] | null;
36069
+ deferredExpense: components["schemas"]["ChartOfAccountInfoSchema"] | null;
36052
36070
  };
36053
36071
  /**
36054
36072
  * SubsidiaryAccountListType
@@ -51619,14 +51637,140 @@ export interface components {
51619
51637
  * @enum {string}
51620
51638
  */
51621
51639
  RecognitionFrequency: "monthly" | "quarterly" | "annually" | "weekly";
51622
- /** SalesInvoiceItemSchema */
51623
- SalesInvoiceItemSchema: {
51640
+ /** SalesInvoiceItemsSchema */
51641
+ SalesInvoiceItemsSchema: {
51624
51642
  /**
51625
51643
  * Id
51626
51644
  * Format: uuid
51627
51645
  */
51628
51646
  id: string;
51629
51647
  item: components["schemas"]["ItemMinimalSchema"] | null;
51648
+ /** Itemname */
51649
+ itemName?: string | null;
51650
+ itemType: components["schemas"]["NonInventoryItemType"] | null;
51651
+ /** Description */
51652
+ description: string | null;
51653
+ /** Quantity */
51654
+ quantity: number;
51655
+ /** @description The unit of measure selected from the item's options */
51656
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
51657
+ /**
51658
+ * Unitprice
51659
+ * @description This field is a number representing the unit price of the item.
51660
+ */
51661
+ unitPrice: string;
51662
+ /** @description Details of the selected item package, if applicable. */
51663
+ itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
51664
+ /**
51665
+ * Packagedepositcharge
51666
+ * @description This field is a number representing the deposit charge for the selected package, if applicable.
51667
+ */
51668
+ packageDepositCharge?: string | null;
51669
+ /**
51670
+ * Includetaxinunitprice
51671
+ * @description If true, the unit price includes tax and will be extracted to calculate the base price
51672
+ * @default false
51673
+ */
51674
+ includeTaxInUnitPrice: boolean;
51675
+ /**
51676
+ * Discount
51677
+ * @description The discount percentage applied to the item.
51678
+ * @default 0
51679
+ */
51680
+ discount: number | null;
51681
+ /**
51682
+ * Promotionsandoffers
51683
+ * @description List of promotions and offers applied to the item, visible when modules sales and inventory are on
51684
+ * @default []
51685
+ */
51686
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
51687
+ commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
51688
+ /**
51689
+ * Subtotal
51690
+ * @description This field is a number representing gross subtotal for the item.
51691
+ */
51692
+ subtotal: string;
51693
+ /**
51694
+ * Secondarysubtotal
51695
+ * @description This field is a number representing gross subtotal in secondary currency.
51696
+ * @default 0
51697
+ */
51698
+ secondarySubtotal: string;
51699
+ /**
51700
+ * Companysubtotal
51701
+ * @description This field is a number representing gross subtotal in the company's currency.
51702
+ * @default 0
51703
+ */
51704
+ companySubtotal: string;
51705
+ /**
51706
+ * Discountedtotal
51707
+ * @description This field is a number representing net subtotal after applying the discount.
51708
+ * @default 0
51709
+ */
51710
+ discountedTotal: string;
51711
+ /**
51712
+ * Secondarydiscountedtotal
51713
+ * @description This field is a number representing net subtotal after applying the discount in secondary currency.
51714
+ * @default 0
51715
+ */
51716
+ secondaryDiscountedTotal: string;
51717
+ /**
51718
+ * Companydiscountedtotal
51719
+ * @description This field is a number representing net subtotal after applying the discount in the company's currency.
51720
+ * @default 0
51721
+ */
51722
+ companyDiscountedTotal: string;
51723
+ /**
51724
+ * Taxes
51725
+ * @description List of taxes applied to the item.
51726
+ * @default []
51727
+ */
51728
+ taxes: components["schemas"]["TaxSharedSchema"][];
51729
+ /**
51730
+ * Taxamount
51731
+ * @description This field is a number representing the total tax amount applied to the item.
51732
+ * @default 0
51733
+ */
51734
+ taxAmount: string;
51735
+ /**
51736
+ * Secondarytaxamount
51737
+ * @description This field is a number representing the total tax amount in USD.
51738
+ * @default 0
51739
+ */
51740
+ secondaryTaxAmount: string;
51741
+ /**
51742
+ * Companytaxamount
51743
+ * @description This field is a number representing the total tax amount in the company's currency.
51744
+ * @default 0
51745
+ */
51746
+ companyTaxAmount: string;
51747
+ /**
51748
+ * Total
51749
+ * @description This field is a number representing grand total for the item.
51750
+ * @default 0
51751
+ */
51752
+ total: string;
51753
+ /**
51754
+ * Secondarytotal
51755
+ * @description This field is a number representing grand total in secondary currency.
51756
+ * @default 0
51757
+ */
51758
+ secondaryTotal: string;
51759
+ /**
51760
+ * Companytotal
51761
+ * @description This field is a number representing grand total in the company's currency.
51762
+ * @default 0
51763
+ */
51764
+ companyTotal: string;
51765
+ /** Quantityreturnedinvoice */
51766
+ quantityReturnedInvoice?: number;
51767
+ /** Quantityreturnedorder */
51768
+ quantityReturnedOrder?: number;
51769
+ /**
51770
+ * Quantitydelivered
51771
+ * @description Only show in case of delivery note source is sales invoice
51772
+ */
51773
+ quantityDelivered?: number | null;
51630
51774
  };
51631
51775
  /** SalesInvoiceSchema */
51632
51776
  SalesInvoiceSchema: {
@@ -51873,7 +52017,7 @@ export interface components {
51873
52017
  * Items
51874
52018
  * @default []
51875
52019
  */
51876
- items: components["schemas"]["SalesInvoiceItemSchema"][];
52020
+ items: components["schemas"]["SalesInvoiceItemsSchema"][];
51877
52021
  };
51878
52022
  /** CreateUpdateSalesInvoiceItemSchema */
51879
52023
  CreateUpdateSalesInvoiceItemSchema: {
@@ -52674,7 +52818,7 @@ export interface components {
52674
52818
  * Items
52675
52819
  * @default []
52676
52820
  */
52677
- items: components["schemas"]["SalesInvoiceItemSchema"][];
52821
+ items: components["schemas"]["SalesInvoiceItemsSchema"][];
52678
52822
  /** Linkeddocuments */
52679
52823
  linkedDocuments?: {
52680
52824
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -54988,6 +55132,15 @@ export interface components {
54988
55132
  */
54989
55133
  entries: components["schemas"]["PostEntryDetailsSchema"][];
54990
55134
  };
55135
+ /** SalesInvoiceItemSchema */
55136
+ SalesInvoiceItemSchema: {
55137
+ /**
55138
+ * Id
55139
+ * Format: uuid
55140
+ */
55141
+ id: string;
55142
+ item: components["schemas"]["ItemMinimalSchema"] | null;
55143
+ };
54991
55144
  /** SalesCreditNoteCreateSchema */
54992
55145
  SalesCreditNoteCreateSchema: {
54993
55146
  /** Password */
@@ -58259,6 +58412,10 @@ export interface components {
58259
58412
  /** Name */
58260
58413
  name: string;
58261
58414
  expenseAccount: components["schemas"]["ExpenseCategoryAccount"];
58415
+ /** @description visible when hasLimit is true */
58416
+ prepaidExpenseAccount: components["schemas"]["ExpenseCategoryAccount"] | null;
58417
+ /** @description visible when hasLimit is true */
58418
+ deferredExpenseAccount: components["schemas"]["ExpenseCategoryAccount"] | null;
58262
58419
  /** Haslimit */
58263
58420
  hasLimit: boolean;
58264
58421
  /** Limitamount */
@@ -58306,6 +58463,20 @@ export interface components {
58306
58463
  * - get accounts using route /api/v1/chart_of_account/?branchId=1&type=expenses
58307
58464
  */
58308
58465
  expenseAccount: number;
58466
+ /**
58467
+ * Prepaidexpenseaccount
58468
+ * @description - prepaid expense account id
58469
+ * - visible and required when hasLimit is true
58470
+ * - get accounts using route /api/v1/chart_of_account/?branchId=1&type=prepaidExpenses
58471
+ */
58472
+ prepaidExpenseAccount?: number;
58473
+ /**
58474
+ * Deferredexpenseaccount
58475
+ * @description - deferred expense account id
58476
+ * - visible and required when hasLimit is true
58477
+ * - get accounts using route /api/v1/chart_of_account/?branchId=1&type=deferredExpenses
58478
+ */
58479
+ deferredExpenseAccount?: number;
58309
58480
  /**
58310
58481
  * Haslimit
58311
58482
  * @description Flag to indicate if this category has a spending limit
@@ -58550,7 +58721,7 @@ export interface components {
58550
58721
  date: string;
58551
58722
  voucherType: components["schemas"]["ExpenseVoucherTypeEnum"];
58552
58723
  category: components["schemas"]["ExpenseCategorySummarySchema"];
58553
- department: components["schemas"]["DepartmentSummaryInfo"];
58724
+ department: components["schemas"]["DepartmentSummaryInfo"] | null;
58554
58725
  /** Primaryrate */
58555
58726
  primaryRate: string;
58556
58727
  /** Secondaryrate */
@@ -58740,7 +58911,7 @@ export interface components {
58740
58911
  * @description - Department id
58741
58912
  * - get departments using route /api/v1/departments/
58742
58913
  */
58743
- department: string;
58914
+ department?: string;
58744
58915
  /**
58745
58916
  * Category
58746
58917
  * Format: uuid
@@ -58923,7 +59094,7 @@ export interface components {
58923
59094
  date: string;
58924
59095
  voucherType: components["schemas"]["ExpenseVoucherTypeEnum"];
58925
59096
  category: components["schemas"]["ExpenseCategorySummarySchema"];
58926
- department: components["schemas"]["DepartmentSummaryInfo"];
59097
+ department: components["schemas"]["DepartmentSummaryInfo"] | null;
58927
59098
  /** Primaryrate */
58928
59099
  primaryRate: string;
58929
59100
  /** Secondaryrate */
@@ -62391,7 +62562,7 @@ export interface operations {
62391
62562
  parameters: {
62392
62563
  query: {
62393
62564
  branchId: number;
62394
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount";
62565
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
62395
62566
  accountId?: number;
62396
62567
  /** @description search by account number, name or type */
62397
62568
  search?: string;
@@ -62548,7 +62719,7 @@ export interface operations {
62548
62719
  parameters: {
62549
62720
  query: {
62550
62721
  branchId: number;
62551
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount";
62722
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
62552
62723
  accountId?: number;
62553
62724
  /** @description required when type [cheque, cash, credit card] */
62554
62725
  supplierId?: number;
@@ -62895,7 +63066,7 @@ export interface operations {
62895
63066
  /** @description required when isBatchExport is True */
62896
63067
  status?: ("draft" | "posted" | "reverse" | "canceled" | "submitted")[];
62897
63068
  /** @description required when isBatchExport is True */
62898
- type?: ("manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "posSessionDiscrepancies" | "posOpeningSession" | "posClosingSession")[];
63069
+ type?: ("manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "expenseDeferral" | "posSessionDiscrepancies" | "posOpeningSession" | "posClosingSession")[];
62899
63070
  branchId: number;
62900
63071
  /** @description The value is true when export in list of journal vouchers, and value is false when export single journal voucher */
62901
63072
  isBatchExport: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1643",
3
+ "version": "1.0.1645",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],