@erp-galoper/types 1.0.584 → 1.0.586

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 +541 -1
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -18385,6 +18385,73 @@ export interface paths {
18385
18385
  patch?: never;
18386
18386
  trace?: never;
18387
18387
  };
18388
+ "/api/v1/reports/inventory/item-movement-report/": {
18389
+ parameters: {
18390
+ query?: never;
18391
+ header?: never;
18392
+ path?: never;
18393
+ cookie?: never;
18394
+ };
18395
+ /**
18396
+ * Get Item Movement Report
18397
+ * @description Generate an Item Movement Report for the specified filters and date range.
18398
+ *
18399
+ * The report tracks and summarizes all movements of inventory items, providing visibility
18400
+ * into how inventory is flowing through the organization.
18401
+ *
18402
+ * Responses:
18403
+ * - 200: Item Movement Report results
18404
+ * - 400: "customPeriodError"
18405
+ * - "invalidFilterFormat"
18406
+ * - 403: "noModuleAccess"
18407
+ * - "permissionDenied"
18408
+ * - "noBranchAccess"
18409
+ * - 500: "serverError"
18410
+ *
18411
+ * Permission key: inventoryreport: ["view"]
18412
+ */
18413
+ get: operations["reports_inventoryreport_views_get_item_movement_report"];
18414
+ put?: never;
18415
+ post?: never;
18416
+ delete?: never;
18417
+ options?: never;
18418
+ head?: never;
18419
+ patch?: never;
18420
+ trace?: never;
18421
+ };
18422
+ "/api/v1/reports/inventory/item-availability-report/": {
18423
+ parameters: {
18424
+ query?: never;
18425
+ header?: never;
18426
+ path?: never;
18427
+ cookie?: never;
18428
+ };
18429
+ /**
18430
+ * Get Item Availability Report
18431
+ * @description Generate an Item Availability Report for the specified filters.
18432
+ *
18433
+ * The report provides real-time insights into the quantity of each item currently in stock,
18434
+ * on order, committed to sales, and expected from suppliers.
18435
+ *
18436
+ * Responses:
18437
+ * - 200: Item Availability Report results
18438
+ * - 400: "invalidFilterFormat"
18439
+ * - 403: "noModuleAccess"
18440
+ * - "permissionDenied"
18441
+ * - "noBranchAccess"
18442
+ * - 500: "serverError"
18443
+ *
18444
+ * Permission key: inventoryreport: ["view"]
18445
+ */
18446
+ get: operations["reports_inventoryreport_views_get_item_availability_report"];
18447
+ put?: never;
18448
+ post?: never;
18449
+ delete?: never;
18450
+ options?: never;
18451
+ head?: never;
18452
+ patch?: never;
18453
+ trace?: never;
18454
+ };
18388
18455
  }
18389
18456
  export type webhooks = Record<string, never>;
