@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-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 (163) hide show
  1. package/dist/App-Y3Ez8Rjf.js +255 -0
  2. package/dist/ApprovalView-BUU1G4Q2.js +141 -0
  3. package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
  4. package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
  5. package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
  6. package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
  10. package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
  11. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
  12. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
  13. package/dist/IngredientGroupView-C3maHTCg.js +610 -0
  14. package/dist/IngredientsView-DCR3IBkR.js +1613 -0
  15. package/dist/IntegrationView-gO4h89Wj.js +1227 -0
  16. package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
  17. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
  18. package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
  20. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
  21. package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
  22. package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
  23. package/dist/RecipeView-C4-a4IEW.js +597 -0
  24. package/dist/Standalone.vue.d.ts +2 -0
  25. package/dist/StockView-Du2txrIP.js +7778 -0
  26. package/dist/SupplierView-D_09FbQh.js +1474 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
  28. package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
  29. package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
  30. package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +86 -240
  33. package/dist/api/closing-template.d.ts +6 -4
  34. package/dist/api/inventory.d.ts +281 -88
  35. package/dist/api/netsuite.d.ts +32 -1
  36. package/dist/api/purchase-order-template.d.ts +4 -2
  37. package/dist/api/supplier.d.ts +1 -0
  38. package/dist/app-GUbzqEtW.js +33456 -0
  39. package/dist/app.d.ts +259 -6
  40. package/dist/app.js +8 -7
  41. package/dist/array-hChJVZLE.js +43 -0
  42. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  43. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  44. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  45. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  46. package/dist/components/FmUnitInputRules.d.ts +2 -0
  47. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  48. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  51. package/dist/date2-CLE9fB2R.js +117 -0
  52. package/dist/dayjs.min-CY1d38w7.js +282 -0
  53. package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
  54. package/dist/defineDeepModel-l40rX7kr.js +13 -0
  55. package/dist/extensions/array.d.ts +1 -0
  56. package/dist/feature-BXruKUhX.js +78 -0
  57. package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
  58. package/dist/format-unit-display-DEKg8cJm.js +1198 -0
  59. package/dist/fuzzy-CVOV9zJc.js +41 -0
  60. package/dist/googlemap-Dm8ERVai.js +97 -0
  61. package/dist/helper/rules.d.ts +7 -0
  62. package/dist/helper/rules.spec.d.ts +1 -0
  63. package/dist/helper/xlsx.util.d.ts +7 -0
  64. package/dist/index-BX5KZXhI.js +22279 -0
  65. package/dist/index-CVsyOEb1.js +10545 -0
  66. package/dist/index-m9e9nYfl.js +45 -0
  67. package/dist/netsuite-DAKRv7zr.js +146 -0
  68. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  69. package/dist/router/name.d.ts +1 -0
  70. package/dist/rules-DlnN8IP3.js +198 -0
  71. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  72. package/dist/stores/integration/index.d.ts +7 -0
  73. package/dist/stores/integration/netsuite.d.ts +102 -0
  74. package/dist/stores/inventory.d.ts +295 -9
  75. package/dist/stores/location.d.ts +508 -485
  76. package/dist/stores/supplier.d.ts +124 -4
  77. package/dist/stores/warehouse.d.ts +7 -4
  78. package/dist/style.css +1 -1
  79. package/dist/supplier-B21WlSAM.js +77 -0
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
  82. package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
  83. package/dist/useTabStorage-BkIVScW_.js +25 -0
  84. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  85. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  86. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  87. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
  89. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
  90. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  91. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  92. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  93. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  94. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  95. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  96. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  97. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  98. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  99. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  100. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  101. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  102. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  103. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  104. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  105. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  106. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  107. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  108. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  109. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
  110. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  111. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  112. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  113. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
  114. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
  115. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  116. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  117. package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
  118. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
  119. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  120. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  121. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  122. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  123. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  124. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  125. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  126. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  127. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  128. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
  129. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
  130. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  131. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  132. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  133. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  134. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
  135. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
  136. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  137. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
  138. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  139. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  140. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
  141. package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
  142. package/dist/xlsx.util-BLftcF4q.js +78 -0
  143. package/package.json +7 -4
  144. package/dist/ApprovalView-BPsScR5_.js +0 -129
  145. package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
  146. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
  147. package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
  148. package/dist/IntegrationView-CjGLRM78.js +0 -1141
  149. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
  150. package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
  151. package/dist/RecipeView-sB0Lgmob.js +0 -581
  152. package/dist/StockView-CY2kNohB.js +0 -1892
  153. package/dist/SupplierView-DTqeZPts.js +0 -827
  154. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
  155. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
  156. package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
  157. package/dist/app-BuyAj4kw.js +0 -69068
  158. package/dist/defineDeepModel-DuVmbMwq.js +0 -13
  159. package/dist/id-to-date-CI5Vv0Ji.js +0 -30
  160. package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
  161. package/dist/stores/netsuite.d.ts +0 -49
  162. package/dist/supplier-BQyK2eSZ.js +0 -69
  163. package/dist/xlsx.util-CZ7zYxdP.js +0 -109
