@erp-galoper/types 1.0.2066 → 1.0.2068
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 +71 -33
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -19735,16 +19735,20 @@ export interface paths {
|
|
|
19735
19735
|
};
|
|
19736
19736
|
/**
|
|
19737
19737
|
* List Inventory Movements
|
|
19738
|
-
* @description List
|
|
19738
|
+
* @description List inventory movements. Explicit filters support quick filtering; `search` handles free text
|
|
19739
19739
|
* and `apply_filters_to_queryset` supports advanced filter payloads.
|
|
19740
19740
|
*
|
|
19741
|
-
* Permission
|
|
19741
|
+
* Permission keys (depends on movementType / movementTypes):
|
|
19742
|
+
* - goodsDelivery: goodsdeliverynote: ["view"]
|
|
19743
|
+
* - goodsReceipt: goodsreceiptnote: ["view"]
|
|
19744
|
+
* - salesReturn: salesreturndocument: ["view"]
|
|
19745
|
+
* - purchaseReturn: purchasereturndocument: ["view"]
|
|
19742
19746
|
*/
|
|
19743
19747
|
get: operations["inventory_inventory_movement_views_list_inventory_movements"];
|
|
19744
19748
|
put?: never;
|
|
19745
19749
|
/**
|
|
19746
19750
|
* Create Inventory Movement
|
|
19747
|
-
* @description Create
|
|
19751
|
+
* @description Create an inventory movement (goods delivery, goods receipt, sales return, or purchase return).
|
|
19748
19752
|
*
|
|
19749
19753
|
* Responses:
|
|
19750
19754
|
* - 201: InventoryMovementSchema
|
|
@@ -19755,7 +19759,11 @@ export interface paths {
|
|
|
19755
19759
|
* noBranchAccess, noWarehouseAccess
|
|
19756
19760
|
* - 500: serverError
|
|
19757
19761
|
*
|
|
19758
|
-
* Permission
|
|
19762
|
+
* Permission keys (depends on movementType):
|
|
19763
|
+
* - goodsDelivery: goodsdeliverynote: ["add"]
|
|
19764
|
+
* - goodsReceipt: goodsreceiptnote: ["add"]
|
|
19765
|
+
* - salesReturn: salesreturndocument: ["add"]
|
|
19766
|
+
* - purchaseReturn: purchasereturndocument: ["add"]
|
|
19759
19767
|
*/
|
|
19760
19768
|
post: operations["inventory_inventory_movement_views_create_inventory_movement"];
|
|
19761
19769
|
delete?: never;
|
|
@@ -19773,10 +19781,15 @@ export interface paths {
|
|
|
19773
19781
|
};
|
|
19774
19782
|
/**
|
|
19775
19783
|
* Get Inventory Movement Source Lines
|
|
19776
|
-
* @description Fetch eligible source lines and party for creating/updating
|
|
19777
|
-
*
|
|
19784
|
+
* @description Fetch eligible source lines and party for creating/updating an inventory movement.
|
|
19785
|
+
* For salesReturn and purchaseReturn, use each line `id` as `sourceLineId` in the payload.
|
|
19786
|
+
* For goodsDelivery and goodsReceipt, use each line to build the movement `lines` payload.
|
|
19778
19787
|
*
|
|
19779
|
-
* Permission
|
|
19788
|
+
* Permission keys (depends on resolved source document type):
|
|
19789
|
+
* - sales order / invoice: goodsdeliverynote: ["view"]
|
|
19790
|
+
* - purchase order / invoice: goodsreceiptnote: ["view"]
|
|
19791
|
+
* - sales return invoice / order: salesreturndocument: ["view"]
|
|
19792
|
+
* - purchase return invoice / order: purchasereturndocument: ["view"]
|
|
19780
19793
|
*/
|
|
19781
19794
|
get: operations["inventory_inventory_movement_views_get_inventory_movement_source_lines"];
|
|
19782
19795
|
put?: never;
|
|
@@ -19794,7 +19807,16 @@ export interface paths {
|
|
|
19794
19807
|
path?: never;
|
|
19795
19808
|
cookie?: never;
|
|
19796
19809
|
};
|
|
19797
|
-
/**
|
|
19810
|
+
/**
|
|
19811
|
+
* Get Inventory Movement
|
|
19812
|
+
* @description Get a single inventory movement by ID.
|
|
19813
|
+
*
|
|
19814
|
+
* Permission keys (depends on movementType):
|
|
19815
|
+
* - goodsDelivery: goodsdeliverynote: ["view"]
|
|
19816
|
+
* - goodsReceipt: goodsreceiptnote: ["view"]
|
|
19817
|
+
* - salesReturn: salesreturndocument: ["view"]
|
|
19818
|
+
* - purchaseReturn: purchasereturndocument: ["view"]
|
|
19819
|
+
*/
|
|
19798
19820
|
get: operations["inventory_inventory_movement_views_get_inventory_movement"];
|
|
19799
19821
|
/** Update Inventory Movement */
|
|
19800
19822
|
put: operations["inventory_inventory_movement_views_update_inventory_movement"];
|
|
@@ -21321,7 +21343,7 @@ export interface paths {
|
|
|
21321
21343
|
};
|
|
21322
21344
|
/**
|
|
21323
21345
|
* Get Sales Dashboard Cash Flow Trend
|
|
21324
|
-
* @description Cash flow
|
|
21346
|
+
* @description Cash flow inflows/outflows over time for the selected report window.
|
|
21325
21347
|
*/
|
|
21326
21348
|
get: operations["reports_salesdashboard_views_get_sales_dashboard_cash_flow_trend"];
|
|
21327
21349
|
put?: never;
|
|
@@ -62625,16 +62647,10 @@ export interface components {
|
|
|
62625
62647
|
id: string;
|
|
62626
62648
|
/** Serialnumber */
|
|
62627
62649
|
serialNumber: string;
|
|
62628
|
-
/**
|
|
62629
|
-
|
|
62630
|
-
|
|
62631
|
-
|
|
62632
|
-
movementType: string;
|
|
62633
|
-
/**
|
|
62634
|
-
* Sourcedocumenttype
|
|
62635
|
-
* @description Linked source document type when applicable.
|
|
62636
|
-
*/
|
|
62637
|
-
sourceDocumentType?: string | null;
|
|
62650
|
+
/** @description Movement type of the document. */
|
|
62651
|
+
movementType: components["schemas"]["MovementTypeEnum"];
|
|
62652
|
+
/** @description Linked source document type when applicable. */
|
|
62653
|
+
sourceDocumentType?: components["schemas"]["SourceDocumentTypeEnum"] | null;
|
|
62638
62654
|
/**
|
|
62639
62655
|
* Sourcedocumentid
|
|
62640
62656
|
* @description Linked source document UUID when applicable.
|
|
@@ -62655,6 +62671,14 @@ export interface components {
|
|
|
62655
62671
|
purchaseOrder?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62656
62672
|
/** @description Linked purchase invoice for goodsReceipt movements. */
|
|
62657
62673
|
purchaseInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62674
|
+
/** @description Linked sales return invoice for salesReturn movements. */
|
|
62675
|
+
salesReturnInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62676
|
+
/** @description Linked sales return order for salesReturn movements. */
|
|
62677
|
+
salesReturnOrder?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62678
|
+
/** @description Linked purchase return invoice for purchaseReturn movements. */
|
|
62679
|
+
purchaseReturnInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62680
|
+
/** @description Linked purchase return order for purchaseReturn movements. */
|
|
62681
|
+
purchaseReturnOrder?: components["schemas"]["DocumentCommonSchema"] | null;
|
|
62658
62682
|
/** Referencenumber */
|
|
62659
62683
|
referenceNumber?: string | null;
|
|
62660
62684
|
/** @description Shipment status for goodsDelivery movements. */
|
|
@@ -62682,6 +62706,11 @@ export interface components {
|
|
|
62682
62706
|
* @description List of attachment file paths linked to the inventory movement.
|
|
62683
62707
|
*/
|
|
62684
62708
|
attachments?: string[] | null;
|
|
62709
|
+
/**
|
|
62710
|
+
* Candelete
|
|
62711
|
+
* @description Indicates if the inventory movement can be deleted.
|
|
62712
|
+
*/
|
|
62713
|
+
canDelete: boolean;
|
|
62685
62714
|
/**
|
|
62686
62715
|
* Items
|
|
62687
62716
|
* @description List of inventory movement lines.
|
|
@@ -62754,11 +62783,21 @@ export interface components {
|
|
|
62754
62783
|
*/
|
|
62755
62784
|
quantity: number | null;
|
|
62756
62785
|
};
|
|
62786
|
+
/**
|
|
62787
|
+
* MovementTypeEnum
|
|
62788
|
+
* @enum {string}
|
|
62789
|
+
*/
|
|
62790
|
+
MovementTypeEnum: "goodsDelivery" | "goodsReceipt" | "salesReturn" | "purchaseReturn";
|
|
62757
62791
|
/**
|
|
62758
62792
|
* PartyTypeEnum
|
|
62759
62793
|
* @enum {string}
|
|
62760
62794
|
*/
|
|
62761
62795
|
PartyTypeEnum: "customer" | "supplier";
|
|
62796
|
+
/**
|
|
62797
|
+
* SourceDocumentTypeEnum
|
|
62798
|
+
* @enum {string}
|
|
62799
|
+
*/
|
|
62800
|
+
SourceDocumentTypeEnum: "salesOrder" | "salesInvoice" | "purchaseOrder" | "purchaseInvoice" | "returnInvoice" | "returnOrder" | "purchaseReturn" | "purchaseReturnOrder";
|
|
62762
62801
|
/**
|
|
62763
62802
|
* CreateOrUpdateInventoryMovementSchema
|
|
62764
62803
|
* @description Schema for creating or updating an inventory movement.
|
|
@@ -62819,6 +62858,7 @@ export interface components {
|
|
|
62819
62858
|
* - Child customers only.
|
|
62820
62859
|
* - If linked to a sales order or invoice, customer must match the linked document.
|
|
62821
62860
|
* - Otherwise filter customers by document_type='goodsDeliveryNote'.
|
|
62861
|
+
* For salesReturn: do not send. Customer is derived from sourceDocumentId.
|
|
62822
62862
|
*/
|
|
62823
62863
|
customer?: string | null;
|
|
62824
62864
|
/**
|
|
@@ -62826,6 +62866,7 @@ export interface components {
|
|
|
62826
62866
|
* @description Required for goodsReceipt.
|
|
62827
62867
|
* - If linked to a purchase order or invoice, supplier must match the linked document.
|
|
62828
62868
|
* - Otherwise filter suppliers by document_type='goodsReceiptNote'.
|
|
62869
|
+
* For purchaseReturn: do not send. Supplier is derived from sourceDocumentId.
|
|
62829
62870
|
*/
|
|
62830
62871
|
supplier?: string | null;
|
|
62831
62872
|
/**
|
|
@@ -62835,7 +62876,7 @@ export interface components {
|
|
|
62835
62876
|
* - goodsDelivery: sales order or sales invoice, depending on goods_delivery_note_source.
|
|
62836
62877
|
* - goodsReceipt: purchase order or purchase invoice, depending on goods_receipt_note_source.
|
|
62837
62878
|
* - salesReturn / purchaseReturn: return invoice or return order, depending on settings.
|
|
62838
|
-
* Fetch eligible
|
|
62879
|
+
* Fetch eligible lines from GET /api/v1/inventory/item-movements/source-lines/.
|
|
62839
62880
|
*/
|
|
62840
62881
|
sourceDocumentId?: string | null;
|
|
62841
62882
|
/**
|
|
@@ -62853,7 +62894,7 @@ export interface components {
|
|
|
62853
62894
|
id?: string | null;
|
|
62854
62895
|
/**
|
|
62855
62896
|
* Sourcelineid
|
|
62856
|
-
* @description Required for salesReturn and purchaseReturn. Fetch eligible lines from GET /api/v1/inventory/item-movements/source-lines/ using sourceDocumentId, then use each line id as sourceLineId.
|
|
62897
|
+
* @description Required for salesReturn and purchaseReturn. Required for salesReturn and purchaseReturn. Fetch eligible lines from GET /api/v1/inventory/item-movements/source-lines/ using sourceDocumentId, then use each line id as sourceLineId.
|
|
62857
62898
|
*/
|
|
62858
62899
|
sourceLineId?: string | null;
|
|
62859
62900
|
/**
|
|
@@ -62952,11 +62993,6 @@ export interface components {
|
|
|
62952
62993
|
*/
|
|
62953
62994
|
expiryDate?: string | null;
|
|
62954
62995
|
};
|
|
62955
|
-
/**
|
|
62956
|
-
* MovementTypeEnum
|
|
62957
|
-
* @enum {string}
|
|
62958
|
-
*/
|
|
62959
|
-
MovementTypeEnum: "goodsDelivery" | "goodsReceipt" | "salesReturn" | "purchaseReturn";
|
|
62960
62996
|
/**
|
|
62961
62997
|
* StockStatusEnum
|
|
62962
62998
|
* @enum {string}
|
|
@@ -62978,25 +63014,25 @@ export interface components {
|
|
|
62978
63014
|
/**
|
|
62979
63015
|
* Id
|
|
62980
63016
|
* Format: uuid
|
|
62981
|
-
* @description
|
|
63017
|
+
* @description Source document line id. Use as sourceLineId for salesReturn and purchaseReturn. For goodsDelivery and goodsReceipt, use item, unitOfMeasure, and itemPackage from the line.
|
|
62982
63018
|
*/
|
|
62983
63019
|
id: string;
|
|
62984
63020
|
/**
|
|
62985
63021
|
* Quantity
|
|
62986
|
-
* @description Remaining quantity that can be
|
|
63022
|
+
* @description Remaining quantity that can be moved on this source line.
|
|
62987
63023
|
*/
|
|
62988
63024
|
quantity: number;
|
|
62989
63025
|
/**
|
|
62990
63026
|
* Sourcequantity
|
|
62991
|
-
* @description Original quantity on the source
|
|
63027
|
+
* @description Original quantity on the source document line.
|
|
62992
63028
|
*/
|
|
62993
63029
|
sourceQuantity: number;
|
|
62994
63030
|
/**
|
|
62995
63031
|
* Stockquantity
|
|
62996
|
-
* @description
|
|
63032
|
+
* @description For returns: quantity stocked via goods note. For goods delivery/receipt: quantity already delivered or received.
|
|
62997
63033
|
*/
|
|
62998
63034
|
stockQuantity: number;
|
|
62999
|
-
/** @description Item on the source
|
|
63035
|
+
/** @description Item on the source document line. */
|
|
63000
63036
|
item?: components["schemas"]["ItemSharedSchema"] | null;
|
|
63001
63037
|
/** @description Item package on the source return line. */
|
|
63002
63038
|
itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
|
|
@@ -63028,7 +63064,7 @@ export interface components {
|
|
|
63028
63064
|
party?: components["schemas"]["InventoryMovementSourcePartySchema"] | null;
|
|
63029
63065
|
/**
|
|
63030
63066
|
* Lines
|
|
63031
|
-
* @description Eligible source lines for the selected source document.
|
|
63067
|
+
* @description Eligible source lines for the selected source document (sales/purchase order or invoice, or return invoice/order).
|
|
63032
63068
|
*/
|
|
63033
63069
|
lines: components["schemas"]["InventoryMovementSourceLineSchema"][];
|
|
63034
63070
|
};
|
|
@@ -109079,7 +109115,9 @@ export interface operations {
|
|
|
109079
109115
|
movementTypes?: string | null;
|
|
109080
109116
|
status?: string | null;
|
|
109081
109117
|
warehouse?: string | null;
|
|
109118
|
+
/** @description Filter by customer. Use when movementType or movementTypes includes salesReturn or goodsDelivery. */
|
|
109082
109119
|
customer?: string | null;
|
|
109120
|
+
/** @description Filter by supplier. Use when movementType or movementTypes includes purchaseReturn or goodsReceipt. */
|
|
109083
109121
|
supplier?: string | null;
|
|
109084
109122
|
/** @description By default periodType is set to date filtration in user settings. */
|
|
109085
109123
|
periodType?: components["schemas"]["PeriodType"] | null;
|
|
@@ -112184,7 +112222,7 @@ export interface operations {
|
|
|
112184
112222
|
endDate?: string | null;
|
|
112185
112223
|
sources?: components["schemas"]["SalesReportSourceType"][] | null;
|
|
112186
112224
|
branchesIds?: string[] | null;
|
|
112187
|
-
/** @description Daily,
|
|
112225
|
+
/** @description Bucket size for cashFlowTrend.periods within periodStart–periodEnd (from periodType or startDate/endDate). Daily: one bucket per calendar day. Weekly: ISO-style weeks (Monday start), clipped to the report range. Monthly: calendar months, clipped to the report range. Every bucket is returned; buckets with no activity use zero amounts and zero transaction counts. */
|
|
112188
112226
|
granularity?: "daily" | "weekly" | "monthly";
|
|
112189
112227
|
};
|
|
112190
112228
|
header?: never;
|