18390
18457
  export interface components {
@@ -27434,7 +27501,7 @@ export interface components {
27434
27501
  /**
27435
27502
  * Id
27436
27503
  * Format: uuid
27437
- * @example aeda4601-7deb-4fe6-8a1b-87504974771a
27504
+ * @example 58fdb5f5-fc3d-4b19-aa2e-a4d6441d0b15
27438
27505
  */
27439
27506
  id: string;
27440
27507
  /**
@@ -46619,6 +46686,343 @@ export interface components {
46619
46686
  /** Results */
46620
46687
  results: components["schemas"]["PosRoleSchema"][];
46621
46688
  };
46689
+ /** DetailedMovementSummarySchema */
46690
+ DetailedMovementSummarySchema: {
46691
+ /**
46692
+ * Openingbalance
46693
+ * @default 0
46694
+ */
46695
+ openingBalance: number;
46696
+ /**
46697
+ * Inwardmovements
46698
+ * @default 0
46699
+ */
46700
+ inwardMovements: number;
46701
+ /**
46702
+ * Outwardmovements
46703
+ * @default 0
46704
+ */
46705
+ outwardMovements: number;
46706
+ /**
46707
+ * Closingbalance
46708
+ * @default 0
46709
+ */
46710
+ closingBalance: number;
46711
+ };
46712
+ /** ItemDetailSchemaForReport */
46713
+ ItemDetailSchemaForReport: {
46714
+ /** Id */
46715
+ id: number;
46716
+ /** Name */
46717
+ name: string;
46718
+ /** Barcode */
46719
+ barcode?: string | null;
46720
+ /** Skucode */
46721
+ skuCode?: string | null;
46722
+ family?: components["schemas"]["CommonFamilySchema"] | null;
46723
+ brand?: components["schemas"]["CommonBrandSchema"] | null;
46724
+ category?: components["schemas"]["CommonCategorySchema"] | null;
46725
+ /** Tags */
46726
+ tags?: components["schemas"]["TagSchema"][] | null;
46727
+ /**
46728
+ * Unitofmeasure
46729
+ * @default []
46730
+ */
46731
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSchema"][];
46732
+ };
46733
+ /** ItemMovementReportSchema */
46734
+ ItemMovementReportSchema: {
46735
+ item: components["schemas"]["ItemDetailSchemaForReport"];
46736
+ /**
46737
+ * Unpackedmovements
46738
+ * @default []
46739
+ */
46740
+ unpackedMovements: components["schemas"]["UnpackedMovementsGroupSchema"][];
46741
+ /**
46742
+ * Packedmovements
46743
+ * @default []
46744
+ */
46745
+ packedMovements: components["schemas"]["PackedMovementsGroupSchema"][];
46746
+ summary: components["schemas"]["ItemMovementSummarySchema"];
46747
+ };
46748
+ /** ItemMovementSummarySchema */
46749
+ ItemMovementSummarySchema: {
46750
+ /**
46751
+ * Openingbalance
46752
+ * @default 0
46753
+ */
46754
+ openingBalance: number;
46755
+ /** @default {
46756
+ * "opening_balance": 0,
46757
+ * "inward_movements": 0,
46758
+ * "outward_movements": 0,
46759
+ * "closing_balance": 0
46760
+ * } */
46761
+ unpacked: components["schemas"]["DetailedMovementSummarySchema"];
46762
+ /** @default {
46763
+ * "opening_balance": 0,
46764
+ * "inward_movements": 0,
46765
+ * "outward_movements": 0,
46766
+ * "closing_balance": 0
46767
+ * } */
46768
+ packed: components["schemas"]["DetailedMovementSummarySchema"];
46769
+ /**
46770
+ * Closingbalance
46771
+ * @default 0
46772
+ */
46773
+ closingBalance: number;
46774
+ /**
46775
+ * Totalinward
46776
+ * @default 0
46777
+ */
46778
+ totalInward: number;
46779
+ /**
46780
+ * Totaloutward
46781
+ * @default 0
46782
+ */
46783
+ totalOutward: number;
46784
+ };
46785
+ /** MovementTransactionSchema */
46786
+ MovementTransactionSchema: {
46787
+ documentType?: components["schemas"]["CombinedModelName"] | null;
46788
+ /**
46789
+ * Movementdate
46790
+ * Format: date
46791
+ */
46792
+ movementDate: string;
46793
+ /** Quantity */
46794
+ quantity: number;
46795
+ branch: components["schemas"]["BranchSummaryInfo"];
46796
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
46797
+ /** Serialnumber */
46798
+ serialNumber?: string | null;
46799
+ movementType: components["schemas"]["MovementType"];
46800
+ /** Batchnumber */
46801
+ batchNumber?: string | null;
46802
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSchema"] | null;
46803
+ /**
46804
+ * Actualquantity
46805
+ * @description just display incase of item package
46806
+ */
46807
+ actualQuantity?: number | null;
46808
+ };
46809
+ /**
46810
+ * MovementType
46811
+ * @enum {string}
46812
+ */
46813
+ MovementType: "IN" | "OUT";
46814
+ /** PackedMovementsGroupSchema */
46815
+ PackedMovementsGroupSchema: {
46816
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
46817
+ /**
46818
+ * Movements
46819
+ * @default []
46820
+ */
46821
+ movements: components["schemas"]["MovementTransactionSchema"][];
46822
+ };
46823
+ /** UnpackedMovementsGroupSchema */
46824
+ UnpackedMovementsGroupSchema: {
46825
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSchema"];
46826
+ /**
46827
+ * Movements
46828
+ * @default []
46829
+ */
46830
+ movements: components["schemas"]["MovementTransactionSchema"][];
46831
+ };
46832
+ /** ItemAvailabilityReportSchema */
46833
+ ItemAvailabilityReportSchema: {
46834
+ item: components["schemas"]["ItemDetailSchemaForReport"];
46835
+ /** Barcode */
46836
+ barcode?: string | null;
46837
+ /** Sku */
46838
+ sku?: string | null;
46839
+ /** Description */
46840
+ description?: string | null;
46841
+ /** Name */
46842
+ name: string;
46843
+ /** Category */
46844
+ category?: string | null;
46845
+ /** Family */
46846
+ family?: string | null;
46847
+ /** Brand */
46848
+ brand?: string | null;
46849
+ /**
46850
+ * Tags
46851
+ * @default []
46852
+ */
46853
+ tags: string[];
46854
+ /**
46855
+ * Uomgroups
46856
+ * @default []
46857
+ */
46858
+ uomGroups: components["schemas"]["UOMGroupSchema"][];
46859
+ /**
46860
+ * Totalstockquantity
46861
+ * @default 0
46862
+ */
46863
+ totalStockQuantity: number;
46864
+ /**
46865
+ * Totalreservedquantity
46866
+ * @default 0
46867
+ */
46868
+ totalReservedQuantity: number;
46869
+ /**
46870
+ * Totalavailablequantity
46871
+ * @default 0
46872
+ */
46873
+ totalAvailableQuantity: number;
46874
+ /**
46875
+ * Onorderquantity
46876
+ * @default 0
46877
+ */
46878
+ onOrderQuantity: number;
46879
+ /**
46880
+ * Safetystocklevel
46881
+ * @default 0
46882
+ */
46883
+ safetyStockLevel: number | null;
46884
+ /**
46885
+ * Reorderpoint
46886
+ * @default 0
46887
+ */
46888
+ reorderPoint: number | null;
46889
+ /**
46890
+ * Leadtime
46891
+ * @default 0
46892
+ */
46893
+ leadTime: number | null;
46894
+ /** Lastsaledate */
46895
+ lastSaleDate?: string | null;
46896
+ };
46897
+ /** ItemLocationSchema */
46898
+ ItemLocationSchema: {
46899
+ branch?: components["schemas"]["BranchSummaryInfo"] | null;
46900
+ warehouse?: components["schemas"]["WarehouseSummaryInfo"] | null;
46901
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSchema"] | null;
46902
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
46903
+ /**
46904
+ * Stockquantity
46905
+ * @default 0
46906
+ */
46907
+ stockQuantity: number;
46908
+ /**
46909
+ * Reservedquantity
46910
+ * @default 0
46911
+ */
46912
+ reservedQuantity: number;
46913
+ /**
46914
+ * Availablequantity
46915
+ * @default 0
46916
+ */
46917
+ availableQuantity: number;
46918
+ /**
46919
+ * Ispackage
46920
+ * @default false
46921
+ */
46922
+ isPackage: boolean;
46923
+ /**
46924
+ * Batches
46925
+ * @default []
46926
+ */
46927
+ batches: components["schemas"]["BatchSerialSummarySchema"][];
46928
+ /**
46929
+ * Serials
46930
+ * @default []
46931
+ */
46932
+ serials: components["schemas"]["BatchSerialSummarySchema"][];
46933
+ };
46934
+ /** PackedInventorySchema */
46935
+ PackedInventorySchema: {
46936
+ package: components["schemas"]["ItemPackageSummarySchema"];
46937
+ /**
46938
+ * Packagequantity
46939
+ * @default 0
46940
+ */
46941
+ packageQuantity: number;
46942
+ /**
46943
+ * Stockquantity
46944
+ * @default 0
46945
+ */
46946
+ stockQuantity: number;
46947
+ /**
46948
+ * Reservedquantity
46949
+ * @default 0
46950
+ */
46951
+ reservedQuantity: number;
46952
+ /**
46953
+ * Availablequantity
46954
+ * @default 0
46955
+ */
46956
+ availableQuantity: number;
46957
+ /**
46958
+ * Totalunits
46959
+ * @default 0
46960
+ */
46961
+ totalUnits: number;
46962
+ /**
46963
+ * Totalreserved
46964
+ * @default 0
46965
+ */
46966
+ totalReserved: number;
46967
+ /**
46968
+ * Totalavailable
46969
+ * @default 0
46970
+ */
46971
+ totalAvailable: number;
46972
+ /**
46973
+ * Locations
46974
+ * @default []
46975
+ */
46976
+ locations: components["schemas"]["ItemLocationSchema"][];
46977
+ };
46978
+ /** UOMGroupSchema */
46979
+ UOMGroupSchema: {
46980
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSchema"];
46981
+ unpacked: components["schemas"]["UnpackedInventorySchema"];
46982
+ /**
46983
+ * Packed
46984
+ * @default []
46985
+ */
46986
+ packed: components["schemas"]["PackedInventorySchema"][];
46987
+ /**
46988
+ * Totalstockquantity
46989
+ * @default 0
46990
+ */
46991
+ totalStockQuantity: number;
46992
+ /**
46993
+ * Totalreservedquantity
46994
+ * @default 0
46995
+ */
46996
+ totalReservedQuantity: number;
46997
+ /**
46998
+ * Totalavailablequantity
46999
+ * @default 0
47000
+ */
47001
+ totalAvailableQuantity: number;
47002
+ };
47003
+ /** UnpackedInventorySchema */
47004
+ UnpackedInventorySchema: {
47005
+ /**
47006
+ * Stockquantity
47007
+ * @default 0
47008
+ */
47009
+ stockQuantity: number;
47010
+ /**
47011
+ * Reservedquantity
47012
+ * @default 0
47013
+ */
47014
+ reservedQuantity: number;
47015
+ /**
47016
+ * Availablequantity
47017
+ * @default 0
47018
+ */
47019
+ availableQuantity: number;
47020
+ /**
47021
+ * Locations
47022
+ * @default []
47023
+ */
47024
+ locations: components["schemas"]["ItemLocationSchema"][];
47025
+ };
46622
47026
  };