@@ -1,3 +1,4 @@
1
+ import type { RevisionIdMeta } from '@feedmepos/inventory-core';
1
2
  export interface RecentPublish {
2
3
  recentJob?: PublishingJob | null;
3
4
  publishedRevs?: FdoClosingTemplatePublish['publishedRev'] | null;
@@ -13,9 +14,10 @@ export interface PublishingJob {
13
14
  export declare const useClosingTemplateApi: () => {
14
15
  getRecentPublishingJob(): Promise<RecentPublish>;
15
16
  startNewPublish(): Promise<PublishingJob>;
16
- getTemplate(id: string): Promise<FdoClosingTemplate>;
17
- readTemplates(): Promise<FdoClosingTemplate[]>;
17
+ getTemplate(id: string): Promise<FdoClosingTemplate & RevisionIdMeta>;
18
+ readTemplates(): Promise<(FdoClosingTemplate & RevisionIdMeta)[]>;
18
19
  createTemplate(template: Omit<FdoClosingTemplate, '_id'>): Promise<FdoClosingTemplate>;
19
- updateTemplate(template: FdoClosingTemplate): Promise<FdoClosingTemplate>;
20
- deleteTemplate(template: FdoClosingTemplate): Promise<any>;
20
+ updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<FdoClosingTemplate>;
21
+ deleteTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<any>;
22
+ importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit<FdoClosingTemplate, '_id'>>): Promise<any>;
21
23
  };
@@ -1,91 +1,18 @@
1
1
  import { type WithRev } from '@/api/type';
2
2
  export declare const useInventoryApi: () => {
3
- readInventoryLocations(): Promise<({
4
- doc?: any;
5
- type: "restaurant";
6
- name: string;
7
- acceptRequest: boolean;
8
- dbName: string;
9
- } | {
10
- type: "warehouse";
3
+ readInventoryLocations(): Promise<{
4
+ type: "restaurant" | "warehouse";
11
5
  name: string;
12
6
  acceptRequest: boolean;
13
7
  dbName: string;
14
8
  doc: {
15
- pf_business?: {
16
- internal?: boolean | null | undefined;
17
- url?: string | null | undefined;
18
- expiredAt?: string | null | undefined;
19
- agentId?: string | null | undefined;
20
- attributeSettings?: {
21
- type: "string" | "number" | "boolean" | "date";
22
- key: string;
23
- entity: "restaurant" | "item";
24
- }[] | null | undefined;
25
- pf_agent?: {
26
- clickupId?: string | null | undefined;
27
- members?: {
28
- pf_user?: {
29
- email?: string | null | undefined;
30
- phoneNumber?: string | null | undefined;
31
- birthday?: string | null | undefined;
32
- gender?: "MALE" | "FEMALE" | null | undefined;
33
- addresses?: {
34
- name: string;
35
- address: string;
36
- coordinates: number[];
37
- }[] | null | undefined;
38
- photoURL?: string | null | undefined;
39
- displayName?: string | null | undefined;
40
- imported?: {
41
- raw: Record<string, any>;
42
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
43
- } | null | undefined;
44
- _id: string;
45
- } | null | undefined;
46
- role: "ADMIN";
47
- userId: string;
48
- }[] | null | undefined;
49
- code: string;
50
- name: string;
51
- _id: string;
52
- isReseller: boolean;
53
- } | null | undefined;
54
- thumbnail?: string | null | undefined;
55
- billingInfos?: {
56
- _id?: string | null | undefined;
57
- name: string;
58
- address: {
59
- coordinates?: number[] | null | undefined;
60
- line2?: string | null | undefined;
61
- state: string;
62
- country: string;
63
- line1: string;
64
- city: string;
65
- postcode: string;
66
- };
67
- email: string;
68
- companyName: string;
69
- contact: string;
70
- }[] | null | undefined;
71
- customerDisplayImages?: {
72
- url: string;
73
- restaurantIds: string[];
74
- }[] | null | undefined;
75
- name: string;
76
- _id: string;
77
- ownerId: string;
78
- restaurantQuota: number;
79
- warehouseQuota: number;
80
- menuVersion: string;
81
- } | null | undefined;
82
9
  _id: string;
83
10
  businessId: string;
84
11
  profile: {
85
- email?: string | null | undefined;
86
- phoneNo?: string | null | undefined;
87
- name: string;
88
- address: {
12
+ code?: string | null | undefined;
13
+ _id?: string | null | undefined;
14
+ name?: string | undefined;
15
+ address?: {
89
16
  coordinates?: number[] | null | undefined;
90
17
  line2?: string | null | undefined;
91
18
  state: string;
@@ -93,11 +20,73 @@ export declare const useInventoryApi: () => {
93
20
  line1: string;
94
21
  city: string;
95
22
  postcode: string;
96
- };
97
- regNo: string;
23
+ } | undefined;
24
+ email?: string | undefined;
25
+ regNo?: string | undefined;
26
+ sstRegNo?: string | null | undefined;
27
+ phoneNo?: string | undefined;
28
+ legalName?: string | null | undefined;
29
+ discovery?: boolean | null | undefined;
30
+ coverPhoto?: string | null | undefined;
31
+ thumbnailPhoto?: string | null | undefined;
32
+ description?: string | null | undefined;
33
+ photos?: string[] | null | undefined;
34
+ operatingHours?: {
35
+ 0: {
36
+ hours: {
37
+ end: string;
38
+ start: string;
39
+ }[];
40
+ enable: boolean;
41
+ };
42
+ 2: {
43
+ hours: {
44
+ end: string;
45
+ start: string;
46
+ }[];
47
+ enable: boolean;
48
+ };
49
+ 1: {
50
+ hours: {
51
+ end: string;
52
+ start: string;
53
+ }[];
54
+ enable: boolean;
55
+ };
56
+ 3: {
57
+ hours: {
58
+ end: string;
59
+ start: string;
60
+ }[];
61
+ enable: boolean;
62
+ };
63
+ 4: {
64
+ hours: {
65
+ end: string;
66
+ start: string;
67
+ }[];
68
+ enable: boolean;
69
+ };
70
+ 5: {
71
+ hours: {
72
+ end: string;
73
+ start: string;
74
+ }[];
75
+ enable: boolean;
76
+ };
77
+ 6: {
78
+ hours: {
79
+ end: string;
80
+ start: string;
81
+ }[];
82
+ enable: boolean;
83
+ };
84
+ } | null | undefined;
85
+ tags?: string[] | null | undefined;
86
+ url?: string | null | undefined;
98
87
  };
99
88
  };
100
- })[]>;
89
+ }[]>;
101
90
  readInventory(): Promise<WithRev<{
102
91
  unit?: {
103
92
  _id: string;
@@ -128,7 +117,7 @@ export declare const useInventoryApi: () => {
128
117
  precision: number;
129
118
  };
130
119
  } | null | undefined;
131
- type: "RECIPE" | "SKU";
120
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
132
121
  amount: {
133
122
  amount: number;
134
123
  precision: number;
@@ -190,7 +179,7 @@ export declare const useInventoryApi: () => {
190
179
  precision: number;
191
180
  };
192
181
  } | null | undefined;
193
- type: "RECIPE" | "SKU";
182
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
194
183
  amount: {
195
184
  amount: number;
196
185
  precision: number;
@@ -198,6 +187,74 @@ export declare const useInventoryApi: () => {
198
187
  id: string;
199
188
  }[];
200
189
  }[] | null | undefined;
190
+ skuGroup?: {
191
+ ref?: string | null | undefined;
192
+ unit: {
193
+ _id: string;
194
+ name: string;
195
+ abbrev: string;
196
+ precision: number;
197
+ measurements: {
198
+ id: string;
199
+ name: string;
200
+ abbrev: string;
201
+ conversion: {
202
+ amount: number;
203
+ precision: number;
204
+ };
205
+ }[];
206
+ };
207
+ _id: string;
208
+ name: string;
209
+ skus: {
210
+ trackingMeasurement?: string | null | undefined;
211
+ convert?: {
212
+ measurement?: string | null | undefined;
213
+ inventoryBindings?: {
214
+ measurement?: {
215
+ id: string;
216
+ name: string;
217
+ abbrev: string;
218
+ conversion: {
219
+ amount: number;
220
+ precision: number;
221
+ };
222
+ } | null | undefined;
223
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
224
+ amount: {
225
+ amount: number;
226
+ precision: number;
227
+ };
228
+ id: string;
229
+ }[] | null | undefined;
230
+ } | null | undefined;
231
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
232
+ defaultCost?: {
233
+ measurement?: {
234
+ id: string;
235
+ name: string;
236
+ abbrev: string;
237
+ conversion: {
238
+ amount: number;
239
+ precision: number;
240
+ };
241
+ } | null | undefined;
242
+ costPerUnit: {
243
+ 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";
244
+ amount: number;
245
+ precision: number;
246
+ };
247
+ } | null | undefined;
248
+ thresholds?: {
249
+ low: number;
250
+ mid: number;
251
+ } | null | undefined;
252
+ operationalGroup?: string | null | undefined;
253
+ code: string;
254
+ _id: string;
255
+ name: string;
256
+ }[];
257
+ }[] | null | undefined;
201
258
  updatedAt?: string | null | undefined;
202
259
  _id: string;
203
260
  }>>;
@@ -231,7 +288,7 @@ export declare const useInventoryApi: () => {
231
288
  precision: number;
232
289
  };
233
290
  } | null | undefined;
234
- type: "RECIPE" | "SKU";
291
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
235
292
  amount: {
236
293
  amount: number;
237
294
  precision: number;
@@ -293,7 +350,7 @@ export declare const useInventoryApi: () => {
293
350
  precision: number;
294
351
  };
295
352
  } | null | undefined;
296
- type: "RECIPE" | "SKU";
353
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
297
354
  amount: {
298
355
  amount: number;
299
356
  precision: number;
@@ -301,6 +358,74 @@ export declare const useInventoryApi: () => {
301
358
  id: string;
302
359
  }[];
303
360
  }[] | null | undefined;
361
+ skuGroup?: {
362
+ ref?: string | null | undefined;
363
+ unit: {
364
+ _id: string;
365
+ name: string;
366
+ abbrev: string;
367
+ precision: number;
368
+ measurements: {
369
+ id: string;
370
+ name: string;
371
+ abbrev: string;
372
+ conversion: {
373
+ amount: number;
374
+ precision: number;
375
+ };
376
+ }[];
377
+ };
378
+ _id: string;
379
+ name: string;
380
+ skus: {
381
+ trackingMeasurement?: string | null | undefined;
382
+ convert?: {
383
+ measurement?: string | null | undefined;
384
+ inventoryBindings?: {
385
+ measurement?: {
386
+ id: string;
387
+ name: string;
388
+ abbrev: string;
389
+ conversion: {
390
+ amount: number;
391
+ precision: number;
392
+ };
393
+ } | null | undefined;
394
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
395
+ amount: {
396
+ amount: number;
397
+ precision: number;
398
+ };
399
+ id: string;
400
+ }[] | null | undefined;
401
+ } | null | undefined;
402
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
403
+ defaultCost?: {
404
+ measurement?: {
405
+ id: string;
406
+ name: string;
407
+ abbrev: string;
408
+ conversion: {
409
+ amount: number;
410
+ precision: number;
411
+ };
412
+ } | null | undefined;
413
+ costPerUnit: {
414
+ 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";
415
+ amount: number;
416
+ precision: number;
417
+ };
418
+ } | null | undefined;
419
+ thresholds?: {
420
+ low: number;
421
+ mid: number;
422
+ } | null | undefined;
423
+ operationalGroup?: string | null | undefined;
424
+ code: string;
425
+ _id: string;
426
+ name: string;
427
+ }[];
428
+ }[] | null | undefined;
304
429
  updatedAt?: string | null | undefined;
305
430
  _id: string;
306
431
  }>>;
@@ -334,7 +459,7 @@ export declare const useInventoryApi: () => {
334
459
  precision: number;
335
460
  };
336
461
  } | null | undefined;
