@erp-galoper/main-package 1.0.122 → 1.0.124

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 +539 -1
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -329,6 +329,24 @@ export interface paths {
329
329
  */
330
330
  get: operations["accounting_chartofaccount_views_get_chart_of_account_options"];
331
331
  };
332
+ "/api/v1/chart_of_account/{id}/": {
333
+ /**
334
+ * Get Account
335
+ * @description Endpoint for retrieve account.
336
+ * Possible Responses:
337
+ * - 200:
338
+ * - success
339
+ * - 404:
340
+ * - accountDoesNotExist
341
+ * - branchDoesNotExist
342
+ * - 403:
343
+ * - permissionDenied
344
+ * - noBranchAccess
345
+ * - 500:
346
+ * - internalServerError
347
+ */
348
+ get: operations["accounting_chartofaccount_views_get_account"];
349
+ };
332
350
  "/api/v1/common/get_fiscal_year_end_date/": {
333
351
  /**
334
352
  * Get Fiscal Year End Date
@@ -465,6 +483,58 @@ export interface paths {
465
483
  */
466
484
  get: operations["reports_views_profit_and_loss"];
467
485
  };
486
+ "/api/v1/reports/accounting/list_from_accounts_general_ledger/": {
487
+ /**
488
+ * List From Accounts In General Ledger Report
489
+ * @description Endpoint from list to accounts
490
+ * possible responses:
491
+ * - 200:
492
+ * -success
493
+ * - 404:
494
+ * -accountDoesNotExist
495
+ * -mainBranchDoesNotExist
496
+ * - 403:
497
+ * - permissionDenied
498
+ * - 500:
499
+ * - internalServerError
500
+ */
501
+ get: operations["reports_accounting_reports_list_from_accounts_in_general_ledger_report"];
502
+ };
503
+ "/api/v1/reports/accounting/list_to_accounts_general_ledger/": {
504
+ /**
505
+ * List To Accounts In General Ledger Report
506
+ * @description Endpoint to list to accounts
507
+ * possible responses:
508
+ * - 200:
509
+ * -success
510
+ * - 404:
511
+ * -accountDoesNotExist
512
+ * - 403:
513
+ * - permissionDenied
514
+ * - 500:
515
+ * - internalServerError
516
+ */
517
+ get: operations["reports_accounting_reports_list_to_accounts_in_general_ledger_report"];
518
+ };
519
+ "/api/v1/reports/accounting/general_ledger/": {
520
+ /**
521
+ * General Ledger Report
522
+ * @description Endpoint to generate general ledger report
523
+ * possible responses:
524
+ * - 200:
525
+ * -success
526
+ * -403:
527
+ * - permissionDenied
528
+ * - noBranchAccess
529
+ * - 400:
530
+ * - invalidAccountRange
531
+ * - invalidDateRange
532
+ * - 404:
533
+ * -{variables}DoesNotExist
534
+ * - companyDoesNotExist
535
+ */
536
+ get: operations["reports_accounting_reports_general_ledger_report"];
537
+ };
468
538
  "/api/v1/reports/balance_sheet/": {
469
539
  /**
470
540
  * Balance Sheet
@@ -496,6 +566,23 @@ export interface paths {
496
566
  */
497
567
  get: operations["common_currency_views_list_currencies_in_export"];
498
568
  };
569
+ "/api/v1/currencies/primary_secondary_and_account_currency/": {
570
+ /**
571
+ * List Currencies In Reports
572
+ * @description Endpoint for List currencies in report
573
+ * - 200:
574
+ * - success
575
+ * - 404:
576
+ * - companyDoesNotExist
577
+ * - companySettingDoesNotExist
578
+ * - usdDoesNotExist
579
+ * - 403:
580
+ * - permissionDenied
581
+ * - 500:
582
+ * - internalServerError
583
+ */
584
+ get: operations["common_currency_views_list_currencies_in_reports"];
585
+ };
499
586
  "/api/v1/pos/sessions/": {
500
587
  /**
501
588
  * List Sessions
@@ -1131,6 +1218,38 @@ export interface components {
1131
1218
  /** Value */
1132
1219
  value: string;
1133
1220
 
1221
+ };
1222
+ /** RetrieveAccount */
1223
+ RetrieveAccount: {
1224
+ /** Id */
1225
+ id: number;
1226
+ /** Name */
1227
+ name: string;
1228
+ /** Accountnumber */
1229
+ accountnumber: string;
1230
+ /** Currency */
1231
+ currency: string;
1232
+ /** General Detail */
1233
+ general_detail: string;
1234
+ /** Report Account Type */
1235
+ report_account_type: string;
1236
+ /** Status */
1237
+ status: boolean;
1238
+ /** Second Name */
1239
+ second_name?: string | null;
1240
+ /** Has Transactions */
1241
+ has_transactions: boolean;
1242
+ /** Balance */
1243
+ balance: number;
1244
+ /** Companybalance */
1245
+ companyBalance: number;
1246
+ /** Usdbalance */
1247
+ usdBalance: number;
1248
+ /** Branch */
1249
+ branch: number;
1250
+ /** Depth */
1251
+ depth: number;
1252
+
1134
1253
  };
