@erp-galoper/types 1.0.1708 → 1.0.1710

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 +159 -3
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -3129,7 +3129,6 @@ export interface paths {
3129
3129
  * -200 :
3130
3130
  * - success
3131
3131
  * -400:
3132
- * - invalidMethodType
3133
3132
  * - categoryDoesNotExist
3134
3133
  * -403:
3135
3134
  * - permissionDenied
@@ -3175,7 +3174,6 @@ export interface paths {
3175
3174
  * - 400:
3176
3175
  * - nameConflict
3177
3176
  * - maxLevelIsFiveForCreation
3178
- * - can'tCreateCategoryUnderParentCategoryAssignedToItem
3179
3177
  * - parentIdRequired
3180
3178
  * - imagePathDoesNotExist
3181
3179
  * - 403:
@@ -6058,6 +6056,40 @@ export interface paths {
6058
6056
  patch?: never;
6059
6057
  trace?: never;
6060
6058
  };
6059
+ "/api/v1/reports/accounting/transactions": {
6060
+ parameters: {
6061
+ query?: never;
6062
+ header?: never;
6063
+ path?: never;
6064
+ cookie?: never;
6065
+ };
6066
+ /**
6067
+ * Get All Transactions
6068
+ * @description This endpoint return all transactions
6069
+ * possible Responses:
6070
+ * - 200: ListPostEntrySchema
6071
+ * - 403:
6072
+ * - permissionDenied
6073
+ * - 400:
6074
+ * - startDateAndEndDateAreRequiredForCustomPeriodType
6075
+ * - startDateShouldBeGreaterThanEndDate
6076
+ * - userSettingDoesNotExist
6077
+ * - invalidFilterFormat
6078
+ * - paginationError
6079
+ * - 500:
6080
+ * - internalServerError
6081
+ * - Permission Key:
6082
+ * transactions_report : [ view ]
6083
+ */
6084
+ get: operations["reports_accounting_reports_get_all_transactions"];
6085
+ put?: never;
6086
+ post?: never;
6087
+ delete?: never;
6088
+ options?: never;
6089
+ head?: never;
6090
+ patch?: never;
6091
+ trace?: never;
6092
+ };
6061
6093
  "/api/v1/reports/accounting/balance-sheet/": {
6062
6094
  parameters: {
6063
6095
  query?: never;
@@ -29149,7 +29181,7 @@ export interface components {
29149
29181
  * TransactionTypesSchema
29150
29182
  * @enum {string}
29151
29183
  */
29152
- TransactionTypesSchema: "journalVoucher" | "salesInvoice" | "downPayment" | "receiptVoucher" | "salesReturnInvoice" | "returnCreditNote" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturnInvoice" | "returnDebitNote" | "advancePayment" | "Expense" | "openingBalance";
29184
+ TransactionTypesSchema: "journalVoucher" | "salesInvoice" | "downPaymentItem" | "receiptVoucher" | "salesReturnInvoice" | "returnCreditNote" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturnInvoice" | "returnDebitNote" | "advancePaymentItems" | "Expense" | "openingBalance" | "posInvoice" | "posSession" | "salesCreditNote" | "purchaseCreditNote" | "expenseVoucher" | "closingCommission" | "commissionPayout" | "salesRefundVoucherItem" | "refundVoucherItem" | "receiptVoucherItem" | "paymentVoucherItem" | "expensePaymentVoucherItem";
29153
29185
  /**
29154
29186
  * DocumentType
29155
29187
  * @enum {string}
@@ -33704,6 +33736,66 @@ export interface components {
33704
33736
  */
33705
33737
  children: components["schemas"]["CashFlowSchema"][] | null;
33706
33738
  };
33739
+ /** AccountSchema */
33740
+ AccountSchema: {
33741
+ /** Id */
33742
+ id: number | string;
33743
+ /** Name */
33744
+ name: string;
33745
+ /** Accountnumber */
33746
+ accountNumber: string;
33747
+ accountType: components["schemas"]["AccountModelType"];
33748
+ /** Type */
33749
+ type: string;
33750
+ };
33751
+ /** DocumentObjectSchema */
33752
+ DocumentObjectSchema: {
33753
+ /**
33754
+ * Id
33755
+ * Format: uuid
33756
+ */
33757
+ id: string;
33758
+ /** Name */
33759
+ name?: string | null;
33760
+ /** Serialnumber */
33761
+ serialNumber?: string | null;
33762
+ /** Description */
33763
+ description?: string | null;
33764
+ department?: components["schemas"]["DepartmentCommonSchema"] | null;
33765
+ project?: components["schemas"]["ProjectSummaryInfo"] | null;
33766
+ type?: components["schemas"]["TransactionTypesSchema"] | null;
33767
+ };
33768
+ /** ListPostEntrySchema */
33769
+ ListPostEntrySchema: {
33770
+ info: components["schemas"]["PageInfoSchema"];
33771
+ /** Results */
33772
+ results: components["schemas"]["PostEntrySchema"][];
33773
+ };
33774
+ /** PostEntrySchema */
33775
+ PostEntrySchema: {
33776
+ /**
33777
+ * Date
33778
+ * Format: date
33779
+ */
33780
+ date: string;
33781
+ /** Time */
33782
+ time?: string | null;
33783
+ state: components["schemas"]["PostEntryState"];
33784
+ branch: components["schemas"]["BranchSummaryInfo"];
33785
+ account: components["schemas"]["AccountSchema"];
33786
+ /** Amount */
33787
+ amount: number | string | null;
33788
+ /** Companyamount */
33789
+ companyAmount: number | string | null;
33790
+ /** Usdamount */
33791
+ usdAmount: number | string | null;
33792
+ document: components["schemas"]["DocumentObjectSchema"];
33793
+ };
33794
+ /**
33795
+ * PostEntryState
33796
+ * @enum {string}
33797
+ */
33798
+ PostEntryState: "active" | "draft" | "reverse" | "canceled";
33707
33799
  /** BalanceSheetSchema */
33708
33800
  BalanceSheetSchema: {
33709
33801
  /** Title */
@@ -73116,6 +73208,70 @@ export interface operations {
73116
73208
  };
73117
73209
  };
73118
73210
  };
73211
+ reports_accounting_reports_get_all_transactions: {
73212
+ parameters: {
73213
+ query?: {
73214
+ branches?: number[] | null;
73215
+ /** @description by default periodType is set to date filtration in user settings. Period type: thisMonth, thisYear, lastMonth, custom, … */
73216
+ periodType?: "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "today" | "all";
73217
+ /** @description Start date for custom range (YYYY-MM-DD) */
73218
+ startDate?: string | null;
73219
+ /** @description End date for custom range (YYYY-MM-DD) */
73220
+ endDate?: string | null;
73221
+ };
73222
+ header?: never;
73223
+ path?: never;
73224
+ cookie?: never;
73225
+ };
73226
+ requestBody?: never;
73227
+ responses: {
73228
+ /** @description OK */
73229
+ 200: {
73230
+ headers: {
73231
+ [name: string]: unknown;
73232
+ };
73233
+ content: {
73234
+ "application/json": components["schemas"]["ListPostEntrySchema"];
73235
+ };
73236
+ };
73237
+ /** @description Bad Request */
73238
+ 400: {
73239
+ headers: {
73240
+ [name: string]: unknown;
73241
+ };
73242
+ content: {
73243
+ "application/json": components["schemas"]["ErrorMessages"];
73244
+ };
73245
+ };
73246
+ /** @description Forbidden */
73247
+ 403: {
73248
+ headers: {
73249
+ [name: string]: unknown;
73250
+ };
73251
+ content: {
73252
+ "application/json": components["schemas"]["MessageResponse"];
73253
+ };
73254
+ };
73255
+ /** @description Not Found */
73256
+ 404: {
73257
+ headers: {
73258
+ [name: string]: unknown;
73259
+ };
73260
+ content: {
73261
+ "application/json": components["schemas"]["MessageResponse"];
73262
+ };
73263
+ };
73264
+ /** @description Internal Server Error */
73265
+ 500: {
73266
+ headers: {
73267
+ [name: string]: unknown;
73268
+ };
73269
+ content: {
73270
+ "application/json": components["schemas"]["MessageResponse"];
73271
+ };
73272
+ };
73273
+ };
73274
+ };
73119
73275
  reports_views_balance_sheet: {
73120
73276
  parameters: {
73121
73277
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1708",
3
+ "version": "1.0.1710",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],