337
- type: "RECIPE" | "SKU";
462
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
338
463
  amount: {
339
464
  amount: number;
340
465
  precision: number;
@@ -396,7 +521,7 @@ export declare const useInventoryApi: () => {
396
521
  precision: number;
397
522
  };
398
523
  } | null | undefined;
399
- type: "RECIPE" | "SKU";
524
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
400
525
  amount: {
401
526
  amount: number;
402
527
  precision: number;
@@ -404,6 +529,74 @@ export declare const useInventoryApi: () => {
404
529
  id: string;
405
530
  }[];
406
531
  }[] | null | undefined;
532
+ skuGroup?: {
533
+ ref?: string | null | undefined;
534
+ unit: {
535
+ _id: string;
536
+ name: string;
537
+ abbrev: string;
538
+ precision: number;
539
+ measurements: {
540
+ id: string;
541
+ name: string;
542
+ abbrev: string;
543
+ conversion: {
544
+ amount: number;
545
+ precision: number;
546
+ };
547
+ }[];
548
+ };
549
+ _id: string;
550
+ name: string;
551
+ skus: {
552
+ trackingMeasurement?: string | null | undefined;
553
+ convert?: {
554
+ measurement?: string | null | undefined;
555
+ inventoryBindings?: {
556
+ measurement?: {
557
+ id: string;
558
+ name: string;
559
+ abbrev: string;
560
+ conversion: {
561
+ amount: number;
562
+ precision: number;
563
+ };
564
+ } | null | undefined;
565
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
566
+ amount: {
567
+ amount: number;
568
+ precision: number;
569
+ };
570
+ id: string;
571
+ }[] | null | undefined;
572
+ } | null | undefined;
573
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
574
+ defaultCost?: {
575
+ measurement?: {
576
+ id: string;
577
+ name: string;
578
+ abbrev: string;
579
+ conversion: {
580
+ amount: number;
581
+ precision: number;
582
+ };
583
+ } | null | undefined;
584
+ costPerUnit: {
585
+ 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";
586
+ amount: number;
587
+ precision: number;
588
+ };
589
+ } | null | undefined;
590
+ thresholds?: {
591
+ low: number;
592
+ mid: number;
593
+ } | null | undefined;
594
+ operationalGroup?: string | null | undefined;
595
+ code: string;
596
+ _id: string;
597
+ name: string;
598
+ }[];
599
+ }[] | null | undefined;
407
600
  updatedAt?: string | null | undefined;
