@erp-galoper/main-package 1.0.9 → 1.0.10

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 +225 -0
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -417,6 +417,22 @@ export interface paths {
417
417
  /** Get Settings Options */
418
418
  get: operations["erp_settings_views_get_settings_options"];
419
419
  };
420
+ "/api/v1/reports/profit_loss/": {
421
+ /**
422
+ * Profit And Loss
423
+ * @description Endpoint to get profit and loss report
424
+ * possible responses:
425
+ * - 200: noMessage, noCode, justData
426
+ * - 400: startDateAndEndDateAreRequiredForCustomPeriodType , invalidStartDateFormat , invalidEndDateFormat
427
+ * - 403: forbidden
428
+ * - 404: branchNotFound
429
+ */
430
+ get: operations["reports_views_profit_and_loss"];
431
+ };
432
+ "/api/v1/currencies/primary_and_secondary/": {
433
+ /** Get Primary And Secondary Currency */
434
+ get: operations["common_currency_views_get_primary_and_secondary_currency"];
435
+ };
420
436
  }
421
437
 
422
438
  export type webhooks = Record<string, never>;
@@ -895,6 +911,162 @@ export interface components {
895
911
  primaryCurrency: boolean;
896
912
  [key: string]: unknown;
897
913
  };
914
+ /**
915
+ * PeriodType
916
+ * @enum {string}
917
+ */
918
+ PeriodType: "this Month" | "this Year" | "last Month" | "last Year" | "custom";
919
+ /** Costs */
920
+ Costs: {
921
+ details: components["schemas"]["CostsDetails"];
922
+ totalCosts: components["schemas"]["currencyObject"];
923
+ [key: string]: unknown;
924
+ };
925
+ /** CostsDetails */
926
+ CostsDetails: {
927
+ purchaseAndVariationOfInventory: components["schemas"]["currencyObject"];
928
+ purchaseOfGoods: components["schemas"]["currencyObject"];
929
+ chargesOnGoodsPurchasing: components["schemas"]["currencyObject"];
930
+ goodsInventoryVariance: components["schemas"]["currencyObject"];
931
+ rawMaterialsPurchases: components["schemas"]["currencyObject"];
932
+ chargesOnRawMaterialPurchases: components["schemas"]["currencyObject"];
933
+ rawMatConsumInventoryVariance: components["schemas"]["currencyObject"];
934
+ purchasesOfWork: components["schemas"]["currencyObject"];
935
+ purchasesOfServices: components["schemas"]["currencyObject"];
936
+ purchasesOfWorkAndServices: components["schemas"]["currencyObject"];
937
+ productionVariation_m: components["schemas"]["currencyObject"];
938
+ costOfInventoriesSoldConsumedOrAuxiliaryMaterials: components["schemas"]["currencyObject"];
939
+ [key: string]: unknown;
940
+ };
941
+ /** GeneralExpenses */
942
+ GeneralExpenses: {
943
+ details: components["schemas"]["GeneralExpensesDetails"];
944
+ totalGeneralExpenses: components["schemas"]["currencyObject"];
945
+ [key: string]: unknown;
946
+ };
947
+ /** GeneralExpensesDetails */
948
+ GeneralExpensesDetails: {
949
+ transportationAndCommunication: components["schemas"]["currencyObject"];
950
+ equipMaintenanceRepair: components["schemas"]["currencyObject"];
951
+ rent: components["schemas"]["currencyObject"];
952
+ hotelAndRestaurant: components["schemas"]["currencyObject"];
953
+ staffServices: components["schemas"]["currencyObject"];
954
+ teachingServices: components["schemas"]["currencyObject"];
955
+ researchAndStudies: components["schemas"]["currencyObject"];
956
+ insurancePremium: components["schemas"]["currencyObject"];
957
+ otherOperatingExpenses: components["schemas"]["currencyObject"];
958
+ otherExternalServices: components["schemas"]["currencyObject"];
959
+ leasingPatentFeesRoyalties: components["schemas"]["currencyObject"];
960
+ feesAndTaxes: components["schemas"]["currencyObject"];
961
+ externalServices: components["schemas"]["currencyObject"];
962
+ subcontacts: components["schemas"]["currencyObject"];
963
+ utilities: components["schemas"]["currencyObject"];
964
+ lubricants: components["schemas"]["currencyObject"];
965
+ quick_wear_tools_and_utensils: components["schemas"]["currencyObject"];
966
+ commissionsToIntermediaries: components["schemas"]["currencyObject"];
967
+ publicityAndAdvertising: components["schemas"]["currencyObject"];
968
+ travelExpense: components["schemas"]["currencyObject"];
969
+ impairmentLossesForThePeriod: components["schemas"]["currencyObject"];
970
+ [key: string]: unknown;
971
+ };
972
+ /** OtherExpenses */
973
+ OtherExpenses: {
974
+ details: components["schemas"]["OtherExpensesDetails"];
975
+ totalOtherExpenses: components["schemas"]["currencyObject"];
976
+ [key: string]: unknown;
977
+ };
978
+ /** OtherExpensesDetails */
979
+ OtherExpensesDetails: {
980
+ otherNonOperatingExpenses: components["schemas"]["currencyObject"];
981
+ lossesByReducingTheFairValue: components["schemas"]["currencyObject"];
982
+ [key: string]: unknown;
983
+ };
984
+ /** OtherIncome */
985
+ OtherIncome: {
986
+ details: components["schemas"]["OtherIncomeDetails"];
987
+ totalOtherIncome: components["schemas"]["currencyObject"];
988
+ [key: string]: unknown;
989
+ };
990
+ /** OtherIncomeDetails */
991
+ OtherIncomeDetails: {
992
+ otherOperatingRevenues: components["schemas"]["currencyObject"];
993
+ otherNonOperatingRevenues: components["schemas"]["currencyObject"];
994
+ [key: string]: unknown;
995
+ };
996
+ /** Payroll */
997
+ Payroll: {
998
+ details: components["schemas"]["PayrollDetail"];
999
+ totalPayroll: components["schemas"]["currencyObject"];
1000
+ [key: string]: unknown;
1001
+ };
1002
+ /** PayrollDetail */
1003
+ PayrollDetail: {
1004
+ personnelWages: components["schemas"]["currencyObject"];
1005
+ socialCharges: components["schemas"]["currencyObject"];
1006
+ [key: string]: unknown;
1007
+ };
1008
+ /** Revenue */
1009
+ Revenue: {
1010
+ details: components["schemas"]["RevenueDetails"];
1011
+ totalRevenue: components["schemas"]["currencyObject"];
1012
+ [key: string]: unknown;
1013
+ };
1014
+ /** RevenueDetails */
1015
+ RevenueDetails: {
1016
+ salesOfGoods: components["schemas"]["currencyObject"];
1017
+ salesOfManufacturedGoods: components["schemas"]["currencyObject"];
1018
+ salesOfByProductsItems: components["schemas"]["currencyObject"];
1019
+ salesOfScrap: components["schemas"]["currencyObject"];
1020
+ works: components["schemas"]["currencyObject"];
1021
+ salesServices: components["schemas"]["currencyObject"];
1022
+ revenuesOfProductsWorksAndServices: components["schemas"]["currencyObject"];
1023
+ discountsGranted: components["schemas"]["currencyObject"];
1024
+ productionVariation: components["schemas"]["currencyObject"];
1025
+ productionOfFixedAssets: components["schemas"]["currencyObject"];
1026
+ operatingSubsides: components["schemas"]["currencyObject"];
1027
+ writeBackProvision: components["schemas"]["currencyObject"];
1028
+ discountsAndRebatesGoodsFinishedGoodsProductsWasteAndScrapAndBiologicalAssets: components["schemas"]["currencyObject"];
1029
+ salesDiscountService: components["schemas"]["currencyObject"];
1030
+ [key: string]: unknown;
1031
+ };
1032
+ /** currencyObject */
1033
+ currencyObject: {
1034
+ /** Usd */
1035
+ usd: number;
1036
+ /** Company */
1037
+ company: number;
1038
+ [key: string]: unknown;
1039
+ };
1040
+ /** profitAndLossSchema */
1041
+ profitAndLossSchema: {
1042
+ revenue: components["schemas"]["Revenue"];
1043
+ costs: components["schemas"]["Costs"];
1044
+ totalOperatingLossesProfit: components["schemas"]["currencyObject"];
1045
+ payroll: components["schemas"]["Payroll"];
1046
+ generalExpenses: components["schemas"]["GeneralExpenses"];
1047
+ totalOverheads: components["schemas"]["currencyObject"];
1048
+ grossOperatingLossProfit: components["schemas"]["currencyObject"];
1049
+ otherIncome: components["schemas"]["OtherIncome"];
1050
+ otherExpenses: components["schemas"]["OtherExpenses"];
1051
+ EBITDA: components["schemas"]["currencyObject"];
1052
+ financialRevenue: components["schemas"]["currencyObject"];
1053
+ financialCharges: components["schemas"]["currencyObject"];
1054
+ depreciationAmortization: components["schemas"]["currencyObject"];
1055
+ netIncomeBeforeDepreciation: components["schemas"]["currencyObject"];
1056
+ provisionsAllocation: components["schemas"]["currencyObject"];
1057
+ netIncomeBeforeTax: components["schemas"]["currencyObject"];
1058
+ incomeTax: components["schemas"]["currencyObject"];
1059
+ netIncomeLoss: components["schemas"]["currencyObject"];
1060
+ [key: string]: unknown;
1061
+ };
1062
+ /** CurrencyList */
1063
+ CurrencyList: {
1064
+ /** Name */
1065
+ name: string;
1066
+ /** Id */
1067
+ id: number;
1068
+ [key: string]: unknown;
1069
+ };
898
1070
  };
