@feedmepos/mf-inventory-portal 1.2.0 → 1.2.2-5.dev-1

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 (147) hide show
  1. package/dist/App-DMkUg806.js +297 -0
  2. package/dist/{ApprovalView-Dr-qd_Ai.js → ApprovalView-DWJh2K6W.js} +65 -64
  3. package/dist/{BindingsDialog-Chh00-83.js → BindingsDialog-EmHCvqJI.js} +2 -2
  4. package/dist/{BindingsPicker-DCTGJ8eM.js → BindingsPicker-h_9jm1s0.js} +3 -3
  5. package/dist/{BindingsTable-BsDs5d0V.js → BindingsTable-BAVWGUoa.js} +1 -1
  6. package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
  7. package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
  8. package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
  9. package/dist/{DeliveryOrderPrintPreview-CrH9UVdW.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
  11. package/dist/{FmMultiselectDialog-ypgaHejh.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DJctVhvZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
  13. package/dist/ImportView-lKlYeLay.js +1291 -0
  14. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D59M4Bl1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
  15. package/dist/{IngredientGroupView-Cf9ePE7_.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
  16. package/dist/IngredientsView-1bAsyz-b.js +2254 -0
  17. package/dist/{IntegrationView-DEDn2mc5.js → IntegrationView-D16qeEc_.js} +1773 -1635
  18. package/dist/{InventoryBindingForm-AB8rum4-.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
  19. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BgZt_9h1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
  20. package/dist/{InventoryBindingSummary-CWOG5DIz.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
  21. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CmN30iEZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
  22. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C1cUDp0u.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
  23. package/dist/{PublishView-FHyjjevA.js → PublishView-D0NnU22l.js} +73 -63
  24. package/dist/{PurchaseOrderPrintPreview-BPvvkjkR.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
  25. package/dist/{ReceiveRequestView-CoWU2g0R.js → ReceiveRequestView-j79m7TKk.js} +343 -333
  26. package/dist/RecipeView-D_fNQQ-C.js +636 -0
  27. package/dist/StockView-DX_xeFBT.js +2385 -0
  28. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
  29. package/dist/{SupplierView-CJG2Idbl.js → SupplierView-DuFTqbOg.js} +1193 -1073
  30. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
  31. package/dist/{TransferTemplateView-DZnPt5b5.js → TransferTemplateView-Ccsfcetz.js} +104 -103
  32. package/dist/UnitView-BklpNsFN.js +674 -0
  33. package/dist/WarehouseView-BrURbU67.js +1066 -0
  34. package/dist/api/adjustment-template.d.ts +1 -0
  35. package/dist/api/bill.d.ts +140 -2
  36. package/dist/api/closing-template.d.ts +1 -0
  37. package/dist/api/closing.d.ts +1 -0
  38. package/dist/api/inventory.d.ts +405 -0
  39. package/dist/api/netsuite.d.ts +5 -1
  40. package/dist/api/purchase-order-template.d.ts +1 -0
  41. package/dist/api/purchase-order.d.ts +3 -0
  42. package/dist/api/shipment.d.ts +11 -0
  43. package/dist/api/stock.d.ts +2 -44
  44. package/dist/api/warehouse.d.ts +3 -1
  45. package/dist/{app-B6mXF-3v.js → app-a9r50k3U.js} +68557 -67576
  46. package/dist/app.d.ts +646 -15
  47. package/dist/app.js +6 -6
  48. package/dist/components/FmAdminBadge.vue.d.ts +1 -4
  49. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
  51. package/dist/components/FmLockableField.vue.d.ts +3 -0
  52. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  53. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
  54. package/dist/composable/defineApi.d.ts +1 -1
  55. package/dist/composable/useIframe.d.ts +2 -2
  56. package/dist/{decimal-DErYDfEJ.js → decimal-AusUnA1W.js} +1 -1
  57. package/dist/{format-unit-display-BtjJtmQp.js → format-unit-display-BqkHL-ph.js} +397 -429
  58. package/dist/helper/array.d.ts +1 -0
  59. package/dist/helper/core/country/utils.d.ts +3 -4
  60. package/dist/helper/country.d.ts +6 -255
  61. package/dist/helper/number.d.ts +1 -0
  62. package/dist/import-export.helper-PIyNeHfa.js +238 -0
  63. package/dist/{index-lj4ClRIU.js → index-CjxirPvn.js} +283 -268
  64. package/dist/{index-CvfUsVdt.js → index-Dj9-pdT9.js} +1 -1
  65. package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
  66. package/dist/purchase-order-template-CQikvY1p.js +41 -0
  67. package/dist/router/name.d.ts +2 -0
  68. package/dist/stock-CDZ2uWSF.js +83 -0
  69. package/dist/stock-Dw908dIC.js +74 -0
  70. package/dist/stores/feature.d.ts +12 -0
  71. package/dist/stores/integration/netsuite.d.ts +42 -0
  72. package/dist/stores/inventory.d.ts +28 -199
  73. package/dist/stores/location.d.ts +331 -1
  74. package/dist/stores/supplier.d.ts +96 -0
  75. package/dist/stores/warehouse.d.ts +4 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{supplier-D_2yzArc.js → supplier-BPPBUudN.js} +1 -1
  78. package/dist/tsconfig.app.tsbuildinfo +1 -1
  79. package/dist/{use-ingredient-select-dialog-C9iEMCVA.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
  80. package/dist/{use-inventory-binding-dialog-CavX3SFd.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
  81. package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
  82. package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
  83. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
  84. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  85. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
  86. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
  87. package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
  89. package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
  90. package/dist/views/import/ImportView.vue.d.ts +3 -0
  91. package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
  92. package/dist/views/import/helper/import-export.helper.d.ts +4 -0
  93. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  94. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
  95. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
  96. package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
  97. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  98. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
  99. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
  100. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
  101. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
  102. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
  103. package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
  104. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
  106. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
  107. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
  108. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
  109. package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
  110. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
  111. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
  112. package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
  113. package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
  114. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
  115. package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
  116. package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
  117. package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
  118. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  119. package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
  120. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
  121. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  122. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
  123. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  124. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  125. package/dist/views/unit/UnitView.vue.d.ts +1 -0
  126. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
  127. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
  128. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
  129. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
  130. package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
  131. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
  132. package/package.json +3 -3
  133. package/dist/App-Bs0pR0sL.js +0 -276
  134. package/dist/ClosingDraftView-Dyr4hrHk.js +0 -1687
  135. package/dist/ClosingTemplateView-Dw0Lld6E.js +0 -1908
  136. package/dist/FmAdminBadge-BUJh40aj.js +0 -34
  137. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B-p9ffPK.js +0 -224
  138. package/dist/IngredientsView-61WfWyGy.js +0 -1858
  139. package/dist/RecipeView-CznjQMrS.js +0 -621
  140. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  141. package/dist/StockView-N-84Q5Ih.js +0 -2086
  142. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BmU-VLNN.js +0 -2336
  143. package/dist/UnitView-BrLjAWNq.js +0 -667
  144. package/dist/WarehouseView-CI-RuaPq.js +0 -1034
  145. package/dist/array-Ca8T3f_G.js +0 -44
  146. package/dist/helper/core/country/codes.d.ts +0 -255
  147. package/dist/stock-CIpuon0m.js +0 -146
@@ -1,10 +1,15 @@
1
1
  import { type WithRev } from '@/api/type';
2
+ import type { FdtoBulkSkuRequest, FdtoBulkUnitsRequest, FdtoBulkRecipeRequest } from '@feedmepos/zod-inventory';
2
3
  export declare const useInventoryApi: () => {
3
4
  readInventoryLocations(): Promise<{
4
5
  inventory?: {
5
6
  _id: string;
6
7
  updatedAt: string;
7
8
  } | null | undefined;
9
+ preparationTime?: {
10
+ unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond";
11
+ value: number;
12
+ } | null | undefined;
8
13
  name: string;
9
14
  type: "restaurant" | "warehouse";
10
15
  acceptRequest: boolean;
@@ -92,6 +97,101 @@ export declare const useInventoryApi: () => {
92
97
  };
93
98
  }[]>;
94
99
  readAllInventoryLocations(): Promise<{
100
+ inventory?: {
101
+ _id: string;
102
+ updatedAt: string;
103
+ } | null | undefined;
104
+ preparationTime?: {
105
+ unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond";
106
+ value: number;
107
+ } | null | undefined;
108
+ name: string;
109
+ type: "restaurant" | "warehouse";
110
+ acceptRequest: boolean;
111
+ dbName: string;
112
+ doc: {
113
+ _id: string;
114
+ businessId: string;
115
+ profile: {
116
+ code?: string | null | undefined;
117
+ url?: string | null | undefined;
118
+ description?: string | null | undefined;
119
+ _id?: string | null | undefined;
120
+ legalName?: string | null | undefined;
121
+ sstRegNo?: string | null | undefined;
122
+ discovery?: boolean | null | undefined;
123
+ coverPhoto?: string | null | undefined;
124
+ thumbnailPhoto?: string | null | undefined;
125
+ photos?: string[] | null | undefined;
126
+ operatingHours?: {
127
+ 0: {
128
+ hours: {
129
+ end: string;
130
+ start: string;
131
+ }[];
132
+ enable: boolean;
133
+ };
134
+ 2: {
135
+ hours: {
136
+ end: string;
137
+ start: string;
138
+ }[];
139
+ enable: boolean;
140
+ };
141
+ 1: {
142
+ hours: {
143
+ end: string;
144
+ start: string;
145
+ }[];
146
+ enable: boolean;
147
+ };
148
+ 3: {
149
+ hours: {
150
+ end: string;
151
+ start: string;
152
+ }[];
153
+ enable: boolean;
154
+ };
155
+ 4: {
156
+ hours: {
157
+ end: string;
158
+ start: string;
159
+ }[];
160
+ enable: boolean;
161
+ };
162
+ 5: {
163
+ hours: {
164
+ end: string;
165
+ start: string;
166
+ }[];
167
+ enable: boolean;
168
+ };
169
+ 6: {
170
+ hours: {
171
+ end: string;
172
+ start: string;
173
+ }[];
174
+ enable: boolean;
175
+ };
176
+ } | null | undefined;
177
+ tags?: string[] | null | undefined;
178
+ name: string;
179
+ address: {
180
+ coordinates?: number[] | null | undefined;
181
+ line2?: string | null | undefined;
182
+ state: string;
183
+ country: string;
184
+ line1: string;
185
+ city: string;
186
+ postcode: string;
187
+ };
188
+ email: string;
189
+ phoneNo: string;
190
+ regNo: string;
191
+ };
192
+ };
193
+ }[]>;
194
+ readInventoryLocationsWithInventory(locationIds?: string[]): Promise<{
95
195
  inventory?: {
96
196
  _id: string;
97
197
  updatedAt: string;
@@ -637,6 +737,311 @@ export declare const useInventoryApi: () => {
637
737
  };
638
738
  }[];
639
739
  }>;
740
+ importUnits(units: FdtoBulkUnitsRequest): Promise<{
741
+ inventory: {
742
+ unit?: {
743
+ _id: string;
744
+ name: string;
745
+ abbrev: string;
746
+ precision: number;
747
+ measurements: {
748
+ id: string;
749
+ name: string;
750
+ abbrev: string;
751
+ conversion: {
752
+ amount: number;
753
+ precision: number;
754
+ };
755
+ }[];
756
+ }[] | null | undefined;
757
+ recipe?: {
758
+ customAttributes?: Record<string, any> | null | undefined;
759
+ _id: string;
760
+ name: string;
761
+ contains: {
762
+ measurement?: {
763
+ id: string;
764
+ name: string;
765
+ abbrev: string;
766
+ conversion: {
767
+ amount: number;
768
+ precision: number;
769
+ };
770
+ } | null | undefined;
771
+ id: string;
772
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
773
+ amount: {
774
+ amount: number;
775
+ precision: number;
776
+ };
777
+ }[];
778
+ }[] | null | undefined;
779
+ sku?: {
780
+ isInactive?: boolean | null | undefined;
781
+ trackingMeasurement?: string | null | undefined;
782
+ convert?: {
783
+ measurement?: string | null | undefined;
784
+ inventoryBindings?: {
785
+ measurement?: {
786
+ id: string;
787
+ name: string;
788
+ abbrev: string;
789
+ conversion: {
790
+ amount: number;
791
+ precision: number;
792
+ };
793
+ } | null | undefined;
794
+ id: string;
795
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
796
+ amount: {
797
+ amount: number;
798
+ precision: number;
799
+ };
800
+ }[] | null | undefined;
801
+ } | null | undefined;
802
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
803
+ defaultCost?: {
804
+ measurement?: {
805
+ id: string;
806
+ name: string;
807
+ abbrev: string;
808
+ conversion: {
809
+ amount: number;
810
+ precision: number;
811
+ };
812
+ } | null | undefined;
813
+ costPerUnit: {
814
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
815
+ amount: number;
816
+ precision: number;
817
+ };
818
+ } | null | undefined;
819
+ operationalGroup?: string | null | undefined;
820
+ thresholds?: {
821
+ low: number;
822
+ mid: number;
823
+ } | null | undefined;
824
+ customAttributes?: Record<string, any> | null | undefined;
825
+ _id: string;
826
+ name: string;
827
+ code: string;
828
+ unit: {
829
+ _id: string;
830
+ name: string;
831
+ abbrev: string;
832
+ precision: number;
833
+ measurements: {
834
+ id: string;
835
+ name: string;
836
+ abbrev: string;
837
+ conversion: {
838
+ amount: number;
839
+ precision: number;
840
+ };
841
+ }[];
842
+ };
843
+ }[] | null | undefined;
844
+ skuGroup?: {
845
+ ref?: string | null | undefined;
846
+ defaultSkuRefs?: {
847
+ priority?: number | null | undefined;
848
+ trackingMeasurement?: string | null | undefined;
849
+ default?: boolean | null | undefined;
850
+ _id: string;
851
+ }[] | null | undefined;
852
+ rules?: {
853
+ rule?: any;
854
+ _id: string;
855
+ name: string;
856
+ skuRefs: {
857
+ priority?: number | null | undefined;
858
+ trackingMeasurement?: string | null | undefined;
859
+ default?: boolean | null | undefined;
860
+ _id: string;
861
+ }[];
862
+ }[] | null | undefined;
863
+ _id: string;
864
+ name: string;
865
+ }[] | null | undefined;
866
+ updatedAt?: string | null | undefined;
867
+ _id: string;
868
+ _rev: string;
869
+ };
870
+ errors: {
871
+ error?: any;
872
+ data: {
873
+ _id: string;
874
+ name: string;
875
+ abbrev: string;
876
+ precision: number;
877
+ measurements: {
878
+ id: string;
879
+ name: string;
880
+ abbrev: string;
881
+ conversion: {
882
+ amount: number;
883
+ precision: number;
884
+ };
885
+ }[];
886
+ };
887
+ }[];
888
+ }>;
889
+ importRecipes(recipes: FdtoBulkRecipeRequest): Promise<{
890
+ inventory: {
891
+ unit?: {
892
+ _id: string;
893
+ name: string;
894
+ abbrev: string;
895
+ precision: number;
896
+ measurements: {
897
+ id: string;
898
+ name: string;
899
+ abbrev: string;
900
+ conversion: {
901
+ amount: number;
902
+ precision: number;
903
+ };
904
+ }[];
905
+ }[] | null | undefined;
906
+ recipe?: {
907
+ customAttributes?: Record<string, any> | null | undefined;
908
+ _id: string;
909
+ name: string;
910
+ contains: {
911
+ measurement?: {
912
+ id: string;
913
+ name: string;
914
+ abbrev: string;
915
+ conversion: {
916
+ amount: number;
917
+ precision: number;
918
+ };
919
+ } | null | undefined;
920
+ id: string;
921
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
922
+ amount: {
923
+ amount: number;
924
+ precision: number;
925
+ };
926
+ }[];
927
+ }[] | null | undefined;
928
+ sku?: {
929
+ isInactive?: boolean | null | undefined;
930
+ trackingMeasurement?: string | null | undefined;
931
+ convert?: {
932
+ measurement?: string | null | undefined;
933
+ inventoryBindings?: {
934
+ measurement?: {
935
+ id: string;
936
+ name: string;
937
+ abbrev: string;
938
+ conversion: {
939
+ amount: number;
940
+ precision: number;
941
+ };
942
+ } | null | undefined;
943
+ id: string;
944
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
945
+ amount: {
946
+ amount: number;
947
+ precision: number;
948
+ };
949
+ }[] | null | undefined;
950
+ } | null | undefined;
951
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
952
+ defaultCost?: {
953
+ measurement?: {
954
+ id: string;
955
+ name: string;
956
+ abbrev: string;
957
+ conversion: {
958
+ amount: number;
959
+ precision: number;
960
+ };
961
+ } | null | undefined;
962
+ costPerUnit: {
963
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
964
+ amount: number;
965
+ precision: number;
966
+ };
967
+ } | null | undefined;
968
+ operationalGroup?: string | null | undefined;
969
+ thresholds?: {
970
+ low: number;
971
+ mid: number;
972
+ } | null | undefined;
973
+ customAttributes?: Record<string, any> | null | undefined;
974
+ _id: string;
975
+ name: string;
976
+ code: string;
977
+ unit: {
978
+ _id: string;
979
+ name: string;
980
+ abbrev: string;
981
+ precision: number;
982
+ measurements: {
983
+ id: string;
984
+ name: string;
985
+ abbrev: string;
986
+ conversion: {
987
+ amount: number;
988
+ precision: number;
989
+ };
990
+ }[];
991
+ };
992
+ }[] | null | undefined;
993
+ skuGroup?: {
994
+ ref?: string | null | undefined;
995
+ defaultSkuRefs?: {
996
+ priority?: number | null | undefined;
997
+ trackingMeasurement?: string | null | undefined;
998
+ default?: boolean | null | undefined;
999
+ _id: string;
1000
+ }[] | null | undefined;
1001
+ rules?: {
1002
+ rule?: any;
1003
+ _id: string;
1004
+ name: string;
1005
+ skuRefs: {
1006
+ priority?: number | null | undefined;
1007
+ trackingMeasurement?: string | null | undefined;
1008
+ default?: boolean | null | undefined;
1009
+ _id: string;
1010
+ }[];
1011
+ }[] | null | undefined;
1012
+ _id: string;
1013
+ name: string;
1014
+ }[] | null | undefined;
1015
+ updatedAt?: string | null | undefined;
1016
+ _id: string;
1017
+ _rev: string;
1018
+ };
1019
+ errors: {
1020
+ error?: any;
1021
+ data: {
1022
+ customAttributes?: Record<string, any> | null | undefined;
1023
+ _id: string;
1024
+ name: string;
1025
+ contains: {
1026
+ measurement?: {
1027
+ id: string;
1028
+ name: string;
1029
+ abbrev: string;
1030
+ conversion: {
1031
+ amount: number;
1032
+ precision: number;
1033
+ };
1034
+ } | null | undefined;
1035
+ id: string;
1036
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1037
+ amount: {
1038
+ amount: number;
1039
+ precision: number;
1040
+ };
1041
+ }[];
1042
+ };
1043
+ }[];
1044
+ }>;
640
1045
  publishInventory(locationId: string): Promise<String[]>;
641
1046
  publishAllInventory(): Promise<String[]>;
642
1047
  urls: {
@@ -1,6 +1,7 @@
1
1
  import { FdtoNetSuiteInventoryTransferRecord } from '@feedmepos/netsuite-core';
2
2
  export declare const useNetSuiteApi: () => {
3
3
  readSetting(): Promise<{
4
+ subsidiaryId?: string | null | undefined;
4
5
  accessToken?: string | null | undefined;
5
6
  syncedAt?: string | null | undefined;
6
7
  restlet?: {
@@ -79,6 +80,7 @@ export declare const useNetSuiteApi: () => {
79
80
  netsuiteId: string;
80
81
  name: string;
81
82
  }>): Promise<{
83
+ subsidiaryId?: string | null | undefined;
82
84
  accessToken?: string | null | undefined;
83
85
  syncedAt?: string | null | undefined;
84
86
  restlet?: {
@@ -157,6 +159,7 @@ export declare const useNetSuiteApi: () => {
157
159
  getNetSuiteLocation(): Promise<any>;
158
160
  manualSyncInventoryTransfer(locationId: string): Promise<any>;
159
161
  syncPurchaseOrder(locationId: string, poId: string): Promise<{
162
+ subsidiaryId?: string | null | undefined;
160
163
  accessToken?: string | null | undefined;
161
164
  syncedAt?: string | null | undefined;
162
165
  restlet?: {
@@ -421,10 +424,11 @@ export declare const useNetSuiteApi: () => {
421
424
  _id: string;
422
425
  }>;
423
426
  getInventoryTransferHistory(locationId: string, startDate?: Date, endDate?: Date): Promise<FdtoNetSuiteInventoryTransferRecord[]>;
424
- getLogs(query: string): Promise<{
427
+ getSyncLogs(query: string): Promise<{
425
428
  url: string;
426
429
  }>;
427
430
  getMoreInfo(locationId: string, poId: string): Promise<FdtoNetSuiteOrderDetails>;
431
+ getChangeLogs(netsuiteId: string): Promise<NSOrderChangeLogDto[]>;
428
432
  getUnSyncTransferInOrders(locationId: string): Promise<string[]>;
429
433
  manualSyncMultipleTransferInOrders(netsuiteIds: string[]): Promise<void>;
430
434
  getUnSyncPurchaseOrders(locationId: string): Promise<string[]>;
@@ -1,6 +1,7 @@
1
1
  import type { RevisionIdMeta } from '@feedmepos/inventory-core';
2
2
  export declare const usePurchaseOrderTemplateApi: () => {
3
3
  getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
4
+ getTemplateBySupplierId(supplierId: string): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
4
5
  readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
5
6
  createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
6
7
  updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
@@ -21,5 +21,8 @@ export declare const usePurchaseOrderApi: () => {
21
21
  importFromXilnex(payload: FdtoXilnexTransferNote): Promise<void>;
22
22
  processPurchaseOrderV2(dto: FdtoPurchaseOrderOperateV2Request, db?: string): Promise<WithRev<FdoPurchaseOrder>>;
23
23
  getWorkflowConfig(): Promise<FdoOrderWorkflowConfig>;
24
+ updateDeliveryOrder(payload: FdtoDeliveryOrderUpdateRequest): Promise<void>;
25
+ createDeliveryOrder(payload: FdtoDeliveryOrderCreateRequest): Promise<void>;
26
+ getDeliveryOrderTrails(purchaseOrderId: string, deliveryOrderId: string): Promise<any>;
24
27
  };
25
28
  export declare const purchaseOrderApi: {};
@@ -0,0 +1,11 @@
1
+ export type WithToInventoryLocation = {
2
+ toInventoryLocation: FdoInventoryLocation;
3
+ };
4
+ export declare const useShipmentApi: () => {
5
+ getShipments({ start, end }: {
6
+ start: string;
7
+ end: string;
8
+ }): Promise<FdoInventoryShipment[]>;
9
+ getShipmentsByIds(shipmentIds: string[]): Promise<FdoInventoryShipment[]>;
10
+ };
11
+ export declare const shipmentApi: {};
@@ -16,50 +16,8 @@ export declare const useStockApi: () => {
16
16
  }>;
17
17
  startRecalculateTask(): Promise<any>;
18
18
  refreshCurrentBalances(): Promise<any>;
19
- calculateStockSnapshotAtDate(effectiveAt: string, closingDraftId: string): Promise<{
20
- closing?: {
21
- costBalances?: {
22
- adjustmentId?: string | null | undefined;
23
- amount: {
24
- amount: number;
25
- precision: number;
26
- };
27
- cost: {
28
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
29
- amount: number;
30
- precision: number;
31
- };
32
- }[] | null | undefined;
33
- balance: {
34
- amount: number;
35
- precision: number;
36
- };
37
- id: string;
38
- createdAt: string;
39
- } | null | undefined;
40
- costs?: {
41
- adjustmentId?: string | null | undefined;
42
- amount: {
43
- amount: number;
44
- precision: number;
45
- };
46
- cost: {
47
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
48
- amount: number;
49
- precision: number;
50
- };
51
- }[] | null | undefined;
52
- weightedAverage?: {
53
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
54
- amount: number;
55
- precision: number;
56
- } | null | undefined;
57
- balance: {
58
- amount: number;
59
- precision: number;
60
- };
61
- id: string;
62
- }[]>;
63
19
  scheduleCalculateStockSnapshotAtDate(effectiveAt: string, closingDraftId: string): Promise<boolean>;
20
+ recalculationRequests(): Promise<FdoInventoryRecalculationRequest[]>;
21
+ scheduleRecalculation(openingId: string, untilDate: string): Promise<any>;
64
22
  };
65
23
  };
@@ -2,6 +2,8 @@ import type { WithRev, CreateType } from '@/api/type';
2
2
  export declare const useWarehouseApi: () => {
3
3
  readWarehouses(): Promise<WithRev<FdoWarehouse>[]>;
4
4
  createWarehouse(warehouse: CreateType<FdoWarehouse>): Promise<WithRev<FdoWarehouse>>;
5
- updateWarehouse(id: string, profile: FdoWarehouseProfile): Promise<WithRev<FdoWarehouse>>;
5
+ updateWarehouse(id: string, profile: FdoWarehouseProfile & {
6
+ preparationTime?: FdoInventoryDuration | null;
7
+ }): Promise<WithRev<FdoWarehouse>>;
6
8
  deleteWarehouse(id: string): Promise<WithRev<boolean>>;
7
9
  };