408
601
  _id: string;
409
602
  }>>;
@@ -2,8 +2,16 @@ export declare const useNetSuiteApi: () => {
2
2
  readSetting(): Promise<{
3
3
  accessToken?: string | null | undefined;
4
4
  syncedAt?: string | null | undefined;
5
+ restlet?: {
6
+ type: "createItemReceipt";
7
+ scriptId: string;
8
+ deploymentId: string;
9
+ }[] | null | undefined;
5
10
  _id: string;
6
11
  items: {
12
+ pktCode?: string | null | undefined;
13
+ pktName?: string | null | undefined;
14
+ externalId?: string | null | undefined;
7
15
  id: string;
8
16
  netSuiteId: string;
9
17
  unitTypeId: string;
@@ -16,6 +24,16 @@ export declare const useNetSuiteApi: () => {
16
24
  id: string;
17
25
  name: string;
18
26
  netSuiteId: string;
27
+ subsidiaryId: string;
28
+ }[];
29
+ childItems: {
30
+ pktCode?: string | null | undefined;
31
+ pktName?: string | null | undefined;
32
+ externalId?: string | null | undefined;
33
+ netSuiteId: string;
34
+ parentNetSuiteId: string;
35
+ unitTypeId: string;
36
+ unitOfMeasureId: string;
19
37
  }[];
20
38
  units: {
21
39
  id: string;
@@ -25,9 +43,22 @@ export declare const useNetSuiteApi: () => {
25
43
  }[];
26
44
  netSuiteId: string;
27
45
  }[];
46
+ subsidiaries: {
47
+ parentId?: string | undefined;
48
+ id: string;
49
+ name: string;
50
+ country: string;
51
+ currency: string;
52
+ }[];
53
+ vendors: {
54
+ custentity_financeapproval?: boolean | null | undefined;
55
+ id: string;
56
+ name: string;
57
+ netSuiteId: string;
58
+ subsidiaryId: string;
59
+ }[];
28
60
  realm: string;
29
61
  }>;
30
- readSubsidiaries(): Promise<import("@feedmepos/zod-inventory").INetSuiteSubsidiaryDto[]>;
31
62
  urls: {
32
63
  portalBackendUrl: string;
33
64
  netSuiteBackendUrl: string;
@@ -1,7 +1,9 @@
1
+ import type { RevisionIdMeta } from '@feedmepos/inventory-core';
1
2
  export declare const usePurchaseOrderTemplateApi: () => {
2
- getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
3
- readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
3
+ getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
4
+ readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
4
5
  createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
5
6
  updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
6
7
  deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;
8
+ importTemplates(templates: Array<(FdoPurchaseOrderTemplate & RevisionIdMeta) | Omit<FdoPurchaseOrderTemplate, '_id'>>): Promise<any>;
7
9
  };
@@ -4,6 +4,7 @@ export declare const useSupplierApi: () => {
4
4
  readLocationSuppliers(): Promise<WithRev<FdoSupplier>[]>;
5
5
  readBusinessSuppliers(): Promise<WithRev<FdoSupplier>[]>;
6
6
  createSupplier(supplier: CreateType<FdoSupplier>): Promise<WithRev<FdoSupplier>[]>;
7
+ importSuppliers(suppliers: (FdoSupplier | CreateType<FdoSupplier>)[]): Promise<void>;
7
8
  updateSupplier(supplier: FdoSupplier): Promise<WithRev<FdoSupplier>[]>;
8
9
  deleteSupplier(supplier: FdoSupplier): Promise<WithRev<boolean>>;
9
10
  };