1135
1254
  /** FiscalYearCalculationOut */
1136
1255
  FiscalYearCalculationOut: {
@@ -1244,6 +1363,132 @@ export interface components {
1244
1363
  subRows?: components["schemas"]["profitAndLossSchema"][] | null;
1245
1364
 
1246
1365
  };
1366
+ /** AccountInfoInDropDown */
1367
+ AccountInfoInDropDown: {
1368
+ /** Name */
1369
+ name: string;
1370
+ /** Id */
1371
+ id: number;
1372
+ /** Accountnumber */
1373
+ accountnumber: string;
1374
+ /** Depth */
1375
+ depth: number;
1376
+
1377
+ };
1378
+ /** ListAccountSchema */
1379
+ ListAccountSchema: {
1380
+ info: components["schemas"]["PageInfoSchema"];
1381
+ /** Results */
1382
+ results: components["schemas"]["AccountInfoInDropDown"][];
1383
+
1384
+ };
1385
+ /** ErrorMessageSchema */
1386
+ ErrorMessageSchema: {
1387
+ /** Message */
1388
+ message?: string | null;
1389
+ /** Code */
1390
+ code: string;
1391
+ /**
1392
+ * Fields
1393
+ * @default []
1394
+ */
1395
+ fields?: string[] | null;
1396
+ /** Index */
1397
+ index?: number | null;
1398
+
1399
+ };
1400
+ /** ErrorMessages */
1401
+ ErrorMessages: {
1402
+ /** Errors */
1403
+ errors: components["schemas"]["ErrorMessageSchema"][];
1404
+
1405
+ };
1406
+ /**
1407
+ * TransactionTypes
1408
+ * @enum {string}
1409
+ */
1410
+ TransactionTypes: "JournalVoucher" | "SalesInvoice" | "DownPayment" | "ReceiptVoucher" | "SalesReturn" | "ReturnCreditNote" | "P-Inv" | "PaymentVoucher" | "P-Return" | "Return Debit Note" | "Advance Payment" | "Exp_inv" | "OpeningBalance";
1411
+ /** BranchDetails */
1412
+ BranchDetails: {
1413
+ /** Id */
1414
+ id: number;
1415
+ /** Number */
1416
+ number: number;
1417
+ /** Name */
1418
+ name: string;
1419
+
1420
+ };
1421
+ /** EntriesSchema */
1422
+ EntriesSchema: {
1423
+ /** Date */
1424
+ date: string;
1425
+ transaction: components["schemas"]["TransactionSchema"];
1426
+ debitAmount: components["schemas"]["FinancialAmountSchema"];
1427
+ creditAmount: components["schemas"]["FinancialAmountSchema"];
1428
+ companyDebit: components["schemas"]["FinancialAmountSchema"];
1429
+ companyCredit: components["schemas"]["FinancialAmountSchema"];
1430
+ usdDebit: components["schemas"]["FinancialAmountSchema"];
1431
+ usdCredit: components["schemas"]["FinancialAmountSchema"];
1432
+ balance: components["schemas"]["FinancialAmountSchema"];
1433
+ companyBalance: components["schemas"]["FinancialAmountSchema"];
1434
+ usdBalance: components["schemas"]["FinancialAmountSchema"];
1435
+
1436
+ };
1437
+ /** FinancialAmountSchema */
1438
+ FinancialAmountSchema: {
1439
+ /** Value */
1440
+ value: number;
1441
+ /** Currency */
1442
+ currency: string;
1443
+
1444
+ };
1445
+ /** GeneralLedgerData */
1446
+ GeneralLedgerData: {
1447
+ /** Account Id */
1448
+ account_id: number;
1449
+ /** Account Name */
1450
+ account_name: string;
1451
+ /** Account Number */
1452
+ account_number: string;
1453
+ /** Account Currency */
1454
+ account_currency: string;
1455
+ balance: components["schemas"]["FinancialAmountSchema"];
1456
+ companyBalance: components["schemas"]["FinancialAmountSchema"];
1457
+ usdBalance: components["schemas"]["FinancialAmountSchema"];
1458
+ debitAmount: components["schemas"]["FinancialAmountSchema"];
1459
+ creditAmount: components["schemas"]["FinancialAmountSchema"];
1460
+ companyDebit: components["schemas"]["FinancialAmountSchema"];
1461
+ companyCredit: components["schemas"]["FinancialAmountSchema"];
1462
+ usdDebit: components["schemas"]["FinancialAmountSchema"];
1463
+ usdCredit: components["schemas"]["FinancialAmountSchema"];
1464
+ /** Entries */
1465
+ entries: components["schemas"]["EntriesSchema"][];
1466
+ branch: components["schemas"]["BranchDetails"];
1467
+
1468
+ };
1469
+ /** GeneralLedgerReport */
1470
+ GeneralLedgerReport: {
1471
+ info: components["schemas"]["PageInfoSchema"];
1472
+ /** Results */
1473
+ results: components["schemas"]["GeneralLedgerData"][];
1474
+
1475
+ };
1476
+ /** TransactionSchema */
1477
+ TransactionSchema: {
1478
+ /** Id */
1479
+ id: number;
1480
+ /** Number */
1481
+ number: string;
1482
+ type: components["schemas"]["TransactionTypesSchema"];
1483
+ /** Description */
1484
+ description?: string | null;
1485
+
1486
+ };
1487
+ /**
1488
+ * TransactionTypesSchema
1489
+ * @enum {string}
1490
+ */
1491
+ TransactionTypesSchema: "journal_voucher" | "sales_invoice" | "down_payment" | "receipt_voucher" | "sales_return_invoice" | "return_credit_note" | "purchase_invoice" | "payment_voucher" | "purchase_return_invoice" | "return_debit_note" | "advance_payment" | "Expense" | "opening_balance";
1247
1492
  /** CurrencyList */
1248
1493
  CurrencyList: {
1249
1494
  /** Name */
@@ -1256,6 +1501,10 @@ export interface components {
1256
1501
  ListCurrenciesInDopDown: {
1257
1502
  /** Name */
1258
1503
  name: string;
1504
+ /** Type */
1505
+ type: string;
1506
+ /** Id */
1507
+ id?: number | null;
1259
1508
 
1260
1509
  };
1261
1510
  /** ListSessionSchema */
@@ -1729,7 +1978,7 @@ export interface components {
1729
1978
  /**
1730
1979
  * Id
1731
1980
  * Format: uuid
1732
- * @example 88df6237-7016-4078-8fee-484095d365af
1981
+ * @example af5a8bfe-6199-4926-8eff-7cbdb41bb2bc
1733
1982
  */
1734
1983
  id: string;
1735
1984
  /**
@@ -3023,6 +3272,57 @@ export interface operations {
3023
3272
  };
3024
3273
  };
3025
3274
  };
3275
+ /**
3276
+ * Get Account
3277
+ * @description Endpoint for retrieve account.
3278
+ * Possible Responses:
3279
+ * - 200:
3280
+ * - success
3281
+ * - 404:
3282
+ * - accountDoesNotExist
3283
+ * - branchDoesNotExist
3284
+ * - 403:
3285
+ * - permissionDenied
3286
+ * - noBranchAccess
3287
+ * - 500:
3288
+ * - internalServerError
3289
+ */
3290
+ accounting_chartofaccount_views_get_account: {
3291
+ parameters: {
3292
+ query: {
3293
+ branchId: number;
3294
+ };
3295
+ path: {
3296
+ id: number;
3297
+ };
3298
+ };
3299
+ responses: {
3300
+ /** @description OK */
3301
+ 200: {
3302
+ content: {
3303
+ "application/json": components["schemas"]["RetrieveAccount"];
3304
+ };
3305
+ };
3306
+ /** @description Forbidden */
3307
+ 403: {
3308
+ content: {
3309
+ "application/json": components["schemas"]["MessageResponse"];
3310
+ };
3311
+ };
3312
+ /** @description Not Found */
3313
+ 404: {
3314
+ content: {
3315
+ "application/json": components["schemas"]["MessageResponse"];
3316
+ };
3317
+ };
3318
+ /** @description Internal Server Error */
3319
+ 500: {
3320
+ content: {
3321
+ "application/json": components["schemas"]["MessageResponse"];
3322
+ };
3323
+ };
3324
+ };
3325
+ };
3026
3326
  /**
3027
3327
  * Get Fiscal Year End Date
3028
3328
  * @description Endpoint for fetching fiscal year month end and fiscal year end day.
@@ -3423,6 +3723,196 @@ export interface operations {
3423
3723
  };
3424
3724
  };
3425
3725
  };
3726
+ /**
3727
+ * List From Accounts In General Ledger Report
3728
+ * @description Endpoint from list to accounts
3729
+ * possible responses:
3730
+ * - 200:
3731
+ * -success
3732
+ * - 404:
3733
+ * -accountDoesNotExist
3734
+ * -mainBranchDoesNotExist
3735
+ * - 403:
3736
+ * - permissionDenied
3737
+ * - 500:
3738
+ * - internalServerError
3739
+ */
3740
+ reports_accounting_reports_list_from_accounts_in_general_ledger_report: {
3741
+ parameters: {
3742
+ query?: {
3743
+ /** @description Page number */
3744
+ page?: number;
3745
+ /** @description Page size */
3746
+ pageSize?: number;
3747
+ fields?: string[];
3748
+ search?: string;
3749
+ };
3750
+ };
3751
+ responses: {
3752
+ /** @description OK */
3753
+ 200: {
3754
+ content: {
3755
+ "application/json": components["schemas"]["ListAccountSchema"];
3756
+ };
3757
+ };
3758
+ /** @description Bad Request */
3759
+ 400: {
3760
+ content: {
3761
+ "application/json": components["schemas"]["ErrorMessages"];
3762
+ };
3763
+ };
3764
+ /** @description Forbidden */
3765
+ 403: {
3766
+ content: {
3767
+ "application/json": components["schemas"]["MessageResponse"];
3768
+ };
3769
+ };
3770
+ /** @description Not Found */
3771
+ 404: {
3772
+ content: {
3773
+ "application/json": components["schemas"]["MessageResponse"];
3774
+ };
3775
+ };
3776
+ /** @description Internal Server Error */
3777
+ 500: {
3778
+ content: {
3779
+ "application/json": components["schemas"]["MessageResponse"];
3780
+ };
3781
+ };
3782
+ };
3783
+ };
3784
+ /**
3785
+ * List To Accounts In General Ledger Report
3786
+ * @description Endpoint to list to accounts
3787
+ * possible responses:
3788
+ * - 200:
3789
+ * -success
3790
+ * - 404:
3791
+ * -accountDoesNotExist
3792
+ * - 403:
3793
+ * - permissionDenied
3794
+ * - 500:
3795
+ * - internalServerError
3796
+ */
3797
+ reports_accounting_reports_list_to_accounts_in_general_ledger_report: {
3798
+ parameters: {
3799
+ query: {
3800
+ /** @description ID of account */
3801
+ fromAccount: number;
3802
+ /** @description Page number */
3803
+ page?: number;
3804
+ /** @description Page size */
3805
+ pageSize?: number;
3806
+ fields?: string[];
3807
+ search?: string;
3808
+ };
3809
+ };
3810
+ responses: {
3811
+ /** @description OK */
3812
+ 200: {
3813
+ content: {
3814
+ "application/json": components["schemas"]["ListAccountSchema"];
3815
+ };
3816
+ };
3817
+ /** @description Bad Request */
3818
+ 400: {
3819
+ content: {
3820
+ "application/json": components["schemas"]["ErrorMessages"];
3821
+ };
3822
+ };
3823
+ /** @description Forbidden */
3824
+ 403: {
3825
+ content: {
3826
+ "application/json": components["schemas"]["MessageResponse"];
3827
+ };
3828
+ };
3829
+ /** @description Not Found */
3830
+ 404: {
3831
+ content: {
3832
+ "application/json": components["schemas"]["MessageResponse"];
3833
+ };
3834
+ };
3835
+ /** @description Internal Server Error */
3836
+ 500: {
3837
+ content: {
3838
+ "application/json": components["schemas"]["MessageResponse"];
3839
+ };
3840
+ };
3841
+ };
3842
+ };
3843
+ /**
3844
+ * General Ledger Report
3845
+ * @description Endpoint to generate general ledger report
3846
+ * possible responses:
3847
+ * - 200:
3848
+ * -success
3849
+ * -403:
3850
+ * - permissionDenied
3851
+ * - noBranchAccess
3852
+ * - 400:
3853
+ * - invalidAccountRange
3854
+ * - invalidDateRange
3855
+ * - 404:
3856
+ * -{variables}DoesNotExist
3857
+ * - companyDoesNotExist
3858
+ */
3859
+ reports_accounting_reports_general_ledger_report: {
3860
+ parameters: {
3861
+ query: {
3862
+ fromAccount?: number;
3863
+ toAccount?: number;
3864
+ fromDate?: string;
3865
+ toDate?: string;
3866
+ hideReversed?: boolean;
3867
+ transactionTypes: ("JournalVoucher" | "SalesInvoice" | "DownPayment" | "ReceiptVoucher" | "SalesReturn" | "ReturnCreditNote" | "P-Inv" | "PaymentVoucher" | "P-Return" | "Return Debit Note" | "Advance Payment" | "Exp_inv" | "OpeningBalance")[];
3868
+ /**
3869
+ * @example [
3870
+ * 1
3871
+ * ]
3872
+ */
3873
+ branches: number[];
3874
+ showAccountWithZeroBalance?: boolean;
3875
+ /** @description Page number */
3876
+ page?: number;
3877
+ /** @description Page size */
3878
+ pageSize?: number;
3879
+ fields?: string[];
3880
+ search?: string;
3881
+ };
3882
+ };
3883
+ responses: {
3884
+ /** @description OK */
3885
+ 200: {
3886
+ content: {
3887
+ "application/json": components["schemas"]["GeneralLedgerReport"];
3888
+ };
3889
+ };
3890
+ /** @description Bad Request */
3891
+ 400: {
3892
+ content: {
3893
+ "application/json": components["schemas"]["ErrorMessages"];
3894
+ };
3895
+ };
3896
+ /** @description Forbidden */
3897
+ 403: {
3898
+ content: {
3899
+ "application/json": components["schemas"]["MessageResponse"];
3900
+ };
3901
+ };
3902
+ /** @description Not Found */
3903
+ 404: {
3904
+ content: {
3905
+ "application/json": components["schemas"]["MessageResponse"];
3906
+ };
3907
+ };
3908
+ /** @description Internal Server Error */
3909
+ 500: {
3910
+ content: {
3911
+ "application/json": components["schemas"]["MessageResponse"];
3912
+ };
3913
+ };
3914
+ };
3915
+ };
3426
3916
  /**
3427
3917
  * Balance Sheet
3428
3918
  * @description endpoint to get balance sheet report
@@ -3519,6 +4009,54 @@ export interface operations {
3519
4009
  };
3520
4010
  };
3521
4011
  };
4012
+ /**
4013
+ * List Currencies In Reports
4014
+ * @description Endpoint for List currencies in report
4015
+ * - 200:
4016
+ * - success
4017
+ * - 404:
4018
+ * - companyDoesNotExist
4019
+ * - companySettingDoesNotExist
4020
+ * - usdDoesNotExist
4021
+ * - 403:
4022
+ * - permissionDenied
4023
+ * - 500:
4024
+ * - internalServerError
4025
+ */
4026
+ common_currency_views_list_currencies_in_reports: {
4027
+ responses: {
4028
+ /** @description OK */
4029
+ 200: {
4030
+ content: {
4031
+ "application/json": components["schemas"]["ListCurrenciesInDopDown"][];
4032
+ };
4033
+ };
4034
+ /** @description Bad Request */
4035
+ 400: {
4036
+ content: {
4037
+ "application/json": components["schemas"]["MessageResponse"];
4038
+ };
4039
+ };
4040
+ /** @description Forbidden */
4041
+ 403: {
4042
+ content: {
4043
+ "application/json": components["schemas"]["MessageResponse"];
4044
+ };
4045
+ };
4046
+ /** @description Not Found */
4047
+ 404: {
4048
+ content: {
4049
+ "application/json": components["schemas"]["MessageResponse"];
4050
+ };
4051
+ };
4052
+ /** @description Internal Server Error */
4053
+ 500: {
4054
+ content: {
4055
+ "application/json": components["schemas"]["MessageResponse"];
4056
+ };
4057
+ };
4058
+ };
4059
+ };
3522
4060
  /**
3523
4061
  * List Sessions
3524
4062
  * @description Endpoint to list sessions
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.122",
3
+ "version": "1.0.124",
4
4
  "main": "openapi.ts"
5
5
  }