@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50

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 (144) hide show
  1. package/dist/ApprovalView-CyIOcyG5.js +140 -0
  2. package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
  3. package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
  4. package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
  5. package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
  6. package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
  10. package/dist/IngredientGroupView-C0hPeD41.js +608 -0
  11. package/dist/IngredientsView-CpwVIGXd.js +1608 -0
  12. package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
  13. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
  14. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
  15. package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
  16. package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
  17. package/dist/RecipeView-D0WsMfKm.js +594 -0
  18. package/dist/Standalone.vue.d.ts +2 -0
  19. package/dist/StockView-sxI0L6MP.js +7770 -0
  20. package/dist/SupplierView-clAkARuW.js +1468 -0
  21. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
  22. package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
  23. package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
  24. package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
  25. package/dist/api/bill.d.ts +84 -238
  26. package/dist/api/closing-template.d.ts +6 -4
  27. package/dist/api/inventory.d.ts +282 -91
  28. package/dist/api/netsuite.d.ts +71 -0
  29. package/dist/api/purchase-order-template.d.ts +4 -6
  30. package/dist/api/supplier.d.ts +1 -0
  31. package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
  32. package/dist/app.d.ts +88 -3
  33. package/dist/app.js +3 -3
  34. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  35. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  36. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  38. package/dist/components/FmUnitInputRules.d.ts +2 -0
  39. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  40. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  41. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  42. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  43. package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
  44. package/dist/defineDeepModel-BXP1vLGf.js +13 -0
  45. package/dist/extensions/array.d.ts +1 -0
  46. package/dist/format-time-from-id-DgW7OJL_.js +15 -0
  47. package/dist/format-unit-display-BP4O0Pym.js +1195 -0
  48. package/dist/helper/rules.d.ts +7 -0
  49. package/dist/helper/rules.spec.d.ts +1 -0
  50. package/dist/helper/xlsx.util.d.ts +7 -0
  51. package/dist/router/name.d.ts +1 -0
  52. package/dist/stores/api.d.ts +1 -0
  53. package/dist/stores/feature.d.ts +0 -1
  54. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  55. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  56. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  57. package/dist/stores/integration/index.d.ts +7 -0
  58. package/dist/stores/integration/netsuite.d.ts +102 -0
  59. package/dist/stores/inventory.d.ts +294 -9
  60. package/dist/stores/location.d.ts +508 -503
  61. package/dist/stores/supplier.d.ts +124 -4
  62. package/dist/style.css +1 -1
  63. package/dist/supplier-D-8XhuF_.js +77 -0
  64. package/dist/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
  66. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  67. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  68. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
  72. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  73. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  74. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  75. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  76. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  77. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  78. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  79. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  80. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  81. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  82. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  83. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  84. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  85. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  86. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  87. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  88. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  89. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  90. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  91. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
  92. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  93. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  94. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  95. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
  96. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
  97. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  98. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  99. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  100. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
  101. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  102. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  103. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  104. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  105. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  106. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  107. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  108. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  109. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  110. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  111. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  112. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  113. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  114. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  115. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  116. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
  117. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
  118. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  119. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
  120. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  121. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  122. package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
  123. package/dist/xlsx.util-CxGmvsp9.js +78 -0
  124. package/package.json +10 -7
  125. package/dist/ApprovalView-BdaNwUBc.js +0 -129
  126. package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
  127. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
  128. package/dist/IngredientsView-GqrkpCm5.js +0 -1758
  129. package/dist/IntegrationView-7c3MpUzS.js +0 -1141
  130. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
  131. package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
  132. package/dist/RecipeView-C6tZPQ-K.js +0 -581
  133. package/dist/StockView-4uXHYz4E.js +0 -1892
  134. package/dist/SupplierView-CuWvKCWY.js +0 -827
  135. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
  136. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
  137. package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
  138. package/dist/defineDeepModel-BKAs9qN6.js +0 -13
  139. package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
  140. package/dist/id-to-date-D1lOqIir.js +0 -30
  141. package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
  142. package/dist/supplier-BIDBk5S6.js +0 -69
  143. package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
  144. package/dist/xlsx.util-BKFiH-ig.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,94 +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
