@erp-galoper/types 1.0.583 → 1.0.585

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 +305 -63
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -11818,9 +11818,11 @@ export interface paths {
11818
11818
  * Responses:
11819
11819
  * - 200: GoodsReceiptNoteSchema
11820
11820
  * - 400: - itemDoesNotExist
11821
- * - itemNotInPurchaseOrder
11822
- * - itemNotInPurchaseInvoice
11821
+ * - itemWithUOMNotInPurchaseOrder
11822
+ * - itemWithUOMNotInPurchaseInvoice
11823
11823
  * - quantityOrderedMismatch
11824
+ * - itemPackageMismatch
11825
+ * - unitOfMeasureMismatch
11824
11826
  * - expiryDateRequired
11825
11827
  * - serialNumbersQuantityMismatch
11826
11828
  * - serialNumberRequiredForEachUnit
@@ -11892,9 +11894,11 @@ export interface paths {
11892
11894
  * Responses:
11893
11895
  * - 200: GoodsReceiptNoteSchema
11894
11896
  * - 400: itemDoesNotExist
11895
- * - itemNotInPurchaseOrder
11896
- * - itemNotInPurchaseInvoice
11897
+ * - itemWithUOMNotInPurchaseOrder
11898
+ * - itemWithUOMNotInPurchaseInvoice
11897
11899
  * - quantityOrderedMismatch
11900
+ * - itemPackageMismatch
11901
+ * - unitOfMeasureMismatch
11898
11902
  * - expiryDateRequired
11899
11903
  * - serialNumbersQuantityMismatch
11900
11904
  * - serialNumberRequiredForEachUnit
@@ -17270,6 +17274,10 @@ export interface paths {
17270
17274
  * Responses:
17271
17275
  * - 201: GoodsDeliveryNoteSchema
17272
17276
  * - 400:
17277
+ * - itemWithUOMNotInSalesOrder
17278
+ * - itemWithUOMNotInSalesInvoice
17279
+ * - quantityOrderedMismatch
17280
+ * - itemPackageMismatch
17273
17281
  * - quantityExceeded
17274
17282
  * - trackingQuantityMismatch
17275
17283
  * - batchDoesNotExist
@@ -17338,6 +17346,10 @@ export interface paths {
17338
17346
  * Responses:
17339
17347
  * - 200: GoodsDeliveryNoteSchema
17340
17348
  * - 400:
17349
+ * - itemWithUOMNotInSalesOrder
17350
+ * - itemWithUOMNotInSalesInvoice
17351
+ * - quantityOrderedMismatch
17352
+ * - itemPackageMismatch
17341
17353
  * - quantityExceeded
17342
17354
  * - trackingQuantityMismatch
17343
17355
  * - batchDoesNotExist
@@ -18373,6 +18385,40 @@ export interface paths {
18373
18385
  patch?: never;
18374
18386
  trace?: never;
18375
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
+ };
18376
18422
  }
18377
18423
  export type webhooks = Record<string, never>;
18378
18424
  export interface components {
@@ -27422,7 +27468,7 @@ export interface components {
27422
27468
  /**
27423
27469
  * Id
27424
27470
  * Format: uuid
27425
- * @example cdb9d277-b222-4798-8b87-9c99f28c7e97
27471
+ * @example 301e2c9b-c65a-4d8c-b516-cc5e0f04d79c
27426
27472
  */
27427
27473
  id: string;
27428
27474
  /**
@@ -35675,6 +35721,8 @@ export interface components {
35675
35721
  */
35676
35722
  id: string;
35677
35723
  item: components["schemas"]["ItemSharedSchema"];
35724
+ /** @description The unit of measure selected from the item's options */
35725
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
35678
35726
  /** @description Tracking method: serial_number, batch, or quantity */
35679
35727
  trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
35680
35728
  itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
@@ -35781,7 +35829,11 @@ export interface components {
35781
35829
  unitPackage?: number | null;
35782
35830
  /**
35783
35831
  * Quantity
35784
- * @description if tracked by serial number, quantity must be 1, if tracked by quantity, quantity must be equal to quantity received, if tracked by batch, quantity can be any number but the sum of all quantities must be equal to quantity received, if unit_package is selected, quantity must be equal to unit_package * item_package quantity
35832
+ * @description
35833
+ * - if tracked by serial number, quantity must be 1
35834
+ * - if tracked by quantity, quantity must be equal to quantity received,
35835
+ * - if tracked by batch, quantity can be any number but the sum of all quantities must be equal to quantity received,
35836
+ * - if unit_package is selected, quantity must be equal to unit_package * item_package quantity
35785
35837
  * @default 1
35786
35838
  */
35787
35839
  quantity: number | null;
@@ -35800,6 +35852,16 @@ export interface components {
35800
35852
  id?: string | null;
35801
35853
  /** Item */
35802
35854
  item: number;
35855
+ /**
35856
+ * Unitofmeasure
35857
+ * @description
35858
+ * - case where only item selected:
35859
+ * - get data from api/v1/inventory/items/{item-id}/ field unitOfMeasures, get default value from field defaultPurchaseUnitOfMeasure if applicable
35860
+ * - case where item package selected:
35861
+ * - input should be disabled, get unit of measure from itemPackage
35862
+ *
35863
+ */
35864
+ unitOfMeasure: number;
35803
35865
  /**
35804
35866
  * Itempackage
35805
35867
  * Format: uuid
@@ -35820,7 +35882,14 @@ export interface components {
35820
35882
  quantityOrdered?: number | null;
35821
35883
  /**
35822
35884
  * Tracking
35823
- * @description get the tracking from the item
35885
+ * @description
35886
+ * - if trackInventoryBy is serial_number, tracking must be a list of serial numbers with
35887
+ * quantity = 1 for each serial number, in case there is itemPackage selected, no of tracking must be equal to quantity received
35888
+ * - if trackInventoryBy is batch, tracking must be a list of batch numbers with
35889
+ * quantity = quantity received for each batch number
35890
+ * - if trackInventoryBy is quantity, tracking must be a list of quantities with
35891
+ * quantity = quantity received for each quantity
35892
+ *
35824
35893
  */
35825
35894
  tracking: components["schemas"]["CreateOrUpdateGoodsReceiptNoteItemTrackingSchema"][];
35826
35895
  };
@@ -35832,11 +35901,6 @@ export interface components {
35832
35901
  * - Either purchaseOrder or purchaseInvoice must be provided.
35833
35902
  */
35834
35903
  CreateOrUpdateGoodsReceiptSchema: {
35835
- /**
35836
- * Branch
35837
- * @description Branch ID for the goods receipt
35838
- */
35839
- branch: number;
35840
35904
  /** Password */
35841
35905
  password?: string | null;
35842
35906
  /**
@@ -45452,6 +45516,8 @@ export interface components {
45452
45516
  */
45453
45517
  id: string;
45454
45518
  item: components["schemas"]["ItemSharedSchema"];
45519
+ /** @description The unit of measure selected from the item's options */
45520
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
45455
45521
  itemPackage: components["schemas"]["ItemPackageSummarySchema"] | null;
45456
45522
  /** Unitpackage */
45457
45523
  unitPackage: number | null;
@@ -45559,6 +45625,16 @@ export interface components {
45559
45625
  * @description If there is a linked invoice or order in the GDN, the item should be associated with that specific invoice or order.
45560
45626
  */
45561
45627
  item: number;
45628
+ /**
45629
+ * Unitofmeasure
45630
+ * @description
45631
+ * - case where only item selected:
45632
+ * - get data from api/v1/inventory/items/{item-id}/ field unitOfMeasures, get default value from field defaultSalesUnitOfMeasure if applicable
45633
+ * - case where item package selected:
45634
+ * - input should be disabled, get unit of measure from itemPackage
45635
+ *
45636
+ */
45637
+ unitOfMeasure: number;
45562
45638
  /**
45563
45639
  * Itempackage
45564
45640
  * Format: uuid
@@ -45647,53 +45723,7 @@ export interface components {
45647
45723
  GoodsDeliveryNoteListSchema: {
45648
45724
  info: components["schemas"]["PageInfoSchema"];
45649
45725
  /** Results */
45650
- results: components["schemas"]["GoodsDeliveryNoteWithItemForListSchema"][];
45651
- };
45652
- /** GoodsDeliveryNoteWithItemForListSchema */
45653
- GoodsDeliveryNoteWithItemForListSchema: {
45654
- /**
45655
- * Id
45656
- * Format: uuid
45657
- */
45658
- id: string;
45659
- /** Serialnumber */
45660
- serialNumber: string;
45661
- /**
45662
- * Date
45663
- * Format: date
45664
- */
45665
- date: string;
45666
- customer: components["schemas"]["ChildSupplierSharedSchema"];
45667
- warehouse: components["schemas"]["WarehouseSummaryInfo"];
45668
- /** @description Linked sales order ID */
45669
- salesOrder?: components["schemas"]["DocumentCommonSchema"] | null;
45670
- /** @description Linked sales invoice ID */
45671
- salesInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
45672
- /** Referencenumber */
45673
- referenceNumber?: string | null;
45674
- /**
45675
- * Description
45676
- * @description A description of the delivery note
45677
- */
45678
- description: string | null;
45679
- status: components["schemas"]["InternalStatusOnReturnValueChoices"];
45680
- approvalStatus: components["schemas"]["ApprovalValueChoices"];
45681
- /**
45682
- * Attachments
45683
- * @description A list of attachment file paths linked to the delivery note
45684
- */
45685
- attachments: string[] | null;
45686
- /**
45687
- * Notes
45688
- * @description Additional notes regarding the delivery note
45689
- */
45690
- notes: string | null;
45691
- /**
45692
- * Items
45693
- * @description List of items in the goods delivery note
45694
- * @default []
45695
- */
45696
- items: components["schemas"]["GoodsDeliveryNoteItemsSchema"][];
45726
+ results: components["schemas"]["GoodsDeliveryNoteSchema"][];
45697
45727
  };
45698
45728
  /** DefaultSubsidiaryAccountDetailSchema */
45699
45729
  DefaultSubsidiaryAccountDetailSchema: {
@@ -46623,6 +46653,149 @@ export interface components {
46623
46653
  /** Results */
46624
46654
  results: components["schemas"]["PosRoleSchema"][];
46625
46655
  };
46656
+ /** DetailedMovementSummarySchema */
46657
+ DetailedMovementSummarySchema: {
46658
+ /**
46659
+ * Openingbalance
46660
+ * @default 0
46661
+ */
46662
+ openingBalance: number;
46663
+ /**
46664
+ * Inwardmovements
46665
+ * @default 0
46666
+ */
46667
+ inwardMovements: number;
46668
+ /**
46669
+ * Outwardmovements
46670
+ * @default 0
46671
+ */
46672
+ outwardMovements: number;
46673
+ /**
46674
+ * Closingbalance
46675
+ * @default 0
46676
+ */
46677
+ closingBalance: number;
46678
+ };
46679
+ /** ItemDetailSchemaForReport */
46680
+ ItemDetailSchemaForReport: {
46681
+ /** Id */
46682
+ id: number;
46683
+ /** Name */
46684
+ name: string;
46685
+ /** Barcode */
46686
+ barcode?: string | null;
46687
+ /** Skucode */
46688
+ skuCode?: string | null;
46689
+ family?: components["schemas"]["CommonFamilySchema"] | null;
46690
+ brand?: components["schemas"]["CommonBrandSchema"] | null;
46691
+ category?: components["schemas"]["CommonCategorySchema"] | null;
46692
+ /** Tags */
46693
+ tags?: components["schemas"]["TagSchema"][] | null;
46694
+ /**
46695
+ * Unitofmeasure
46696
+ * @default []
46697
+ */
46698
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSchema"][];
46699
+ };
46700
+ /** ItemMovementReportSchema */
46701
+ ItemMovementReportSchema: {
46702
+ item: components["schemas"]["ItemDetailSchemaForReport"];
46703
+ /**
46704
+ * Unpackedmovements
46705
+ * @default []
46706
+ */
46707
+ unpackedMovements: components["schemas"]["UnpackedMovementsGroupSchema"][];
46708
+ /**
46709
+ * Packedmovements
46710
+ * @default []
46711
+ */
46712
+ packedMovements: components["schemas"]["PackedMovementsGroupSchema"][];
46713
+ summary: components["schemas"]["ItemMovementSummarySchema"];
46714
+ };
46715
+ /** ItemMovementSummarySchema */
46716
+ ItemMovementSummarySchema: {
46717
+ /**
46718
+ * Openingbalance
46719
+ * @default 0
46720
+ */
46721
+ openingBalance: number;
46722
+ /** @default {
46723
+ * "opening_balance": 0,
46724
+ * "inward_movements": 0,
46725
+ * "outward_movements": 0,
46726
+ * "closing_balance": 0
46727
+ * } */
46728
+ unpacked: components["schemas"]["DetailedMovementSummarySchema"];
46729
+ /** @default {
46730
+ * "opening_balance": 0,
46731
+ * "inward_movements": 0,
46732
+ * "outward_movements": 0,
46733
+ * "closing_balance": 0
46734
+ * } */
46735
+ packed: components["schemas"]["DetailedMovementSummarySchema"];
46736
+ /**
46737
+ * Closingbalance
46738
+ * @default 0
46739
+ */
46740
+ closingBalance: number;
46741
+ /**
46742
+ * Totalinward
46743
+ * @default 0
46744
+ */
46745
+ totalInward: number;
46746
+ /**
46747
+ * Totaloutward
46748
+ * @default 0
46749
+ */
46750
+ totalOutward: number;
46751
+ };
46752
+ /** MovementTransactionSchema */
46753
+ MovementTransactionSchema: {
46754
+ documentType?: components["schemas"]["CombinedModelName"] | null;
46755
+ /**
46756
+ * Movementdate
46757
+ * Format: date
46758
+ */
46759
+ movementDate: string;
46760
+ /** Quantity */
46761
+ quantity: number;
46762
+ branch: components["schemas"]["BranchSummaryInfo"];
46763
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
46764
+ /** Serialnumber */
46765
+ serialNumber?: string | null;
46766
+ movementType: components["schemas"]["MovementType"];
46767
+ /** Batchnumber */
46768
+ batchNumber?: string | null;
46769
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSchema"] | null;
46770
+ /**
46771
+ * Actualquantity
46772
+ * @description just display incase of item package
46773
+ */
46774
+ actualQuantity?: number | null;
46775
+ };
46776
+ /**
46777
+ * MovementType
46778
+ * @enum {string}
46779
+ */
46780
+ MovementType: "IN" | "OUT";
46781
+ /** PackedMovementsGroupSchema */
46782
+ PackedMovementsGroupSchema: {
46783
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
46784
+ /**
46785
+ * Movements
46786
+ * @default []
46787
+ */
46788
+ movements: components["schemas"]["MovementTransactionSchema"][];
46789
+ };
46790
+ /** UnpackedMovementsGroupSchema */
46791
+ UnpackedMovementsGroupSchema: {
46792
+ unitOfMeasure: components["schemas"]["UnitOfMeasureSchema"];
46793
+ /**
46794
+ * Movements
46795
+ * @default []
46796
+ */
46797
+ movements: components["schemas"]["MovementTransactionSchema"][];
46798
+ };
46626
46799
  };
46627
46800
  responses: never;
46628
46801
  parameters: never;
@@ -70756,12 +70929,11 @@ export interface operations {
70756
70929
  };
70757
70930
  inventory_receipt_note_views_list_goods_receipt_notes: {
70758
70931
  parameters: {
70759
- query: {
70932
+ query?: {
70760
70933
  page?: number;
70761
70934
  pageSize?: number;
70762
70935
  /** @description fields to search: reference_number, supplier name, serial_number, date, item name, supplier account number */
70763
70936
  search?: string | null;
70764
- branchId: number;
70765
70937
  /** @description Period type: thisMonth, thisYear, lastMonth, custom, ... */
70766
70938
  periodType?: "thisMonth" | "lastMonth" | "thisQuarter" | "lastQuarter" | "thisFiscalYear" | "lastFiscalYear" | "custom" | "today" | "all";
70767
70939
  /** @description Start date for custom range (YYYY-MM-DD), this required if the period type is custom */
@@ -70826,8 +70998,8 @@ export interface operations {
70826
70998
  };
70827
70999
  };
70828
71000
  responses: {
70829
- /** @description OK */
70830
- 200: {
71001
+ /** @description Created */
71002
+ 201: {
70831
71003
  headers: {
70832
71004
  [name: string]: unknown;
70833
71005
  };
@@ -83536,4 +83708,74 @@ export interface operations {
83536
83708
  };
83537
83709
  };
83538
83710
  };
83711
+ reports_inventoryreport_views_get_item_movement_report: {
83712
+ parameters: {
83713
+ query: {
83714
+ /** @description Start date for custom range (YYYY-MM-DD) */
83715
+ startDate: string;
83716
+ /** @description End date for custom range (YYYY-MM-DD) */
83717
+ endDate: string;
83718
+ /** @description List of branch IDs */
83719
+ branches?: number[] | null;
83720
+ /** @description List of warehouse IDs */
83721
+ warehouses?: number[] | null;
83722
+ /** @description List of family IDs */
83723
+ families?: number[] | null;
83724
+ /** @description List of brand IDs */
83725
+ brands?: number[] | null;
83726
+ /** @description List of tag IDs */
83727
+ tags?: number[] | null;
83728
+ /** @description List of category IDs */
83729
+ categories?: number[] | null;
83730
+ /** @description List of item IDs */
83731
+ items?: number[] | null;
83732
+ /** @description List of package IDs */
83733
+ packages?: string[] | null;
83734
+ /** @description List of UOM IDs */
83735
+ unit_of_measure?: number[] | null;
83736
+ };
83737
+ header?: never;
83738
+ path?: never;
83739
+ cookie?: never;
83740
+ };
83741
+ requestBody?: never;
83742
+ responses: {
83743
+ /** @description OK */
83744
+ 200: {
83745
+ headers: {
83746
+ [name: string]: unknown;
83747
+ };
83748
+ content: {
83749
+ "application/json": components["schemas"]["ItemMovementReportSchema"][];
83750
+ };
83751
+ };
83752
+ /** @description Bad Request */
83753
+ 400: {
83754
+ headers: {
83755
+ [name: string]: unknown;
83756
+ };
83757
+ content: {
83758
+ "application/json": components["schemas"]["ErrorMessages"];
83759
+ };
83760
+ };
83761
+ /** @description Forbidden */
83762
+ 403: {
83763
+ headers: {
83764
+ [name: string]: unknown;
83765
+ };
83766
+ content: {
83767
+ "application/json": components["schemas"]["MessageWithCode"];
83768
+ };
83769
+ };
83770
+ /** @description Internal Server Error */
83771
+ 500: {
83772
+ headers: {
83773
+ [name: string]: unknown;
83774
+ };
83775
+ content: {
83776
+ "application/json": components["schemas"]["MessageWithCode"];
83777
+ };
83778
+ };
83779
+ };
83780
+ };
83539
83781
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.583",
3
+ "version": "1.0.585",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],