46623
47027
  responses: never;
46624
47028
  parameters: never;
@@ -83531,4 +83935,140 @@ export interface operations {
83531
83935
  };
83532
83936
  };
83533
83937
  };
83938
+ reports_inventoryreport_views_get_item_movement_report: {
83939
+ parameters: {
83940
+ query: {
83941
+ /** @description Start date for custom range (YYYY-MM-DD) */
83942
+ startDate: string;
83943
+ /** @description End date for custom range (YYYY-MM-DD) */
83944
+ endDate: string;
83945
+ /** @description List of branch IDs */
83946
+ branches?: number[] | null;
83947
+ /** @description List of warehouse IDs */
83948
+ warehouses?: number[] | null;
83949
+ /** @description List of family IDs */
83950
+ families?: number[] | null;
83951
+ /** @description List of brand IDs */
83952
+ brands?: number[] | null;
83953
+ /** @description List of tag IDs */
83954
+ tags?: number[] | null;
83955
+ /** @description List of category IDs */
83956
+ categories?: number[] | null;
83957
+ /** @description List of item IDs */
83958
+ items?: number[] | null;
83959
+ /** @description List of package IDs */
83960
+ packages?: string[] | null;
83961
+ /** @description List of UOM IDs */
83962
+ unit_of_measure?: number[] | null;
83963
+ };
83964
+ header?: never;
83965
+ path?: never;
83966
+ cookie?: never;
83967
+ };
83968
+ requestBody?: never;
83969
+ responses: {
83970
+ /** @description OK */
83971
+ 200: {
83972
+ headers: {
83973
+ [name: string]: unknown;
83974
+ };
83975
+ content: {
83976
+ "application/json": components["schemas"]["ItemMovementReportSchema"][];
83977
+ };
83978
+ };
83979
+ /** @description Bad Request */
83980
+ 400: {
83981
+ headers: {
83982
+ [name: string]: unknown;
83983
+ };
83984
+ content: {
83985
+ "application/json": components["schemas"]["ErrorMessages"];
83986
+ };
83987
+ };
83988
+ /** @description Forbidden */
83989
+ 403: {
83990
+ headers: {
83991
+ [name: string]: unknown;
83992
+ };
83993
+ content: {
83994
+ "application/json": components["schemas"]["MessageWithCode"];
83995
+ };
83996
+ };
83997
+ /** @description Internal Server Error */
83998
+ 500: {
83999
+ headers: {
84000
+ [name: string]: unknown;
84001
+ };
84002
+ content: {
84003
+ "application/json": components["schemas"]["MessageWithCode"];
84004
+ };
84005
+ };
84006
+ };
84007
+ };
84008
+ reports_inventoryreport_views_get_item_availability_report: {
84009
+ parameters: {
84010
+ query?: {
84011
+ /** @description List of branch IDs */
84012
+ branches?: number[] | null;
84013
+ /** @description List of warehouse IDs */
84014
+ warehouses?: number[] | null;
84015
+ /** @description List of family IDs */
84016
+ families?: number[] | null;
84017
+ /** @description List of brand IDs */
84018
+ brands?: number[] | null;
84019
+ /** @description List of tag IDs */
84020
+ tags?: number[] | null;
84021
+ /** @description List of category IDs */
84022
+ categories?: number[] | null;
84023
+ /** @description List of item IDs */
84024
+ items?: number[] | null;
84025
+ /** @description List of package IDs */
84026
+ packages?: string[] | null;
84027
+ /** @description List of UOM IDs */
84028
+ unit_of_measure?: number[] | null;
84029
+ };
84030
+ header?: never;
84031
+ path?: never;
84032
+ cookie?: never;
84033
+ };
84034
+ requestBody?: never;
84035
+ responses: {
84036
+ /** @description OK */
84037
+ 200: {
84038
+ headers: {
84039
+ [name: string]: unknown;
84040
+ };
84041
+ content: {
84042
+ "application/json": components["schemas"]["ItemAvailabilityReportSchema"][];
84043
+ };
84044
+ };
84045
+ /** @description Bad Request */
84046
+ 400: {
84047
+ headers: {
84048
+ [name: string]: unknown;
84049
+ };
84050
+ content: {
84051
+ "application/json": components["schemas"]["ErrorMessages"];
84052
+ };
84053
+ };
84054
+ /** @description Forbidden */
84055
+ 403: {
84056
+ headers: {
84057
+ [name: string]: unknown;
84058
+ };
84059
+ content: {
84060
+ "application/json": components["schemas"]["MessageWithCode"];
84061
+ };
84062
+ };
84063
+ /** @description Internal Server Error */
84064
+ 500: {
84065
+ headers: {
84066
+ [name: string]: unknown;
84067
+ };
84068
+ content: {
84069
+ "application/json": components["schemas"]["MessageWithCode"];
84070
+ };
84071
+ };
84072
+ };
84073
+ };
83534
84074
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.584",
3
+ "version": "1.0.586",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],