- restaurantTagGroups?: {
21
- name: string;
22
- id: string;
23
- tags: {
24
- name: string;
25
- id: string;
26
- }[];
27
- }[] | null | undefined;
28
- pf_agent?: {
29
- clickupId?: string | null | undefined;
30
- members?: {
31
- pf_user?: {
32
- email?: string | null | undefined;
33
- phoneNumber?: string | null | undefined;
34
- birthday?: string | null | undefined;
35
- gender?: "MALE" | "FEMALE" | null | undefined;
36
- addresses?: {
37
- name: string;
38
- address: string;
39
- coordinates: number[];
40
- }[] | null | undefined;
41
- photoURL?: string | null | undefined;
42
- displayName?: string | null | undefined;
43
- imported?: {
44
- raw: Record<string, any>;
45
- source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
46
- } | null | undefined;
47
- _id: string;
48
- } | null | undefined;
49
- role: "ADMIN";
50
- userId: string;
51
- }[] | null | undefined;
52
- code: string;
53
- name: string;
54
- _id: string;
55
- isReseller: boolean;
56
- } | null | undefined;
57
- thumbnail?: string | null | undefined;
58
- billingInfos?: {
59
- _id?: string | null | undefined;
60
- name: string;
61
- address: {
62
- coordinates?: number[] | null | undefined;
63
- line2?: string | null | undefined;
64
- state: string;
65
- country: string;
66
- line1: string;
67
- city: string;
68
- postcode: string;
69
- };
70
- email: string;
71
- companyName: string;
72
- contact: string;
73
- }[] | null | undefined;
74
- customerDisplayImages?: {
75
- url: string;
76
- restaurantIds: string[];
77
- }[] | null | undefined;
78
- name: string;
79
- _id: string;
80
- ownerId: string;
81
- restaurantQuota: number;
82
- warehouseQuota: number;
83
- menuVersion: string;
84
- } | null | undefined;
85
9
  _id: string;
86
10
  businessId: string;
87
11
  profile: {
88
- email?: string | null | undefined;
89
- phoneNo?: string | null | undefined;
90
- name: string;
91
- address: {
12
+ code?: string | null | undefined;
13
+ _id?: string | null | undefined;
14
+ name?: string | undefined;
15
+ address?: {
92
16
  coordinates?: number[] | null | undefined;
93
17
  line2?: string | null | undefined;
94
18
  state: string;
@@ -96,11 +20,73 @@ export declare const useInventoryApi: () => {
96
20
  line1: string;
97
21
  city: string;
98
22
  postcode: string;
99
- };
100
- 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;
101
87
  };
102
88
  };
103
- })[]>;
89
+ }[]>;
104
90
  readInventory(): Promise<WithRev<{
105
91
  unit?: {
106
92
  _id: string;
@@ -131,7 +117,7 @@ export declare const useInventoryApi: () => {
131
117
  precision: number;
132
118
  };
133
119
  } | null | undefined;
134
- type: "RECIPE" | "SKU";
120
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
135
121
  amount: {
136
122
  amount: number;
137
123
  precision: number;
@@ -193,7 +179,7 @@ export declare const useInventoryApi: () => {
193
179
  precision: number;
194
180
  };
195
181
  } | null | undefined;
196
- type: "RECIPE" | "SKU";
182
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
197
183
  amount: {
198
184
  amount: number;
199
185
  precision: number;
@@ -201,6 +187,74 @@ export declare const useInventoryApi: () => {
201
187
  id: string;
202
188
  }[];
203
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;
204
258
  updatedAt?: string | null | undefined;
205
259
  _id: string;
206
260
  }>>;
@@ -234,7 +288,7 @@ export declare const useInventoryApi: () => {
234
288
  precision: number;
235
289
  };
236
290
  } | null | undefined;
237
- type: "RECIPE" | "SKU";
291
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
238
292
  amount: {
239
293
  amount: number;
240
294
  precision: number;
@@ -296,7 +350,7 @@ export declare const useInventoryApi: () => {
296
350
  precision: number;
297
351
  };
298
352
  } | null | undefined;
