@erp-galoper/types 1.0.2054 → 1.0.2056

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 +576 -161
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -15076,6 +15076,8 @@ export interface paths {
15076
15076
  * - includeLiveCost: If True, calculate live costs for all items (slower). Default: False (faster).
15077
15077
  * - includeBarcodes: If True, include barcodes for items. Default: True.
15078
15078
  * - includeItems: If True, include price list items in the response. Default: False (faster). When False, items is [].
15079
+ * - costDifferentFromLiveCost: If True, only return items whose stored cost differs from the
15080
+ * freshly-calculated live cost. Forces live cost calculation regardless of includeLiveCost. Default: False.
15079
15081
  *
15080
15082
  * Permission key: `salespricelist = ['view']`
15081
15083
  */
@@ -19724,7 +19726,7 @@ export interface paths {
19724
19726
  patch?: never;
19725
19727
  trace?: never;
19726
19728
  };
19727
- "/api/v1/inventory/return-documents/": {
19729
+ "/api/v1/inventory/item-movements/": {
19728
19730
  parameters: {
19729
19731
  query?: never;
19730
19732
  header?: never;
@@ -19732,20 +19734,20 @@ export interface paths {
19732
19734
  cookie?: never;
19733
19735
  };
19734
19736
  /**
19735
- * List Return Documents
19737
+ * List Inventory Movements
19736
19738
  * @description List return documents. Explicit filters support quick filtering; `search` handles free text
19737
19739
  * and `apply_filters_to_queryset` supports advanced filter payloads.
19738
19740
  *
19739
19741
  * Permission key: `returndocument = ['view']`
19740
19742
  */
19741
- get: operations["inventory_return_document_views_list_return_documents"];
19743
+ get: operations["inventory_inventory_movement_views_list_inventory_movements"];
19742
19744
  put?: never;
19743
19745
  /**
19744
- * Create Return Document
19746
+ * Create Inventory Movement
19745
19747
  * @description Create a return document (return delivery or return shipment).
19746
19748
  *
19747
19749
  * Responses:
19748
- * - 201: ReturnDocumentSchema
19750
+ * - 201: InventoryMovementSchema
19749
19751
  * - 400: sourceDocumentNotFound, unapprovedSourceDocument, canceledSourceDocument,
19750
19752
  * warehouseDoesNotExist, sourceLineNotFound, quantityExceedsRemaining, invalidStockStatus,
19751
19753
  * serialRequired, batchRequired
@@ -19755,14 +19757,14 @@ export interface paths {
19755
19757
  *
19756
19758
  * Permission key: `returndocument = ['add']`
19757
19759
  */
19758
- post: operations["inventory_return_document_views_create_return_document"];
19760
+ post: operations["inventory_inventory_movement_views_create_inventory_movement"];
19759
19761
  delete?: never;
19760
19762
  options?: never;
19761
19763
  head?: never;
19762
19764
  patch?: never;
19763
19765
  trace?: never;
19764
19766
  };
19765
- "/api/v1/inventory/return-documents/source-lines/": {
19767
+ "/api/v1/inventory/item-movements/source-lines/": {
19766
19768
  parameters: {
19767
19769
  query?: never;
19768
19770
  header?: never;
@@ -19770,13 +19772,13 @@ export interface paths {
19770
19772
  cookie?: never;
19771
19773
  };
19772
19774
  /**
19773
- * Get Return Document Source Lines
19775
+ * Get Inventory Movement Source Lines
19774
19776
  * @description Fetch eligible source lines and party for creating/updating a return document.
19775
19777
  * Use each line `id` as `sourceLineId` in the create/update payload.
19776
19778
  *
19777
19779
  * Permission key: `returndocument = ['view']`
19778
19780
  */
19779
- get: operations["inventory_return_document_views_get_return_document_source_lines"];
19781
+ get: operations["inventory_inventory_movement_views_get_inventory_movement_source_lines"];
19780
19782
  put?: never;
19781
19783
  post?: never;
19782
19784
  delete?: never;
@@ -19785,17 +19787,17 @@ export interface paths {
19785
19787
  patch?: never;
19786
19788
  trace?: never;
19787
19789
  };
19788
- "/api/v1/inventory/return-documents/{id}/": {
19790
+ "/api/v1/inventory/item-movements/{id}/": {
19789
19791
  parameters: {
19790
19792
  query?: never;
19791
19793
  header?: never;
19792
19794
  path?: never;
19793
19795
  cookie?: never;
19794
19796
  };
19795
- /** Get Return Document */
19796
- get: operations["inventory_return_document_views_get_return_document"];
19797
- /** Update Return Document */
19798
- put: operations["inventory_return_document_views_update_return_document"];
19797
+ /** Get Inventory Movement */
19798
+ get: operations["inventory_inventory_movement_views_get_inventory_movement"];
19799
+ /** Update Inventory Movement */
19800
+ put: operations["inventory_inventory_movement_views_update_inventory_movement"];
19799
19801
  post?: never;
19800
19802
  delete?: never;
19801
19803
  options?: never;
@@ -19803,7 +19805,7 @@ export interface paths {
19803
19805
  patch?: never;
19804
19806
  trace?: never;
19805
19807
  };
19806
- "/api/v1/inventory/return-documents/{id}/cancel/": {
19808
+ "/api/v1/inventory/item-movements/{id}/cancel/": {
19807
19809
  parameters: {
19808
19810
  query?: never;
19809
19811
  header?: never;
@@ -19812,15 +19814,15 @@ export interface paths {
19812
19814
  };
19813
19815
  get?: never;
19814
19816
  put?: never;
19815
- /** Cancel Return Document */
19816
- post: operations["inventory_return_document_views_cancel_return_document"];
19817
+ /** Cancel Inventory Movement */
19818
+ post: operations["inventory_inventory_movement_views_cancel_inventory_movement"];
19817
19819
  delete?: never;
19818
19820
  options?: never;
19819
19821
  head?: never;
19820
19822
  patch?: never;
19821
19823
  trace?: never;
19822
19824
  };
19823
- "/api/v1/inventory/return-documents/{id}/delete/": {
19825
+ "/api/v1/inventory/item-movements/{id}/delete/": {
19824
19826
  parameters: {
19825
19827
  query?: never;
19826
19828
  header?: never;
@@ -19829,15 +19831,15 @@ export interface paths {
19829
19831
  };
19830
19832
  get?: never;
19831
19833
  put?: never;
19832
- /** Delete Return Document */
19833
- post: operations["inventory_return_document_views_delete_return_document"];
19834
+ /** Delete Inventory Movement */
19835
+ post: operations["inventory_inventory_movement_views_delete_inventory_movement"];
19834
19836
  delete?: never;
19835
19837
  options?: never;
19836
19838
  head?: never;
19837
19839
  patch?: never;
19838
19840
  trace?: never;
19839
19841
  };
19840
- "/api/v1/inventory/return-documents/{id}/reset-to-draft/": {
19842
+ "/api/v1/inventory/item-movements/{id}/reset-to-draft/": {
19841
19843
  parameters: {
19842
19844
  query?: never;
19843
19845
  header?: never;
@@ -19846,8 +19848,25 @@ export interface paths {
19846
19848
  };
19847
19849
  get?: never;
19848
19850
  put?: never;
19849
- /** Reset Return Document To Draft */
19850
- post: operations["inventory_return_document_views_reset_return_document_to_draft"];
19851
+ /** Reset Inventory Movement To Draft */
19852
+ post: operations["inventory_inventory_movement_views_reset_inventory_movement_to_draft"];
19853
+ delete?: never;
19854
+ options?: never;
19855
+ head?: never;
19856
+ patch?: never;
19857
+ trace?: never;
19858
+ };
19859
+ "/api/v1/inventory/item-movements/{id}/shipment-status/": {
19860
+ parameters: {
19861
+ query?: never;
19862
+ header?: never;
19863
+ path?: never;
19864
+ cookie?: never;
19865
+ };
19866
+ get?: never;
19867
+ /** Update Shipment Status */
19868
+ put: operations["inventory_inventory_movement_views_update_shipment_status"];
19869
+ post?: never;
19851
19870
  delete?: never;
19852
19871
  options?: never;
19853
19872
  head?: never;
@@ -24966,6 +24985,24 @@ export interface components {
24966
24985
  * @default []
24967
24986
  */
24968
24987
  stockadjustment: components["schemas"]["BasePermissionsSchema_Inventory_StockadjustmentEnum"][];
24988
+ /**
24989
+ * Goodsreceiptnote
24990
+ * @description goodsreceiptnote actions
24991
+ * @default []
24992
+ */
24993
+ goodsreceiptnote: components["schemas"]["BasePermissionsSchema_Inventory_GoodsreceiptnoteEnum"][];
24994
+ /**
24995
+ * Purchasereturndocument
24996
+ * @description purchasereturndocument actions
24997
+ * @default []
24998
+ */
24999
+ purchasereturndocument: components["schemas"]["BasePermissionsSchema_Inventory_PurchasereturndocumentEnum"][];
25000
+ /**
25001
+ * Salesreturndocument
25002
+ * @description salesreturndocument actions
25003
+ * @default []
25004
+ */
25005
+ salesreturndocument: components["schemas"]["BasePermissionsSchema_Inventory_SalesreturndocumentEnum"][];
24969
25006
  /**
24970
25007
  * Item
24971
25008
  * @description item actions
@@ -24984,12 +25021,6 @@ export interface components {
24984
25021
  * @default []
24985
25022
  */
24986
25023
  openingquantity: components["schemas"]["BasePermissionsSchema_Inventory_OpeningquantityEnum"][];
24987
- /**
24988
- * Goodsreceiptnote
24989
- * @description goodsreceiptnote actions
24990
- * @default []
24991
- */
24992
- goodsreceiptnote: components["schemas"]["BasePermissionsSchema_Inventory_GoodsreceiptnoteEnum"][];
24993
25024
  /**
24994
25025
  * Returnablepackagereconciliation
24995
25026
  * @description returnablepackagereconciliation actions
@@ -25002,12 +25033,6 @@ export interface components {
25002
25033
  * @default []
25003
25034
  */
25004
25035
  salesreturnpackage: components["schemas"]["BasePermissionsSchema_Inventory_SalesreturnpackageEnum"][];
25005
- /**
25006
- * Returndocument
25007
- * @description returndocument actions
25008
- * @default []
25009
- */
25010
- returndocument: components["schemas"]["BasePermissionsSchema_Inventory_ReturndocumentEnum"][];
25011
25036
  /**
25012
25037
  * Internaltransfer
25013
25038
  * @description internaltransfer actions
@@ -25078,16 +25103,21 @@ export interface components {
25078
25103
  * @enum {string}
25079
25104
  */
25080
25105
  BasePermissionsSchema_Inventory_PackagetypeEnum: "add" | "change" | "delete" | "view";
25106
+ /**
25107
+ * BasePermissionsSchema_Inventory_PurchasereturndocumentEnum
25108
+ * @enum {string}
25109
+ */
25110
+ BasePermissionsSchema_Inventory_PurchasereturndocumentEnum: "add" | "approve" | "cancel" | "change" | "delete" | "export" | "resettodraft" | "view";
25081
25111
  /**
25082
25112
  * BasePermissionsSchema_Inventory_ReturnablepackagereconciliationEnum
25083
25113
  * @enum {string}
25084
25114
  */
25085
25115
  BasePermissionsSchema_Inventory_ReturnablepackagereconciliationEnum: "add" | "approve" | "cancel" | "change" | "delete" | "resettodraft" | "view";
25086
25116
  /**
25087
- * BasePermissionsSchema_Inventory_ReturndocumentEnum
25117
+ * BasePermissionsSchema_Inventory_SalesreturndocumentEnum
25088
25118
  * @enum {string}
25089
25119
  */
25090
- BasePermissionsSchema_Inventory_ReturndocumentEnum: "add" | "approve" | "cancel" | "change" | "delete" | "export" | "resettodraft" | "view";
25120
+ BasePermissionsSchema_Inventory_SalesreturndocumentEnum: "add" | "approve" | "cancel" | "change" | "delete" | "export" | "resettodraft" | "view";
25091
25121
  /**
25092
25122
  * BasePermissionsSchema_Inventory_SalesreturnpackageEnum
25093
25123
  * @enum {string}
@@ -27527,7 +27557,7 @@ export interface components {
27527
27557
  * LogModelName
27528
27558
  * @enum {string}
27529
27559
  */
27530
- LogModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
27560
+ LogModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
27531
27561
  /**
27532
27562
  * SortOrder
27533
27563
  * @enum {string}
@@ -31956,7 +31986,7 @@ export interface components {
31956
31986
  * CombinedModelName
31957
31987
  * @enum {string}
31958
31988
  */
31959
- CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
31989
+ CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
31960
31990
  /** CustomFieldsList */
31961
31991
  CustomFieldsList: {
31962
31992
  info: components["schemas"]["PageInfoSchema"];
@@ -62005,35 +62035,8 @@ export interface components {
62005
62035
  */
62006
62036
  shipmentStatus: components["schemas"]["ShipmentStatusEnum"];
62007
62037
  };
62008
- /**
62009
- * PartyTypeEnum
62010
- * @enum {string}
62011
- */
62012
- PartyTypeEnum: "customer" | "supplier";
62013
- /** ReturnDocumentLineSchema */
62014
- ReturnDocumentLineSchema: {
62015
- /**
62016
- * Id
62017
- * Format: uuid
62018
- */
62019
- id: string;
62020
- /**
62021
- * Sourcelineid
62022
- * Format: uuid
62023
- */
62024
- sourceLineId: string;
62025
- item: components["schemas"]["ItemSharedSchema"];
62026
- itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
62027
- unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"];
62028
- /** Movementqty */
62029
- movementQty: number;
62030
- /** Stockstatus */
62031
- stockStatus?: string | null;
62032
- batch?: components["schemas"]["BatchSerialSummarySchema"] | null;
62033
- serial?: components["schemas"]["BatchSerialSummarySchema"] | null;
62034
- };
62035
- /** ReturnDocumentSchema */
62036
- ReturnDocumentSchema: {
62038
+ /** InventoryMovementSchema */
62039
+ InventoryMovementSchema: {
62037
62040
  /**
62038
62041
  * Datecreated
62039
62042
  * Format: date-time
@@ -62050,21 +62053,40 @@ export interface components {
62050
62053
  id: string;
62051
62054
  /** Serialnumber */
62052
62055
  serialNumber: string;
62053
- /** Documenttype */
62054
- documentType: string;
62055
- /** Sourcedocumenttype */
62056
- sourceDocumentType: string;
62056
+ /**
62057
+ * Movementtype
62058
+ * @description Movement type of the document.
62059
+ */
62060
+ movementType: string;
62061
+ /**
62062
+ * Sourcedocumenttype
62063
+ * @description Linked source document type when applicable.
62064
+ */
62065
+ sourceDocumentType?: string | null;
62057
62066
  /**
62058
62067
  * Sourcedocumentid
62059
- * Format: uuid
62068
+ * @description Linked source document UUID when applicable.
62060
62069
  */
62061
- sourceDocumentId: string;
62062
- partyType: components["schemas"]["PartyTypeEnum"];
62063
- /** @description Populated for salesReturn documents only. */
62070
+ sourceDocumentId?: string | null;
62071
+ /** @description Party type for return movements: customer or supplier. */
62072
+ partyType?: components["schemas"]["PartyTypeEnum"] | null;
62073
+ /** @description Populated for goodsDelivery and salesReturn documents. */
62064
62074
  customer?: components["schemas"]["CustomerSharedSchema"] | null;
62065
- /** @description Populated for purchaseReturn documents only. */
62075
+ /** @description Populated for goodsReceipt and purchaseReturn documents. */
62066
62076
  supplier?: components["schemas"]["ChildSupplierSharedSchema"] | null;
62067
62077
  warehouse: components["schemas"]["WarehouseSummaryInfo"];
62078
+ /** @description Linked sales order for goodsDelivery movements. */
62079
+ salesOrder?: components["schemas"]["DocumentCommonSchema"] | null;
62080
+ /** @description Linked sales invoice for goodsDelivery movements. */
62081
+ salesInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
62082
+ /** @description Linked purchase order for goodsReceipt movements. */
62083
+ purchaseOrder?: components["schemas"]["DocumentCommonSchema"] | null;
62084
+ /** @description Linked purchase invoice for goodsReceipt movements. */
62085
+ purchaseInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
62086
+ /** Referencenumber */
62087
+ referenceNumber?: string | null;
62088
+ /** @description Shipment status for goodsDelivery movements. */
62089
+ shipmentStatus?: components["schemas"]["ShipmentStatusEnum"] | null;
62068
62090
  /**
62069
62091
  * Date
62070
62092
  * Format: date
@@ -62073,79 +62095,309 @@ export interface components {
62073
62095
  /** Status */
62074
62096
  status: string;
62075
62097
  approvalStatus: components["schemas"]["ApprovalValueChoices"];
62076
- /** Description */
62098
+ /**
62099
+ * Description
62100
+ * @description Detailed description of the inventory movement.
62101
+ */
62077
62102
  description?: string | null;
62078
- /** Notes */
62103
+ /**
62104
+ * Notes
62105
+ * @description Additional notes related to the inventory movement.
62106
+ */
62079
62107
  notes?: string | null;
62080
- /** Attachments */
62108
+ /**
62109
+ * Attachments
62110
+ * @description List of attachment file paths linked to the inventory movement.
62111
+ */
62081
62112
  attachments?: string[] | null;
62082
62113
  /**
62083
- * Lines
62114
+ * Items
62115
+ * @description List of inventory movement lines.
62084
62116
  * @default []
62085
62117
  */
62086
- lines: components["schemas"]["ReturnDocumentLineSchema"][];
62118
+ items: components["schemas"]["MovementLineSchema"][];
62087
62119
  };
62088
- /** CreateOrUpdateReturnDocumentSchema */
62089
- CreateOrUpdateReturnDocumentSchema: {
62090
- documentType: components["schemas"]["ReturnDocumentTypeEnum"];
62120
+ /** MovementLineSchema */
62121
+ MovementLineSchema: {
62091
62122
  /**
62092
- * Sourcedocumentid
62123
+ * Id
62093
62124
  * Format: uuid
62094
62125
  */
62095
- sourceDocumentId: string;
62126
+ id: string;
62096
62127
  /**
62097
- * Warehouse
62128
+ * Sourcelineid
62129
+ * @description Source return line ID for salesReturn and purchaseReturn lines.
62130
+ */
62131
+ sourceLineId?: string | null;
62132
+ item?: components["schemas"]["ItemSharedSchema"] | null;
62133
+ itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
62134
+ /** @description The unit of measure selected from the item's options. */
62135
+ unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
62136
+ /**
62137
+ * Movementqty
62138
+ * @description Quantity moved on this line.
62139
+ */
62140
+ movementQty: number;
62141
+ /**
62142
+ * Quantityordered
62143
+ * @description Quantity ordered from the linked sales or purchase document, when applicable.
62144
+ */
62145
+ quantityOrdered?: number | null;
62146
+ /**
62147
+ * Stockstatus
62148
+ * @description Stock status for salesReturn lines: available, disposal, or quarantine.
62149
+ */
62150
+ stockStatus?: string | null;
62151
+ /**
62152
+ * Trackinventoryby
62153
+ * @description Tracking method: serial_number, batch, or quantity.
62154
+ */
62155
+ trackInventoryBy?: string | null;
62156
+ /** @description Batch details for batch-tracked lines. */
62157
+ batch?: components["schemas"]["BatchSerialSummarySchema"] | null;
62158
+ /** @description Serial details for serial-tracked lines. */
62159
+ serial?: components["schemas"]["BatchSerialSummarySchema"] | null;
62160
+ /**
62161
+ * Tracking
62162
+ * @description Tracking details (serial numbers, batches, or quantities).
62163
+ * @default []
62164
+ */
62165
+ tracking: components["schemas"]["MovementLineTrackingSchema"][];
62166
+ };
62167
+ /** MovementLineTrackingSchema */
62168
+ MovementLineTrackingSchema: {
62169
+ /**
62170
+ * Id
62098
62171
  * Format: uuid
62099
62172
  */
62100
- warehouse: string;
62173
+ id: string;
62174
+ /** @description Batch number details. */
62175
+ batch?: components["schemas"]["BatchSerialSummarySchema"] | null;
62176
+ /** @description Serial number details. */
62177
+ serial?: components["schemas"]["BatchSerialSummarySchema"] | null;
62178
+ /**
62179
+ * Quantity
62180
+ * @description Tracking quantity.
62181
+ * @default 1
62182
+ */
62183
+ quantity: number | null;
62184
+ };
62185
+ /**
62186
+ * PartyTypeEnum
62187
+ * @enum {string}
62188
+ */
62189
+ PartyTypeEnum: "customer" | "supplier";
62190
+ /**
62191
+ * CreateOrUpdateInventoryMovementSchema
62192
+ * @description Schema for creating or updating an inventory movement.
62193
+ *
62194
+ * Notes:
62195
+ * - All linked documents are stored on the model as source_document (type + id).
62196
+ * - For goodsDelivery and goodsReceipt, provide sourceDocumentType and sourceDocumentId.
62197
+ * - For salesReturn and purchaseReturn, provide sourceDocumentId only; sourceDocumentType is
62198
+ * derived from inventory settings.
62199
+ */
62200
+ CreateOrUpdateInventoryMovementSchema: {
62201
+ /** @description Movement type: goodsDelivery, goodsReceipt, salesReturn, or purchaseReturn. */
62202
+ movementType: components["schemas"]["MovementTypeEnum"];
62101
62203
  /**
62102
62204
  * Date
62103
62205
  * Format: date
62206
+ * @description Document date.
62104
62207
  */
62105
62208
  date: string;
62209
+ /**
62210
+ * Warehouse
62211
+ * Format: uuid
62212
+ * @description Get warehouses from /api/v1/me/ and filter by the current branch.
62213
+ */
62214
+ warehouse: string;
62106
62215
  /**
62107
62216
  * Status
62217
+ * @description Document status. Defaults to draft.
62108
62218
  * @default draft
62109
62219
  */
62110
62220
  status: string | null;
62111
- /** Description */
62221
+ /**
62222
+ * Password
62223
+ * @description Required when transaction locking is enabled.
62224
+ */
62225
+ password?: string | null;
62226
+ /**
62227
+ * Description
62228
+ * @description Detailed description of the inventory movement.
62229
+ */
62112
62230
  description?: string | null;
62113
- /** Notes */
62231
+ /**
62232
+ * Notes
62233
+ * @description Additional notes related to the inventory movement.
62234
+ */
62114
62235
  notes?: string | null;
62115
- /** Password */
62116
- password?: string | null;
62236
+ /**
62237
+ * Referencenumber
62238
+ * @description Optional external reference number for the inventory movement.
62239
+ */
62240
+ referenceNumber?: string | null;
62117
62241
  /**
62118
62242
  * Attachments
62119
- * @description File paths from the upload endpoint. Document name: returnDocument.
62243
+ * @description List of file attachment paths from the upload endpoint. Document name: inventoryMovement.
62120
62244
  */
62121
62245
  attachments?: string[] | null;
62122
- /** Lines */
62123
- lines: components["schemas"]["ReturnDocumentLineCreateSchema"][];
62246
+ /**
62247
+ * Customer
62248
+ * @description Required for goodsDelivery.
62249
+ * - Child customers only.
62250
+ * - If linked to a sales order or invoice, customer must match the linked document.
62251
+ * - Otherwise filter customers by document_type='goodsDeliveryNote'.
62252
+ */
62253
+ customer?: string | null;
62254
+ /**
62255
+ * Supplier
62256
+ * @description Required for goodsReceipt.
62257
+ * - If linked to a purchase order or invoice, supplier must match the linked document.
62258
+ * - Otherwise filter suppliers by document_type='goodsReceiptNote'.
62259
+ */
62260
+ supplier?: string | null;
62261
+ /**
62262
+ * @description Required for goodsDelivery and goodsReceipt when linking to a source document.
62263
+ * - goodsDelivery: salesOrder or salesInvoice, depending on goods_delivery_note_source.
62264
+ * - goodsReceipt: purchaseOrder or purchaseInvoice, depending on goods_receipt_note_source.
62265
+ * For salesReturn and purchaseReturn this is derived from settings and should be omitted.
62266
+ */
62267
+ sourceDocumentType?: components["schemas"]["SourceDocumentTypeEnum"] | null;
62268
+ /**
62269
+ * Sourcedocumentid
62270
+ * @description UUID of the linked source document. All movement types store this on source_document.
62271
+ * - goodsDelivery: sales order or sales invoice id.
62272
+ * - goodsReceipt: purchase order or purchase invoice id.
62273
+ * - salesReturn / purchaseReturn: return invoice or return order id, depending on settings.
62274
+ * Fetch eligible return lines from GET /api/v1/inventory/inventory-movements/source-lines/.
62275
+ */
62276
+ sourceDocumentId?: string | null;
62277
+ /**
62278
+ * Lines
62279
+ * @description List of inventory movement lines.
62280
+ */
62281
+ lines: components["schemas"]["MovementLineCreateSchema"][];
62124
62282
  };
62125
- /** ReturnDocumentLineCreateSchema */
62126
- ReturnDocumentLineCreateSchema: {
62127
- /** Id */
62283
+ /** MovementLineCreateSchema */
62284
+ MovementLineCreateSchema: {
62285
+ /**
62286
+ * Id
62287
+ * @description ID of the inventory movement line (for update only).
62288
+ */
62128
62289
  id?: string | null;
62129
62290
  /**
62130
62291
  * Sourcelineid
62131
- * Format: uuid
62132
- * @description ID of the source return line. Fetch eligible lines from GET /inventory/return-documents/source-lines/ using sourceDocumentId.
62292
+ * @description Required for salesReturn and purchaseReturn. Fetch eligible lines from GET /api/v1/inventory/inventory-movements/source-lines/ using sourceDocumentType and sourceDocumentId, then use each line id as sourceLineId.
62133
62293
  */
62134
- sourceLineId: string;
62135
- /** Movementqty */
62136
- movementQty: number;
62137
- /** @description Only applicable for salesReturn. Defaults to available when omitted. Must be omitted or null for purchaseReturn. */
62294
+ sourceLineId?: string | null;
62295
+ /**
62296
+ * Item
62297
+ * @description Required for goodsDelivery and goodsReceipt.
62298
+ * - If linked to a sales or purchase document, the item must belong to that document.
62299
+ * - Filter document items to type=product only.
62300
+ * - Service items (type=service) are not allowed.
62301
+ */
62302
+ item?: string | null;
62303
+ /**
62304
+ * Unitofmeasure
62305
+ * @description - When only an item is selected:
62306
+ * - Get options from /api/v1/inventory/items/{item-id}/ field unitOfMeasures.
62307
+ * - Use defaultSalesUnitOfMeasure for goodsDelivery or defaultPurchaseUnitOfMeasure for goodsReceipt.
62308
+ * - When an item package is selected:
62309
+ * - Input should be disabled; use the unit of measure from itemPackage.
62310
+ */
62311
+ unitOfMeasure?: string | null;
62312
+ /**
62313
+ * Itempackage
62314
+ * @description Choose from the selected item's itemPackage options.
62315
+ */
62316
+ itemPackage?: string | null;
62317
+ /**
62318
+ * Movementqty
62319
+ * @description Quantity to move. Required for salesReturn and purchaseReturn.
62320
+ */
62321
+ movementQty?: number | null;
62322
+ /**
62323
+ * Quantity
62324
+ * @description Dispatched quantity for goodsDelivery. Mapped internally to movementQty.
62325
+ */
62326
+ quantity?: number | null;
62327
+ /**
62328
+ * Quantityreceived
62329
+ * @description Received quantity for goodsReceipt. Mapped internally to movementQty.
62330
+ */
62331
+ quantityReceived?: number | null;
62332
+ /**
62333
+ * Quantityordered
62334
+ * @description Visible when the line is linked to a sales or purchase document.
62335
+ * - If the item is not linked to an order or invoice, this field should be omitted.
62336
+ * - If linked, this field should be the quantity ordered from the linked document.
62337
+ */
62338
+ quantityOrdered?: number | null;
62339
+ /** @description Visible for salesReturn only. Defaults to available when omitted. Must be omitted or null for purchaseReturn. */
62138
62340
  stockStatus?: components["schemas"]["StockStatusEnum"] | null;
62139
- /** Batch */
62341
+ /**
62342
+ * Batch
62343
+ * @description Batch ID for return movements when the source line item is tracked by batch.
62344
+ */
62140
62345
  batch?: string | null;
62141
- /** Serial */
62346
+ /**
62347
+ * Serial
62348
+ * @description Serial ID for return movements when the source line item is tracked by serial number.
62349
+ */
62142
62350
  serial?: string | null;
62351
+ /**
62352
+ * Tracking
62353
+ * @description Tracking details for goodsDelivery and goodsReceipt lines. Get tracking rules from the item.
62354
+ */
62355
+ tracking?: components["schemas"]["MovementLineTrackingCreateSchema"][] | null;
62143
62356
  };
62357
+ /** MovementLineTrackingCreateSchema */
62358
+ MovementLineTrackingCreateSchema: {
62359
+ /**
62360
+ * Id
62361
+ * @description ID of the tracking record (for update only).
62362
+ */
62363
+ id?: string | null;
62364
+ /**
62365
+ * Batch
62366
+ * @description Batch ID for tracking (required when the item is tracked by batch).
62367
+ */
62368
+ batch?: string | null;
62369
+ /**
62370
+ * Serial
62371
+ * @description Serial ID for tracking (required when the item is tracked by serial number).
62372
+ */
62373
+ serial?: string | null;
62374
+ /**
62375
+ * Number
62376
+ * @description Serial or batch number based on the item tracking method (goods receipt only).
62377
+ */
62378
+ number?: string | null;
62379
+ /**
62380
+ * Quantity
62381
+ * @description If tracked by serial number, quantity must be 1. If tracked by batch, the sum of all quantities must equal the line quantity. If tracked by quantity, the quantity must equal the line quantity.
62382
+ * @default 1
62383
+ */
62384
+ quantity: number | null;
62385
+ /**
62386
+ * Expirydate
62387
+ * @description Expiry date for this tracking entry when applicable.
62388
+ */
62389
+ expiryDate?: string | null;
62390
+ };
62391
+ /**
62392
+ * MovementTypeEnum
62393
+ * @enum {string}
62394
+ */
62395
+ MovementTypeEnum: "goodsDelivery" | "goodsReceipt" | "salesReturn" | "purchaseReturn";
62144
62396
  /**
62145
- * ReturnDocumentTypeEnum
62397
+ * SourceDocumentTypeEnum
62146
62398
  * @enum {string}
62147
62399
  */
62148
- ReturnDocumentTypeEnum: "salesReturn" | "purchaseReturn";
62400
+ SourceDocumentTypeEnum: "salesOrder" | "salesInvoice" | "purchaseOrder" | "purchaseInvoice" | "returnInvoice" | "returnOrder" | "purchaseReturn" | "purchaseReturnOrder";
62149
62401
  /**
62150
62402
  * StockStatusEnum
62151
62403
  * @enum {string}
@@ -62156,60 +62408,158 @@ export interface components {
62156
62408
  * @enum {string}
62157
62409
  */
62158
62410
  ReturnDocumentSortBy: "dateCreated" | "dateModified" | "serialNumber" | "customerName" | "supplierName" | "date" | "warehouseName" | "partyName";
62159
- /** ReturnDocumentListSchema */
62160
- ReturnDocumentListSchema: {
62411
+ /** InventoryMovementListSchema */
62412
+ InventoryMovementListSchema: {
62161
62413
  info: components["schemas"]["PageInfoSchema"];
62162
62414
  /** Results */
62163
- results: components["schemas"]["ReturnDocumentSchema"][];
62415
+ results: components["schemas"]["InventoryMovementSummarySchema"][];
62164
62416
  };
62165
- /**
62166
- * SourceDocumentTypeEnum
62167
- * @enum {string}
62168
- */
62169
- SourceDocumentTypeEnum: "returnInvoice" | "returnOrder" | "purchaseReturn" | "purchaseReturnOrder";
62170
- /** ReturnDocumentSourceLineSchema */
62171
- ReturnDocumentSourceLineSchema: {
62417
+ /** InventoryMovementSummarySchema */
62418
+ InventoryMovementSummarySchema: {
62419
+ /**
62420
+ * Datecreated
62421
+ * Format: date-time
62422
+ */
62423
+ dateCreated: string;
62424
+ /** Datemodified */
62425
+ dateModified: string | null;
62426
+ createdBy: components["schemas"]["RecordUserSchema"];
62427
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
62172
62428
  /**
62173
62429
  * Id
62174
62430
  * Format: uuid
62175
62431
  */
62176
62432
  id: string;
62177
- /** Quantity */
62433
+ /** Serialnumber */
62434
+ serialNumber: string;
62435
+ /**
62436
+ * Movementtype
62437
+ * @description Movement type of the document.
62438
+ */
62439
+ movementType: string;
62440
+ /**
62441
+ * Sourcedocumenttype
62442
+ * @description Linked source document type when applicable.
62443
+ */
62444
+ sourceDocumentType?: string | null;
62445
+ /**
62446
+ * Sourcedocumentid
62447
+ * @description Linked source document UUID when applicable.
62448
+ */
62449
+ sourceDocumentId?: string | null;
62450
+ /** @description Party type for return movements: customer or supplier. */
62451
+ partyType?: components["schemas"]["PartyTypeEnum"] | null;
62452
+ /** @description Populated for goodsDelivery and salesReturn documents. */
62453
+ customer?: components["schemas"]["CustomerSharedSchema"] | null;
62454
+ /** @description Populated for goodsReceipt and purchaseReturn documents. */
62455
+ supplier?: components["schemas"]["ChildSupplierSharedSchema"] | null;
62456
+ warehouse: components["schemas"]["WarehouseSummaryInfo"];
62457
+ /** @description Linked sales order for goodsDelivery movements. */
62458
+ salesOrder?: components["schemas"]["DocumentCommonSchema"] | null;
62459
+ /** @description Linked sales invoice for goodsDelivery movements. */
62460
+ salesInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
62461
+ /** @description Linked purchase order for goodsReceipt movements. */
62462
+ purchaseOrder?: components["schemas"]["DocumentCommonSchema"] | null;
62463
+ /** @description Linked purchase invoice for goodsReceipt movements. */
62464
+ purchaseInvoice?: components["schemas"]["DocumentCommonSchema"] | null;
62465
+ /** Referencenumber */
62466
+ referenceNumber?: string | null;
62467
+ /** @description Shipment status for goodsDelivery movements. */
62468
+ shipmentStatus?: components["schemas"]["ShipmentStatusEnum"] | null;
62469
+ /**
62470
+ * Date
62471
+ * Format: date
62472
+ */
62473
+ date: string;
62474
+ /** Status */
62475
+ status: string;
62476
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
62477
+ /**
62478
+ * Description
62479
+ * @description Detailed description of the inventory movement.
62480
+ */
62481
+ description?: string | null;
62482
+ /**
62483
+ * Notes
62484
+ * @description Additional notes related to the inventory movement.
62485
+ */
62486
+ notes?: string | null;
62487
+ /**
62488
+ * Attachments
62489
+ * @description List of attachment file paths linked to the inventory movement.
62490
+ */
62491
+ attachments?: string[] | null;
62492
+ };
62493
+ /** InventoryMovementSourceLineSchema */
62494
+ InventoryMovementSourceLineSchema: {
62495
+ /**
62496
+ * Id
62497
+ * Format: uuid
62498
+ * @description Use this value as sourceLineId in the create/update payload.
62499
+ */
62500
+ id: string;
62501
+ /**
62502
+ * Quantity
62503
+ * @description Remaining quantity that can be returned on this source line.
62504
+ */
62178
62505
  quantity: number;
62179
- /** Sourcequantity */
62506
+ /**
62507
+ * Sourcequantity
62508
+ * @description Original quantity on the source return line.
62509
+ */
62180
62510
  sourceQuantity: number;
62181
- /** Stockquantity */
62511
+ /**
62512
+ * Stockquantity
62513
+ * @description Quantity stocked via goods note for this source line.
62514
+ */
62182
62515
  stockQuantity: number;
62516
+ /** @description Item on the source return line. */
62183
62517
  item?: components["schemas"]["ItemSharedSchema"] | null;
62518
+ /** @description Item package on the source return line. */
62184
62519
  itemPackage?: components["schemas"]["ItemPackageSummarySchema"] | null;
62520
+ /** @description Unit of measure on the source return line. */
62185
62521
  unitOfMeasure?: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
62186
62522
  /**
62187
62523
  * Serials
62524
+ * @description Available serial numbers for serial-tracked source lines.
62188
62525
  * @default []
62189
62526
  */
62190
- serials: components["schemas"]["ReturnDocumentSourceLineSerialSchema"][];
62527
+ serials: components["schemas"]["InventoryMovementSourceLineSerialSchema"][];
62191
62528
  };
62192
- /** ReturnDocumentSourceLineSerialSchema */
62193
- ReturnDocumentSourceLineSerialSchema: {
62529
+ /** InventoryMovementSourceLineSerialSchema */
62530
+ InventoryMovementSourceLineSerialSchema: {
62194
62531
  /**
62195
62532
  * Id
62196
62533
  * Format: uuid
62197
62534
  */
62198
62535
  id: string;
62199
- /** Number */
62536
+ /**
62537
+ * Number
62538
+ * @description Serial number available for selection on the source line.
62539
+ */
62200
62540
  number: string;
62201
62541
  };
62202
- /** ReturnDocumentSourceLinesSchema */
62203
- ReturnDocumentSourceLinesSchema: {
62204
- party?: components["schemas"]["ReturnDocumentSourcePartySchema"] | null;
62542
+ /** InventoryMovementSourceLinesSchema */
62543
+ InventoryMovementSourceLinesSchema: {
62544
+ /** @description Party information derived from the selected source document. */
62545
+ party?: components["schemas"]["InventoryMovementSourcePartySchema"] | null;
62205
62546
  /**
62206
62547
  * Lines
62207
- * @default []
62548
+ * @description Eligible source lines for the selected source document.
62208
62549
  */
62209
- lines: components["schemas"]["ReturnDocumentSourceLineSchema"][];
62550
+ lines: components["schemas"]["InventoryMovementSourceLineSchema"][];
62210
62551
  };
62211
- /** ReturnDocumentSourcePartyCustomerSchema */
62212
- ReturnDocumentSourcePartyCustomerSchema: {
62552
+ /** InventoryMovementSourcePartySchema */
62553
+ InventoryMovementSourcePartySchema: {
62554
+ /** @description Party type derived from the source document. */
62555
+ partyType: components["schemas"]["PartyTypeEnum"];
62556
+ /** @description Customer party for sales return source documents. */
62557
+ customer?: components["schemas"]["InventoryMovementSourcePartySummarySchema"] | null;
62558
+ /** @description Supplier party for purchase return source documents. */
62559
+ supplier?: components["schemas"]["InventoryMovementSourcePartySummarySchema"] | null;
62560
+ };
62561
+ /** InventoryMovementSourcePartySummarySchema */
62562
+ InventoryMovementSourcePartySummarySchema: {
62213
62563
  /**
62214
62564
  * Id
62215
62565
  * Format: uuid
@@ -62218,11 +62568,20 @@ export interface components {
62218
62568
  /** Name */
62219
62569
  name: string;
62220
62570
  };
62221
- /** ReturnDocumentSourcePartySchema */
62222
- ReturnDocumentSourcePartySchema: {
62223
- partyType: components["schemas"]["PartyTypeEnum"];
62224
- customer?: components["schemas"]["ReturnDocumentSourcePartyCustomerSchema"] | null;
62225
- supplier?: components["schemas"]["ReturnDocumentSourcePartyCustomerSchema"] | null;
62571
+ /** UpdateShipmentStatusSchema */
62572
+ UpdateShipmentStatusSchema: {
62573
+ /**
62574
+ * Password
62575
+ * @description Required when transaction locking is enabled.
62576
+ */
62577
+ password?: string | null;
62578
+ /**
62579
+ * @description - readyForPickup: The goods are prepared and ready for pickup.
62580
+ * - shipped: The goods have been shipped to the customer.
62581
+ * - delivered: The goods have been delivered to the customer.
62582
+ * - Shipment status can only be delivered when document approval status is approved or not_required.
62583
+ */
62584
+ shipmentStatus: components["schemas"]["ShipmentStatusEnum"];
62226
62585
  };
62227
62586
  /** DefaultSubsidiaryAccountDetailSchema */
62228
62587
  DefaultSubsidiaryAccountDetailSchema: {
@@ -65107,12 +65466,12 @@ export interface components {
65107
65466
  * CombinedModelName
65108
65467
  * @enum {string}
65109
65468
  */
65110
- common__schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
65469
+ common__schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
65111
65470
  /**
65112
65471
  * CombinedModelName
65113
65472
  * @enum {string}
65114
65473
  */
65115
- common__shared_schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "repairOrder" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "onlineOrder" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
65474
+ common__shared_schemas__CombinedModelName: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "repairOrder" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "onlineOrder" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
65116
65475
  /** TasksListSchema */
65117
65476
  TasksListSchema: {
65118
65477
  info: components["schemas"]["PageInfoSchema"];
@@ -73038,7 +73397,7 @@ export interface operations {
73038
73397
  common_views_get_model_names: {
73039
73398
  parameters: {
73040
73399
  query?: {
73041
- CombinedModelNames?: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "repairOrder" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "onlineOrder" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
73400
+ CombinedModelNames?: "item" | "customer" | "supplier" | "internalTransferHeader" | "transferRequest" | "repairOrder" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "posInvoice" | "onlineStoreSetting" | "onlineStorageSettings" | "task" | "event" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration" | "onlineOrder" | "accountStatement" | "generalLedgerReport" | "trialBalance" | "statementOfAccount" | "profitAndLoss" | "bankStatement" | "balanceSheet" | "projectStatement" | "supplierStatement" | "customerStatement" | "topCustomers" | "topSuppliers" | "employeeStatement" | "stockReport" | "salesByItem" | "salesByCategory" | "salesByBrand" | "salesByCustomer" | "salesBySalesPerson" | "salesByWarehouse" | "salesSummary" | "salesTrend";
73042
73401
  };
73043
73402
  header?: never;
73044
73403
  path?: never;
@@ -85048,7 +85407,7 @@ export interface operations {
85048
85407
  };
85049
85408
  header?: never;
85050
85409
  path: {
85051
- modelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
85410
+ modelName: "item" | "customer" | "supplier" | "internalTransfer" | "stockAdjustment" | "openingQuantity" | "supplierPriceList" | "chartOfAccount" | "journalVoucher" | "requisition" | "requestForQuotation" | "advancePayment" | "paymentVoucher" | "purchaseInvoice" | "purchaseOrder" | "purchaseQuotation" | "purchaseReturnOrder" | "purchaseReturnInvoice" | "refundVoucher" | "purchaseCreditNote" | "project" | "warehouse" | "employeePosition" | "employee" | "accountingSetting" | "defaultGeneralAccounts" | "transactionalSubsidiaryAccounts" | "accountClassification" | "taxes" | "appointmentSettings" | "approvalSettings" | "approvalConfig" | "approvalCondition" | "approvalLevel" | "inventorySettings" | "itemVariantSettings" | "posSettings" | "purchaseSettings" | "salesSetting" | "city" | "zone" | "shippingMethod" | "systemSettings" | "transactionLocking" | "userSetting" | "department" | "company" | "branch" | "region" | "currency" | "facility" | "reason" | "emailSetting" | "bank" | "users" | "roles" | "appointment" | "offerAndPromotion" | "salesQuotation" | "salesOrder" | "downPayment" | "receiptVoucher" | "salesCreditNote" | "salesInvoice" | "salesReturnOrder" | "salesReturnInvoice" | "salesRefundVoucher" | "salesPriceList" | "goodsDeliveryNote" | "returnablePackageReconciliation" | "salesReturnPackage" | "package" | "packageType" | "itemPackage" | "goodsReceiptNote" | "returnDocument" | "inventoryMovement" | "transferRequest" | "salesPerson" | "commissionStructure" | "commissionPayout" | "closingCommission" | "task" | "event" | "onlineStoreSetting" | "onlineStorageSettings" | "branchSettings" | "dimension" | "expenseCategory" | "expenseVoucher" | "expensePaymentVoucher" | "whatsAppIntegration";
85052
85411
  };
85053
85412
  cookie?: never;
85054
85413
  };
@@ -98566,6 +98925,7 @@ export interface operations {
98566
98925
  includeLiveCost?: boolean;
98567
98926
  includeBarcodes?: boolean;
98568
98927
  includeItems?: boolean;
98928
+ costDifferentFromLiveCost?: boolean;
98569
98929
  };
98570
98930
  header?: never;
98571
98931
  path: {
@@ -107577,14 +107937,16 @@ export interface operations {
107577
107937
  };
107578
107938
  };
107579
107939
  };
107580
- inventory_return_document_views_list_return_documents: {
107940
+ inventory_inventory_movement_views_list_inventory_movements: {
107581
107941
  parameters: {
107582
107942
  query?: {
107583
107943
  /** @description Page number */
107584
107944
  page?: number;
107585
107945
  /** @description Page size */
107586
107946
  pageSize?: number;
107587
- documentType?: components["schemas"]["ReturnDocumentTypeEnum"] | null;
107947
+ movementType?: components["schemas"]["MovementTypeEnum"] | null;
107948
+ /** @description Comma-separated movement types when listing multiple (e.g. salesReturn,purchaseReturn). */
107949
+ movementTypes?: string | null;
107588
107950
  status?: string | null;
107589
107951
  warehouse?: string | null;
107590
107952
  customer?: string | null;
@@ -107614,7 +107976,7 @@ export interface operations {
107614
107976
  [name: string]: unknown;
107615
107977
  };
107616
107978
  content: {
107617
- "application/json": components["schemas"]["ReturnDocumentListSchema"];
107979
+ "application/json": components["schemas"]["InventoryMovementListSchema"];
107618
107980
  };
107619
107981
  };
107620
107982
  /** @description Bad Request */
@@ -107637,7 +107999,7 @@ export interface operations {
107637
107999
  };
107638
108000
  };
107639
108001
  };
107640
- inventory_return_document_views_create_return_document: {
108002
+ inventory_inventory_movement_views_create_inventory_movement: {
107641
108003
  parameters: {
107642
108004
  query?: never;
107643
108005
  header?: never;
@@ -107646,7 +108008,7 @@ export interface operations {
107646
108008
  };
107647
108009
  requestBody: {
107648
108010
  content: {
107649
- "application/json": components["schemas"]["CreateOrUpdateReturnDocumentSchema"];
108011
+ "application/json": components["schemas"]["CreateOrUpdateInventoryMovementSchema"];
107650
108012
  };
107651
108013
  };
107652
108014
  responses: {
@@ -107656,7 +108018,7 @@ export interface operations {
107656
108018
  [name: string]: unknown;
107657
108019
  };
107658
108020
  content: {
107659
- "application/json": components["schemas"]["ReturnDocumentSchema"];
108021
+ "application/json": components["schemas"]["InventoryMovementSchema"];
107660
108022
  };
107661
108023
  };
107662
108024
  /** @description Bad Request */
@@ -107688,11 +108050,11 @@ export interface operations {
107688
108050
  };
107689
108051
  };
107690
108052
  };
107691
- inventory_return_document_views_get_return_document_source_lines: {
108053
+ inventory_inventory_movement_views_get_inventory_movement_source_lines: {
107692
108054
  parameters: {
107693
108055
  query: {
107694
108056
  /** @description Derived from settings: returnInvoice/returnOrder for sales, purchaseReturn/purchaseReturnOrder for purchase. */
107695
- sourceDocumentType: "returnInvoice" | "returnOrder" | "purchaseReturn" | "purchaseReturnOrder";
108057
+ sourceDocumentType: "salesOrder" | "salesInvoice" | "purchaseOrder" | "purchaseInvoice" | "returnInvoice" | "returnOrder" | "purchaseReturn" | "purchaseReturnOrder";
107696
108058
  sourceDocumentId: string;
107697
108059
  /** @description Pass when editing an existing return document to exclude already processed quantities. */
107698
108060
  returnDocumentId?: string | null;
@@ -107709,7 +108071,7 @@ export interface operations {
107709
108071
  [name: string]: unknown;
107710
108072
  };
107711
108073
  content: {
107712
- "application/json": components["schemas"]["ReturnDocumentSourceLinesSchema"];
108074
+ "application/json": components["schemas"]["InventoryMovementSourceLinesSchema"];
107713
108075
  };
107714
108076
  };
107715
108077
  /** @description Forbidden */
@@ -107732,7 +108094,7 @@ export interface operations {
107732
108094
  };
107733
108095
  };
107734
108096
  };
107735
- inventory_return_document_views_get_return_document: {
108097
+ inventory_inventory_movement_views_get_inventory_movement: {
107736
108098
  parameters: {
107737
108099
  query?: never;
107738
108100
  header?: never;
@@ -107749,7 +108111,7 @@ export interface operations {
107749
108111
  [name: string]: unknown;
107750
108112
  };
107751
108113
  content: {
107752
- "application/json": components["schemas"]["ReturnDocumentSchema"];
108114
+ "application/json": components["schemas"]["InventoryMovementSchema"];
107753
108115
  };
107754
108116
  };
107755
108117
  /** @description Forbidden */
@@ -107772,7 +108134,7 @@ export interface operations {
107772
108134
  };
107773
108135
  };
107774
108136
  };
107775
- inventory_return_document_views_update_return_document: {
108137
+ inventory_inventory_movement_views_update_inventory_movement: {
107776
108138
  parameters: {
107777
108139
  query?: never;
107778
108140
  header?: never;
@@ -107783,7 +108145,7 @@ export interface operations {
107783
108145
  };
107784
108146
  requestBody: {
107785
108147
  content: {
107786
- "application/json": components["schemas"]["CreateOrUpdateReturnDocumentSchema"];
108148
+ "application/json": components["schemas"]["CreateOrUpdateInventoryMovementSchema"];
107787
108149
  };
107788
108150
  };
107789
108151
  responses: {
@@ -107793,7 +108155,7 @@ export interface operations {
107793
108155
  [name: string]: unknown;
107794
108156
  };
107795
108157
  content: {
107796
- "application/json": components["schemas"]["ReturnDocumentSchema"];
108158
+ "application/json": components["schemas"]["InventoryMovementSchema"];
107797
108159
  };
107798
108160
  };
107799
108161
  /** @description Bad Request */
@@ -107825,7 +108187,7 @@ export interface operations {
107825
108187
  };
107826
108188
  };
107827
108189
  };
107828
- inventory_return_document_views_cancel_return_document: {
108190
+ inventory_inventory_movement_views_cancel_inventory_movement: {
107829
108191
  parameters: {
107830
108192
  query?: never;
107831
108193
  header?: never;
@@ -107846,7 +108208,7 @@ export interface operations {
107846
108208
  [name: string]: unknown;
107847
108209
  };
107848
108210
  content: {
107849
- "application/json": components["schemas"]["ReturnDocumentSchema"];
108211
+ "application/json": components["schemas"]["InventoryMovementSchema"];
107850
108212
  };
107851
108213
  };
107852
108214
  /** @description Bad Request */
@@ -107878,7 +108240,7 @@ export interface operations {
107878
108240
  };
107879
108241
  };
107880
108242
  };
107881
- inventory_return_document_views_delete_return_document: {
108243
+ inventory_inventory_movement_views_delete_inventory_movement: {
107882
108244
  parameters: {
107883
108245
  query?: never;
107884
108246
  header?: never;
@@ -107929,7 +108291,7 @@ export interface operations {
107929
108291
  };
107930
108292
  };
107931
108293
  };
107932
- inventory_return_document_views_reset_return_document_to_draft: {
108294
+ inventory_inventory_movement_views_reset_inventory_movement_to_draft: {
107933
108295
  parameters: {
107934
108296
  query?: never;
107935
108297
  header?: never;
@@ -107950,7 +108312,60 @@ export interface operations {
107950
108312
  [name: string]: unknown;
107951
108313
  };
107952
108314
  content: {
107953
- "application/json": components["schemas"]["ReturnDocumentSchema"];
108315
+ "application/json": components["schemas"]["InventoryMovementSchema"];
108316
+ };
108317
+ };
108318
+ /** @description Bad Request */
108319
+ 400: {
108320
+ headers: {
108321
+ [name: string]: unknown;
108322
+ };
108323
+ content: {
108324
+ "application/json": components["schemas"]["ErrorMessages"];
108325
+ };
108326
+ };
108327
+ /** @description Forbidden */
108328
+ 403: {
108329
+ headers: {
108330
+ [name: string]: unknown;
108331
+ };
108332
+ content: {
108333
+ "application/json": components["schemas"]["MessageWithCode"];
108334
+ };
108335
+ };
108336
+ /** @description Not Found */
108337
+ 404: {
108338
+ headers: {
108339
+ [name: string]: unknown;
108340
+ };
108341
+ content: {
108342
+ "application/json": components["schemas"]["MessageWithCode"];
108343
+ };
108344
+ };
108345
+ };
108346
+ };
108347
+ inventory_inventory_movement_views_update_shipment_status: {
108348
+ parameters: {
108349
+ query?: never;
108350
+ header?: never;
108351
+ path: {
108352
+ id: string;
108353
+ };
108354
+ cookie?: never;
108355
+ };
108356
+ requestBody: {
108357
+ content: {
108358
+ "application/json": components["schemas"]["UpdateShipmentStatusSchema"];
108359
+ };
108360
+ };
108361
+ responses: {
108362
+ /** @description OK */
108363
+ 200: {
108364
+ headers: {
108365
+ [name: string]: unknown;
108366
+ };
108367
+ content: {
108368
+ "application/json": components["schemas"]["InventoryMovementSchema"];
107954
108369
  };
107955
108370
  };
107956
108371
  /** @description Bad Request */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.2054",
3
+ "version": "1.0.2056",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": [