@erp-galoper/main-package 1.0.126 → 1.0.128
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.
- package/openapi.ts +214 -13
- package/package.json +1 -1
package/openapi.ts
CHANGED
@@ -399,6 +399,21 @@ export interface paths {
|
|
399
399
|
*/
|
400
400
|
get: operations["common_views_get_currency_code"];
|
401
401
|
};
|
402
|
+
"/api/v1/common/get_account/{id}/": {
|
403
|
+
/**
|
404
|
+
* Get Account
|
405
|
+
* @description Endpoint for to get account
|
406
|
+
* Possible Responses:
|
407
|
+
* - 200:
|
408
|
+
* - Success
|
409
|
+
* - 404:
|
410
|
+
* - ContentTypeDoesNotExist
|
411
|
+
* - accountDoesNotExist
|
412
|
+
* - 500:
|
413
|
+
* - internalServerError
|
414
|
+
*/
|
415
|
+
get: operations["common_views_get_account"];
|
416
|
+
};
|
402
417
|
"/api/v1/admin_panel/": {
|
403
418
|
/**
|
404
419
|
* Get Galoper Setting
|
@@ -520,7 +535,11 @@ export interface paths {
|
|
520
535
|
* - 200:
|
521
536
|
* -success
|
522
537
|
* - 404:
|
523
|
-
* -accountDoesNotExist
|
538
|
+
* - accountDoesNotExist
|
539
|
+
* - SupplierDoesNotExist
|
540
|
+
* - CustomerDoesNotExist
|
541
|
+
* - AccountDoesNotExist
|
542
|
+
* - VatAccountDoesNotExist
|
524
543
|
* - 403:
|
525
544
|
* - permissionDenied
|
526
545
|
* - 500:
|
@@ -544,9 +563,38 @@ export interface paths {
|
|
544
563
|
* - 404:
|
545
564
|
* -{variables}DoesNotExist
|
546
565
|
* - companyDoesNotExist
|
566
|
+
* - ContentTypeDoesNotExist
|
567
|
+
* - branchDoesNotExist
|
568
|
+
* - 500 :
|
569
|
+
* -internalTransferError
|
547
570
|
*/
|
548
571
|
get: operations["reports_accounting_reports_general_ledger_report"];
|
549
572
|
};
|
573
|
+
"/api/v1/reports/accounting/export_general_ledger/": {
|
574
|
+
/**
|
575
|
+
* Export General Ledger Report
|
576
|
+
* @description Endpoint to generate general ledger report
|
577
|
+
* possible responses:
|
578
|
+
* - 200:
|
579
|
+
* -success
|
580
|
+
* -403:
|
581
|
+
* - permissionDenied
|
582
|
+
* - noBranchAccess
|
583
|
+
* - 400:
|
584
|
+
* - invalidAccountRange
|
585
|
+
* - invalidDateRange
|
586
|
+
* - 404:
|
587
|
+
* - {variables}BranchIdsDoesNotExist
|
588
|
+
* - companyDoesNotExist
|
589
|
+
* - SupplierDoesNotExist
|
590
|
+
* - CustomerDoesNotExist
|
591
|
+
* - AccountDoesNotExist
|
592
|
+
* - VatAccountDoesNotExist
|
593
|
+
* - 500:
|
594
|
+
* - internalServerError
|
595
|
+
*/
|
596
|
+
get: operations["reports_accounting_reports_export_general_ledger_report"];
|
597
|
+
};
|
550
598
|
"/api/v1/reports/balance_sheet/": {
|
551
599
|
/**
|
552
600
|
* Balance Sheet
|
@@ -1296,6 +1344,24 @@ export interface components {
|
|
1296
1344
|
/** Currencycode */
|
1297
1345
|
currencyCode: string;
|
1298
1346
|
|
1347
|
+
};
|
1348
|
+
/**
|
1349
|
+
* AccountType
|
1350
|
+
* @enum {string}
|
1351
|
+
*/
|
1352
|
+
AccountType: "Account" | "Customer" | "Supplier" | "VatAccount";
|
1353
|
+
/** PostAccountsSchema */
|
1354
|
+
PostAccountsSchema: {
|
1355
|
+
/** Id */
|
1356
|
+
id: number;
|
1357
|
+
/** Accountnumber */
|
1358
|
+
accountnumber: string;
|
1359
|
+
/** Name */
|
1360
|
+
name: string;
|
1361
|
+
/** Depth */
|
1362
|
+
depth: number;
|
1363
|
+
type: components["schemas"]["AccountType"];
|
1364
|
+
|
1299
1365
|
};
|
1300
1366
|
/** GaloperSettingSchemaList */
|
1301
1367
|
GaloperSettingSchemaList: {
|
@@ -1480,6 +1546,9 @@ export interface components {
|
|
1480
1546
|
companyCredit: components["schemas"]["FinancialAmountSchema"];
|
1481
1547
|
usdDebit: components["schemas"]["FinancialAmountSchema"];
|
1482
1548
|
usdCredit: components["schemas"]["FinancialAmountSchema"];
|
1549
|
+
periodicBalance: components["schemas"]["FinancialAmountSchema"];
|
1550
|
+
periodicUsdBalance: components["schemas"]["FinancialAmountSchema"];
|
1551
|
+
periodicCompanyBalance: components["schemas"]["FinancialAmountSchema"];
|
1483
1552
|
/** Entries */
|
1484
1553
|
entries: components["schemas"]["EntriesSchema"][];
|
1485
1554
|
branch: components["schemas"]["BranchDetails"];
|
@@ -1992,7 +2061,7 @@ export interface components {
|
|
1992
2061
|
/**
|
1993
2062
|
* Id
|
1994
2063
|
* Format: uuid
|
1995
|
-
* @example
|
2064
|
+
* @example c19af2f8-46d3-4bc2-ace0-a3a4599ae272
|
1996
2065
|
*/
|
1997
2066
|
id: string;
|
1998
2067
|
/**
|
@@ -3471,6 +3540,48 @@ export interface operations {
|
|
3471
3540
|
};
|
3472
3541
|
};
|
3473
3542
|
};
|
3543
|
+
/**
|
3544
|
+
* Get Account
|
3545
|
+
* @description Endpoint for to get account
|
3546
|
+
* Possible Responses:
|
3547
|
+
* - 200:
|
3548
|
+
* - Success
|
3549
|
+
* - 404:
|
3550
|
+
* - ContentTypeDoesNotExist
|
3551
|
+
* - accountDoesNotExist
|
3552
|
+
* - 500:
|
3553
|
+
* - internalServerError
|
3554
|
+
*/
|
3555
|
+
common_views_get_account: {
|
3556
|
+
parameters: {
|
3557
|
+
query: {
|
3558
|
+
type: "Account" | "Customer" | "Supplier" | "VatAccount";
|
3559
|
+
};
|
3560
|
+
path: {
|
3561
|
+
id: number;
|
3562
|
+
};
|
3563
|
+
};
|
3564
|
+
responses: {
|
3565
|
+
/** @description OK */
|
3566
|
+
200: {
|
3567
|
+
content: {
|
3568
|
+
"application/json": components["schemas"]["PostAccountsSchema"];
|
3569
|
+
};
|
3570
|
+
};
|
3571
|
+
/** @description Not Found */
|
3572
|
+
404: {
|
3573
|
+
content: {
|
3574
|
+
"application/json": components["schemas"]["MessageResponse"];
|
3575
|
+
};
|
3576
|
+
};
|
3577
|
+
/** @description Internal Server Error */
|
3578
|
+
500: {
|
3579
|
+
content: {
|
3580
|
+
"application/json": components["schemas"]["MessageResponse"];
|
3581
|
+
};
|
3582
|
+
};
|
3583
|
+
};
|
3584
|
+
};
|
3474
3585
|
/**
|
3475
3586
|
* Get Galoper Setting
|
3476
3587
|
* @description Endpoint for retreive galoper setting.
|
@@ -3820,7 +3931,11 @@ export interface operations {
|
|
3820
3931
|
* - 200:
|
3821
3932
|
* -success
|
3822
3933
|
* - 404:
|
3823
|
-
* -accountDoesNotExist
|
3934
|
+
* - accountDoesNotExist
|
3935
|
+
* - SupplierDoesNotExist
|
3936
|
+
* - CustomerDoesNotExist
|
3937
|
+
* - AccountDoesNotExist
|
3938
|
+
* - VatAccountDoesNotExist
|
3824
3939
|
* - 403:
|
3825
3940
|
* - permissionDenied
|
3826
3941
|
* - 500:
|
@@ -3888,22 +4003,20 @@ export interface operations {
|
|
3888
4003
|
* - 404:
|
3889
4004
|
* -{variables}DoesNotExist
|
3890
4005
|
* - companyDoesNotExist
|
4006
|
+
* - ContentTypeDoesNotExist
|
4007
|
+
* - branchDoesNotExist
|
4008
|
+
* - 500 :
|
4009
|
+
* -internalTransferError
|
3891
4010
|
*/
|
3892
4011
|
reports_accounting_reports_general_ledger_report: {
|
3893
4012
|
parameters: {
|
3894
4013
|
query: {
|
3895
|
-
/**
|
3896
|
-
|
3897
|
-
* @example 86
|
3898
|
-
*/
|
3899
|
-
fromAccountId: number;
|
4014
|
+
/** @description ID of account */
|
4015
|
+
fromAccountId?: number;
|
3900
4016
|
/** @description Type of account */
|
3901
4017
|
fromAccountType: string;
|
3902
|
-
/**
|
3903
|
-
|
3904
|
-
* @example 132
|
3905
|
-
*/
|
3906
|
-
ToAccountId: number;
|
4018
|
+
/** @description ID of account */
|
4019
|
+
ToAccountId?: number;
|
3907
4020
|
/** @description Type of account */
|
3908
4021
|
ToAccountType: string;
|
3909
4022
|
fromDate?: string;
|
@@ -3958,6 +4071,94 @@ export interface operations {
|
|
3958
4071
|
};
|
3959
4072
|
};
|
3960
4073
|
};
|
4074
|
+
/**
|
4075
|
+
* Export General Ledger Report
|
4076
|
+
* @description Endpoint to generate general ledger report
|
4077
|
+
* possible responses:
|
4078
|
+
* - 200:
|
4079
|
+
* -success
|
4080
|
+
* -403:
|
4081
|
+
* - permissionDenied
|
4082
|
+
* - noBranchAccess
|
4083
|
+
* - 400:
|
4084
|
+
* - invalidAccountRange
|
4085
|
+
* - invalidDateRange
|
4086
|
+
* - 404:
|
4087
|
+
* - {variables}BranchIdsDoesNotExist
|
4088
|
+
* - companyDoesNotExist
|
4089
|
+
* - SupplierDoesNotExist
|
4090
|
+
* - CustomerDoesNotExist
|
4091
|
+
* - AccountDoesNotExist
|
4092
|
+
* - VatAccountDoesNotExist
|
4093
|
+
* - 500:
|
4094
|
+
* - internalServerError
|
4095
|
+
*/
|
4096
|
+
reports_accounting_reports_export_general_ledger_report: {
|
4097
|
+
parameters: {
|
4098
|
+
query: {
|
4099
|
+
/** @description ID of account */
|
4100
|
+
fromAccountId?: number;
|
4101
|
+
/** @description Type of account */
|
4102
|
+
fromAccountType: string;
|
4103
|
+
/** @description ID of account */
|
4104
|
+
ToAccountId?: number;
|
4105
|
+
/** @description Type of account */
|
4106
|
+
ToAccountType: string;
|
4107
|
+
fromDate?: string;
|
4108
|
+
toDate?: string;
|
4109
|
+
hideReversed?: boolean;
|
4110
|
+
transactionTypes: ("journalVoucher" | "salesInvoice" | "downPayment" | "receiptVoucher" | "salesReturnInvoice" | "returnCreditNote" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturnInvoice" | "returnDebitNote" | "advancePayment" | "Expense" | "openingBalance")[];
|
4111
|
+
/**
|
4112
|
+
* @example [
|
4113
|
+
* 1
|
4114
|
+
* ]
|
4115
|
+
*/
|
4116
|
+
branches: number[];
|
4117
|
+
showAccountWithZeroBalance?: boolean;
|
4118
|
+
/**
|
4119
|
+
* @description Currency IDs
|
4120
|
+
* @example [
|
4121
|
+
* "null",
|
4122
|
+
* 1
|
4123
|
+
* ]
|
4124
|
+
*/
|
4125
|
+
currencies: (number | string | null)[];
|
4126
|
+
search?: string;
|
4127
|
+
};
|
4128
|
+
};
|
4129
|
+
responses: {
|
4130
|
+
/** @description OK */
|
4131
|
+
200: {
|
4132
|
+
content: {
|
4133
|
+
"application/json": string;
|
4134
|
+
};
|
4135
|
+
};
|
4136
|
+
/** @description Bad Request */
|
4137
|
+
400: {
|
4138
|
+
content: {
|
4139
|
+
"application/json": components["schemas"]["ErrorMessages"];
|
4140
|
+
};
|
4141
|
+
};
|
4142
|
+
/** @description Forbidden */
|
4143
|
+
403: {
|
4144
|
+
content: {
|
4145
|
+
"application/json": components["schemas"]["MessageResponse"];
|
4146
|
+
};
|
4147
|
+
};
|
4148
|
+
/** @description Not Found */
|
4149
|
+
404: {
|
4150
|
+
content: {
|
4151
|
+
"application/json": components["schemas"]["MessageResponse"];
|
4152
|
+
};
|
4153
|
+
};
|
4154
|
+
/** @description Internal Server Error */
|
4155
|
+
500: {
|
4156
|
+
content: {
|
4157
|
+
"application/json": components["schemas"]["MessageResponse"];
|
4158
|
+
};
|
4159
|
+
};
|
4160
|
+
};
|
4161
|
+
};
|
3961
4162
|
/**
|
3962
4163
|
* Balance Sheet
|
3963
4164
|
* @description endpoint to get balance sheet report
|
package/package.json
CHANGED