899
1071
  responses: never;
900
1072
  parameters: never;
@@ -2074,4 +2246,57 @@ export interface operations {
2074
2246
  };
2075
2247
  };
2076
2248
  };
2249
+ /**
2250
+ * Profit And Loss
2251
+ * @description Endpoint to get profit and loss report
2252
+ * possible responses:
2253
+ * - 200: noMessage, noCode, justData
2254
+ * - 400: startDateAndEndDateAreRequiredForCustomPeriodType , invalidStartDateFormat , invalidEndDateFormat
2255
+ * - 403: forbidden
2256
+ * - 404: branchNotFound
2257
+ */
2258
+ reports_views_profit_and_loss: {
2259
+ parameters: {
2260
+ query: {
2261
+ branches: number[];
2262
+ /** @description Period type: this_month, this_year, last_month, custom */
2263
+ periodType: "this Month" | "this Year" | "last Month" | "last Year" | "custom";
2264
+ /** @description Start date for custom range (YYYY-MM-DD) */
2265
+ startDate?: string | null;
2266
+ /** @description End date for custom range (YYYY-MM-DD) */
2267
+ endDate?: string | null;
2268
+ };
2269
+ };
2270
+ responses: {
2271
+ /** @description OK */
2272
+ 200: {
2273
+ content: {
2274
+ "application/json": components["schemas"]["profitAndLossSchema"];
2275
+ };
2276
+ };
2277
+ /** @description Bad Request */
2278
+ 400: {
2279
+ content: {
2280
+ "application/json": components["schemas"]["MessageResponse"];
2281
+ };
2282
+ };
2283
+ /** @description Not Found */
2284
+ 404: {
2285
+ content: {
2286
+ "application/json": components["schemas"]["MessageResponse"];
2287
+ };
2288
+ };
2289
+ };
2290
+ };
2291
+ /** Get Primary And Secondary Currency */
2292
+ common_currency_views_get_primary_and_secondary_currency: {
2293
+ responses: {
2294
+ /** @description OK */
2295
+ 200: {
2296
+ content: {
2297
+ "application/json": components["schemas"]["CurrencyList"][];
2298
+ };
2299
+ };
2300
+ };
2301
+ };
2077
2302
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "openapi.ts"
5
5
  }