299
- type: "RECIPE" | "SKU";
353
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
300
354
  amount: {
301
355
  amount: number;
302
356
  precision: number;
@@ -304,6 +358,74 @@ export declare const useInventoryApi: () => {
304
358
  id: string;
305
359
  }[];
306
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;
307
429
  updatedAt?: string | null | undefined;
308
430
  _id: string;
309
431
  }>>;
@@ -337,7 +459,7 @@ export declare const useInventoryApi: () => {
337
459
  precision: number;
338
460
  };
339
461
  } | null | undefined;
340
- type: "RECIPE" | "SKU";
462
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
341
463
  amount: {
342
464
  amount: number;
343
465
  precision: number;
@@ -399,7 +521,7 @@ export declare const useInventoryApi: () => {
399
521
  precision: number;
400
522
  };
401
523
  } | null | undefined;
402
- type: "RECIPE" | "SKU";
524
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
403
525
  amount: {
404
526
  amount: number;
405
527
  precision: number;
@@ -407,11 +529,80 @@ export declare const useInventoryApi: () => {
407
529
  id: string;
408
530
  }[];
409
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;
410
600
  updatedAt?: string | null | undefined;
411
601
  _id: string;
412
602
  }>>;
413
603
  urls: {
414
604
  portalBackendUrl: string;
605
+ netSuiteBackendUrl: string;
415
606
  businessesBackendUrl: string;
416
607
  inventoryBackendUrl: string;
417
608
  foodMarketHubUrl: string;
@@ -0,0 +1,71 @@
1
+ export declare const useNetSuiteApi: () => {
2
+ readSetting(): Promise<{
3
+ accessToken?: string | null | undefined;
4
+ syncedAt?: string | null | undefined;
5
+ restlet?: {
6
+ type: "createItemReceipt";
7
+ scriptId: string;
8
+ deploymentId: string;
9
+ }[] | null | undefined;
10
+ _id: string;
11
+ items: {
12
+ pktCode?: string | null | undefined;
13
+ pktName?: string | null | undefined;
14
+ externalId?: string | null | undefined;
15
+ id: string;
16
+ netSuiteId: string;
17
+ unitTypeId: string;
18
+ unitOfMeasureId: string;
19
+ subsidiaryIds: string[];
20
+ }[];
21
+ enable: boolean;
22
+ locations: {
23
+ type: "restaurant" | "warehouse";
24
+ id: string;
25
+ name: string;
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;
37
+ }[];
38
+ units: {
39
+ id: string;
40
+ measurements: {
41
+ id: string;
42
+ netSuiteId: string;
43
+ }[];
44
+ netSuiteId: string;
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
+ }[];
60
+ realm: string;
61
+ }>;
62
+ urls: {
63
+ portalBackendUrl: string;
64
+ netSuiteBackendUrl: string;
65
+ businessesBackendUrl: string;
66
+ inventoryBackendUrl: string;
67
+ foodMarketHubUrl: string;
68
+ menuV4BackendUrl: string;
69
+ dataBackendUrl: string;
70
+ };
71
+ };
@@ -1,11 +1,9 @@
1
+ import type { RevisionIdMeta } from '@feedmepos/inventory-core';
1
2
  export declare const usePurchaseOrderTemplateApi: () => {
2
- getTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
3
- getLocationTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
4
- getBusinessTemplate(id: string): Promise<FdoPurchaseOrderTemplate>;
5
- readTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
6
- readLocationTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
7
- readBusinessTemplates(): Promise<FdoPurchaseOrderTemplate[]>;
3
+ getTemplate(id: string): Promise<FdoPurchaseOrderTemplate & RevisionIdMeta>;
4
+ readTemplates(): Promise<(FdoPurchaseOrderTemplate & RevisionIdMeta)[]>;
8
5
  createTemplate(template: Omit<FdoPurchaseOrderTemplate, '_id'>): Promise<FdoPurchaseOrderTemplate>;
9
6
  updateTemplate(template: FdoPurchaseOrderTemplate): Promise<FdoPurchaseOrderTemplate>;
10
7
  deleteTemplate(template: FdoPurchaseOrderTemplate): Promise<any>;
8
+ importTemplates(templates: Array<(FdoPurchaseOrderTemplate & RevisionIdMeta) | Omit<FdoPurchaseOrderTemplate, '_id'>>): Promise<any>;
11
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
  };